]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix pthread_setname_np build error
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4ae7258e
TT
12019-12-18 Tom Tromey <tromey@adacore.com>
2
3 PR build/25268:
4 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
5 type on macOS. Add comment.
6
1c66314d
TT
72019-12-18 Tom Tromey <tromey@adacore.com>
8
9 PR build/25250:
10 * ui-out.c (ui_out::vmessage): Update.
11 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
12 Rename.
13 (string_field): Update.
14 (signed_field): Update.
15
be19b699
SM
162019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
17
18 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
19
3f434671
JB
202019-12-11 Joel Brobecker <brobecker@adacore.com>
21
22 * version.in: Set GDB version number to 9.0.90.DATE-git.
23
07d5aa38
JB
242019-12-11 Joel Brobecker <brobecker@adacore.com>
25
26 GDB 9.0.90 released.
27
b06b5486
JB
282019-12-11 Joel Brobecker <brobecker@adacore.com>
29
30 * version.in: Set GDB version number to 9.0.90.
31
41ec388b
JB
322019-12-11 Joel Brobecker <brobecker@adacore.com>
33
34 * NEWS: Change "Changes since GDB 8.3" into "Changes in GDB 9".
35
c87abc50
JB
362019-12-11 Joel Brobecker <brobecker@adacore.com>
37
38 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
39 * version.in: Bump version to 9.0.90.DATE-git.
40
2e744276
TT
412019-12-11 Tom Tromey <tromey@adacore.com>
42
43 PR build/25268:
44 * gdbsupport/thread-pool.c (set_thread_name): New function.
45 (thread_pool::set_thread_count): Don't call pthread_setname_np.
46 (thread_pool::thread_function): Call set_thread_name.
47
aac4760f
TT
482019-12-11 Tom Tromey <tromey@adacore.com>
49
50 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
51 bfd_get_signed_8.
52
d8edc8b7
PW
532019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
54
55 * NEWS: Document -raw-values option and the related setting commands.
56 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
57 only set it on when /r is given.
58 * valprint.c (value_print_option_defs): New element raw-values.
59 * Makefile.in: Add the new file.
60
cb511130
CB
612019-12-10 Christian Biesinger <cbiesinger@google.com>
62
63 * gdbsupport/safe-strerror.c: Supress the unused function warning
64 for select_strerror_r.
65
ab7d13f0
CB
662019-12-10 Christian Biesinger <cbiesinger@google.com>
67
68 * config.in: Regenerate.
69 * configure: Regenerate.
70 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
71 safe_strerror instead of strerror.
72 * gdbsupport/common.m4: Don't check for strerror.
73 * gdbsupport/safe-strerror.c: Support both the glibc version
74 of strerror_r and the XSI version.
75
6c71eb7d
TT
762019-12-10 Tom Tromey <tromey@adacore.com>
77
78 * ada-typeprint.c (print_choices): Use a single "?".
79 (print_variant_part): Print "?" if the discriminant name
80 is not known.
81
bac7c5cf
GB
822019-12-10 George Barrett <bob@bob131.so>
83
84 Fix scripted probe breakpoints.
85 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
86 declaration forward.
87 (breakpoint_ops_for_event_location_type)
88 (breakpoint_ops_for_event_location): Add function definitions.
89 (break_command_1, trace_command): Use
90 breakpoint_ops_for_event_location.
91 * breakpoint.h (breakpoint_ops_for_event_location): Add function
92 declarations.
93 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
94 breakpoint_ops_for_event_location.
95 * python/py-breakpoint.c (bppy_init): Use
96 breakpoint_ops_for_event_location.
97
330f1d38
TBA
982019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
99
100 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
101 when ranking an lvalue argument for an rvalue parameter.
102
b1f0c0b9
WA
1032019-12-08 Wataru Ashihara <wataash@wataash.com>
104
105 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
106 template argument for scoped_restore_tmpl from bool to int.
107
aa2d5a42
KS
1082019-12-07 Keith Seitz <keiths@redhat.com>
109
110 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
111 (build_id_to_debug_bfd): Make static, rewriting to use
112 build_id_to_bfd_suffix.
113 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
114 adding `suffix' parameter. Append SUFFIX to file names
115 when searching for matching files.
116 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
117 (build_id_to_exec_bfd): Likewise.
118 * build-id.h (build_id_to_debug_bfd): Clarify that function
119 searches for BFD of debug info file.
120 (build_id_to_exec_bfd): Declare.
121 * corelow.c: Include build-id.h.
122 (locate_exec_from_corefile_build_id): New function.
123 (core_target_open): If no executable BFD is found,
124 search for a core file BFD using build-id.
125
dfb65191
CB
1262019-12-06 Christian Biesinger <cbiesinger@google.com>
127
128 * bcache.c: Put in namespace gdb.
129 * bcache.h: Likewise.
130 * gdbtypes.c (check_types_worklist): Update.
131 (types_deeply_equal): Update.
132 * macrotab.c (struct macro_table) <bcache>: Update.
133 (new_macro_table): Update.
134 * macrotab.h (struct bcache): Put this forward declaration
135 inside namespace gdb.
136 (new_macro_table): Update.
137 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
138 Update.
139 <macro_cache>: Update.
140 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
141
93e55f0a
TV
1422019-12-06 Tom de Vries <tdevries@suse.de>
143
144 PR symtab/24971
145 * block.c (best_symbol, better_symbol): New function.
146 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
147 decl.
148
06acc08f
TBA
1492019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
150
151 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
152 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
153 for ranking see-through reference cases.
154
e0fad1ea
PW
1552019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
156 * stack.c (faas_command): Check a command is provided.
157 * thread.c (taas_command, tfaas_command): Likewise.
158
908641f5
PW
1592019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
160 * inferior.c (prune_inferiors): Only call delete_inferior,
161 Do not modify the inferior list.
162
b858499d
SM
1632019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
164
165 * c-exp.y: Update calls to lookup_typename,
166 lookup_signed_typename and lookup_unsigned_typename.
167 * c-lang.c (evaluate_subexp_c): Likewise.
168 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
169 Likewise.
170 * eval.c (binop_promote): Likewise.
171 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
172 (lookup_unsigned_typename): Likewise.
173 (lookup_signed_typename): Likewise.
174 * gdbtypes.h (lookup_unsigned_typename): Likewise.
175 (lookup_signed_typename): Likewise.
176 (lookup_typename): Likewise.
177 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
178 lookup_typename, lookup_signed_typename,
179 lookup_unsigned_typename.
180 * m2-exp.y: Likewise.
181 * printcmd.c (printf_wide_c_string): Likewise.
182 (ui_printf): Likewise.
183 * python/py-type.c (typy_lookup_typename): Likewise.
184 * python/py-xmethods.c (python_xmethod_worker::invoke):
185 Likewise.
186 * rust-exp.y: Likewise.
187
3a8fa228
CB
1882019-12-04 Christian Biesinger <cbiesinger@google.com>
189
190 * configure.nat (obsd64): Add missing files x86-nat.o and
191 nat/x86-dregs.o.
192
2dbc041e
TT
1932019-12-04 Tom Tromey <tom@tromey.com>
194
195 * valprint.c (val_print_string): Use metadata_style.
196 * go-valprint.c (print_go_string): Use metadata style.
197 * p-valprint.c (pascal_object_print_static_field): Use metadata
198 style.
199 * cp-valprint.c (cp_print_static_field): Use metadata style.
200
36c8fb93
AB
2012019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
202 Chris January <chris.january@arm.com>
203
204 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
205 tokens.
206 (typebase): New patterns for complex, single/double precision, and
207 single/double complex.
208 (f77_keywords): Change token for complex keyword, and add single,
209 double, and precision keywords.
210
c6170c2c
SM
2112019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
212
213 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
214 "info io_registers".
215
894ecaf4
SM
2162019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
217
218 * regcache.c (cooked_read_test): Initialize thread list of
219 mock_inferior.
220
be155ebb
SM
2212019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
222
223 * aarch64-linux-tdep.c: Remove includes.
224
c577cdd7
SM
2252019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
226
227 * aarch64-tdep.c: Remove includes.
228
610cfd61
SM
2292019-12-04 Simon Marchi <simon.marchi@efficios.com>
230
231 * filtered-iterator.h (filtered_iterator) <operator==,
232 operator!=>: Compare wrapped iterators, not wrapped pointers.
233 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
234 unittests/filtered_iterator-selftests.c.
235 * unittests/filtered_iterator-selftests.c: New file.
236
a05cf17a
TT
2372019-12-04 Tom Tromey <tromey@adacore.com>
238
239 * gdbtypes.c (create_range_type): Inherit endianity
240 from base type.
241
d5a22e77
TT
2422019-12-04 Tom Tromey <tromey@adacore.com>
243
244 * ada-lang.c (decode_constrained_packed_array)
245 (ada_value_assign, value_assign_to_component): Update.
246 * dwarf2loc.c (rw_pieced_value, access_memory)
247 (dwarf2_compile_expr_to_ax): Update.
248 * dwarf2read.c (dwarf2_add_field): Update.
249 * eval.c (evaluate_subexp_standard): Update.
250 * gdbarch.c, gdbarch.h: Rebuild.
251 * gdbarch.sh (bits_big_endian): Remove.
252 * gdbtypes.h (union field_location): Update comment.
253 * target-descriptions.c (make_gdb_type): Update.
254 * valarith.c (value_bit_index): Update.
255 * value.c (struct value) <bitpos>: Update comment.
256 (unpack_bits_as_long, modify_field): Update.
257 * value.h (value_bitpos): Update comment.
258
7ab4a236
TT
2592019-12-04 Tom Tromey <tromey@adacore.com>
260
261 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
262 endian-ness.
263
103a685e
TT
2642019-12-04 Tom Tromey <tromey@adacore.com>
265
266 * dwarf2read.c (dwarf2_init_float_type)
267 (dwarf2_init_complex_target_type): Add byte_order parameter.
268 (read_base_type): Compute byte order earlier.
269 * gdbtypes.c (init_float_type): Add byte_order parameter.
270 * gdbtypes.h (init_float_type): Add byte_order parameter.
271
7a9e9f9f
TT
2722019-12-04 Tom Tromey <tromey@adacore.com>
273
274 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
275
feee869b
TT
2762019-12-04 Tom Tromey <tromey@adacore.com>
277
278 * dwarf2read.c (process_structure_scope): Initialize
279 "discr_offset".
280
c2512106
AB
2812019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
282
283 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
284 add it into the search spec.
285 (parse_max_results_option): New function.
286 (mi_info_functions_or_variables): Parse -max-results flag and pass
287 it to mi_symbol_info.
288 (mi_cmd_symbol_info_modules): Likewise.
289 (mi_cmd_symbol_info_types): Likewise.
290 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
291 return type to bool, change result container into a set, and don't
292 add new results if we have enough already.
293 (global_symbol_searcher::add_matching_msymbols): Change return
294 type to bool, and don't add new results if we have enough already.
295 (sort_search_symbols_remove_dups): Delete.
296 (global_symbol_searcher::search): Early exit from search loop when
297 we have enough results. Use a std::set to collect the results
298 from calling add_matching_symbols.
299 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
300 member function.
301 (global_symbol_searcher) <m_max_search_results>: New member
302 variable.
303 (global_symbol_searcher) <add_matching_symbols>: Update header
304 comment and change return type to bool.
305 (global_symbol_searcher) <add_matching_msymbols>: Update header
306 comment and change return type to bool.
307
f97a63c5
AB
3082019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
309
310 * symtab.c (symbol_search::compare_search_syms): Update header
311 comment.
312 (global_symbol_searcher::is_suitable_msymbol): New function.
313 (global_symbol_searcher::expand_symtabs): New function.
314 (global_symbol_searcher::add_matching_symbols): New function.
315 (global_symbol_searcher::add_matching_msymbols): New function.
316 (global_symbol_searcher::search): Move most of the content
317 into the new functions above, and call them as needed.
318 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
319 function.
320 (global_symbol_searcher) <add_matching_symbols>: New member
321 function.
322 (global_symbol_searcher) <add_matching_msymbols>: New member
323 function.
324 (global_symbol_searcher) <is_suitable_msymbol>: New member
325 function.
326
293b38d6
AB
3272019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
328
329 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
330 -symbol-info-module-variables entries.
331 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
332 (mi_cmd_symbol_info_module_variables): Declare.
333 * mi/mi-symbol-cmds.c
334 (module_symbol_search_iterator): New typedef.
335 (output_module_symbols_in_single_module_and_file): New function.
336 (output_module_symbols_in_single_module): New function.
337 (mi_info_module_functions_or_variables): New function.
338 (mi_cmd_symbol_info_module_functions): New function.
339 (mi_cmd_symbol_info_module_variables): New function.
340 * NEWS: Mention new MI command.
341
4cbd39b2
CB
3422019-12-03 Christian Biesinger <cbiesinger@google.com>
343
344 * bcache.c (hash): Remove.
345 (hash_continue): Remove.
346 * bcache.h (hash): Remove.
347 (hash_continue): Remove.
348 (struct bcache) <ctor>: Update.
349 * psymtab.c (psymbol_hash): Update.
350 * stabsread.c (hashname): Update.
351 * utils.h (fast_hash): Add an argument for a start value,
352 defaulting to zero.
353
82f910ea
PW
3542019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
355 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
356 (destroy_block_symbol_cache): New function.
357 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
358 (resize_symbol_cache): Likewise.
359
de2396d0
TT
3602019-12-02 Tom Tromey <tom@tromey.com>
361
362 * unittests/tui-selftests.c (run_tests): Make conditional.
363 (_initialize_tui_selftest): Make conditional.
364
638d85bc
CB
3652019-12-02 Christian Biesinger <cbiesinger@google.com>
366
367 * aix-thread.c (debug_aix_thread): Change type to bool.
368
7532a164
LM
3692019-12-02 Luis Machado <luis.machado@linaro.org>
370
371 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
372
216a7e6b
AB
3732019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
374
375 * dwarf2read.c (read_tag_string_type): Read the fields required to
376 make a dynamic string, and possibly create a dynamic range for the
377 string.
378 (attr_to_dynamic_prop): Setup is_reference based on the type of
379 attribute being processed.
380 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
381 (resolve_dynamic_array): Rename to...
382 (resolve_dynamic_array_or_string): ...this, update header comment,
383 and accept TYPE_CODE_STRING.
384 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
385
11a8b164
AB
3862019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
387
388 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
389 of its implementation from...
390 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
391 the new function.
392
5bbd8269
AB
3932019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
394
395 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
396 create a range with stride where appropriate.
397 * f-valprint.c: Include 'gdbarch.h'.
398 (f77_print_array_1): Take the stride into account when walking the
399 array. Also convert the stride into addressable units.
400 * gdbtypes.c (create_range_type): Initialise the stride to
401 constant zero.
402 (create_range_type_with_stride): New function, initialise the
403 range as normal, and then setup the stride.
404 (has_static_range): Include the stride here. Also change the
405 return type to bool.
406 (create_array_type_with_stride): Consider the range stride if the
407 array isn't given its own stride.
408 (resolve_dynamic_range): Resolve the stride if needed.
409 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
410 (struct range_bounds) <flag_is_byte_stride>: New member variable.
411 (TYPE_BIT_STRIDE): Define.
412 (TYPE_ARRAY_BIT_STRIDE): Define.
413 (create_range_type_with_stride): Declare.
414 * valarith.c (value_subscripted_rvalue): Take range stride into
415 account when walking the array.
416
82e3b564
TT
4172019-12-01 Tom Tromey <tom@tromey.com>
418
419 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
420 specially.
421
517d261d
TT
4222019-12-01 Tom Tromey <tom@tromey.com>
423
424 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
425 \0.
426 * unittests/tui-selftests.c: New file.
427 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
428
484c9b64
TT
4292019-12-01 Tom Tromey <tom@tromey.com>
430
431 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
432
a2a7af0c
TT
4332019-12-01 Tom Tromey <tom@tromey.com>
434
435 * NEWS: Document new settings.
436 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
437 * tui/tui-win.c (_initialize_tui_win): Add border style
438 observers.
439 * tui/tui-io.h (tui_apply_style): Declare.
440 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
441 longer static.
442 (apply_ansi_escape, tui_set_reverse_mode): Update.
443 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
444 Add "skip_intensity" parameter.
445 <changed>: New member.
446 <do_set_value>: Declare.
447 (tui_border_style, tui_active_border_style): Declare.
448 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
449 globals.
450 (cli_style_option): Initialize "changed".
451 (cli_style_option::do_set_value): New function.
452 (cli_style_option::add_setshow_commands): Add "skip_intensity"
453 parameter. Update.
454 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
455 (_initialize_cli_style): Update. Create TUI border style
456 commands.
457
d1da6b01
TT
4582019-12-01 Tom Tromey <tom@tromey.com>
459
460 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
461 parameter.
462 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
463 parameter.
464 * tui/tui-win.h (compact_source): Declare.
465 * tui/tui-win.c (compact_source): New global.
466 (tui_set_compact_source, tui_show_compact_source): New functions.
467 (_initialize_tui_win): Add "compact-source" setting.
468 * tui/tui-source.c (tui_source_window::set_contents): Handle
469 compact_source setting.
470 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
471 * NEWS: Document new setting.
472
489dbda6
TT
4732019-11-30 Tom Tromey <tom@tromey.com>
474
475 * dwarf2read.c (dwarf2_add_field): Include field offset when
476 computing variant part length.
477
bf498525
PW
4782019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
479 * NEWS: Mention define-prefix. Tell that command names can now
480 contain a . character.
481
be09caf1
PW
4822019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
483
484 * command.h (valid_cmd_char_p): Declare.
485 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
486 the check of valid command char.
487 (find_command_name_length, valid_user_defined_cmd_name_p): Use
488 valid_cmd_char_p.
489 * cli/cli-script.c (validate_comname): Likewise.
490 * completer.c (gdb_completer_command_word_break_characters):
491 Do not remove . from the word break char, update comments.
492 (complete_line_internal_1): Use valid_cmd_char_p.
493 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
494 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
495
c6ac7fc9
PW
4962019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
497
498 * cli/cli-script.c (do_define_command): Ensure a redefined
499 prefix command is kept as a prefix command.
500 (define_prefix_command): New function.
501 (show_user_1): Report user defined prefixes.
502 (_initialize_cli_script): Create the new 'define-prefix' command.
503 Add completers for 'define' and 'document'.
504 * top.c (execute_command): If command is a user-defined prefix only
505 command, report the list of commands for this prefix command.
506
a992a3b0
TBA
5072019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
508
509 * valops.c (find_oload_champ): Improve debug output.
510
e9194a1a
TBA
5112019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
512
513 * valops.c (find_oload_champ): Print part of debug messages
514 before the badness vector is std::move'd.
515
53a008a6
TT
5162019-11-28 Tom Tromey <tom@tromey.com>
517
518 * value.c (creal_internal_fn): Fix comment.
519
bab05c83
TT
5202019-11-28 Tom Tromey <tom@tromey.com>
521
522 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
523 flag_bound_evaluated>: Now unsigned.
524
2522f049
TT
5252019-11-28 Tom Tromey <tom@tromey.com>
526
527 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
528 declare.
529
38b49e22
MS
5302019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
531
532 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
533 debug output.
534 * jit.c (jit_unregister_code): Add debug print to match
535 `jit_register_code`.
536
35125921
CB
5372019-11-27 Christian Biesinger <cbiesinger@google.com>
538
539 * NEWS: Mention the new multithreaded symbol loading.
540
62e77f56
CB
5412019-11-27 Christian Biesinger <cbiesinger@google.com>
542
543 * maint.c (n_worker_threads): Default to 0.
544 (worker_threads_disabled): New function.
545 * maint.h (worker_threads_disabled): New function.
546 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
547 here if worker_threads_disabled () is true.
548 (minimal_symbol_reader::install): Skip all threading if
549 worker_threads_disabled () is true.
550
f29d7f6b
CB
5512019-11-27 Christian Biesinger <cbiesinger@google.com>
552
553 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
554 hash code if possible.
555 (add_minsym_to_demangled_hash_table): Likewise.
556 (minimal_symbol_reader::install): Compute the hash codes for msymbol
557 on the background thread.
558 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
559 Add these fields.
560
e76b2246
CB
5612019-11-27 Christian Biesinger <cbiesinger@google.com>
562
563 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
564 of the mangled name on the background thread.
565 * symtab.c (symbol_set_names): Allow passing in the hash of the
566 linkage_name.
567 * symtab.h (symbol_set_names): Likewise.
568
8d9a2568
KB
5692019-11-27 Kevin Buettner <kevinb@redhat.com>
570
571 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
572 physnames are computed for inherited DIEs.
573
fad03f6e
TT
5742019-11-27 Tom Tromey <tromey@adacore.com>
575
576 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
577 backslashes.
578 * cp-support.c: Remove unnecessary backslashes.
579
43678b0a
CB
5802019-11-27 Christian Biesinger <cbiesinger@google.com>
581
582 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
583 with sym->set_linkage_name.
584 * coffread.c (coff_read_enum_type): Likewise.
585 * mdebugread.c (parse_symbol): Likewise.
586 * stabsread.c (patch_block_stabs): Likewise.
587 (define_symbol): Likewise.
588 (read_enum_type): Likewise.
589 (common_block_end): Likewise.
590 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
591 function.
592 (SYMBOL_SET_LINKAGE_NAME): Remove.
593 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
594 with sym->set_linkage_name.
595
db5960b4
AB
5962019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
597
598 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
599 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
600 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
601 * NEWS: Mention new MI command.
602
7dc42066
AB
6032019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
604
605 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
606 '-symbol-info-types', and '-symbol-info-variables'.
607 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
608 (mi_cmd_symbol_info_types): Declare.
609 (mi_cmd_symbol_info_variables): Declare.
610 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
611 (output_debug_symbol): New function.
612 (output_nondebug_symbol): New function.
613 (mi_symbol_info): New function.
614 (mi_info_functions_or_variables): New function.
615 (mi_cmd_symbol_info_functions): New function.
616 (mi_cmd_symbol_info_types): New function.
617 (mi_cmd_symbol_info_variables): New function.
618 * NEWS: Mention new commands.
619
5f512a7d
AB
6202019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
621
622 * symtab.c (symbol_to_info_string): New function, most content
623 moved from print_symbol_info, but updated to return a std::string.
624 (print_symbol_info): Update to use symbol_to_info_string and print
625 returned string.
626 * symtab.h (symbol_to_info_string): Declare new function.
627
470c0b1c
AB
6282019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
629
630 * python/python.c (gdbpy_rbreak): Convert to using
631 global_symbol_searcher.
632 * symtab.c (file_matches): Convert return type to bool, change
633 file list to std::vector, update header comment.
634 (search_symbols): Rename to...
635 (global_symbol_searcher::search): ...this and update now its
636 a member function of global_symbol_searcher. Take account of the
637 changes to file_matches.
638 (symtab_symbol_info): Convert to using global_symbol_searcher.
639 (rbreak_command): Likewise.
640 (search_module_symbols): Likewise.
641 * symtab.h (enum symbol_search): Update comment.
642 (search_symbols): Remove declaration.
643 (class global_symbol_searcher): New class.
644
57357d9d
TT
6452019-11-26 Tom Tromey <tromey@adacore.com>
646
647 * cp-support.c (_initialize_cp_support): Conditionally initialize
648 gdb_demangle_attempt_core_dump.
649
3ea16160
TT
6502019-11-26 Tom Tromey <tom@tromey.com>
651
652 * python/py-function.c (fnpy_init): Update.
653 * value.h (add_internal_function): Adjust declaration.
654 * value.c (function_destroyer): Remove.
655 (do_add_internal_function): Don't set destroyer or copy name.
656 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
657 Set name_allocated.
658 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
659 (cmdpy_init): Set name_allocated.
660 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
661 member.
662 (~cmd_list_element): Free "name" if needed.
663
1a6d41c6
TT
6642019-11-26 Tom Tromey <tom@tromey.com>
665
666 * value.h (add_internal_function): Add new overload. Move
667 documentation from value.h.
668 * value.c (do_add_internal_function): New function.
669 (add_internal_function): Use it. Add new overload.
670 (function_destroyer): Don't free doc.
671 * python/py-function.c (fnpy_init): Update.
672
8318f3c3
TT
6732019-11-26 Tom Tromey <tom@tromey.com>
674
675 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
676 (cmdpy_init): Set "doc_allocated".
677
4da8c3a8
TT
6782019-11-26 Tom Tromey <tom@tromey.com>
679
680 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
681 name of worker thread.
682 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
683 pthread_setname_np.
684 * configure, config.in: Rebuild.
685
971db5e2
TT
6862019-11-26 Tom Tromey <tom@tromey.com>
687
688 * python/python.c (class gdbpy_gil): New.
689 (struct gdbpy_event): Add constructor, destructor, operator().
690 (gdbpy_post_event): Use run_on_main_thread.
691 (gdbpy_initialize_events): Remove.
692 (do_start_initialization): Update.
693
22138db6
TT
6942019-11-26 Tom Tromey <tom@tromey.com>
695
696 * NEWS: Add entry.
697 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
698 commands. Call update_thread_pool_size.
699 (update_thread_pool_size, maintenance_set_worker_threads): New
700 functions.
701 (n_worker_threads): New global.
702
d55c9a68
TT
7032019-11-26 Christian Biesinger <cbiesinger@google.com>
704 Tom Tromey <tom@tromey.com>
705
706 * minsyms.c (minimal_symbol_reader::install): Use
707 parallel_for_each.
708 * gdbsupport/parallel-for.h: New file.
709 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
710
a0b57563
CB
7112019-11-26 Christian Biesinger <cbiesinger@google.com>
712 Tom Tromey <tom@tromey.com>
713
714 * gdbsupport/thread-pool.h: New file.
715 * gdbsupport/thread-pool.c: New file.
716 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
717 (HFILES_NO_SRCDIR): Add thread-pool.h.
718
3b3978bc
TT
7192019-11-26 Tom Tromey <tom@tromey.com>
720
721 * event-top.h (thread_local_segv_handler): Declare.
722 * event-top.c (thread_local_segv_handler): New global.
723 (install_handle_sigsegv, handle_sigsegv): New functions.
724 (async_init_signals): Install SIGSEGV handler.
725 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
726 thread-local.
727 (report_failed_demangle): New function.
728 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
729 handler-setting code, instead use segv_handler. Run warning code
730 on main thread.
731
9411c49e
TT
7322019-11-26 Tom Tromey <tom@tromey.com>
733
734 * run-on-main-thread.c: New file.
735 * run-on-main-thread.h: New file.
736 * unittests/main-thread-selftests.c: New file.
737 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
738 main-thread-selftests.c.
739 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
740 (COMMON_SFILES): Add run-on-main-thread.c.
741
c3efb965
TT
7422019-11-26 Tom Tromey <tom@tromey.com>
743
744 * main.c (setup_alternate_signal_stack): Remove.
745 (captured_main_1): Use gdb::alternate_signal_stack.
746 * gdbsupport/alt-stack.h: New file.
747
21987b9c
TT
7482019-11-26 Tom Tromey <tom@tromey.com>
749
750 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
751 Remove comment.
752 (save_original_signals_state, restore_original_signals_state): Use
753 gdb_sigmask.
754 * linux-nat.c (block_child_signals, restore_child_signals_mask)
755 (_initialize_linux_nat): Use gdb_sigmask.
756 * guile/guile.c (_initialize_guile): Use block_signals.
757 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
758 * gdbsupport/gdb-sigmask.h: New file.
759 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
760 * cp-support.c (gdb_demangle): Use gdb_sigmask.
761 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
762 pthread_sigmask.
763 * configure, config.in: Rebuild.
764 * gdbsupport/block-signals.h: New file.
765
5e030278
TT
7662019-11-26 Tom Tromey <tom@tromey.com>
767
768 * acinclude.m4: Include ax_pthread.m4.
769 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
770 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
771 (CLIBS): Use PTHREAD_LIBS.
772 (aclocal_m4_deps): Add ax_pthread.m4.
773 * config.in, configure: Rebuild.
774 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
775
5a79c107
TT
7762019-11-26 Tom Tromey <tom@tromey.com>
777
778 * symtab.h (struct minimal_symbol) <name_set>: New member.
779 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
780 Don't call symbol_set_names.
781 (minimal_symbol_reader::install): Call symbol_set_names.
782
aa369509
PW
7832019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
784
785 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
786 restore_active_ext_lang, as GIL is needed for (indirectly)
787 called PyOS_InterruptOccurred.
788
cadc9cb8
SM
7892019-11-26 Simon Marchi <simon.marchi@efficios.com>
790
791 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
792 definition.
793
d04afd58
SM
7942019-11-26 Simon Marchi <simon.marchi@efficios.com>
795
796 * remote-sim.c (simulator_command): Make static, remove
797 declaration.
798
dd694d77
SM
7992019-11-26 Simon Marchi <simon.marchi@efficios.com>
800
801 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
802 static.
803 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
804 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
805 (main): Likewise.
806 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
807 (main): Likewise.
808 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
809 (main): Likewise.
810 * unittests/basic_string_view/element_access/char/1.cc (test01):
811 Likewise.
812 (main): Likewise.
813 * unittests/basic_string_view/element_access/char/empty.cc (main):
814 Likewise.
815 * unittests/basic_string_view/element_access/char/front_back.cc
816 (test01): Likewise.
817 (main): Likewise.
818 * unittests/basic_string_view/inserters/char/2.cc (test05):
819 Likewise.
820 (main): Likewise.
821 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
822 (test01): Likewise.
823 (main): Likewise.
824 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
825 (test01): Likewise.
826 (main): Likewise.
827 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
828 Likewise.
829 * unittests/basic_string_view/operations/compare/char/1.cc
830 (test01): Likewise.
831 (main): Likewise.
832 * unittests/basic_string_view/operations/compare/char/13650.cc
833 (test01): Likewise.
834 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
835 Likewise.
836 (main): Likewise.
837 * unittests/basic_string_view/operations/data/char/1.cc (test01):
838 Likewise.
839 (main): Likewise.
840 * unittests/basic_string_view/operations/find/char/1.cc (test01):
841 Likewise.
842 (main): Likewise.
843 * unittests/basic_string_view/operations/find/char/2.cc (test02):
844 Likewise.
845 (main): Likewise.
846 * unittests/basic_string_view/operations/find/char/3.cc (test03):
847 Likewise.
848 (main): Likewise.
849 * unittests/basic_string_view/operations/find/char/4.cc (main):
850 Likewise.
851 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
852 Likewise.
853 (main): Likewise.
854 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
855 Likewise.
856 (main): Likewise.
857 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
858 Likewise.
859 (main): Likewise.
860 * unittests/basic_string_view/operations/substr/char/1.cc
861 (test01): Likewise.
862 (main): Likewise.
863 * unittests/basic_string_view/operators/char/2.cc (main):
864 Likewise.
865 * unittests/optional/assignment/1.cc (test): Likewise.
866 * unittests/optional/assignment/2.cc (test): Likewise.
867 * unittests/optional/assignment/3.cc (test): Likewise.
868 * unittests/optional/assignment/4.cc (test): Likewise.
869 * unittests/optional/assignment/5.cc (test): Likewise.
870 * unittests/optional/assignment/6.cc (test): Likewise.
871 * unittests/optional/assignment/7.cc (test): Likewise.
872 * unittests/optional/cons/copy.cc (test): Likewise.
873 * unittests/optional/cons/default.cc (test): Likewise.
874 * unittests/optional/cons/move.cc (test): Likewise.
875 * unittests/optional/cons/value.cc (test): Likewise.
876 * unittests/optional/in_place.cc (test): Likewise.
877 * unittests/optional/observers/1.cc (test): Likewise.
878 * unittests/optional/observers/2.cc (test): Likewise.
879
3b5c1d49
SM
8802019-11-26 Simon Marchi <simon.marchi@efficios.com>
881
882 * tui-win.h (tui_set_var_cmd): Remove.
883 * tui-win.c (tui_set_var_cmd): Make static.
884
adce99fe
SM
8852019-11-26 Simon Marchi <simon.marchi@efficios.com>
886
887 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
888 rbreak_command_wrapper): Remove.
889 * symtab.c (rbreak_command_wrapper): Remove.
890
fe3adccf
SM
8912019-11-26 Simon Marchi <simon.marchi@efficios.com>
892
893 * inferior.h (info_terminal_command): Remove declaration.
894 * inflow.c (info_terminal_command): Make static.
895
b926335f
SM
8962019-11-26 Simon Marchi <simon.marchi@efficios.com>
897
898 * inferior.c (exit_inferior_silent): Remove.
899
b62f6f54
SM
9002019-11-26 Simon Marchi <simon.marchi@efficios.com>
901
902 * dictionary.c (dict_empty, mdict_empty): Remove.
903 * dictionary.c (mdict_empty): Remove.
904
cb8c24b6
SM
9052019-11-26 Simon Marchi <simon.marchi@efficios.com>
906
907 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
908 (arc_insn_get_memory_offset): Likewise.
909 (arc_insn_dump): Likewise.
910 * cp-support.c (test_cp_symbol_name_matches): Likewise.
911 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
912 * dictionary.c (dict_iterator_next): Likewise.
913 (dict_iter_match_first): Likewise.
914 (dict_iter_match_next): Likewise.
915 * f-lang.c (evaluate_subexp_f): Likewise.
916 * hppa-tdep.c (hppa_read_pc): Likewise.
917 * i386-tdep.c (i386_floatformat_for_type): Likewise.
918 * parse.c (write_exp_elt_msym): Likewise.
919 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
920 * remote.c (remote_packet_size): Likewise.
921 (remote_notif_stop_parse): Likewise.
922 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
923 * s12z-tdep.c (s12z_disassemble_info): Likewise.
924 * source.c (prepare_path_for_appending): Likewise.
925 * sparc64-linux-tdep.c
926 (sparc64_linux_handle_segmentation_fault); Likewise.
927 * stack.c (frame_selection_by_function_completer): Likewise.
928
781597ff
SM
9292019-11-26 Simon Marchi <simon.marchi@efficios.com>
930
931 * completer.c (set_gdb_completion_word_break_characters):
932 Remove.
933
23baa4cc
SM
9342019-11-26 Simon Marchi <simon.marchi@efficios.com>
935
936 * dwarf-index-write.c: Include dwarf-index-write.h.
937 * mi/mi-interp.c: Include mi/mi-interp.h.
938
23767560
SM
9392019-11-26 Simon Marchi <simon.marchi@efficios.com>
940
941 * aarch32-tdep.c: Include aarch32-tdep.h.
942 * aarch32-tdep.h: Forward-declare struct target_desc.
943
6d91ce9a
CB
9442019-11-26 Christian Biesinger <cbiesinger@google.com>
945
946 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
947 strerror.
948 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
949 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
950
3cf2f237
TV
9512019-11-25 Tom de Vries <tdevries@suse.de>
952
953 * contrib/words.sh: Add -c option.
954
5b89c67a
CB
9552019-11-25 Christian Biesinger <cbiesinger@google.com>
956
957 * solib.c (solib_find_1): Change int to bool.
958 (exec_file_find): Change int to bool.
959 (solib_find): Change int to bool.
960 (solib_read_symbols): Change int to bool.
961 (solib_used): Change int to bool.
962 (solib_add): Change int to bool.
963 (info_sharedlibrary_command): Change int to bool.
964 (solib_contains_address_p): Change int to bool.
965 (solib_keep_data_in_core): Change int to bool.
966 (in_solib_dynsym_resolve_code): Change int to bool.
967 (reload_shared_libraries_1): Change int to bool.
968 (gdb_sysroot_changed): Change int to bool.
969 * solib.h (solib_read_symbols): Change int to bool.
970 (solib_contains_address_p): Change int to bool.
971 (solib_keep_data_in_core): Change int to bool.
972 (in_solib_dynsym_resolve_code): Change int to bool.
973 (libpthread_name_p): Change int to bool.
974
6cc8564b
LM
9752019-11-25 Luis Machado <luis.machado@linaro.org>
976
977 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
978 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
979 (remote_packet_max_chars): New static global.
980 (show_remote_packet_max_chars): New function.
981 (remote_target::putpkt_binary): Adjust to use new
982 remote_packet_max_chars option.
983 (remote_target::getpkt_or_notif_sane_1): Likewise.
984 (_initialize_remote): Register new remote-packet-max-chars option.
985
a7cdaa91
SM
9862019-11-24 Simon Marchi <simon.marchi@efficios.com>
987
988 * m68k-linux-nat.c: Include gdbarch.h.
989
26abc753
TT
9902019-11-24 Tom Tromey <tom@tromey.com>
991
992 * symfile.c (read_symbols): Update.
993 * psymtab.c (require_partial_symbols): Change type of "verbose" to
994 bool.
995 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
996 (psym_lookup_symbol, psym_find_last_source_symtab)
997 (psym_forget_cached_source_info, psym_print_stats)
998 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
999 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1000 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1001 (psym_find_compunit_symtab_by_address)
1002 (maintenance_print_psymbols, maintenance_info_psymtabs)
1003 (maintenance_check_psymtabs): Update.
1004 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1005 bool.
1006
012fc909
TT
10072019-11-22 Tom Tromey <tom@tromey.com>
1008
1009 * observable.h: Update comments.
1010
c83d8d32
TT
10112019-11-22 Tom Tromey <tromey@adacore.com>
1012
1013 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1014 (print_ada_task_info): Don't try to fetch thread id if task is not
1015 alive.
1016
987012b8
CB
10172019-11-22 Christian Biesinger <cbiesinger@google.com>
1018
1019 * ada-exp.y: Update.
1020 * ada-lang.c (sort_choices): Update.
1021 (ada_print_symbol_signature): Update.
1022 (resolve_subexp): Update.
1023 (ada_parse_renaming): Update.
1024 (ada_read_renaming_var_value): Update.
1025 (lesseq_defined_than): Update.
1026 (remove_extra_symbols): Update.
1027 (remove_irrelevant_renamings): Update.
1028 (ada_add_block_symbols): Update.
1029 (ada_collect_symbol_completion_matches): Update.
1030 (ada_is_renaming_symbol): Update.
1031 (aggregate_assign_from_choices): Update.
1032 (ada_evaluate_subexp): Update.
1033 (ada_has_this_exception_support): Update.
1034 (ada_is_non_standard_exception_sym): Update.
1035 (ada_add_exceptions_from_frame): Update.
1036 (ada_add_global_exceptions): Update.
1037 (ada_print_subexp): Update.
1038 * ax-gdb.c (gen_var_ref): Update.
1039 (gen_maybe_namespace_elt): Update.
1040 (gen_expr_for_cast): Update.
1041 (gen_expr): Update.
1042 * block.h: Update.
1043 * blockframe.c (find_pc_partial_function): Update.
1044 * breakpoint.c (print_breakpoint_location): Update.
1045 (update_static_tracepoint): Update.
1046 * btrace.c (ftrace_print_function_name): Update.
1047 (ftrace_function_switched): Update.
1048 * buildsym.c (find_symbol_in_list): Update.
1049 * c-exp.y: Update.
1050 * c-typeprint.c (c_print_typedef): Update.
1051 (c_type_print_template_args): Update.
1052 * cli/cli-cmds.c (edit_command): Update.
1053 (list_command): Update.
1054 (print_sal_location): Update.
1055 * coffread.c (patch_opaque_types): Update.
1056 (process_coff_symbol): Update.
1057 (coff_read_enum_type): Update.
1058 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1059 (convert_one_symbol): Update.
1060 (hash_symname): Update.
1061 (eq_symname): Update.
1062 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1063 * compile/compile-cplus-types.c (debug_print_scope): Update.
1064 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1065 * compile/compile-object-load.c (get_out_value_type): Update.
1066 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1067 (search_symbol_list): Update.
1068 (cp_lookup_symbol_imports_or_template): Update.
1069 * cp-support.c (overload_list_add_symbol): Update.
1070 * ctfread.c (psymtab_to_symtab): Update.
1071 * dbxread.c (cp_set_block_scope): Update.
1072 * dictionary.c (iter_match_first_hashed): Update.
1073 (iter_match_next_hashed): Update.
1074 (insert_symbol_hashed): Update.
1075 (iter_match_next_linear): Update.
1076 * dictionary.h: Update.
1077 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1078 (locexpr_describe_location_piece): Update.
1079 (locexpr_describe_location_1): Update.
1080 (locexpr_generate_c_location): Update.
1081 (loclist_describe_location): Update.
1082 (loclist_generate_c_location): Update.
1083 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1084 (read_func_scope): Update.
1085 (process_enumeration_scope): Update.
1086 (new_symbol): Update.
1087 (dwarf2_const_value): Update.
1088 (dwarf2_symbol_mark_computed): Update.
1089 * eval.c (evaluate_funcall): Update.
1090 (evaluate_subexp_standard): Update.
1091 * expprint.c (print_subexp_standard): Update.
1092 (dump_subexp_body_standard): Update.
1093 * f-valprint.c (info_common_command_for_block): Update.
1094 * findvar.c (get_hosting_frame): Update.
1095 (default_read_var_value): Update.
1096 * go-lang.c (go_symbol_package_name): Update.
1097 * guile/scm-block.c (bkscm_print_block_smob): Update.
1098 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1099 (gdbscm_symbol_name): Update.
1100 (gdbscm_symbol_linkage_name): Update.
1101 (gdbscm_symbol_print_name): Update.
1102 * infcall.c (get_function_name): Update.
1103 * infcmd.c (jump_command): Update.
1104 (finish_command): Update.
1105 * infrun.c (insert_exception_resume_breakpoint): Update.
1106 * linespec.c (canonicalize_linespec): Update.
1107 (create_sals_line_offset): Update.
1108 (convert_linespec_to_sals): Update.
1109 (complete_label): Update.
1110 (find_label_symbols_in_block): Update.
1111 * m2-typeprint.c (m2_print_typedef): Update.
1112 * mdebugread.c (mdebug_reg_to_regnum): Update.
1113 (parse_symbol): Update.
1114 (mylookup_symbol): Update.
1115 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1116 (list_args_or_locals): Update.
1117 * objc-lang.c (compare_selectors): Update.
1118 (info_selectors_command): Update.
1119 (compare_classes): Update.
1120 (info_classes_command): Update.
1121 (find_imps): Update.
1122 * p-typeprint.c (pascal_print_typedef): Update.
1123 * printcmd.c (build_address_symbolic): Update.
1124 (info_address_command): Update.
1125 (print_variable_and_value): Update.
1126 * python/py-framefilter.c (extract_sym): Update.
1127 (py_print_single_arg): Update.
1128 * python/py-symbol.c (sympy_str): Update.
1129 (sympy_get_name): Update.
1130 (sympy_get_linkage_name): Update.
1131 * python/python.c (gdbpy_rbreak): Update.
1132 * record-btrace.c (btrace_get_bfun_name): Update.
1133 (btrace_call_history): Update.
1134 * rust-lang.c (rust_print_typedef): Update.
1135 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1136 * stabsread.c (stab_reg_to_regnum): Update.
1137 (define_symbol): Update.
1138 (read_enum_type): Update.
1139 (common_block_end): Update.
1140 (cleanup_undefined_types_1): Update.
1141 (scan_file_globals): Update.
1142 * stack.c (print_frame_arg): Update.
1143 (print_frame_args): Update.
1144 (find_frame_funname): Update.
1145 (info_frame_command_core): Update.
1146 (iterate_over_block_locals): Update.
1147 (print_block_frame_labels): Update.
1148 (do_print_variable_and_value): Update.
1149 (iterate_over_block_arg_vars): Update.
1150 (return_command): Update.
1151 * symmisc.c (dump_symtab_1): Update.
1152 (print_symbol): Update.
1153 * symtab.c (eq_symbol_entry): Update.
1154 (symbol_cache_dump): Update.
1155 (lookup_language_this): Update.
1156 (find_pc_sect_line): Update.
1157 (skip_prologue_sal): Update.
1158 (symbol_search::compare_search_syms): Update.
1159 (treg_matches_sym_type_name): Update.
1160 (search_symbols): Update.
1161 (print_symbol_info): Update.
1162 (rbreak_command): Update.
1163 (completion_list_add_symbol): Update.
1164 (find_gnu_ifunc): Update.
1165 (get_symbol_address): Update.
1166 (search_module_symbols): Update.
1167 (info_module_subcommand): Update.
1168 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1169 (SYMBOL_LINKAGE_NAME): Remove.
1170 (SYMBOL_DEMANGLED_NAME): Remove.
1171 (SYMBOL_PRINT_NAME): Remove.
1172 (SYMBOL_SEARCH_NAME): Remove.
1173 * tracepoint.c (set_traceframe_context): Update.
1174 (validate_actionline): Update.
1175 (collection_list::collect_symbol): Update.
1176 (encode_actions_1): Update.
1177 (info_scope_command): Update.
1178 (print_one_static_tracepoint_marker): Update.
1179 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1180 * valops.c (address_of_variable): Update.
1181 (find_overload_match): Update.
1182 (find_oload_champ): Update.
1183
c9d95fa3
CB
11842019-11-22 Christian Biesinger <cbiesinger@google.com>
1185
1186 * ada-lang.c (ada_lookup_simple_minsym): Update.
1187 (ada_collect_symbol_completion_matches): Update.
1188 * ada-tasks.c (read_atcb): Update.
1189 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1190 (amd64_windows_skip_trampoline_code): Update.
1191 * arm-tdep.c (skip_prologue_function): Update.
1192 (arm_skip_stack_protector): Update.
1193 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1194 (arm_wince_skip_main_prologue): Update.
1195 * ax-gdb.c (gen_expr): Update.
1196 * block.c (call_site_for_pc): Update.
1197 * blockframe.c (find_pc_partial_function): Update.
1198 * breakpoint.c (set_breakpoint_location_function): Update.
1199 * btrace.c (ftrace_print_function_name): Update.
1200 (ftrace_function_switched): Update.
1201 * c-valprint.c (print_unpacked_pointer): Update.
1202 * coffread.c (coff_symfile_read): Update.
1203 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1204 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1205 * dwarf-index-write.c (write_psymbols): Update.
1206 * dwarf2loc.c (call_site_to_target_addr): Update.
1207 (func_verify_no_selftailcall): Update.
1208 (tailcall_dump): Update.
1209 (call_site_find_chain_1): Update.
1210 (dwarf_expr_reg_to_entry_parameter): Update.
1211 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1212 * eval.c (evaluate_funcall): Update.
1213 (evaluate_subexp_standard): Update.
1214 (evaluate_subexp_for_sizeof): Update.
1215 * expprint.c (print_subexp_standard): Update.
1216 (dump_subexp_body_standard): Update.
1217 * frame.c (get_prev_frame_always_1): Update.
1218 * frv-tdep.c (frv_skip_main_prologue): Update.
1219 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1220 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1221 (gnuv3_get_typename_from_type_info): Update.
1222 (gnuv3_skip_trampoline): Update.
1223 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1224 * i386-tdep.c (i386_skip_main_prologue): Update.
1225 (i386_pe_skip_trampoline_code): Update.
1226 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1227 * infcall.c (get_function_name): Update.
1228 * linespec.c (minsym_found): Update.
1229 * linux-fork.c (info_checkpoints_command): Update.
1230 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1231 (m32c_m16c_pointer_to_address): Update.
1232 * maint.c (maintenance_translate_address): Update.
1233 * minsyms.c (add_minsym_to_hash_table): Update.
1234 (add_minsym_to_demangled_hash_table): Update.
1235 (lookup_minimal_symbol_mangled): Update.
1236 (lookup_minimal_symbol_demangled): Update.
1237 (lookup_minimal_symbol_linkage): Update.
1238 (lookup_minimal_symbol_text): Update.
1239 (lookup_minimal_symbol_by_pc_name): Update.
1240 (minimal_symbol_is_less_than): Update.
1241 (compact_minimal_symbols): Update.
1242 (build_minimal_symbol_hash_tables): Update.
1243 (find_solib_trampoline_target): Update.
1244 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1245 (mips_skip_pic_trampoline_code): Update.
1246 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1247 * objc-lang.c (info_selectors_command): Update.
1248 (info_classes_command): Update.
1249 (find_methods): Update.
1250 (find_imps): Update.
1251 * p-valprint.c (pascal_val_print): Update.
1252 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1253 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1254 * printcmd.c (build_address_symbolic): Update.
1255 (info_symbol_command): Update.
1256 * psymtab.c (psymbol_name_matches): Update.
1257 (match_partial_symbol): Update.
1258 (lookup_partial_symbol): Update.
1259 (print_partial_symbols): Update.
1260 (sort_pst_symbols): Update.
1261 (maintenance_check_psymtabs): Update.
1262 * python/py-framefilter.c (py_print_frame): Update.
1263 * python/python.c (gdbpy_rbreak): Update.
1264 * record-btrace.c (btrace_get_bfun_name): Update.
1265 (btrace_call_history): Update.
1266 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1267 (rs6000_skip_trampoline_code): Update.
1268 * sol-thread.c (info_cb): Update.
1269 * stabsread.c (scan_file_globals): Update.
1270 * stack.c (find_frame_funname): Update.
1271 (info_frame_command_core): Update.
1272 * symmisc.c (dump_msymbols): Update.
1273 * symtab.c (symbol_natural_name): Rename to..,
1274 (general_symbol_info::natural_name): ...this.
1275 (symbol_demangled_name): Rename to...
1276 (general_symbol_info::demangled_name): ...this.
1277 (symbol_search_name): Rename to...
1278 (general_symbol_info::search_name): ...this.
1279 (symbol_matches_search_name): Update.
1280 (find_pc_sect_line): Update.
1281 (skip_prologue_sal): Update.
1282 (search_symbols): Update.
1283 (print_msymbol_info): Update.
1284 (rbreak_command): Update.
1285 (completion_list_add_msymbol): Update.
1286 (completion_list_objc_symbol): Update.
1287 (get_msymbol_address): Update.
1288 * symtab.h (struct general_symbol_info): Add member functions
1289 natural_name (), linkage_name (), print_name (), demangled_name (),
1290 and search_name ().
1291 (SYMBOL_NATURAL_NAME): Update.
1292 (symbol_natural_name): Move to a member function on general_symbol_info.
1293 (SYMBOL_DEMANGLED_NAME): Update.
1294 (symbol_demangled_name): Move to a member function on
1295 general_symbol_info.
1296 (SYMBOL_SEARCH_NAME): Update.
1297 (symbol_search_name): Move to a member function on general_symbol_info.
1298 (MSYMBOL_NATURAL_NAME): Remove.
1299 (MSYMBOL_LINKAGE_NAME): Remove.
1300 (MSYMBOL_PRINT_NAME): Remove.
1301 (MSYMBOL_DEMANGLED_NAME): Remove.
1302 (MSYMBOL_SEARCH_NAME): Remove.
1303 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1304
f8bab2d6
CB
13052019-11-22 Christian Biesinger <cbiesinger@google.com>
1306
1307 * symtab.c (create_demangled_names_hash): Use per_bfd->
1308 minimal_symbol_count for computing the initial size, if greater
1309 than our default size.
1310
85e7588d
TV
13112019-11-22 Tom de Vries <tdevries@suse.de>
1312
1313 * contrib/words.sh: Improve words extraction.
1314
f6180073
TV
13152019-11-22 Tom de Vries <tdevries@suse.de>
1316
1317 * contrib/words.sh: Combine sed invocations.
1318
f10ffa41
CB
13192019-11-21 Christian Biesinger <cbiesinger@google.com>
1320
1321 * Makefile.in: Update.
1322 * demangle.c: Rename to...
1323 * gdb-demangle.c: ..this.
1324 (is_cplus_marker): Change return type to bool.
1325 (_initialize_demangler): Rename to...
1326 (_initialize_gdb_demangle): ...this.
1327 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1328 * symtab.h (demangle): Remove declaration; instead include
1329 gdb-demangle.h.
1330
6ba18521
TT
13312019-11-21 Tom Tromey <tromey@adacore.com>
1332
1333 * gdbsupport/format.c (format_pieces): Parse %I64d.
1334 * unittests/format_pieces-selftests.c (test_windows_formats): New
1335 function.
1336 (run_tests): Call it.
1337
34877895
PJ
13382019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1339
1340 Byte reverse display of variables with DW_END_big, DW_END_little
1341 (DW_AT_endianity) dwarf attributes if different than the native
1342 byte order.
1343 * ada-lang.c (ada_value_binop):
1344 Use type_byte_order instead of gdbarch_byte_order.
1345 * ada-valprint.c (printstr):
1346 (ada_val_print_string):
1347 * ada-lang.c (value_pointer):
1348 (ada_value_binop):
1349 Use type_byte_order instead of gdbarch_byte_order.
1350 * c-lang.c (c_get_string):
1351 Use type_byte_order instead of gdbarch_byte_order.
1352 * c-valprint.c (c_val_print_array):
1353 Use type_byte_order instead of gdbarch_byte_order.
1354 * cp-valprint.c (cp_print_class_member):
1355 Use type_byte_order instead of gdbarch_byte_order.
1356 * dwarf2loc.c (rw_pieced_value):
1357 Use type_byte_order instead of gdbarch_byte_order.
1358 * dwarf2read.c (read_base_type): Handle DW_END_big,
1359 DW_END_little
1360 * f-lang.c (f_get_encoding):
1361 Use type_byte_order instead of gdbarch_byte_order.
1362 * findvar.c (default_read_var_value):
1363 Use type_byte_order instead of gdbarch_byte_order.
1364 * gdbtypes.c (check_types_equal):
1365 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1366 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1367 and TYPE_ENDIANITY_LITTLE if set.
1368 (type_byte_order): new function.
1369 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1370 (struct main_type) <flag_endianity_not_default>:
1371 New field.
1372 (type_byte_order): New function.
1373 * infcmd.c (default_print_one_register_info):
1374 Use type_byte_order instead of gdbarch_byte_order.
1375 * p-lang.c (pascal_printstr):
1376 Use type_byte_order instead of gdbarch_byte_order.
1377 * p-valprint.c (pascal_val_print):
1378 Use type_byte_order instead of gdbarch_byte_order.
1379 * printcmd.c (print_scalar_formatted):
1380 Use type_byte_order instead of gdbarch_byte_order.
1381 * solib-darwin.c (darwin_current_sos):
1382 Use type_byte_order instead of gdbarch_byte_order.
1383 * solib-svr4.c (solib_svr4_r_ldsomap):
1384 Use type_byte_order instead of gdbarch_byte_order.
1385 * stap-probe.c (stap_modify_semaphore):
1386 Use type_byte_order instead of gdbarch_byte_order.
1387 * target-float.c (target_float_same_format_p):
1388 Use type_byte_order instead of gdbarch_byte_order.
1389 * valarith.c (scalar_binop):
1390 (value_bit_index):
1391 Use type_byte_order instead of gdbarch_byte_order.
1392 * valops.c (value_cast):
1393 Use type_byte_order instead of gdbarch_byte_order.
1394 * valprint.c (generic_emit_char):
1395 (generic_printstr):
1396 (val_print_string):
1397 Use type_byte_order instead of gdbarch_byte_order.
1398 * value.c (unpack_long):
1399 (unpack_bits_as_long):
1400 (unpack_value_bitfield):
1401 (modify_field):
1402 (pack_long):
1403 (pack_unsigned_long):
1404 Use type_byte_order instead of gdbarch_byte_order.
1405 * findvar.c (unsigned_pointer_to_address):
1406 (signed_pointer_to_address):
1407 (unsigned_address_to_pointer):
1408 (address_to_signed_pointer):
1409 (default_read_var_value):
1410 (default_value_from_register):
1411 Use type_byte_order instead of gdbarch_byte_order.
1412 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1413 Use type_byte_order instead of gdbarch_byte_order.
1414 * riscv-tdep.c (riscv_print_one_register_info):
1415 Use type_byte_order instead of gdbarch_byte_order.
1416
87fb00ea
SM
14172019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1418
1419 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1420 (current_ui_gdb_stdin_ptr): Likewise.
1421 (current_ui_gdb_stderr_ptr): Likewise.
1422 (current_ui_gdb_stdlog_ptr): Likewise.
1423 (current_ui_current_uiout_ptr): Likewise.
1424 (gen_ret_current_ui_field_ptr): Remove.
1425
65d1cd5f
TV
14262019-11-21 Tom de Vries <tdevries@suse.de>
1427
1428 PR gdb/24956
1429 * cli/cli-script.c (execute_control_command): Only switch to
1430 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1431
9f6ad286
TT
14322019-11-19 Tom Tromey <tom@tromey.com>
1433
1434 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1435 Now static. Change type of "name".
1436 (tui_set_win_height_command): Don't copy "arg".
1437 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1438 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1439
435d3d88
AT
14402019-11-19 Ali Tamur <tamur@google.com>
1441
1442 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1443 "if (attr != nullptr)".
1444 (dwarf2_find_base_address): Likewise.
1445 (dwarf2_build_include_psymtabs): Likewise.
1446 (read_cutu_die_from_dwo): Likewise.
1447 (read_func_scope): Likewise.
1448 (read_call_site_scope): Likewise.
1449 (dwarf2_get_pc_bounds): Likewise.
1450 (dwarf2_record_block_ranges): Likewise.
1451 (dwarf2_add_field): Likewise.
1452 (dwarf2_add_member_fn): Likewise.
1453 (read_structure_type): Likewise.
1454 (read_enumeration_type): Likewise.
1455 (read_array_type): Likewise.
1456 (read_array_order): Likewise.
1457 (read_set_type): Likewise.
1458 (read_common_block): Likewise.
1459 (read_tag_reference_type): Likewise.
1460 (read_tag_string_type): Likewise.
1461 (read_subroutine_type): Likewise.
1462 (read_base_type): Likewise.
1463 (read_subrange_type): Likewise.
1464 (new_symbol): Likewise.
1465 (prepare_one_comp_unit): Likewise.
1466
c9739b6a
TT
14672019-11-19 Tom Tromey <tromey@adacore.com>
1468
1469 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1470 result in error when DebugActiveProcess fails.
1471
494409bb
SDJ
14722019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1473 Pedro Alves <palves@redhat.com>
1474
1475 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1476 * target.c (target_stack::push): Call 'unpush' if there's a
1477 target on top of the stack.
1478
2e953aca
PW
14792019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1480
1481 * python/py-block.c (blpy_dealloc): Call tp_free.
1482 (blpy_block_syms_dealloc): Likewise.
1483 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1484 * python/py-inferior.c (infpy_dealloc): Likewise.
1485 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1486 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1487 * python/py-symbol.c (sympy_dealloc): Likewise.
1488 * python/py-symtab.c (stpy_dealloc): Likewise.
1489 * python/py-type.c (typy_iterator_dealloc): Likewise.
1490
6edc43ec
CB
14912019-11-18 Christian Biesinger <cbiesinger@google.com>
1492
1493 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1494 constructor instead of using a class initializer.
1495
cd850b40
CB
14962019-11-15 Christian Biesinger <cbiesinger@google.com>
1497
1498 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1499 * configure: Regenerate.
1500 * configure.ac: Don't source common.host.
1501 * gdbsupport/common.host: Remove.
1502 * gdbsupport/mingw-strerror.c: Remove.
1503 * gdbsupport/posix-strerror.c: Rename to...
1504 * gdbsupport/safe-strerror.c: ...this.
1505
53fea9c7
CB
15062019-11-15 Christian Biesinger <cbiesinger@google.com>
1507
1508 * maint.c (scoped_command_stats::print_time): Use localtime_r
1509 instead of localtime (provided through gnulib if necessary).
1510 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1511 of ctime.
1512
f8e27d88
CB
15132019-11-15 Christian Biesinger <cbiesinger@google.com>
1514
1515 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1516 avoid compile errors.
1517
5abebf3c
CB
15182019-11-15 Christian Biesinger <cbiesinger@google.com>
1519
1520 * config.in: Regenerate.
1521 * configure: Regenerate.
1522 * gdbsupport/common.m4: No longer check for strerror_r.
1523 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1524 POSIX version of strerror_r, now that gnulib provides it if
1525 necessary.
1526
9a351667
CB
15272019-11-14 Christian Biesinger <cbiesinger@google.com>
1528
1529 * README (`configure' options): Update.
1530
55708e99
TT
15312019-11-14 Tom Tromey <tromey@adacore.com>
1532
1533 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1534 expected type for the RHS if the LHS is a convenience variable.
1535
4b09bb2e
SM
15362019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1537
1538 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1539 Provide explicit default and copy constructor.
1540
bd454f8b
PW
15412019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1542
1543 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1544 only call Py_INCREF (newbp) in the bppy_pending_object case.
1545
d1aa3cf0
TT
15462019-11-13 Tom Tromey <tromey@adacore.com>
1547
1548 PR build/25182:
1549 * psympriv.h (partial_symbol): Remove static assert.
1550 * symtab.h (general_symbol_info, symbol): Remove static assert.
1551
e06f3d6e
AB
15522019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * gdbsupport/format.c (format_pieces::format_pieces): Support
1555 printf 'z' size modifier.
1556 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1557 * printcmd.c (ui_printf): Handle size_t_arg.
1558 * ui-out.c (ui_out::vmessage): Likewise.
1559 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1560 function.
1561 (run_tests): Call test_format_int_sizes.
1562
468c0cbb
CB
15632019-11-12 Christian Biesinger <cbiesinger@google.com>
1564
1565 * ada-exp.y (write_ambiguous_var): Update.
1566 * buildsym.c (add_symbol_to_list): Update.
1567 * dwarf2read.c (read_variable): Update.
1568 (new_symbol): Update.
1569 * jit.c (finalize_symtab): Update.
1570 * language.c (language_alloc_type_symbol): Update.
1571 * symtab.c (fixup_symbol_section): Update.
1572 (initialize_objfile_symbol_1): Move code to...
1573 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1574 (allocate_symbol): Update.
1575 (allocate_template_symbol): Update.
1576 (get_symbol_address): Update.
1577 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1578 of having as a field, and add a constructor.
1579 (SYMBOL_VALUE): Update.
1580 (SYMBOL_VALUE_ADDRESS): Update.
1581 (SET_SYMBOL_VALUE_ADDRESS): Update.
1582 (SYMBOL_VALUE_BYTES): Update.
1583 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1584 (SYMBOL_BLOCK_VALUE): Update.
1585 (SYMBOL_VALUE_CHAIN): Update.
1586 (SYMBOL_LANGUAGE): Update.
1587 (SYMBOL_SECTION): Update.
1588 (SYMBOL_OBJ_SECTION): Update.
1589 (SYMBOL_SET_LANGUAGE): Update.
1590 (SYMBOL_SET_LINKAGE_NAME): Update.
1591 (SYMBOL_SET_NAMES): Update.
1592 (SYMBOL_NATURAL_NAME): Update.
1593 (SYMBOL_LINKAGE_NAME): Update.
1594 (SYMBOL_DEMANGLED_NAME): Update.
1595 (SYMBOL_SEARCH_NAME): Update.
1596 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1597 (struct symbol): Update.
1598 (struct template_symbol): Update.
1599 (struct rust_vtable_symbol): Update.
1600 * xcoffread.c (SYMBOL_DUP): Update.
1601
ed2c82c3
TT
16022019-11-12 Tom Tromey <tom@tromey.com>
1603
1604 * tui/tui-layout.c (show_layout): Set current_layout.
1605 (show_source_disasm_command, show_data)
1606 (show_source_or_disasm_and_command): Don't set current_layout.
1607
d9fcefd5
TT
16082019-11-12 Tom Tromey <tom@tromey.com>
1609
1610 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1611
45e42163
TT
16122019-11-12 Tom Tromey <tom@tromey.com>
1613
1614 * tui/tui-win.c (resize_message): New global.
1615 (show_tui_resize_message): New function.
1616 (tui_async_resize_screen): Print message if requested.
1617 (_initialize_tui_win): Add tui-resize-message setting.
1618 * NEWS: Add entry for new commands.
1619
c86d74cc
TT
16202019-11-11 Tom Tromey <tom@tromey.com>
1621
1622 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1623 functions.
1624
7b7b9424
CB
16252019-11-11 Christian Biesinger <cbiesinger@google.com>
1626
1627 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1628
086baaf1
AB
16292019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1630
1631 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1632 function.
1633 * python/python-internal.h (gdbpy_lookup_static_symbols):
1634 Declare new function.
1635 * python/python.c (python_GdbMethods): Add
1636 gdb.lookup_static_symbols method.
1637 * NEWS: Mention gdb.lookup_static_symbols.
1638
09ff83af
AB
16392019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1640
1641 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1642 static block of current object file first. Also fix typo in
1643 header comment.
1644
eb2dd8df
AB
16452019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1646
1647 * stack.c (set_last_displayed_sal): Delete.
1648 (last_displayed_sal_valid): Delete.
1649 (last_displayed_pspace): Delete.
1650 (last_displayed_addr): Delete.
1651 (last_displayed_symtab): Delete.
1652 (last_displayed_line): Delete.
1653 (class last_displayed_symtab_info_type): New.
1654 (last_displayed_symtab_info): New static global variable.
1655 (print_frame_info): Call methods on last_displayed_symtab_info.
1656 (clear_last_displayed_sal): Update header comment, and make use of
1657 last_displayed_symtab_info.
1658 (last_displayed_sal_is_valid): Likewise.
1659 (get_last_displayed_pspace): Likewise.
1660 (get_last_displayed_addr): Likewise.
1661 (get_last_displayed_symtab): Likewise.
1662 (get_last_displayed_line): Likewise.
1663 (get_last_displayed_sal): Likewise.
1664 * stack.h (clear_last_displayed_sal): Update header comment.
1665 (last_displayed_sal_is_valid): Likewise.
1666 (get_last_displayed_pspace): Likewise.
1667 (get_last_displayed_addr): Likewise.
1668 (get_last_displayed_symtab): Likewise.
1669 (get_last_displayed_line): Likewise.
1670 (get_last_displayed_sal): Likewise.
1671
62137775
AB
16722019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * stack.c (frame_show_address): Convert return type to bool.
1675 * stack.h (frame_show_address): Likewise, and update header
1676 comment.
1677
cf57ad6d
AB
16782019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1679
1680 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1681 * unittests/vec-utils-selftests.c: New file.
1682 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1683
0b026263
TT
16842019-11-10 Tom Tromey <tom@tromey.com>
1685
1686 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1687 (tui_highlight_win): Likewise.
1688 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1689 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1690 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1691 Don't set can_highlight.
1692
b049ce2d
TT
16932019-11-10 Tom Tromey <tom@tromey.com>
1694
1695 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1696 Remove unused declaration.
1697
992a7040
TT
16982019-11-08 Tom Tromey <tromey@adacore.com>
1699
1700 * top.c (read_command_file): Update.
1701 (command_line_input): Make return type const.
1702 * python/py-gdb-readline.c: Update.
1703 * linespec.c (decode_line_2): Update.
1704 * defs.h (command_line_input): Make return type const.
1705 * cli/cli-script.c (read_next_line): Make return type const.
1706 * ada-lang.c (get_selections): Update.
1707
ca3a04f6
CB
17082019-11-06 Christian Biesinger <cbiesinger@google.com>
1709
1710 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1711 * mi/mi-main.c (output_cores): Likewise.
1712 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1713 (linux_xfer_osdata_modules): Likewise.
1714 * remote.c (register_remote_support_xml): Likewise.
1715 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1716 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1717
e0eac551
TT
17182019-11-06 Tom Tromey <tom@tromey.com>
1719
1720 * tui/tui-interp.c: Don't include readline.h.
1721 * tui/tui-hooks.c: Don't include readline.h.
1722 * symmisc.c: Include tilde.h, not readline.h.
1723 * symfile.c: Include tilde.h, not readline.h.
1724 * source.c: Include tilde.h, not readline.h.
1725 * solib.c: Include tilde.h, not readline.h.
1726 * psymtab.c: Include tilde.h, not readline.h.
1727 * exec.c: Include tilde.h, not readline.h.
1728 * corelow.c: Include tilde.h, not readline.h.
1729 * cli/cli-dump.c: Include tilde.h, not readline.h.
1730 * cli/cli-cmds.c: Don't include readline.h.
1731
825165c5
TT
17322019-11-05 Tom Tromey <tom@tromey.com>
1733
1734 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1735 (tui_disassemble): Set addr_size.
1736 (tui_disasm_window::set_contents): Use addr_size.
1737
91ae903f
TT
17382019-11-05 Tom Tromey <tom@tromey.com>
1739
1740 * rust-lang.c (rust_language_defn): Update.
1741 * python/py-value.c (valpy_string): Call c_get_string.
1742 * p-lang.c (pascal_language_defn): Update.
1743 * opencl-lang.c (opencl_language_defn): Update.
1744 * objc-lang.c (objc_language_defn): Update.
1745 * m2-lang.c (m2_language_defn): Update.
1746 * language.c (unknown_language_defn, auto_language_defn): Update.
1747 (default_get_string): Remove.
1748 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1749 * go-lang.c (go_language_defn): Update.
1750 * f-lang.c (f_language_defn): Update.
1751 * d-lang.c (d_language_defn): Update.
1752 * c-lang.c (c_language_defn, cplus_language_defn)
1753 (asm_language_defn, minimal_language_defn): Update.
1754 * ada-lang.c (ada_language_defn): Update.
1755 * language.h (struct language_defn) <la_get_string>: Remove.
1756 (LA_GET_STRING): Remove.
1757 (default_get_string): Don't declare.
1758
1df2f9ef
TT
17592019-11-05 Tom Tromey <tom@tromey.com>
1760
1761 * tui/tui-source.h (struct tui_source_window): Inline
1762 constructor. Remove destructor.
1763 <style_changed, m_observable>: Move to superclass.
1764 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1765 (struct tui_source_window_base): Move private members to end.
1766 <style_changed, m_observable>: Move from tui_source_window.
1767 * tui/tui-winsource.c (tui_copy_source_line): Move from
1768 tui-source.c. Rename from copy_source_line. Add special handling
1769 for negative line number.
1770 (tui_source_window_base::style_changed): Move from
1771 tui_source_window.
1772 (tui_source_window_base): Register observer.
1773 (~tui_source_window_base): New.
1774 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1775 rename.
1776 (tui_source_window::set_contents): Use tui_copy_source_line.
1777 (tui_source_window::tui_source_window): Move to tui-source.h.
1778 (tui_source_window::~tui_source_window): Remove.
1779 (tui_source_window::style_changed): Move to superclass.
1780 * tui/tui-disasm.c (tui_disassemble): Create string file with
1781 styling, when possible. Add "addr_size" parameter.
1782 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1783 Don't compute maximum size.
1784 (len_without_escapes): New function
1785
5d051055
TT
17862019-11-05 Tom Tromey <tom@tromey.com>
1787
1788 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1789 std::string.
1790 * tui/tui-winsource.c (tui_show_source_line): Update.
1791 * tui/tui-source.c (tui_source_window::set_contents): Update.
1792 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1793
ade7beea
CB
17942019-11-05 Christian Biesinger <cbiesinger@google.com>
1795
1796 * symtab.h (gdb_static_assert): Put && operator at the beginning
1797 of the line instead of the end.
1798
3573abe1
CB
17992019-11-04 Christian Biesinger <cbiesinger@google.com>
1800
1801 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1802 and sizeof (symbol).
1803 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1804
dae8b3eb
RO
18052019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1806
1807 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1808 * configure.host: Mark *-*-solaris2.10* obsolete.
1809 * configure.tgt: Mark Solaris < 11 obsolete.
1810 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1811 Update target triplet.
1812
5df96a4e
TT
18132019-11-01 Tom Tromey <tromey@adacore.com>
1814
1815 * utils.c (print_sys_errmsg): Simplify.
1816
b7481649
TT
18172019-11-01 Tom Tromey <tromey@adacore.com>
1818
1819 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1820
e48f6033
CB
18212019-11-01 Christian Biesinger <cbiesinger@google.com>
1822
1823 * configure: Regenerate.
1824 * configure.ac: Remove check for strerror_r.
1825 * gdbsupport/common.m4: Check for strerror_r.
1826
bd5766ec
LM
18272019-11-01 Luis Machado <luis.machado@linaro.org>
1828
1829 PR gdb/25124
1830
1831 * arm-tdep.c (arm_per_objfile): Rename to ...
1832 (arm_per_bfd): ... this.
1833 (arm_objfile_data_key): Rename to ...
1834 (arm_bfd_data_key): ... this.
1835 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1836 data.
1837 (arm_record_special_symbol): Likewise.
1838
e1709896
AB
18392019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1840
1841 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1842 end.
1843 * c-typeprint.c (c_print_typedef): Likewise.
1844 * f-typeprint.c (f_print_typedef): Likewise.
1845 * m2-typeprint.c (m2_print_typedef): Likewise.
1846 * p-typeprint.c (pascal_print_typedef): Likewise.
1847 * rust-lang.c (rust_print_typedef): Likewise.
1848 * symtab.c (print_symbol_info): Print a newline after calling
1849 typedef_print.
1850
165f8965
AB
18512019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1852
1853 * symtab.c (info_module_cmdlist): New variable.
1854 (info_module_command): New function.
1855 (search_module_symbols): New function.
1856 (info_module_subcommand): New function.
1857 (struct info_modules_var_func_options): New struct.
1858 (info_modules_var_func_options_defs): New variable.
1859 (make_info_modules_var_func_options_def_group): New function.
1860 (info_module_functions_command): New function.
1861 (info_module_variables_command): New function.
1862 (info_module_var_func_command_completer): New function.
1863 (_initialize_symtab): Register new 'info module functions' and
1864 'info module variables' commands.
1865 * symtab.h (typedef symbol_search_in_module): New typedef.
1866 (search_module_symbols): Declare new function.
1867 * NEWS: Mention new commands.
1868
59c35742
AB
18692019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1870
1871 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1872 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1873 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1874 MODULES_DOMAIN.
1875 (scan_partial_symbols): Only create partial module symbols for non
1876 declarations.
1877 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1878 and MODULES_DOMAIN.
1879 * symtab.c (search_domain_name): Likewise.
1880 (search_symbols): Likewise.
1881 (print_symbol_info): Likewise.
1882 (symtab_symbol_info): Likewise.
1883 (info_modules_command): New function.
1884 (_initialize_symtab): Register 'info modules' command.
1885 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1886 * NEWS: Mention new 'info modules' command.
1887
aed61d02
PW
18882019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1889
1890 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1891 and $_gdb_maint_setting_str.
1892
9ad9b77d
PW
18932019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1894
1895 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1896 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1897 (str_value_from_setting, gdb_setting_str_internal_fn)
1898 (gdb_maint_setting_str_internal_fn): New functions.
1899 (_initialize_cli_cmds): Define the new convenience functions.
1900 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1901 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1902
8d6efaa2
CB
19032019-10-31 Christian Biesinger <cbiesinger@google.com>
1904
1905 * agent.c (set_can_use_agent): When the setting is turned on,
1906 look up agent symbols if we don't have them yet.
1907 (agent_new_objfile): Don't look up agent symbols when the agent
1908 setting is off.
1909
33cb1647
CB
19102019-10-31 Christian Biesinger <cbiesinger@google.com>
1911
1912 * config.in: Regenerate.
1913
b231e86a
CB
19142019-10-31 Christian Biesinger <cbiesinger@google.com>
1915
1916 * configure: Regenerate.
1917 * configure.ac: Check for strerror_r.
1918 * gdbsupport/common-utils.h (safe_strerror): Change return value
1919 to const char * and document that this function is now threadsafe.
1920 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1921 thread_local and call strerror_r, if available.
1922 * utils.c (perror_string): Update.
1923 (print_sys_errmsg): Update.
1924
a2726d4f
LM
19252019-10-31 Luis Machado <luis.machado@linaro.org>
1926
1927 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1928 objfile_key.
1929 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1930 objfile to fetch per-bfd data.
1931 (arm_find_exidx_entry): Likewise.
1932
75cafaa6
CB
19332019-10-31 Christian Biesinger <cbiesinger@google.com>
1934
1935 * gdbsupport/agent.c (debug_agent): Change type to bool.
1936 (use_agent): Likewise.
1937 (all_agent_symbols_look_up): Likewise.
1938 (agent_loaded_p): Change return value to bool.
1939 (agent_look_up_symbols): Update.
1940 (agent_capability_check): Change return value to bool.
1941 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1942 (debug_agent): Change type to bool.
1943 (use_agent): Likewise.
1944 (agent_capability_check): Change return value to bool.
1945
808590ec
CB
19462019-10-30 Christian Biesinger <cbiesinger@google.com>
1947
1948 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1949 (build_minimal_symbol_hash_tables): Code to clear the table moved
1950 to clear_minimal_symbol_hash_tables.
1951 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1952 when needed.
1953
f18ad8a1
SM
19542019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1955
1956 * infcmd.c: Remove includes.
1957 * infrun.c: Remove includes.
1958
de93309a
SM
19592019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1960
1961 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1962 (grow_vect): Remove declaration.
1963 (ada_type_of_array): Remove declaration.
1964 (ada_update_initial_language): Remove declaration.
1965 (ada_fold_name): Remove declaration.
1966 (ada_fill_in_ada_prototype): Remove declaration.
1967 (user_select_syms): Remove declaration.
1968 (get_selections): Remove declaration.
1969 (ada_tag_type): Remove declaration.
1970 (ada_value_tag): Remove declaration.
1971 (ada_is_others_clause): Remove declaration.
1972 (ada_in_variant): Remove declaration.
1973 (ada_value_struct_elt): Remove declaration.
1974 (ada_attribute_name): Remove declaration.
1975 (ada_system_address_type): Remove declaration.
1976 * ada-lang.c (ada_watch_location_expression): Make static.
1977 (GROW_VECT): Move here from ada-lang.h.
1978 (grow_vect): Make static.
1979 (ada_update_initial_language): Make static.
1980 (ada_fold_name): Make static.
1981 (ada_type_of_array): Make static.
1982 (encoded_ordered_before): Move up.
1983 (sort_choices): Move up.
1984 (print_signatures): Move up.
1985 (ada_print_symbol_signature): Move up.
1986 (get_selections): Move up and make static.
1987 (user_select_syms): Move up and make static.
1988 (ada_value_struct_elt): Move up and make static.
1989 (ada_tag_type): Make static.
1990 (ada_value_tag): Make static.
1991 (ada_is_others_clause): Make static.
1992 (ada_in_variant): Make static.
1993 (ada_attribute_name): Make static.
1994
cdc46a9f
SM
19952019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1996
1997 * ada-lang.c: Remove includes.
1998 * ada-typeprint.c: Remove includes.
1999 * ada-valprint.c: Remove includes.
2000
90421c56
SM
20012019-10-29 Simon Marchi <simon.marchi@efficios.com>
2002
2003 * addrmap.c: Add static assertions of type size, moved from
2004 _initialize_addrmap.
2005 (_initialize_addrmap): Remove.
2006
31edb802
CB
20072019-10-29 Christian Biesinger <cbiesinger@google.com>
2008
2009 * coffread.c (record_minimal_symbol): Update.
2010 (process_coff_symbol): Update.
2011 * dbxread.c (read_dbx_symtab): Update.
2012 * dwarf2read.c (add_partial_symbol): Update.
2013 (fixup_go_packaging): Update.
2014 (load_partial_dies): Update.
2015 (new_symbol): Update.
2016 * elfread.c (record_minimal_symbol): Change signature to use
2017 gdb::string_view instead of name+len.
2018 (elf_symtab_read): Update.
2019 (elf_rel_plt_read): Update.
2020 * mdebugread.c (parse_partial_symbols): Update.
2021 (handle_psymbol_enumerators): Update.
2022 (new_symbol): Update.
2023 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2024 to use gdb::string_view instead of name+len.
2025 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2026 * psympriv.h (add_psymbol_to_list): Likewise.
2027 * psymtab.c (add_psymbol_to_bcache): Likewise.
2028 (add_psymbol_to_list): Likewise.
2029 * stabsread.c (define_symbol): Update.
2030 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2031 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2032 (symbol_set_names): Likewise.
2033 * xcoffread.c (scan_xcoff_symtab): Update.
2034
0c921b21
CB
20352019-10-29 Christian Biesinger <cbiesinger@google.com>
2036
2037 * symtab.h (symbol_set_names): Document that copy_name must be
2038 set to true for non-nullterminated strings.
2039 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2040 linkage_name if the entry was not found and we need to demangle.
2041
35e65c49
CB
20422019-10-29 Christian Biesinger <cbiesinger@google.com>
2043
2044 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2045 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2046 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2047 * gdbsupport/gdb_binary_search.h: New file.
2048
ed2a2229
CB
20492019-10-29 Christian Biesinger <cbiesinger@google.com>
2050
2051 * NEWS: Mention new --with-system-gdbinit-dir option.
2052 * config.in: Regenerate.
2053 * configure: Regenerate.
2054 * configure.ac: Add new option --with-system-gdbinit-dir.
2055 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2056 for a ".gdb" suffix.
2057 * main.c (get_init_files): Change system_gdbinit argument to
2058 a vector and return the files in SYSTEM_GDBINIT_DIR in
2059 addition to SYSTEM_GDBINIT.
2060 (captured_main_1): Update.
2061 (print_gdb_help): Update.
2062 * top.c (print_gdb_configuration): Also print the value of
2063 SYSTEM_GDBINIT_DIR.
2064
87f34879
CB
20652019-10-28 Christian Biesinger <cbiesinger@google.com>
2066
2067 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2068 that takes gdb::string_view arguments.
2069
30baf67b
TV
20702019-10-26 Tom de Vries <tdevries@suse.de>
2071
2072 * aarch64-linux-tdep.c: Fix typos in comments.
2073 * aarch64-tdep.c: Same.
2074 * ada-lang.c: Same.
2075 * amd64-nat.c: Same.
2076 * arc-tdep.c: Same.
2077 * arch/aarch64-insn.c: Same.
2078 * block.c: Same.
2079 * breakpoint.h: Same.
2080 * btrace.h: Same.
2081 * c-varobj.c: Same.
2082 * cli/cli-decode.c: Same.
2083 * cli/cli-script.c: Same.
2084 * cli/cli-utils.h: Same.
2085 * coff-pe-read.c: Same.
2086 * coffread.c: Same.
2087 * compile/compile-cplus-symbols.c: Same.
2088 * compile/compile-object-run.c: Same.
2089 * completer.c: Same.
2090 * corelow.c: Same.
2091 * cp-support.c: Same.
2092 * demangle.c: Same.
2093 * dwarf-index-write.c: Same.
2094 * dwarf2-frame.c: Same.
2095 * dwarf2-frame.h: Same.
2096 * eval.c: Same.
2097 * frame-base.h: Same.
2098 * frame.h: Same.
2099 * gdbcmd.h: Same.
2100 * gdbtypes.h: Same.
2101 * gnu-nat.c: Same.
2102 * guile/scm-objfile.c: Same.
2103 * i386-tdep.c: Same.
2104 * i386-tdep.h: Same.
2105 * infcall.c: Same.
2106 * infcall.h: Same.
2107 * linux-nat.c: Same.
2108 * m68k-tdep.c: Same.
2109 * macroexp.c: Same.
2110 * memattr.c: Same.
2111 * mi/mi-cmd-disas.c: Same.
2112 * mi/mi-getopt.h: Same.
2113 * mi/mi-main.c: Same.
2114 * minsyms.c: Same.
2115 * nat/aarch64-sve-linux-sigcontext.h: Same.
2116 * objfiles.h: Same.
2117 * ppc-linux-nat.c: Same.
2118 * ppc-linux-tdep.c: Same.
2119 * ppc-tdep.h: Same.
2120 * progspace.h: Same.
2121 * prologue-value.h: Same.
2122 * python/py-evtregistry.c: Same.
2123 * python/py-instruction.h: Same.
2124 * record-btrace.c: Same.
2125 * record-full.c: Same.
2126 * remote.c: Same.
2127 * rs6000-tdep.c: Same.
2128 * ser-tcp.c: Same.
2129 * sol-thread.c: Same.
2130 * sparc-sol2-tdep.c: Same.
2131 * sparc64-tdep.c: Same.
2132 * stabsread.c: Same.
2133 * symfile.c: Same.
2134 * symtab.h: Same.
2135 * target.c: Same.
2136 * tracepoint.c: Same.
2137 * tui/tui-data.h: Same.
2138 * tui/tui-io.c: Same.
2139 * tui/tui-win.c: Same.
2140 * tui/tui.c: Same.
2141 * unittests/rsp-low-selftests.c: Same.
2142 * user-regs.h: Same.
2143 * utils.c: Same.
2144 * utils.h: Same.
2145 * valarith.c: Same.
2146 * valops.c: Same.
2147 * valprint.c: Same.
2148 * valprint.h: Same.
2149 * value.c: Same.
2150 * value.h: Same.
2151 * varobj.c: Same.
2152 * x86-nat.h: Same.
2153 * xtensa-tdep.c: Same.
2154
1834d45f
AT
21552019-10-25 Ali Tamur <tamur@google.com>
2156
2157 * charset.c (find_charset_names): Reflect API change.
2158
5396ae17
CB
21592019-10-25 Christian Biesinger <cbiesinger@google.com>
2160
2161 * symtab.c (struct demangled_name_entry): Change demangled name
2162 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2163 part of the struct anymore.
2164 (symbol_set_names): No longer obstack allocate + copy the demangled
2165 name, just store the allocated name from bfd.
2166
93878f47
TT
21672019-10-25 Tom Tromey <tromey@adacore.com>
2168
2169 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2170 (bsearch_cie_cmp, add_cie): Remove.
2171 (find_cie): Reimplement.
2172 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2173 (dwarf2_build_frame_info): Update.
2174
7b71fc97
L
21752019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2176
2177 PR gdb/25126
2178 * symfile.c (reread_symbols): Call forget_cached_source_info to
2179 clear the stale source cache.
2180
cbb5a2ea
CB
21812019-10-24 Christian Biesinger <cbiesinger@google.com>
2182
2183 * configure: Regenerate.
2184 * configure.ac: Remove code that sets python_has_threads.
2185
71737c43
CB
21862019-10-24 Christian Biesinger <cbiesinger@google.com>
2187
2188 * config.in: Regenerate.
2189 * configure: Regenerate.
2190 * configure.ac: Remove the code that uses sed to get the python
2191 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2192
33d569b7
AB
21932019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2194
2195 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2196 error paths.
2197
f16f7b7c
TT
21982019-10-23 Tom Tromey <tom@tromey.com>
2199
2200 * arc-tdep.c: Remove ".." from include.
2201 * frv-tdep.c: Remove ".." from include.
2202 * lm32-tdep.c: Remove ".." from include.
2203 * microblaze-tdep.c: Remove ".." from include.
2204 * or1k-tdep.h: Remove ".." from include.
2205 * s12z-tdep.c: Remove ".." from include.
2206 * Makefile.in (OPCODES_CFLAGS): Add comment.
2207 (TOP_CFLAGS): New variable.
2208 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2209
6999161a
TT
22102019-10-23 Tom Tromey <tom@tromey.com>
2211
2212 * Makefile.in (READLINE_DIR): Update.
2213
12e7c35e
TBA
22142019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2215
2216 * infcall.c (call_function_by_hand_dummy): Fix the function
2217 comment. And extract out a code section into...
2218 (reserve_stack_space): ...this new function.
2219
37055cad
TBA
22202019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2221
2222 * infcall.c (value_arg_coerce): Remove an unused parameter.
2223 (call_function_by_hand_dummy): Update the call to
2224 'value_arg_coerce'.
2225
39bcc47c
TBA
22262019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2227
2228 * infcall.c (call_function_by_hand_dummy): Refactor.
2229
bd888c0f
TBA
22302019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2231
2232 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2233
c12d372d
TT
22342019-10-23 Tom Tromey <tom@tromey.com>
2235
2236 * configure: Rebuild.
2237 * configure.ac: Don't check for sigprocmask.
2238 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2239
4d0b984b
TT
22402019-10-23 Tom Tromey <tom@tromey.com>
2241
2242 * configure: Rebuild.
2243 * acinclude.m4: Use m4_include, not sinclude.
2244
7e785608
TV
22452019-10-23 Tom de Vries <tdevries@suse.de>
2246
2247 PR breakpoints/24687
2248 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2249
403772ef
CB
22502019-10-22 Christian Biesinger <cbiesinger@google.com>
2251
2252 * symtab.c (struct demangled_name_entry) <language>: Change from
2253 bitfield to regular variable.
2254
3a494279
CB
22552019-10-22 Christian Biesinger <cbiesinger@google.com>
2256
2257 * symtab.c (struct demangled_name_entry): Add a constructor.
2258 (free_demangled_name_entry): New function to call the destructor
2259 for demangled_name_entry.
2260 (create_demangled_names_hash): Pass free_demangled_name_entry to
2261 htab_create_alloc.
2262 (symbol_set_names): Call placement new for demangled_name_entry.
2263 * utils.c: No longer include xxhash.h here, now that fast_hash
2264 is inlined in the header.
2265 * utils.h: Instead, include it here.
2266
ccb1ba62
CB
22672019-10-22 Christian Biesinger <cbiesinger@google.com>
2268
2269 * Makefile.in: Link with libxxhash.
2270 * config.in: Regenerate.
2271 * configure: Regenerate.
2272 * configure.ac: Search for libxxhash.
2273 * utils.c (fast_hash): Use xxhash if present.
2274
1a6ff1a9
CB
22752019-10-22 Christian Biesinger <cbiesinger@google.com>
2276
2277 * utils.h (fast_hash): New function.
2278 * symtab.c (hash_demangled_name_entry): Call new function
2279 fast_hash.
2280
7bb43059
CB
22812019-10-22 Christian Biesinger <cbiesinger@google.com>
2282
2283 * symtab.c (struct demangled_name_entry): Change type of mangled
2284 to gdb::string_view. Also adds a constructor that takes the
2285 mangled name.
2286 (hash_demangled_name_entry): Update.
2287 (eq_demangled_name_entry): Update.
2288 (free_demangled_name_entry): New function to call the destructor
2289 now that this is not a POD anymore.
2290 (create_demangled_names_hash): Pass free_demangled_name_entry to
2291 htab_create_alloc.
2292 (symbol_set_names): Update.
2293
7ba99d21
AT
22942019-10-21 Ali Tamur <tamu@google.com>
2295
2296 * dwarf2read.c (dir_index): Change type.
2297 (file_name_index): Likewise.
2298 (line_header::include_dir_at): Change comment and implementation on
2299 whether it is DWARF 5.
2300 (line_header::is_valid_file_index): New function.
2301 (line_header::file_name_at): Change comment and implementation on
2302 whether it is DWARF 5.
2303 (line_header::file_names): Change to private field renamed as
2304 m_file_names and introduce a new accessor method.
2305 (line_header::file_names_size): New method.
2306 (line_header::include_dirs): Change to private field and rename as
2307 m_include_dirs.
2308 (dw2_get_file_names_reader): Define local var at a smaller scope and
2309 reflect API change.
2310 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2311 (process_structure_scope): Likewise.
2312 (line_header::add_include_dir): Change message and reflect renaming.
2313 (line_header::add_file_name): Likewise.
2314 (read_formatted_entries): Handle DW_FORM_data16.
2315 (dwarf_decode_line_header): Fix line header length calculation.
2316 (psymtab_include_file_name): Change comment and API.
2317 (lnp_state_machine::m_file): Update comment and reflect type change.
2318 (lnp_state_machine::record_line): Reflect type change.
2319 (dwarf_decode_lines): Reflect API change.
2320 (file_file_name): Likewise.
2321 (file_full_name): Likewise.
2322
45f47c3a
AB
23232019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2324
2325 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2326
e5f3c0e3
TT
23272019-10-21 Tom Tromey <tom@tromey.com>
2328
2329 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2330
a0a461e5
TT
23312019-10-21 Tom Tromey <tom@tromey.com>
2332
2333 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2334 NM_H. Use AC_CONFIG_LINKS.
2335 * configure: Rebuild.
2336 * Makefile.in (NM_H): New variable.
2337 (generated_files): Add NM_H. Remove gcore.
2338 (nm.h, stamp-nmh): New targets.
2339
54d83b8d
TT
23402019-10-20 Tom Tromey <tom@tromey.com>
2341
2342 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2343 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2344 obsolete comment.
2345 (put_objfile_before): Now static.
2346
23771117
SM
23472019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2348
2349 * gdbsupport/common-utils.h (startswith): Change return type to
2350 bool.
2351
39ef2f62
CB
23522019-10-19 Christian Biesinger <cbiesinger@google.com>
2353
2354 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2355 * breakpoint.c (bp_locations_compare): Rename to...
2356 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2357 (update_global_location_list): Use std::sort instead of qsort.
2358 * buildsym.c (compare_line_numbers): Rename to...
2359 (lte_is_less_than): ...this, and change to std::sort semantics.
2360 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2361 instead of qsort.
2362 * disasm.c (compare_lines): Rename to...
2363 (line_is_less_than): ...this, and change to std::sort semantics.
2364 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2365 of qsort.
2366 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2367 (fde_is_less_than): ...this, and change to std::sort semantics.
2368 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2369 * mdebugread.c (compare_blocks):
2370 (block_is_less_than): ...this, and change to std::sort semantics.
2371 (sort_blocks): Call std::sort instead of qsort.
2372 * objfiles.c (qsort_cmp): Rename to...
2373 (sort_cmp): ...this, and change to std::sort semantics.
2374 (update_section_map): Call std::sort instead of qsort.
2375 * remote.c (compare_pnums): Remove.
2376 (map_regcache_remote_table): Call std::sort instead of qsort.
2377 * utils.c (compare_positive_ints): Remove.
2378 * utils.h (compare_positive_ints): Remove.
2379 * xcoffread.c (compare_lte): Remove.
2380 (arrange_linetable): Call std::sort instead of qsort.
2381
f71433ee
SDJ
23822019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2383
2384 * symfile.c (init_entry_point_info): Fix typo.
2385 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2386
85102364
TV
23872019-10-18 Tom de Vries <tdevries@suse.de>
2388
2389 * aarch64-tdep.c: Fix typos in comments.
2390 * ada-lang.c: Same.
2391 * ada-tasks.c: Same.
2392 * alpha-tdep.c: Same.
2393 * alpha-tdep.h: Same.
2394 * amd64-nat.c: Same.
2395 * amd64-windows-tdep.c: Same.
2396 * arc-tdep.c: Same.
2397 * arc-tdep.h: Same.
2398 * arch-utils.c: Same.
2399 * arm-nbsd-tdep.c: Same.
2400 * arm-tdep.c: Same.
2401 * ax-gdb.c: Same.
2402 * blockframe.c: Same.
2403 * btrace.c: Same.
2404 * c-varobj.c: Same.
2405 * coff-pe-read.c: Same.
2406 * coffread.c: Same.
2407 * cris-tdep.c: Same.
2408 * darwin-nat.c: Same.
2409 * dbxread.c: Same.
2410 * dcache.c: Same.
2411 * disasm.c: Same.
2412 * dtrace-probe.c: Same.
2413 * dwarf-index-write.c: Same.
2414 * dwarf2-frame-tailcall.c: Same.
2415 * dwarf2-frame.c: Same.
2416 * dwarf2read.c: Same.
2417 * eval.c: Same.
2418 * exceptions.c: Same.
2419 * fbsd-tdep.c: Same.
2420 * findvar.c: Same.
2421 * frame.c: Same.
2422 * frv-tdep.c: Same.
2423 * gnu-v3-abi.c: Same.
2424 * go32-nat.c: Same.
2425 * h8300-tdep.c: Same.
2426 * hppa-tdep.c: Same.
2427 * i386-linux-tdep.c: Same.
2428 * i386-tdep.c: Same.
2429 * ia64-libunwind-tdep.c: Same.
2430 * ia64-tdep.c: Same.
2431 * infcmd.c: Same.
2432 * infrun.c: Same.
2433 * linespec.c: Same.
2434 * linux-nat.c: Same.
2435 * linux-thread-db.c: Same.
2436 * machoread.c: Same.
2437 * mdebugread.c: Same.
2438 * mep-tdep.c: Same.
2439 * mn10300-tdep.c: Same.
2440 * namespace.c: Same.
2441 * objfiles.c: Same.
2442 * opencl-lang.c: Same.
2443 * or1k-tdep.c: Same.
2444 * osabi.c: Same.
2445 * ppc-linux-nat.c: Same.
2446 * ppc-linux-tdep.c: Same.
2447 * ppc-sysv-tdep.c: Same.
2448 * printcmd.c: Same.
2449 * procfs.c: Same.
2450 * record-btrace.c: Same.
2451 * record-full.c: Same.
2452 * remote-fileio.c: Same.
2453 * remote.c: Same.
2454 * rs6000-tdep.c: Same.
2455 * s12z-tdep.c: Same.
2456 * score-tdep.c: Same.
2457 * ser-base.c: Same.
2458 * ser-go32.c: Same.
2459 * skip.c: Same.
2460 * sol-thread.c: Same.
2461 * solib-svr4.c: Same.
2462 * solib.c: Same.
2463 * source.c: Same.
2464 * sparc-nat.c: Same.
2465 * sparc-sol2-tdep.c: Same.
2466 * sparc-tdep.c: Same.
2467 * sparc64-tdep.c: Same.
2468 * stabsread.c: Same.
2469 * stack.c: Same.
2470 * symfile.c: Same.
2471 * symtab.c: Same.
2472 * target-descriptions.c: Same.
2473 * target-float.c: Same.
2474 * thread.c: Same.
2475 * utils.c: Same.
2476 * valops.c: Same.
2477 * valprint.c: Same.
2478 * value.c: Same.
2479 * varobj.c: Same.
2480 * windows-nat.c: Same.
2481 * xcoffread.c: Same.
2482 * xstormy16-tdep.c: Same.
2483 * xtensa-tdep.c: Same.
2484
c5adaa19
TT
24852019-10-17 Tom Tromey <tromey@adacore.com>
2486
2487 * configure: Rebuild.
2488 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2489 in AC_CONFIG_FILES invocation.
2490 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2491 new-style config.status invocation.
2492
405feb71
TV
24932019-10-17 Tom de Vries <tdevries@suse.de>
2494
2495 * arm-nbsd-nat.c: Fix typos in comments.
2496 * arm-tdep.c: Same.
2497 * darwin-nat-info.c: Same.
2498 * dwarf2read.c: Same.
2499 * elfread.c: Same.
2500 * event-top.c: Same.
2501 * findvar.c: Same.
2502 * gdbtypes.c: Same.
2503 * hppa-tdep.c: Same.
2504 * i386-tdep.c: Same.
2505 * jit.c: Same.
2506 * main.c: Same.
2507 * mdebugread.c: Same.
2508 * moxie-tdep.c: Same.
2509 * nto-procfs.c: Same.
2510 * osabi.c: Same.
2511 * ppc-linux-tdep.c: Same.
2512 * remote.c: Same.
2513 * riscv-tdep.c: Same.
2514 * s390-tdep.c: Same.
2515 * sh-tdep.c: Same.
2516 * sparc-linux-tdep.c: Same.
2517 * sparc-nat.c: Same.
2518 * stack.c: Same.
2519 * target-descriptions.c: Same.
2520 * top.c: Same.
2521 * varobj.c: Same.
2522
befcd486
TT
25232019-10-16 Tom Tromey <tom@tromey.com>
2524
2525 * objfiles.h (struct objfile) <original_name>: Now const.
2526
17bfe554
CB
25272019-10-16 Christian Biesinger <cbiesinger@google.com>
2528
2529 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2530 pass on to sigsetjmp's second argument.
2531 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2532
950b7495
KS
25332019-10-16 Keith Seitz <keiths@redhat.com>
2534
2535 PR gdb/23567
2536 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2537 sections whose size is greater than the file size.
2538
ff371ec9
JW
25392019-10-16 Jim Wilson <jimw@sifive.com>
2540
2541 * riscv-tdep.c (riscv_gcc_target_options): New.
2542 (riscv_gnu_triplet_regexp): New.
2543 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2544 set_gdbarch_gnu_triplet_regexp.
2545
fec4e896
CB
25462019-10-16 Christian Biesinger <cbiesinger@google.com>
2547
2548 * Makefile.in: Add xml-builtin.h.
2549 * features/feature_to_c.sh: Add an include for xml-builtin.h
2550 to ensure that the compiler checks that the types match.
2551 * xml-builtin.h: New file.
2552 * xml-support.c (fetch_xml_builtin): Add missing const.
2553 * xml-support.h: Remove declaration of xml_builtins.
2554
d10eccaa
TV
25552019-10-16 Tom de Vries <tdevries@suse.de>
2556
2557 PR tdep/25096
2558 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2559 (amd64_classify_aggregate): ... here.
2560 (amd64_classify_aggregate_field): Handled fiels of nested structs
2561 recursively.
2562
745ff14e
TV
25632019-10-16 Tom de Vries <tdevries@suse.de>
2564
2565 PR tdep/24104
2566 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2567 that handles 'theclass'.
2568
791b7405
AB
25692019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2570
2571 * linespec.c (decode_digits_ordinary): Update comment.
2572 * make-target-delegates: No longer need to handle VEC case.
2573 * memrange.c (normalize_mem_ranges): Update comment.
2574 * namespace.c (add_using_directive): Update comment.
2575 * objc-lang.c (uniquify_strings): Update comment.
2576 * ppc-linux-nat.c (struct thread_points): Update comment.
2577 * probe.h (find_probes_in_objfile): Update comment.
2578 * target.h (enum flash_preserve_mode): Update comment.
2579 * varobj.c (varobj_restrict_range): Update comment.
2580 * varobj.h (varobj_list_children): Update comment.
2581
0dc32745
AB
25822019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2583
2584 * Makefile.in: Remove references to vec.h and vec.c.
2585 * aarch64-tdep.c: No longer include vec.h.
2586 * ada-lang.c: Likewise.
2587 * ada-lang.h: Likewise.
2588 * arm-tdep.c: Likewise.
2589 * ax.h: Likewise.
2590 * breakpoint.h: Likewise.
2591 * charset.c: Likewise.
2592 * cp-support.h: Likewise.
2593 * dtrace-probe.c: Likewise.
2594 * dwarf2read.c: Likewise.
2595 * extension.h: Likewise.
2596 * gdb_bfd.c: Likewise.
2597 * gdbsupport/gdb_vecs.h: Likewise.
2598 * gdbsupport/vec.c: Remove.
2599 * gdbsupport/vec.h: Remove.
2600 * gdbthread.h: Likewise.
2601 * guile/scm-type.c: Likewise.
2602 * inline-frame.c: Likewise.
2603 * machoread.c: Likewise.
2604 * memattr.c: Likewise.
2605 * memrange.h: Likewise.
2606 * namespace.h: Likewise.
2607 * nat/linux-btrace.h: Likewise.
2608 * osdata.c: Likewise.
2609 * parser-defs.h: Likewise.
2610 * progspace.h: Likewise.
2611 * python/py-type.c: Likewise.
2612 * record-btrace.c: Likewise.
2613 * rust-exp.y: Likewise.
2614 * solib-target.c: Likewise.
2615 * stap-probe.c: Likewise.
2616 * target-descriptions.c: Likewise.
2617 * target-memory.c: Likewise.
2618 * target.h: Likewise.
2619 * varobj.c: Likewise.
2620 * varobj.h: Likewise.
2621 * xml-support.h: Likewise.
2622
ae640021
AB
26232019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2624
2625 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2626 Update for new std::vector based implementation.
2627 (process_psymtab_comp_unit_reader): Likewise.
2628 (scan_partial_symbols): Likewise.
2629 (recursively_compute_inclusions): Likewise.
2630 (compute_compunit_symtab_includes): Likewise.
2631 (process_imported_unit_die): Likewise.
2632 (queue_and_load_dwo_tu): Likewise.
2633 (follow_die_sig_1): Likewise.
2634 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2635 (typedef dwarf2_per_cu_ptr): Remove.
2636 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2637 function.
2638 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2639 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2640 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2641 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2642 std::vector.
2643
55dfc88f
TT
26442019-10-15 Tom Tromey <tromey@adacore.com>
2645
2646 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2647 TID.
2648
96b49c5e
TT
26492019-10-15 Tom Tromey <tromey@adacore.com>
2650
2651 * windows-nat.c (windows_nat_target::fetch_registers)
2652 (windows_nat_target::store_registers): Rename "pid" to "tid".
2653
953cff56
TT
26542019-10-15 Tom Tromey <tromey@adacore.com>
2655
2656 * gdbarch.h, gdbarch.c: Rebuild.
2657 * gdbarch.sh (gcc_target_options): Change return type to
2658 std::string.
2659 * compile/compile.c (get_args): Update.
2660 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2661 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2662 std::string.
2663 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2664 std::string.
2665 * arch-utils.c (default_gcc_target_options): Return std::string.
2666 * arch-utils.h (default_gcc_target_options): Return std::string.
2667 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2668
81e6b8eb
CB
26692019-10-15 Christian Biesinger <cbiesinger@google.com>
2670
2671 * breakpoint.c (breakpoint_chain): Make static.
2672 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2673 of accessing breakpoint_chain.
2674
95da600f
CB
26752019-10-15 Christian Biesinger <cbiesinger@google.com>
2676
2677 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2678 to a gdb::function_view and return value to bool.
2679 * breakpoint.h (iterate_over_breakpoints): Likewise.
2680 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2681 (pop_dummy_frame): Update.
2682 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2683 (gdbscm_breakpoints): Update.
2684 * python/py-breakpoint.c (build_bp_list): Update.
2685 (gdbpy_breakpoints): Update.
2686 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2687 Update.
2688 (bpfinishpy_handle_stop): Update.
2689 (bpfinishpy_handle_exit): Update.
2690 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2691 (svr4_update_solib_event_breakpoints): Update.
2692
ba18312d
AA
26932019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2694
2695 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2696 when unwrapping single-field structs.
2697
6acc1a0b
SM
26982019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2699
2700 * dwarf2read.c: Remove includes.
2701
284782de
SM
27022019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2703
2704 * ui-out.c (ui_out::call_do_message): Silence
2705 -Wformat-nonliteral warning.
2706
073bbbb0
SM
27072019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2708
2709 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2710 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2711 include: readline/tilde.h.
2712
7b9a15e1
CB
27132019-10-12 Christian Biesinger <cbiesinger@google.com>
2714
2715 * remote.c (remote_target::get_trace_status): Remove declaration of
2716 trace_regblock_size.
2717
cc8dee1f
CB
27182019-10-12 Christian Biesinger <cbiesinger@google.com>
2719
2720 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2721 (show_user): Remove declaration of cmdlist.
2722 * cli/cli-cmds.h (max_user_call_depth): Declare.
2723 * cli/cli-script.c (execute_user_command): Remove declaration
2724 of max_user_call_depth.
2725
a83d4ef6
JW
27262019-10-11 Jim Wilson <jimw@sifive.com>
2727
5f93c5a6
JW
2728 * gdbsupport/print-utils.h (pulongest): Fix comment.
2729 (plongest): Likewise.
2730 (phex): Add missing comment, mention leading zeros.
2731 (phex_nz): Add mention of no leading zeros to comment.
2732
a83d4ef6
JW
2733 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2734 plongest instead of unsigned long long cast.
2735
26344e0c
CB
27362019-10-10 Christian Biesinger <cbiesinger@google.com>
2737
2738 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2739 for external_editor_command and gdbtk_test.
2740
c2c440a9
CB
27412019-10-10 Christian Biesinger <cbiesinger@google.com>
2742
2743 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2744 * varobj.c (varobjdebug): Move comment to...
2745 * varobj.h (varobjdebug): ...here, and declare.
2746
a31bff9d
TT
27472019-10-09 Tom Tromey <tom@tromey.com>
2748
2749 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2750 erase_data_content.
2751
7523da63
TT
27522019-10-09 Tom Tromey <tom@tromey.com>
2753
2754 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2755 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2756 * tui/tui-command.c (tui_cmd_window::resize)
2757 (tui_refresh_cmd_win): Update.
2758 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2759 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2760 * tui/tui-data.c (~tui_gen_win_info): Remove.
2761 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2762 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2763 (tui_redisplay_readline, tui_mld_flush)
2764 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2765 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2766 (tui_data_window::erase_data_content)
2767 (tui_data_item_window::rerender)
2768 (tui_data_item_window::refresh_window): Update.
2769 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2770 (box_win, tui_gen_win_info::make_window)
2771 (tui_gen_win_info::make_visible): Update.
2772 (tui_delete_win): Remove.
2773 * tui/tui-winsource.c
2774 (tui_source_window_base::do_erase_source_content): Update.
2775 (tui_show_source_line, tui_source_window_base::update_tab_width)
2776 (tui_source_window_base::update_exec_info): Update.
2777 * tui/tui-data.h (struct curses_deleter): New.
2778 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2779 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2780
a7798e7f
TT
27812019-10-09 Tom Tromey <tom@tromey.com>
2782
2783 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2784
5c45899e
TT
27852019-10-09 Tom Tromey <tom@tromey.com>
2786
2787 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2788 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2789
6d7fd9aa
TT
27902019-10-09 Tom Tromey <tom@tromey.com>
2791
2792 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2793 window height directly.
2794 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2795 declare.
2796 * tui/tui-layout.c (tui_default_win_height): Remove.
2797 (tui_default_win_viewport_height): Remove.
2798
d2dd1084
TT
27992019-10-09 Tom Tromey <tom@tromey.com>
2800
2801 * tui/tui.h: Remove comments.
2802
cff32449
TV
28032019-10-09 Tom de Vries <tdevries@suse.de>
2804
2805 * python/lib/gdb/printer/bound_registers.py: Use
2806 '^builtin_type_bound128' as regexp argument for
2807 add_builtin_pretty_printer.
2808
6a25e8a2
CB
28092019-10-09 Christian Biesinger <cbiesinger@google.com>
2810
2811 * guile/guile.c (guile_extension_script_ops): Remove forward
2812 declaration and mark as static.
2813 (guile_script_ops): Likewise.
2814 (extension_language_guile): Move further down in the file so
2815 it can reference the definitions for guile_{extension_,}script_ops.
2816
6d9d6da4
AA
28172019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2818
2819 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2820 except SORTL, DFLTCC, and KDSA.
2821
3abea05d
TT
28222019-10-08 Tom Tromey <tromey@adacore.com>
2823
2824 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2825 (struct safe_symbol_file_add_args): Remove.
2826
dde996e2
TT
28272019-10-08 Tom Tromey <tromey@adacore.com>
2828
2829 * windows-nat.c: Don't include buildsym-legacy.h.
2830
cd6fdaa1
TT
28312019-10-08 Tom Tromey <tromey@adacore.com>
2832
2833 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2834
79bb1944
CB
28352019-10-08 Christian Biesinger <cbiesinger@google.com>
2836
2837 * gdbtypes.c (overload_debug): Move comment to header.
2838 * gdbtypes.h (overload_debug): Declare.
2839 * valops.c: Remove declaration of overload_debug, instead
2840 include gdbtypes.h.
2841
34916edc
CB
28422019-10-08 Christian Biesinger <cbiesinger@google.com>
2843
2844 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2845 through _().
2846 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2847 move comment...
2848 * language.h (lang_frame_mismatch_warn): ... here. Also add
2849 declaration.
2850 * top.c (lang_frame_mismatch_warn): Remove declaration.
2851 (check_frame_language_change): Pass lang_frame_mismatch_warn
2852 through _().
2853
bad5c026
CB
28542019-10-07 Christian Biesinger <cbiesinger@google.com>
2855
2856 * c-lang.h (vtbl_ptr_name): Declare.
2857 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2858 it from the header.
2859 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2860
51f1fdc3
CB
28612019-10-07 Christian Biesinger <cbiesinger@google.com>
2862
2863 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2864 gdb_static_assert.
2865
30d1f018
WP
28662019-10-07 Weimin Pan <weimin.pan@oracle.com>
2867
606813d5
WP
2868 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2869 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2870 * ctfread.c: New file.
2871 * ctfread.h: New file.
2872 * elfread.c: Include ctfread.h.
2873 (struct elfinfo text_p): New member ctfsect.
2874 (elf_locate_sections): Mark CTF section.
2875 (elf_symfile_read): Call elfctf_build_psymtabs.
2876 * Makefile.in (LIBCTF): Add.
2877 (CLIBS): Use it.
2878 (CDEPS): Likewise.
2879 (DIST): Add ctfread.c.
606813d5
WP
2880
28812019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2882
2883 * ctfread.c (struct nextfield): Renamed to ...
2884 (struct ctf_nextfield): ... this.
2885 (struct field_info): Renamed to ...
2886 (strut ctf_field_info): ... this.
2887 (attach_fields_to_type): Update for renamed structures.
2888 (ctf_add_member_cb): Likewise.
2889 (ctf_add_enum_member_cb): Likewise.
2890 (process_struct_members): Likewise.
2891 (process_enum_type): Likewise.
30d1f018 2892
518fe38c
WP
28932019-10-07 Weimin Pan <weimin.pan@oracle.com>
2894
2895 * tracectf.h: Rename, was ctf.h.
2896 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2897 * tracefile.c: Likewise.
2898 * tracepoint.c: Remove unused include ctf.h.
2899 * mi/mi-main.c: Likewise.
2900 * Makefile.in Replace ctf.c with tracectf.c.
2901
225f296a
JB
29022019-10-06 Joel Brobecker <brobecker@adacore.com>
2903
2904 * version.in: Change version number to "9.0.50.DATE-git".
2905
77c2dba3
TT
29062019-10-03 Tom Tromey <tom@tromey.com>
2907
2908 PR rust/24976:
2909 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2910
179aed7f
AB
29112019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2912
2913 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2914 cp_search_name_hash.
2915 * NEWS: Add entry about nested function support.
2916
0a4b0913
AB
29172019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2918 Andrew Burgess <andrew.burgess@embecosm.com>
2919
2920 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2921 for nested static variables when searchin VAR_DOMAIN.
2922 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2923 global scope, update comment.
2924 (add_partial_subprogram): Call add_partial_subprogram recursively
2925 for nested subroutines when processinng Fortran.
2926 (load_partial_dies): Process the child entities of a subprogram
2927 when processing Fortran.
2928 (partial_die_parent_scope): Handle building scope
2929 for Fortran nested functions.
2930 (process_die): Record that nested functions have a scope.
2931 (new_symbol): Always record Fortran subprograms on the global
2932 symbol list.
2933 (determine_prefix): How to build the prefix for Fortran
2934 subprograms.
2935
d8c06f22
AB
29362019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2937
2938 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2939 have just sent the thread a SIGSTOP and are waiting for it to
2940 arrive.
2941
a8b3b8e9
AB
29422019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 * btrace.c (btrace_add_pc): Remove whitespace before the template
2945 parameter in 'std::vector <...>'.
2946 (parse_xml_btrace_block): Likewise.
2947 (btrace_maint_decode_pt): Likewise.
2948 (btrace_maint_update_packets): Likewise.
2949 (btrace_maint_print_packets): Likewise.
2950 * btrace.h (struct btrace_maint_info): Likewise.
2951 * dwarf2read.c (struct type_unit_group): Likewise.
2952 (build_type_psymtabs_reader): Likewise.
2953 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2954 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2955 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2956
4d825eab
TV
29572019-10-03 Tom de Vries <tdevries@suse.de>
2958
2959 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2960 the first line of the help text for set/show style metadata.
2961
80fd2826
TT
29622019-10-02 Tom Tromey <tromey@adacore.com>
2963
2964 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2965 * gdbsupport/common-inferior.c: New file.
2966 * infcmd.c (startup_with_shell): Don't define.
2967 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2968 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2969 * inferior.h (startup_with_shell): Don't declare.
2970
70054538
CB
29712019-10-02 Christian Biesinger <cbiesinger@google.com>
2972
2973 * gdbsupport/gdb_assert.h: Include errors.h.
2974 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
2975
37f6a7f4
TT
29762019-10-02 Tom Tromey <tromey@adacore.com>
2977
2978 * NEWS: Add $_ada_exception entry.
2979 * ada-lang.c (struct ada_catchpoint): Add constructor.
2980 <m_kind>: New member.
2981 (allocate_location_exception, re_set_exception): Remove
2982 "ex" parameter.
2983 (should_stop_exception): Compute $_ada_exception.
2984 (check_status_exception, print_it_exception)
2985 (print_one_exception, print_mention_exception): Remove
2986 "ex" parameter.
2987 (allocate_location_catch_exception, re_set_catch_exception)
2988 (check_status_exception, print_it_catch_exception)
2989 (print_one_catch_exception, print_mention_catch_exception)
2990 (print_recreate_catch_exception)
2991 (allocate_location_catch_exception_unhandled)
2992 (re_set_catch_exception_unhandled)
2993 (check_status_exception, print_it_catch_exception_unhandled)
2994 (print_one_catch_exception_unhandled)
2995 (print_mention_catch_exception_unhandled)
2996 (print_recreate_catch_exception_unhandled)
2997 (allocate_location_catch_assert, re_set_catch_assert)
2998 (check_status_assert, print_it_catch_assert)
2999 (print_one_catch_assert, print_mention_catch_assert)
3000 (print_recreate_catch_assert)
3001 (allocate_location_catch_handlers, re_set_catch_handlers)
3002 (check_status_handlers, print_it_catch_handlers)
3003 (print_one_catch_handlers, print_mention_catch_handlers)
3004 (print_recreate_catch_handlers): Remove.
3005 (create_ada_exception_catchpoint): Update.
3006 (initialize_ada_catchpoint_ops): Update.
3007
fccf9de1
TT
30082019-10-02 Tom Tromey <tromey@adacore.com>
3009
3010 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3011 (create_excep_cond_exprs): Simplify exception string computation.
3012 (ada_exception_catchpoint_cond_string): Likewise.
3013
4b610737
TT
30142019-10-02 Tom Tromey <tromey@adacore.com>
3015
3016 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3017 * ada-lang.c (lesseq_defined_than): Handle
3018 LOC_STATIC.
3019 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3020 parameter.
3021 (dwarf2_has_info): Likewise.
3022 (new_symbol): Set maybe_copied on symbol when
3023 appropriate.
3024 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3025 parameter.
3026 <can_copy>: New member.
3027 * elfread.c (record_minimal_symbol): Set maybe_copied
3028 on symbol when appropriate.
3029 (elf_symfile_read): Update call to dwarf2_has_info.
3030 * minsyms.c (lookup_minimal_symbol_linkage): New
3031 function.
3032 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3033 * symtab.c (get_symbol_address, get_msymbol_address):
3034 New functions.
3035 * symtab.h (get_symbol_address, get_msymbol_address):
3036 Declare.
3037 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3038 maybe_copied.
3039 (struct symbol, struct minimal_symbol) <maybe_copied>:
3040 New member.
3041
1dd58850
TT
30422019-10-02 Tom Tromey <tromey@adacore.com>
3043
3044 * source.c (struct current_source_location): New.
3045 (current_source_key): New global.
3046 (current_source_symtab, current_source_line)
3047 (current_source_pspace): Remove.
3048 (get_source_location): New function.
3049 (get_current_source_symtab_and_line)
3050 (set_default_source_symtab_and_line)
3051 (set_current_source_symtab_and_line)
3052 (clear_current_source_symtab_and_line, select_source_symtab)
3053 (info_source_command, print_source_lines_base)
3054 (info_line_command, search_command_helper, _initialize_source):
3055 Update.
3056
5c281dbb
TT
30572019-10-02 Tom Tromey <tromey@adacore.com>
3058
3059 * source.c (select_source_symtab): Don't call
3060 decode_line_with_current_source.
3061
d3d32391
AB
30622019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3063
3064 * symtab.c (lookup_global_symbol): Search global block.
3065
38583298
TT
30662019-10-02 Tom Tromey <tromey@adacore.com>
3067
3068 * coffread.c (process_coff_symbol): Update.
3069 * dwarf2read.c (var_decode_location, new_symbol): Update.
3070 * mdebugread.c (parse_symbol): Update.
3071 * objfiles.c (relocate_one_symbol): Update.
3072 * stabsread.c (define_symbol, fix_common_block)
3073 (scan_file_globals): Update.
3074 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3075 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3076 * xcoffread.c (process_xcoff_symbol): Update.
3077
9344c18f
AA
30782019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3079
3080 * MAINTAINERS: Update my email address.
3081
df07e2c7
AB
30822019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3083
3084 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3085 std::vector.
3086 (build_type_psymtabs_reader): Update for std::vector.
3087 (build_type_psymtab_dependencies): Likewise.
3088 * dwarf2read.h: Remove use of DEF_VEC_P.
3089 (typedef sig_type_ptr): Delete.
3090
554ac434
AB
30912019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3092
3093 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3094 to std::vector.
3095 (btrace_maint_decode_pt): Likewise, and move allocation of the
3096 vector outside of the loop.
3097 (btrace_maint_update_packets): Update to handle change from VEC to
3098 std::vector.
3099 (btrace_maint_print_packets): Likewise.
3100 (maint_info_btrace_cmd): Likewise.
3101 * btrace.h: Remove use of DEF_VEC_O.
3102 (typedef btrace_pt_packet_s): Delete.
3103 (struct btrace_maint_info) <packets>: Change fromm VEC to
3104 std::vector.
3105 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3106
46f29a9a
AB
31072019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3108
3109 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3110 make accesses into the vector constant references.
3111 (btrace_add_pc): Update for std::vector.
3112 (btrace_stitch_bts): Likewise.
3113 (parse_xml_btrace_block): Likewise.
3114 (btrace_maint_update_packets): Likewise.
3115 (btrace_maint_print_packets): Likewise.
3116 (maint_info_btrace_cmd): Likewise.
3117 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3118 std::vector.
3119 (btrace_data::empty): Likewise.
3120 (btrace_data_append): Likewise.
3121 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3122 (typedef btrace_block_s): Delete.
3123 (struct btrace_block): Add constructor.
3124 (struct btrace_data_bts) <blocks>: Change to std::vector.
3125 * nat/linux-btrace.c (perf_event_read_bts): Update for
3126 std::vector.
3127 (linux_read_bts): Likewise.
3128
d770d56f
TT
31292019-10-01 Tom Tromey <tom@tromey.com>
3130
3131 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3132
9d636d67
TT
31332019-10-01 Tom Tromey <tom@tromey.com>
3134
3135 * stack.c (print_frame, info_frame_command_core): Use
3136 styled_string.
3137 * linux-thread-db.c (try_thread_db_load_1)
3138 (try_thread_db_load_from_pdir_1): Use styled_string.
3139 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3140 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3141 (maybe_print_unsupported_script_warning)
3142 (maybe_print_script_not_found_warning): Use styled_string.
3143 * ada-lang.c (user_select_syms): Use styled_string.
3144
7f6aba03
TT
31452019-10-01 Tom Tromey <tom@tromey.com>
3146
3147 * p-lang.c (pascal_printstr): Use metadata style.
3148 * value.c (show_convenience): Use metadata style.
3149 * valprint.c (valprint_check_validity, val_print_optimized_out)
3150 (val_print_not_saved, val_print_unavailable)
3151 (val_print_invalid_address, generic_val_print, val_print)
3152 (value_check_printable, val_print_array_elements): Use metadata
3153 style.
3154 * ui-out.h (class ui_out) <field_fmt>: New overload.
3155 <do_field_fmt>: Add style parameter.
3156 * ui-out.c (ui_out::field_fmt): New overload.
3157 * typeprint.c (type_print_unknown_return_type)
3158 (val_print_not_allocated, val_print_not_associated): Use metadata
3159 style.
3160 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3161 parameter.
3162 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3163 * tracepoint.c (tvariables_info_1): Use metadata style.
3164 * stack.c (print_frame_arg, print_frame_info, print_frame)
3165 (info_frame_command_core): Use metadata style.
3166 * skip.c (info_skip_command): Use metadata style.
3167 * rust-lang.c (rust_print_enum): Use metadata style.
3168 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3169 metadata style.
3170 * python/py-framefilter.c (py_print_single_arg): Use metadata
3171 style.
3172 * printcmd.c (do_one_display, print_variable_and_value): Use
3173 metadata style.
3174 * p-valprint.c (pascal_val_print)
3175 (pascal_object_print_value_fields): Use metadata style.
3176 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3177 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3178 parameter.
3179 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3180 * m2-valprint.c (m2_print_long_set): Use metadata style.
3181 * m2-typeprint.c (m2_print_type): Use metadata style.
3182 * infcmd.c (print_return_value_1): Use metadata style.
3183 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3184 * f-valprint.c (info_common_command_for_block): Use metadata
3185 style.
3186 * f-typeprint.c (f_type_print_base): Use metadata style.
3187 * expprint.c (print_subexp_standard): Use metadata style.
3188 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3189 * cli/cli-style.h (class cli_style_option): Add constructor.
3190 (metadata_style): Declare.
3191 * cli/cli-style.c (metadata_style): New global.
3192 (_initialize_cli_style): Register metadata style.
3193 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3194 parameter.
3195 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3196 * c-typeprint.c (c_type_print_base_struct_union)
3197 (c_type_print_base_1): Use metadata style.
3198 * breakpoint.c (watchpoint_value_print)
3199 (print_one_breakpoint_location): Use metadata style.
3200 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3201 style.
3202 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3203 style.
3204 * ada-valprint.c (val_print_packed_array_elements, printstr)
3205 (print_field_values, ada_val_print_ref, ada_val_print): Use
3206 metadata style.
3207 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3208 style.
3209 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3210 style.
3211 * ada-lang.c (user_select_syms): Use metadata style.
3212
14309bb6
TT
32132019-10-01 Tom Tromey <tom@tromey.com>
3214
3215 * cli/cli-cmds.c (pwd_command): Style output.
3216
6a831f06
PA
32172019-10-01 Pedro Alves <palves@redhat.com>
3218 Tom Tromey <tom@tromey.com>
3219
3220 * symtab.c (print_symbol_info): Use %ps.
3221 (print_msymbol_info): Use %ps.
3222 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3223 * printcmd.c (print_variable_and_value): Use %ps.
3224 * macrocmd.c (show_pp_source_pos): Use %ps.
3225 * infrun.c (print_exited_reason): Use ui_out::message.
3226 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3227 (describe_other_breakpoints): Use ui_out::message and new
3228 formats.
3229 (say_where): Use new formats.
3230 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3231 and new formats.
3232
2a3c1174
PA
32332019-10-01 Pedro Alves <palves@redhat.com>
3234 Tom Tromey <tom@tromey.com>
3235
3236 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3237 (test_gdb_formats): New function.
3238 (run_tests): Call it.
3239 (test_format_specifier): Update.
3240 * utils.h (fputs_filtered): Update comment.
3241 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3242 (fputs_styled_unfiltered): Declare.
3243 * utils.c (fputs_styled_unfiltered): New function.
3244 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3245 (vfprintf_filtered): Update.
3246 (vfprintf_unfiltered, vprintf_filtered): Update.
3247 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3248 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3249 disallow_ui_out_field>: New constants.
3250 (enum class field_kind): New.
3251 (struct base_field_s, struct signed_field_s): New.
3252 (signed_field): New function.
3253 (struct string_field_s): New.
3254 (string_field): New function.
3255 (struct styled_string_s): New.
3256 (styled_string): New function.
3257 (class ui_out) <message>: Add comment.
3258 <vmessage, call_do_message>: New methods.
3259 <do_message>: Add style parameter.
3260 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3261 methods.
3262 (ui_out::message): Rewrite.
3263 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3264 parameter.
3265 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3266 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3267 gdb_extensions parameter.
3268 (class format_piece): Add parameter to constructor.
3269 (n_int_args): New field.
3270 * gdbsupport/format.c (format_pieces::format_pieces): Add
3271 gdb_extensions parameter. Handle '*'.
3272 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3273 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3274 vfprintf_styled_no_gdbfmt.
3275 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3276 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3277 unfiltered output.
3278 * ui-style.h (struct ui_file_style) <ptr>: New method.
3279
0dfe5bfb
TT
32802019-10-01 Tom Tromey <tom@tromey.com>
3281
3282 * unittests/format_pieces-selftests.c: Update. Add final format.
3283 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3284 empty literal pieces.
3285
e43b10e1
TT
32862019-10-01 Tom Tromey <tom@tromey.com>
3287
3288 * ui-out.h (enum class ui_out_style_kind): Remove.
3289 (class ui_out) <field_string, field_stsream, do_field_string>:
3290 Change type of "style".
3291 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3292 (ui_out::field_string): Update.
3293 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3294 of "style".
3295 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3296 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3297 * stack.c (print_frame_arg, print_frame_info, print_frame):
3298 Update.
3299 * source.c (print_source_lines_base): Update.
3300 * solib.c (info_sharedlibrary_command): Update.
3301 * skip.c (info_skip_command): Update.
3302 * record-btrace.c (btrace_call_history_src_line)
3303 (btrace_call_history): Update.
3304 * python/py-framefilter.c (py_print_frame): Update.
3305 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3306 "style".
3307 * mi/mi-out.c (mi_ui_out::do_table_header)
3308 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3309 (mi_ui_out::do_field_string): Update.
3310 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3311 Update.
3312 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3313 "style".
3314 * cli-out.c (cli_ui_out::do_table_header)
3315 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3316 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3317 (cli_ui_out::do_field_fmt): Update.
3318 * breakpoint.c (print_breakpoint_location): Update.
3319 (update_static_tracepoint): Update.
3320
cd7c32c3
PW
33212019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3322
3323 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3324 conversion of gdb_datadir.
3325 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3326 remove not needed c_str ().
3327
8fe0f950
AT
33282019-09-30 Ali Tamur <tamur@google.com>
3329
3330 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3331 (dwarf2_string_attr): Likewise.
3332
5f48f8f3
AT
33332019-09-30 Ali Tamur <tamur@google.com>
3334
3335 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3336 (process_full_type_unit): Likewise.
3337 (dump_die_shallow): Likewise.
3338 (cu_debug_loc_section): Likewise.
3339
6fb08628
CB
33402019-09-28 Christian Biesinger <cbiesinger@google.com>
3341
3342 * minsyms.c (compare_minimal_symbols): Rename to...
3343 (minimal_symbol_is_less_than): ...this, and adjust to STL
3344 conventions (return bool, take arguments as references)
3345 (minimal_symbol_reader::install): Call std::sort instead
3346 of qsort.
3347
c7ee338a
CB
33482019-09-29 Christian Biesinger <cbiesinger@google.com>
3349
3350 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3351 hash and why.
3352 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3353 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3354
703a86c2
SM
33552019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3356
3357 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3358 * psympriv.h (add_psymbol_to_list): Move comment here and update
3359 it.
3360
0df0352a
TV
33612019-09-29 Tom de Vries <tdevries@suse.de>
3362
3363 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3364 Use $tmpdir/$(basename "$output_file").dwz instead of
3365 "${output_file}.dwz".
3366
ad75efa6
SM
33672019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3368
3369 PR gdb/25045
3370 * hppa-linux-nat.c: Include gdbarch.h.
3371
ececd218
CB
33722019-09-26 Christian Biesinger <cbiesinger@google.com>
3373
3374 * blockframe.c (find_pc_partial_function): Change return type to bool.
3375 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3376 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3377 (stub_gnu_ifunc_resolve_name): Likewise.
3378 * symtab.c (compare_filenames_for_search): Likewise.
3379 (compare_glob_filenames_for_search): Likewise.
3380 (matching_obj_sections): Likewise.
3381 (symbol_matches_domain): Likewise.
3382 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3383 (find_line_pc): Change return type to bool.
3384 (find_line_pc_range): Likewise.
3385 (producer_is_realview): Likewise.
3386 * symtab.h (symbol_matches_domain): Likewise.
3387 (find_pc_partial_function): Likewise.
3388 (find_pc_line_pc_range): Likewise.
3389 (in_gnu_ifunc_stub): Likewise.
3390 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3391 (find_line_pc): Likewise.
3392 (find_line_pc_range): Likewise.
3393 (matching_obj_sections): Likewise.
3394 (find_line_symtab): Change out parameter to bool.
3395 (producer_is_realview): Change return type to bool.
3396 (compare_filenames_for_search): Likewise.
3397 (compare_glob_filenames_for_search): Likewise.
3398
27a900b8
TT
33992019-09-26 Tom Tromey <tom@tromey.com>
3400
3401 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3402 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3403 * gdb_usleep.h: Remove.
3404 * gdb_usleep.c: Remove.
3405 * utils.c: Don't include gdb_usleep.h.
3406
5d63b30a
TT
34072019-09-26 Tom Tromey <tromey@adacore.com>
3408
3409 * python/py-type.c (type_to_type_object): Call check_typedef
3410 for stub types.
3411
12904d37
TT
34122019-09-26 Tom Tromey <tom@tromey.com>
3413
3414 * utils.h (initialize_utils): Don't declare.
3415 * top.c (gdb_init): Don't call initialize_utils.
3416 * utils.c (initialize_utils): Remove. Move contents...
3417 (_initialize_utils): ... here.
3418
858f25f0
TT
34192019-09-25 Tom Tromey <tom@tromey.com>
3420
3421 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3422 * utils.h (make_hex_string): Don't declare.
3423 * utils.c (make_hex_string): Remove.
3424
3d435220
TV
34252019-09-24 Tom de Vries <tdevries@suse.de>
3426
3427 PR gdb/23815
3428 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3429 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3430
ddd44b70
DD
34312019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3432
3433 * NEWS: Mention new simulator port for PRU.
3434
f945dedf
CB
34352019-09-23 Christian Biesinger <cbiesinger@google.com>
3436
3437 * ada-exp.y (write_object_remaining): Update.
3438 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3439 and eliminate the static buffer.
3440 (ada_decode_symbol): Update.
3441 (ada_la_decode): Update.
3442 (ada_sniff_from_mangled_name): Update.
3443 (is_valid_name_for_wild_match): Update.
3444 (ada_lookup_name_info::matches): Update and simplify.
3445 (name_matches_regex): Update.
3446 (ada_add_global_exceptions): Update.
3447 * ada-lang.h (ada_decode): Update signature.
3448 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3449 * dwarf-index-write.c (debug_names::insert): Update.
3450
7ab78ccb
SM
34512019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3452
3453 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3454 formatting.
3455
9252448b
SM
34562019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3457
3458 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3459 Change "nonzero" to "true" in documentation.
3460
626ca2c0
CB
34612019-09-20 Christian Biesinger <cbiesinger@google.com>
3462
3463 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3464 (_initialize_darwin_solib): Don't set
3465 darwin_so_ops.lookup_lib_global_symbol.
3466 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3467 set_gdbarch_iterate_over_objfiles_in_search_order.
3468 (elf_lookup_lib_symbol): Rename to...
3469 (svr4_iterate_over_objfiles_in_search_order): this, and update
3470 to iterate semantics.
3471 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3472 * solib.c (solib_global_lookup): Remove.
3473 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3474 (solib_global_lookup): Remove.
3475 * symtab.c (lookup_global_or_static_symbol): Remove call to
3476 solib_global_lookup.
3477
5a3a0d63
JB
34782019-09-20 Joel Brobecker <brobecker@adacore.com>
3479
3480 * NEWS: Move entries about default MI version now being
3481 version 3, and about the GDB/MI fix for multi-location
3482 breakpoints to the "since GDB 8.3" section.
3483
ffea1427
JB
34842019-09-20 Joel Brobecker <brobecker@adacore.com>
3485
3486 GDB 8.3.1 released.
3487
abf516c6
UW
34882019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3489
3490 * NEWS: Mention that Cell/B.E. debugging support was removed.
3491 * MAINTAINERS: Remove spu target.
3492
3493 * config/djgpp/fnchange.lst: Remove entries for removed files.
3494
3495 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3496 spu-multiarch.o, and spu-tdep.o.
3497 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3498 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3499 spu-multiarch.c, and spu-tdep.c.
3500 * spu-linux-nat.c: Remove file.
3501 * spu-multiarch.c: Remove file.
3502 * spu-tdep.c: Remove file.
3503 * spu-tdep.h: Remove file.
3504 * solib-spu.c: Remove file.
3505 * solib-spu.h: Remove file.
3506
3507 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3508 * configure.nat (spu-linux): Remove.
3509 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3510 solib-multiarch.o from gdb_target_obs.
3511 (spu*-*-*): Remove.
3512
3513 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3514 feature flag.
3515 (ppc_linux_no_features): Update.
3516 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3517 Cell/B.E. support.
3518 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3519 (tdesc_powerpc_cell64l): Likewise.
3520 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3521 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3522 Cell/B.E. support.
3523 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3524 Do not include "features/rs6000/powerpc-cell32l.c" or
3525 "features/rs6000/powerpc-cell64l.c".
3526 (ppc_linux_spu_section): Remove.
3527 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3528 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3529 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3530 (ppc_linux_spe_context_lookup): Remove.
3531 (ppc_linux_spe_context_inferior_created): Remove.
3532 (ppc_linux_spe_context_solib_loaded): Remove.
3533 (ppc_linux_spe_context_solib_unloaded): Remove.
3534 (ppc_linux_spe_context): Remove.
3535 (struct ppu2spu_cache): Remove.
3536 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3537 (struct ppu2spu_data): Remove.
3538 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3539 ppu2spu_unwind): Remove.
3540 (ppc_linux_init_abi): Remove Cell/B.E. support.
3541 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3542
3543 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3544 (rs6000/powerpc-cell64l-expedite): Likewise
3545 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3546 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3547 rs6000/powerpc-cell64l.xml.
3548 * features/rs6000/powerpc-cell32l.xml: Remove.
3549 * features/rs6000/powerpc-cell64l.xml: Likewise.
3550 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3551 * features/rs6000/powerpc-cell64l.c: Likewise.
3552 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3553 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3554 * regformats/reg-spu.dat: Remove.
3555
3556 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3557 * corelow.c (struct spuid_list): Remove.
3558 (add_to_spuid_list): Remove.
3559 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3560 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3561 (remote_protocol_features): Remove associated entries.
3562 (_initialize_remote): No longer initialize them.
3563 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3564 * linux-nat.c (SPUFS_MAGIC): Remove.
3565 (linux_proc_xfer_spu): Remove.
3566 (spu_enumerate_spu_ids): Remove.
3567 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3568 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3569 (linux_make_corefile_notes): No longer call it.
3570
3571 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3572 (cooked_write_test): Likewise.
3573
78e8cb91
TT
35742019-09-20 Tom Tromey <tom@tromey.com>
3575
3576 * NEWS: Mention case-sensitivity of TUI commands.
3577 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3578 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3579 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3580
f074b67e
TT
35812019-09-20 Tom Tromey <tom@tromey.com>
3582
3583 * tui/tui-source.c (tui_source_window::set_contents): Use
3584 make_unique_xstrdup.
3585 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3586 make_unique_xstrdup.
3587
63c4bf19
TT
35882019-09-20 Tom Tromey <tom@tromey.com>
3589
3590 * tui/tui-data.c: Remove separator comments.
3591 * tui/tui-layout.c: Remove separator comments.
3592 * tui/tui-win.c: Remove separator comments.
3593 * tui/tui-wingeneral.c: Remove separator comments.
3594
43df9b2f
TT
35952019-09-20 Tom Tromey <tom@tromey.com>
3596
3597 * tui/tui.h (strcat_to_buf): Don't declare.
3598 * tui/tui.c (strcat_to_buf): Remove.
3599
7226433c
TT
36002019-09-20 Tom Tromey <tom@tromey.com>
3601
3602 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3603 from "fullname".
3604 * tui/tui-source.c (tui_source_window::set_contents)
3605 (tui_source_window::location_matches_p)
3606 (tui_source_window::maybe_update): Update.
3607
80df3337
TT
36082019-09-20 Tom Tromey <tom@tromey.com>
3609
3610 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3611 Update.
3612 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3613 prefix.
3614 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3615 (tui_data_window::line_from_reg_element_no)
3616 (tui_data_window::first_reg_element_no_inline)
3617 (tui_data_window::show_registers)
3618 (tui_data_window::show_register_group)
3619 (tui_data_window::display_registers_from)
3620 (tui_data_window::display_registers_from_line)
3621 (tui_data_window::first_data_item_displayed)
3622 (tui_data_window::delete_data_content_windows)
3623 (tui_data_window::erase_data_content)
3624 (tui_data_window::do_scroll_vertical)
3625 (tui_data_window::refresh_window)
3626 (tui_data_window::check_register_values): Update.
3627
9923f347
TT
36282019-09-20 Tom Tromey <tom@tromey.com>
3629
3630 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3631 (struct tui_locator_window) <full_name, proc_name>: Now
3632 std::string.
3633 * tui/tui-stack.c (tui_locator_window::make_status_line)
3634 (tui_locator_window::set_locator_fullname)
3635 (tui_locator_window::set_locator_info): Update.
3636 * tui/tui-source.c (tui_source_window::set_contents)
3637 (tui_source_window::showing_source_p): Update.
3638
b76251ab
TT
36392019-09-20 Tom Tromey <tom@tromey.com>
3640
3641 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3642 Don't call tui_locator_win_info_ptr.
3643
0891be08
TT
36442019-09-20 Tom Tromey <tom@tromey.com>
3645
3646 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3647
1b935acf
TT
36482019-09-20 Tom Tromey <tom@tromey.com>
3649
3650 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3651 height for locator.
3652 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3653 * tui/tui-layout.c (show_source_disasm_command, show_data)
3654 (show_source_or_disasm_and_command): Use 1 as height for locator.
3655
9abd8a65
TT
36562019-09-20 Tom Tromey <tom@tromey.com>
3657
3658 * tui/tui.c (tui_enable): Update.
3659 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3660 Update.
3661 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3662 Update.
3663 * tui/tui-data.c (win_resized): Now bool.
3664 (tui_win_resized): Return bool.
3665 (tui_set_win_resized_to): Accept a bool.
3666
b5457826
TT
36672019-09-20 Tom Tromey <tom@tromey.com>
3668
3669 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3670 Change type of "refresh_values_only".
3671 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3672 type of "refresh_values_only".
3673
6b915f7d
TT
36742019-09-20 Tom Tromey <tom@tromey.com>
3675
3676 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3677 std::string.
3678 (tui_disassemble): Add "pos" parameter.
3679 (tui_disasm_window::set_contents): Simplify.
3680
2ad52f6f
TT
36812019-09-20 Tom Tromey <tom@tromey.com>
3682
3683 * tui/tui-winsource.h (struct tui_source_window_base)
3684 <show_source_content>: Now private.
3685 * tui/tui-winsource.c
3686 (tui_source_window_base::show_source_content): Don't handle empty
3687 content case.
3688
b3b1bde6
TT
36892019-09-20 Tom Tromey <tom@tromey.com>
3690
3691 * tui/tui-layout.c (show_source_disasm_command)
3692 (show_source_or_disasm_and_command): Don't call
3693 show_source_content.
3694
71a25ed2
TT
36952019-09-20 Tom Tromey <tom@tromey.com>
3696
3697 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3698 Declare.
3699 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3700 from tui_make_status_line.
3701 (tui_locator_window::rerender): Update.
3702
f8532154
TT
37032019-09-20 Tom Tromey <tom@tromey.com>
3704
3705 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3706 (tui_locator_window::rerender): Update.
3707
2d81b349
TT
37082019-09-20 Tom Tromey <tom@tromey.com>
3709
3710 * tui/tui-winsource.h (struct tui_source_window_base)
3711 <~tui_source_window_base>: Don't declare.
3712 <fullname>: Remove.
3713 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3714 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3715 member.
3716 * tui/tui-source.c (tui_source_window::set_contents): Update.
3717 (tui_source_window::location_matches_p)
3718 (tui_source_window::maybe_update): Update.
3719
f14bec58
TT
37202019-09-20 Tom Tromey <tom@tromey.com>
3721
3722 * tui/tui-winsource.h (~tui_source_element): Remove.
3723 (tui_source_element): Update.
3724 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3725 * tui/tui-winsource.c (tui_show_source_line): Update.
3726 * tui/tui-source.c (tui_source_window::set_contents): Update.
3727 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3728
78d5933a
TT
37292019-09-20 Tom Tromey <tom@tromey.com>
3730
3731 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3732 declare.
3733 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3734 tui_clear_source_windows_detail.
3735 * tui/tui-winsource.h (struct tui_source_window_base)
3736 <clear_detail>: Don't declare.
3737 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3738 Remove.
3739 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3740
d4207696
TT
37412019-09-20 Tom Tromey <tromey@adacore.com>
3742
3743 PR ada/24919:
3744 * block.c (contained_in): Fix final return value.
3745
00f93c44
AM
37462019-09-20 Alan Modra <amodra@gmail.com>
3747
3748 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3749 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3750 (read_indirect_string_from_dwz): Use bfd accessor.
3751 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3752 * machoread.c (macho_symfile_read_all_oso): Likewise.
3753 * solib.c (solib_bfd_open): Likewise.
3754
e4153ae6
CB
37552019-09-19 Christian Biesinger <cbiesinger@google.com>
3756
3757 * eval.c: Move declaration of overload_resolution to...
3758 * value.h: ...here.
3759
c7ae7675
CB
37602019-09-19 Christian Biesinger <cbiesinger@google.com>
3761
3762 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3763 * arm-linux-tdep.c: Likewise.
3764 * arm-nbsd-nat.c: Likewise.
3765 * arm-tdep.h: Declare arm_apcs_32.
3766 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3767
e86f08d2
CB
37682019-09-19 Christian Biesinger <cbiesinger@google.com>
3769
3770 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3771 * dwarf2read.h: Declare dwarf_always_disassemble.
3772
f64e2f40
TV
37732019-09-19 Tom de Vries <tdevries@suse.de>
3774
3775 PR gdb/25009
3776 * source-cache.c (source_cache::ensure): Catch exception thrown during
3777 construction of the highlighter.
3778
fd361982
AM
37792019-09-18 Alan Modra <amodra@gmail.com>
3780
3781 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3782 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3783 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3784 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3785 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3786 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3787 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3788 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3789 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3790 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3791 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3792 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3793 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3794 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3795 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3796 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3797 * mi/mi-interp.c: Update throughout for bfd section macro and
3798 function changes.
3799 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3800 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3801
11061048
TT
38022019-09-18 Tom Tromey <tom@tromey.com>
3803
3804 * NEWS: Add entry.
3805 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3806 call rl_initialize.
3807 (tui_enable): Do not call rl_initialize.
3808
7a27b85f
CG
38092019-09-18 Christian Groessler <chris@groessler.org>
3810
3811 * alpha-linux-nat.c: Include gdbarch.h.
3812
f64eea3a
SM
38132019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3814
3815 * ui-file.c: Include cli/cli-style.h.
3816 (term_cli_styling): Remove cli_styling declaration.
3817
e6f7f6d1
AM
38182019-09-18 Alan Modra <amodra@gmail.com>
3819
3820 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3821 to bfd_asymbol_section.
3822
1d38e9d1
AM
38232019-09-18 Alan Modra <amodra@gmail.com>
3824
3825 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3826 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3827 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3828
90d92a63
AM
38292019-09-18 Alan Modra <amodra@gmail.com>
3830
3831 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3832 * spu-linux-nat.c (spu_bfd_open): Likewise.
3833
a3d181d2
CB
38342019-09-18 Christian Biesinger <cbiesinger@google.com>
3835
3836 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3837 to bool to match definition in dwarf2read.c.
3838
491144b5
CB
38392019-09-17 Christian Biesinger <cbiesinger@google.com>
3840
3841 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3842 (print_signatures): Likewise.
3843 (trust_pad_over_xvs): Likewise.
3844 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3845 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3846 * arm-linux-nat.c (arm_apcs_32): Likewise.
3847 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3848 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3849 * arm-tdep.c (arm_debug): Likewise.
3850 (arm_apcs_32): Likewise.
3851 * auto-load.c (debug_auto_load): Likewise.
3852 (auto_load_gdb_scripts): Likewise.
3853 (global_auto_load): Likewise.
3854 (auto_load_local_gdbinit): Likewise.
3855 (auto_load_local_gdbinit_loaded): Likewise.
3856 * auto-load.h (global_auto_load): Likewise.
3857 (auto_load_local_gdbinit): Likewise.
3858 (auto_load_local_gdbinit_loaded): Likewise.
3859 * breakpoint.c (disconnected_dprintf): Likewise.
3860 (breakpoint_proceeded): Likewise.
3861 (automatic_hardware_breakpoints): Likewise.
3862 (always_inserted_mode): Likewise.
3863 (target_exact_watchpoints): Likewise.
3864 (_initialize_breakpoint): Update.
3865 * breakpoint.h (target_exact_watchpoints): Change to bool.
3866 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3867 * cli/cli-cmds.c (trace_commands): Likewise.
3868 * cli/cli-cmds.h (trace_commands): Likewise.
3869 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3870 to bool*.
3871 * cli/cli-logging.c (logging_overwrite): Change to bool.
3872 (logging_redirect): Likewise.
3873 (debug_redirect): Likewise.
3874 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3875 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3876 to bool.
3877 <boolean_option_def>: Update.
3878 (struct flag_option_def): Change default type of Context to bool
3879 from int.
3880 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3881 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3882 (get_setshow_command_value_string): Likewise.
3883 * cli/cli-style.c (cli_styling): Change to bool.
3884 (source_styling): Likewise.
3885 * cli/cli-style.h (source_styling): Likewise.
3886 (cli_styling): Likewise.
3887 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3888 to bool.
3889 * command.h (var_types): Update comment.
3890 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3891 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3892 bool.
3893 (debug_compile_cplus_scopes): Likewise.
3894 * compile/compile-internal.h (compile_debug): Likewise.
3895 * compile/compile.c (compile_debug): Likewise.
3896 (struct compile_options) <raw>: Likewise.
3897 * cp-support.c (catch_demangler_crashes): Likewise.
3898 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3899 (usr_cmd_cris_dwarf2_cfi): Likewise.
3900 * csky-tdep.c (csky_debug): Likewise.
3901 * darwin-nat.c (enable_mach_exceptions): Likewise.
3902 * dcache.c (dcache_enabled_p): Likewise.
3903 * defs.h (info_verbose): Likewise.
3904 * demangle.c (demangle): Likewise.
3905 (asm_demangle): Likewise.
3906 * dwarf-index-cache.c (debug_index_cache): Likewise.
3907 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3908 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3909 * dwarf2read.c (check_physname): Likewise.
3910 (use_deprecated_index_sections): Likewise.
3911 (dwarf_always_disassemble): Likewise.
3912 * eval.c (overload_resolution): Likewise.
3913 * event-top.c (set_editing_cmd_var): Likewise.
3914 (exec_done_display_p): Likewise.
3915 * event-top.h (set_editing_cmd_var): Likewise.
3916 (exec_done_display_p): Likewise.
3917 * exec.c (write_files): Likewise.
3918 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3919 (debug_fbsd_nat): Likewise.
3920 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3921 Likewise.
3922 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3923 <backtrace_past_entry> Likewise.
3924 * gdb-demangle.h (demangle): Likewise.
3925 (asm_demangle): Likewise.
3926 * gdb_bfd.c (bfd_sharing): Likewise.
3927 * gdbcore.h (write_files): Likewise.
3928 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3929 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3930 * gdbthread.h (print_thread_events): Likewise.
3931 * gdbtypes.c (opaque_type_resolution): Likewise.
3932 (strict_type_checking): Likewise.
3933 * gnu-nat.c (gnu_debug_flag): Likewise.
3934 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3935 * guile/scm-param.c (pascm_variable): Add boolval.
3936 (add_setshow_generic): Update.
3937 (pascm_param_value): Update.
3938 (pascm_set_param_value_x): Update.
3939 * hppa-tdep.c (hppa_debug): Change to bool..
3940 * infcall.c (may_call_functions_p): Likewise.
3941 (coerce_float_to_double_p): Likewise.
3942 (unwind_on_signal_p): Likewise.
3943 (unwind_on_terminating_exception_p): Likewise.
3944 * infcmd.c (startup_with_shell): Likewise.
3945 * inferior.c (print_inferior_events): Likewise.
3946 * inferior.h (startup_with_shell): Likewise.
3947 (print_inferior_events): Likewise.
3948 * infrun.c (step_stop_if_no_debug): Likewise.
3949 (detach_fork): Likewise.
3950 (debug_displaced): Likewise.
3951 (disable_randomization): Likewise.
3952 (non_stop): Likewise.
3953 (non_stop_1): Likewise.
3954 (observer_mode): Likewise.
3955 (observer_mode_1): Likewise.
3956 (set_observer_mode): Update.
3957 (sched_multi): Change to bool.
3958 * infrun.h (debug_displaced): Likewise.
3959 (sched_multi): Likewise.
3960 (step_stop_if_no_debug): Likewise.
3961 (non_stop): Likewise.
3962 (disable_randomization): Likewise.
3963 * linux-tdep.c (use_coredump_filter): Likewise.
3964 (dump_excluded_mappings): Likewise.
3965 * linux-thread-db.c (auto_load_thread_db): Likewise.
3966 (check_thread_db_on_load): Likewise.
3967 * main.c (captured_main_1): Update.
3968 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3969 xx2_opt, boolean_opt>: Change to bool.
3970 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3971 * maint.c (maintenance_profile_p): Likewise.
3972 (per_command_time): Likewise.
3973 (per_command_space): Likewise.
3974 (per_command_symtab): Likewise.
3975 * memattr.c (inaccessible_by_default): Likewise.
3976 * mi/mi-main.c (mi_async): Likewise.
3977 (mi_async_1): Likewise.
3978 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
3979 * nat/fork-inferior.h (startup_with_shell): Likewise.
3980 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
3981 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
3982 * nios2-tdep.c (nios2_debug): Likewise.
3983 * or1k-tdep.c (or1k_debug): Likewise.
3984 * parse.c (parser_debug): Likewise.
3985 * parser-defs.h (parser_debug): Likewise.
3986 * printcmd.c (print_symbol_filename): Likewise.
3987 * proc-api.c (procfs_trace): Likewise.
3988 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
3989 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
3990 (set_parameter_value): Update.
3991 (add_setshow_generic): Update.
3992 * python/py-value.c (copy_py_bool_obj): Change argument from int*
3993 to bool*.
3994 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
3995 int*.
3996 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
3997 * record-btrace.c (record_btrace_target::store_registers): Update.
3998 * record-full.c (record_full_memory_query): Change to bool.
3999 (record_full_stop_at_limit): Likewise.
4000 * record-full.h (record_full_memory_query): Likewise.
4001 * remote-notif.c (notif_debug): Likewise.
4002 * remote-notif.h (notif_debug): Likewise.
4003 * remote.c (use_range_stepping): Likewise.
4004 (interrupt_on_connect): Likewise.
4005 (remote_break): Likewise.
4006 * ser-tcp.c (tcp_auto_retry): Likewise.
4007 * ser-unix.c (serial_hwflow): Likewise.
4008 * skip.c (debug_skip): Likewise.
4009 * solib-aix.c (solib_aix_debug): Likewise.
4010 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4011 (spu_auto_flush_cache_p): Likewise.
4012 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4013 Likewise.
4014 (struct info_print_options) <quiet>: Likewise.
4015 * symfile-debug.c (debug_symfile): Likewise.
4016 * symfile.c (auto_solib_add): Likewise.
4017 (separate_debug_file_debug): Likewise.
4018 * symfile.h (auto_solib_add): Likewise.
4019 (separate_debug_file_debug): Likewise.
4020 * symtab.c (basenames_may_differ): Likewise.
4021 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4022 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4023 (struct info_types_options) <quiet>: Likewise.
4024 * symtab.h (demangle): Likewise.
4025 (basenames_may_differ): Likewise.
4026 * target-dcache.c (stack_cache_enabled_1): Likewise.
4027 (code_cache_enabled_1): Likewise.
4028 * target.c (trust_readonly): Likewise.
4029 (may_write_registers): Likewise.
4030 (may_write_memory): Likewise.
4031 (may_insert_breakpoints): Likewise.
4032 (may_insert_tracepoints): Likewise.
4033 (may_insert_fast_tracepoints): Likewise.
4034 (may_stop): Likewise.
4035 (auto_connect_native_target): Likewise.
4036 (target_stop_and_wait): Update.
4037 (target_async_permitted): Change to bool.
4038 (target_async_permitted_1): Likewise.
4039 (may_write_registers_1): Likewise.
4040 (may_write_memory_1): Likewise.
4041 (may_insert_breakpoints_1): Likewise.
4042 (may_insert_tracepoints_1): Likewise.
4043 (may_insert_fast_tracepoints_1): Likewise.
4044 (may_stop_1): Likewise.
4045 * target.h (target_async_permitted): Likewise.
4046 (may_write_registers): Likewise.
4047 (may_write_memory): Likewise.
4048 (may_insert_breakpoints): Likewise.
4049 (may_insert_tracepoints): Likewise.
4050 (may_insert_fast_tracepoints): Likewise.
4051 (may_stop): Likewise.
4052 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4053 (make_thread_apply_all_options_def_group): Change argument from int*
4054 to bool*.
4055 (thread_apply_all_command): Update.
4056 (print_thread_events): Change to bool.
4057 * top.c (confirm): Likewise.
4058 (command_editing_p): Likewise.
4059 (history_expansion_p): Likewise.
4060 (write_history_p): Likewise.
4061 (info_verbose): Likewise.
4062 * top.h (confirm): Likewise.
4063 (history_expansion_p): Likewise.
4064 * tracepoint.c (disconnected_tracing): Likewise.
4065 (circular_trace_buffer): Likewise.
4066 * typeprint.c (print_methods): Likewise.
4067 (print_typedefs): Likewise.
4068 * utils.c (debug_timestamp): Likewise.
4069 (sevenbit_strings): Likewise.
4070 (pagination_enabled): Likewise.
4071 * utils.h (sevenbit_strings): Likewise.
4072 (pagination_enabled): Likewise.
4073 * valops.c (overload_resolution): Likewise.
4074 * valprint.h (struct value_print_options) <prettyformat_arrays,
4075 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4076 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4077 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4078 Likewise.
4079 * windows-nat.c (new_console): Likewise.
4080 (cygwin_exceptions): Likewise.
4081 (new_group): Likewise.
4082 (debug_exec): Likewise.
4083 (debug_events): Likewise.
4084 (debug_memory): Likewise.
4085 (debug_exceptions): Likewise.
4086 (useshell): Likewise.
4087 * windows-tdep.c (maint_display_all_tib): Likewise.
4088 * xml-support.c (debug_xml): Likewise.
4089
f1b620e9
MG
40902019-09-17 Mike Gulick <mgulick@mathworks.com>
4091
4092 * source.c (prepare_path_for_appending): New function.
4093 (openp): Make use of new function.
4094 (find_and_open_source): Search for the compilation directory and
4095 source file as a relative path beneath the directory search path.
4096
67f3ed6a
AB
40972019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4098
4099 * source-cache.c (source_cache::get_line_charpos): Catch
4100 exceptions and return false, this matches the behaviour documented
4101 in the header file.
4102
74332189
JB
41032019-09-17 Joel Brobecker <brobecker@adacore.com>
4104
4105 * ada-tasks.c (info_task): Remove quoting of the task's name.
4106
f2f24aa9
CB
41072019-09-16 Christian Biesinger <cbiesinger@google.com>
4108
4109 * symfile.c (auto_solib_add): Replace comment with a reference
4110 to the header file.
4111
6a062a93
CB
41122019-09-14 Christian Biesinger <cbiesinger@google.com>
4113
4114 * NEWS: Mention that gdb can now be compiled with Python 3
4115 on Windows.
4116
ec6c8338
AB
41172019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4118
4119 * maint.c (maint_print_section_data::maint_print_section_data):
4120 Force use of 'float log10 (float)' by casting the argument to
4121 float.
4122
aa17805f
AB
41232019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4124
4125 * maint.c: Add 'cmath' include.
4126 (struct maint_print_section_data): New structure.
4127 (print_section_index): New function.
4128 (print_bfd_section_info): Add header comment, small whitespace
4129 cleanup, and update to call new print_section_index function.
4130 (print_objfile_section_info): Likewise.
4131 (maint_obj_section_from_bfd_section): New function.
4132 (print_bfd_section_info_maybe_relocated): New function.
4133 (maintenance_info_sections): Add header comment, always use
4134 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4135
3dd9bb46
AB
41362019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4137
4138 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4139 inner scope, add check that the objfile has psymtabs before
4140 checking psymtabs_addrmap.
4141 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4142
4993045d
PW
41432019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4144
4145 * NEWS: Announce that Ada task names are now shown at more places,
4146 and between quotes (except in info task output).
4147 * gdb/ada-tasks.c (task_to_str): New function.
4148 (display_current_task_id): Call task_to_str.
4149 (task_command_1): Likewise.
4150 (print_ada_task_info): In non-mi mode, Properly align headers and data
4151 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4152
7a289707
RO
41532019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4154
4155 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4156 prstatus.pr_lwp.pr_info instead of making it up.
4157
f2aec7f6
CB
41582019-09-11 Christian Biesinger <cbiesinger@google.com>
4159
4160 * auto-load.c (auto_load_expand_dir_vars): Update.
4161 * defs.h (gdb_datadir): Change to std::string.
4162 (python_libdir): Likewise.
4163 (relocate_gdb_directory): Change return type to std::string.
4164 * guile/guile.c (gdbscm_data_directory): Update.
4165 (initialize_scheme_side): Update.
4166 * jit.c (jit_reader_dir): Change to std::string.
4167 (jit_reader_load_command): Update.
4168 * main.c (gdb_datadir): Change to std::string.
4169 (python_libdir): Likewise.
4170 (set_gdb_data_directory): Update.
4171 (relocate_path): Change to return std::string.
4172 (relocate_gdb_directory): Change to return std::string.
4173 (relocate_gdbinit_path_maybe_in_datadir): Update.
4174 (captured_main_1): Update.
4175 * python/python.c (do_start_initialization): Update.
4176 * top.c (show_gdb_datadir): Update.
4177 * xml-syscall.c (xml_init_syscalls_info): Update.
4178 (init_syscalls_info): Update.
4179
9224a013
CB
41802019-09-11 Christian Biesinger <cbiesinger@google.com>
4181
4182 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4183 out of get_init_files.
4184 (get_init_files): Update.
4185
f48cd836
CB
41862019-09-11 Christian Biesinger <cbiesinger@google.com>
4187
4188 * main.c (get_init_files): Change to use std::string.
4189 (captured_main_1): Update.
4190 (print_gdb_help): Update.
4191
9cab7ecd
AT
41922019-09-11 Ali Tamur <tamur@google.com>
4193
4194 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4195 implementation.
4196
67547d89
CB
41972019-09-11 Christian Biesinger <cbiesinger@google.com>
4198
4199 * dbxread.c (read_dbx_symtab): Update.
4200 * dwarf2read.c (load_partial_dies): Update.
4201 * mdebugread.c (parse_partial_symbols): Update.
4202 (handle_psymbol_enumerators): Update.
4203 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4204 * psymtab.c (add_psymbol_to_bcache): Likewise.
4205 (add_psymbol_to_list): Likewise.
4206 * symtab.c (symbol_set_names): Likewise.
4207 * symtab.h (symbol_set_names): Likewise.
4208 * xcoffread.c (scan_xcoff_symtab): Update.
4209
64b2d4a0
TT
42102019-09-11 Tom Tromey <tom@tromey.com>
4211
4212 * symfile-mem.c (symbol_file_add_from_memory): Use
4213 bfd_set_filename.
4214 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4215 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4216
3b00ef10
TT
42172019-09-10 Tom Tromey <tromey@adacore.com>
4218
4219 * dwarf-index-write.c (write_psymbols): Extend error message.
4220 (debug_names::insert): Add Ada code.
4221 (debug_names::write_psymbols): Remove Ada check.
4222 (debug_names) <m_string_obstack>: New member.
4223 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4224 (gdb_index_symbol_name_matcher::matches): Remove.
4225 (mapped_index_base::find_name_components_bounds): Add "lang"
4226 parameter.
4227 (mapped_index_base::build_name_components): Also split names
4228 according to Ada syntax.
4229 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4230 type of "match_callback".
4231 (check_match, check_find_bounds_finds)
4232 (dw2_expand_symtabs_matching): Update.
4233 (dw2_debug_names_iterator): Add new constructor.
4234 (dw2_debug_names_map_matching_symbols): New function.
4235 (dw2_debug_names_expand_symtabs_matching): Update.
4236 (dwarf2_debug_names_functions): Use
4237 dw2_debug_names_map_matching_symbols.
4238
aa391654
TT
42392019-09-10 Tom Tromey <tromey@adacore.com>
4240
4241 * dwarf2read.c (dw2_get_file_names_reader): Add the
4242 CU's file name to the results.
4243
b054970d
TT
42442019-09-10 Tom Tromey <tromey@adacore.com>
4245
4246 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4247 map_matching_symbols. Update.
4248 * dwarf2read.c (dw2_map_matching_symbols): Update.
4249 * psymtab.c (match_partial_symbol): Change type; update.
4250 (psym_map_matching_symbols): Likewise.
4251 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4252 type; update.
4253 * symfile.h (struct quick_symbol_functions)
4254 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4255 Remove "match".
4256
6a3dbf1b
TT
42572019-09-10 Tom Tromey <tromey@adacore.com>
4258
4259 * psymtab.c (map_block): Remove.
4260 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4261 * symtab.c (iterate_over_symbols_terminated): New function.
4262 * symtab.c (iterate_over_symbols_terminated): Declare.
4263
6969f124
TT
42642019-09-10 Tom Tromey <tromey@adacore.com>
4265
4266 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4267 * language.h (struct language_defn) <la_iterate_over_symbols>:
4268 Return bool.
4269 * symtab.c (iterate_over_symbols): Return bool.
4270 * symtab.h (iterate_over_symbols): Return bool.
4271
199b4314
TT
42722019-09-10 Tom Tromey <tromey@adacore.com>
4273
4274 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4275 (add_nonlocal_symbols): Update.
4276 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4277 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4278 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4279 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4280 Change type of "callback". Remove "data".
4281
a084a2a6
AT
4282
42832019-09-09 Ali Tamur <tamur@google.com>
4284
4285 * dwarf2read.c (comp_unit_head): Update comment.
4286 (dwarf2_dwo_name): New function declaration.
4287 (dwarf_unit_type_name): New function declaration.
4288 (read_comp_unit_head): Add support for new compilation units,
4289 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4290 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4291 (currently named as "signature") in their header. Also clarify error
4292 messages.
4293 (lookup_dwo_id): New function. Returns the dwo id of the given
4294 compile unit.
4295 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4296 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4297 functions.
4298 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4299 (dwarf2_dwo_name): Get the dwo name if present.
4300 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4301 purposes.
4302
25a2915e
TT
43032019-09-09 Tom Tromey <tom@tromey.com>
4304
4305 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4306
e4df0874
PW
43072019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4308
4309 * python/python.c (do_start_initialization): Make progname_copy static,
4310 to avoid a leak report.
4311
8634b462
TT
43122019-09-08 Tom Tromey <tom@tromey.com>
4313
4314 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4315
c7f839cb
SM
43162019-09-07 Simon Marchi <simon.marchi@efficios.com>
4317
4318 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4319 Change type to gdb::optional<block_enum>.
4320 (dw2_symtab_iter_init): Change block_index parameter type
4321 to gdb::optional<block_enum>.
4322 (dw2_lookup_symbol): Change block_index parameter
4323 type to block_enum.c
4324 (dw2_debug_names_lookup_symbol): Likewise.
4325 * psymtab.c (psym_lookup_symbol): Likewise.
4326 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4327 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4328 Likewise.
4329
ead0e69a
CB
43302019-09-06 Christian Biesinger <cbiesinger@google.com>
4331
4332 * defs.h (relocate_gdb_directory): Change int to bool in
4333 signature and rename flag to relocatable.
4334 * main.c (relocate_path): Likewise.
4335 (relocate_gdb_directory): Likewise.
4336
b16c44de
AM
43372019-09-06 Alan Modra <amodra@gmail.com>
4338
4339 * coffread.c (coff_symfile_read): Constify filename variable.
4340 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4341 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4342 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4343 * solib.c (reload_shared_libraries_1): Likewise.
4344 * symfile.c (reread_symbols): Likewise.
4345 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4346 * solib-darwin.c (darwin_bfd_open): Likewise.
4347 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4348
06ff036e
AB
43492019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4350
4351 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4352 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4353
4e962e74
TT
43542019-09-03 Tom Tromey <tromey@adacore.com>
4355
4356 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4357 types.
4358 (has_negatives): Unbias a range type bound.
4359 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4360 * gdbtypes.c (operator==): Handle new field.
4361 (create_range_type): Add "bias" parameter.
4362 (create_static_range_type, resolve_dynamic_range): Update.
4363 * gdbtypes.h (struct range_bounds) <bias>: New member.
4364 (create_range_type): Add bias parameter.
4365 * printcmd.c (print_scalar_formatted): Unbias range types.
4366 * value.c (unpack_long): Unbias range types.
4367 (pack_long): Bias range types.
4368
d90b8f26
AH
43692019-09-02 Alan Hayward <alan.hayward@arm.com>
4370
4371 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4372 probe arguments.
4373
fe01123e
AH
43742019-09-02 Alan Hayward <alan.hayward@arm.com>
4375
4376 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4377 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4378 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4379 (compile_probe_arg): Likewise.
4380 * probe.h (get_argument_count): Likewise.
4381 * solib-svr4.c (solib_event_probe_action): Likewise.
4382 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4383
e661ef01
AH
43842019-09-02 Alan Hayward <alan.hayward@arm.com>
4385
4386 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4387 code to here...
4388 (svr4_create_solib_event_breakpoints): ...from here.
4389
47a536d9
SDJ
43902019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4391
4392 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4393 suffix from warning message.
4394
d6a00eba
TT
43952019-08-30 Tom Tromey <tom@tromey.com>
4396
4397 * tui/tui-winsource.h (struct tui_source_window_base)
4398 <refresh_all>: Don't declare.
4399 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4400 Remove.
4401 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4402 tui_show_locator_content.
4403 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4404 declare.
4405 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4406 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4407 declare.
4408
55b2657b
TT
44092019-08-30 Tom Tromey <tom@tromey.com>
4410
4411 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4412
12a8555a
TT
44132019-08-30 Tom Tromey <tom@tromey.com>
4414
4415 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4416 Remove unnecessary forward declarations.
4417
900ac242
TT
44182019-08-30 Tom Tromey <tom@tromey.com>
4419
4420 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4421 rerender.
4422 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4423 tui_show_locator_content.
4424
99ab33fb
TT
44252019-08-30 Tom Tromey <tom@tromey.com>
4426
4427 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4428 (tui_locator_window::rerender): Rewrite using body of previous
4429 tui_show_locator_content.
4430
e594a5d1
TT
44312019-08-30 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4434 set_locator_fullname>: New methods.
4435 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4436 Rename from tui_set_locator_fullname.
4437 (tui_locator_window::set_locator_info): Rename from
4438 tui_set_locator_info. Return bool.
4439 (tui_update_locator_fullname, tui_show_frame_info): Update.
4440
715bb467
TT
44412019-08-30 Tom Tromey <tom@tromey.com>
4442
4443 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4444
772f3f03
TT
44452019-08-30 Tom Tromey <tom@tromey.com>
4446
4447 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4448 call touchwin.
4449
108e13ab
TT
44502019-08-30 Tom Tromey <tom@tromey.com>
4451
4452 * tui/tui-wingeneral.c (box_win): Assume win_info and
4453 win_info->handle cannot be NULL.
4454
cdaa6eb4
TT
44552019-08-30 Tom Tromey <tom@tromey.com>
4456
4457 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4458 refresh_window>: Declare.
4459 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4460 resize.
4461 (tui_data_item_window::rerender): Rename from
4462 tui_display_register.
4463 (tui_data_item_window::refresh_window): New method.
4464 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4465 no-op.
4466
89df7f90
TT
44672019-08-30 Tom Tromey <tom@tromey.com>
4468
4469 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4470 regs_column_count, current_group>: Move later. Now private.
4471 <get_current_group>: New method.
4472 * tui/tui-regs.c (tui_reg_command): Update.
4473 * tui/tui-layout.c (tui_set_layout): Update.
4474
1bf2866a
TT
44752019-08-30 Tom Tromey <tom@tromey.com>
4476
4477 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4478 (tui_data_window::rerender): Don't call
4479 check_and_display_highlight_if_needed.
4480 (tui_data_window::refresh_all): Remove call to
4481 erase_data_content.
4482
0670413d
TT
44832019-08-30 Tom Tromey <tom@tromey.com>
4484
4485 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4486 (tui_data_window::display_registers_from)
4487 (tui_data_window::display_reg_element_at_line)
4488 (tui_data_window::display_registers_from_line): Remove checks of
4489 "empty".
4490
18bb55c7
TT
44912019-08-30 Tom Tromey <tom@tromey.com>
4492
4493 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4494 Don't declare.
4495 * tui/tui-regs.c (tui_data_window::show_registers): Call
4496 rerender.
4497 (tui_data_window::rerender): Rename from display_all_data.
4498 (tui_data_window::rerender): Remove old implementation.
4499
1f6d2f10
TT
45002019-08-30 Tom Tromey <tom@tromey.com>
4501
4502 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4503 text.
4504 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4505
16d01f9c
BW
45062019-08-29 Bernhard Wodok <barto@gmx.net>
4507 Sergio Durigan Junior <sergiodj@redhat.com>
4508
4509 PR win32/24284
4510 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4511
d8f27c60
AB
45122019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4513
4514 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4515 when searching for types.
4516
1f20c35e
AB
45172019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4518
4519 * f-lang.c (f_language_defn): Use f_print_typedef.
4520 * f-lang.h (f_print_typedef): Declare.
4521 * f-typeprint.c (f_print_typedef): Define.
4522
550105b7
CB
45232019-08-27 Christian Biesinger <cbiesinger@google.com>
4524
4525 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4526
4acfdd20
AB
45272019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4528
4529 * cli/cli-utils.c (info_print_options_defs): Delete.
4530 (make_info_print_options_def_group): Delete.
4531 (extract_info_print_options): Delete.
4532 (info_print_command_completer): Delete.
4533 (info_print_args_help): Add extra parameter, and optionally
4534 include text about -n flag.
4535 * cli/cli-utils.h (struct info_print_options): Delete.
4536 (extract_info_print_options): Delete declaration.
4537 (info_print_command_completer): Delete declaration.
4538 (info_print_args_help): Add extra parameter, extend header
4539 comment.
4540 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4541 search_symbols.
4542 * stack.c (struct info_print_options): New type.
4543 (info_print_options_defs): New file scoped variable.
4544 (make_info_print_options_def_group): New static function.
4545 (info_print_command_completer): New static function.
4546 (info_locals_command): Update to use new local functions.
4547 (info_args_command): Likewise.
4548 (_initialize_stack): Add extra parameter to calls to
4549 info_print_args_help.
4550 * symtab.c (search_symbols): Add extra parameter, use this to
4551 possibly excluse non-debug symbols.
4552 (symtab_symbol_info): Add extra parameter, which is passed on to
4553 search_symbols.
4554 (struct info_print_options): New type.
4555 (info_print_options_defs): New file scoped variable.
4556 (make_info_print_options_def_group): New static function.
4557 (info_print_command_completer): New static function.
4558 (info_variables_command): Update to use local functions, and pass
4559 extra parameter through to symtab_symbol_info.
4560 (info_functions_command): Likewise.
4561 (info_types_command): Pass additional argument through to
4562 symtab_symbol_info.
4563 (rbreak_command): Pass extra argument to search_symbols.
4564 (_initialize_symtab): Add extra arguments for calls to
4565 info_print_args_help, and update help text for 'info variables',
4566 'whereis', and 'info functions' commands.
4567 * symtab.h (search_symbols): Add extra argument to declaration.
4568 * NEWS: Mention new flags.
4569
9aa55206
CB
45702019-08-26 Christian Biesinger <cbiesinger@google.com>
4571
4572 * symtab.c (lookup_static_symbol): Call the new function (and move
4573 it down to be next to lookup_global_symbol).
4574 (struct global_sym_lookup_data): Add block_enum member and rename to...
4575 (struct global_or_static_sym_lookup_data): ...this.
4576 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4577 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4578 (lookup_symbol_global_or_static_iterator_cb): ...this.
4579 (lookup_global_or_static_symbol): New function.
4580 (lookup_global_symbol): Call new function.
4581
5c31b358
TV
45822019-08-26 Tom de Vries <tdevries@suse.de>
4583
4584 PR c++/24852
4585 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4586 when pc_probe.prob == NULL.
4587
23c13d42
SM
45882019-08-25 Simon Marchi <simon.marchi@efficios.com>
4589
4590 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4591 variable symbol_linkage to symbol_linkage_.
4592
beadd3e8
SM
45932019-08-25 Simon Marchi <simon.marchi@efficios.com>
4594
4595 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4596 represent whether the symbol is static, dynamic, or we don't
4597 know.
4598
e3ec872f
YS
45992019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4600
4601 * gdb/rx-tdep.c (rx_register_names): New.
4602 (rx_register_name): Delete.
4603 (rx_psw_type): Delete.
4604 (rx_fpsw_type): Delete.
4605 (rx_register_type): Delete.
4606 (rx_gdbarch_init): Convert target-descriptions.
4607 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4608 * gdb/features/Makefile: Add rx.xml.
4609 * gdb/features/rx.xml: New.
4610 * gdb/features/rx.c: Generated.
4611 * gdb/NEWS: Mention target description support.
4612
d0509ba4
CB
46132019-08-22 Christian Biesinger <cbiesinger@google.com>
4614
4615 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4616 *slot_ptr.
4617
2d41fa11
SDJ
46182019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4619
4620 * configure.ac: Don't check for 'dlfcn.h' (moved to
4621 gdbsupport/common.m4).
4622 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4623 'gdbsupport/'.
4624 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4625 * compile/compile-c-support.c: Include
4626 'gdbsupport/gdb-dlfcn.h'.
4627 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4628 * gdb-dlfcn.c: Move to...
4629 * gdbsupport/gdb-dlfcn.c: ... here.
4630 * gdb-dlfcn.h: Move to...
4631 * gdbsupport/gdb-dlfcn.h: ... here.
4632
de8af808
SL
46332019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4634
4635 * nios2-tdep.c (struct reg_value): Improve comments. Make
4636 the offset field signed.
4637
27204489
CB
46382019-08-22 Christian Biesinger <cbiesinger@google.com>
4639
4640 * python/lib/gdb/__init__.py (_execute_file): New function.
4641 * python/python.c (python_run_simple_file): Call gdb._execute_file
4642 on Windows.
4643
43771869
AB
46442019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4645
4646 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4647 all uses as this was never set to anything but a zero value.
4648
26c957f1
PA
46492019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4650
4651 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4652
c07aae6e
CB
46532019-08-21 Christian Biesinger <cbiesinger@google.com>
4654
4655 * tui/tui-data.h (tui_gen_win_info): Add an =default
4656 move constructor, required by some GCC versions.
4657
3960cb7a
JF
46582019-08-21 Jinke Fan <fanjinke51@yeah.net>
4659
4660 * go32-nat.c (go32_sysinfo): Add hygon_p.
4661
04c72a68
TT
46622019-08-20 Tom Tromey <tom@tromey.com>
4663
4664 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4665 line_from_reg_element_no, first_reg_element_no_inline,
4666 display_all_data, delete_data_content_windows,
4667 erase_data_content>: Now private.
4668
072272ce
TT
46692019-08-20 Tom Tromey <tom@tromey.com>
4670
4671 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4672 (tui_unhighlight_win, tui_highlight_win)
4673 (tui_win_info::make_window): Update.
4674 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4675
973961bd
TT
46762019-08-20 Tom Tromey <tom@tromey.com>
4677
4678 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4679 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4680 (MAX_PID_WIDTH): Move to tui-stack.c.
4681 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4682 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4683 (MAX_PID_WIDTH): Move from tui-data.h.
4684
ab0e1f1a
TT
46852019-08-20 Tom Tromey <tom@tromey.com>
4686
4687 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4688 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4689 (box_win): Update.
4690 (tui_gen_win_info::make_window): Rename from tui_make_window.
4691 (tui_win_info::make_window): New method.
4692 (tui_gen_win_info::make_visible): Update.
4693 * tui/tui-source.c (tui_source_window::set_contents): Update.
4694 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4695 (tui_data_window::display_registers_from): Update.
4696 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4697 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4698 Declare.
4699 <can_box>: Remove.
4700 <title>: Remove.
4701 (struct tui_win_info) <make_window>: Declare.
4702 <can_box>: Now virtual.
4703 <title>: New member.
4704 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4705 * tui/tui-command.c (tui_cmd_window::resize): Update.
4706
100c2bf3
TT
47072019-08-20 Tom Tromey <tom@tromey.com>
4708
4709 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4710 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4711 (tui_data_window::check_register_values): Update.
4712
fa4dc567
TT
47132019-08-20 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-regs.h (struct tui_data_window): Use
4716 DISABLE_COPY_AND_ASSIGN.
4717 <regs_content>: Change type, removing unique_ptr.
4718 <tui_data_window>: Add move constructor.
4719 * tui/tui-regs.c (tui_data_window::show_registers)
4720 (tui_data_window::show_register_group)
4721 (tui_data_window::display_registers_from)
4722 (tui_data_window::display_registers_from)
4723 (tui_data_window::first_data_item_displayed)
4724 (tui_data_window::delete_data_content_windows)
4725 (tui_data_window::rerender, tui_data_window::refresh_window)
4726 (tui_data_window::check_register_values): Update.
4727
ca02d7c8
TT
47282019-08-20 Tom Tromey <tom@tromey.com>
4729
4730 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4731 show_register_group>: Declare.
4732 (tui_show_register_group): Don't declare.
4733 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4734 tui_show_registers.
4735 (tui_data_window::show_register_group): Rename from
4736 tui_show_register_group.
4737 (tui_data_window::check_register_values, tui_reg_command):
4738 Update.
4739 * tui/tui-layout.c (tui_set_layout): Update.
4740
63356bfd
TT
47412019-08-20 Tom Tromey <tom@tromey.com>
4742
4743 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4744 Declare.
4745 (tui_check_register_values): Don't declare.
4746 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4747 from tui_check_register_values.
4748 * tui/tui-hooks.c (tui_register_changed): Update.
4749
42cc14a7
TT
47502019-08-20 Tom Tromey <tom@tromey.com>
4751
4752 * tui/tui-regs.c (tui_reg_layout): Move later.
4753 (tui_show_registers): Don't enable TUI mode or change layout.
4754
b9ad3686
TT
47552019-08-20 Tom Tromey <tom@tromey.com>
4756
4757 * tui/tui-regs.h (struct tui_data_item_window)
4758 <~tui_data_item_window>: Remove.
4759 <content>: Now a unique_xmalloc_ptr.
4760 * tui/tui-regs.c (tui_register_format): Return a
4761 unique_xmalloc_ptr.
4762 (tui_get_register): Update.
4763 (~tui_data_item_window): Remove.
4764 (tui_data_window::display_registers_from, tui_display_register):
4765 Update.
4766 * tui/tui-io.h (tui_expand_tabs): Update.
4767 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4768 Remove "col" parameter.
4769
8e114aab
TT
47702019-08-20 Tom Tromey <tom@tromey.com>
4771
4772 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4773 field.
4774 * tui/tui-regs.c (~tui_data_item_window): Update.
4775
1a4f81dd
TT
47762019-08-20 Tom Tromey <tom@tromey.com>
4777
4778 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4779 earlier.
4780
0f8d8876
TT
47812019-08-20 Tom Tromey <tom@tromey.com>
4782
4783 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4784
605dc2c2
TT
47852019-08-20 Tom Tromey <tom@tromey.com>
4786
4787 * tui/tui-source.h (struct tui_source_window): Update.
4788 * tui/tui-regs.c (tui_show_registers): Update.
4789 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4790 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4791 (NO_REGS_STRING): Remove defines.
4792
aedbe3bb
CM
47932019-08-20 Conrad Meyer <cem@FreeBSD.org>
4794
4795 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4796 unnecessary thread walk if remote doesn't support the packet.
4797
7ce8f214
TT
47982019-08-19 Tom Tromey <tromey@adacore.com>
4799
4800 * python/py-value.c (value_has_field): Fix indentation.
4801
f21c2bd7
TT
48022019-08-19 Tom Tromey <tromey@adacore.com>
4803
4804 * printcmd.c (do_one_display, info_display_command): Update.
4805 * block.h (contained_in): Return bool. Add allow_nested
4806 parameter.
4807 * block.c (contained_in): Return bool. Add allow_nested
4808 parameter.
4809
d806ea2d
TT
48102019-08-19 Tom Tromey <tom@tromey.com>
4811
4812 * configure: Rebuild.
4813 * configure.ac: Disallow the combination of -static-libstdc++ and
4814 source highlight.
4815 * source-cache.c (get_language_name): Handle rust.
4816 (source_cache::get_source_lines): Ignore highlighting exceptions.
4817
398fdd60
TT
48182019-08-16 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4821 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4822 (struct tui_source_window_base) <make_visible, refresh_window,
4823 resize>: Remove methods.
4824 <execution_info>: Remove field.
4825 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4826 (tui_show_source_line, tui_source_window_base)
4827 (~tui_source_window_base): Update.
4828 (tui_source_window_base::resize)
4829 (tui_source_window_base::make_visible)
4830 (tui_source_window_base::refresh_window): Remove.
4831 (tui_source_window_base::update_exec_info): Update.
4832 * tui/tui-source.c (tui_source_window::set_contents): Update.
4833 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4834
e699d331
TT
48352019-08-16 Tom Tromey <tom@tromey.com>
4836
4837 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4838 deprecated_query_hook.
4839
bb01dbfc
TT
48402019-08-16 Tom Tromey <tom@tromey.com>
4841
4842 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4843 (tui_update_source_windows_with_line): Update.
4844 * tui/tui-source.h (struct tui_source_window)
4845 <show_symtab_source>: Declare.
4846 (tui_show_symtab_source): Don't declare.
4847 * tui/tui-source.c (tui_show_symtab_source): Rename from
4848 tui_show_symtab_source.
4849
81c82c4b
TT
48502019-08-16 Tom Tromey <tom@tromey.com>
4851
4852 * tui/tui-winsource.h (struct tui_source_window_base)
4853 <set_contents>: Declare.
4854 * tui/tui-winsource.c
4855 (tui_source_window_base::update_source_window_as_is): Update.
4856 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4857 Declare.
4858 (tui_set_source_content): Don't declare.
4859 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4860 tui_set_source_content.
4861 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4862 Declare.
4863 (tui_set_disassem_content): Don't declare.
4864 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4865 tui_set_disassem_content.
4866
2ddaf614
TT
48672019-08-16 Tom Tromey <tom@tromey.com>
4868
4869 * tui/tui-winsource.h (struct tui_source_window_base)
4870 <update_breakpoint_info>: Declare.
4871 (tui_update_breakpoint_info): Don't declare.
4872 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4873 (tui_update_all_breakpoint_info): Update.
4874 (tui_source_window_base::update_breakpoint_info): Rename from
4875 tui_update_breakpoint_info.
4876 (tui_source_window_base::update_exec_info): Update.
4877
017f9828
TT
48782019-08-16 Tom Tromey <tom@tromey.com>
4879
4880 * tui/tui-winsource.h (struct tui_source_window_base)
4881 <update_source_window>: Declare.
4882 (tui_update_source_window): Don't declare.
4883 * tui/tui-winsource.c
4884 (tui_source_window_base::update_source_window): Rename from
4885 tui_update_source_window.
4886 (tui_source_window_base::rerender): Update.
4887 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4888 * tui/tui-disasm.c (tui_show_disassem)
4889 (tui_show_disassem_and_update_source)
4890 (tui_disasm_window::maybe_update): Update.
4891
ed8358e9
TT
48922019-08-16 Tom Tromey <tom@tromey.com>
4893
4894 * tui/tui-winsource.h (struct tui_source_window_base)
4895 <update_source_window_as_is>: Declare.
4896 (tui_update_source_window_as_is): Don't declare.
4897 * tui/tui-winsource.c (tui_update_source_window): Update
4898 (tui_source_window_base::update_source_window_as_is): Rename from
4899 tui_update_source_window_as_is.
4900 (tui_source_window_base::refill): Update.
4901 * tui/tui-source.c (tui_show_symtab_source): Update.
4902 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4903 Update.
4904
20149b6b
TT
49052019-08-16 Tom Tromey <tom@tromey.com>
4906
4907 * tui/tui-winsource.h (tui_update_source_window)
4908 (tui_update_source_window_as_is): Remove "noerror" parameter.
4909 * tui/tui-winsource.c (tui_update_source_window)
4910 (tui_update_source_window_as_is): Remove "noerror" parameter.
4911 (tui_update_source_windows_with_addr)
4912 (tui_update_source_windows_with_line)
4913 (tui_source_window_base::rerender)
4914 (tui_source_window_base::refill): Update.
4915 * tui/tui-source.h (tui_set_source_content)
4916 (tui_show_symtab_source): Remove "noerror" parameter.
4917 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4918 parameter.
4919 (tui_show_symtab_source): Likewise.
4920 (tui_source_window::maybe_update): Update.
4921 * tui/tui-disasm.c (tui_show_disassem)
4922 (tui_show_disassem_and_update_source)
4923 (tui_disasm_window::do_scroll_vertical)
4924 (tui_disasm_window::maybe_update): Update.
4925
2d83e710
TT
49262019-08-16 Tom Tromey <tom@tromey.com>
4927
4928 * tui/tui.c (tui_is_window_visible): Update.
4929 * tui/tui-wingeneral.c (tui_make_window)
4930 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4931 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4932 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4933 (tui_set_win_height_command, parse_scrolling_args): Update.
4934 * tui/tui-source.c (tui_source_window::style_changed): Update.
4935 * tui/tui-regs.c (tui_show_registers)
4936 (tui_data_window::first_data_item_displayed)
4937 (tui_data_window::delete_data_content_windows)
4938 (tui_check_register_values, tui_reg_command): Update.
4939 * tui/tui-disasm.c (tui_show_disassem): Update.
4940 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4941 method.
4942 <is_visible>: Remove field.
4943 * tui/tui-data.c (tui_next_win, tui_prev_win)
4944 (tui_delete_invisible_windows): Update.
4945
d4ab829a
TT
49462019-08-16 Tom Tromey <tom@tromey.com>
4947
4948 * tui/tui-winsource.h (struct tui_source_window_base)
4949 <m_has_locator>: Remove.
4950 * tui/tui-layout.c (show_source_disasm_command, show_data)
4951 (show_source_or_disasm_and_command): Update.
4952
aa7ca1bb
AH
49532019-08-16 Alan Hayward <alan.hayward@arm.com>
4954
4955 * NEWS (Other MI changes): New subsection.
4956 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4957 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4958 * arch-utils.c (default_get_pc_address_flags): New function.
4959 * arch-utils.h (default_get_pc_address_flags): New declaration.
4960 * gdbarch.sh: Add get_pc_address_flags.
4961 * gdbarch.c: Regenerate.
4962 * gdbarch.h: Likewise.
4963 * stack.c (print_pc): New function.
4964 (print_frame_info) (print_frame): Call print_pc.
4965
6eac171f
TV
49662019-08-16 Tom de Vries <tdevries@suse.de>
4967
4968 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4969 print_objfile_section_info.
4970
3df505f6
TT
49712019-08-15 Tom Tromey <tom@tromey.com>
4972
4973 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
4974 calling update_cmdwin_start_line.
4975 * tui/tui-winsource.h (struct tui_source_window_base)
4976 <do_make_visible_with_new_height, set_new_height>: Don't declare.
4977 <rerender>: Declare.
4978 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
4979 Call rerender.
4980 (tui_source_window_base::set_new_height): Remove.
4981 (tui_source_window_base::rerender): Rename from
4982 do_make_visible_with_new_height.
4983 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
4984 resize method.
4985 (tui_win_info::make_invisible_and_set_new_height)
4986 (tui_win_info::make_visible_with_new_height): Remove.
4987 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
4988 Declare.
4989 * tui/tui-stack.c (tui_locator_window::rerender): New method.
4990 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
4991 do_make_visible_with_new_height>: Don't declare.
4992 <rerender>: Declare.
4993 * tui/tui-regs.c (tui_data_window::rerender): Rename from
4994 set_new_height.
4995 (tui_data_window::do_make_visible_with_new_height): Remove.
4996 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
4997 call tui_show_locator_content.
4998 (tui_gen_win_info::resize): Call rerender.
4999 (show_source_or_disasm_and_command): Don't call
5000 tui_show_locator_content.
5001 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5002 method.
5003 (struct tui_win_info) <rerender>: Declare.
5004 <set_new_height, make_invisible_and_set_new_height,
5005 make_visible_with_new_height>: Don't declare.
5006 * tui/tui-data.c (tui_win_list::rerender): New method.
5007 * tui/tui-command.h (struct tui_cmd_window)
5008 <do_make_visible_with_new_height>: Don't declare.
5009 * tui/tui-command.c
5010 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5011
272560b5
TT
50122019-08-15 Tom Tromey <tromey@adacore.com>
5013
5014 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5015 * ada-lang.c (ada_enum_name): Likewise.
5016
08235187
CB
50172019-08-15 Christian Biesinger <cbiesinger@google.com>
5018
5019 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5020 leading underscore.
5021 (GdbOutputErrorFile): Likewise.
5022 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5023 accordingly.
5024 (execute_unwinders): Rename to have a leading underscore.
5025 (auto_load_packages): Likewise.
5026 (global scope): Adjust call to auto_load_packages accordingly.
5027 (GdbSetPythonDirectory): Likewise.
5028 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5029 instead of execute_unwinders.
5030
db502012
TT
50312019-08-15 Tom Tromey <tom@tromey.com>
5032
5033 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5034 (show_data): Don't change window visibility.
5035 (tui_gen_win_info::resize): Remove special case for command
5036 window. Use wresize, when available.
5037 (show_source_or_disasm_and_command): Don't change window
5038 visibility.
5039 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5040 <make_visible>: New method.
5041 * tui/tui-command.c (tui_cmd_window::resize): New method.
5042
3891b65e
TT
50432019-08-15 Tom Tromey <tom@tromey.com>
5044
5045 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5046 (struct tui_source_windows): New.
5047 * tui/tui-winsource.c (tui_display_main): Update.
5048 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5049 (new_height_ok, parse_scrolling_args): Update.
5050 * tui/tui-layout.c (show_layout, show_data): Update.
5051 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5052 (tui_add_to_source_windows): Don't declare.
5053 * tui/tui-data.c (source_windows, tui_source_windows)
5054 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5055
ee556432
TT
50562019-08-15 Tom Tromey <tom@tromey.com>
5057
5058 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5059 Rename from reset.
5060 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5061 * tui/tui-layout.c (show_source_disasm_command, show_data):
5062 Update.
5063 (tui_gen_win_info::resize): Rename.
5064 (show_source_or_disasm_and_command): Update.
5065 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5066 reset.
5067
46f438e3
TT
50682019-08-15 Tom Tromey <tom@tromey.com>
5069
5070 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5071 * tui/tui-interp.c (tui_interp::init): Don't call
5072 tui_initialize_static_data.
5073 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5074
f4ce562c
TT
50752019-08-15 Tom Tromey <tom@tromey.com>
5076
5077 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5078 examine tui_win_list.
5079
c398c3d0
TT
50802019-08-15 Tom Tromey <tom@tromey.com>
5081
5082 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5083 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5084 tui_clear_source_content.
5085 (tui_clear_source_content): Remove.
5086 (tui_source_window_base::do_erase_source_content): Hoist call to
5087 content.clear().
5088 * tui/tui-stack.c (tui_show_frame_info): Don't call
5089 tui_clear_source_content.
5090
e25d2004
TT
50912019-08-15 Tom Tromey <tom@tromey.com>
5092
5093 * tui/tui-winsource.h (struct tui_source_window_base)
5094 <do_erase_source_content>: New method.
5095 <erase_source_content>: New method.
5096 (tui_erase_source_content): Don't declare.
5097 * tui/tui-winsource.c (tui_clear_source_content): Update.
5098 (tui_source_window_base::do_erase_source_content): Rename from
5099 tui_erase_source_content.
5100 (tui_source_window_base::show_source_content): Update.
5101 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5102 * tui/tui-source.h (struct tui_source_window)
5103 <erase_source_content>: New method.
5104 * tui/tui-disasm.h (struct tui_disasm_window)
5105 <erase_source_content>: New method.
5106
002f15c2
TT
51072019-08-15 Tom Tromey <tom@tromey.com>
5108
5109 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5110 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5111 constructor.
5112 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5113 * tui/tui-source.c (tui_set_source_content): Update.
5114 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5115
c9033fe8
TT
51162019-08-15 Tom Tromey <tom@tromey.com>
5117
5118 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5119 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5120 tui-source.c.
5121 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5122 Declare.
5123 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5124 method.
5125 (tui_source_window::maybe_update): Update.
5126
088f37dd
TT
51272019-08-15 Tom Tromey <tom@tromey.com>
5128
5129 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5130 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5131 tui-disasm.c.
5132 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5133 Declare.
5134 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5135 method.
5136 (tui_disasm_window::maybe_update): Update.
5137
a54700c6
TT
51382019-08-15 Tom Tromey <tom@tromey.com>
5139
5140 * tui/tui-winsource.h (struct tui_source_window_base)
5141 <maybe_update>: Declare.
5142 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5143 method.
5144 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5145 Declare.
5146 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5147 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5148 Declare.
5149 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5150
e2a678a5
TT
51512019-08-15 Tom Tromey <tom@tromey.com>
5152
5153 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5154
f2dda477
TT
51552019-08-15 Tom Tromey <tom@tromey.com>
5156
5157 * tui/tui-wingeneral.c: Include tui-stack.h.
5158 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5159 (struct tui_locator_window): Move from tui-data.h.
5160 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5161 (tui_initialize_static_data): Move from tui-data.c.
5162 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5163 (struct tui_locator_window): Move to tui-stack.c.
5164 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5165 (tui_initialize_static_data): Move to tui-stack.c.
5166
ed4a1084
TT
51672019-08-15 Tom Tromey <tom@tromey.com>
5168
5169 * tui/tui-layout.c (show_source_disasm_command)
5170 (show_source_or_disasm_and_command): Use make_visible method, not
5171 tui_make_window.
5172 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5173 Remove.
5174
65962b20
TT
51752019-08-15 Tom Tromey <tom@tromey.com>
5176
5177 * tui/tui-wingeneral.h (tui_make_window): Update.
5178 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5179 parameter.
5180 (tui_gen_win_info::make_visible): Update.
5181 * tui/tui-regs.c (tui_data_window::display_registers_from):
5182 Update.
5183 * tui/tui-layout.c (show_source_disasm_command)
5184 (show_source_or_disasm_and_command): Update.
5185 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5186 (enum tui_box): Remove.
5187 (struct tui_win_info) <can_box>: New method.
5188 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5189 method.
5190
2208ee91
TV
51912019-08-15 Tom de Vries <tdevries@suse.de>
5192
5193 * linux-nat-trad.c: Include gdbarch.h.
5194
75faf5c4
AH
51952019-08-14 Alan Hayward <alan.hayward@arm.com>
5196
5197 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5198 register sizes.
5199
b1c896b3
TT
52002019-08-14 Tom Tromey <tromey@adacore.com>
5201
5202 * darwin-nat.c: Include gdbarch.h.
5203 * darwin-nat-info.c: Include gdbarch.h.
5204
6405cd73
TT
52052019-08-13 Tom Tromey <tom@tromey.com>
5206
5207 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5208 Remove.
5209 * tui/tui-data.c (tui_initialize_static_data): Update.
5210
5216580d
TT
52112019-08-13 Tom Tromey <tom@tromey.com>
5212
5213 * tui/tui-winsource.h (struct tui_exec_info_window)
5214 <~tui_exec_info_window, maybe_allocate_content, get_content,
5215 m_content>: Remove.
5216 (struct tui_source_window_base) <set_exec_info_content,
5217 show_exec_info_content>: Don't declare.
5218 * tui/tui-winsource.c
5219 (tui_exec_info_window::maybe_allocate_content): Remove.
5220 (tui_source_window_base::update_exec_info): Rename from
5221 set_exec_info_content.
5222 (tui_source_window_base::show_exec_info_content)
5223 (tui_source_window_base::update_exec_info): Remove.
5224
93858ad3
TT
52252019-08-13 Tom Tromey <tom@tromey.com>
5226
5227 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5228 declare.
5229 * tui/tui-winsource.c (tui_update_source_window_as_is)
5230 (tui_update_source_windows_with_addr, tui_erase_source_content):
5231 Update.
5232 (tui_clear_exec_info_content): Remove.
5233
e321e7ce
TT
52342019-08-13 Tom Tromey <tom@tromey.com>
5235
5236 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5237 declare.
5238 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5239 call tui_erase_exec_info_content.
5240 (tui_clear_exec_info_content): Rename from
5241 tui_erase_exec_info_content.
5242 (tui_clear_exec_info_content): Delete.
5243
8270ac62
TT
52442019-08-13 Tom Tromey <tom@tromey.com>
5245
5246 * tui/tui-winsource.h (struct tui_source_window_base)
5247 <show_exec_info_content>: Declare.
5248 (tui_show_exec_info_content): Don't declare.
5249 * tui/tui-winsource.c
5250 (tui_source_window_base::show_exec_info_content): Rename from
5251 tui_show_exec_info_content.
5252 (tui_source_window_base::update_exec_info): Update.
5253
7b56485d
TT
52542019-08-13 Tom Tromey <tom@tromey.com>
5255
5256 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5257 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5258 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5259 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5260 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5261 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5262 ... here.
5263
7ba913dc
TT
52642019-08-13 Tom Tromey <tom@tromey.com>
5265
5266 * tui/tui-winsource.h (struct tui_source_window_base)
5267 <update_exec_info>: Declare.
5268 (tui_update_exec_info): Don't declare.
5269 * tui/tui-winsource.c (tui_update_source_window_as_is)
5270 (tui_source_window_base::refresh_all)
5271 (tui_update_all_breakpoint_info): Update.
5272 (tui_source_window_base::update_exec_info): Rename from
5273 tui_update_exec_info.
5274 * tui/tui-stack.c (tui_show_frame_info): Update.
5275
37a4a131
TT
52762019-08-13 Tom Tromey <tom@tromey.com>
5277
5278 * tui/tui-winsource.h (struct tui_source_window_base)
5279 <set_exec_info_content>: Declare.
5280 (tui_set_exec_info_content): Don't declare.
5281 * tui/tui-winsource.c
5282 (tui_source_window_base::set_exec_info_content): Rename from
5283 tui_set_exec_info_content.
5284 (tui_update_exec_info): Update.
5285
0bd27e07
TT
52862019-08-13 Tom Tromey <tom@tromey.com>
5287
5288 * tui/tui-winsource.h (struct tui_source_window_base)
5289 <show_source_content>: Declare.
5290 (tui_show_source_content): Don't declare.
5291 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5292 (tui_source_window_base::show_source_content): Rename from
5293 tui_show_source_content.
5294 (tui_source_window_base::refresh_all): Update.
5295 * tui/tui-layout.c (show_source_disasm_command)
5296 (show_source_or_disasm_and_command): Update.
5297
b4ef5aeb
TT
52982019-08-13 Tom Tromey <tom@tromey.com>
5299
5300 * tui/tui-winsource.c (tui_erase_source_content)
5301 (tui_show_source_content, tui_source_window_base::refresh_all):
5302 Update.
5303 * tui/tui-wingeneral.h
5304 (tui_check_and_display_highlight_if_needed): Don't declare.
5305 * tui/tui-wingeneral.c
5306 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5307 check_and_display_highlight_if_needed.
5308 * tui/tui-win.c (tui_rehighlight_all)
5309 (tui_win_info::make_visible_with_new_height): Update.
5310 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5311 (tui_data_window::erase_data_content)
5312 (tui_data_window::display_all_data): Update.
5313 * tui/tui-data.h (struct tui_win_info)
5314 <check_and_display_highlight_if_needed>: Declare.
5315
fede5273
TT
53162019-08-13 Tom Tromey <tom@tromey.com>
5317
5318 * tui/tui-win.c (tui_resize_all): Call
5319 tui_delete_invisible_windows.
5320 * tui/tui-layout.c (show_layout): Call
5321 tui_delete_invisible_windows.
5322 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5323 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5324
22c3f490
TT
53252019-08-13 Tom Tromey <tom@tromey.com>
5326
5327 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5328 tui_add_win_to_layout.
5329
16cb7910
TT
53302019-08-13 Tom Tromey <tom@tromey.com>
5331
5332 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5333 * tui/tui-layout.c (tui_default_win_height): Now static.
5334
cc0c3ffb
TT
53352019-08-13 Tom Tromey <tom@tromey.com>
5336
5337 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5338 single switch.
5339 (show_source_disasm_command, show_source_or_disasm_and_command):
5340 Don't check current layout.
5341
3f3ffe54
TT
53422019-08-13 Tom Tromey <tom@tromey.com>
5343
5344 * tui/tui-wingeneral.c (make_all_visible): Remove.
5345 (tui_make_all_invisible): Simplify.
5346 * tui/tui-layout.c (tui_make_all_invisible): Move from
5347 tui-wingeneral.c; simplify.
5348 (show_layout): Hoist call to tui_make_all_invisible.
5349 (show_data): Don't call tui_make_all_invisible.
5350
69258091
TT
53512019-08-13 Tom Tromey <tom@tromey.com>
5352
5353 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5354 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5355
62cf57fe
TT
53562019-08-13 Tom Tromey <tom@tromey.com>
5357
5358 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5359 tui-data.c.
5360 (show_source_disasm_command, show_data)
5361 (show_source_or_disasm_and_command): Don't use
5362 tui_set_current_layout_to.
5363 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5364 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5365 tui-layout.c.
5366 (tui_set_current_layout_to): Remove.
5367
2afade5d
TT
53682019-08-13 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-layout.c (tui_set_layout): Update.
5371 * tui/tui-data.h (struct tui_layout_def): Remove.
5372 (tui_layout_def): Don't declare.
5373 * tui/tui-data.c (layout_def): Remove.
5374 (tui_layout_def): Remove.
5375
a3504e96
TT
53762019-08-13 Tom Tromey <tom@tromey.com>
5377
5378 * tui/tui-winsource.h (struct tui_source_window_base)
5379 <clear_detail>: No longer "override".
5380 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5381 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5382 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5383 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5384 Remove.
5385 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5386
29c92911
TT
53872019-08-13 Tom Tromey <tromey@adacore.com>
5388
5389 * tracepoint.c: Don't include readline.h or history.h.
5390
86c6b807
TT
53912019-08-12 Tom Tromey <tom@tromey.com>
5392
5393 * configure: Rebuild.
5394 * configure.ac: Check for readline 7.
5395 * NEWS: Mention readline 7 requirement.
5396 * README: Update.
5397
5db2718c
TT
53982019-08-12 Tom Tromey <tom@tromey.com>
5399
5400 * mingw-hdep.c (gdb_select): Remove readline hack.
5401
dac36daf
PFC
54022019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5403
5404 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5405 when the function fails.
5406
1022c627
AA
54072019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5408
5409 * s390-tdep.c (s390_type_align): New function.
5410 (s390_gdbarch_init): Set it as type_align gdbarch method.
5411
eba4caf2
TV
54122019-08-09 Tom de Vries <tdevries@suse.de>
5413
5414 PR gdb/24591
5415 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5416 pc_low with relocation offset.
5417
123cd851
TT
54182019-08-07 Tom Tromey <tromey@adacore.com>
5419
5420 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5421 (print_frame_args): Update.
5422 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5423 Update.
5424 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5425 * frame.h (struct frame_arg): Add initializers.
5426 <error>: Now a unique_xmalloc_ptr.
5427
3d31bc39
AH
54282019-08-07 Alan Hayward <alan.hayward@arm.com>
5429
5430 * NEWS: Expand the Pointer Authentication entry.
5431 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5432 (aarch64_frame_unmask_lr): ... to this.
5433 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5434 Call aarch64_frame_unmask_lr.
5435 * frame.c (struct frame_info): Add "masked" variable.
5436 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5437 (fprint_frame): Check for masked pc.
5438 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5439 declarations.
5440 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5441 * stack.c (print_frame): Check for masked pc.
5442
0cf9feb9
TT
54432019-08-06 Tom Tromey <tom@tromey.com>
5444
5445 * stabsread.c (patch_block_stabs, read_one_struct_field)
5446 (read_enum_type): Use obstack_strndup.
5447 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5448 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5449 * dwarf2read.c (guess_full_die_structure_name)
5450 (anonymous_struct_prefix): Use obstack_strndup.
5451 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5452 * c-exp.y (yylex): Use obstack_strndup.
5453 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5454 (write_var_or_type): Use obstack_strndup.
5455
efba19b0
TT
54562019-08-06 Tom Tromey <tom@tromey.com>
5457
5458 * symfile.c (reread_symbols): Use obstack_strdup.
5459 * stabsread.c (read_type): Use obstack_strdup.
5460 * gdb_obstack.h (obstack_strdup): New overload.
5461 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5462 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5463 (dwarf2_canonicalize_name): Use obstack_strdup.
5464 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5465 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5466 Use obstack_strdup.
5467
f25102f7
TT
54682019-08-06 Tom Tromey <tom@tromey.com>
5469
5470 * gdb_obstack.h (obstack_strdup): Define.
5471 * gdb_obstack.c (obstack_strdup): Don't define.
5472
021887d8
TT
54732019-08-06 Tom Tromey <tom@tromey.com>
5474
5475 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5476 obstack_strdup.
5477 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5478 obstack_strdup.
5479 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5480 * stabsread.c (common_block_start): Use obstack_strdup.
5481 * objfiles.c (set_objfile_main_name, objfile): Use
5482 obstack_strdup.
5483 * namespace.c (add_using_directive): Use obstack_strdup.
5484 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5485 * jit.c (finalize_symtab): Use obstack_strdup.
5486 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5487 (guess_partial_die_structure_name, partial_die_info::fixup)
5488 (dwarf2_name): Use obstack_strdup.
5489 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5490 obstack_strdup.
5491 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5492 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5493 obstack_strdup.
5494 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5495
d2834edc
PW
54962019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5497
5498 * unittests/help-doc-selftests.c: New file.
5499 * Makefile.in: Add the new file.
5500
590042fc
PW
55012019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5502
5503 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5504 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5505 the full first line, except when FOR_VALUE_PREFIX. In this case,
5506 the trailing '.' is not output, and the first character is uppercased.
5507 (print_help_for_command): Update call to print_doc_line.
5508 (print_doc_of_command): Likewise.
5509 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5510 * cli/cli-option.c (append_indented_doc): Do not append newline.
5511 (build_help_option): Append newline after first appended_indented_doc
5512 only if a second call is done.
5513 (build_help): Append 2 new lines before each option, except the first
5514 one.
5515 * compile/compile.c (_initialize_compile): Add new lines after
5516 %OPTIONS%, when not at the end of the help.
5517 Change help doc or code
5518 producing the help doc to respect the invariants.
5519 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5520 Also removed the new line after 'Options:', as all other commands
5521 do not put an empty line between 'Options:' and the first option.
5522 * printcmd.c (_initialize_printcmd): Likewise.
5523 * stack.c (_initialize_stack): Likewise.
5524 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5525 incorrectly telling COMMAND is optional.
5526 * ada-lang.c (_initialize_ada_language): Change help doc or code
5527 producing the help doc to respect the invariants.
5528 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5529 * breakpoint.c (_initialize_breakpoint): Likewise.
5530 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5531 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5532 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5533 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5534 _initialize_cli_style): Likewise.
5535 * corelow.c (core_target_info): Likewise.
5536 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5537 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5538 * filesystem.c (_initialize_filesystem): Likewise.
5539 * frame.c (_initialize_frame): Likewise.
5540 * gnu-nat.c (add_task_commands): Likewise.
5541 * infcall.c (_initialize_infcall): Likewise.
5542 * infcmd.c (_initialize_infcmd): Likewise.
5543 * interps.c (_initialize_interpreter): Likewise.
5544 * language.c (_initialize_language): Likewise.
5545 * linux-fork.c (_initialize_linux_fork): Likewise.
5546 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5547 * maint.c (_initialize_maint_cmds): Likewise.
5548 * memattr.c (_initialize_mem): Likewise.
5549 * printcmd.c (_initialize_printcmd): Likewise.
5550 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5551 _RegEx): Likewise.
5552 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5553 * record-btrace.c (_initialize_record_btrace): Likewise.
5554 * record-full.c (_initialize_record_full): Likewise.
5555 * record.c (_initialize_record): Likewise.
5556 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5557 * regcache.c (_initialize_regcache): Likewise.
5558 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5559 _initialize_remote): Likewise.
5560 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5561 * serial.c (_initialize_serial): Likewise.
5562 * skip.c (_initialize_step_skip): Likewise.
5563 * source.c (_initialize_source): Likewise.
5564 * stack.c (_initialize_stack): Likewise.
5565 * symfile.c (_initialize_symfile): Likewise.
5566 * symtab.c (_initialize_symtab): Likewise.
5567 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5568 * top.c (init_main): Likewise.
5569 * tracefile-tfile.c (tfile_target_info): Likewise.
5570 * tracepoint.c (_initialize_tracepoint): Likewise.
5571 * tui/tui-win.c (_initialize_tui_win): Likewise.
5572 * utils.c (add_internal_problem_command): Likewise.
5573 * valprint.c (value_print_option_defs): Likewise.
5574
404f2902
FCE
55752019-08-06 Frank Ch. Eigler <fche@redhat.com>
5576
5577 PR build/24886
5578 * configure.ac: Drop enable-libmcheck support.
5579 * configure, config.in: Rebuild.
5580 * libmcheck.m4: Remove.
5581 * acinclude.m4: Don't include it.
5582 * Makefile.in: Don't distribute it.
5583 * top.c (print_gdb_configuration): Don't mention it.
5584
046bebe1
TT
55852019-08-06 Tom Tromey <tom@tromey.com>
5586
5587 * utils.c (set_output_style): Sometimes pass stream to
5588 emit_style_escape.
5589 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5590 * record-btrace.c (btrace_insn_history): Update.
5591 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5592 method.
5593 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5594 Update initializers.
5595 <m_uiout>: New field.
5596 <m_di>: Move lower.
5597 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5598 Remove "uiout" parameter.
5599 (dump_insns): Update.
5600 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5601 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5602
ddbcedf5
CB
56032019-08-06 Christian Biesinger <cbiesinger@google.com>
5604
5605 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5606 (error_in_psymtab_expansion): Likewise.
5607 (lookup_symbol_via_quick_fns): Likewise.
5608 (basic_lookup_transparent_type_quick): Likewise.
5609 (basic_lookup_transparent_type_1): Likewise.
5610
b08b16c8
TT
56112019-08-06 Tom Tromey <tromey@adacore.com>
5612
5613 * source.c (last_source_error): Now bool.
5614 (print_source_lines_base): Make "noprint" bool. Only open
5615 source file when last_source_visited changes.
5616
cb44333d
TT
56172019-08-06 Tom Tromey <tromey@adacore.com>
5618
5619 * annotate.c (annotate_source_line): Use g_source_cache.
5620 * source-cache.c (source_cache::get_plain_source_lines): Change
5621 parameters. Populate m_offset_cache.
5622 (source_cache::ensure): New method.
5623 (source_cache::get_line_charpos): New method.
5624 (extract_lines): Move lower. Change parameters.
5625 (source_cache::get_source_lines): Move lower.
5626 * source-cache.h (class source_cache): Update comment.
5627 <get_line_charpos>: New method.
5628 <get_source_lines>: Update comment.
5629 <clear>: Clear m_offset_cache.
5630 <get_plain_source_lines>: Change parameters.
5631 <ensure>: New method
5632 <m_offset_cache>: New member.
5633 * source.c (forget_cached_source_info_for_objfile): Update.
5634 (info_source_command): Use g_source_cache.
5635 (find_source_lines, open_source_file_with_line_charpos): Remove.
5636 (print_source_lines_base, search_command_helper): Use g_source_cache.
5637 * source.h (open_source_file_with_line_charpos): Don't declare.
5638 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5639 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5640 Use g_source_cache.
5641
872dceaa
TT
56422019-08-06 Tom Tromey <tromey@adacore.com>
5643
5644 * source-cache.c (source_cache::get_plain_source_lines):
5645 Remove "first_line" and "last_line" parameters.
5646 (source_cache::get_source_lines): Cache plain text.
5647 * source-cache.h (class source_cache)
5648 <get_plain_source_lines>: Update.
5649
269249d9
TT
56502019-08-06 Tom Tromey <tromey@adacore.com>
5651
5652 * source-cache.c (extract_lines): No longer a method.
5653 Changed type of parameter. Include final newline.
5654 (selftests::extract_lines_test): New function.
5655 (_initialize_source_cache): Likewise.
5656 * source-cache.h (class source_cache)
5657 <extract_lines>: Don't declare.
5658
c0e8dcd8
TT
56592019-08-06 Tom Tromey <tromey@adacore.com>
5660
5661 * breakpoint.c (init_breakpoint_sal): Update.
5662 (breakpoint): Update.
5663 * breakpoint.h (struct breakpoint) <filter>: Now a
5664 unique_xmalloc_ptr.
5665
0b27c27d
CB
56662019-08-05 Christian Biesinger <cbiesinger@google.com>
5667
5668 * NEWS: Mention dictionary access on blocks.
5669 * python/py-block.c (blpy_getitem): New function.
5670 (block_object_as_mapping): New struct.
5671 (block_object_type): Use new struct for tp_as_mapping field.
5672
4ee94178
CB
56732019-08-05 Christian Biesinger <cbiesinger@google.com>
5674
5675 * objfiles.h (objfile): Add a comment describing partial symbols.
5676
8abfcabc
TT
56772019-08-05 Tom Tromey <tromey@adacore.com>
5678
5679 * compile/compile.c (_initialize_compile): Use _(), not N_().
5680 * thread.c (_initialize_thread): Use _(), not N_().
5681 * stack.c (_initialize_stack): Use _(), not N_().
5682 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5683
2b79f376
SM
56842019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5685
5686 * dwarf2read.c (struct dw2_symtab_iterator):
5687 <want_specific_block>: Remove.
5688 <block_index>: Change type to gdb::optional.
5689 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5690 change type of BLOCK_INDEX parameter to gdb::optional.
5691 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5692 (dw2_lookup_symbol): Don't pass argument for
5693 WANT_SPECIFIC_BLOCK.
5694 (dw2_expand_symtabs_for_function): Don't pass argument for
5695 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5696 (class dw2_debug_names_iterator)
5697 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5698 parameter, change BLOCK_INDEX type to gdb::optional.
5699 <m_want_specific_block>: Remove.
5700 <m_block_index>: Change type to gdb::optional.
5701 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5702 gdb::optional. Re-write in function of gdb::optional.
5703 (dw2_debug_names_lookup_symbol): Don't pass argument for
5704 WANT_SPECIFIC_BLOCK.
5705 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5706 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5707 BLOCK_INDEX.
5708
ae60f04e
PW
57092019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5710
5711 * NEWS: Mention changes to "info sources" command.
5712
28cd9371
PW
57132019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5714
5715 * symtab.c (filename_partial_match_opts): New struct type.
5716 (struct output_source_filename_data): New members
5717 regexp, c_regexp, partial_match.
5718 (output_source_filename): Use new members to decide to print file.
5719 (info_sources_option_defs): New variable.
5720 (make_info_sources_options_def_group, print_info_sources_header,
5721 info_sources_command_completer):
5722 New functions.
5723 (info_sources_command): Read new optional arguments.
5724 (_initialize_symtab): Update info sources help.
5725
ca683e3a
AO
57262019-08-02 Alexandre Oliva <oliva@adacore.com>
5727
5728 * ada-lang.c (exception_support_info_v0): Renamed from...
5729 (default_exception_support_info): ... this. Create new
5730 definition for v1.
5731 (ada_has_this_exception_support): Look up catch_handlers_sym.
5732 (ada_exception_support_info_sniffer): Try v0 after default.
5733
f1264162
TT
57342019-08-01 Tom Tromey <tromey@adacore.com>
5735
5736 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5737 gdbarch.h.
5738
0a7b2485
CB
57392019-08-01 Christian Biesinger <cbiesinger@google.com>
5740
5741 * s12z-tdep.c: Fix include path for s12z-opc.h.
5742
c6bdbeb7
AH
57432019-08-01 Alan Hayward <alan.hayward@arm.com>
5744
5745 * NEWS: Require GNU make 3.82.
5746
a2bd7b82
TT
57472019-07-16 Tom Tromey <tom@tromey.com>
5748
5749 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5750 declare.
5751
aa3b6533
TT
57522019-07-30 Tom Tromey <tromey@adacore.com>
5753
5754 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5755
a1530dc7
KB
57562019-07-30 Kevin Buettner <kevinb@redhat.com>
5757
5758 * printcmd.c (print_address_symbolic): Print negative offsets.
5759 (build_address_symbolic): Force signed arithmetic when computing
5760 offset.
5761
2906593f
CB
57622019-07-30 Christian Biesinger <cbiesinger@google.com>
5763
5764 PR/24474: Add a function to lookup static variables.
5765 * NEWS: Mention this new function.
5766 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5767 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5768 * python/python.c (python_GdbMethods): Add new function.
5769
c620ed88
CB
57702019-07-29 Christian Biesinger <cbiesinger@google.com>
5771
5772 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5773 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5774 (objfpy_lookup_static_symbol): New function.
5775 (objfile_object_methods): Add new functions.
5776
bc4268a5
PW
57772019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5778
5779 * NEWS: Mention 'set|show print frame-info'. Mention new
5780 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5781 backtrace argument. Mention that python frame filtering code
5782 is now consistent with what 'backtrace' command prints.
5783
4b5e8d19
PW
57842019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5785
5786 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5787 comments.
5788 (print_frame_info_auto, print_frame_info_source_line,
5789 print_frame_info_location, print_frame_info_source_and_location,
5790 print_frame_info_location_and_address, print_frame_info_short_location):
5791 New declarations.
5792 (struct frame_print_options): New member print_frame_info.
5793 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5794 * stack.h (get_user_print_what_frame_info): New declaration.
5795 (frame_show_address): New declaration.
5796 * stack.c (print_frame_arguments_choices): New value 'presence'.
5797 (print_frame_info_auto, print_frame_info_source_line,
5798 print_frame_info_location, print_frame_info_source_and_location,
5799 print_frame_info_location_and_address, print_frame_info_short_location,
5800 print_frame_info_choices, print_frame_info_print_what): New definitions.
5801 (print_frame_args): Only print dots for args if print frame-arguments
5802 is 'presence'.
5803 (frame_print_option_defs): New element for "frame-info".
5804 (get_user_print_what_frame_info): New function.
5805 (frame_show_address): Make non static. Move comment to stack.h.
5806 (print_frame_info_to_print_what): New function.
5807 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5808 to decide what to print.
5809 (backtrace_command_1): Handle the new print_frame_arguments_presence
5810 value.
5811 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5812 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5813 (py_print_frame): In non-mi mode, use LOCATION as default for
5814 print_what, similarly to frame information printed directly by
5815 backtrace command. Handle frame-info user option in non MI mode.
5816
6bdfee81
KB
58172019-07-27 Kevin Buettner <kevinb@redhat.com>
5818
5819 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5820 Add case for debugging 32-bit target on 64-bit host. Revise
5821 comment.
5822
98a617f8
KB
58232019-07-27 Kevin Buettner <kevinb@redhat.com>
5824
5825 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5826 instead of find_function_entry_range_from_pc.
5827
567238c9
KB
58282019-07-27 Kevin Buettner <kevinb@redhat.com>
5829
5830 * stack.c (find_frame_funname): Remove code which preferred
5831 minsym over symtab sym in "certain pathological cases".
5832
2dc80cf8
KB
5833 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5834 parameter. Change type of "do_demangle" to bool.
5835 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5836 Pass suitable "prefer_sym_over_minsym" flag to
5837 build_address_symbolic(). Don't output "+" for negative offsets.
5838 * printcmd.c (print_address_symbolic): Update invocation of
5839 build_address_symbolic to include a "prefer_sym_over_minsym"
5840 flag.
5841 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5842 Restrict cases in which use of minimal symbol is preferred to that
5843 of a found symbol. Update comments.
5844
1aff7173
KB
5845 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5846 for entry pc when entry pc is out of range for that FDE.
5847
89b085ac
BC
58482019-07-26 Brian Callahan <bcallah@openbsd.org>
5849
5850 PR gdb/24839:
5851 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5852 type.
5853
f32feb4a
CB
58542019-07-25 Christian Biesinger <cbiesinger@google.com>
5855
5856 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5857 this function's Python signature.
5858
5859
58602019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5861
5862 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5863 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5864 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5865 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5866 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5867
5868
c54e4253
YS
58692019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5870
5871 * h8300-tdep.c (h8300_register_name_common): New.
5872 h8300_register_name): Use h8300_register_name_common.
5873 (h8300s_register_name): Likewise.
5874 (h8300sx_register_name): Likewise.
5875 (h8300h_register_nam): New.
5876 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5877
5878
40eadf04
SP
58792019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5880
5881 * arm-tdep.c (arm_skip_cmse_entry): New function.
5882 (arm_is_sgstubs_section): New function.
5883 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5884
bfa2a36d
TT
58852019-07-22 Tom Tromey <tom@tromey.com>
5886
5887 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5888 Don't self-assign.
5889
a8e9d247
AB
58902019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5891
5892 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5893 type_print.
5894
eb86c5e2
AB
58952019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5896
5897 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5898 so that GDB doesn't match any msymbols when searching in the
5899 TYPES_DOMAIN.
5900 (print_symbol_info): Print using typedef_print or type_print based
5901 on the type of the symbol. Add updated FIXME comment moved from...
5902 (_initialize_symtab): ... move and update FIXME comment to above.
5903
a8eab7c6
AB
59042019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5905
5906 * NEWS: Mention adding -q option to "info types".
5907 * symtab.c (struct info_types_options): New struct.
5908 (info_types_options_defs): New variable.
5909 (make_info_types_options_def_group): New function.
5910 (info_types_command): Use gdb::option framework to parse options.
5911 (info_types_command_completer): New function.
5912 (_initialize_symtab): Extend the help text on "info types" and
5913 register command completer.
5914
b4603c34
CB
59152019-07-21 Christian Biesinger <cbiesinger@google.com>
5916
5917 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5918 (lookup_symbol_in_objfile): Change int to block_enum and add a
5919 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5920
c8cdc1e0
CB
59212019-07-20 Christian Biesinger <cbiesinger@google.com>
5922
5923 * MAINTAINERS (Write After Approval): Add self.
5924
01e175fe
AB
59252019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5926
5927 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5928 instruction to the dummy code region.
5929
56f79b63
TT
59302019-07-19 Tom Tromey <tromey@adacore.com>
5931
5932 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5933 (ARGSUSED, PARAMS, __func__): Remove rules.
5934
4c5aa8e0
AH
59352019-07-19 Alan Hayward <alan.hayward@arm.com>
5936
5937 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5938 * features/arm/arm-with-iwmmxt.c: Remove.
5939 * features/arm/arm-with-iwmmxt.xml: Remove.
5940 * features/arm/arm-with-m-fpa-layout.c: Remove.
5941 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5942 * features/arm/arm-with-m-vfp-d16.c: Remove.
5943 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5944 * features/arm/arm-with-m.c: Remove.
5945 * features/arm/arm-with-m.xml: Remove.
5946 * features/arm/arm-with-neon.c: Remove.
5947 * features/arm/arm-with-neon.xml: Remove.
5948 * features/arm/arm-with-vfpv2.c: Remove.
5949 * features/arm/arm-with-vfpv2.xml: Remove.
5950 * features/arm/arm-with-vfpv3.c: Remove.
5951 * features/arm/arm-with-vfpv3.xml: Remove.
5952
f42b2617
AH
59532019-07-19 Alan Hayward <alan.hayward@arm.com>
5954
5955 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5956
f29ec966
AH
59572019-07-19 Alan Hayward <alan.hayward@arm.com>
5958
5959 * arch/aarch32.c (aarch32_create_target_description): Create
5960 target descriptions using features.
5961 * arch/arm.c (arm_create_target_description)
5962 (arm_create_mprofile_target_description): Likewise.
5963 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5964
d105cce5
AH
59652019-07-19 Alan Hayward <alan.hayward@arm.com>
5966
5967 * Makefile.in: Add new files.
5968 * aarch32-tdep.c: New file.
5969 * aarch32-tdep.h: New file.
5970 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5971 Call aarch32_read_description.
5972 * arch/aarch32.c: New file.
5973 * arch/aarch32.h: New file.
5974 * arch/arm.c (arm_create_target_description)
5975 (arm_create_mprofile_target_description): New function.
5976 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
5977 (arm_create_target_description)
5978 (arm_create_mprofile_target_description): New declaration.
5979 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
5980 read_description functions.
5981 * arm-linux-nat.c (arm_linux_nat_target::read_description):
5982 Likewise.
5983 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
5984 * arm-tdep.c (tdesc_arm_list): New variable.
5985 (arm_register_g_packet_guesses): Call create description functions.
5986 (arm_read_description) (arm_read_mprofile_description): New
5987 function.
5988 * arm-tdep.h (arm_read_description)
5989 (arm_read_mprofile_description): Add declaration.
5990 * configure.tgt: Add new files.
5991
afe09f0b
GL
59922019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
5993
5994 * top.c (new_ui_command): Open specified terminal just once.
5995
cd215b2e
TT
59962019-07-18 Tom Tromey <tromey@adacore.com>
5997
5998 * symtab.c (main_name): Constify return type.
5999 * symfile.c (set_initial_language): Update.
6000 * symtab.h (main_name): Constify return type.
6001
d8f68fcb
TT
60022019-07-17 Tom Tromey <tom@tromey.com>
6003
6004 * tui/tui-winsource.c (tui_update_source_window)
6005 (tui_update_source_window_as_is)
6006 (tui_update_source_windows_with_line): Remove return.
6007 * tui/tui-disasm.c (tui_show_disassem)
6008 (tui_show_disassem_and_update_source): Remove return.
6009 * tui/tui.c (tui_reset): Remove return.
6010 * tui/tui-wingeneral.c
6011 (tui_check_and_display_highlight_if_needed): Remove return.
6012
ca5af91e
TT
60132019-07-17 Tom Tromey <tom@tromey.com>
6014
6015 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6016
5104fe36
TT
60172019-07-17 Tom Tromey <tom@tromey.com>
6018
6019 * tui/tui-winsource.h (struct tui_exec_info_window)
6020 (struct tui_source_window_base): Move from tui-data.h.
6021 * tui/tui-winsource.c: Move many method definitions from
6022 elsewhere. Remove "structuring" comments.
6023 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6024 (tui_source_window_base::refresh_window): Move to
6025 tui-winsource.c.
6026 * tui/tui-win.c (tui_source_window_base::refresh_all)
6027 (tui_source_window_base::update_tab_width)
6028 (tui_source_window_base::set_new_height)
6029 (tui_source_window_base::do_make_visible_with_new_height): Move to
6030 tui-winsource.c.
6031 * tui/tui-source.h: Update.
6032 * tui/tui-source.c (tui_source_window_base::reset): Move to
6033 tui-winsource.c.
6034 * tui/tui-disasm.h: Update.
6035 * tui/tui-data.h (struct tui_exec_info_window): Move to
6036 tui-winsource.h.
6037 (struct tui_source_window_base): Likewise.
6038 * tui/tui-data.c (tui_source_window_base::clear_detail)
6039 (tui_source_window_base, ~tui_source_window_base): Move to
6040 tui-winsource.c.
6041
daa15dde
TT
60422019-07-17 Tom Tromey <tom@tromey.com>
6043
6044 * tui/tui-win.c (tui_resize_all)
6045 (tui_source_window_base::update_tab_width)
6046 (tui_adjust_win_heights): Update.
6047 (tui_win_info::make_invisible_and_set_new_height): Rename from
6048 make_invisible_and_set_new_height.
6049 * tui/tui-data.h (struct tui_win_info)
6050 <make_invisible_and_set_new_height>: New method.
6051
bfad4537
TT
60522019-07-17 Tom Tromey <tom@tromey.com>
6053
6054 * tui/tui.c: Update.
6055 * tui/tui-source.h (struct tui_source_window): Move from
6056 tui-data.h.
6057 * tui/tui-layout.c: Update.
6058 * tui/tui-disasm.c: Update.
6059 * tui/tui-data.h (struct tui_source_window): Move to
6060 tui-source.h.
6061
88f7e873
TT
60622019-07-17 Tom Tromey <tom@tromey.com>
6063
6064 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6065 tui-data.h.
6066 * tui/tui-data.h (struct tui_disasm_window): Move to
6067 tui-disasm.h.
6068
96bd6233
TT
60692019-07-17 Tom Tromey <tom@tromey.com>
6070
6071 * tui/tui-regs.h (struct tui_data_item_window): Move from
6072 tui-data.h.
6073 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6074 * tui/tui-data.h (struct tui_data_item_window): Move to
6075 tui-regs.h.
6076 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6077
ce38393b
TT
60782019-07-17 Tom Tromey <tom@tromey.com>
6079
6080 * tui/tui.c: Update.
6081 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6082 (tui_cmd_window::max_height): Move to tui-command.c.
6083 * tui/tui-layout.c: Update.
6084 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6085 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6086 tui-command.c.
6087 * tui/tui-command.h (struct tui_cmd_window): Move from
6088 tui-data.h.
6089 * tui/tui-command.c: Remove "structuring" comments.
6090 (tui_cmd_window::clear_detail)
6091 (tui_cmd_window::do_make_visible_with_new_height)
6092 (tui_cmd_window::max_height): Move from elsewhere.
6093
2d8b51cb
TT
60942019-07-17 Tom Tromey <tom@tromey.com>
6095
6096 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6097 Now static.
6098 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6099 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6100
18ab23af
TT
61012019-07-17 Tom Tromey <tom@tromey.com>
6102
6103 * tui/tui.c: Update.
6104 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6105 tui-regs.c.
6106 * tui/tui-windata.h: Remove file.
6107 * tui/tui-windata.c: Remove file.
6108 * tui/tui-win.c (tui_data_window::set_new_height)
6109 (tui_data_window::do_make_visible_with_new_height): Move to
6110 tui-regs.c.
6111 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6112 * tui/tui-regs.c: Remove "structuring" comments.
6113 (tui_data_window::first_data_item_displayed)
6114 (tui_data_window::delete_data_content_windows)
6115 (tui_data_window::erase_data_content)
6116 (tui_data_window::display_all_data)
6117 (tui_data_window::refresh_all)
6118 (tui_data_window::do_scroll_vertical)
6119 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6120 (tui_data_window::do_make_visible_with_new_height)
6121 (tui_data_window::refresh_window): Move from elsewhere.
6122 (_initialize_tui_regs): Move to end of file.
6123 * tui/tui-layout.c: Update.
6124 * tui/tui-hooks.c: Update.
6125 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6126 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6127 tui-regs.c.
6128 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6129
88b7e7cc
TT
61302019-07-17 Tom Tromey <tom@tromey.com>
6131
6132 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6133 seen.
6134
0fcd3711
TT
61352019-07-17 Tom Tromey <tom@tromey.com>
6136
6137 * tui/tui-win.c (tui_source_window_base::set_new_height)
6138 (tui_source_window_base::do_make_visible_with_new_height): Use
6139 m_has_locator field directly.
6140 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6141 method.
6142 (struct tui_source_window_base) <has_locator>: Likewise.
6143
4a38112d
TT
61442019-07-17 Tom Tromey <tom@tromey.com>
6145
6146 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6147 Don't declare.
6148 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6149 Remove.
6150 * tui/tui-win.c (tui_source_window_base::set_new_height)
6151 (tui_source_window_base::set_new_height)
6152 (make_invisible_and_set_new_height)
6153 (tui_source_window_base::do_make_visible_with_new_height)
6154 (tui_source_window_base::do_make_visible_with_new_height):
6155 Update.
6156 * tui/tui-layout.c (show_source_disasm_command, show_data)
6157 (show_source_or_disasm_and_command): Update.
6158 * tui/tui-layout.c (show_layout): Update.
6159
09129226
TT
61602019-07-17 Tom Tromey <tom@tromey.com>
6161
6162 * tui/tui-layout.c (make_data_window): Remove.
6163 (show_data): Unify creation and re-initialization cases.
6164
4a8a5e84
TT
61652019-07-17 Tom Tromey <tom@tromey.com>
6166
6167 * tui/tui-layout.c (make_source_window, make_disasm_window):
6168 Remove.
6169 (show_data): Unify creation and re-initialization cases.
6170
76d2be8e
TT
61712019-07-17 Tom Tromey <tom@tromey.com>
6172
6173 * tui/tui-layout.c (make_command_window): Remove.
6174 (show_source_disasm_command, show_source_or_disasm_and_command):
6175 Unify creation and re-initialization cases.
6176
890b8bde
TT
61772019-07-17 Tom Tromey <tom@tromey.com>
6178
6179 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6180 creation and re-initialization cases.
6181
2cdfa113
TT
61822019-07-17 Tom Tromey <tom@tromey.com>
6183
6184 * tui/tui-regs.c (tui_get_register): Return void.
6185
8e3cfd09
TT
61862019-07-17 Tom Tromey <tom@tromey.com>
6187
6188 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6189 Simplify.
6190
f4e04977
TT
61912019-07-17 Tom Tromey <tom@tromey.com>
6192
6193 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6194 resetting.
6195
0379b883
TT
61962019-07-17 Tom Tromey <tom@tromey.com>
6197
6198 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6199 * tui/tui-regs.c (tui_reg_layout): New function.
6200 (tui_show_registers, tui_reg_command): Use it.
6201 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6202 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6203 parameters.
6204 (tui_layout_command): Remove.
6205
b7fbad91
TT
62062019-07-17 Tom Tromey <tom@tromey.com>
6207
6208 * tui/tui-layout.h (tui/tui-layout): Return void.
6209 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6210
4e1e56b9
TT
62112019-07-17 Tom Tromey <tom@tromey.com>
6212
6213 * tui/tui-layout.c (show_source_disasm_command, show_data):
6214 Update.
6215 (reset_locator): Remove.
6216 (show_source_or_disasm_and_command): Update.
6217
1e0c09ba
TT
62182019-07-17 Tom Tromey <tom@tromey.com>
6219
6220 * tui/tui-source.c (tui_source_window_base::reset): Remove
6221 win_type parameter.
6222 * tui/tui-layout.c (make_command_window, make_source_window)
6223 (make_disasm_window, make_data_window)
6224 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6225 (reset_locator, show_source_or_disasm_and_command): Update.
6226 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6227 win_type parameter.
6228 (struct tui_source_window_base) <reset>: Likewise.
6229
1bf605de
TT
62302019-07-17 Tom Tromey <tom@tromey.com>
6231
6232 * tui/tui-layout.c (show_source_disasm_command): Use
6233 reset_locator.
6234 (reset_locator): New function.
6235 (init_and_make_win): Remove.
6236 (show_source_or_disasm_and_command): Use reset_locator.
6237
098f9ed4
TT
62382019-07-17 Tom Tromey <tom@tromey.com>
6239
6240 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6241 condition.
6242 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6243 Remove condition.
6244 * tui/tui-source.c (tui_source_window_base::reset): New method.
6245 * tui/tui-layout.c (make_command_window): Don't call
6246 init_and_make_win.
6247 (make_source_window, make_disasm_window): Don't call
6248 make_source_or_disasm_window.
6249 (make_data_window): Don't call init_and_make_win. Change calling
6250 convention.
6251 (show_source_disasm_command, show_data): Simplify.
6252 (make_source_or_disasm_window): Remove.
6253 (show_source_or_disasm_and_command): Simplify.
6254 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6255 (struct tui_source_window_base) <reset>: Likewise.
6256 <execution_info>: Remove initializer.
6257 * tui/tui-data.c (tui_source_window_base): Initialize
6258 execution_info.
6259
80110957
TT
62602019-07-17 Tom Tromey <tom@tromey.com>
6261
6262 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6263 variable.
6264
cf82af05
TT
62652019-07-17 Tom Tromey <tom@tromey.com>
6266
6267 * tui/tui.c (tui_rl_other_window): Update.
6268 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6269 superclass method first. Always iterate over regs_content.
6270 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6271 method.
6272 * tui/tui-win.c (tui_set_focus_command): Update.
6273
01aeb396
TT
62742019-07-17 Tom Tromey <tom@tromey.com>
6275
6276 * tui/tui-win.c (tui_set_focus_command): Rename from
6277 tui_set_focus. Call tui_enable.
6278 (tui_set_focus_command): Remove.
6279
fd6c75ee
TT
62802019-07-17 Tom Tromey <tom@tromey.com>
6281
6282 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6283 refresh_window.
6284 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6285 touchwin.
6286 (tui_data_window::refresh_window): Call refresh_window on data
6287 items. Always call superclass refresh_window.
6288 (tui_win_info::refresh): Remove.
6289 (tui_source_window_base::refresh_window): Update.
6290 (tui_refresh_all): Update.
6291 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6292 refresh_window.
6293 (show_source_or_disasm_and_command): Likewise.
6294 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6295 (struct tui_source_window_base) <refresh>: Likewise.
6296
f6cc34a9
TT
62972019-07-17 Tom Tromey <tom@tromey.com>
6298
6299 * tui/tui-winsource.c (tui_clear_source_content)
6300 (tui_show_source_content): Update.
6301 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6302 whether content is empty.
6303 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6304 Remove.
6305
f31ec9af
TT
63062019-07-17 Tom Tromey <tom@tromey.com>
6307
6308 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6309 window's contents.
6310 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6311 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6312
d1b6f1e5
TT
63132019-07-17 Tom Tromey <tom@tromey.com>
6314
6315 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6316 (struct tui_data_item_window): Update.
6317
d9743a13
TT
63182019-07-17 Tom Tromey <tom@tromey.com>
6319
6320 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6321 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6322 defines.
6323
caf0bc4e
TT
63242019-07-17 Tom Tromey <tom@tromey.com>
6325
6326 * tui/tui-winsource.h (tui_erase_source_content)
6327 (tui_clear_source_content): Remove "display_prompt" parameter.
6328 * tui/tui-winsource.c (tui_update_source_window_as_is)
6329 (tui_update_source_windows_with_addr): Update.
6330 (tui_clear_source_content): Remove "display_prompt" parameter.
6331 (tui_erase_source_content): Likewise. Simplify.
6332 (tui_show_source_content): Update.
6333 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6334 * tui/tui-stack.c (tui_show_frame_info): Update.
6335 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6336 Remove defines.
6337
9d391078
TT
63382019-07-17 Tom Tromey <tom@tromey.com>
6339
6340 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6341 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6342 parameter.
6343 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6344 parameter.
6345
a38da35d
TT
63462019-07-17 Tom Tromey <tom@tromey.com>
6347
6348 * tui/tui-winsource.c (tui_clear_source_content)
6349 (tui_show_source_content, tui_show_exec_info_content)
6350 (tui_clear_exec_info_content): Update.
6351 * tui/tui-stack.c (tui_show_locator_content): Update.
6352 (tui_show_frame_info): Update.
6353 * tui/tui-source.h (tui_source_window): Don't declare.
6354 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6355 from tui_source_is_displayed.
6356 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6357 Remove field.
6358 (struct tui_source_window_base) <content_in_use>: New field. Now
6359 bool.
6360 (struct tui_source_window) <showing_source_p>: New method.
6361 (TUI_SRC_WIN): Change cast.
6362 * tui/tui-data.c (tui_initialize_static_data): Update.
6363
c2cd8994
TT
63642019-07-17 Tom Tromey <tom@tromey.com>
6365
6366 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6367 location_matches_p.
6368 * tui/tui-source.c (tui_source_window::location_matches_p): New
6369 method.
6370 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6371 method.
6372 * tui/tui-data.h (struct tui_source_window_base)
6373 <location_matches_p>: New method.
6374 (struct tui_source_window, struct tui_disasm_window)
6375 <location_matches_p>: Likewise.
6376
4dde7b34
TT
63772019-07-17 Tom Tromey <tom@tromey.com>
6378
6379 * tui/tui-win.c (tui_set_win_height_command): Rename from
6380 tui_set_win_height.
6381 (tui_set_win_height_command): Remove.
6382
b73dd877
TT
63832019-07-17 Tom Tromey <tom@tromey.com>
6384
6385 * tui/tui-source.c (tui_source_window): New constructor. Add
6386 observer.
6387 (~tui_source_window): New destructor.
6388 (tui_source_window::style_changed): New method.
6389 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6390 (tui_attach_detach_observers): Update.
6391 * tui/tui-data.h (struct tui_source_window): Make constructor not
6392 inline. Add destructor.
6393 (struct tui_source_window) <style_changed>: New method.
6394 <m_observable>: New member.
6395
ae2b5380
TT
63962019-07-17 Tom Tromey <tom@tromey.com>
6397
6398 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6399 * tui/tui-win.c (tui_resize_all): Fix typo.
6400
1ce3e844
TT
64012019-07-17 Tom Tromey <tom@tromey.com>
6402
6403 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6404 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6405 (tui_refresh_all): Remove "list" parameter. Use foreach.
6406 * tui/tui-win.c (window_name_completer): Use foreach.
6407 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6408 (update_tab_width): Likewise.
6409 * tui/tui-layout.c (show_layout): Update.
6410 * tui/tui-data.h (class tui_window_iterator): New.
6411 (struct all_tui_windows): New.
6412 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6413
fe3eaf1c
TT
64142019-07-17 Tom Tromey <tom@tromey.com>
6415
6416 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6417 parameter. Don't reference globals.
6418 (tui_reg_command): Update.
6419
368c1354
TT
64202019-07-17 Tom Tromey <tom@tromey.com>
6421
6422 * tui/tui-regs.c (tui_show_registers): Simplify.
6423
e80cd204
TT
64242019-07-17 Tom Tromey <tom@tromey.com>
6425
6426 * tui/tui-regs.c (tui_show_registers): Update.
6427 (tui_show_register_group): Add win_info parameter.
6428
aca2dd16
TT
64292019-07-17 Tom Tromey <tom@tromey.com>
6430
6431 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6432 Rename from tui_display_reg_element_at_line.
6433 (tui_data_window::display_registers_from_line): Update.
6434 * tui/tui-data.h (struct tui_data_window)
6435 <display_reg_element_at_line>: New method.
6436
517e9505
TT
64372019-07-17 Tom Tromey <tom@tromey.com>
6438
6439 * tui/tui-regs.h (tui_display_registers_from)
6440 (tui_display_registers_from_line): Don't declare.
6441 * tui/tui-windata.c (tui_data_window::display_all_data)
6442 (tui_data_window::refresh_all)
6443 (tui_data_window::do_scroll_vertical): Update.
6444 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6445 from tui_display_registers_from.
6446 (tui_display_reg_element_at_line): Update.
6447 (tui_data_window::display_registers_from_line): Rename from
6448 tui_display_registers_from_line.
6449 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6450 display_registers_from_line>: New methods.
6451
f76d8b19
TT
64522019-07-17 Tom Tromey <tom@tromey.com>
6453
6454 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6455 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6456 from tui_erase_data_content.
6457 (tui_data_window::display_all_data)
6458 (tui_data_window::refresh_all)
6459 (tui_data_window::do_scroll_vertical): Update.
6460 * tui/tui-regs.c (tui_show_registers): Update.
6461 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6462 New method.
6463
b4094625
TT
64642019-07-17 Tom Tromey <tom@tromey.com>
6465
6466 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6467 declare.
6468 * tui/tui-windata.c
6469 (tui_data_window::delete_data_content_windows): Rename from
6470 tui_delete_data_content_windows.
6471 (tui_data_window::display_all_data)
6472 (tui_data_window::do_scroll_vertical): Update.
6473 * tui/tui-data.h (struct tui_data_window)
6474 <delete_data_content_windows>: New method.
6475
c223a729
TT
64762019-07-17 Tom Tromey <tom@tromey.com>
6477
6478 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6479 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6480
50daf268
TT
64812019-07-17 Tom Tromey <tom@tromey.com>
6482
6483 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6484 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6485 from tui_display_all_data.
6486 * tui/tui-win.c
6487 (tui_data_window::do_make_visible_with_new_height): Update.
6488 * tui/tui-regs.c (tui_show_registers): Update.
6489 * tui/tui-layout.c (tui_set_layout): Update.
6490 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6491 method.
6492
df5f8cab
TT
64932019-07-17 Tom Tromey <tom@tromey.com>
6494
6495 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6496 * tui/tui-windata.c (tui_display_data_from): Remove.
6497 (tui_data_window::refresh_all): Update.
6498
80cb6c27
TT
64992019-07-17 Tom Tromey <tom@tromey.com>
6500
6501 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6502 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6503 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6504 tui_display_registers_from_line.
6505 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6506 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6507 "force_display" parameter.
6508
baff0c28
TT
65092019-07-17 Tom Tromey <tom@tromey.com>
6510
6511 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6512 declare.
6513 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6514 Rename from tui_first_reg_element_no_inline.
6515 (tui_display_reg_element_at_line)
6516 (tui_display_registers_from_line): Update.
6517 * tui/tui-data.h (struct tui_data_window)
6518 <first_reg_element_no_inline>: New method.
6519
3b23c5f2
TT
65202019-07-17 Tom Tromey <tom@tromey.com>
6521
6522 * tui/tui-windata.c (tui_display_data_from)
6523 (tui_data_window::do_scroll_vertical): Update.
6524 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6525 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6526 Rename from tui_line_from_reg_element_no.
6527 (tui_display_registers_from_line): Update.
6528 * tui/tui-data.h (struct tui_data_window)
6529 <line_from_reg_element_no>: New method.
6530
0b5ec218
TT
65312019-07-17 Tom Tromey <tom@tromey.com>
6532
6533 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6534 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6535 tui_last_regs_line_no.
6536 (tui_display_reg_element_at_line)
6537 (tui_display_registers_from_line): Update.
6538 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6539 method.
6540
0807ab7b
TT
65412019-07-17 Tom Tromey <tom@tromey.com>
6542
6543 PR tui/24722:
6544 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6545 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6546 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6547 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6548 (tui_update_breakpoint_info): Likewise.
6549 * tui/tui-hooks.c (tui_event_create_breakpoint)
6550 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6551 Update.
6552
9ad7fdef
TT
65532019-07-17 Tom Tromey <tom@tromey.com>
6554
6555 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6556
5813316f
TT
65572019-07-17 Tom Tromey <tom@tromey.com>
6558
6559 * tui/tui-winsource.c (tui_update_source_window_as_is)
6560 (tui_update_source_windows_with_addr): Update.
6561 * tui/tui-source.h (tui_set_source_content)
6562 (tui_show_symtab_source): Add "win_info" parameter.
6563 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6564 parameter.
6565 (tui_show_symtab_source): Likewise.
6566
00e264e7
TT
65672019-07-17 Tom Tromey <tom@tromey.com>
6568
6569 * tui/tui-wingeneral.c
6570 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6571
06210ce4
TT
65722019-07-17 Tom Tromey <tom@tromey.com>
6573
6574 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6575 (struct tui_cmd_window) <can_scroll>: New method.
6576 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6577 method.
6578
381befee
TT
65792019-07-17 Tom Tromey <tromey@adacore.com>
6580
6581 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6582 do_field_signed>: Rename. Change type of "value".
6583 * ui-out.c (ui_out::field_signed): Rename from field_int.
6584 Change type of "value".
6585 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6586 type of "value".
6587 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6588 do_field_int. Change type of "value".
6589 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6590 do_field_int. Change type of "value".
6591 * tracepoint.c (trace_status_mi, tfind_1)
6592 (print_one_static_tracepoint_marker): Update.
6593 * thread.c (print_thread_info_1, print_selected_thread_frame):
6594 Update.
6595 * stack.c (print_frame, print_frame_info): Update.
6596 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6597 Update.
6598 * source.c (print_source_lines_base): Update.
6599 * skip.c (info_skip_command): Update.
6600 * record-btrace.c (btrace_ui_out_decode_error)
6601 (btrace_call_history_src_line): Update.
6602 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6603 Update.
6604 * progspace.c (print_program_space): Update.
6605 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6606 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6607 do_field_int. Change type of "value".
6608 * mi/mi-out.c (mi_ui_out::do_table_begin)
6609 (mi_ui_out::do_table_header): Update.
6610 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6611 type of "value".
6612 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6613 (mi_cmd_data_list_changed_registers, output_register)
6614 (mi_cmd_data_read_memory, mi_load_progress)
6615 (mi_cmd_trace_frame_collected): Update.
6616 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6617 Update.
6618 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6619 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6620 (mi_cmd_var_list_children, varobj_update_one): Update.
6621 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6622 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6623 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6624 * inferior.c (print_inferior): Update.
6625 * gdb_bfd.c (print_one_bfd): Update.
6626 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6627 Update.
6628 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6629 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6630 do_field_int. Change type of "value".
6631 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6632 do_field_int. Change type of "value".
6633 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6634 (print_one_breakpoint_location, print_it_catch_fork)
6635 (print_one_catch_fork, print_it_catch_vfork)
6636 (print_one_catch_vfork, print_it_catch_solib)
6637 (print_it_catch_exec, print_it_ranged_breakpoint)
6638 (print_mention_watchpoint, print_mention_masked_watchpoint)
6639 (bkpt_print_it, update_static_tracepoint): Update.
6640 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6641 * break-catch-syscall.c (print_it_catch_syscall): Update.
6642 * ada-tasks.c (print_ada_task_info): Update.
6643 * ada-lang.c (print_it_exception, print_mention_exception):
6644 Update.
6645
6b78c3f8
AB
66462019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6647
6648 PR breakpoints/24541
6649 * gdbarch.c: Regenerate.
6650 * gdbarch.h: Regenerate.
6651 * gdbarch.sh: Adjust return type and parameter types for
6652 'stap_adjust_register'.
6653 (i386_stap_adjust_register): Adjust signature and return new
6654 register name.
6655 * stap-probe.c (stap_parse_register_operand): Adjust use of
6656 'gdbarch_stap_adjust_register'.
6657
d72a9b85
TT
66582019-07-17 Tom Tromey <tromey@adacore.com>
6659
6660 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6661 declare VEC.
6662 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6663 std::vector.
6664 (struct s390_process_info): Add initializers.
6665 (s390_add_process): Use new.
6666 (s390_linux_nat_target::low_forget_process): Use delete.
6667 (s390_linux_nat_target::low_new_fork)
6668 (s390_linux_nat_target::stopped_by_watchpoint)
6669 (s390_linux_nat_target::low_prepare_to_resume)
6670 (s390_linux_nat_target::insert_watchpoint)
6671 (s390_linux_nat_target::insert_hw_breakpoint)
6672 (s390_linux_nat_target::remove_watchpoint)
6673 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6674
206e6c58
JB
66752019-07-16 John Baldwin <jhb@FreeBSD.org>
6676
6677 * aarch64-fbsd-nat.c: Include regcache.h.
6678 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6679 argument.
6680 (aarch64_fbsd_nat_target::fetch_registers)
6681 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6682 variable.
6683 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6684
cbde90f2
JB
66852019-07-16 John Baldwin <jhb@FreeBSD.org>
6686
6687 * fbsd-nat.c: Include gdbarch.h.
6688
07128006
TT
66892019-07-15 Tom Tromey <tromey@adacore.com>
6690
6691 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6692
1f77b012
TT
66932019-07-15 Tom Tromey <tromey@adacore.com>
6694
6695 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6696 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6697 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6698 * cli-out.c (cli_ui_out::do_field_int): New method.
6699 * ui-out.c (ui_out::field_unsigned): New method.
6700 * symfile.c (generic_load): Use field_unsigned.
6701 (print_transfer_performance): Likewise.
6702 * record-btrace.c (ui_out_field_uint): Remove.
6703 (btrace_call_history_insn_range, btrace_call_history): Use
6704 field_unsigned.
6705 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6706 field_unsigned.
6707 * ui-out.h (class ui_out) <field_unsigned>: New method.
6708 <do_field_unsigned>: Likewise.
6709
33eca680
TT
67102019-07-15 Tom Tromey <tromey@adacore.com>
6711
6712 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6713 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6714 * target.c (flash_erase_command): Use field_string.
6715 * infrun.c (print_signal_received_reason): Use field_string.
6716 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6717 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6718 field_string.
6719 * ada-tasks.c (print_ada_task_info): Use field_string.
6720
ca8d69be
TT
67212019-07-15 Tom Tromey <tromey@adacore.com>
6722
6723 * target.c (flash_erase_command): Use field_core_addr.
6724 * symfile.c (generic_load): Use field_core_addr.
6725 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6726 Use field_core_addr.
6727 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6728 field_core_addr.
6729
0d4e84ed
AB
67302019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6731
6732 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6733 value if its desired type is smaller than a CORE_ADDR and signed.
6734
9a49df9d
AB
67352019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6736
6737 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6738 of changes to field names, and use new is_reference field to
6739 decide if a property is a reference or not.
6740 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6741 field.
6742 (struct dwarf2_property_baton): Update header comment, rename
6743 'referenced_type' to 'property_type' and update comments.
6744 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6745 default property type, store in property baton, update to take
6746 accound of renamed field.
6747 (read_func_scope): Update call to attr_to_dynamic_prop.
6748 (read_array_type): Likewise.
6749 (dwarf2_per_cu_addr_sized_int_type): New function.
6750 (read_subrange_index_type): Move type finding code to
6751 dwarf2_per_cu_addr_sized_int_type.
6752 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6753 (dwarf2_per_cu_addr_type): New function.
6754 (set_die_type): Update calls to attr_to_dynamic_prop.
6755
b86352cf
AB
67562019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6757
6758 * dwarf2read.c (read_subrange_index_type): New function.
6759 (read_subrange_type): Move code into new function and call it.
6760 * gdbtypes.c (create_range_type): Add some asserts.
6761
603490bf
AB
67622019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6763
6764 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6765 update return statements.
6766 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6767 declaration, and update comment to match.
6768 * gdbtypes.c (resolve_dynamic_array): Update call to
6769 dwarf2_evaluate_property to match new return type.
6770
592f9d27
AB
67712019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6772
6773 * valarith.c (value_subscripted_rvalue): Change lowerbound
6774 parameter type from int to LONGEST.
6775 * value.h (value_subscripted_rvalue): Likewise in declaration.
6776
60cfcb20
AB
67772019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6778
6779 * cli/cli-utils.c (info_print_command_completer): New function.
6780 * cli/cli-utils.h: Add 'completer.h' include, and forward
6781 declaration for 'struct cmd_list_element'.
6782 (info_print_command_completer): Declare.
6783 * stack.c (_initialize_stack): Add completer for 'info locals' and
6784 'info args'.
6785 * symtab.c (_initialize_symtab): Add completer for 'info
6786 variables' and 'info functions'.
6787 * NEWS: Mention completion for additional info commands.
6788
b16507e0
AB
67892019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6790
6791 * cli/cli-utils.c (extract_info_print_args): Delete.
6792 (extract_arg_maybe_quoted): Delete.
6793 (info_print_options_defs): New variable.
6794 (make_info_print_options_def_group): New function.
6795 (extract_info_print_options): Define new function.
6796 * cli/cli-utils.h (extract_info_print_args): Delete.
6797 (struct info_print_options): New structure.
6798 (extract_info_print_options): Declare new function.
6799 * stack.c (info_locals_command): Update to use new
6800 extract_info_print_options, also add a header comment.
6801 (info_args_command): Likewise.
6802 * symtab.c (info_variables_command): Likewise.
6803 (info_functions_command): Likewise.
6804
021d8588
AB
68052019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6806
6807 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6808 to extract string arguments.
6809 * common/common-utils.c (extract_string_maybe_quoted): New function.
6810 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6811
b777eb6d
TT
68122019-07-11 Tom Tromey <tromey@adacore.com>
6813
6814 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6815 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6816 * top.h (gdbinit): Don't declare.
6817 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6818 into...
6819 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6820 * top.c (gdb_init): Don't call init_cli_cmds.
6821 (gdbinit): Remove.
6822 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6823
72ee03ff
TT
68242019-07-11 Tom Tromey <tromey@adacore.com>
6825
6826 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6827 after it has been moved.
6828
00db9531
SM
68292019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6830
6831 * valops.c (value_must_coerce_to_target): Change return type to
6832 bool.
6833 * value.h (value_must_coerce_to_target): Likewise.
6834
f2478a7e
SM
68352019-07-10 Simon Marchi <simon.marchi@efficios.com>
6836
6837 * breakpoint.c (is_hardware_watchpoint): Remove
6838 forward-declaration.
6839 (is_masked_watchpoint): Change return type to bool.
6840 (is_tracepoint): Likewise.
6841 (is_breakpoint): Likewise.
6842 (is_hardware_watchpoint): Likewise.
6843 (is_watchpoint): Likewise.
6844 (is_no_memory_software_watchpoint): Likewise.
6845 (is_catchpoint): Likewise.
6846 (breakpoint_1): Make FILTER parameter's return type bool.
6847 is_masked_watchpoint): Change return type to bool.
6848 (save_breakpoints): Make FILTER parameter's return type bool.
6849 * breakpoint.h (is_breakpoint): Change return type to bool.
6850 (is_watchpoint): Likewise.
6851 (is_catchpoint): Likewise.
6852 (is_tracepoint): Likewise.
6853
0d12e84c
TT
68542019-07-10 Tom Tromey <tom@tromey.com>
6855
6856 * defs.h: Don't include gdbarch.h.
6857 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6858 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6859 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6860 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6861 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6862 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6863 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6864 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6865 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6866 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6867 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6868 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6869 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6870 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6871 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6872 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6873 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6874 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6875 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6876 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6877 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6878 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6879 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6880 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6881 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6882 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6883 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6884
f06f1252
TT
68852019-07-10 Tom Tromey <tromey@adacore.com>
6886
6887 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6888 * breakpoint.c (init_ada_exception_breakpoint): Register as
6889 bp_catchpoint.
6890 (print_one_breakpoint_location, print_one_breakpoint): Use
6891 is_ada_exception_catchpoint.
6892 * ada-lang.c (class ada_catchpoint_location): Pass
6893 bp_loc_software_breakpoint to bp_location constructor.
6894 (is_ada_exception_catchpoint): New function.
6895
7a5d944b
TT
68962019-07-10 Tom Tromey <tromey@adacore.com>
6897
6898 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6899 VEC.
6900 (struct arm_exidx_entry): New method operator<.
6901 (struct arm_exidx_data) <section_maps>: Change type.
6902 (arm_exidx_data_free): Remove.
6903 (arm_exidx_data_key): Change type. Move lower.
6904 (arm_exidx_new_objfile): Update.
6905 (arm_compare_exidx_entries): Remove.
6906 (arm_find_exidx_entry, _initialize_arm_tdep)
6907
48c66e1d
TT
69082019-07-10 Tom Tromey <tromey@adacore.com>
6909
6910 * solib-spu.c (ocl_program_data_key): Change type.
6911 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6912 Update.
6913
a269fbf1
TT
69142019-07-10 Tom Tromey <tromey@adacore.com>
6915
6916 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6917 (struct solib_aix_inferior_data) <library_list>: Change type.
6918 (solib_aix_inferior_data_handle): Change type.
6919 (get_solib_aix_inferior_data): Update.
6920 (solib_aix_free_library_list): Remove.
6921 (library_list_start_library): Update.
6922 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6923 return type.
6924 (solib_aix_get_library_list)
6925 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6926 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6927
c294730c
TT
69282019-07-10 Tom Tromey <tromey@adacore.com>
6929
6930 * solib-dsbt.c (struct dsbt_info): Add initializers.
6931 (solib_dsbt_pspace_data): Change type.
6932 (dsbt_pspace_data_cleanup): Remove.
6933 (get_dsbt_info, _initialize_dsbt_solib): Update.
6934
9d52077d
TT
69352019-07-10 Tom Tromey <tromey@adacore.com>
6936
6937 * spu-tdep.c (spu_overlay_data): Change type.
6938 (spu_get_overlay_table, spu_overlay_new_objfile)
6939 (_initialize_spu_tdep): Update.
6940
22a20dca
TT
69412019-07-10 Tom Tromey <tromey@adacore.com>
6942
6943 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6944 destructor.
6945 (dbx_objfile_data_key): Change type and declare later.
6946 (DBX_SYMFILE_INFO): Rewrite.
6947 * dbxread.c (dbx_objfile_data_key): Change type.
6948 (dbx_symfile_init): Update.
6949 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6950 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6951 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6952
cb60f420
TT
69532019-07-10 Tom Tromey <tromey@adacore.com>
6954
6955 * jit.c (jit_program_space_key): Change type. Move lower.
6956 (get_jit_program_space_data): Update.
6957 (jit_program_space_data_cleanup): Remove.
6958 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6959 Update.
6960 (struct jit_program_space_data): Add initializers.
6961
51df2ae3
TT
69622019-07-10 Tom Tromey <tromey@adacore.com>
6963
6964 * solib-darwin.c (struct darwin_info): Add initializers.
6965 (solib_darwin_pspace_data): Change type.
6966 (darwin_pspace_data_cleanup): Remove.
6967 (get_darwin_info, _initialize_darwin_solib): Update.
6968
18101a35
TT
69692019-07-10 Tom Tromey <tromey@adacore.com>
6970
6971 * remote-sim.c (struct sim_inferior_data): Add initializers,
6972 constructor, and destructor.
6973 (sim_inferior_data_key): Change type. Move lower.
6974 (check_for_duplicate_sim_descriptor): Update.
6975 (get_sim_inferior_data): Use new. Update.
6976 (~sim_inferior_data_cleanup): Rename from
6977 sim_inferior_data_cleanup. Simplify.
6978 (gdbsim_close_inferior, simulator_command)
6979 (sim_command_completer, _initialize_remote_sim): Update.
6980 (next_pid, INITIAL_PID): Move earlier.
6981
05b08ac1
TT
69822019-07-10 Tom Tromey <tromey@adacore.com>
6983
6984 * python/python-internal.h (create_thread_object): Return
6985 gdbpy_ref.
6986 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
6987 * python/py-inferior.c (struct threadlist_entry): Add
6988 constructor.
6989 <thread_obj>: Now a gdbpy_ref.
6990 (thread_to_thread_object): Update.
6991 (add_thread_object): Use new.
6992 (delete_thread_object): Use delete.
6993 (infpy_threads): Update.
6994 (py_free_inferior): Update. Construct "inf_obj" after acquiring
6995 GIL.
6996
32372d80
TT
69972019-07-10 Tom Tromey <tromey@adacore.com>
6998
6999 * valops.c (value_cast): Specialize error message for Ada.
7000
5c458ae8
SM
70012019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7002
7003 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7004
4c462cb0
SM
70052019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7006
7007 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7008 bpstat_should_step): Return bool, adjust comments.
7009 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7010 bpstat_should_step): Likewise.
7011
89abbcc2
AH
70122019-07-10 Alan Hayward <alan.hayward@arm.com>
7013
7014 * features/Makefile: Use feature target descriptions for Arm.
7015 * features/arm/arm-core.c: Generate new file.
7016 * features/arm/arm-fpa.c: Likewise.
7017 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7018 * features/arm/arm-m-profile.c: Likewise.
7019 * features/arm/arm-vfpv2.c: Likewise.
7020 * features/arm/arm-vfpv3.c: Likewise.
7021 * features/arm/xscale-iwmmxt.c: Likewise.
7022 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7023
166a82be
AH
70242019-07-10 Alan Hayward <alan.hayward@arm.com>
7025
7026 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7027 ptrace earlier.
7028
9fb4c7e9
AH
70292019-07-10 Alan Hayward <alan.hayward@arm.com>
7030
7031 * features/aarch64-pauth.c: Regenerate.
7032
e2d0f980
SM
70332019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7034
7035 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7036 bool.
7037 (bpstat_what): Use false instead of 0.
7038
a38118e5
PA
70392019-07-09 Pedro Alves <palves@redhat.com>
7040
7041 * break-catch-throw.c (is_exception_catchpoint): New.
7042 * breakpoint.c (print_one_breakpoint_location): New parameter
7043 'raw_loc'. Handle it. Use
7044 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7045 looking at the breakpoint's type.
7046 (print_one_breakpoint): If handling "maint info breakpoints", also
7047 print locations of exception catchpoints.
7048 * breakpoint.h (is_exception_catchpoint): Declare.
7049
cb1e4e32
PA
70502019-07-09 Pedro Alves <palves@redhat.com>
7051
7052 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7053 "addr" field.
7054 (allocate_location_exception_catchpoint): New.
7055 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7056 (initialize_throw_catchpoint_ops): Install
7057 allocate_location_exception_catchpoint as allocate_location
7058 method.
7059 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7060 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7061 bp_loc_other.
7062 (breakpoint_address_is_meaningful): Delete.
7063 (bl_address_is_meaningful): New.
7064 (breakpoint_locations_match): Adjust comment.
7065 (bp_location_from_bp_type): New, factored out of...
7066 (bp_location::bp_location(breakpoint *)): ... this.
7067 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7068 factored out of...
7069 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7070 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7071 breakpoint_address_is_meaningful.
7072 (bp_locations_compare): Adjust comment.
7073 (update_global_location_list): Use bl_address_is_meaningful
7074 instead of breakpoint_address_is_meaningful.
7075 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7076 explicit.
7077 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7078 * python/py-breakpoint.c (bppy_get_location): No longer check
7079 whether location is null.
7080
b58a68fe
PA
70812019-07-09 Pedro Alves <palves@redhat.com>
7082
7083 PR c++/15468
7084 * breakpoint.c (print_one_breakpoint_location): Remove
7085 single-location assert.
7086
268a13a5
TT
70872019-07-09 Tom Tromey <tom@tromey.com>
7088
7089 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7090 * configure: Rebuild.
7091 * configure.ac: Change common to gdbsupport.
7092 * gdbsupport: Rename from common.
7093 * acinclude.m4: Change common to gdbsupport.
7094 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7095 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7096 gdbsupport.
7097 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7098 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7099 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7100 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7101 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7102 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7103 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7104 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7105 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7106 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7107 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7108 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7109 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7110 coff-pe-read.c, command.h, compile/compile-c-support.c,
7111 compile/compile-c.h, compile/compile-cplus-symbols.c,
7112 compile/compile-cplus-types.c, compile/compile-cplus.h,
7113 compile/compile-loc2c.c, compile/compile.c, completer.c,
7114 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7115 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7116 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7117 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7118 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7119 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7120 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7121 features/aarch64-core.c, features/aarch64-fpu.c,
7122 features/aarch64-pauth.c, features/aarch64-sve.c,
7123 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7124 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7125 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7126 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7127 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7128 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7129 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7130 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7131 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7132 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7133 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7134 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7135 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7136 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7137 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7138 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7139 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7140 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7141 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7142 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7143 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7144 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7145 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7146 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7147 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7148 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7149 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7150 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7151 minsyms.c, mips-linux-tdep.c, namespace.h,
7152 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7153 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7154 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7155 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7156 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7157 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7158 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7159 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7160 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7161 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7162 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7163 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7164 procfs.c, producer.c, progspace.h, psymtab.h,
7165 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7166 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7167 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7168 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7169 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7170 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7171 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7172 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7173 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7174 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7175 target-memory.c, target.c, target.h, target/waitstatus.c,
7176 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7177 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7178 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7179 unittests/array-view-selftests.c,
7180 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7181 unittests/common-utils-selftests.c,
7182 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7183 unittests/format_pieces-selftests.c,
7184 unittests/function-view-selftests.c,
7185 unittests/lookup_name_info-selftests.c,
7186 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7187 unittests/mkdir-recursive-selftests.c,
7188 unittests/observable-selftests.c,
7189 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7190 unittests/parse-connection-spec-selftests.c,
7191 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7192 unittests/scoped_fd-selftests.c,
7193 unittests/scoped_mmap-selftests.c,
7194 unittests/scoped_restore-selftests.c,
7195 unittests/string_view-selftests.c, unittests/style-selftests.c,
7196 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7197 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7198 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7199 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7200 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7201 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7202
5b0e2db4
AB
72032019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7204
7205 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7206 bool value.
7207 (decode_digits_ordinary): Set explicit_line field in sal.
7208 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7209 symtab_and_line that was set on an explicit line number in
7210 assembler code. Do always update the recorded symtab and line if
7211 we do skip the prologue.
7212
0ba852ab
AB
72132019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7214
7215 * breakpoint.c (set_breakpoint_location_function): Remove
7216 explicit_loc parameter.
7217 (momentary_breakpoint_from_master): Update call to
7218 set_breakpoint_location_function.
7219 (add_location_to_breakpoint): Likewise.
7220
b3a7d171
AB
72212019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7222
7223 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7224 required features based on default bfd type when no specific bfd
7225 is present.
7226
1f6f6e21
PW
72272019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7228
7229 * NEWS: Mention that GDB printf and eval commands can now print
7230 C-style and Ada-style convenience var strings without
7231 calling the inferior.
7232 * printcmd.c (printf_c_string): Locally print GDB internal var
7233 instead of transiting via the inferior.
7234 (printf_wide_c_string): Likewise.
7235
72362019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7237
5862c886 7238 PR breakpoints/25011
ea142fbf
AH
7239 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7240
0598af48
TT
72412019-07-04 Tom Tromey <tom@tromey.com>
7242
7243 PR tui/24724:
7244 * tui/tui-winsource.c (tui_clear_source_content): Update.
7245 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7246 (tui_update_breakpoint_info): Update.
7247 (tui_set_exec_info_content): Update.
7248 * tui/tui-source.c (tui_set_source_content_nil): Update.
7249 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7250 has_break.
7251 * tui/tui-data.h (enum tui_bp_flag): New.
7252 (tui_bp_flags): New enum flags type.
7253 (struct tui_source_element) <break_mode>: Change type. Rename
7254 from has_break.
7255 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7256 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7257 constants.
7258 * tui/tui-winsource.h: Fix comment.
7259
350fab54
AH
72602019-07-04 Alan Hayward <alan.hayward@arm.com>
7261
7262 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7263 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7264 (store_fpregs_to_thread)
7265 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7266 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7267 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7268 (IWMMXT_REGS_SIZE): Add define.
7269 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7270 (fetch_vfp_regs, store_vfp_regs)
7271 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7272 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7273
f0452268
AH
72742019-07-04 Alan Hayward <alan.hayward@arm.com>
7275
7276 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7277 defines.
7278 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7279 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7280 (ARM_INT_REGISTER_SIZE): ...to this.
7281 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7282 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7283 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7284 (arm_linux_collect_gregset, supply_nwfpe_register)
7285 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7286 defines.
7287 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7288 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7289 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7290 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7291 (arm_return_in_memory, arm_store_return_value)
7292 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7293 (arm_record_ld_st_multiple): Likewise.
7294 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7295 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7296
e935475c
AH
72972019-07-04 Alan Hayward <alan.hayward@arm.com>
7298
7299 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7300 AARCH64_DISPLACED_MODIFIED_INSNS.
7301 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7302 (aarch64_displaced_step_copy_insn): Likewise.
7303 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7304 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7305 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7306 ARM_DISPLACED_MODIFIED_INSNS.
7307 * arm-tdep.c (arm_gdbarch_init): Likewise.
7308 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7309 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7310 (struct arm_displaced_step_closure): Use
7311 ARM_DISPLACED_MODIFIED_INSNS.
7312
df0bb381
AH
73132019-07-04 Alan Hayward <alan.hayward@arm.com>
7314
7315 * features/Makefile: Remove unused xml files.
7316 * features/aarch64.xml: Remove.
7317 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7318 * features/i386/amd64-avx-avx512.xml: Remove.
7319 * features/i386/amd64-avx-linux.xml: Remove.
7320 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7321 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7322 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7323 * features/i386/amd64-avx-mpx.xml: Remove.
7324 * features/i386/amd64-avx.xml: Remove.
7325 * features/i386/amd64-linux.xml: Remove.
7326 * features/i386/amd64-mpx-linux.xml: Remove.
7327 * features/i386/amd64-mpx.xml: Remove.
7328 * features/i386/amd64.xml: Remove.
7329 * features/i386/i386-avx-avx512-linux.xml: Remove.
7330 * features/i386/i386-avx-avx512.xml: Remove.
7331 * features/i386/i386-avx-linux.xml: Remove.
7332 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7333 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7334 * features/i386/i386-avx-mpx-linux.xml: Remove.
7335 * features/i386/i386-avx-mpx.xml: Remove.
7336 * features/i386/i386-avx.xml: Remove.
7337 * features/i386/i386-linux.xml: Remove.
7338 * features/i386/i386-mmx-linux.xml: Remove.
7339 * features/i386/i386-mmx.xml: Remove.
7340 * features/i386/i386-mpx-linux.xml: Remove.
7341 * features/i386/i386-mpx.xml: Remove.
7342 * features/i386/i386.xml: Remove.
7343 * features/i386/x32-avx-avx512-linux.xml: Remove.
7344 * features/i386/x32-avx-linux.xml: Remove.
7345 * features/i386/x32-linux.xml: Remove.
7346
edd6266a
AH
73472019-07-04 Alan Hayward <alan.hayward@arm.com>
7348
7349 * regformats/aarch64.dat: Remove.
7350 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7351 * regformats/i386/amd64-avx-linux.dat: Remove.
7352 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7353 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7354 * regformats/i386/amd64-linux.dat: Remove.
7355 * regformats/i386/amd64-mpx-linux.dat: Remove.
7356 * regformats/i386/amd64.dat: Remove.
7357 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7358 * regformats/i386/i386-avx-linux.dat: Remove.
7359 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7360 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7361 * regformats/i386/i386-linux.dat: Remove.
7362 * regformats/i386/i386-mmx-linux.dat: Remove.
7363 * regformats/i386/i386-mpx-linux.dat: Remove.
7364 * regformats/i386/i386.dat: Remove.
7365 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7366 * regformats/i386/x32-avx-linux.dat: Remove.
7367 * regformats/i386/x32-linux.dat: Remove.
7368
2b40fda7
AH
73692019-07-04 Alan Hayward <alan.hayward@arm.com>
7370
7371 * aarch64-tdep.c: Remove xml self tests.
7372 * amd64-linux-tdep.c: Likewise.
7373 * amd64-tdep.c: Likewise.
7374 * i386-linux-tdep.c: Likewise.
7375 * i386-tdep.c: Likewise.
7376
5f4ba3e7
PA
73772019-07-03 Pedro Alves <palves@redhat.com>
7378
7379 PR cli/24732
7380 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7381 (pipe_cmd_option_defs): New.
7382 (make_pipe_cmd_options_def_group): New.
7383 (pipe_command): Use gdb::option::process_options.
7384 (pipe_command_completer): New function.
7385 (_initialize_cli_cmds): Install completer for "pipe" command.
7386
3d9be6f5
PA
73872019-07-03 Pedro Alves <palves@redhat.com>
7388
7389 * cli/cli-option.c (union option_value) <string>: New field.
7390 (struct option_def_and_value): Add ctor, move ctor, dtor and
7391 use DISABLE_COPY_AND_ASSIGN.
7392 (option_def_and_value::clear_value): New.
7393 (parse_option, save_option_value_in_ctx, get_val_type_str)
7394 (add_setshow_cmds_for_options): Handle var_string.
7395 * cli-option.h (union option_def::var_address) <string>: New
7396 field.
7397 (struct string_option_def): New.
7398 * maint-test-options.c (struct test_options_opts): Add default
7399 ctor and use DISABLE_COPY_AND_ASSIGN.
7400 <string_opt>: New field.
7401 (test_options_opts::~test_options_opts): New.
7402 (test_options_opts::dump): Also dump "-string".
7403 (test_options_option_defs): Install "string.
7404
41fc454c
PA
74052019-07-03 Pedro Alves <palves@redhat.com>
7406
7407 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7408 option_value with a null enumeration.
7409 (complete_options): Save the option values in the context.
7410 (save_option_value_in_ctx): New, factored out from ...
7411 (process_options): ... here.
7412 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7413 of the function.
7414 * maint-test-options.c (test_options_opts::dump): New, factored
7415 out from ...
7416 (maintenance_test_options_command_mode): ... here.
7417 (maintenance_test_options_command_completion_result): Delete.
7418 (maintenance_test_options_command_completion_text): Update
7419 comment.
7420 (maintenance_show_test_options_completion_result): Change
7421 prototype. Just print
7422 maintenance_test_options_command_completion_text.
7423 (save_completion_result): New.
7424 (maintenance_test_options_completer_mode): Pass options context to
7425 complete_options, and then save a dump.
7426 (_initialize_maint_test_options): Use add_cmd to install "maint
7427 show test-options-completion-result".
7428
fdbc9870
PA
74292019-07-03 Pedro Alves <palves@redhat.com>
7430
7431 * NEWS (New commands): Mention "with" and "maint with".
7432 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7433 (with_command, with_command_completer): New.
7434 (pipe_command): Adjust to new repeat_previous
7435 interface.
7436 (_initialize_cli_cmds): Install the "with" command and its "w"
7437 alias.
7438 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7439 declarations.
7440 * cli/cli-setshow.c (parse_cli_var_uinteger)
7441 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7442 argument strings for all var_types.
7443 (get_setshow_command_value_string): New, factored out from ...
7444 (do_show_command): ... this.
7445 * cli/cli-setshow.h: Include <string>.
7446 (get_setshow_command_value_string): Declare.
7447 * command.h (repeat_previous): Now returns const char *. Adjust
7448 comment.
7449 * maint.c: Include "cli/cli-cmds.h".
7450 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7451 (_initialize_maint_cmds): Register the "maintenance with" command.
7452 * top.c (repeat_previous): Move bits from pipe_command here:
7453 Return the saved command line, if any; error out if there's no
7454 command to relaunch.
7455
c6ac8931
PA
74562019-07-03 Pedro Alves <palves@redhat.com>
7457
7458 * NEWS (New commands): Mention "maint set/show test-settings"
7459 instead of "maint test-settings".
7460 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7461 (maintenance_test_settings_set_list): Rename to ...
7462 (maintenance_set_test_settings_list): ... this.
7463 (maintenance_test_settings_show_list): Rename to ...
7464 (maintenance_show_test_settings_list): ... this.
7465 (maintenance_test_settings_cmd): Delete.
7466 (maintenance_test_settings_set_cmd): ...
7467 (maintenance_set_test_settings_cmd): ... this.
7468 (maintenance_test_settings_show_cmd): ...
7469 (maintenance_show_test_settings_cmd): ... this.
7470 (maintenance_test_settings_show_value_cmd):
7471 (maintenance_show_test_settings_value_cmd): ... this.
7472 (_initialize_maint_test_settings): No longer install the "maint
7473 test-settings" prefix command. Rename "maint test-settings set"
7474 to "maint set test-settings", and "maint test-settings show" to
7475 "maint show test-settings". Adjust all subcommands.
7476
d1fcf2fd
PA
74772019-07-03 Pedro Alves <palves@redhat.com>
7478
7479 * maint-test-settings.c: Fix file's intro comment. Replace all
7480 references to "test-options" with references to "test-settings",
7481 in comments.
7482
970f9d09
PA
74832019-07-03 Pedro Alves <palves@redhat.com>
7484
7485 * maint-test-settings.c (maintenance_test_settings_xxx)
7486 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7487 New.
7488 (maintenance_test_settings_enums): Use them.
7489 (maintenance_test_settings_enum): Default to
7490 maintenance_test_settings_xxx.
7491 (_initialize_maint_test_settings): Initialize
7492 MAINTENANCE_TEST_SETTINGS_FILENAME.
7493
f3869b1a
SM
74942019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7495
7496 * breakpoint.h (remove_breakpoints_inf): Change return type to
7497 void, move function documentation here.
7498 * breakpoint.c (remove_breakpoints_inf): Change return type to
7499 void, move function documentation to header.
7500
54d66006
PA
75012019-07-02 Pedro Alves <palves@redhat.com>
7502
7503 * NEWS (Completion improvements): Mention "info threads".
7504 * thread.c (struct info_threads_opts, info_threads_option_defs)
7505 (make_info_threads_options_def_group): New.
7506 (info_threads_command): Use gdb::option::process_options.
7507 (info_threads_command_completer): New.
7508 (_initialize_thread): Use gdb::option::build_help to build the
7509 help text for "info threads".
7510
854f6088
SM
75112019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7512
7513 * defs.h (generic_load): Move from here...
7514 * symfile.h (generic_load): ... to here. Rename name parameter
7515 to args.
7516 * symfile.c (generic_load): Add comment.
7517
54ee4252
TT
75182019-07-01 Tom Tromey <tromey@adacore.com>
7519
7520 * dwarf2read.c
7521 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7522 declaration of without_params. Fix formatting.
7523
65392b3e
TT
75242019-07-01 Tom Tromey <tromey@adacore.com>
7525
7526 * ada-exp.y (find_primitive_type): Update.
7527 * ada-lang.h (ada_lookup_symbol): Update.
7528 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7529 parameter.
7530 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7531
7d7571f0
SDJ
75322019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7533
7534 PR breakpoints/24541
7535 * gdbarch.c: Regenerate.
7536 * gdbarch.h: Regenerate.
7537 * gdbarch.sh: Add 'stap_adjust_register'.
7538 * i386-tdep.c: Include '<unordered_set>'.
7539 (i386_stap_adjust_register): New function.
7540 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7541 * stap-probe.c (stap_parse_register_operand): Call
7542 'gdbarch_stap_adjust_register'.
7543
5af5392a
SDJ
75442019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7545
7546 PR python/24742
7547 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7548 * python/python.c (do_start_initialization): Use 'xmalloc'
7549 instead of 'PyMem_Malloc'.
7550
10d06d82
TT
75512019-06-28 Tom Tromey <tromey@adacore.com>
7552
7553 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7554 for Ada.
7555
1b7f24cd
TT
75562019-06-27 Tom Tromey <tromey@adacore.com>
7557
7558 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7559 objfile_key.
7560 (arm_find_mapping_symbol, arm_record_special_symbol)
7561 (_initialize_arm_tdep): Update.
7562 (arm_objfile_data_free): Remove.
7563
3d507ff2
TT
75642019-06-27 Tom Tromey <tromey@adacore.com>
7565
7566 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7567 to cp_print_static_field.
7568
762c164d
TT
75692019-06-26 Tom Tromey <tromey@adacore.com>
7570
7571 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7572 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7573 declare.
7574
aa2f9bcf
AH
75752019-06-26 Alan Hayward <alan.hayward@arm.com>
7576
7577 * features/aarch64-core.c (create_feature_aarch64_core):
7578 Regenerate.
7579 * features/aarch64-core.xml: Add cpsr flags.
7580
3426ae57
AH
75812019-06-26 Alan Hayward <alan.hayward@arm.com>
7582
7583 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7584 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7585
4838e44c
SM
75862019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7587
7588 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7589 field.
7590 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7591 use.
7592 (arm_record_special_symbol): Don't insert new symbol in sorted
7593 position, push it at the end.
7594
54cc7474
SM
75952019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7596
7597 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7598 (arm_mapping_symbol_s): Remove.
7599 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7600 (arm_mapping_symbol_vec): New typedef.
7601 (struct arm_per_objfile): Add constructor.
7602 <section_maps>: Change type to
7603 std::unique_ptr<arm_mapping_symbol_vec[]>.
7604 (arm_compare_mapping_symbols): Remove.
7605 (arm_find_mapping_symbol): Adjust to section_maps type change.
7606 (arm_objfile_data_free): Call delete on arm_per_objfile.
7607 (arm_record_special_symbol): Adjust to section_maps type change.
7608 Allocate arm_per_objfile with new.
7609
b65b566c
PW
76102019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7611
7612 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7613 with the command prefix.
7614
c2fc64f5
TT
76152019-06-25 Tom Tromey <tom@tromey.com>
7616
7617 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7618 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7619
fb54fa76
TT
76202019-06-25 Tom Tromey <tom@tromey.com>
7621
7622 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7623 type.
7624 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7625 protected.
7626
f7952c57
TT
76272019-06-25 Tom Tromey <tom@tromey.com>
7628
7629 * tui/tui-winsource.c
7630 (tui_source_window_base::set_is_exec_point_at): Add check against
7631 LOA_ADDRESS.
7632
17568d78
TT
76332019-06-25 Tom Tromey <tom@tromey.com>
7634
7635 * tui/tui-source.c (tui_set_source_content): Don't check before
7636 xfree.
7637 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7638
53e7cdba
TT
76392019-06-25 Tom Tromey <tom@tromey.com>
7640
7641 * tui/tui-winsource.h (tui_update_source_window_as_is)
7642 (tui_alloc_source_buffer, tui_line_is_displayed)
7643 (tui_addr_is_displayed): Change type of win_info.
7644 * tui/tui-winsource.c (tui_update_source_window_as_is)
7645 (tui_clear_source_content, tui_show_source_line)
7646 (tui_show_source_content, tui_source_window_base::refill)
7647 (tui_source_window_base::set_is_exec_point_at)
7648 (tui_source_window_base::set_is_exec_point_at)
7649 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7650 (tui_alloc_source_buffer, tui_line_is_displayed)
7651 (tui_addr_is_displayed): Change type of win_info. Update.
7652 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7653 (tui_source_window_base::do_make_visible_with_new_height):
7654 Update.
7655 * tui/tui-source.c (tui_set_source_content)
7656 (tui_set_source_content_nil)
7657 (tui_source_window::do_scroll_vertical): Update.
7658 * tui/tui-layout.c (show_layout): Update.
7659 * tui/tui-disasm.c (tui_set_disassem_content)
7660 (tui_disasm_window::do_scroll_vertical): Update.
7661 * tui/tui-data.h (tui_win_content): Remove.
7662 (struct tui_gen_win_info) <content, content_size>: Remove.
7663 (struct tui_source_element): Add initializers and destructor.
7664 (union tui_which_element, struct tui_win_element): Remove.
7665 (struct tui_source_window_base) <content>: New field.
7666 (struct tui_data_window): Remove destructor.
7667 (tui_alloc_content, tui_free_win_content)
7668 (tui_free_all_source_wins_content): Don't declare.
7669 * tui/tui-data.c (tui_initialize_static_data): Update.
7670 (init_content_element, tui_alloc_content): Remove.
7671 (~tui_gen_win_info): Update.
7672 (~tui_data_window, tui_free_all_source_wins_content)
7673 (tui_free_win_content, free_content, free_content_elements):
7674 Remove.
7675
7908abbf
TT
76762019-06-25 Tom Tromey <tom@tromey.com>
7677
7678 * tui/tui-winsource.h (tui_clear_source_content)
7679 (tui_erase_source_content, tui_show_source_content): Change type
7680 of win_info.
7681 * tui/tui-winsource.c (tui_clear_source_content)
7682 (tui_erase_source_content, tui_show_source_content): Change type
7683 of win_info.
7684 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7685 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7686 win_info.
7687 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7688 win_info.
7689 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7690
02c28df0
TT
76912019-06-25 Tom Tromey <tom@tromey.com>
7692
7693 * tui/tui-winsource.c (tui_clear_source_content)
7694 (tui_source_window_base::set_is_exec_point_at): Update.
7695 * tui/tui-source.c (tui_set_source_content_nil): Update.
7696 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7697 a bool.
7698 * tui/tui-data.c (init_content_element): Update.
7699
6658b1bf
TT
77002019-06-25 Tom Tromey <tom@tromey.com>
7701
7702 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7703 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7704 * tui/tui-layout.c (init_and_make_win): Update.
7705 * tui/tui.h (enum tui_win_type): Update.
7706 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7707 tui_win_is_auxillary.
7708 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7709 tui_win_is_auxillary.
7710
21e1c91e
TT
77112019-06-25 Tom Tromey <tom@tromey.com>
7712
7713 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7714 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7715 (tui_delete_data_content_windows, tui_display_all_data)
7716 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7717 Update.
7718 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7719 * tui/tui-regs.c (tui_last_regs_line_no)
7720 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7721 (tui_show_registers): Update.
7722 (tui_show_register_group): Return void. Update.
7723 (tui_display_registers_from, tui_display_reg_element_at_line)
7724 (tui_display_registers_from_line, tui_check_register_values):
7725 Update.
7726 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7727 member.
7728 (struct tui_data_window) <regs_content>: Now a std::vector.
7729 <regs_content_count>: Remove.
7730 (tui_add_content_elements, tui_free_data_content): Don't declare.
7731 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7732 (init_content_element): Remove DATA_WIN case. Add assert.
7733 (tui_add_content_elements): Remove.
7734 (tui_data_window): Update.
7735 (tui_free_data_content): Remove.
7736 (free_content_elements): Remove DATA_WIN case.
7737
115ac53b
TT
77382019-06-25 Tom Tromey <tom@tromey.com>
7739
7740 * tui/tui-data.c (tui_data_item_window): Update.
7741 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7742 * tui/tui-windata.c (tui_display_all_data)
7743 (tui_display_data_from_line): Update.
7744 (tui_check_data_values): Remove.
7745 * tui/tui-regs.c (tui_show_register_group)
7746 (tui_display_reg_element_at_line): Update.
7747 * tui/tui-hooks.c (tui_register_changed)
7748 (tui_refresh_frame_and_register_information): Call
7749 tui_check_register_values.
7750 * tui/tui-data.h (struct tui_data_window) <data_content,
7751 data_content_count, data_type>: Remove.
7752 (enum tui_data_type): Remove.
7753
7754 * tui/tui-data.c (tui_data_window::clear_detail)
7755 (~tui_data_window): Update.
7756
eaf9738b
TT
77572019-06-25 Tom Tromey <tom@tromey.com>
7758
7759 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7760 declare.
7761 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7762 Rename from tui_first_data_item_displayed. Update.
7763 (tui_data_window::refresh_all)
7764 (tui_data_window::do_scroll_vertical): Update.
7765 * tui/tui-data.h (struct tui_data_window)
7766 <first_data_item_displayed>: Declare new method.
7767
31ca4723
TT
77682019-06-25 Tom Tromey <tom@tromey.com>
7769
7770 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7771 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7772 contents...
7773 (tui_initialize_static_data): ...here.
7774
41bcff7f
TT
77752019-06-25 Tom Tromey <tom@tromey.com>
7776
7777 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7778 (tui_display_registers_from, tui_check_register_values): Update.
7779 (tui_display_register): Remove win_info parameter; update.
7780 (tui_get_register): Change type of parameters.
7781 * tui/tui-data.h (struct tui_data_element): Remove.
7782 (union tui_which_element) <data>: Remove.
7783 <data_window>: Change type.
7784 (struct tui_data_item_window): New.
7785 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7786 case. Add assert.
7787 (~tui_data_item_window): New destructor.
7788 (free_content_elements): Remove DATA_ITEM_WIN case.
7789
d2802c33
TT
77902019-06-25 Tom Tromey <tom@tromey.com>
7791
7792 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7793 Remove.
7794
dd835f8b
TT
77952019-06-25 Tom Tromey <tom@tromey.com>
7796
7797 * tui/tui-data.h (struct tui_command_element): Remove.
7798 (union tui_which_element) <command>: Remove.
7799 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7800 assert.
7801 (free_content_elements): Remove CMD_WIN case.
7802
bd7db367
TT
78032019-06-25 Tom Tromey <tom@tromey.com>
7804
7805 * tui/tui-layout.c (tui_set_layout): Update.
7806 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7807 * tui/tui-data.c (layout_def): Update.
7808
3add462f
TT
78092019-06-25 Tom Tromey <tom@tromey.com>
7810
7811 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7812 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7813 (tui_source_window_base::set_new_height): Update.
7814 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7815 Update.
7816 (tui_set_locator_fullname, tui_set_locator_info)
7817 (tui_show_frame_info): Update.
7818 * tui/tui-source.c (tui_set_source_content)
7819 (tui_source_is_displayed): Update.
7820 * tui/tui-layout.c (show_source_disasm_command, show_data)
7821 (show_source_or_disasm_and_command): Update.
7822 * tui/tui-disasm.c (tui_set_disassem_content)
7823 (tui_get_begin_asm_address): Update.
7824 * tui/tui-data.h (struct tui_locator_element): Remove.
7825 (union tui_which_element) <locator>: Remove.
7826 (struct tui_locator_window): New.
7827 (tui_locator_win_info_ptr): Change return type.
7828 * tui/tui-data.c (_locator): Change type.
7829 (tui_locator_win_info_ptr): Change return type.
7830 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7831 (tui_alloc_content): Add assert.
7832
489e9d8b
TT
78332019-06-25 Tom Tromey <tom@tromey.com>
7834
7835 * tui/tui-winsource.c
7836 (tui_exec_info_window::maybe_allocate_content): New method.
7837 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7838 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7839 (make_source_or_disasm_window): Add cast.
7840 * tui/tui-data.h (union tui_which_element) <simple_string>:
7841 Remove.
7842 (struct tui_source_info): New.
7843 (struct tui_source_window_base) <execution_info>: Change type.
7844 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7845 case, and add assert.
7846 (tui_alloc_content): Add assert.
7847
c3fabb7d
TT
78482019-06-25 Tom Tromey <tom@tromey.com>
7849
7850 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7851 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7852 * tui/tui-data.c (tui_alloc_win_info): Remove.
7853
bbc228ee
TT
78542019-06-25 Tom Tromey <tom@tromey.com>
7855
7856 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7857 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7858 can_highlight.
7859
5fcee43a
TT
78602019-06-25 Tom Tromey <tom@tromey.com>
7861
7862 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7863 make_visible_with_new_height method.
7864 (tui_win_info::make_visible_with_new_height): New method.
7865 (tui_source_window_base::do_make_visible_with_new_height)
7866 (tui_data_window::do_make_visible_with_new_height)
7867 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7868 (make_visible_with_new_height): Remove.
7869 (tui_resize_all, tui_adjust_win_heights): Use
7870 make_visible_with_new_height method.
7871 * tui/tui-data.h (struct tui_win_info)
7872 <do_make_visible_with_new_height, make_visible_with_new_height>:
7873 New methods.
7874 (struct tui_source_window_base, struct tui_data_window)
7875 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7876 methods.
7877
d83f1fe6
TT
78782019-06-25 Tom Tromey <tom@tromey.com>
7879
7880 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7881 method.
7882 (update_tab_width): Call update_tab_width method.
7883 * tui/tui-data.h (struct tui_win_info)
7884 (struct tui_source_window_base) <update_tab_width>: New methods.
7885
17374de4
TT
78862019-06-25 Tom Tromey <tom@tromey.com>
7887
7888 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7889 parameter.
7890 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7891 parameter.
7892 (tui_gen_win_info::make_visible): Update.
7893 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7894 parameter.
7895 * tui/tui-data.h (enum tui_box): New enum.
7896 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7897
f936bca2
TT
78982019-06-25 Tom Tromey <tom@tromey.com>
7899
7900 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7901 init_and_make_win for EXEC_INFO_WIN.
7902 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7903 longer inline.
7904 (struct tui_win_info) <~tui_win_info>: Inline.
7905 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7906 Don't declare.
7907 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7908 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7909 Remove.
7910 (tui_initialize_static_data): Update.
7911 (~tui_gen_win_info): Handle more cleanup here.
7912 (~tui_source_window_base): Delete "execution_info".
7913 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7914
d6ba6a11
TT
79152019-06-25 Tom Tromey <tom@tromey.com>
7916
7917 * tui/tui-layout.c (make_command_window): Don't set
7918 can_highlight.
7919 (show_source_disasm_command): Call the reset method.
7920 (show_data): Don't set can_highlight. Call the reset method.
7921 (tui_gen_win_info::reset): Rename from init_gen_win_info
7922 (init_and_make_win): Simplify. Return tui_gen_win_info.
7923 (show_source_or_disasm_and_command): Call the reset method.
7924 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7925 (struct tui_cmd_window): Set can_highlight.
7926
48a3bd16
TT
79272019-06-25 Tom Tromey <tom@tromey.com>
7928
7929 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7930 from make_visible.
7931 (tui_make_visible, tui_make_invisible): Rewrite.
7932 (tui_win_info::make_visible): Remove.
7933 (tui_source_window_base::make_visible): Update.
7934 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7935 method. Moved from...
7936 (struct tui_win_info) <make_visible>: ...here.
7937
c3bd716f
TT
79382019-06-25 Tom Tromey <tom@tromey.com>
7939
7940 * tui/tui-winsource.c
7941 (tui_source_window_base::do_scroll_horizontal): Remove direction
7942 parameter.
7943 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7944 direction parameter.
7945 * tui/tui-win.c (tui_win_info::forward_scroll)
7946 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7947 (tui_win_info::right_scroll): Update.
7948 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7949 direction parameter.
7950 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7951 direction parameter.
7952 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7953 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7954 Remove direction parameter.
7955 (struct tui_source_window_base, struct tui_source_window)
7956 (struct tui_disasm_window, struct tui_data_window)
7957 (struct tui_cmd_window): Update.
7958
21c32dca
TT
79592019-06-25 Tom Tromey <tom@tromey.com>
7960
7961 * tui/tui-winsource.h (tui_set_exec_info_content)
7962 (tui_show_exec_info_content, tui_erase_exec_info_content)
7963 (tui_clear_exec_info_content, tui_update_exec_info): Change
7964 argument to tui_source_window_base.
7965 * tui/tui-winsource.c (tui_set_exec_info_content)
7966 (tui_show_exec_info_content, tui_erase_exec_info_content)
7967 (tui_clear_exec_info_content, tui_update_exec_info): Change
7968 argument to tui_source_window_base.
7969
73fbdc65
TT
79702019-06-25 Tom Tromey <tom@tromey.com>
7971
7972 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
7973 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
7974
33325343
TT
79752019-06-25 Tom Tromey <tom@tromey.com>
7976
7977 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
7978 check.
7979
29d2c474
TT
79802019-06-25 Tom Tromey <tom@tromey.com>
7981
7982 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
7983 type to void.
7984 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
7985 type to void.
7986 * tui/tui-source.c (tui_set_source_content): Update.
7987 * tui/tui-disasm.c (tui_set_disassem_content): Update.
7988
152f3f4b
TT
79892019-06-25 Tom Tromey <tom@tromey.com>
7990
7991 * tui/tui-win.c (window_name_completer, tui_set_focus)
7992 (tui_all_windows_info): Use name method.
7993 * tui/tui-data.h (struct tui_gen_win_info)
7994 (struct tui_source_window, struct tui_disasm_window)
7995 (struct tui_data_window, struct tui_cmd_window) <name>: New
7996 method.
7997 (tui_win_name): Don't declare.
7998 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
7999 (tui_win_name): Remove.
8000
be4da588
TT
80012019-06-25 Tom Tromey <tom@tromey.com>
8002
8003 * tui/tui-winsource.h (tui_update_source_window)
8004 (tui_update_source_window_as_is): Change parameter type.
8005 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8006 to be a tui_source_window_base.
8007 (tui_update_source_window_as_is): Likewise.
8008 * tui/tui-win.c (make_visible_with_new_height): Update.
8009
5b81daba
TT
80102019-06-25 Tom Tromey <tom@tromey.com>
8011
8012 * tui/tui-winsource.c (tui_erase_source_content)
8013 (tui_show_source_content, tui_show_exec_info_content)
8014 (tui_erase_exec_info_content): Use refresh_window method.
8015 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8016 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8017 from tui_refresh_win.
8018 (tui_data_window::refresh_window): New method.
8019 (tui_win_info::refresh, tui_source_window_base::refresh)
8020 (tui_refresh_all): Use refresh_window method.
8021 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8022 method.
8023 * tui/tui-regs.c (tui_display_register): Call refresh_window
8024 method.
8025 * tui/tui-layout.c (show_source_disasm_command)
8026 (show_source_or_disasm_and_command): Call refresh_window method.
8027 * tui/tui-data.h (struct tui_gen_win_info)
8028 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8029 New method.
8030
cb2ce893
TT
80312019-06-25 Tom Tromey <tom@tromey.com>
8032
8033 * tui/tui.c (tui_rl_other_window, tui_enable)
8034 (tui_is_window_visible, tui_get_command_dimension): Update.
8035 * tui/tui-winsource.c (tui_update_source_window_as_is)
8036 (tui_clear_source_content, tui_erase_source_content)
8037 (tui_show_source_line, tui_source_window_base::refill)
8038 (tui_source_window_base::do_scroll_horizontal)
8039 (tui_source_window_base::set_is_exec_point_at)
8040 (tui_update_breakpoint_info, tui_set_exec_info_content)
8041 (tui_alloc_source_buffer, tui_line_is_displayed)
8042 (tui_addr_is_displayed): Update.
8043 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8044 (tui_check_and_display_highlight_if_needed)
8045 (tui_win_info::make_visible, tui_win_info::refresh)
8046 (tui_refresh_all): Update.
8047 * tui/tui-windata.c (tui_first_data_item_displayed)
8048 (tui_delete_data_content_windows, tui_erase_data_content)
8049 (tui_display_all_data, tui_data_window::refresh_all)
8050 (tui_check_data_values): Update.
8051 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8052 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8053 (tui_win_info::backward_scroll, tui_refresh_all_win)
8054 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8055 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8056 (tui_source_window_base::set_new_height)
8057 (tui_data_window::set_new_height)
8058 (make_invisible_and_set_new_height)
8059 (make_visible_with_new_height, new_height_ok)
8060 (parse_scrolling_args): Update.
8061 * tui/tui-stack.c (tui_show_frame_info): Update.
8062 * tui/tui-source.c (tui_set_source_content)
8063 (tui_set_source_content_nil, tui_source_is_displayed)
8064 (tui_source_window::do_scroll_vertical): Update.
8065 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8066 (tui_display_registers_from, tui_display_reg_element_at_line)
8067 (tui_check_register_values, tui_reg_command): Update.
8068 * tui/tui-layout.c (tui_default_win_height)
8069 (show_source_disasm_command, show_data, init_and_make_win)
8070 (show_source_or_disasm_and_command): Update.
8071 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8072 (tui_redisplay_readline, tui_mld_flush)
8073 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8074 (tui_getc): Update.
8075 * tui/tui-disasm.c (tui_set_disassem_content)
8076 (tui_disasm_window::do_scroll_vertical): Update.
8077 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8078 Now virtual.
8079 (struct tui_win_info): Derive from tui_gen_win_info.
8080 <~tui_win_info>: Mark as override.
8081 <generic>: Remove member.
8082 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8083 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8084 (~tui_data_window, ~tui_win_info)
8085 (tui_free_all_source_wins_content): Update.
8086 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8087
ab313b35
TT
80882019-06-25 Tom Tromey <tom@tromey.com>
8089
8090 * tui/tui-layout.c (init_and_make_win): Use new.
8091 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8092 destructor, initializers.
8093 (tui_alloc_generic_win_info): Don't declare.
8094 * tui/tui-data.c (_locator): Add argument to constructor.
8095 (source_win, disasm_win): New globals.
8096 (exec_info): Remove.
8097 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8098 Update.
8099 (tui_alloc_generic_win_info): Remove.
8100 (init_content_element): Use new.
8101 (tui_win_info::tui_win_info): Update.
8102 (free_content_elements) <case DATA_WIN>: Use delete.
8103
dc2c33e4
TT
81042019-06-25 Tom Tromey <tom@tromey.com>
8105
8106 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8107 * tui/tui-windata.c (tui_first_data_item_displayed)
8108 (tui_delete_data_content_windows): Update.
8109 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8110 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8111 (tui_display_registers_from, tui_check_register_values): Update.
8112 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8113 pointer.
8114 * tui/tui-data.c (init_content_element): Update. Allocate the new
8115 window.
8116 (tui_free_data_content): Update.
8117 (free_content_elements) <case DATA_WIN>: Free the window.
8118
214a5cbe
TT
81192019-06-25 Tom Tromey <tom@tromey.com>
8120
8121 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8122 Update.
8123 * tui/tui-layout.c (make_command_window)
8124 (show_source_disasm_command, show_data, init_and_make_win)
8125 (show_source_or_disasm_and_command): Update.
8126 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8127 method.
8128 <can_highight, is_highlighted>: Now bool.
8129 (tui_set_win_highlight): Don't declare.
8130 * tui/tui-data.c (tui_set_win_highlight): Remove.
8131
8e2daf15
TT
81322019-06-25 Tom Tromey <tom@tromey.com>
8133
8134 * tui/tui-wingeneral.c (make_visible): Remove check of window
8135 type.
8136
8903bd8a
TT
81372019-06-25 Tom Tromey <tom@tromey.com>
8138
8139 * tui/tui-win.c (tui_win_info::max_height)
8140 (tui_cmd_window::max_height): New methods.
8141 (new_height_ok): Call max_height.
8142 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8143 <max_height>: New method.
8144
3f02ce1e
TT
81452019-06-25 Tom Tromey <tom@tromey.com>
8146
8147 * tui/tui-win.c (tui_source_window_base::set_new_height)
8148 (tui_data_window::set_new_height): New methods.
8149 (make_invisible_and_set_new_height): Call set_new_height method.
8150 * tui/tui-data.h (struct tui_win_info)
8151 (struct tui_source_window_base, struct tui_data_window)
8152 <set_new_height>: New method.
8153
1825f487
TT
81542019-06-25 Tom Tromey <tom@tromey.com>
8155
8156 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8157 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8158 tui_refresh_data_win.
8159 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8160 method.
8161 (tui_refresh_all_win): Call the refresh_all method.
8162 (tui_set_focus): Likewise.
8163 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8164 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8165 Likewise.
8166
ad54d15b
TT
81672019-06-25 Tom Tromey <tom@tromey.com>
8168
8169 * tui/tui-winsource.h (tui_refill_source_window)
8170 (tui_set_is_exec_point_at): Don't declare.
8171 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8172 (tui_source_window_base::refill): Rename from
8173 tui_refill_source_window.
8174 (tui_source_window_base::do_scroll_horizontal): Update.
8175 (tui_source_window_base::set_is_exec_point_at): Rename from
8176 tui_set_is_exec_point_at.
8177 (tui_update_all_breakpoint_info): Update.
8178 * tui/tui-stack.c (tui_show_frame_info): Update.
8179 * tui/tui-layout.c (show_data): Add cast.
8180 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8181 * tui/tui-data.h (struct tui_source_window_base) <refill,
8182 set_is_exec_point_at>: New methods.
8183 (tui_source_windows, tui_add_to_source_windows): Update types.
8184 (tui_add_to_source_windows): Remove redundant declaration.
8185 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8186 (tui_source_windows): Change return type.
8187 (tui_clear_source_windows_detail): Update.
8188 (tui_add_to_source_windows): Change type of parameter.
8189 (tui_free_all_source_wins_content): Update.
8190
2042b506
TT
81912019-06-25 Tom Tromey <tom@tromey.com>
8192
8193 * tui/tui-wingeneral.c (tui_win_info::refresh)
8194 (tui_source_window_base::refresh): New methods.
8195 (tui_refresh_all): Call the refresh method.
8196 * tui/tui-data.h (struct tui_win_info)
8197 (struct tui_source_window_base) <refresh>: New method.
8198
56122977
TT
81992019-06-25 Tom Tromey <tom@tromey.com>
8200
8201 * tui/tui.h (tui_is_window_visible): Return bool.
8202 * tui/tui.c (tui_is_window_visible): Return bool.
8203 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8204 (tui_make_visible, tui_make_invisible)
8205 (tui_win_info::make_visible)
8206 (tui_source_window_base::make_visible, make_all_visible)
8207 (tui_make_all_visible, tui_make_all_invisible): Update.
8208 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8209 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8210 bool.
8211 (struct tui_win_info, struct tui_source_window_base)
8212 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8213 * tui/tui-data.c (tui_init_generic_part): Update.
8214
cda37efb
TT
82152019-06-25 Tom Tromey <tom@tromey.com>
8216
8217 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8218 (tui_source_window_base::make_visible): New methods.
8219 (make_all_visible): Make method call.
8220 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8221 (struct tui_source_window_base, struct tui_cmd_window): Override
8222 make_visible.
8223 (tui_win_is_source_type): Don't declare.
8224 * tui/tui-data.c (tui_win_is_source_type): Remove.
8225
6a0ee02c
TT
82262019-06-25 Tom Tromey <tom@tromey.com>
8227
8228 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8229 NULL check.
8230
63901aec
TT
82312019-06-25 Tom Tromey <tom@tromey.com>
8232
8233 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8234 Inline constructor. Add initializers for members.
8235 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8236 constructors; now inline in class.
8237
ceb13a13
TT
82382019-06-25 Tom Tromey <tom@tromey.com>
8239
8240 * tui/tui-regs.c (tui_show_registers): Update.
8241 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8242 bool.
8243 * tui/tui-data.c (tui_data_window::clear_detail)
8244 (tui_data_window): Update.
8245
238eb706
TT
82462019-06-25 Tom Tromey <tom@tromey.com>
8247
8248 * tui/tui-windata.c (tui_display_all_data)
8249 (tui_display_data_from_line, tui_display_data_from)
8250 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8251 Update.
8252 * tui/tui-regs.c (tui_last_regs_line_no)
8253 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8254 (tui_show_registers, tui_show_register_group)
8255 (tui_display_registers_from, tui_display_reg_element_at_line)
8256 (tui_display_registers_from_line, tui_check_register_values)
8257 (tui_reg_next, tui_reg_prev): Update.
8258 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8259 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8260 tui_data_window.
8261 (struct tui_win_info) <detail>: Remove. Add new fields from
8262 tui_data_info.
8263 (TUI_DATA_WIN): Add cast.
8264 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8265 (~tui_data_window): Simplify.
8266
81491aa0
TT
82672019-06-25 Tom Tromey <tom@tromey.com>
8268
8269 * tui/tui-layout.c (show_source_disasm_command)
8270 (show_source_or_disasm_and_command): Update.
8271 * tui/tui-io.c (update_cmdwin_start_line)
8272 (tui_redisplay_readline): Update.
8273 * tui/tui-data.h (struct tui_command_info): Remove.
8274 (struct tui_win_info) <detail>: Remove command_info member.
8275 (struct tui_data_window) <start_line>: New member, from
8276 tui_command_info.
8277 (TUI_CMD_WIN): Add casts.
8278
e6e41501
TT
82792019-06-25 Tom Tromey <tom@tromey.com>
8280
8281 * tui/tui-winsource.c (tui_update_source_window)
8282 (tui_refill_source_window)
8283 (tui_source_window_base::do_scroll_horizontal)
8284 (tui_update_breakpoint_info, tui_set_exec_info_content)
8285 (tui_show_exec_info_content, tui_erase_exec_info_content)
8286 (tui_clear_exec_info_content): Update.
8287 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8288 Update.
8289 * tui/tui-win.c (make_invisible_and_set_new_height)
8290 (make_visible_with_new_height): Update.
8291 * tui/tui-source.c (tui_set_source_content)
8292 (tui_show_symtab_source): Update.
8293 * tui/tui-layout.c (extract_display_start_addr)
8294 (show_source_disasm_command, show_data)
8295 (make_source_or_disasm_window)
8296 (show_source_or_disasm_and_command): Update.
8297 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8298 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8299 "gdbarch".
8300 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8301 to tui_source_window_base.
8302 (struct tui_win_info) <detail>: Remove source_info member.
8303 (struct tui_source_window_base) <has_locator>: Inline.
8304 Move contents from tui_source_info; rename has_locator member to
8305 m_has_locator.
8306 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8307 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8308 header file.
8309 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8310 Simplify.
8311 (tui_free_all_source_wins_content): Cast to
8312 tui_source_window_base.
8313
44f0e208
TT
83142019-06-25 Tom Tromey <tom@tromey.com>
8315
8316 * tui/tui-win.c (make_invisible_and_set_new_height)
8317 (make_visible_with_new_height): Call has_locator method.
8318 * tui/tui-layout.c (show_source_disasm_command, show_data)
8319 (show_source_or_disasm_and_command): Update for bool change.
8320 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8321 (tui_win_info) <has_locator>: New method.
8322 (struct tui_source_window_base) <has_locator>: New method.
8323 (tui_win_has_locator): Don't declare.
8324 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8325 from tui_win_has_locator.
8326 (tui_source_window_base): Use false, not FALSE.
8327
7778b912
TT
83282019-06-25 Tom Tromey <tom@tromey.com>
8329
8330 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8331 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8332 clear_detail method directly.
8333 (tui_clear_win_detail): Remove.
8334
f83d391c
TT
83352019-06-25 Tom Tromey <tom@tromey.com>
8336
8337 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8338 "this", not TUI_DISASM_WIN.
8339
13446e05
TT
83402019-06-25 Tom Tromey <tom@tromey.com>
8341
8342 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8343 declare.
8344 * tui/tui-winsource.c
8345 (tui_source_window_base::do_scroll_horizontal): Rename from
8346 tui_horizontal_source_scroll.
8347 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8348 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8349 from tui_vertical_data_scroll.
8350 * tui/tui-win.h (tui_scroll): Don't declare.
8351 * tui/tui-win.c (tui_win_info::forward_scroll)
8352 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8353 (tui_win_info::right_scroll): Rename and update.
8354 (tui_scroll_forward_command, tui_scroll_backward_command)
8355 (tui_scroll_left_command, tui_scroll_right_command): Update.
8356 (tui_scroll): Remove.
8357 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8358 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8359 from tui_vertical_source_scroll.
8360 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8361 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8362 from tui_vertical_disassem_scroll.
8363 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8364 do_scroll_horizontal>: New methods.
8365 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8366 Likewise.
8367 (struct tui_source_window_base): Add do_scroll_horizontal.
8368 (struct tui_source_window, struct tui_disasm_window): Add
8369 do_scroll_vertical.
8370 (struct tui_data_window, struct tui_cmd_window): Add
8371 do_scroll_horizontal and do_scroll_vertical.
8372 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8373
5cf82909
TT
83742019-06-25 Tom Tromey <tom@tromey.com>
8375
8376 * tui/tui-data.h (struct tui_source_window_base): New struct.
8377 (struct tui_source_window): Derive from tui_source_window_base.
8378 (struct tui_disasm_window): New struct.
8379 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8380 from tui_source_window::clear_detail.
8381 (tui_source_window_base): Rename from tui_source_window.
8382 (~tui_source_window_base): Rename from ~tui_source_window.
8383 (tui_alloc_win_info): Create a tui_disasm_window.
8384
ee1d42d6
TT
83852019-06-25 Tom Tromey <tom@tromey.com>
8386
8387 * tui/tui-data.h (struct tui_source_window)
8388 (struct tui_data_window): Declare destructors.
8389 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8390 destructors.
8391 (tui_win_info): Simplify.
8392
b4eb2452
TT
83932019-06-25 Tom Tromey <tom@tromey.com>
8394
8395 * tui/tui-winsource.c (tui_display_main)
8396 (tui_update_source_windows_with_addr)
8397 (tui_update_all_breakpoint_info): Update.
8398 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8399 (new_height_ok, parse_scrolling_args): Update.
8400 * tui/tui-stack.c (tui_show_frame_info): Update.
8401 * tui/tui-data.h (struct tui_list): Remove.
8402 (tui_source_windows): Return a reference to a std::vector.
8403 * tui/tui-data.c (source_windows): Now a std::vector.
8404 (tui_source_windows): Change return type.
8405 (tui_clear_source_windows): Rewrite.
8406 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8407 (tui_free_all_source_wins_content): Rewrite.
8408
8761a91b
TT
84092019-06-25 Tom Tromey <tom@tromey.com>
8410
8411 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8412 (struct tui_data_window, struct tui_cmd_window): Declare
8413 clear_detail method.
8414 * tui/tui-data.c (tui_source_window::clear_detail)
8415 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8416 methods.
8417 (tui_clear_win_detail): Simplify.
8418
0ed69eda
TT
84192019-06-25 Tom Tromey <tom@tromey.com>
8420
8421 * tui/tui-layout.c (make_source_window, make_disasm_window)
8422 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8423 Return the new window.
8424 (show_source_disasm_command, show_data)
8425 (show_source_or_disasm_and_command): Update.
8426
82432e10
TT
84272019-06-25 Tom Tromey <tom@tromey.com>
8428
8429 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8430 parameter. Return the new window.
8431 (show_source_disasm_command): Update and remove NULL check.
8432 (show_source_or_disasm_and_command): Update.
8433
ec328aa5
TT
84342019-06-25 Tom Tromey <tom@tromey.com>
8435
8436 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8437
33b906ab
TT
84382019-06-25 Tom Tromey <tom@tromey.com>
8439
8440 * tui/tui-data.h (struct tui_win_info): Make constructor
8441 protected. Make destructor virtual. Add initializers.
8442 (tui_source_window, tui_data_window, tui_cmd_window): New
8443 classes.
8444 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8445 constructor. Add "type" parameter.
8446 (tui_source_window, tui_data_window, tui_cmd_window): New
8447 constructors.
8448 (tui_alloc_win_info): Instantiate the appropriate subclass.
8449
e7e11af4
TT
84502019-06-25 Tom Tromey <tom@tromey.com>
8451
8452 * tui/tui-win.c (tui_resize_all): Use delete.
8453 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8454 destructor.
8455 (tui_free_window): Don't declare.
8456 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8457 Update.
8458
6792b55e
TT
84592019-06-25 Tom Tromey <tom@tromey.com>
8460
8461 * tui/tui-data.h (struct tui_win_info): Add constructor.
8462 * tui/tui-data.c (tui_alloc_win_info): Use new.
8463 (tui_free_window): Use delete.
8464
f95675e1
TT
84652019-06-22 Tom Tromey <tom@tromey.com>
8466
8467 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8468 declare.
8469 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8470
5bff081c
TT
84712019-06-22 Tom Tromey <tom@tromey.com>
8472
8473 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8474 declare.
8475 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8476
47e3f474
TV
84772019-06-22 Tom de Vries <tdevries@suse.de>
8478
8479 * dwarf2read.c (create_addrmap_from_aranges)
8480 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8481 instead of '%zu'.
8482
fd5866f6
SM
84832019-06-21 Simon Marchi <simon.marchi@efficios.com>
8484
8485 * dwarf2read.h (dwarf2_section_info_def): Remove.
8486 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8487 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8488 std::vector<dwarf2_section_info>.
8489 (struct dwo_file) <~dwo_file>: Remove.
8490 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8491 types field.
8492 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8493 (dwarf2_read_debug_names): Likewise.
8494 (create_debug_types_hash_table): Change parameter type to
8495 array_view, adjust code accordingly.
8496 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8497 (partial_die_info::fixup): Likewise.
8498 (determine_prefix): Likewise.
8499 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8500
fb1eb2f9
SM
85012019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8502
8503 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8504 gdb_bfd_ref_ptr.
8505 <~dwo_file>: Remove call to gdb_bfd_unref.
8506 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8507 gdb_bfd_ref_ptr::get.
8508
51ac9db5
SM
85092019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8510
8511 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8512 type to htab_up.
8513 * dwarf2read.c (struct dwo_file): Initialize fields.
8514 <~dwo_file>: New.
8515 (free_dwo_file): Remove, move content to ~dwo_file.
8516 (struct dwo_file_deleter): Remove.
8517 (dwo_file_up>: Remove custom deleter.
8518 (free_dwo_files): Remove.
8519 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8520 dwo_files.
8521 (process_skeletonless_type_units): Call unique_ptr::get.
8522 (allocate_dwo_file_hash_table): Add deleter to created hash
8523 table. Change return type to htab_up.
8524 (lookup_dwo_file_slot): Don't memset dwo_file, call
8525 unique_ptr::get.
8526 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8527 (create_dwo_unit_in_dwp_v2): Likewise.
8528 (open_and_init_dwo_file): Likewise.
8529 (free_dwo_file_from_slot): Remove.
8530
dc4ccb6f
SM
85312019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8532
8533 * dwarf2read.h (struct dwarf2_section_info) <readin,
8534 is_virtual>: Change type to bool.
8535 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8536 true instead of 1.
8537
e6a1c5cb
TT
85382019-06-19 Tom Tromey <tom@tromey.com>
8539
8540 * tui/tui-data.h (tui_init_content_element): Don't declare.
8541
6f6ffbeb
TT
85422019-06-19 Tom Tromey <tom@tromey.com>
8543
8544 * tui/tui-data.h (tui_init_win_info): Don't declare.
8545
f23f598e
TV
85462019-06-19 Tom de Vries <tdevries@suse.de>
8547
8548 * dwarf2read.h (abstract_to_concrete): Change type to
8549 std::unordered_map<sect_offset, std::vector<sect_offset>,
8550 gdb::hash_enum<sect_offset>>.
8551
680e1bee
TT
85522019-06-19 Tom Tromey <tromey@adacore.com>
8553
8554 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8555 EVAL_AVOID_SIDE_EFFECTS specially.
8556
dcf37923
TT
85572019-06-19 Tom Tromey <tromey@adacore.com>
8558
8559 * source-cache.c (highlighter): New global.
8560 (source_cache::get_source_lines): Create a highlighter on demand.
8561
494986d5
AB
85622019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8563
8564 * defs.h (deprecated_interactive_hook): Delete declaration.
8565 * interps.c (clear_interpreter_hooks): Remove use of
8566 deprecated_interactive_hook.
8567 * top.c (deprecated_interactive_hook): Delete definition.
8568 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8569
3360b6e7
TV
85702019-06-18 Tom de Vries <tdevries@suse.de>
8571
8572 PR gdb/24515
8573 * dwarf2read.h (abstract_to_concrete): Change type from
8574 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8575 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8576 * dwarf2read.c (read_variable): Update.
8577 (dwarf2_fetch_die_loc_sect_off): Update.
8578
310b3441
TV
85792019-06-17 Tom de Vries <tdevries@suse.de>
8580
8581 PR gdb/24617
8582 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8583 accessing parent[parent_len - 1].
8584
ba9777be
PP
85852019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8586
8587 PR gdb/24364
8588 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8589 call dtrace_process_dof with NULL dof.
8590
2b9f6e89
TV
85912019-06-16 Tom de Vries <tdevries@suse.de>
8592
8593 PR gdb/24445
8594 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8595
431b3ead
TT
85962019-06-16 Tom Tromey <tom@tromey.com>
8597
8598 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8599 (make_all_visible): Use address of member.
8600
d04b44a1
TT
86012019-06-16 Tom Tromey <tom@tromey.com>
8602
8603 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8604 (tui_free_window, free_content, free_content_elements): Remove
8605 unnecessary cast.
8606 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8607 cast.
8608 * tui/tui-regs.c (tui_show_register_group)
8609 (tui_display_registers_from, tui_display_reg_element_at_line):
8610 Remove unnecessary cast.
8611
bf5142e7
AB
86122019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8613
8614 * linux-nat.c (normal_mask): Delete.
8615 (_initialize_linux_nat): Don't initialise normal_mask.
8616
c4973306
SM
86172019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8618
8619 PR gdb/24445
8620 * dwarf-index-write.h (write_psymtabs_to_index): Add
8621 dwz_basename parameter.
8622 * dwarf-index-write.c (write_gdbindex): Move file writing to
8623 write_gdbindex_1. Change return type void.
8624 (assert_file_size): Move up, remove filename parameter.
8625 (write_gdbindex_1): New function.
8626 (write_debug_names): Change return type to void, call
8627 assert_file_size.
8628 (struct index_wip_file): New struct.
8629 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8630 file logic to index_wip_file. Write index for dwz file if
8631 needed.
8632 (save_gdb_index_command): Pass basename of dwz file, if present.
8633 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8634 build-id of dwz file, if present.
8635 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8636 (dwarf2_get_dwz_file): Likewise.
8637 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8638 (dwarf2_get_dwz_file): Likewise.
8639
395f9c91
TT
86402019-06-16 Tom Tromey <tom@tromey.com>
8641
8642 * coffread.c (process_coff_symbol): Use xstrdup.
8643 * value.c (create_internalvar): Use xstrdup.
8644
cafb3438
TT
86452019-06-16 Tom Tromey <tom@tromey.com>
8646
8647 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8648 * breakpoint.c (stopin_command, stopat_command)
8649 (until_break_command, decode_location_default): Remove unnecessary
8650 cast.
8651 * utils.c (subset_compare): Remove unnecessary cast.
8652 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8653 cast.
8654 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8655 cast.
8656 * infcmd.c (path_command): Remove unnecessary cast.
8657 * coffread.c (decode_type): Remove unnecessary cast.
8658 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8659 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8660 * tui/tui-stack.c (tui_show_locator_content)
8661 (tui_show_frame_info): Remove unnecessary cast.
8662 * tui/tui-win.c (tui_scroll_forward_command)
8663 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8664 (parse_scrolling_args): Remove unnecessary cast.
8665 * tui/tui-data.c (init_win_info, tui_del_window)
8666 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8667 (free_content_elements): Remove unnecessary cast.
8668 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8669 unnecessary cast.
8670 * tui/tui-source.c (tui_set_source_content)
8671 (tui_vertical_source_scroll): Remove unnecessary cast.
8672 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8673 cast.
8674 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8675 * tui/tui-regs.c (tui_display_registers_from)
8676 (tui_display_register): Remove unnecessary cast.
8677 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8678 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8679 (make_visible): Remove unnecessary cast.
8680 * tui/tui-winsource.c (tui_erase_source_content)
8681 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8682 unnecessary cast.
8683 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8684 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8685 * stabsread.c (read_type, read_array_type, read_range_type):
8686 Remove unnecessary cast.
8687 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8688 (parse_symbol, parse_type, upgrade_type, parse_external)
8689 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8690 unnecessary cast.
8691 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8692
730ead81
TT
86932019-06-16 Tom Tromey <tom@tromey.com>
8694
8695 * tui/tui-data.c (tui_alloc_generic_win_info)
8696 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8697 checks.
8698
584a927c
AB
86992019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8700 Andrew Burgess <andrew.burgess@embecosm.com>
8701
8702 * f-typeprint.c (f_print_type): Don't return early for not
8703 associated or not allocated types.
8704 (f_type_print_varspec_suffix): Add print_rank parameter and print
8705 ranks of array types in case they dangling.
8706 (f_type_print_base): Add print_rank parameter.
8707
30056ea0
AB
87082019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8709
8710 * NEWS: Mention new MI commands.
8711 * break-catch-throw.c (enum exception_event_kind): Move to
8712 breakpoint.h.
8713 (print_mention_exception_catchpoint): Output text as a single
8714 message.
8715 (catch_exception_command_1): Rename to...
8716 (catch_exception_event): ...this, make non-static, update header
8717 command, and change some parameter types.
8718 (catch_catch_command): Update for changes to
8719 catch_exception_command_1.
8720 (catch_throw_command): Likewise.
8721 (catch_rethrow_command): Likewise.
8722 * breakpoint.c (enum exception_event_kind): Delete.
8723 * breakpoint.h (enum exception_event_kind): Moved here from
8724 break-catch-throw.c.
8725 (catch_exception_event): Declare.
8726 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8727 (mi_cmd_catch_throw): New function.
8728 (mi_cmd_catch_rethrow): New function.
8729 (mi_cmd_catch_catch): New function.
8730 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8731 'catch-catch' entries.
8732 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8733 (mi_cmd_catch_rethrow): Declare.
8734 (mi_cmd_catch_catch): Declare.
8735
ec8e2b6d
AB
87362019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8737
8738 * annotate.c (annotate_source_line): Change return type to void,
8739 update implementation to match.
8740 * annotate.h (annotate_source_line): Change return type to void,
8741 update header comment.
8742 * stack.c (print_frame_info): Don't change what frame information
8743 is printed based on whether annotations are on or not.
8744
0d3abd8c
AB
87452019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8746
8747 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8748 (annotate_source): Make static.
8749 (annotate_source_line): Moved from source.c and renamed from
8750 identify_source_line. Update the return type.
8751 * annotate.h (annotate_source): Delete declaration.
8752 (annotate_source_line): Declaration moved from source.h, and
8753 renamed from identify_source_line. Return type updated.
8754 * source.c (identify_source_line): Moved to annotate.c and renamed
8755 to annotate_source_line.
8756 (info_line_command): Remove check of annotation_level.
8757 * source.h (identify_source_line): Move declaration to annotate.h
8758 and rename to annotate_source_line.
8759 * stack.c: Add 'annotate.h' include.
8760 (print_frame_info): Remove check of annotation_level before
8761 calling annotate_source_line.
8762
00df30ae
AB
87632019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8764
8765 * source-cache.c (source_cache::get_plain_source_lines): Use
8766 open_source_file_with_line_charpos instead of just
8767 open_source_file, remove call to find_source_lines.
8768 (source_cache::get_source_lines): Likewise.
8769 * source.c (find_source_lines): Make static.
8770 (get_filename_and_charpos): Renamed into...
8771 (open_source_file_with_line_charpos): ..this along with changes to
8772 return a scoped_fd, and some other minor clean ups.
8773 (identify_source_line): Use open_source_file_with_line_charpos.
8774 (search_command_helper): Use open_source_file_with_line_charpos
8775 instead of just open_source_file, remove call to
8776 find_source_lines.
8777 * source.h (open_source_file_with_line_charpos): Declare new
8778 function.
8779 (find_source_lines): Delete declaration.
8780
afda45a2
AB
87812019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8782
8783 * source.c (get_filename_and_charpos): Remove fullname
8784 parameter.
8785 (identify_source_line): Update call to get_filename_and_charpos.
8786
0735b091
TT
87872019-06-14 Tom Tromey <tromey@adacore.com>
8788
8789 PR gdb/24502:
8790 * ui-style.h (skip_ansi_escape): Update comment.
8791 * ui-file.h (class no_terminal_escape_file): New class.
8792 * ui-file.c (no_terminal_escape_file::write)
8793 (no_terminal_escape_file::puts): New methods.
8794 * cli/cli-logging.c (handle_redirections): Use
8795 no_terminal_escape_file.
8796
52ce35e2
TT
87972019-06-14 Tom Tromey <tromey@adacore.com>
8798
8799 * NEWS: Move convenience variable news above Python news.
8800
73cc7272
TT
88012019-06-14 Tom Tromey <tom@tromey.com>
8802
8803 * gnulib: Move directory to top-level.
8804 * configure.ac: Don't configure gnulib.
8805 * configure: Rebuild.
8806 * common/common-defs.h: Use new path to gnulib.
8807 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8808 (GNULIB_H): Remove.
8809 (INCGNU): Look in new gnulib location.
8810 (HFILES_NO_SRCDIR): Remove gnulib files.
8811 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8812 (generated_files): Remove GNULIB_H.
8813 ($(LIBGNU), all-lib): Remove targets.
8814 (distclean): Don't mention GNULIB_BUILDDIR.
8815 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8816
f5686554
TT
88172019-06-14 Tom Tromey <tromey@adacore.com>
8818
8819 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8820 Warn if symbol file does not provide any symbols.
8821
a0c1ffed
TT
88222019-06-14 Tom Tromey <tromey@adacore.com>
8823
8824 * source.c (find_and_open_source): Respect basenames_may_differ.
8825
7c39e397
AB
88262019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8827
8828 * annotate.c (annotate_breakpoints_invalid): Make use of
8829 scoped_restore_terminal_state.
8830 (annotate_frames_invalid): Likewise.
8831
f411722c
TT
88322019-06-14 Tom Tromey <tromey@adacore.com>
8833
8834 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8835 allow assignment to an internalvar.
8836
4268ec18
TT
88372019-06-14 Tom Tromey <tromey@adacore.com>
8838
8839 * ada-lex.l: Allow "_" in attribute names.
8840
abdb711e
TT
88412019-06-14 Tom Tromey <tromey@adacore.com>
8842
8843 PR gdb/24653:
8844 * regcache.c (registers_changed): Don't call alloca.
8845 * top.c (execute_command): Don't call alloca.
8846
4c048731
PA
88472019-06-13 Pedro Alves <palves@redhat.com>
8848
8849 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8850 'expression'. When parsing an expression, error out if there's
8851 junk after "unlimited".
8852 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8853 (do_set_command): Adjust calls to is_unlimited_literal.
8854
66eb1ed3
PA
88552019-06-13 Pedro Alves <palves@redhat.com>
8856
8857 * compile/compile.c (make_compile_options_def_group): Add braces
8858 around array_view initializer.
8859 * thread.c (make_thread_apply_all_options_def_group)
8860 (make_thread_apply_all_options_def_group): Likewise.
8861
3345721a
PA
88622019-06-13 Pedro Alves <palves@redhat.com>
8863
8864 * NEWS (New commands): Mention "maint test-options
8865 require-delimiter", "maint test-options unknown-is-error", "maint
8866 test-options unknown-is-operand" and "maint show
8867 test-options-completion-result".
8868 (New command options, command completion): New section.
8869 (Completion improvements): New section.
8870 Mention that you can abbreviate "unlimited".
8871
6206060d
PA
88722019-06-13 Pedro Alves <palves@redhat.com>
8873
8874 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8875 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8876 * unittests/cli-utils-selftests.c (test_parse_flags)
8877 (test_parse_flags_qcs): Delete.
8878 (test_cli_utils): Don't call deleted functions.
8879
6665660a
PA
88802019-06-13 Pedro Alves <palves@redhat.com>
8881
8882 * thread.c: Include "cli/cli-option.h".
8883 (tp_array_compar_ascending): Global.
8884 (tp_array_compar): Delete function.
8885 (tp_array_compar_ascending, tp_array_compar_descending): New
8886 functions.
8887 (ascending_option_def, qcs_flag_option_def)
8888 (thr_qcs_flags_option_defs)
8889 (make_thread_apply_all_options_def_group)
8890 (make_thread_apply_options_def_group): New.
8891 (thread_apply_all_command): Use gdb::option::process_options.
8892 (thread_apply_command_completer)
8893 (thread_apply_all_command_completer): New.
8894 (thread_apply_command): Use gdb::option::process_options.
8895 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8896 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8897 to generate help text of "thread apply". Adjust "taas"'s help.
8898 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8899 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8900
f7e13587
PA
89012019-06-13 Pedro Alves <palves@redhat.com>
8902
8903 * thread.c (thread_apply_command): Check for invalid TID with
8904 isdigit instead of !isalpha.
8905
5d707134
PA
89062019-06-13 Pedro Alves <palves@redhat.com>
8907
8908 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8909 (validate_flags_qcs): New.
8910 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8911 (validate_flags_qcs): Declare.
8912 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8913 (make_frame_apply_options_def_group): New.
8914 (frame_apply_command_count): Process options with
8915 gdb::option::process_options.
8916 (frame_apply_completer): New.
8917 (frame_apply_level_completer, frame_apply_all_completer)
8918 (frame_apply_completer): New.
8919 (_initialize_stack): Update help of "frame apply", "frame apply
8920 level", "frame apply all" and "faas" to mention supported options
8921 and install command completers.
8922 * stack.h (frame_apply_all_completer): Declare.
8923 * thread.c: Include "stack.h".
8924 (tfaas_command): Add "--".
8925 (_initialize_thread): Update help "tfaas" to mention supported
8926 options and install command completer.
8927
272d4594
PA
89282019-06-13 Pedro Alves <palves@redhat.com>
8929
8930 * completer.c (complete_nested_command_line): New.
8931 (gdb_completion_word_break_characters_throw): Add assertion.
8932 * completer.h (complete_nested_command_line): Declare.
8933
90a1ef87
PA
89342019-06-13 Pedro Alves <palves@redhat.com>
8935
8936 * stack.c (parse_backtrace_qualifiers): New.
8937 (backtrace_command): Use it.
8938 (backtrace_command_completer): Complete on qualifiers.
8939
d4c16835
PA
89402019-06-13 Pedro Alves <palves@redhat.com>
8941
8942 * frame.c: Include "cli/cli-option.h.
8943 (user_set_backtrace_options): New.
8944 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8945 Delete.
8946 (get_prev_frame): Adjust.
8947 (boolean_option_def, uinteger_option_def)
8948 (set_backtrace_option_defs): New.
8949 (_initialize_frame): Adjust and use
8950 gdb::option::add_setshow_cmds_for_options to install "set
8951 backtrace past-main" and "set backtrace past-entry".
8952 * frame.h: Include "cli/cli-option.h".
8953 (struct frame_print_options): Forward declare.
8954 (print_frame_arguments_all, print_frame_arguments_scalars)
8955 (print_frame_arguments_none): Declare.
8956 (print_entry_values): Delete declaration.
8957 (struct frame_print_options, user_frame_print_options): New.
8958 (struct set_backtrace_options): New.
8959 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8960 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8961 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8962 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8963 (list_args_or_locals): Add frame_print_options parameter.
8964 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8965 * python/py-framefilter.c (enumerate_args): Pass down
8966 USER_FRAME_PRINT_OPTIONS.
8967 * stack.c: Include "cli/cli-option.h".
8968 (print_frame_arguments_all, print_frame_arguments_scalars)
8969 (print_frame_arguments_none): Declare.
8970 (print_raw_frame_arguments, print_entry_values): Delete.
8971 (user_frame_print_options): New.
8972 (boolean_option_def, enum_option_def, frame_print_option_defs):
8973 New.
8974 (struct backtrace_cmd_options): New.
8975 (bt_flag_option_def): New.
8976 (backtrace_command_option_defs): New.
8977 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8978 (print_frame_arg, read_frame_arg, print_frame_args)
8979 (print_frame_info, print_frame): Add frame_print_options parameter
8980 and use it.
8981 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
8982 (backtrace_command_1): Add frame_print_options and
8983 backtrace_cmd_options parameters and use them.
8984 (make_backtrace_options_def_group): New.
8985 (backtrace_command): Process command options with
8986 gdb::option::process_options.
8987 (backtrace_command_completer): New.
8988 (_initialize_stack): Extend "backtrace"'s help to mention
8989 supported options. Install completer for "backtrace".
8990 Install some settings commands with add_setshow_cmds_for_options.
8991
2daf894e
PA
89922019-06-13 Pedro Alves <palves@redhat.com>
8993
8994 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
8995 and that "set/show print raw frame-arguments" are now deprecated.
8996
8997 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
8998 command.
8999 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9000 * stack.c (_initialize_stack): Install "set/show print
9001 raw-frame-arguments", and deprecate "set/show print raw
9002 frame-arguments".
9003 * valprint.c (_initialize_valprint): Deprecate "set/show print
9004 raw".
9005
e6ed716c
PA
90062019-06-13 Pedro Alves <palves@redhat.com>
9007
9008 * compile/compile.c (struct compile_options): New.
9009 (compile_flag_option_def, compile_command_option_defs)
9010 (make_compile_options_def_group): New.
9011 (compile_file_command): Handle options with
9012 gdb::option::process_options.
9013 (compile_file_command_completer): New function.
9014 (compile_code_command): Handle options with
9015 gdb::option::process_options.
9016 (compile_code_command_completer): New function.
9017 (_initialize_compiler): Install completers for "compile code" and
9018 "compile file". Mention available options in "compile code" and
9019 "compile code"'s help.
9020 * completer.c (advance_to_completion_word): New, factored out from
9021 ...
9022 (advance_to_expression_complete_word_point): ... this.
9023 (advance_to_filename_complete_word_point): New.
9024 * completer.h (advance_to_filename_complete_word_point): New
9025 declaration.
9026
7d8062de
PA
90272019-06-13 Pedro Alves <palves@redhat.com>
9028
9029 * compile/compile.c: Include "cli/cli-option.h".
9030 (compile_print_value): Scope data pointer is now a
9031 value_print_options pointer; adjust.
9032 (compile_print_command): Process options. Scope data pointer is
9033 now a value_print_options pointer; adjust.
9034 (_initialize_compile): Update "compile print"'s help to include
9035 supported options. Install a completer for "compile print".
9036 * cp-valprint.c (show_vtblprint, show_objectprint)
9037 (show_static_field_print): Delete.
9038 (_initialize_cp_valprint): Don't install "set print
9039 static-members", "set print vtbl", "set print object" here.
9040 * printcmd.c: Include "cli/cli-option.h" and
9041 "common/gdb_optional.h".
9042 (print_command_parse_format): Rework to fill in a
9043 value_print_options instead of a format_data.
9044 (print_value): Change parameter type from format_data pointer to
9045 value_print_options reference. Adjust.
9046 (print_command_1): Process options. Adjust to pass down a
9047 value_print_options.
9048 (print_command_completer): New.
9049 (_initialize_printcmd): Install print_command_completer as
9050 handle_brkchars completer for the "print" command. Update
9051 "print"'s help to include supported options.
9052 * valprint.c: Include "cli/cli-option.h".
9053 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9054 here from cp-valprint.c.
9055 (boolean_option_def, uinteger_option_def)
9056 (value_print_option_defs, make_value_print_options_def_group):
9057 New. Use gdb::option::add_setshow_cmds_for_options to install
9058 "set print elements", "set print null-stop", "set print repeats",
9059 "set print pretty", "set print union", "set print array", "set
9060 print address", "set print symbol", "set print array-indexes".
9061 * valprint.h: Include <string> and "cli/cli-option.h".
9062 (make_value_print_options_def_group): Declare.
9063 (print_value): Change parameter type from format_data pointer to
9064 value_print_options reference.
9065 (print_command_completer): Declare.
9066
9d0faba9
PA
90672019-06-13 Pedro Alves <palves@redhat.com>
9068
9069 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9070 (COMMON_SFILES): Add maint-test-settings.c.
9071 * cli/cli-decode.c (boolean_enums): New global, factored out from
9072 ...
9073 (add_setshow_boolean_cmd): ... here.
9074 * cli/cli-decode.h (boolean_enums): Declare.
9075 * cli/cli-option.c: New file.
9076 * cli/cli-option.h: New file.
9077 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9078 factored out from ...
9079 (parse_cli_boolean_value(const char *)): ... this.
9080 (is_unlimited_literal): Change parameter type to pointer to
9081 pointer. Adjust and advance ARG pointer.
9082 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9083 (parse_cli_var_enum): New, factored out from ...
9084 (do_set_command): ... this. Adjust.
9085 * cli/cli-setshow.h (parse_cli_boolean_value)
9086 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9087 (parse_cli_var_enum): Declare.
9088 * cli/cli-utils.c: Include "cli/cli-option.h".
9089 (get_ulongest): New.
9090 * cli/cli-utils.h (get_ulongest): Declare.
9091 (check_for_argument): New overloads.
9092 * maint-test-options.c: New file.
9093
2c722807
PA
90942019-06-13 Pedro Alves <palves@redhat.com>
9095
9096 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9097 parse a range if "-" is at the end of the string.
9098
dee7b4c8
PA
90992019-06-13 Pedro Alves <palves@redhat.com>
9100
9101 * cli/cli-setshow.c (parse_auto_binary_operation)
9102 (parse_cli_boolean_value): Don't allow "o".
9103
dca0f6c0
PA
91042019-06-13 Pedro Alves <palves@redhat.com>
9105
9106 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9107 * NEWS: Mention maint test-settings KIND.
9108 * maint-test-settings.c: New file.
9109
597bf39d
PA
91102019-06-13 Pedro Alves <palves@redhat.com>
9111
9112 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9113 completer.
9114 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9115 "set" completers.
9116
48c410fb
PA
91172019-06-13 Pedro Alves <palves@redhat.com>
9118
9119 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9120 after item.
9121
93bcb043
PA
91222019-06-13 Pedro Alves <palves@redhat.com>
9123
9124 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9125
cbba3ecd
PA
91262019-06-13 Pedro Alves <palves@redhat.com>
9127
9128 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9129 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9130 call.
9131 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9132 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9133 calls.
9134 (check_for_argument): Skip spaces after argument.
9135
b9a3f842
PA
91362019-06-13 Pedro Alves <palves@redhat.com>
9137
9138 * thread.c (thread_apply_command): Adjust TID parsing.
9139 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9140 detected before end of string.
9141 (tid_is_in_list): Error out if LIST is invalid.
9142
3844e605
PA
91432019-06-13 Pedro Alves <palves@redhat.com>
9144
9145 * completer.c (complete_line_internal_1): Rewind completion word
9146 point.
9147 (completion_tracker::advance_custom_word_point_by): Change
9148 parameter type to int.
9149 * completer.h (completion_tracker::advance_custom_word_point_by):
9150 Likewise.
9151
00b56dbe
PA
91522019-06-13 Pedro Alves <palves@redhat.com>
9153
9154 * completer.c (advance_to_completion_word): Handle delimiters.
9155
d106773e
PA
91562019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9157
9158 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9159
08f10e02
TT
91602019-06-11 Tom Tromey <tom@tromey.com>
9161
9162 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9163 (xmalloc_failed): Move to alloc.c.
9164 * alloc.c: New file.
9165 * Makefile.in (COMMON_SFILES): Add alloc.c.
9166
1c7fe951
TT
91672019-06-11 Tom Tromey <tom@tromey.com>
9168
9169 * nat/linux-waitpid.c: Don't include server.h.
9170 (linux_debug): Remove.
9171 (my_waitpid): Update.
9172
89549d7f
TT
91732019-06-11 Tom Tromey <tromey@adacore.com>
9174
9175 * infcall.c (_initialize_infcall): Remove trailing newline from
9176 help.
9177 * user-regs.c (_initialize_user_regs): Remove trailing newline
9178 from help.
9179 * typeprint.c (_initialize_typeprint): Remove trailing newline
9180 from help.
9181 * reverse.c (_initialize_reverse): Remove trailing newlines from
9182 help.
9183 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9184 from help.
9185 * language.c (add_set_language_command): Remove trailing newline
9186 from help.
9187 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9188 help.
9189 * disasm.c (_initialize_disasm): Remove trailing newline from
9190 help.
9191 * top.c (init_main): Remove trailing newline from help.
9192 * interps.c (_initialize_interpreter): Remove trailing newline
9193 from help.
9194 * btrace.c (_initialize_btrace): Remove trailing newlines from
9195 help.
9196 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9197 from help.
9198 * python/python.c (_initialize_python): Remove trailing newline
9199 from help.
9200 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9201 help.
9202 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9203 from help. Reformat some text.
9204 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9205 from help.
9206 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9207 newline from help.
9208
86108c13
TT
92092019-06-11 Tom Tromey <tromey@adacore.com>
9210
9211 * darwin-nat.c (darwin_decode_exception_message)
9212 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9213
a7067863
AB
92142019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9215
9216 * valops.c (value_slice): Check for not allocated or not
9217 associated values.
9218
9ab08412
TV
92192019-06-10 Tom de Vries <tdevries@suse.de>
9220
9221 PR gdb/24618
9222 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9223 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9224 invalid.
9225
f19e22e9
TV
92262019-06-10 Tom de Vries <tdevries@suse.de>
9227
9228 PR gdb/24611
9229 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9230 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9231
e99f9db0
TV
92322019-06-10 Tom de Vries <tdevries@suse.de>
9233
9234 PR symtab/24545
9235 * symtab.c (struct demangled_name_entry): Add language field.
9236 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9237 static minimal symbol". Set and use language field.
9238
9bf7038b
TT
92392019-06-10 Tom Tromey <tromey@adacore.com>
9240
9241 * ada-lang.c (_initialize_ada_language): Update help text.
9242
422186a9
TT
92432019-06-10 Tom Tromey <tromey@adacore.com>
9244
9245 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9246 with a newline.
9247 * guile/guile.c (handle_boot_error): Don't end warning with a
9248 newline.
9249 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9250 warning with a newline.
9251 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9252 newline.
9253 (s12z_frame_cache): Likewise.
9254 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9255 a newline.
9256 * solib-svr4.c (disable_probes_interface): Don't end warning with
9257 a newline.
9258 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9259 newline.
9260 * python/python.c (do_finish_initialization): Don't end warning
9261 with a newline.
9262
25ce02ee
TT
92632019-06-10 Tom Tromey <tom@tromey.com>
9264
9265 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9266 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9267 gdbpy_enter.
9268
caa429d8
TT
92692019-06-10 Tom Tromey <tromey@adacore.com>
9270
9271 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9272 data.
9273 (elf_new_init): Don't call stabsread_new_init.
9274 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9275 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9276 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9277
81873cc8
TV
92782019-06-10 Tom de Vries <tdevries@suse.de>
9279
9280 PR symtab/16264
9281 PR symtab/24517
9282 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9283
4fa0265e
РИ
92842019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9285
9286 * source.c (find_and_open_source): Also rewrite relative file
9287 names.
9288
1a3da2cd
AB
92892019-04-26 Amos Bird <amosbird@gmail.com>
9290
9291 * annotate.c (annotate_thread_exited): Add "thread-exited"
9292 annotation.
9293
3847a7bf
TT
92942019-06-06 Tom Tromey <tromey@adacore.com>
9295
9296 * maint.h (class scoped_command_stats): Use
9297 DISABLE_COPY_AND_ASSIGN.
9298 <print_time>: New method.
9299 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9300 print_time.
9301 (scoped_command_stats::print_time): New method.
9302
312617a3
AB
93032019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9304
9305 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9306 instructions of lengths 6 or 8 bytes.
9307
b02f78f9
PA
93082019-06-04 Pedro Alves <palves@redhat.com>
9309
9310 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9311
9312 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9313 * breakpoint.c (condition_completer): Likewise.
9314 * cli/cli-dump.c (scan_expression): Likewise.
9315 * common/filestuff.c (mkdir_recursive): Likewise.
9316 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9317 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9318 (gdb_abspath): Likewise.
9319 * compile/compile-cplus-types.c
9320 (compile_cplus_instance::decl_name): Likewise.
9321 * completer.c (complete_explicit_location):
9322 (signal_completer, reg_or_group_completer_1): Likewise.
9323 * cp-support.c (cp_remove_params_if_any): Likewise.
9324 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9325 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9326 * infcmd.c (strip_bg_char): Likewise.
9327 * linespec.c (copy_token_string): Likewise.
9328 * mi/mi-main.c (output_cores): Likewise.
9329 * psymtab.c (psymtab_search_name):
9330 * symfile.c (test_set_ext_lang_command): Likewise.
9331 * target.c (target_fileio_read_stralloc): Likewise.
9332 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9333 * value.c (complete_internalvar): Likewise.
9334
e1f2e1a2
CB
93352019-06-04 Christian Biesinger <cbiesinger@google.com>
9336
9337 Add objfile property to gdb.Type.
d3238f7d
PA
9338 * NEWS: Mention Python API addition.
9339 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9340
e664d728
PW
93412019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9342
9343 * NEWS: Mention the new set|show style [title|highlight].
9344 Mention changes to "show style", "help" and "apropos".
9345
66d8c862
PW
93462019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9347
9348 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9349 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9350 instead of print_help_for_command.
9351 (print_doc_of_command): New function.
9352 (help_list): Add 'apropos -v word' suggestion.
9353 (print_help_for_command): Style the command name using title style.
9354 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9355 (_initialize_cli_cmds): Describe -v in apropos_command help.
9356
9303eb2f
PW
93572019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9358
9359 * cli/cli-style.h (cli_style_option): Add name in constructor,
9360 add m_name class member, add constructor with intensity,
9361 add name class function.
9362 (cli_style_option::add_setshow_commands): Remove name argument.
9363 (highlight_style, title_style): New styles.
9364 * cli/cli-style.c (do_show): New function that shows a style
9365 characteristic styling the style name with itself.
9366 (set_style_name): New function.
9367 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9368 Update all callers according to the changes in cli/cli-style.h.
9369 * utils.h (fputs_highlighted): New function.
9370 * utils.c (fputs_highlighted): Likewise.
9371
e2c52041
PW
93722019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9373
9374 * NEWS: Mention new pipe command and new convenience variables.
9375
947d3946
PW
93762019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9377
9378 * cli/cli-cmds.c (pipe_command): New function.
9379 (_initialize_cli_cmds): Call add_com for pipe_command.
9380 Define | as an alias for pipe.
9381 (exit_status_set_internal_vars): New function.
9382 (shell_escape): Call exit_status_set_internal_vars.
9383 cli/cli-decode.c (find_command_name_length): Recognize | as
9384 a single character command.
9385
b8fd0918
PW
93862019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9387
9388 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9389 top.c (execute_command_to_ui_file): New function, mostly a copy
9390 of execute_command_to_string.
9391 (execute_command_to_string): Implement by calling
9392 execute_command_to_ui_file.
9393
68bb5386
PW
93942019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9395
9396 * top.h (saved_command_line): Remove declaration.
9397 * top.c (previous_saved_command_line, previous_repeat_arguments):
9398 New variables.
9399 (saved_command_line): Make static, define together with other
9400 'repeat variables'.
9401 (dont_repeat): Clear repeat_arguments.
9402 (repeat_previous, get_saved_command_line, save_command_line):
9403 New functions.
9404 (gdb_init): Initialize saved_command_line
9405 and previous_saved_command_line.
9406 * main.c (captured_main_1): Remove saved_command_line initialization.
9407 * event-top.c (handle_line_of_input): Update to use
9408 the new 'repeat' related functions instead of direct access to
9409 saved_command_line.
9410 * command.h (repeat_previous, get_saved_command_line,
9411 save_command_line): New declarations.
9412 (dont_repeat): Add comment.
9413
bfcdb852
TT
94142019-05-30 Tom Tromey <tromey@adacore.com>
9415
9416 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9417 Fix comment.
9418 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9419
0ef209f2
JV
94202019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9421
9422 PR cli/24587
9423 * completer.c (complete): Initialize variable word.
9424
955b06fa
SDJ
94252019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9426
9427 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9428 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9429 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9430 'body' is NULL to the outter 'if', protecting the '!is_define'
9431 situation as well.
9432
fa9c3fa0
TT
94332019-05-29 Tom Tromey <tromey@adacore.com>
9434
9435 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9436 (dwarf_unknown): New function.
9437 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9438 (dwarf_type_encoding_name): Use dwarf_unknown.
9439
4330d61d
TT
94402019-05-29 Tom Tromey <tromey@adacore.com>
9441
9442 PR c++/20020:
9443 * cp-valprint.c (cp_print_value_fields): Call
9444 cp_print_static_field inside "try".
9445
33a6bc35
TT
94462019-05-29 Tom Tromey <tromey@adacore.com>
9447
9448 * inflow.c (struct terminal_info): Add default operator=.
9449 * configure: Rebuild.
9450 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9451 -Wdeprecated-copy-dtor, -Wredundant-move.
9452
000439d5
TT
94532019-05-29 Tom Tromey <tromey@adacore.com>
9454
9455 * NEWS: Add entry.
9456 * infcmd.c (print_return_value_1): Handle finish_print
9457 option.
9458 (show_print_finish): New function.
9459 (_initialize_infcmd): Add "set/show print finish" commands.
9460 * valprint.c (user_print_options): Initialize new member.
9461 * valprint.h (struct value_print_options) <finish_print>: New
9462 member.
9463
c0e70c62
TT
94642019-05-28 Tom Tromey <tromey@adacore.com>
9465
9466 * ada-lang.c (ada_remove_Xbn_suffix)
9467 (find_old_style_renaming_symbol)
9468 (parse_old_style_renaming): Remove.
9469 (ada_find_renaming_symbol): Don't call
9470 find_old_style_renaming_symbol.
9471 (ada_is_renaming_symbol): Rename from
9472 ada_find_renaming_symbol. Remove "block" parameter. Return
9473 bool. Now static.
9474 (ada_read_var_value): Update and simplify.
9475 * ada-exp.y (write_var_or_type): Remove old code.
9476
766f8836
AH
94772019-05-28 Alan Hayward <alan.hayward@arm.com>
9478
68255adc 9479 PR gdb/25010
766f8836
AH
9480 * event-top.c: Remove include comment.
9481 * inflow.c (class scoped_ignore_sigttou): Move from here...
9482 * inflow.h (class scoped_ignore_sigttou): ...to here.
9483 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9484 * top.c: Remove include comment.
9485
eb41253a
TT
94862019-05-27 Tom Tromey <tom@tromey.com>
9487
9488 * NEWS: Fix typo.
9489
4ca51187
TT
94902019-05-22 Tom Tromey <tromey@adacore.com>
9491
9492 * target.c (target_follow_exec): Constify parameter.
9493 * target-delegates.c: Rebuild.
9494 * remote.c (remote_target::follow_exec): Constify parameter.
9495 * infrun.c (follow_exec): Constify parameter.
9496 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9497 (target_follow_exec): Likewise.
9498
8fca4da0
AH
94992019-05-22 Alan Hayward <alan.hayward@arm.com>
9500
9501 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9502 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9503
b7060614
AH
95042019-05-22 Alan Hayward <alan.hayward@arm.com>
9505
9506 * NEWS: Add debugredirect and testsuite sections.
9507
0a5954bd
SC
95082019-05-22 Simon Cook <simon.cook@embecosm.com>
9509
9510 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9511 target descriptions using exclusively floating point register name
9512 aliases.
9513
dc42e902
AB
95142019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9515
9516 PR gdb/18644:
9517 * f-lang.c (build_fortran_types): Handle the case where
9518 gdbarch_floatformat_for_type returns a nullptr.
9519
fb7806c7
TV
95202019-05-21 Tom de Vries <tdevries@suse.de>
9521
9522 PR cli/24587
9523 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9524
34d11c68
AB
95252019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9526
9527 PR gdb/18644:
9528 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9529 16-byte floats.
9530 * i386-tdep.c (i386_floatformat_for_type): Use
9531 floatformats_ia64_quad for the 16-byte floating point component
9532 within a fortran 32-byte complex number.
9533
122cf0f2
AB
95342019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9535
9536 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9537 delete default constructor.
9538 (find_partial_die): Update to return const struct.
9539 (partial_die_parent_scope): Move variable declaration into scope
9540 of its use and change its type to auto.
9541 (guess_partial_die_structure_name): Likewise.
9542 (partial_die_info::fixup): Likewise.
9543
33d0e35a
TT
95442019-05-17 Tom Tromey <tromey@adacore.com>
9545
9546 * source.c (find_and_open_source): Remove cast.
9547
a45575b0
TT
95482019-05-17 Tom Tromey <tromey@adacore.com>
9549
9550 * annotate.c (annotate_source): Make "filename" const.
9551 * annotate.h (annotate_source): Use const.
9552
81f47ac2
AH
95532019-05-17 Alan Hayward <alan.hayward@arm.com>
9554
9555 * disasm.c (set_disassembler_options): Send errors to stderr.
9556
ca1285d1
AH
95572019-05-17 Alan Hayward <alan.hayward@arm.com>
9558
9559 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9560 (cli_interp_base::set_logging): Check debug_redirect.
9561 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9562 * cli/cli-logging.c (debug_redirect): Add static variable.
9563 (pop_output_files): Add default param.
9564 (handle_redirections): Print debug setting.
9565 (show_logging_command): Likewise.
9566 (_initialize_cli_logging): Add debugredirect command.
9567 * interps.c (current_interp_set_logging): Add debug_redirect
9568 parameter.
9569 * interps.h (set_logging): Add debug_redirect parameter.
9570 (current_interp_set_logging): Likewise.
9571 * mi/mi-common.h: Likewise.
9572 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9573
95742019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9575 Tom Tromey <tromey@adacore.com>
9576
9577 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9578 directly.
9579 * cli/cli-interp.h (make_logging_output): Remove declaration.
9580 * cli/cli-logging.c (make_logging_output): Remove function.
9581 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9582 directly.
9583 * ui-file.c (tee_file::tee_file): Remove bools.
9584 (tee_file::~tee_file): Remove deletes.
9585 * ui-file.h (tee_file): Remove bools.
9586
26648588
JV
95872019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9588
9589 * mi/mi-cmds.h (mi_cmd_complete): New function.
9590 * mi/mi-main.c (mi_cmd_complete): Likewise.
9591 * mi/mi-cmds.c: Define new MI command -complete.
9592 * NEWS: Mention new -complete command.
9593
6e035501
JV
95942019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9595
9596 * completer.h (complete): New function.
9597 * completer.c (complete): Likewise.
9598 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9599 function defined in completer.h.
9600
7d0e2ece
JV
96012019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9602
e79be6e5 9603 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9604
fb816e8b
TV
96052019-05-17 Tom de Vries <tdevries@suse.de>
9606
9607 PR gdb/24094
9608 * dwarf2read.c (struct cu_partial_die_info): New struct.
9609 (find_partial_die): Return cu_partial_die_info.
9610 (partial_die_parent_scope, guess_partial_die_structure_name)
9611 (partial_die_info::fixup): Handle new return type of find_partial_die.
9612
677052f2
SDJ
96132019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9614
a1726c38 9615 PR breakpoints/24541
677052f2
SDJ
9616 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9617 "std::string", simplifying the algorithm.
9618
f3da9116
SDJ
96192019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9620
9621 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9622 (stap_static_probe_ops::get_probes): Likewise.
9623
f1bb75ab
SDJ
96242019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9625
9626 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9627 '-')" and "else if".
9628 (stap_parse_single_operand): Join checks for
9629 "gdbarch_stap_parse_special_token_p" and
9630 "gdbarch_stap_parse_special_token" in the same "if" statement.
9631 Invert check when verifying for operation on register
9632 displacement.
9633
3ca58cde
SDJ
96342019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9635
9636 * stap-probe.c (stap_get_opcode): Update comment.
9637 (stap_get_expected_argument_type): Likewise.
9638 (handle_stap_probe): Likewise.
9639
af2d9bee
SDJ
96402019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9641
9642 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9643 return type to 'bool'. Adjust comment. Use 'bool' when
9644 appropriate.
9645 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9646 * stap-probe.c (stap_parse_argument_1): Likewise.
9647 (stap_is_operator): Likewise.
9648 (stap_is_generic_prefix): Likewise.
9649 (stap_is_register_prefix): Likewise.
9650 (stap_is_register_indirection_prefix): Likewise.
9651 (stap_is_integer_prefix): Likewise.
9652 (stap_generic_check_suffix): Likewise.
9653 (stap_check_integer_suffix): Likewise.
9654 (stap_check_register_suffix): Likewise.
9655 (stap_check_register_indirection_suffix): Likewise.
9656 (stap_parse_register_operand): Likewise.
9657 (stap_parse_single_operand): Likewise.
9658 (stap_parse_argument_1): Likewise.
9659 (stap_probe::get_argument_count): Likewise.
9660 (stap_is_operator): Likewise.
9661
61c9c421
TT
96622019-05-16 Tom Tromey <tromey@adacore.com>
9663
9664 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9665 keyword to foreach.
9666
9ddc1af1
SM
96672019-05-15 Simon Marchi <simon.marchi@efficios.com>
9668
9669 * linux-thread-db.c (try_thread_db_load_1): Change return type
9670 to bool.
9671 (try_thread_db_load): Likewise.
9672 (try_thread_db_load_from_pdir_1): Likewise.
9673 (try_thread_db_load_from_pdir): Likewise.
9674 (try_thread_db_load_from_sdir): Likewise.
9675 (try_thread_db_load_from_dir): Likewise.
9676 (thread_db_load_search): Likewise.
9677 (has_libpthread): Likewise.
9678 (thread_db_load): Likewise.
9679
7bede828
SDJ
96802019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9681
9682 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9683 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9684 NULL, and complain/return if that's the case.
9685
c5358db4
JD
96862019-05-15 John Darrington <john@darrington.wattle.id.au>
9687
9688 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9689 (advance, posn, abstract_read_memory): New functions.
9690 [struct mem_read_abstraction]: New struct.
9691 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9692
c408a94f
TT
96932019-05-14 Tom Tromey <tromey@adacore.com>
9694
9695 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9696 value is not lval_memory.
9697
e7bd7fba
TT
96982019-05-14 Tom Tromey <tromey@adacore.com>
9699
9700 * solib.c (info_sharedlibrary_command): Style the file name.
9701
a6d0f249
AH
97022019-05-14 Alan Hayward <alan.hayward@arm.com>
9703
9704 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9705 (aarch64_vnv_type): Likewise.
9706 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9707 * common/tdesc.c: Likewise.
9708 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9709 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9710 * features/aarch64-fpu.xml: Add ieee half view.
9711 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9712 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9713 * gdbtypes.h (struct builtin_type): Likewise.
9714 (struct objfile_type): Likewise.
9715
66b8bb74
SM
97162019-05-12 Paul Naert <paul.naert@polymtl.ca>
9717
9718 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9719 typo.
9720 * location.h (string_to_event_location): Likewise.
9721
21c219fd
JB
97222019-05-11 Joel Brobecker <brobecker@adacore.com>
9723
9724 GDB 8.3 released.
9725
13674803
SM
97262019-05-10 Simon Marchi <simon.marchi@efficios.com>
9727
9728 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9729 New variable declaration.
9730 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9731 New variable.
9732 (print_one_breakpoint): Use ui_out::test_flags and new global
9733 variable to compute use_fixed_output.
9734 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9735 Remove.
9736 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9737 (mi_multi_location_breakpoint_output_fixed): Remove.
9738 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9739 new variable.
9740 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9741 fix_multi_location_breakpoint_output flag if version >= 3.
9742 * ui-out.h (enum ui_out_flag)
9743 <fix_multi_location_breakpoint_output>: New enumerator.
9744
a9eac7f9
SM
97452019-05-10 Simon Marchi <simon.marchi@efficios.com>
9746
9747 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9748
71bed2db
TT
97492019-05-10 Tom Tromey <tromey@adacore.com>
9750
9751 * ada-lang.c (catch_ada_completer): New function.
9752 (_initialize_ada_language): Use it.
9753
24c54127
TT
97542019-05-10 Tom Tromey <tromey@adacore.com>
9755
9756 * thread.c (print_thread_info): Make "requested_threads" const.
9757 * gdbthread.h (print_thread_info): Make "requested_threads"
9758 const.
9759 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9760 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9761
7a102139
TT
97622019-05-08 Tom Tromey <tom@tromey.com>
9763
9764 * gdbtypes.c (objfile_type_data): Change type.
9765 (objfile_type, _initialize_gdbtypes): Update.
9766
924d79e2
TT
97672019-05-08 Tom Tromey <tom@tromey.com>
9768
9769 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9770 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9771 (_initialize_dwarf2_frame): Update.
9772
4c58e337
TT
97732019-05-08 Tom Tromey <tom@tromey.com>
9774
9775 * objc-lang.c (objc_objfile_data): Change type.
9776 (find_methods): Update.
9777 (_initialize_objc_lang): Remove.
9778
d772d2ab
TT
97792019-05-08 Tom Tromey <tom@tromey.com>
9780
9781 * stabsread.c (rs6000_builtin_type_data): Change type.
9782 (rs6000_builtin_type, _initialize_stabsread): Update.
9783
d11d83f4
TT
97842019-05-08 Tom Tromey <tom@tromey.com>
9785
9786 * mips-tdep.c (mips_pdr_data): Remove.
9787 (_initialize_mips_tdep): Update.
9788
9a73f0ad
TT
97892019-05-08 Tom Tromey <tom@tromey.com>
9790
9791 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9792 (hppa_init_objfile_priv_data, read_unwind_info)
9793 (find_unwind_entry, _initialize_hppa_tdep): Update.
9794
8127a2fa
TT
97952019-05-08 Tom Tromey <tom@tromey.com>
9796
9797 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9798 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9799 on obstack.
9800 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9801
91d3055d
TT
98022019-05-08 Tom Tromey <tom@tromey.com>
9803
9804 * mdebugread.c (basic_type_data): Change type.
9805 (basic_type, _initialize_mdebugread): Update.
9806
31930bd3
TT
98072019-05-08 Tom Tromey <tom@tromey.com>
9808
9809 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9810
bdb3ed9e
TT
98112019-05-08 Tom Tromey <tom@tromey.com>
9812
9813 * nto-tdep.c (nto_inferior_data_reg): Change type.
9814 (nto_inferior_data): Update.
9815 (nto_inferior_data_cleanup, nto_new_inferior_data)
9816 (_initialize_nto_tdep): Remove.
9817 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9818
f37b313d
TT
98192019-05-08 Tom Tromey <tom@tromey.com>
9820
9821 * ada-lang.c (struct ada_inferior_data): Add initializers.
9822 (ada_inferior_data): Change type.
9823 (ada_inferior_data_cleanup): Remove.
9824 (get_ada_inferior_data, ada_inferior_exit)
9825 (struct ada_pspace_data): Add initializers, destructor.
9826 (ada_pspace_data_handle): Change type.
9827 (get_ada_pspace_data): Update.
9828 (ada_pspace_data_cleanup): Remove.
9829
24699405
TT
98302019-05-08 Tom Tromey <tom@tromey.com>
9831
9832 * coffread.c (struct coff_symfile_info): Add initializers.
9833 (coff_objfile_data_key): Move lower. Change type.
9834 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9835 Update.
9836 (coff_free_info): Remove.
9837
d4e05d2f
TT
98382019-05-08 Tom Tromey <tom@tromey.com>
9839
9840 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9841 (fbsd_pspace_data_handle): Move lower. Change type.
9842 (get_fbsd_pspace_data): Update.
9843 (fbsd_pspace_data_cleanup): Remove.
9844 (_initialize_fbsd_tdep): Update.
9845
14ef6690
TT
98462019-05-08 Tom Tromey <tom@tromey.com>
9847
9848 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9849 (get_ada_tasks_pspace_data): Update.
9850 (ada_tasks_pspace_data_cleanup): Remove.
9851 (_initialize_tasks): Update.
9852 (ada_tasks_inferior_data_handle): Change type.
9853 (get_ada_tasks_inferior_data): Update.
9854 (ada_tasks_inferior_data_cleanup): Remove.
9855 (struct ada_tasks_pspace_data): Add initializers.
9856
814cf43a
TT
98572019-05-08 Tom Tromey <tom@tromey.com>
9858
9859 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9860 * symfile-debug.c (debug_sym_get_probes): Change type.
9861 * stap-probe.c (handle_stap_probe):
9862 (stap_static_probe_ops::get_probes): Change type.
9863 * probe.h (class static_probe_ops) <get_probes>: Change type.
9864 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9865 (parse_probes_in_pspace): Update.
9866 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9867 Update.
9868 (any_static_probe_ops::get_probes): Change type.
9869 * elfread.c (elfread_data): New typedef.
9870 (probe_key): Change type.
9871 (elf_get_probes): Likewise. Update.
9872 (probe_key_free): Remove.
9873 (_initialize_elfread): Update.
9874 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9875 Change type.
9876 (dtrace_process_dof_probe, dtrace_process_dof)
9877 (dtrace_static_probe_ops::get_probe): Change type.
9878
02dc647e
TT
98792019-05-08 Tom Tromey <tom@tromey.com>
9880
9881 * xcoffread.c (struct xcoff_symfile_info): Rename from
9882 coff_symfile_info. Add initializers.
9883 (xcoff_objfile_data_key): Move lower. Change type.
9884 (XCOFF_DATA): Rewrite.
9885 (xcoff_free_info): Remove.
9886 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9887 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9888 (xcoff_initial_scan): Update.
9889
09232438
TT
98902019-05-08 Tom Tromey <tom@tromey.com>
9891
9892 * solib-svr4.c (struct svr4_info): Add initializers and
9893 destructor.
9894 <probes_table>: Now an htab_up.
9895 (solib_svr4_pspace_data): Change type.
9896 (free_probes_table): Simplify.
9897 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9898 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9899 (probes_table_remove_objfile_probes, register_solib_event_probe)
9900 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9901 (_initialize_svr4_solib): Update.
9902
7b4a314f
TT
99032019-05-08 Tom Tromey <tom@tromey.com>
9904
9905 * remote.c (remote_pspace_data): Change type.
9906 (remote_pspace_data_cleanup): Remove.
9907 (get_remote_exec_file, set_pspace_remote_exec_file)
9908 (_initialize_remote): Update.
9909
51d3063a
TT
99102019-05-08 Tom Tromey <tom@tromey.com>
9911
9912 * breakpoint.c (breakpoint_objfile_key): Change type.
9913 (get_breakpoint_objfile_data): Update.
9914 (free_breakpoint_objfile_data): Remove.
9915 (_initialize_breakpoint): Update.
9916
89fb8848
TT
99172019-05-08 Tom Tromey <tom@tromey.com>
9918
9919 * linux-tdep.c (struct linux_info): Add initializers.
9920 (linux_inferior_data): Move. Change type.
9921 (invalidate_linux_cache_inf): Update.
9922 (linux_inferior_data_cleanup): Remove.
9923 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9924
e9b89e2d
TT
99252019-05-08 Tom Tromey <tom@tromey.com>
9926
9927 * auxv.c (auxv_inferior_data): Move. Change type.
9928 (auxv_inferior_data_cleanup): Remove.
9929 (invalidate_auxv_cache_inf): Rewrite.
9930 (get_auxv_inferior_data, _initialize_auxv): Update.
9931
8c42777c
TT
99322019-05-08 Tom Tromey <tom@tromey.com>
9933
9934 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9935 (symfile_debug_objfile_data_key): Change type.
9936 (symfile_debug_installed, debug_qf_has_symbols)
9937 (debug_qf_find_last_source_symtab)
9938 (debug_qf_forget_cached_source_info)
9939 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9940 (debug_qf_print_stats, debug_qf_dump)
9941 (debug_qf_expand_symtabs_for_function)
9942 (debug_qf_expand_all_symtabs)
9943 (debug_qf_expand_symtabs_with_fullname)
9944 (debug_qf_map_matching_symbols)
9945 (debug_qf_expand_symtabs_matching)
9946 (debug_qf_find_pc_sect_compunit_symtab)
9947 (debug_qf_map_symbol_filenames)
9948 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9949 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9950 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9951 (debug_sym_read_linetable, debug_sym_relocate): Update.
9952 (symfile_debug_free_objfile): Remove.
9953 (install_symfile_debug_logging, _initialize_symfile_debug):
9954 Update.
9955
5bfd760d
TT
99562019-05-08 Tom Tromey <tom@tromey.com>
9957
9958 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9959 allocate_on_obstack.
9960 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9961 (get_dwarf2_per_objfile): Update.
9962 (set_dwarf2_per_objfile): Remove.
9963 (dwarf2_has_info, dwarf2_get_section_info): Update.
9964 (dwarf2_free_objfile): Remove.
9965 (_initialize_dwarf2_read): Update.
9966
e85e19b4
TT
99672019-05-08 Tom Tromey <tom@tromey.com>
9968
9969 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9970 initializers.
9971 <unsupported_script_warning_printed,
9972 script_not_found_warning_printed>: Now bool.
9973 (auto_load_pspace_data): Change type.
9974 (~auto_load_pspace_info): Rename from
9975 auto_load_pspace_data_cleanup.
9976 (get_auto_load_pspace_data, init_loaded_scripts_info)
9977 (clear_section_scripts, maybe_print_unsupported_script_warning)
9978 (maybe_print_script_not_found_warning, _initialize_auto_load):
9979 Update.
9980
f6aa7436
TT
99812019-05-08 Tom Tromey <tom@tromey.com>
9982
9983 * objfiles.c (objfile_pspace_info): Add destructor and
9984 initializers.
9985 (objfiles_pspace_data): Change type.
9986 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
9987 (get_objfile_pspace_data): Update.
9988 (objfiles_bfd_data): Change type.
9989 (get_objfile_bfd_data): Update.
9990 (objfile_bfd_data_free, _initialize_objfiles): Remove.
9991
6ae614f6
TT
99922019-05-08 Tom Tromey <tom@tromey.com>
9993
9994 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
9995 Change type.
9996 (get_catch_syscall_inferior_data): Update.
9997 (catch_syscall_inferior_data_cleanup): Remove.
9998 (_initialize_break_catch_syscall): Update.
9999
6509b8eb
TT
100002019-05-08 Tom Tromey <tom@tromey.com>
10001
10002 * inflow.c (struct terminal_info): Add destructor and
10003 initializers.
10004 (inflow_inferior_data): Change type.
10005 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10006 (get_inflow_inferior_data, inflow_inferior_exit)
10007 (swap_terminal_info, _initialize_inflow): Update.
10008
35632941
TT
100092019-05-08 Tom Tromey <tom@tromey.com>
10010
10011 * target-dcache.c (target_dcache_cleanup): Remove.
10012 (target_dcache_aspace_key): Change type.
10013 (target_dcache_init_p, target_dcache_invalidate)
10014 (target_dcache_get, target_dcache_get_or_init)
10015 (_initialize_target_dcache): Update.
10016 * dcache.h (struct dcache_deleter): New.
10017
3017b94d
TT
100182019-05-08 Tom Tromey <tom@tromey.com>
10019
10020 * symtab.c (struct symbol_cache): Add destructor and
10021 initializers.
10022 (symbol_cache_key): Move. Change type.
10023 (make_symbol_cache, free_symbol_cache): Remove.
10024 (get_symbol_cache): Update.
10025 (symbol_cache_cleanup): Remove.
10026 (ALL_PSPACES, symbol_cache_flush)
10027 (maintenance_print_symbol_cache)
10028 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10029 Update.
10030
a32ad8c5
TT
100312019-05-08 Tom Tromey <tom@tromey.com>
10032
10033 * symtab.c (struct main_info): Add destructor and initializers.
10034 (main_progspace_key): Move. Change type.
10035 (get_main_info): Update.
10036 (main_info_cleanup): Remove.
10037 (_initialize_symtab): Update.
10038
5f6e90a0
TT
100392019-05-08 Tom Tromey <tom@tromey.com>
10040
10041 * registry.h (DECLARE_REGISTRY): Define the _key class.
10042
1bd0c6e4
AB
100432019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10044
10045 * NEWS: Merge two 'New commands' sections.
10046
2228ef77
XR
100472019-05-08 Joel Brobecker <brobecker@adacore.com>
10048
10049 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10050 parameter and use Ada language definition instead.
10051 (ada_val_print_ptr): Remove unused language parameter.
10052 (ada_val_print_num): Remove language parameter and use Ada language
10053 definition instead.
10054 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10055 parameter.
10056 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10057 parameter and use Ada language definition instead.
10058 (ada_val_print_1): Update all ada_val_print_xxx calls.
10059 Remove language parameter.
10060 (ada_val_print): Update ada_val_print_1 call.
10061
60fcc1c3
TT
100622019-05-08 Tom Tromey <tromey@adacore.com>
10063
10064 * remote.c (remote_hw_watchpoint_limit)
10065 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10066 Now static.
10067
ed2b7c17
TT
100682019-05-08 Tom Tromey <tromey@adacore.com>
10069
10070 * maint.c (_initialize_maint_cmds): Move initialization code to
10071 remote.c.
10072 (watchdog, show_watchdog): Move to remote.c.
10073 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10074 "watchdog" static.
10075 (_initialize_remote): Move initialization code from maint.c.
10076 * defs.h (watchdog): Don't declare.
10077
b0be6c91
TT
100782019-05-08 Tom Tromey <tromey@adacore.com>
10079
10080 * tui/tui-interp.c: Include main.h.
10081 * interps.c: Include main.h.
10082 * main.h (interpreter_p): Declare.
10083 * defs.h (interpreter_p): Don't declare.
10084
587ee17b
TT
100852019-05-08 Tom Tromey <tromey@adacore.com>
10086
10087 * dwarf2loc.c: Include dwarf2read.h.
10088 * defs.h (read_unsigned_leb128): Don't declare.
10089 * dwarf2read.h (read_unsigned_leb128): Declare.
10090
ca1df239
TT
100912019-05-08 Tom Tromey <tromey@adacore.com>
10092
10093 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10094 method.
10095
99f20f08
TT
100962019-05-08 Tom Tromey <tromey@adacore.com>
10097
10098 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10099 when no wrap column is set.
10100
80e55b13
TT
101012019-05-08 Tom Tromey <tromey@adacore.com>
10102
10103 * c-lang.c (c_get_string): Handle non-C-style arrays.
10104
9d3421af
TT
101052019-05-08 Tom Tromey <tromey@adacore.com>
10106
10107 * typeprint.c (print_offset_data::update): Print the bit offset,
10108 not the number of bits remaining.
10109
844333e2
TT
101102019-05-08 Tom Tromey <tromey@adacore.com>
10111
10112 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10113 padding at end of comment.
10114
988915ee
TT
101152019-05-08 Tom Tromey <tromey@adacore.com>
10116
10117 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10118 Compare main types.
10119
26bfd823
TT
101202019-05-06 Tom Tromey <tom@tromey.com>
10121
10122 * common/scoped_mmap.c: Include common-defs.h.
10123 * common/scoped_mmap.h: Don't include config.h.
10124
89055eaa
TT
101252019-05-04 Tom Tromey <tom@tromey.com>
10126
10127 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10128 (struct aarch64_call_info): Add initializers.
10129 <si>: Now a std::vector.
10130 (pass_on_stack, aarch64_push_dummy_call): Update.
10131
5da01df5
TT
101322019-05-04 Simon Marchi <simon.marchi@efficios.com>
10133 Tom Tromey <tom@tromey.com>
10134
10135 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10136 (ppc_threads): Now a std::vector. Now static.
10137 (hwdebug_find_thread_points_by_tid)
10138 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10139 Update.
10140
fbdf05a1
TT
101412019-05-04 Tom Tromey <tom@tromey.com>
10142
10143 * arc-tdep.c (arc_tdesc_init): Return bool.
10144
06d16ec9
TT
101452019-05-04 Tom Tromey <tom@tromey.com>
10146
10147 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10148 Use gdb_assert_not_reached.
10149
9c056022
TT
101502019-05-04 Tom Tromey <tom@tromey.com>
10151
10152 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10153 "false".
10154
fa9c2a59
TT
101552019-05-04 Tom Tromey <tom@tromey.com>
10156
10157 * arc-tdep.c (arc_tdesc_init): Use bool.
10158
e2eb806a
TT
101592019-05-04 Tom Tromey <tom@tromey.com>
10160
10161 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10162
6fe87677
TT
101632019-05-04 Tom Tromey <tom@tromey.com>
10164
10165 * cli/cli-cmds.c (valid_command_p): Return bool.
10166
7f008c9e
TT
101672019-05-04 Tom Tromey <tom@tromey.com>
10168
10169 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10170 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10171
b6484282
RT
101722019-05-04 Raul Tambre <raul@tambre.ee>
10173
10174 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10175 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10176 operator for comparison.
10177
af97b416
TT
101782019-05-04 Tom Tromey <tom@tromey.com>
10179
10180 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10181 (lookup_partial_symbol, print_partial_symbols)
10182 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10183 (psymbol_compare): Update.
10184 (add_psymbol_to_bcache): Clear the entire psymbol.
10185 (maintenance_check_psymtabs): Update.
10186 * psympriv.h (struct partial_symbol): Don't derive from
10187 general_symbol_info.
10188 <obj_section, unrelocated_address, address,
10189 set_unrelocated_address>: Update.
10190 <ginfo>: New member.
10191 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10192 (debug_names::write_psymbols): Update.
10193
9d6d4be8
TV
101942019-05-04 Tom de Vries <tdevries@suse.de>
10195
10196 * contrib/cc-with-tweaks.sh: Support -n arg.
10197
66452beb
PW
101982019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10199
10200 * corelow.c (core_target::detach): Ensure frame cache and
10201 register caches are cleared.
10202 inferior.c (exit_inferior_1): Likewise.
10203
bde09ab7
TT
102042019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10205 Tom Tromey <tom@tromey.com>
10206
10207 * dictionary.c (collate_pending_symbols_by_language): Remove
10208 "struct" from foreach.
10209 * symtab.c (lookup_global_symbol_from_objfile)
10210 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10211 foreach.
10212 * ser-tcp.c (net_open): Remove "struct" from foreach.
10213 * objfiles.c (objfile_relocate, objfile_rebase)
10214 (objfile_has_symbols): Remove "struct" from foreach.
10215 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10216 from foreach.
10217 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10218 foreach.
10219 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10220 "struct" from foreach.
10221 * ada-lang.c (create_excep_cond_exprs)
10222 (ada_exception_catchpoint_cond_string): Remove "struct" from
10223 foreach.
10224
222a8d25
TT
102252019-05-03 Tom Tromey <tromey@adacore.com>
10226
10227 * ada-exp.y (convert_char_literal): Check suffix of each
10228 enumerator.
10229
fcd60b84
DP
102302019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10231
10232 PR ada/21406:
10233 * ada-exp.y (yywrap): Don't define.
10234 * ada-lex.l (%option): Add noyywrap
10235 (yywrap): Remove.
10236
5f2459c2
EZ
102372019-05-03 Eli Zaretskii <eliz@gnu.org>
10238
353ea2d1
EZ
10239 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10240 _WIN32_WINNT to the XP level, unless already defined to a higher
10241 level.
10242
10243 * unittests/parse-connection-spec-selftests.c:
10244 * ser-tcp.c:
10245 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10246 override.
10247
5f2459c2
EZ
10248 * symfile.c (find_separate_debug_file): Remove colon from the
10249 drive spec of DOS/Windows file names of the target, so that the
10250 file name produced from DEBUGDIR and the target's directory will
10251 be valid on DOS/Windows systems.
10252
80062eb9
AB
102532019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10254
10255 * rust-lang.c (val_print_struct): Handle printing structures
10256 containing strings.
10257
b8c05e85
TT
102582019-05-02 Tom Tromey <tromey@adacore.com>
10259
10260 * valarith.c (_initialize_valarith): Remove.
10261
4504bbde
TT
102622019-05-01 Tom Tromey <tromey@adacore.com>
10263
10264 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10265 bitfields.
10266
d48e62f4
TT
102672019-05-01 Tom Tromey <tromey@adacore.com>
10268
10269 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10270 for big-endian copies.
10271
15f18d14
AT
102722019-04-30 Ali Tamur <tamur@google.com>
10273 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10274 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10275 (read_3_bytes): New function.
10276
ab4ee614
JB
102772019-04-30 Joel Brobecker <brobecker@adacore.com>
10278
10279 * windows-nat.c (main_thread_id): Delete.
10280 (handle_output_debug_string): Replace main_thread_id by
10281 current_event.dwThreadId.
10282 (fake_create_process): Likewise.
10283 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10284 Do not set main_thread_id.
10285 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10286 current_event.dwThreadId.
10287 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10288
8ed5b76e
JB
102892019-04-30 Joel Brobecker <brobecker@adacore.com>
10290
10291 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10292 Use current_event.dwThreadId instead of main_thread_id.
10293
2ff0a947
TT
102942019-04-30 Tom Tromey <tromey@adacore.com>
10295
10296 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10297 (create_excep_cond_exprs): Iterate over program spaces.
10298 (ada_exception_catchpoint_cond_string): Examine all minimal
10299 symbols for exception types.
10300
a776957c
TT
103012019-04-30 Tom Tromey <tromey@adacore.com>
10302
10303 PR c++/24470:
10304 * dwarf2read.c (process_structure_scope): Handle case where type
10305 has template parameters but no symbol was created.
10306
bc68014d
AB
103072019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10308 Chris January <chris.january@arm.com>
10309
10310 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10311 qualifier.
10312 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10313
f1fdc960
AB
103142019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10315
10316 * f-typeprint.c (f_print_type): Update rules for printing
10317 whitespace.
10318 (f_type_print_varspec_suffix): Likewise.
10319
bf7a4de1
AB
103202019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10321 Chris January <chris.january@arm.com>
10322
10323 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10324 function arguments.
10325
bbe75b9d
AB
103262019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10327
10328 * f-lang.c (build_fortran_types): Change name of void type to
10329 lower case.
10330 * f-typeprint.c (f_type_print_base): Print the name of the void
10331 type, rather than a fixed string.
10332 * f-valprint.c (f_decorations): Use lower case void string.
10333
1db455a7
AB
103342019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10335 Chris January <chris.january@arm.com>
10336
10337 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10338 types for Fortran.
10339
b6d03bb2
AB
103402019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10341 Chris January <chris.january@arm.com>
10342 David Lecomber <david.lecomber@arm.com>
10343
10344 * f-exp.y (BINOP_INTRINSIC): New token.
10345 (exp): New parser rule handling BINOP_INTRINSIC.
10346 (f77_keywords): Add new builtin procedures.
10347 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10348 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10349 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10350 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10351 (print_unop_subexp_f): New function.
10352 (print_binop_subexp_f): New function.
10353 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10354 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10355 (dump_subexp_body_f): Likewise.
10356 (operator_check_f): Likewise.
10357 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10358 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10359
83228e93
AB
103602019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10361
10362 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10363 UNOP_KIND.
10364 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10365 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10366 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10367 (operator_length_f): New fuction.
10368 (print_subexp_f): New function.
10369 (op_name_f): New function.
10370 (dump_subexp_body_f): New function.
10371 (operator_check_f): New function.
10372 (exp_descriptor_f): Replace standard expression handling functions
10373 with new functions.
10374 * gdb/fortran-operator.def: New file.
10375 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10376 * gdb/std-operator.def: Remove UNOP_KIND.
10377
6fdcd7cc
AB
103782019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10379
10380 * std-operator.def: Remove unbalanced, stray double quote
10381 character.
10382
2e62ab40
AB
103832019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10384 Chris January <chris.january@arm.com>
10385 Daniel Everett <daniel.everett@arm.com>
10386 Nick Forrington <nick.forrington@arm.com>
10387 Richard Bunt <richard.bunt@arm.com>
10388
10389 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10390 of depth when printing anonymous structs or unions.
10391 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10392 Don't print either the top-level value, or the children if the
10393 max-depth is exceeded.
10394 (ppscm_print_children): When printing the key of a map, allow one
10395 extra level of depth.
10396 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10397 print either the top-level value, or the children if the max-depth
10398 is exceeded.
10399 (print_children): When printing the key of a map, allow one extra
10400 level of depth.
10401 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10402 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10403 (user_print_options): Initialise max_depth field.
10404 (val_print_scalar_or_string_type_p): New function.
10405 (val_print): Check to see if the max depth has been reached.
10406 (val_print_check_max_depth): Define new function.
10407 (show_print_max_depth): New function.
10408 (_initialize_valprint): Add 'print max-depth' option.
10409 * valprint.h (struct value_print_options) <max_depth>: New field.
10410 (val_print_check_max_depth): Declare new function.
10411 * NEWS: Document new feature.
10412
4be290b2
AB
104132019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10414
10415 * ada-lang.c (ada_language_defn): Initialise new field.
10416 * c-lang.c (c_is_string_type_p): New function.
10417 (c_language_defn): Initialise new field.
10418 (cplus_language_defn): Initialise new field.
10419 (asm_language_defn): Initialise new field.
10420 (minimal_language_defn): Initialise new field.
10421 * c-lang.h (c_is_string_type_p): Declare new function.
10422 * d-lang.c (d_language_defn): Initialise new field.
10423 * f-lang.c (f_is_string_type_p): New function.
10424 (f_language_defn): Initialise new field.
10425 * go-lang.c (go_is_string_type_p): New function.
10426 (go_language_defn): Initialise new field.
10427 * language.c (default_is_string_type_p): New function.
10428 (unknown_language_defn): Initialise new field.
10429 (auto_language_defn): Initialise new field.
10430 * language.h (struct language_defn) <la_is_string_type_p>: New
10431 member variable.
10432 (default_is_string_type_p): Declare new function.
10433 * m2-lang.c (m2_language_defn): Initialise new field.
10434 * objc-lang.c (objc_language_defn): Initialise new field.
10435 * opencl-lang.c (opencl_language_defn): Initialise new field.
10436 * p-lang.c (pascal_is_string_type_p): New function.
10437 (pascal_language_defn): Initialise new field.
10438 * rust-lang.c (rust_is_string_type_p): New function.
10439 (rust_language_defn): Initialise new field.
10440
721b08c6
AB
104412019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10442
10443 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10444 New field.
10445 * ada-lang.c (ada_language_defn): Initialise new field.
10446 * c-lang.c (c_language_defn): Likewise.
10447 (cplus_language_defn): Likewise.
10448 (asm_language_defn): Likewise.
10449 (minimal_language_defn): Likewise.
10450 * d-lang.c (d_language_defn): Likewise.
10451 * f-lang.c (f_language_defn): Likewise.
10452 * go-lang.c (go_language_defn): Likewise.
10453 * language.c (unknown_language_defn): Likewise.
10454 (auto_language_defn): Likewise.
10455 * m2-lang.c (m2_language_defn): Likewise.
10456 * objc-lang.c (objc_language_defn): Likewise.
10457 * opencl-lang.c (opencl_language_defn): Likewise.
10458 * p-lang.c (pascal_language_defn): Likewise.
10459 * rust-lang.c (rust_language_defn): Likewise.
10460
fc913e53
AB
104612019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10462
10463 * ada-lang.c (ada_is_character_type): Change return type to bool.
10464 (ada_is_string_type): Likewise.
10465 * ada-lang.h (ada_is_character_type): Update declaration
10466 (ada_is_string_type): Likewise.
10467
fa731fa0
PW
104682019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10469
10470 Support style in 'frame|thread apply'
10471
10472 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10473 * record.c (record_start, record_stop): Update callers of
10474 execute_command_to_string with false.
10475 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10476 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10477 methods.
10478 (class string_file): New constructor with term_out parameter.
10479 Override methods term_out and can_emit_style_escape. New member
10480 term_out.
10481 (class stdio_file): Override can_emit_style_escape.
10482 (class tee_file): Override term_out and can_emit_style_escape.
10483 * utils.h (can_emit_style_escape): Remove.
10484 * utils.c (can_emit_style_escape): Likewise.
10485 Update all callers of can_emit_style_escape (SOMESTREAM) to
10486 SOMESTREAM->can_emit_style_escape.
10487 * source-cache.c (source_cache::get_source_lines): Likewise.
10488 * stack.c (frame_apply_command_count): Call execute_command_to_string
10489 passing the term_out characteristic of the current gdb_stdout.
10490 * thread.c (thr_try_catch_cmd): Likewise.
10491 * top.c (execute_command_to_string): pass term_out parameter
10492 to construct the string_file for the command output.
10493 * ui-file.c (term_cli_styling): New function (most code moved
10494 from utils.c can_emit_style_escape).
10495 (string_file::string_file, string_file::can_emit_style_escape,
10496 stdio_file::can_emit_style_escape, tee_file::term_out,
10497 tee_file::can_emit_style_escape): New functions.
10498
136afab8
PW
104992019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10500
10501 * NEWS: Mention the new set|show may-call-functions.
10502 * infcall.c (may_call_functions_p): New variable.
10503 (show_may_call_functions_p): New function.
10504 (call_function_by_hand_dummy): Throws an error if not
10505 may-call-functions.
10506 (_initialize_infcall): Call add_setshow_boolean_cmd for
10507 may-call-functions.
10508
725cbb63
KS
105092019-04-25 Keith Seitz <keiths@redhat.com>
10510
10511 PR c++/24367
10512 * cp-support.c (inspect_type): Don't attempt substitutions
10513 of symbol with the same name.
10514
3d1cbb78
TT
105152019-04-25 Tom Tromey <tromey@adacore.com>
10516
10517 PR gdb/24475:
10518 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10519 static.
10520
94aeb44b
TT
105212019-04-25 Tom Tromey <tromey@adacore.com>
10522
10523 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10524 rvalue reference.
10525 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10526 (gdb_xml_parser::parse): Use std::move.
10527 * python/python-internal.h (gdbpy_convert_exception): Take a const
10528 reference.
10529 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10530 std::move.
10531 * python/py-utils.c (gdbpy_convert_exception): Take a const
10532 reference.
10533 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10534 Use std::move.
10535 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10536 Use std::move.
10537 * mi/mi-main.c (mi_print_exception): Take a const reference.
10538 * main.c (handle_command_errors): Take a const reference.
10539 * linespec.c (parse_linespec): Use std::move.
10540 * infcall.c (run_inferior_call): Use std::move.
10541 (call_function_by_hand_dummy): Use std::move.
10542 * exec.c (try_open_exec_file): Use std::move.
10543 * exceptions.h (exception_print, exception_fprintf)
10544 (exception_print_same): Update.
10545 * exceptions.c (print_exception, exception_print)
10546 (exception_fprintf, exception_print_same): Change parameters to
10547 const reference.
10548 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10549 * common/new-op.c: Use std::move.
10550 * common/common-exceptions.h (struct gdb_exception): Add move
10551 constructor.
10552 (struct gdb_exception_error, struct gdb_exception_quit, struct
10553 gdb_quit_bad_alloc): Change constructor to move constructor.
10554 (throw_exception): Change parameter to rvalue reference.
10555 * common/common-exceptions.c (throw_exception): Take rvalue
10556 reference.
10557 * cli/cli-interp.c (safe_execute_command): Use std::move.
10558 * breakpoint.c (insert_bp_location, location_to_sals): Use
10559 std::move.
10560
680d7fd5
TT
105612019-04-25 Tom Tromey <tromey@adacore.com>
10562
10563 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10564 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10565 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10566 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10567 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10568 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10569 guile/scm-value.c: Use unpack.
10570 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10571 gdbscm_gdb_exception.
10572 (gdbscm_throw_gdb_exception): Likewise.
10573 (struct gdbscm_gdb_exception): New.
10574 (unpack): New function.
10575 (gdbscm_wrap): Use unpack.
10576
c6fdd8b2
TT
105772019-04-25 Tom Tromey <tromey@adacore.com>
10578
10579 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10580 (gdb_rl_callback_handler): Use std::move.
10581 * common/common-exceptions.h (struct gdb_exception): Add move
10582 assignment operator.
10583 (throw_exception_sjlj): Change "exception" to const reference.
10584 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10585 (throw_exception_sjlj): Change "exception" to const reference.
10586
cc06b668
TT
105872019-04-25 Tom Tromey <tromey@adacore.com>
10588
10589 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10590 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10591 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10592 Update.
10593 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10594 Update.
10595 * mi/mi-interp.c (mi_interp::exec): Update.
10596 * linespec.c (parse_linespec): Update.
10597 * infcall.c (run_inferior_call): Update.
10598 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10599 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10600 (gdbscm_lookup_global_symbol): Update.
10601 * guile/scm-param.c (gdbscm_parameter_value): Update.
10602 * guile/scm-frame.c (gdbscm_frame_read_register)
10603 (gdbscm_frame_read_var): Update.
10604 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10605 * exec.c (try_open_exec_file): Update.
10606 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10607 (gdb_rl_callback_handler): Update.
10608 * common/common-exceptions.h (exception_none): Don't declare.
10609 * common/common-exceptions.c (exception_none): Don't define.
10610 (struct catcher) <exception>: Update.
10611 * cli/cli-interp.c (safe_execute_command): Update.
10612 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10613
cf532bd1
AT
106142019-04-25 Ali Tamur <tamur@google.com>
10615
10616 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10617 (read_attribute_value): Likewise.
10618 (dwarf2_read_addr_index): Update comment.
10619 (read_str_index): Add DW_FORM_strx.
10620 (dwarf2_string_attr): Likewise.
10621 (dwarf2_const_value_attr): Likewise.
10622 (dump_die_shallow): Likewise.
10623 (dwarf2_fetch_constant_bytes): Likewise.
10624 (skip_form_bytes): Likewise.
10625 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10626
82433e3e
SDJ
106272019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10628
10629 PR corefiles/11608
10630 PR corefiles/18187
10631 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10632 OFFSET. Verify if current mapping contains an ELF header.
10633 (linux_find_memory_regions_full): Adjust call to
10634 dump_mapping_p.
10635
723adb65
SL
106362019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10637 Kang Li <kanglictf@gmail.com>
10638
10639 PR gdb/21600
10640
10641 * dwarf2-frame.c (read_initial_length): Be consistent about using
10642 unsigned representation of length.
10643 (decode_frame_entry_1): Likewise. Check for wraparound of
10644 end pointer as well as buffer overflow.
10645
596179f7
SDJ
106462019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10647
10648 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10649 "vq".
10650
a59240a4
TT
106512019-04-24 Tom Tromey <tromey@adacore.com>
10652
10653 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10654
f872fdbb
AB
106552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10656
10657 * s12z-tdep.c (s12z_unwind_pc): Delete.
10658 (s12z_unwind_sp): Delete.
10659 (s12z_gdbarch_init): Don't register deleted functions with
10660 gdbarch.
10661
b614e6f3
AB
106622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10663
10664 * rl78-tdep.c (rl78_unwind_sp): Delete.
10665 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10666
14faed38
AB
106672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10668
10669 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10670 (xstormy16_unwind_pc): Delete.
10671 (xstormy16_dummy_id): Delete.
10672 (xstormy16_gdbarch_init): Don't register deleted functions with
10673 gdbarch.
10674
541aad8a
AB
106752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10676
10677 * vax-tdep.c (vax_unwind_pc): Delete.
10678 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10679
29222070
AB
106802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10681
10682 * v850-tdep.c (v850_unwind_sp): Delete.
10683 (v850_unwind_pc): Delete.
10684 (v850_dummy_id): Delete.
10685 (v850_gdbarch_init): Don't register deleted functions with
10686 gdbarch.
10687
0f534d76
AB
106882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10689
10690 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10691 (tilegx_unwind_pc): Delete.
10692 (tilegx_unwind_dummy_id): Delete.
10693 (tilegx_gdbarch_init): Don't register deleted functions with
10694 gdbarch.
10695
1ba7b7f9
AB
106962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10697
10698 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10699 (tic6x_dummy_id): Delete.
10700 (tic6x_gdbarch_init): Don't register deleted functions with
10701 gdbarch.
10702
d31f262c
AB
107032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10704
10705 * sparc-tdep.c (sparc_unwind_pc): Delete.
10706 (sparc32_gdbarch_init): Don't register deleted function with
10707 gdbarch.
10708
6d14d64d
AB
107092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10710
10711 * sh-tdep.c (sh_unwind_sp): Delete.
10712 (sh_unwind_pc): Delete.
10713 (sh_dummy_id): Delete.
10714 (sh_gdbarch_init): Don't register deleted functions with
10715 gdbarch.
10716
a40dde9d
AB
107172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10718
10719 * score-tdep.c (score_unwind_sp): Delete.
10720 (score_unwind_pc): Delete.
10721 (score_dummy_id): Delete.
10722 (score_gdbarch_init): Don't register deleted functions with
10723 gdbarch.
10724
47c47d69
AB
107252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10726
10727 * rx-tdep.c (rx_unwind_pc): Delete.
10728 (rx_unwind_sp): Delete.
10729 (rx_dummy_id): Delete.
10730 (rx_gdbarch_init): Don't register deleted functions with
10731 gdbarch. Update comment.
10732
833a4480
AB
107332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10734
10735 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10736 (rs6000_dummy_id): Delete.
10737 (rs6000_gdbarch_init): Don't register deleted functions with
10738 gdbarch.
10739
3f2cef49
AB
107402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10741
10742 * or1k-tdep.c (or1k_dummy_id): Delete.
10743 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10744
96acf884
AB
107452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10746
10747 * nios2-tdep.c (nios2_dummy_id): Delete.
10748 (nios2_unwind_sp): Delete.
10749 (nios2_gdbarch_init): Don't register deleted functions with
10750 gdbarch.
10751
ca0ab0aa
AB
107522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10753
10754 * nds32-tdep.c (nds32_dummy_id): Delete.
10755 (nds32_unwind_pc): Delete.
10756 (nds32_unwind_sp): Delete.
10757 (nds32_gdbarch_init): Don't register deleted functions with
10758 gdbarch.
10759
c8259044
AB
107602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10761
10762 * msp430-tdep.c (msp430_unwind_pc): Delete.
10763 (msp430_unwind_sp): Delete.
10764 (msp430_dummy_id): Delete.
10765 (msp430_gdbarch_init): Don't register deleted functions with
10766 gdbarch.
10767
27f113c8
AB
107682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10769
10770 * moxie-tdep.c (moxie_unwind_sp): Delete.
10771 (moxie_unwind_pc): Delete.
10772 (moxie_dummy_id): Delete.
10773 (moxie_gdbarch_init): Don't register deleted functions with
10774 gdbarch.
10775
aee6c3cd
AB
107762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10777
10778 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10779 (mn10300_unwind_pc): Delete.
10780 (mn10300_unwind_sp): Delete.
10781 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10782 mn10300_unwind_sp.
10783 (mn10300_frame_unwind_init): Don't register deleted functions with
10784 gdbarch.
10785
8e2b5aea
AB
107862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10787
10788 * mep-tdep.c (mep_unwind_pc): Delete.
10789 (mep_unwind_sp): Delete.
10790 (mep_dummy_id): Delete.
10791 (mep_gdbarch_init): Don't register deleted functions with
10792 gdbarch.
10793
43cf3ede
AB
107942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10795
10796 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10797 (m68hc11_unwind_sp): Delete.
10798 (m68hc11_gdbarch_init): Don't register deleted functions with
10799 gdbarch.
10800
5e79b7bb
AB
108012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10802
10803 * m32r-tdep.c (m32r_unwind_sp): Delete.
10804 (m32r_unwind_pc): Delete.
10805 (m32r_dummy_id): Delete.
10806 (m32r_gdbarch_init): Don't register deleted functions with
10807 gdbarch.
10808
89b268d8
AB
108092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10810
10811 * m32c-tdep.c (m32c_unwind_pc): Delete.
10812 (m32c_unwind_sp): Delete.
10813 (m32c_dummy_id): Delete.
10814 (m32c_gdbarch_init): Don't register deleted functions with
10815 gdbarch.
10816
946c28d2
AB
108172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10818
10819 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10820 (lm32_unwind_pc): Delete.
10821 (lm32_dummy_id): Delete.
10822 (lm32_gdbarch_init): Don't register deleted functions with
10823 gdbarch.
10824
bf12844a
AB
108252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10826
10827 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10828 (iq2000_unwind_pc): Delete.
10829 (iq2000_dummy_id): Delete.
10830 (iq2000_gdbarch_init): Don't register deleted functions with
10831 gdbarch.
10832
ecbc06d2
AB
108332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10834
10835 * nds32-tdep.c (nds32_type_align): Delete.
10836 (nds32_push_dummy_call): Use type_align instead.
10837
030197b4
AB
108382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10839
10840 * arm-tdep.c (arm_type_align): Only handle vector override case.
10841 (arm_push_dummy_call): Use type_align.
10842 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10843
b907456c
AB
108442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10845
10846 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10847 case.
10848 (pass_on_stack): Use type_align.
10849 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10850 function.
10851
9e97ba43
TT
108522019-04-23 Tom Tromey <tromey@adacore.com>
10853
10854 * dwarf2read.c (line_header::file_name_at): Remove unused
10855 overload.
10856
6892f601
TV
108572019-04-23 Tom de Vries <tdevries@suse.de>
10858
10859 PR gdb/24438
10860 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10861 invocation.
10862
336d760d
AT
10863
108642019-03-27 Ali Tamur <tamur@google.com>
10865
10866 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10867 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10868 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10869 (dwarf_expr_context::get_addr_index): Likewise
10870 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10871 (symbol_needs_eval_context::get_addr_index): Likewise
10872 (disassemble_dwarf_expression): Add DW_OP_addrx
10873 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10874 (read_cutu_die_from_dwo): Update comment
10875 (skip_one_die): Add DW_FORM_addrx
10876 (read_attribute_value): Likewise
10877 (var_decode_location): Add DW_OP_addrx
10878 (dwarf2_const_value_attr): Add DW_FORM_addrx
10879 (dump_die_shallow): Likewise
10880 (dwarf2_fetch_constant_bytes): Likewise
10881 (decode_locdesc): Add DW_OP_addrx
10882 (skip_form_bytes): Add DW_FORM_addrx
10883
ad9d13f8
AT
108842019-04-22 Ali Tamur <tamur@google.com>
10885
10886 * MAINTAINERS (Write After Approval): Add self.
10887
d70cc3ba
SM
108882019-04-22 Simon Marchi <simon.marchi@efficios.com>
10889
10890 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10891 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10892 (open_symbol_file_object): Likewise.
10893 (svr4_default_sos): Add info parameter.
10894 (svr4_read_so_list): Likewise.
10895 (svr4_current_sos_direct): Adjust functions calls to pass down
10896 info.
10897 (svr4_current_sos_1): Add info parameter.
10898 (svr4_current_sos): Call get_svr4_info, pass info down to
10899 svr4_current_sos_1.
10900 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10901 get_svr4_info.
10902 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10903 get_svr4_info.
10904 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10905 to get_svr4_info.
10906 (probes_table_remove_objfile_probes): Likewise.
10907 (register_solib_event_probe): Add info parameter.
10908 (solist_update_incremental): Pass info parameter down to
10909 svr4_read_so_list.
10910 (disable_probes_interface): Add info parameter.
10911 (svr4_handle_solib_event): Pass current_program_space to
10912 get_svr4_info. Adjust disable_probes_interface cleanup.
10913 (svr4_create_probe_breakpoints): Add info parameter, pass it
10914 down to register_solib_event_probe.
10915 (svr4_create_solib_event_breakpoints): Add info parameter,
10916 pass it down to svr4_create_probe_breakpoints.
10917 (enable_break): Pass info down to
10918 svr4_create_solib_event_breakpoints.
10919 (svr4_solib_create_inferior_hook): Pass current_program_space to
10920 get_svr4_info.
10921 (svr4_clear_solib): Likewise.
10922
7905fc35
PA
109232019-04-22 Pedro Alves <palves@redhat.com>
10924
10925 * solib-svr4.c (svr4_free_objfile_observer): New.
10926 (probe_and_action::objfile): New field.
10927 (probes_table_htab_remove_objfile_probes)
10928 (probes_table_remove_objfile_probes): New functions.
10929 (register_solib_event_probe): Add 'objfile' parameter. Store it
10930 in the new probe_and_action. Don't store the probe in 'lookup'.
10931 (svr4_create_probe_breakpoints): Pass objfile to
10932 register_solib_event_probe.
10933 (_initialize_svr4_solib): Register a free_objfile observer.
10934
fb881986
TT
109352019-04-19 Tom Tromey <tom@tromey.com>
10936
10937 * common/queue.h: Remove.
10938
8732db6c
TT
109392019-04-19 Tom Tromey <tom@tromey.com>
10940
10941 * event-loop.c: Don't include "common/queue.h".
10942
97dfbadd
TT
109432019-04-19 Tom Tromey <tom@tromey.com>
10944
10945 * remote.c (remote_target): Use delete.
10946 * remote-notif.h: Include <list>, not "common/queue.h".
10947 (notif_client_p): Remove typedef.
10948 (remote_notif_state): Add constructor, destructor, initializer.
10949 <notif_queue>: Now a std::list.
10950 (remote_notif_state_xfree): Don't declare.
10951 * remote-notif.c (remote_notif_process, handle_notification)
10952 (remote_notif_state_allocate): Update.
10953 (~remote_notif_state): Rename from remote_notif_state_xfree.
10954
cf250e36
TT
109552019-04-19 Tom Tromey <tom@tromey.com>
10956
10957 * symfile.c (reread_symbols): Update.
10958 * objfiles.c (objfile_register_static_link)
10959 (objfile_lookup_static_link): Update
10960 (~objfile) Don't delete static_links.
10961 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10962
61f4b350
TT
109632019-04-19 Tom Tromey <tom@tromey.com>
10964
10965 * type-stack.h (struct type_stack) <insert>: Constify string.
10966 * type-stack.c (type_stack::insert): Constify string.
10967 * gdbtypes.h (lookup_template_type): Update.
10968 (address_space_name_to_int): Update.
10969 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10970 const.
10971 (lookup_template_type): Make name const.
10972 * c-exp.y: Update rules.
10973 (lex_one_token, classify_name, classify_inner_name)
10974 (c_print_token): Update.
10975 * p-exp.y: Update rules.
10976 (yylex): Update.
10977 * f-exp.y: Update rules.
10978 (yylex): Update.
10979 * d-exp.y: Update rules.
10980 (lex_one_token, classify_name, classify_inner_name): Update.
10981 * parse.c (write_dollar_variable, copy_name): Return std::string.
10982 * parser-defs.h (copy_name): Change return type.
10983 * m2-exp.y: Update rules.
10984 (yylex): Update.
10985 * go-exp.y (lex_one_token): Update.
10986 Update rules.
10987 (classify_unsafe_function, classify_packaged_name)
10988 (classify_name, yylex): Update.
10989
189b8c2e
ST
109902019-04-19 Sergei Trofimovich <siarheit@google.com>
10991
10992 * configure.ac: add --enable-source-highlight switch.
10993 * configure: Regenerate.
10994 * top.c (print_gdb_version): plumb --enable-source-highlight
10995 status to "show configuration".
10996
8ecb59f8
TT
109972019-04-19 Tom Tromey <tromey@adacore.com>
10998
10999 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11000 Check ADA_TYPE_P.
11001 (empty_record, ada_template_to_fixed_record_type_1)
11002 (template_to_static_fixed_type)
11003 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11004 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11005 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11006 macros.
11007
62160ec9
TT
110082019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11009
11010 PR symtab/24423:
11011 * source.c (print_source_lines_base): Advance "iter" when a
11012 control character is seen.
11013
f2ae8bc8
PW
110142019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11015
11016 * inferior.h (struct infcall_suspend_state_deleter):
11017 Catch exception in destructor to avoid crash.
11018
d563b953
PW
110192019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11020
11021 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11022 close to the add_com "shell".
11023
dc34c897
TT
110242019-04-18 Tom Tromey <tromey@adacore.com>
11025
11026 * process-stratum-target.h (class process_stratum_target)
11027 <stratum>: Add "final".
11028
a12e5744
TT
110292019-04-17 Tom Tromey <tromey@adacore.com>
11030
11031 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11032 against nullptr before use.
11033
a7e559cc
AH
110342019-04-17 Alan Hayward <alan.hayward@arm.com>
11035
11036 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11037
c01660c6
AB
110382019-04-17 Jim Wilson <jimw@sifive.com>
11039 Andrew Burgess <andrew.burgess@embecosm.com>
11040
11041 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11042 code read might fail, assume 4-byte breakpoint in that case.
11043
4aa866af
LS
110442019-04-15 Leszek Swirski <leszeks@google.com>
11045
11046 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11047 rather than a hand-rolled POD check when checking for forced MEMORY
11048 classification.
11049
48574d91
AH
110502019-04-15 Alan Hayward <alan.hayward@arm.com>
11051
11052 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11053 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11054 function.
11055 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11056 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11057 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11058 declaration.
11059
4da037ef
AH
110602019-04-15 Alan Hayward <alan.hayward@arm.com>
11061
11062 * aarch64-linux-nat.c
11063 (aarch64_linux_nat_target::thread_architecture): Add override.
11064 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11065 each VQ.
11066
ccb8d7e8
AH
110672019-04-15 Alan Hayward <alan.hayward@arm.com>
11068
11069 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11070
35add35e
AB
110712019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11072
11073 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11074 target types of size 96-bits, add some additional comments, and
11075 check that the builtin type we found was the correct size.
11076
51196bbc
EZ
110772019-04-12 Eli Zaretskii <eliz@gnu.org>
11078
11079 * utils.c (prompt_for_continue): Don't restore the styling at the
11080 end, as applied_style has the wrong value. This fixes styling in
11081 long lists of file names that are interrupted by the "Continue?"
11082 prompt.
11083
62253a61
AB
110842019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11085
11086 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11087 * c-lang.c (c_language_defn): Likewise.
11088 (cplus_language_defn): Likewise.
11089 (asm_language_defn): Likewise.
11090 (minimal_language_defn): Likewise.
11091 * d-lang.c (d_language_defn): Likewise.
11092 * f-lang.c (f_language_defn): Likewise.
11093 * go-lang.c (go_language_defn): Likewise.
11094 * language.c (unknown_language_defn): Likewise.
11095 (auto_language_defn): Likewise.
11096 * language.h (struct language_defn): Remove la_magic field.
11097 (LANG_MAGIC): Delete.
11098 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11099 * objc-lang.c (objc_language_defn): Likewise.
11100 * opencl-lang.c (opencl_language_defn): Likewise.
11101 * p-lang.c (pascal_language_defn): Likewise.
11102 * rust-lang.c (rust_language_defn): Likewise.
11103
a9158a86
AB
111042019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11105
11106 * riscv-tdep.c (riscv_type_align): New function.
11107 (riscv_type_alignment): Delete.
11108 (riscv_arg_location): Use 'type_align'.
11109 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11110
41077b66
AB
111112019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11112
11113 * gdbtypes.c (type_align): A struct with no non-static fields also
11114 has alignment of 1.
11115
9f0272f8
AB
111162019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11117
11118 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11119 component to 0.
11120 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11121 member.
11122 (riscv_struct_info::analyse): New implementation using new
11123 analyse_inner member function.
11124 (riscv_struct_info::field_offset): New member function.
11125 (riscv_struct_info::m_offsets): New member variable.
11126 (riscv_struct_info::analyse_inner): New private member function,
11127 takes the old implementation of riscv_struct_info::analyse but
11128 extended to track field offsets.
11129 (riscv_call_arg_struct): Update the struct folding special cases
11130 to handle cases where empty C++ structs, which are non-zero
11131 length, are found.
11132 (riscv_arg_location): Initialise the length of each location, a
11133 non-zero length now indicates the location is in use.
11134 (riscv_push_dummy_call): Allow for the first location having a
11135 non-zero offset when setting up arguments.
11136 (riscv_return_value): Likewise, but for return values.
11137
02cf60c7
TT
111382019-04-11 Tom Tromey <tromey@adacore.com>
11139
11140 * utils.c (internal_vproblem): Make "msg" const.
11141
68811f8f
AH
111422019-04-11 Alan Hayward <alan.hayward@arm.com>
11143
11144 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11145 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11146 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11147 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11148
3f52fdbc
KB
111492019-04-10 Kevin Buettner <kevinb@redhat.com>
11150
11151 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11152 function.
11153 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11154 of amd64_collect_native_gregset.
11155 (amd64_linux_nat_target::store_registers): Likewise.
11156
e9ad22ee
TT
111572019-04-10 Tom Tromey <tom@tromey.com>
11158
11159 * symtab.c (lookup_global_symbol_from_objfile)
11160 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11161 * objfiles.h (class separate_debug_iterator): New.
11162 (class separate_debug_range): New.
11163 (struct objfile) <separate_debug_objfiles>: New method.
11164 (objfile_separate_debug_iterate): Don't declare.
11165 * objfiles.c (separate_debug_iterator::operator++): Rename from
11166 objfile_separate_debug_iterate.
11167 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11168 iterator.
11169 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11170 iterator.
11171
ee371134
TT
111722019-04-10 Tom Tromey <tom@tromey.com>
11173
11174 * symfile.c (reread_symbols): Remove old comment.
11175 * objfiles.c (free_all_objfiles): Fix a typo.
11176
bf227d61
TT
111772019-04-10 Tom Tromey <tom@tromey.com>
11178
11179 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11180 * minsyms.c (lookup_minimal_symbol): Use foreach.
11181 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11182 (lookup_minimal_symbol_solib_trampoline): Likewise.
11183 * symfile.c (reread_symbols): Use foreach.
11184
8dc433a0
TT
111852019-04-09 Ivan Begert <ivanbegert@gmail.com>
11186 Tom Tromey <tromey@adacore.com>
11187
11188 PR rust/24414:
11189 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11190 (rust_lex_int_test): Change "value" to be LONGEST.
11191 (rust_lex_tests): Add test for long integer literal.
11192
9ab8741a
TT
111932019-04-09 Tom Tromey <tromey@adacore.com>
11194
11195 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11196 to bool.
11197 (extended_remote_target::attach): Update.
11198 (remote_target::remote_notice_new_inferior): Update.
11199 (remote_target::add_current_inferior_and_thread): Update.
11200 * inferior.c (exit_inferior_1): Use "false".
11201 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11202
e242fd12
SM
112032019-04-09 Simon Marchi <simon.marchi@efficios.com>
11204
9ca1957f 11205 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11206 the "start" command.
11207
2b0c8b01
KB
112082019-04-08 Kevin Buettner <kevinb@redhat.com>
11209
11210 * python/py-inferior.c (infpy_thread_from_thread_handle):
11211 Adjust comments to reflect renaming of thread_from_thread_handle
11212 to thread_from_handle. Adjust keywords. Fix type error message.
11213 (inferior_object_methods): Add thread_from_handle. Retain
11214 thread_from_thread_handle, but mark it as deprecated.
11215
50a82723
KB
112162019-04-08 Kevin Buettner <kevinb@redhat.com>
11217
11218 * gdbthread.h (find_thread_by_handle): Revise declaration.
11219 * thread.c (find_thread_by_handle): Likewise. Adjust
11220 implementation too.
11221 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11222 support for buffer objects as handles.
11223
cf63b016
KB
112242019-04-08 Kevin Buettner <kevinb@redhat.com>
11225
11226 * python/py-infthread.c (thpy_thread_handle): New function.
11227 (thread_object_methods): Register thpy_thread_handle.
11228
3d6c6204
KB
112292019-04-08 Kevin Buettner <kevinb@redhat.com>
11230
11231 * gdbthread.h (thread_to_thread_handle): Declare.
11232 * thread.c (gdbtypes.h): Include.
11233 (thread_to_thread_handle): New function.
11234
11235 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11236 (target_thread_info_to_thread_handle): Declare.
11237 * target.c (target_thread_info_to_thread_handle): New function.
11238 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11239 * target-delegates.c: Regenerate.
11240
11241 * linux-thread-db.c (class thread_db_target): Add method
11242 thread_info_to_thread_handle.
11243 (thread_db_target::thread_info_to_thread_handle): Define.
11244 * remote.c (class remote_target): Add new method
11245 thread_info_to_thread_handle.
11246 (remote_target::thread_info_to_thread_handle): Define.
11247
56be6ea8
PA
112482019-04-08 Pedro Alves <palves@redhat.com>
11249
11250 * common/common-exceptions.c (throw_exception): Don't create
11251 named object to throw; throw directly.
11252 (throw_it): Likewise. Don't initialize gdb_exception::message
11253 here, with new; pass FMT and AP to the ctor instead.
11254 * common/common-exceptions.h: Include <string>.
11255 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11256 const char *, va_list)): New ctor. Use std::make_shared.
11257 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11258 errors)): Delete.
11259 (gdb_exception_error::gdb_exception_error(enum errors, const char
11260 *, va_list)): New.
11261 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11262 Add assertion.
11263 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11264 errors)): Delete.
11265 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11266 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11267 Add assertion.
11268
eedc3f4f
TT
112692019-04-08 Tom Tromey <tom@tromey.com>
11270
11271 * valops.c (value_rtti_indirect_type): Replace throw_exception
11272 with throw.
11273 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11274 with throw.
11275 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11276 throw.
11277 * target.c (target_translate_tls_address): Replace throw_exception
11278 with throw.
11279 * stack.c (frame_apply_command_count): Replace throw_exception
11280 with throw.
11281 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11282 throw.
11283 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11284 with throw.
11285 * rs6000-tdep.c (rs6000_frame_cache)
11286 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11287 * remote.c: Replace throw_exception with throw.
11288 * record-full.c (record_full_message, record_full_wait_1)
11289 (record_full_restore): Replace throw_exception with throw.
11290 * record-btrace.c:
11291 (get_thread_current_frame_id, record_btrace_start_replaying)
11292 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11293 (cmd_record_btrace_start): Replace throw_exception with throw.
11294 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11295 throw.
11296 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11297 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11298 * linespec.c:
11299 (find_linespec_symbols): Replace throw_exception with throw.
11300 * infrun.c (displaced_step_prepare, resume): Replace
11301 throw_exception with throw.
11302 * infcmd.c (post_create_inferior): Replace throw_exception with
11303 throw.
11304 * inf-loop.c (inferior_event_handler): Replace throw_exception
11305 with throw.
11306 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11307 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11308 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11309 (get_prev_frame_always, get_frame_pc_if_available)
11310 (get_frame_address_in_block_if_available, get_frame_language):
11311 Replace throw_exception with throw.
11312 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11313 throw_exception with throw.
11314 * eval.c (fetch_subexp_value, evaluate_var_value)
11315 (evaluate_funcall, evaluate_subexp_standard): Replace
11316 throw_exception with throw.
11317 * dwarf2loc.c (call_site_find_chain)
11318 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11319 Replace throw_exception with throw.
11320 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11321 with throw.
11322 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11323 throw.
11324 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11325 * completer.c (complete_line_internal): Replace throw_exception
11326 with throw.
11327 * compile/compile-object-run.c (compile_object_run): Replace
11328 throw_exception with throw.
11329 * cli/cli-script.c (process_next_line): Replace throw_exception
11330 with throw.
11331 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11332 (btrace_enable, btrace_maint_update_pt_packets): Replace
11333 throw_exception with throw.
11334 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11335 throw_exception with throw.
11336 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11337 throw_exception with throw.
11338 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11339 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11340 * aarch64-tdep.c (aarch64_make_prologue_cache)
11341 (aarch64_make_stub_cache): Replace throw_exception with throw.
11342
26003a20
TT
113432019-04-08 Tom Tromey <tom@tromey.com>
11344
11345 * common/common-exceptions.c (throw_exception): Rename from
11346 throw_exception_cxx. Remove old copy. Make argument const.
11347 (throw_it): Create and throw exception objects directly.
11348 * common/common-exceptions.h (throw_exception): Make argument
11349 const.
11350 (struct gdb_exception_error): Add constructor.
11351 (struct gdb_exception_quit): Add constructor.
11352
d272eb37
TT
113532019-04-08 Tom Tromey <tom@tromey.com>
11354
11355 * common/common-exceptions.h (exception_rethrow): Don't declare.
11356 (TRY_SJLJ): Update comment.
11357 (TRY, CATCH, END_CATCH): Remove.
11358 * common/common-exceptions.c (exception_rethrow): Remove.
11359
230d2906
TT
113602019-04-08 Tom Tromey <tom@tromey.com>
11361
11362 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11363 Remove.
11364 (gdb_exception_error): Rename from
11365 gdb_exception_RETURN_MASK_ERROR.
11366 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11367 (gdb_quit_bad_alloc): Update.
11368 * aarch64-tdep.c: Update.
11369 * ada-lang.c: Update.
11370 * ada-typeprint.c: Update.
11371 * ada-valprint.c: Update.
11372 * amd64-tdep.c: Update.
11373 * arch-utils.c: Update.
11374 * break-catch-throw.c: Update.
11375 * breakpoint.c: Update.
11376 * btrace.c: Update.
11377 * c-varobj.c: Update.
11378 * cli/cli-cmds.c: Update.
11379 * cli/cli-interp.c: Update.
11380 * cli/cli-script.c: Update.
11381 * common/common-exceptions.c: Update.
11382 * common/new-op.c: Update.
11383 * common/selftest.c: Update.
11384 * compile/compile-c-symbols.c: Update.
11385 * compile/compile-cplus-symbols.c: Update.
11386 * compile/compile-object-load.c: Update.
11387 * compile/compile-object-run.c: Update.
11388 * completer.c: Update.
11389 * corelow.c: Update.
11390 * cp-abi.c: Update.
11391 * cp-support.c: Update.
11392 * cp-valprint.c: Update.
11393 * darwin-nat.c: Update.
11394 * disasm-selftests.c: Update.
11395 * dtrace-probe.c: Update.
11396 * dwarf-index-cache.c: Update.
11397 * dwarf-index-write.c: Update.
11398 * dwarf2-frame-tailcall.c: Update.
11399 * dwarf2-frame.c: Update.
11400 * dwarf2loc.c: Update.
11401 * dwarf2read.c: Update.
11402 * eval.c: Update.
11403 * event-loop.c: Update.
11404 * event-top.c: Update.
11405 * exec.c: Update.
11406 * f-valprint.c: Update.
11407 * fbsd-tdep.c: Update.
11408 * frame-unwind.c: Update.
11409 * frame.c: Update.
11410 * gdbtypes.c: Update.
11411 * gnu-v3-abi.c: Update.
11412 * guile/guile-internal.h: Update.
11413 * guile/scm-block.c: Update.
11414 * guile/scm-breakpoint.c: Update.
11415 * guile/scm-cmd.c: Update.
11416 * guile/scm-disasm.c: Update.
11417 * guile/scm-frame.c: Update.
11418 * guile/scm-lazy-string.c: Update.
11419 * guile/scm-math.c: Update.
11420 * guile/scm-param.c: Update.
11421 * guile/scm-ports.c: Update.
11422 * guile/scm-pretty-print.c: Update.
11423 * guile/scm-symbol.c: Update.
11424 * guile/scm-symtab.c: Update.
11425 * guile/scm-type.c: Update.
11426 * guile/scm-value.c: Update.
11427 * i386-linux-tdep.c: Update.
11428 * i386-tdep.c: Update.
11429 * inf-loop.c: Update.
11430 * infcall.c: Update.
11431 * infcmd.c: Update.
11432 * infrun.c: Update.
11433 * jit.c: Update.
11434 * language.c: Update.
11435 * linespec.c: Update.
11436 * linux-fork.c: Update.
11437 * linux-nat.c: Update.
11438 * linux-tdep.c: Update.
11439 * linux-thread-db.c: Update.
11440 * main.c: Update.
11441 * mi/mi-cmd-break.c: Update.
11442 * mi/mi-cmd-stack.c: Update.
11443 * mi/mi-interp.c: Update.
11444 * mi/mi-main.c: Update.
11445 * objc-lang.c: Update.
11446 * p-valprint.c: Update.
11447 * parse.c: Update.
11448 * ppc-linux-tdep.c: Update.
11449 * printcmd.c: Update.
11450 * python/py-arch.c: Update.
11451 * python/py-breakpoint.c: Update.
11452 * python/py-cmd.c: Update.
11453 * python/py-finishbreakpoint.c: Update.
11454 * python/py-frame.c: Update.
11455 * python/py-framefilter.c: Update.
11456 * python/py-gdb-readline.c: Update.
11457 * python/py-inferior.c: Update.
11458 * python/py-infthread.c: Update.
11459 * python/py-lazy-string.c: Update.
11460 * python/py-linetable.c: Update.
11461 * python/py-objfile.c: Update.
11462 * python/py-param.c: Update.
11463 * python/py-prettyprint.c: Update.
11464 * python/py-progspace.c: Update.
11465 * python/py-record-btrace.c: Update.
11466 * python/py-record.c: Update.
11467 * python/py-symbol.c: Update.
11468 * python/py-type.c: Update.
11469 * python/py-unwind.c: Update.
11470 * python/py-utils.c: Update.
11471 * python/py-value.c: Update.
11472 * python/python.c: Update.
11473 * record-btrace.c: Update.
11474 * record-full.c: Update.
11475 * remote-fileio.c: Update.
11476 * remote.c: Update.
11477 * riscv-tdep.c: Update.
11478 * rs6000-aix-tdep.c: Update.
11479 * rs6000-tdep.c: Update.
11480 * rust-exp.y: Update.
11481 * rust-lang.c: Update.
11482 * s390-tdep.c: Update.
11483 * selftest-arch.c: Update.
11484 * solib-dsbt.c: Update.
11485 * solib-frv.c: Update.
11486 * solib-spu.c: Update.
11487 * solib-svr4.c: Update.
11488 * solib.c: Update.
11489 * sparc64-linux-tdep.c: Update.
11490 * stack.c: Update.
11491 * symfile-mem.c: Update.
11492 * symmisc.c: Update.
11493 * target.c: Update.
11494 * thread.c: Update.
11495 * top.c: Update.
11496 * tracefile-tfile.c: Update.
11497 * tui/tui.c: Update.
11498 * typeprint.c: Update.
11499 * unittests/cli-utils-selftests.c: Update.
11500 * unittests/parse-connection-spec-selftests.c: Update.
11501 * valops.c: Update.
11502 * valprint.c: Update.
11503 * value.c: Update.
11504 * varobj.c: Update.
11505 * windows-nat.c: Update.
11506 * x86-linux-nat.c: Update.
11507 * xml-support.c: Update.
11508
a70b8144
TT
115092019-04-08 Tom Tromey <tom@tromey.com>
11510
11511 * xml-support.c: Use C++ exception handling.
11512 * x86-linux-nat.c: Use C++ exception handling.
11513 * windows-nat.c: Use C++ exception handling.
11514 * varobj.c: Use C++ exception handling.
11515 * value.c: Use C++ exception handling.
11516 * valprint.c: Use C++ exception handling.
11517 * valops.c: Use C++ exception handling.
11518 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11519 handling.
11520 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11521 * typeprint.c: Use C++ exception handling.
11522 * tui/tui.c: Use C++ exception handling.
11523 * tracefile-tfile.c: Use C++ exception handling.
11524 * top.c: Use C++ exception handling.
11525 * thread.c: Use C++ exception handling.
11526 * target.c: Use C++ exception handling.
11527 * symmisc.c: Use C++ exception handling.
11528 * symfile-mem.c: Use C++ exception handling.
11529 * stack.c: Use C++ exception handling.
11530 * sparc64-linux-tdep.c: Use C++ exception handling.
11531 * solib.c: Use C++ exception handling.
11532 * solib-svr4.c: Use C++ exception handling.
11533 * solib-spu.c: Use C++ exception handling.
11534 * solib-frv.c: Use C++ exception handling.
11535 * solib-dsbt.c: Use C++ exception handling.
11536 * selftest-arch.c: Use C++ exception handling.
11537 * s390-tdep.c: Use C++ exception handling.
11538 * rust-lang.c: Use C++ exception handling.
11539 * rust-exp.y: Use C++ exception handling.
11540 * rs6000-tdep.c: Use C++ exception handling.
11541 * rs6000-aix-tdep.c: Use C++ exception handling.
11542 * riscv-tdep.c: Use C++ exception handling.
11543 * remote.c: Use C++ exception handling.
11544 * remote-fileio.c: Use C++ exception handling.
11545 * record-full.c: Use C++ exception handling.
11546 * record-btrace.c: Use C++ exception handling.
11547 * python/python.c: Use C++ exception handling.
11548 * python/py-value.c: Use C++ exception handling.
11549 * python/py-utils.c: Use C++ exception handling.
11550 * python/py-unwind.c: Use C++ exception handling.
11551 * python/py-type.c: Use C++ exception handling.
11552 * python/py-symbol.c: Use C++ exception handling.
11553 * python/py-record.c: Use C++ exception handling.
11554 * python/py-record-btrace.c: Use C++ exception handling.
11555 * python/py-progspace.c: Use C++ exception handling.
11556 * python/py-prettyprint.c: Use C++ exception handling.
11557 * python/py-param.c: Use C++ exception handling.
11558 * python/py-objfile.c: Use C++ exception handling.
11559 * python/py-linetable.c: Use C++ exception handling.
11560 * python/py-lazy-string.c: Use C++ exception handling.
11561 * python/py-infthread.c: Use C++ exception handling.
11562 * python/py-inferior.c: Use C++ exception handling.
11563 * python/py-gdb-readline.c: Use C++ exception handling.
11564 * python/py-framefilter.c: Use C++ exception handling.
11565 * python/py-frame.c: Use C++ exception handling.
11566 * python/py-finishbreakpoint.c: Use C++ exception handling.
11567 * python/py-cmd.c: Use C++ exception handling.
11568 * python/py-breakpoint.c: Use C++ exception handling.
11569 * python/py-arch.c: Use C++ exception handling.
11570 * printcmd.c: Use C++ exception handling.
11571 * ppc-linux-tdep.c: Use C++ exception handling.
11572 * parse.c: Use C++ exception handling.
11573 * p-valprint.c: Use C++ exception handling.
11574 * objc-lang.c: Use C++ exception handling.
11575 * mi/mi-main.c: Use C++ exception handling.
11576 * mi/mi-interp.c: Use C++ exception handling.
11577 * mi/mi-cmd-stack.c: Use C++ exception handling.
11578 * mi/mi-cmd-break.c: Use C++ exception handling.
11579 * main.c: Use C++ exception handling.
11580 * linux-thread-db.c: Use C++ exception handling.
11581 * linux-tdep.c: Use C++ exception handling.
11582 * linux-nat.c: Use C++ exception handling.
11583 * linux-fork.c: Use C++ exception handling.
11584 * linespec.c: Use C++ exception handling.
11585 * language.c: Use C++ exception handling.
11586 * jit.c: Use C++ exception handling.
11587 * infrun.c: Use C++ exception handling.
11588 * infcmd.c: Use C++ exception handling.
11589 * infcall.c: Use C++ exception handling.
11590 * inf-loop.c: Use C++ exception handling.
11591 * i386-tdep.c: Use C++ exception handling.
11592 * i386-linux-tdep.c: Use C++ exception handling.
11593 * guile/scm-value.c: Use C++ exception handling.
11594 * guile/scm-type.c: Use C++ exception handling.
11595 * guile/scm-symtab.c: Use C++ exception handling.
11596 * guile/scm-symbol.c: Use C++ exception handling.
11597 * guile/scm-pretty-print.c: Use C++ exception handling.
11598 * guile/scm-ports.c: Use C++ exception handling.
11599 * guile/scm-param.c: Use C++ exception handling.
11600 * guile/scm-math.c: Use C++ exception handling.
11601 * guile/scm-lazy-string.c: Use C++ exception handling.
11602 * guile/scm-frame.c: Use C++ exception handling.
11603 * guile/scm-disasm.c: Use C++ exception handling.
11604 * guile/scm-cmd.c: Use C++ exception handling.
11605 * guile/scm-breakpoint.c: Use C++ exception handling.
11606 * guile/scm-block.c: Use C++ exception handling.
11607 * guile/guile-internal.h: Use C++ exception handling.
11608 * gnu-v3-abi.c: Use C++ exception handling.
11609 * gdbtypes.c: Use C++ exception handling.
11610 * frame.c: Use C++ exception handling.
11611 * frame-unwind.c: Use C++ exception handling.
11612 * fbsd-tdep.c: Use C++ exception handling.
11613 * f-valprint.c: Use C++ exception handling.
11614 * exec.c: Use C++ exception handling.
11615 * event-top.c: Use C++ exception handling.
11616 * event-loop.c: Use C++ exception handling.
11617 * eval.c: Use C++ exception handling.
11618 * dwarf2read.c: Use C++ exception handling.
11619 * dwarf2loc.c: Use C++ exception handling.
11620 * dwarf2-frame.c: Use C++ exception handling.
11621 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11622 * dwarf-index-write.c: Use C++ exception handling.
11623 * dwarf-index-cache.c: Use C++ exception handling.
11624 * dtrace-probe.c: Use C++ exception handling.
11625 * disasm-selftests.c: Use C++ exception handling.
11626 * darwin-nat.c: Use C++ exception handling.
11627 * cp-valprint.c: Use C++ exception handling.
11628 * cp-support.c: Use C++ exception handling.
11629 * cp-abi.c: Use C++ exception handling.
11630 * corelow.c: Use C++ exception handling.
11631 * completer.c: Use C++ exception handling.
11632 * compile/compile-object-run.c: Use C++ exception handling.
11633 * compile/compile-object-load.c: Use C++ exception handling.
11634 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11635 * compile/compile-c-symbols.c: Use C++ exception handling.
11636 * common/selftest.c: Use C++ exception handling.
11637 * common/new-op.c: Use C++ exception handling.
11638 * cli/cli-script.c: Use C++ exception handling.
11639 * cli/cli-interp.c: Use C++ exception handling.
11640 * cli/cli-cmds.c: Use C++ exception handling.
11641 * c-varobj.c: Use C++ exception handling.
11642 * btrace.c: Use C++ exception handling.
11643 * breakpoint.c: Use C++ exception handling.
11644 * break-catch-throw.c: Use C++ exception handling.
11645 * arch-utils.c: Use C++ exception handling.
11646 * amd64-tdep.c: Use C++ exception handling.
11647 * ada-valprint.c: Use C++ exception handling.
11648 * ada-typeprint.c: Use C++ exception handling.
11649 * ada-lang.c: Use C++ exception handling.
11650 * aarch64-tdep.c: Use C++ exception handling.
11651
3d6e9d23
TT
116522019-04-08 Tom Tromey <tom@tromey.com>
11653
11654 * xml-support.c (gdb_xml_parser::parse): Update.
11655 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11656 * value.c (show_convenience): Update.
11657 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11658 (test_parse_flags_qcs): Update.
11659 * thread.c (thr_try_catch_cmd): Update.
11660 * target.c (target_translate_tls_address): Update.
11661 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11662 (info_frame_command_core, frame_apply_command_count): Update.
11663 * rust-exp.y (rust_lex_exception_test): Update.
11664 * riscv-tdep.c (riscv_print_one_register_info): Update.
11665 * remote.c (remote_target::enable_btrace): Update.
11666 * record-btrace.c (record_btrace_enable_warn): Update.
11667 * python/py-utils.c (gdbpy_convert_exception): Update.
11668 * printcmd.c (do_one_display, print_variable_and_value): Update.
11669 * mi/mi-main.c (mi_print_exception): Update.
11670 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11671 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11672 * linux-nat.c (linux_nat_target::attach): Update.
11673 * linux-fork.c (class scoped_switch_fork_info): Update.
11674 * infrun.c (displaced_step_prepare): Update.
11675 * infcall.c (call_function_by_hand_dummy): Update.
11676 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11677 * gnu-v3-abi.c (print_one_vtable): Update.
11678 * frame.c (get_prev_frame_always): Update.
11679 * f-valprint.c (info_common_command_for_block): Update.
11680 * exec.c (try_open_exec_file): Update.
11681 * exceptions.c (print_exception, exception_print)
11682 (exception_fprintf, exception_print_same): Update.
11683 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11684 * dwarf-index-cache.c (index_cache::store)
11685 (index_cache::lookup_gdb_index): Update.
11686 * darwin-nat.c (maybe_cache_shell): Update.
11687 * cp-valprint.c (cp_print_value_fields): Update.
11688 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11689 (gcc_cplus_symbol_address): Update.
11690 * compile/compile-c-symbols.c (gcc_convert_symbol)
11691 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11692 * common/selftest.c: Update.
11693 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11694 a std::string.
11695 (exception_try_scope_entry, exception_try_scope_exit): Don't
11696 declare.
11697 (struct exception_try_scope): Remove.
11698 (TRY): Don't use exception_try_scope.
11699 (struct gdb_exception): Add constructor, operator=.
11700 <what>: New method.
11701 (struct gdb_exception_RETURN_MASK_ALL)
11702 (struct gdb_exception_RETURN_MASK_ERROR)
11703 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11704 (struct gdb_quit_bad_alloc): Update.
11705 * common/common-exceptions.c (exception_none): Change
11706 initializer.
11707 (struct catcher) <state, exception>: Initialize inline.
11708 <prev>: Remove member.
11709 (current_catcher): Remove.
11710 (catchers): New global.
11711 (exceptions_state_mc_init): Simplify.
11712 (catcher_pop): Remove.
11713 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11714 (try_scope_depth, exception_try_scope_entry)
11715 (exception_try_scope_exit): Remove.
11716 (throw_exception_sjlj): Update.
11717 (exception_messages, exception_messages_size): Remove.
11718 (throw_it): Simplify.
11719 (gdb_exception_sliced_copy): Remove.
11720 (throw_exception_cxx): Update.
11721 * cli/cli-script.c (script_from_file): Update.
11722 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11723 Update.
11724 * ada-valprint.c (ada_val_print): Update.
11725 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11726 (create_excep_cond_exprs): Update.
11727
c5c10118
TT
117282019-04-08 Tom Tromey <tom@tromey.com>
11729
11730 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11731 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11732 (TRY, CATCH, END_CATCH): Remove some definitions.
11733 * common/common-exceptions.c: Don't use GDB_XCPT.
11734 (catcher_list_size): Remove.
11735 (throw_exception, throw_it): Simplify.
11736
4de283e4
TT
117372019-04-05 Tom Tromey <tom@tromey.com>
11738
11739 Revert the header-sorting patch.
11740 * ft32-tdep.c: Revert.
11741 * frv-tdep.c: Revert.
11742 * frv-linux-tdep.c: Revert.
11743 * frame.c: Revert.
11744 * frame-unwind.c: Revert.
11745 * frame-base.c: Revert.
11746 * fork-child.c: Revert.
11747 * findvar.c: Revert.
11748 * findcmd.c: Revert.
11749 * filesystem.c: Revert.
11750 * filename-seen-cache.h: Revert.
11751 * filename-seen-cache.c: Revert.
11752 * fbsd-tdep.c: Revert.
11753 * fbsd-nat.h: Revert.
11754 * fbsd-nat.c: Revert.
11755 * f-valprint.c: Revert.
11756 * f-typeprint.c: Revert.
11757 * f-lang.c: Revert.
11758 * extension.h: Revert.
11759 * extension.c: Revert.
11760 * extension-priv.h: Revert.
11761 * expprint.c: Revert.
11762 * exec.h: Revert.
11763 * exec.c: Revert.
11764 * exceptions.c: Revert.
11765 * event-top.c: Revert.
11766 * event-loop.c: Revert.
11767 * eval.c: Revert.
11768 * elfread.c: Revert.
11769 * dwarf2read.h: Revert.
11770 * dwarf2read.c: Revert.
11771 * dwarf2loc.c: Revert.
11772 * dwarf2expr.h: Revert.
11773 * dwarf2expr.c: Revert.
11774 * dwarf2-frame.c: Revert.
11775 * dwarf2-frame-tailcall.c: Revert.
11776 * dwarf-index-write.h: Revert.
11777 * dwarf-index-write.c: Revert.
11778 * dwarf-index-common.c: Revert.
11779 * dwarf-index-cache.h: Revert.
11780 * dwarf-index-cache.c: Revert.
11781 * dummy-frame.c: Revert.
11782 * dtrace-probe.c: Revert.
11783 * disasm.h: Revert.
11784 * disasm.c: Revert.
11785 * disasm-selftests.c: Revert.
11786 * dictionary.c: Revert.
11787 * dicos-tdep.c: Revert.
11788 * demangle.c: Revert.
11789 * dcache.h: Revert.
11790 * dcache.c: Revert.
11791 * darwin-nat.h: Revert.
11792 * darwin-nat.c: Revert.
11793 * darwin-nat-info.c: Revert.
11794 * d-valprint.c: Revert.
11795 * d-namespace.c: Revert.
11796 * d-lang.c: Revert.
11797 * ctf.c: Revert.
11798 * csky-tdep.c: Revert.
11799 * csky-linux-tdep.c: Revert.
11800 * cris-tdep.c: Revert.
11801 * cris-linux-tdep.c: Revert.
11802 * cp-valprint.c: Revert.
11803 * cp-support.c: Revert.
11804 * cp-namespace.c: Revert.
11805 * cp-abi.c: Revert.
11806 * corelow.c: Revert.
11807 * corefile.c: Revert.
11808 * continuations.c: Revert.
11809 * completer.h: Revert.
11810 * completer.c: Revert.
11811 * complaints.c: Revert.
11812 * coffread.c: Revert.
11813 * coff-pe-read.c: Revert.
11814 * cli-out.h: Revert.
11815 * cli-out.c: Revert.
11816 * charset.c: Revert.
11817 * c-varobj.c: Revert.
11818 * c-valprint.c: Revert.
11819 * c-typeprint.c: Revert.
11820 * c-lang.c: Revert.
11821 * buildsym.c: Revert.
11822 * buildsym-legacy.c: Revert.
11823 * build-id.h: Revert.
11824 * build-id.c: Revert.
11825 * btrace.c: Revert.
11826 * bsd-uthread.c: Revert.
11827 * breakpoint.h: Revert.
11828 * breakpoint.c: Revert.
11829 * break-catch-throw.c: Revert.
11830 * break-catch-syscall.c: Revert.
11831 * break-catch-sig.c: Revert.
11832 * blockframe.c: Revert.
11833 * block.c: Revert.
11834 * bfin-tdep.c: Revert.
11835 * bfin-linux-tdep.c: Revert.
11836 * bfd-target.c: Revert.
11837 * bcache.c: Revert.
11838 * ax-general.c: Revert.
11839 * ax-gdb.h: Revert.
11840 * ax-gdb.c: Revert.
11841 * avr-tdep.c: Revert.
11842 * auxv.c: Revert.
11843 * auto-load.c: Revert.
11844 * arm-wince-tdep.c: Revert.
11845 * arm-tdep.c: Revert.
11846 * arm-symbian-tdep.c: Revert.
11847 * arm-pikeos-tdep.c: Revert.
11848 * arm-obsd-tdep.c: Revert.
11849 * arm-nbsd-tdep.c: Revert.
11850 * arm-nbsd-nat.c: Revert.
11851 * arm-linux-tdep.c: Revert.
11852 * arm-linux-nat.c: Revert.
11853 * arm-fbsd-tdep.c: Revert.
11854 * arm-fbsd-nat.c: Revert.
11855 * arm-bsd-tdep.c: Revert.
11856 * arch-utils.c: Revert.
11857 * arc-tdep.c: Revert.
11858 * arc-newlib-tdep.c: Revert.
11859 * annotate.h: Revert.
11860 * annotate.c: Revert.
11861 * amd64-windows-tdep.c: Revert.
11862 * amd64-windows-nat.c: Revert.
11863 * amd64-tdep.c: Revert.
11864 * amd64-sol2-tdep.c: Revert.
11865 * amd64-obsd-tdep.c: Revert.
11866 * amd64-obsd-nat.c: Revert.
11867 * amd64-nbsd-tdep.c: Revert.
11868 * amd64-nbsd-nat.c: Revert.
11869 * amd64-nat.c: Revert.
11870 * amd64-linux-tdep.c: Revert.
11871 * amd64-linux-nat.c: Revert.
11872 * amd64-fbsd-tdep.c: Revert.
11873 * amd64-fbsd-nat.c: Revert.
11874 * amd64-dicos-tdep.c: Revert.
11875 * amd64-darwin-tdep.c: Revert.
11876 * amd64-bsd-nat.c: Revert.
11877 * alpha-tdep.c: Revert.
11878 * alpha-obsd-tdep.c: Revert.
11879 * alpha-nbsd-tdep.c: Revert.
11880 * alpha-mdebug-tdep.c: Revert.
11881 * alpha-linux-tdep.c: Revert.
11882 * alpha-linux-nat.c: Revert.
11883 * alpha-bsd-tdep.c: Revert.
11884 * alpha-bsd-nat.c: Revert.
11885 * aix-thread.c: Revert.
11886 * agent.c: Revert.
11887 * addrmap.c: Revert.
11888 * ada-varobj.c: Revert.
11889 * ada-valprint.c: Revert.
11890 * ada-typeprint.c: Revert.
11891 * ada-tasks.c: Revert.
11892 * ada-lang.c: Revert.
11893 * aarch64-tdep.c: Revert.
11894 * aarch64-ravenscar-thread.c: Revert.
11895 * aarch64-newlib-tdep.c: Revert.
11896 * aarch64-linux-tdep.c: Revert.
11897 * aarch64-linux-nat.c: Revert.
11898 * aarch64-fbsd-tdep.c: Revert.
11899 * aarch64-fbsd-nat.c: Revert.
11900 * aarch32-linux-nat.c: Revert.
11901
d55e5aa6
TT
119022019-04-05 Tom Tromey <tom@tromey.com>
11903
11904 * ft32-tdep.c: Sort headers.
11905 * frv-tdep.c: Sort headers.
11906 * frv-linux-tdep.c: Sort headers.
11907 * frame.c: Sort headers.
11908 * frame-unwind.c: Sort headers.
11909 * frame-base.c: Sort headers.
11910 * fork-child.c: Sort headers.
11911 * findvar.c: Sort headers.
11912 * findcmd.c: Sort headers.
11913 * filesystem.c: Sort headers.
11914 * filename-seen-cache.h: Sort headers.
11915 * filename-seen-cache.c: Sort headers.
11916 * fbsd-tdep.c: Sort headers.
11917 * fbsd-nat.h: Sort headers.
11918 * fbsd-nat.c: Sort headers.
11919 * f-valprint.c: Sort headers.
11920 * f-typeprint.c: Sort headers.
11921 * f-lang.c: Sort headers.
11922 * extension.h: Sort headers.
11923 * extension.c: Sort headers.
11924 * extension-priv.h: Sort headers.
11925 * expprint.c: Sort headers.
11926 * exec.h: Sort headers.
11927 * exec.c: Sort headers.
11928 * exceptions.c: Sort headers.
11929 * event-top.c: Sort headers.
11930 * event-loop.c: Sort headers.
11931 * eval.c: Sort headers.
11932 * elfread.c: Sort headers.
11933 * dwarf2read.h: Sort headers.
11934 * dwarf2read.c: Sort headers.
11935 * dwarf2loc.c: Sort headers.
11936 * dwarf2expr.h: Sort headers.
11937 * dwarf2expr.c: Sort headers.
11938 * dwarf2-frame.c: Sort headers.
11939 * dwarf2-frame-tailcall.c: Sort headers.
11940 * dwarf-index-write.h: Sort headers.
11941 * dwarf-index-write.c: Sort headers.
11942 * dwarf-index-common.c: Sort headers.
11943 * dwarf-index-cache.h: Sort headers.
11944 * dwarf-index-cache.c: Sort headers.
11945 * dummy-frame.c: Sort headers.
11946 * dtrace-probe.c: Sort headers.
11947 * disasm.h: Sort headers.
11948 * disasm.c: Sort headers.
11949 * disasm-selftests.c: Sort headers.
11950 * dictionary.c: Sort headers.
11951 * dicos-tdep.c: Sort headers.
11952 * demangle.c: Sort headers.
11953 * dcache.h: Sort headers.
11954 * dcache.c: Sort headers.
11955 * darwin-nat.h: Sort headers.
11956 * darwin-nat.c: Sort headers.
11957 * darwin-nat-info.c: Sort headers.
11958 * d-valprint.c: Sort headers.
11959 * d-namespace.c: Sort headers.
11960 * d-lang.c: Sort headers.
11961 * ctf.c: Sort headers.
11962 * csky-tdep.c: Sort headers.
11963 * csky-linux-tdep.c: Sort headers.
11964 * cris-tdep.c: Sort headers.
11965 * cris-linux-tdep.c: Sort headers.
11966 * cp-valprint.c: Sort headers.
11967 * cp-support.c: Sort headers.
11968 * cp-namespace.c: Sort headers.
11969 * cp-abi.c: Sort headers.
11970 * corelow.c: Sort headers.
11971 * corefile.c: Sort headers.
11972 * continuations.c: Sort headers.
11973 * completer.h: Sort headers.
11974 * completer.c: Sort headers.
11975 * complaints.c: Sort headers.
11976 * coffread.c: Sort headers.
11977 * coff-pe-read.c: Sort headers.
11978 * cli-out.h: Sort headers.
11979 * cli-out.c: Sort headers.
11980 * charset.c: Sort headers.
11981 * c-varobj.c: Sort headers.
11982 * c-valprint.c: Sort headers.
11983 * c-typeprint.c: Sort headers.
11984 * c-lang.c: Sort headers.
11985 * buildsym.c: Sort headers.
11986 * buildsym-legacy.c: Sort headers.
11987 * build-id.h: Sort headers.
11988 * build-id.c: Sort headers.
11989 * btrace.c: Sort headers.
11990 * bsd-uthread.c: Sort headers.
11991 * breakpoint.h: Sort headers.
11992 * breakpoint.c: Sort headers.
11993 * break-catch-throw.c: Sort headers.
11994 * break-catch-syscall.c: Sort headers.
11995 * break-catch-sig.c: Sort headers.
11996 * blockframe.c: Sort headers.
11997 * block.c: Sort headers.
11998 * bfin-tdep.c: Sort headers.
11999 * bfin-linux-tdep.c: Sort headers.
12000 * bfd-target.c: Sort headers.
12001 * bcache.c: Sort headers.
12002 * ax-general.c: Sort headers.
12003 * ax-gdb.h: Sort headers.
12004 * ax-gdb.c: Sort headers.
12005 * avr-tdep.c: Sort headers.
12006 * auxv.c: Sort headers.
12007 * auto-load.c: Sort headers.
12008 * arm-wince-tdep.c: Sort headers.
12009 * arm-tdep.c: Sort headers.
12010 * arm-symbian-tdep.c: Sort headers.
12011 * arm-pikeos-tdep.c: Sort headers.
12012 * arm-obsd-tdep.c: Sort headers.
12013 * arm-nbsd-tdep.c: Sort headers.
12014 * arm-nbsd-nat.c: Sort headers.
12015 * arm-linux-tdep.c: Sort headers.
12016 * arm-linux-nat.c: Sort headers.
12017 * arm-fbsd-tdep.c: Sort headers.
12018 * arm-fbsd-nat.c: Sort headers.
12019 * arm-bsd-tdep.c: Sort headers.
12020 * arch-utils.c: Sort headers.
12021 * arc-tdep.c: Sort headers.
12022 * arc-newlib-tdep.c: Sort headers.
12023 * annotate.h: Sort headers.
12024 * annotate.c: Sort headers.
12025 * amd64-windows-tdep.c: Sort headers.
12026 * amd64-windows-nat.c: Sort headers.
12027 * amd64-tdep.c: Sort headers.
12028 * amd64-sol2-tdep.c: Sort headers.
12029 * amd64-obsd-tdep.c: Sort headers.
12030 * amd64-obsd-nat.c: Sort headers.
12031 * amd64-nbsd-tdep.c: Sort headers.
12032 * amd64-nbsd-nat.c: Sort headers.
12033 * amd64-nat.c: Sort headers.
12034 * amd64-linux-tdep.c: Sort headers.
12035 * amd64-linux-nat.c: Sort headers.
12036 * amd64-fbsd-tdep.c: Sort headers.
12037 * amd64-fbsd-nat.c: Sort headers.
12038 * amd64-dicos-tdep.c: Sort headers.
12039 * amd64-darwin-tdep.c: Sort headers.
12040 * amd64-bsd-nat.c: Sort headers.
12041 * alpha-tdep.c: Sort headers.
12042 * alpha-obsd-tdep.c: Sort headers.
12043 * alpha-nbsd-tdep.c: Sort headers.
12044 * alpha-mdebug-tdep.c: Sort headers.
12045 * alpha-linux-tdep.c: Sort headers.
12046 * alpha-linux-nat.c: Sort headers.
12047 * alpha-bsd-tdep.c: Sort headers.
12048 * alpha-bsd-nat.c: Sort headers.
12049 * aix-thread.c: Sort headers.
12050 * agent.c: Sort headers.
12051 * addrmap.c: Sort headers.
12052 * ada-varobj.c: Sort headers.
12053 * ada-valprint.c: Sort headers.
12054 * ada-typeprint.c: Sort headers.
12055 * ada-tasks.c: Sort headers.
12056 * ada-lang.c: Sort headers.
12057 * aarch64-tdep.c: Sort headers.
12058 * aarch64-ravenscar-thread.c: Sort headers.
12059 * aarch64-newlib-tdep.c: Sort headers.
12060 * aarch64-linux-tdep.c: Sort headers.
12061 * aarch64-linux-nat.c: Sort headers.
12062 * aarch64-fbsd-tdep.c: Sort headers.
12063 * aarch64-fbsd-nat.c: Sort headers.
12064 * aarch32-linux-nat.c: Sort headers.
12065
699bd4cf
TT
120662019-04-04 Tom Tromey <tom@tromey.com>
12067
12068 * varobj.c (varobj_create): Update.
12069 * rust-exp.y (struct rust_parser) <update_innermost_block,
12070 lookup_symbol>: New methods.
12071 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12072 Rename.
12073 (rust_parser::rust_lookup_type)
12074 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12075 * printcmd.c (display_command, do_one_display): Update.
12076 * parser-defs.h (struct parser_state) <parser_state>: Add
12077 "tracker" parameter.
12078 (block_tracker): New member.
12079 (class innermost_block_tracker) <innermost_block_tracker>: Add
12080 "types" parameter.
12081 <reset>: Remove method.
12082 (innermost_block): Don't declare.
12083 (null_post_parser): Update.
12084 * parse.c (innermost_block): Remove global.
12085 (write_dollar_variable): Update.
12086 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12087 Remove "tracker_types" parameter.
12088 (parse_expression): Add "tracker" parameter.
12089 (parse_expression_for_completion): Update.
12090 (null_post_parser): Add "tracker" parameter.
12091 * p-exp.y: Update rules.
12092 * m2-exp.y: Update rules.
12093 * language.h (struct language_defn) <la_post_parser>: Add
12094 "tracker" parameter.
12095 * go-exp.y: Update rules.
12096 * f-exp.y: Update rules.
12097 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12098 parameter.
12099 * d-exp.y: Update rules.
12100 * c-exp.y: Update rules.
12101 * breakpoint.c (set_breakpoint_condition): Create an
12102 innermost_block_tracker.
12103 (watch_command_1): Likewise.
12104 * ada-lang.c (resolve): Add "tracker" parameter.
12105 (resolve_subexp): Likewise.
12106 * ada-exp.y (write_var_from_sym): Update.
12107
dac43e32
TT
121082019-04-04 Tom Tromey <tom@tromey.com>
12109
12110 * type-stack.h: New file.
12111 * type-stack.c: New file.
12112 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12113 type-stack.h.
12114 (insert_into_type_stack, insert_type, push_type, push_type_int)
12115 (insert_type_address_space, pop_type, pop_type_int)
12116 (pop_typelist, pop_type_stack, append_type_stack)
12117 (push_type_stack, get_type_stack, push_typelist)
12118 (follow_type_instance_flags, follow_types): Don't declare.
12119 * parse.c (type_stack): Remove global.
12120 (parse_exp_in_context): Update.
12121 (insert_into_type_stack, insert_type, push_type, push_type_int)
12122 (insert_type_address_space, pop_type, pop_type_int)
12123 (pop_typelist, pop_type_stack, append_type_stack)
12124 (push_type_stack, get_type_stack, push_typelist)
12125 (follow_type_instance_flags, follow_types): Remove (moved to
12126 type-stack.c).
12127 * f-exp.y (type_stack): New global.
12128 Update rules.
12129 (push_kind_type, f_parse): Update.
12130 * d-exp.y (type_stack): New global.
12131 Update rules.
12132 (d_parse): Update.
12133 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12134 Update rules.
12135 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12136 (HFILES_NO_SRCDIR): Add type-stack.h.
12137
2a612529
TT
121382019-04-04 Tom Tromey <tom@tromey.com>
12139
12140 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12141 (rust_parser::convert_ast_to_expression, rust_parse)
12142 (rust_lex_test_completion, rust_lex_tests): Update.
12143 * parser-defs.h (struct expr_completion_state): New.
12144 (struct parser_state) <parser_state>: Add completion parameter.
12145 <mark_struct_expression, mark_completion_tag>: New methods.
12146 <parse_completion, m_completion_state>: New members.
12147 (prefixify_expression, null_post_parser): Update.
12148 (mark_struct_expression, mark_completion_tag): Don't declare.
12149 * parse.c (parse_completion, expout_last_struct)
12150 (expout_tag_completion_type, expout_completion_name): Remove
12151 globals.
12152 (parser_state::mark_struct_expression)
12153 (parser_state::mark_completion_tag): Now methods.
12154 (prefixify_expression): Add last_struct parameter.
12155 (prefixify_subexp): Likewise.
12156 (parse_exp_1): Update.
12157 (parse_exp_in_context): Add cstate parameter. Update.
12158 (parse_expression_for_completion): Create an
12159 expr_completion_state.
12160 (null_post_parser): Add "completion" parameter.
12161 * p-exp.y: Update rules.
12162 (yylex): Update.
12163 * language.h (struct language_defn) <la_post_parser>: Add
12164 "completing" parameter.
12165 * go-exp.y: Update rules.
12166 (lex_one_token): Update.
12167 * expression.h (parse_completion): Don't declare.
12168 * d-exp.y: Update rules.
12169 (lex_one_token): Update rules.
12170 * c-exp.y: Update rules.
12171 (lex_one_token): Update.
12172 * ada-lang.c (resolve): Add "parse_completion" parameter.
12173 (resolve_subexp): Likewise.
12174 (ada_resolve_function): Likewise.
12175
43476f0b
TT
121762019-04-04 Tom Tromey <tom@tromey.com>
12177
12178 * parser-defs.h (struct parser_state) <start_arglist,
12179 end_arglist>: New methods.
12180 <arglist_len, m_funcall_chain>: New members.
12181 (arglist_len, start_arglist, end_arglist): Don't declare.
12182 * parse.c (arglist_len, funcall_chain): Remove global.
12183 (start_arglist, end_arglist): Remove functions.
12184 (parse_exp_in_context): Update.
12185 * p-exp.y: Update rules.
12186 * m2-exp.y: Update rules.
12187 * go-exp.y: Update rules.
12188 * f-exp.y: Update rules.
12189 * d-exp.y: Update rules.
12190 * c-exp.y: Update rules.
12191
5776fca3
TT
121922019-04-04 Tom Tromey <tom@tromey.com>
12193
12194 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12195 lex_operator, push_back>: New methods.
12196 Update all rules.
12197 (rust_parser::lex_hex, lex_escape): Rename and update.
12198 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12199 (rust_parser::lex_operator): Rename and update.
12200 (rust_parser::lex_number, rustyylex, rustyyerror)
12201 (rust_lex_test_init, rust_lex_test_sequence)
12202 (rust_lex_test_push_back, rust_lex_tests): Update.
12203 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12204 parameter.
12205 <lexptr, prev_lexptr>: New members.
12206 (lexptr, prev_lexptr): Don't declare.
12207 * parse.c (lexptr, prev_lexptr): Remove globals.
12208 (parse_exp_in_context): Update.
12209 * p-exp.y (yylex, yyerror): Update.
12210 * m2-exp.y (parse_number, yylex, yyerror): Update.
12211 * go-exp.y (lex_one_token, yyerror): Update.
12212 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12213 * d-exp.y (lex_one_token, yyerror): Update.
12214 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12215 (lex_one_token, yyerror): Update.
12216 * ada-lex.l (YY_INPUT): Update.
12217 (rewind_to_char): Update.
12218 * ada-exp.y (yyerror): Update.
12219
8621b685
TT
122202019-04-04 Tom Tromey <tom@tromey.com>
12221
12222 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12223 * parser-defs.h (struct parser_state) <parser_state>: Add new
12224 parameter.
12225 <comma_terminates>: New member.
12226 (comma_terminates): Don't declare global.
12227 * parse.c (comma_terminates): Remove global.
12228 (parse_exp_in_context): Update.
12229 * p-exp.y (yylex): Update.
12230 * m2-exp.y (yylex): Update.
12231 * go-exp.y (lex_one_token): Update.
12232 * f-exp.y (yylex): Update.
12233 * d-exp.y (lex_one_token): Update.
12234 * c-exp.y (lex_one_token): Update.
12235 * ada-lex.l: Update.
12236
28aaf3fd
TT
122372019-04-04 Tom Tromey <tom@tromey.com>
12238
12239 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12240 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12241 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12242 * parser-defs.h (paren_depth): Don't declare.
12243 * parse.c (paren_depth): Remove global.
12244 (parse_exp_in_context): Update.
12245 * p-exp.y (paren_depth): New global.
12246 (pascal_parse): Initialize it.
12247 * m2-exp.y (paren_depth): New global.
12248 (m2_parse): Initialize it.
12249 * go-exp.y (paren_depth): New global.
12250 (go_parse): Initialize it.
12251 * f-exp.y (paren_depth): New global.
12252 (f_parse): Initialize it.
12253 * d-exp.y (paren_depth): New global.
12254 (d_parse): Initialize it.
12255 * c-exp.y (paren_depth): New global.
12256 (c_parse): Initialize it.
12257 * ada-lex.l (paren_depth): New global.
12258 (lexer_init): Initialize it.
12259
1e58a4a4
TT
122602019-04-04 Tom Tromey <tom@tromey.com>
12261
12262 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12263 (rust_parser::convert_ast_to_type)
12264 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12265 * parser-defs.h (struct parser_state) <parser_state>: Add
12266 parameters. Initialize new members.
12267 <expression_context_block, expression_context_pc>: New members.
12268 * parse.c (expression_context_block, expression_context_pc):
12269 Remove globals.
12270 (parse_exp_in_context): Update.
12271 * p-exp.y: Update all rules.
12272 (yylex): Update.
12273 * m2-exp.y: Update all rules.
12274 (yylex): Update.
12275 * go-exp.y (yylex): Update.
12276 * f-exp.y (yylex): Update.
12277 * d-exp.y: Update all rules.
12278 (yylex): Update.
12279 * c-exp.y: Update all rules.
12280 (lex_one_token, classify_name, yylex, c_parse): Update.
12281 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12282
37eedb39
TT
122832019-04-04 Tom Tromey <tom@tromey.com>
12284
12285 * gdbarch.h, gdbarch.c: Rebuild.
12286 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12287 * stap-probe.h:
12288 (struct stap_parse_info): Replace "parser_state" with
12289 "expr_builder".
12290 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12291 (parser_state): New class.
12292 * parse.c (expr_builder): Rename.
12293 (expr_builder::release): Rename.
12294 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12295 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12296 (write_exp_elt_longcst, write_exp_elt_floatcst)
12297 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12298 (write_exp_string_vector, write_exp_bitstring)
12299 (write_exp_msymbol, mark_struct_expression)
12300 (write_dollar_variable)
12301 (insert_type_address_space, increase_expout_size): Replace
12302 "parser_state" with "expr_builder".
12303 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12304 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12305 "parser_state" with "expr_builder".
12306
73923d7e
TT
123072019-04-04 Tom Tromey <tom@tromey.com>
12308
12309 * rust-exp.y: Replace "parse_language" with method call.
12310 * p-exp.y:
12311 (yylex): Replace "parse_language" with method call.
12312 * m2-exp.y:
12313 (yylex): Replace "parse_language" with method call.
12314 * go-exp.y (classify_name): Replace "parse_language" with method
12315 call.
12316 * f-exp.y (yylex): Replace "parse_language" with method call.
12317 * d-exp.y (lex_one_token): Replace "parse_language" with method
12318 call.
12319 * c-exp.y:
12320 (lex_one_token, classify_name, yylex): Replace "parse_language"
12321 with method call.
12322 * ada-exp.y (find_primitive_type, type_char)
12323 (type_system_address): Replace "parse_language" with method call.
12324
fa9f5be6
TT
123252019-04-04 Tom Tromey <tom@tromey.com>
12326
12327 * rust-exp.y: Replace "parse_gdbarch" with method call.
12328 * parse.c (write_dollar_variable, insert_type_address_space):
12329 Replace "parse_gdbarch" with method call.
12330 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12331 call.
12332 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12333 call.
12334 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12335 "parse_gdbarch" with method call.
12336 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12337 with method call.
12338 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12339 "parse_gdbarch" with method call.
12340 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12341 "parse_gdbarch" with method call.
12342 * c-exp.y (parse_type, parse_number, classify_name): Replace
12343 "parse_gdbarch" with method call.
12344 * ada-lex.l: Replace "parse_gdbarch" with method call.
12345 * ada-exp.y (parse_type, find_primitive_type, type_char)
12346 (type_system_address): Replace "parse_gdbarch" with method call.
12347
1201a264
TT
123482019-04-04 Tom Tromey <tom@tromey.com>
12349
12350 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12351 * stap-probe.c (stap_parse_argument): Update.
12352 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12353 initial_size parameter.
12354 * rust-exp.y (rust_lex_tests): Update.
12355 * parse.c (parser_state): Update.
12356 (parse_exp_in_context): Update.
12357 * parser-defs.h (struct parser_state) <parser_state>: Remove
12358 "initial_size" parameter.
12359
e3980ce2
TT
123602019-04-04 Tom Tromey <tom@tromey.com>
12361
12362 * parser-defs.h (increase_expout_size): Don't declare.
12363 * parse.c (increase_expout_size): Now static.
12364
e9f8e3f1
TS
123652019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12366
12367 * gnu-nat.c (gnu_nat_target::wait): Fix
12368 target_waitstatus_to_string call.
12369
d7df6549
AB
123702019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12371
12372 * eval.c (evaluate_subexp_standard): Handle internal functions
12373 during Fortran function call handling.
12374
8bdc1658
AB
123752019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12376
12377 * NEWS: Mention new internal functions.
12378 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12379 (read_base_type): Use dwarf2_init_complex_target_type.
12380 * value.c (creal_internal_fn): New function.
12381 (cimag_internal_fn): New function.
12382 (_initialize_values): Register new internal functions.
12383
c29705b7
PW
123842019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12385
12386 * infrun.c (stop_all_threads): If debug_infrun, always
12387 trace the wait status after wait_one, using
12388 target_waitstatus_to_string and target_pid_to_str.
12389 (handle_inferior_event): Replace various trace of
12390 wait status kind by a single trace.
12391 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12392 wait status kind image by target_waitstatus_to_string.
12393 * target/waitstatus.c (target_waitstatus_to_string): Fix
12394 obsolete comment.
12395
05caa1d2
TT
123962019-04-01 Tom Tromey <tromey@adacore.com>
12397
12398 PR symtab/23331:
12399 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12400
9d1447e0
SDJ
124012019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12402 Pedro Alves <palves@redhat.com>
12403
12404 * top.c (quit_force): Call 'finalize_values'.
12405 * value.c (finalize_values): New function.
12406 * value.h (finalize_values): Declare.
12407
7734102d
EZ
124082019-03-30 Eli Zaretskii <eliz@gnu.org>
12409
12410 * NEWS: Announce $_gdb_major and $_gdb_minor.
12411
12412 * top.c (init_gdb_version_vars): New function.
12413 (gdb_init): Call init_gdb_version_vars.
12414
188e1fa9
TT
124152019-03-29 Tom Tromey <tromey@adacore.com>
12416
12417 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12418 help text. Remove dead code.
12419
2880242d
KS
124202019-03-29 Keith Seitz <keiths@redhat.com>
12421
12422 From Siddhesh Poyarekar:
12423 * f-lang.h (f77_get_upperbound): Return LONGEST.
12424 (f77_get_lowerbound): Likewise.
12425 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12426 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12427 print them.
12428 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12429 plongest to format print it.
12430 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12431 (f77_get_upperbound): Likewise.
12432 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12433 LOWER_BOUND to LONGEST.
12434 (f77_create_arrayprint_offset_tbl): Likewise.
12435
cc1defb1
KS
124362019-03-29 Keith Seitz <keiths@redhat.com>
12437
12438 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12439 %s/pulongest for TYPE_LENGTH instead of %d in format
12440 strings.
12441 * ada-typerint.c (ada_print_type): Likewise.
12442 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12443 * compile/compile-c-support.c (generate_register_struct): Likewise.
12444 * gdbtypes.c (recursive_dump_type): Likewise.
12445 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12446 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12447 instead of %d in format strings.
12448 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12449 to std::min to ULONGEST.
12450 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12451 instead of %d in format strings.
12452 * tracepoint.c (info_scope_command): Likewise.
12453 * typeprint.c (print_offset_data::update)
12454 (print_offset_data::finish): Likewise.
12455 * xtensa-tdep.c (xtensa_store_return_value)
12456 (xtensa_push_dummy_call): Likewise.
12457
e432ccf1
JT
124582019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12459
12460 * windows-nat.c (display_selector): Fixed format specifications
12461 for 64-bit Cygwin.
12462
65d2b333
PW
124632019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12464
12465 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12466
f489207e
SL
124672019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12468
12469 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12470 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12471 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12472 (nios2_linux_init_abi): Install it.
12473
bffa1015
AH
124742019-03-28 Alan Hayward <alan.hayward@arm.com>
12475
12476 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12477
fc96163a
AH
124782019-03-28 Alan Hayward <alan.hayward@arm.com>
12479
12480 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12481
20dc7e9b
PW
124822019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12483 Tom Tromey <tromey@adacore.com>
12484
12485 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12486
7f5331a8
JB
124872019-03-26 Joel Brobecker <brobecker@adacore.com>
12488
12489 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12490 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12491 method to compute the bounds of range types. Also print "[evaluated]"
12492 if the bounds' values come from a dynamic evaluation.
12493
18c77628
AB
124942019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12495
12496 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12497 whitespace when pretty printing is on.
12498
53c973f2
AH
124992019-03-26 Alan Hayward <alan.hayward@arm.com>
12500
e79be6e5 12501 * ppc-linux-nat.c: Add include.
53c973f2 12502
d851aa71
AH
125032019-03-26 Alan Hayward <alan.hayward@arm.com>
12504
e79be6e5 12505 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12506
2fe7bab7
AH
125072019-03-26 Alan Hayward <alan.hayward@arm.com>
12508
e79be6e5 12509 * arm-linux-nat.c: Add include.
2fe7bab7 12510
068ef30e
SM
125112019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12512
12513 * source-cache.c (source_cache::get_source_lines): Re-read
12514 fullname after calling open_source_file.
12515
81a24d04
JB
125162019-03-25 John Baldwin <jhb@FreeBSD.org>
12517
12518 * NEWS: Mention TLS support for FreeBSD.
12519
79e7ae11
TT
125202019-03-25 Tom Tromey <tromey@adacore.com>
12521
12522 * minsyms.c (BUNCH_SIZE): Update comment.
12523 (~minimal_symbol_reader): Remove old comment.
12524 (compact_minimal_symbols): Update comment.
12525 (minimal_symbol_reader::install): Remove old comment. Update
12526 other comments.
12527
d45963c2
AH
125282019-03-25 Alan Hayward <alan.hayward@arm.com>
12529
12530 * s390-linux-nat.c: Add include.
12531
0f83012e
AH
125322019-03-25 Alan Hayward <alan.hayward@arm.com>
12533
12534 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12535 Call linux_get_hwcap.
12536 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12537 Likewise.
12538 (aarch64_linux_get_hwcap): Remove function.
12539 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12540 declaration.
12541 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12542 linux_get_hwcap.
12543 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12544 * linux-tdep.c (linux_get_hwcap): Add function.
12545 (linux_get_hwcap2): Likewise.
12546 * linux-tdep.h (linux_get_hwcap): Add declaration.
12547 (linux_get_hwcap2): Likewise.
12548 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12549 (ppc_linux_get_hwcap2): Likewise.
12550 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12551 linux_get_hwcap.
12552 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12553 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12554 (ppc_linux_nat_target::read_description): Likewise.
12555 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12556 * s390-linux-nat.c: Likewise.
12557 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12558
6640a367
TT
125592019-03-24 Tom Tromey <tom@tromey.com>
12560
12561 * ada-lang.c (standard_lookup): Simplify initialization.
12562 (ada_lookup_symbol_nonlocal): Simplify return.
12563 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12564 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12565 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12566 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12567 initialization.
12568 * solib.c (solib_global_lookup): Simplify.
12569 * symtab.c (null_block_symbol): Remove.
12570 (symbol_cache_lookup): Simplify returns.
12571 (lookup_language_this): Simplify returns.
12572 (lookup_symbol_aux): Simplify return.
12573 (lookup_local_symbol): Simplify returns.
12574 (lookup_global_symbol_from_objfile): Simplify return.
12575 (lookup_symbol_in_objfile_symtabs)
12576 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12577 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12578 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12579 * cp-namespace.c (cp_lookup_bare_symbol)
12580 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12581 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12582 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12583 (cp_lookup_symbol_via_imports): Simplify initialization.
12584 (find_symbol_in_baseclass): Likewise.
12585 * symtab.h (null_block_symbol): Remove.
12586 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12587 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12588 (d_lookup_symbol_module): Likewise.
12589 (find_symbol_in_baseclass): Simplify initialization.
12590
a930ebcd
TT
125912019-03-24 Tom Tromey <tom@tromey.com>
12592
12593 * expression.h: Don't include symtab.h.
12594 (struct block): Forward declare.
12595
582942f4
TT
125962019-03-24 Tom Tromey <tom@tromey.com>
12597
12598 * c-exp.y (typebase): Remove casts.
12599 * gdbtypes.c (lookup_unsigned_typename, )
12600 (lookup_signed_typename): Remove cast.
12601 * eval.c (parse_to_comma_and_eval): Remove cast.
12602 * parse.c (write_dollar_variable): Remove cast.
12603 * block.h (struct block) <superblock>: Now const.
12604 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12605 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12606 (map_block): Make "block" const.
12607 * symfile.h (struct quick_symbol_functions)
12608 <map_matching_symbols>: Constify block argument to "callback".
12609 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12610 const.
12611 (find_pc_sect_compunit_symtab): Make "b" const.
12612 (find_symbol_at_address): Likewise.
12613 (search_symbols): Likewise.
12614 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12615 (dw2_debug_names_lookup_symbol): Likewise.
12616 (dw2_map_matching_symbols): Update.
12617 * p-valprint.c (pascal_val_print): Remove "block".
12618 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12619 (aux_add_nonlocal_symbols): Make "block" const.
12620 (resolve_subexp): Remove cast.
12621 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12622 const.
12623 (iterate_over_file_blocks): Likewise.
12624 * f-exp.y (%union) <bval>: Remove.
12625 * coffread.c (patch_opaque_types): Make "b" const.
12626 * spu-tdep.c (spu_catch_start): Make "block" const.
12627 * c-valprint.c (print_unpacked_pointer): Remove "block".
12628 * symmisc.c (dump_symtab_1): Make "b" const.
12629 (block_depth): Make "block" const.
12630 * d-exp.y (%union) <bval>: Remove.
12631 * cp-support.h (cp_lookup_rtti_type): Update.
12632 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12633 * psymtab.c (psym_lookup_symbol): Make "block" const.
12634 (maintenance_check_psymtabs): Make "b" const.
12635 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12636 (enumerate_locals, enumerate_args): Update.
12637 * python/py-symtab.c (stpy_global_block): Make "block" const.
12638 (stpy_static_block): Likewise.
12639 * inline-frame.c (block_starting_point_at): Make "new_block"
12640 const.
12641 * block.c (find_block_in_blockvector): Make return type const.
12642 (blockvector_for_pc_sect): Make "b" const.
12643 (find_block_in_blockvector): Make "b" const.
12644
7ad417dd
TT
126452019-03-23 Tom Tromey <tom@tromey.com>
12646
12647 * varobj.c (varobj_create): Update.
12648 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12649 * printcmd.c (display_command, do_one_display): Don't reset
12650 innermost_block.
12651 * parser-defs.h (enum innermost_block_tracker_type): Move to
12652 expression.h.
12653 (innermost_block): Update comment.
12654 * parse.c (parse_exp_1): Add tracker_types parameter.
12655 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12656 tracker_types parameter. Reset innermost_block.
12657 (parse_exp_in_context): Remove.
12658 (parse_expression_for_completion): Update.
12659 * objfiles.c (~objfile): Don't reset expression_context_block or
12660 innermost_block.
12661 * expression.h (enum innermost_block_tracker_type): Move from
12662 parser-defs.h.
12663 (parse_exp_1): Add tracker_types parameter.
12664 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12665 reset innermost_block.
12666
b366c208
TT
126672019-03-23 Tom Tromey <tom@tromey.com>
12668
12669 * objfiles.h: Include bcache.h.
12670
9bb9b2f9
TT
126712019-03-23 Tom Tromey <tom@tromey.com>
12672
12673 * linespec.c (get_current_search_block): Use
12674 scoped_restore_current_language.
12675 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12676
59c28372
AH
126772019-03-22 Alan Hayward <alan.hayward@arm.com>
12678 Jiong Wang <jiong.wang@arm.com>
12679
12680 * aarch64-linux-tdep.c
12681 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12682 section.
12683 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12684
17e116a7
AH
126852019-03-22 Alan Hayward <alan.hayward@arm.com>
12686 Jiong Wang <jiong.wang@arm.com>
12687
12688 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12689 instructions.
12690 (aarch64_analyze_prologue_test): Add PACIASP test.
12691 (aarch64_prologue_prev_register): Unmask PC value.
12692
11e1b75f
AH
126932019-03-22 Alan Hayward <alan.hayward@arm.com>
12694 Jiong Wang <jiong.wang@arm.com>
12695
12696 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12697 (aarch64_dwarf2_prev_register): Unmask PC value.
12698 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12699 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12700 DW_CFA_AARCH64_negate_ra_state.
12701 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12702
34dcc7cf
AH
127032019-03-22 Alan Hayward <alan.hayward@arm.com>
12704 Jiong Wang <jiong.wang@arm.com>
12705
12706 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12707 registers.
12708 (aarch64_pseudo_register_name): Likewise.
12709 (aarch64_pseudo_register_type): Likewise.
12710 (aarch64_pseudo_register_reggroup_p): Likewise.
12711 (aarch64_gdbarch_init): Add pauth registers.
12712 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12713 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12714 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12715 (struct gdbarch_tdep): Add regnum for ra_state.
12716
1ef53e6b
AH
127172019-03-22 Alan Hayward <alan.hayward@arm.com>
12718 Jiong Wang <jiong.wang@arm.com>
12719
12720 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12721
76bed0fd
AH
127222019-03-22 Alan Hayward <alan.hayward@arm.com>
12723 Jiong Wang <jiong.wang@arm.com>
12724
12725 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12726 function.
12727 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12728 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12729 (aarch64_gdbarch_init): Add puth registers.
12730 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12731 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12732 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12733
ee4fbcfa
AH
127342019-03-22 Alan Hayward <alan.hayward@arm.com>
12735 Jiong Wang <jiong.wang@arm.com>
12736
12737 * aarch64-linux-nat.c
12738 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12739 * aarch64-linux-tdep.c
12740 (aarch64_linux_core_read_description): Likewise.
12741 (aarch64_linux_get_hwcap): New function.
12742 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12743 (aarch64_linux_get_hwcap): New declaration.
12744
6dc0ebde
AH
127452019-03-22 Alan Hayward <alan.hayward@arm.com>
12746 Jiong Wang <jiong.wang@arm.com>
12747
12748 * aarch64-linux-nat.c
12749 (aarch64_linux_nat_target::read_description): Add pauth param.
12750 * aarch64-linux-tdep.c
12751 (aarch64_linux_core_read_description): Likewise.
12752 * aarch64-tdep.c (struct target_desc): Add in pauth.
12753 (aarch64_read_description): Add pauth param.
12754 (aarch64_gdbarch_init): Likewise.
12755 * aarch64-tdep.h (aarch64_read_description): Likewise.
12756 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12757 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12758 * features/Makefile: Add new files.
12759 * features/aarch64-pauth.c: New file.
12760 * features/aarch64-pauth.xml: New file.
12761
595915c1
TT
127622019-03-20 Tom Tromey <tromey@adacore.com>
12763
12764 * infrun.c (handle_inferior_event): Rename from
12765 handle_inferior_event_1. Create a scoped_value_mark.
12766 (handle_inferior_event): Remove.
12767
4c7d57e7
TT
127682019-03-19 Tom Tromey <tromey@adacore.com>
12769
12770 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12771 * infrun.h (print_stop_event): Add "displays" parameter.
12772 * infrun.c (print_stop_event): Add "displays" parameter.
12773
cb246234
PA
127742019-03-19 Pedro Alves <palves@redhat.com>
12775
12776 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12777 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12778 to -1. Fix TABs vs spaces.
12779 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12780 * tui/tui-out.h (tui_ui_out) Add intro comments.
12781 <m_line, m_start_of_line>: In-class initialize, and add describing
12782 comment.
12783
3a0e45b2
AH
127842019-03-18 Alan Hayward <alan.hayward@arm.com>
12785
12786 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12787 variable names.
12788 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12789
5371b850
PA
127902019-03-18 Pedro Alves <palves@redhat.com>
12791 Eli Zaretskii <eliz@gnu.org>
12792
12793 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12794 m_line and m_start_of_line.
12795
b17c4cd0
EZ
127962019-03-18 Eli Zaretskii <eliz@gnu.org>
12797
12798 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12799 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12800 it returns a newline. This fixes a regression in TU mode, whereby
12801 the next line is output on the same screen line as the user input.
12802
4bd56d18
TT
128032019-03-18 Tom Tromey <tromey@adacore.com>
12804
12805 * minsyms.c (minimal_symbol_reader::install): Remove call to
12806 obstack_blank.
12807
55c10aca
PA
128082019-03-18 Pedro Alves <palves@redhat.com>
12809
12810 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12811 New globals.
12812 (apply_style): New, factored out from ...
12813 (apply_ansi_escape): ... this. Handle reverse video mode.
12814 (tui_set_reverse_mode): New function.
12815 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12816 * tui/tui-winsource.c (tui_show_source_line): Use
12817 tui_set_reverse_mode instead of setting A_STANDOUT.
12818 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12819 New setter methods.
12820
647bb750
HD
128212019-03-18 Hannes Domani <ssbssa@yahoo.de>
12822
12823 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12824 Handle tabs.
12825
bff8c71f
TT
128262019-03-18 Tom Tromey <tromey@adacore.com>
12827
12828 * ada-lang.c (empty_array): Add "high" parameter.
12829 (ada_evaluate_subexp): Update.
12830
58785d98
ST
128312019-03-17 Sergei Trofimovich <siarheit@google.com>
12832
12833 * unittests/string_view-selftests.c: Define
12834 _initialize_string_view_selftests unconditionally.
12835
d4cbef22
ВМ
128362019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12837
12838 PR gdb/24350
12839 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12840
fce4c071
ВМ
128412019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12842
12843 PR gdb/24351
12844 * windows-nat.c (display_selector): Fix format specifiers.
12845
f7f0a123
EZ
128462019-03-17 Eli Zaretskii <eliz@gnu.org>
12847
12848 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12849 tui_refill_source_window instead of tui_refresh_win, to update the
12850 current execution line. This fixes redisplay of the current line
12851 when stepping through the code with "next" or "step".
12852
ab42892f
EZ
128532019-03-16 Eli Zaretskii <eliz@gnu.org>
12854
12855 * source-cache.c (source_cache::get_source_lines): Call
12856 find_source_lines to initialize s->nlines. This fixes vertical
12857 scrolling of TUI source window when the DOWN arrow is pressed.
12858
8d8c087f
PW
128592019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12860
12861 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12862 linux-thread-db.c (_initialize_thread_db): Likewise.
12863
798e1c30
EZ
128642019-03-16 Eli Zaretskii <eliz@gnu.org>
12865
12866 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12867 wclrtoeol in tui_show_source_line". This reverts changes made in
12868 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12869
eefba3da
TT
128702019-03-15 Tom Tromey <tom@tromey.com>
12871
12872 * symtab.h (struct minimal_symbol): Derive from
12873 general_symbol_info.
12874 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12875 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12876 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12877 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12878 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12879 (MSYMBOL_SEARCH_NAME): Update.
12880 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12881 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12882 * minsyms.c (minimal_symbol_reader::record_full): Update.
12883
0de2420c
TT
128842019-03-15 Tom Tromey <tom@tromey.com>
12885
12886 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12887
042d75e4
TT
128882019-03-15 Tom Tromey <tom@tromey.com>
12889
12890 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12891 unique_xmalloc_ptr.
12892 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12893 Update.
12894 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12895 (build_minimal_symbol_hash_tables)
12896 (minimal_symbol_reader::install): Update.
12897
db92718b
TT
128982019-03-15 Tom Tromey <tom@tromey.com>
12899
12900 * symtab.c (create_demangled_names_hash): Update.
12901 (symbol_set_names): Update.
12902 * objfiles.h (struct objfile_per_bfd_storage)
12903 <demangled_names_hash>: Now an htab_up.
12904 * objfiles.c (objfile_per_bfd_storage): Simplify.
12905
d6797f46
TT
129062019-03-15 Tom Tromey <tom@tromey.com>
12907
12908 * objfiles.h (struct objfile_per_bfd_storage): Declare
12909 destructor.
12910 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12911 New.
12912 (get_objfile_bfd_data): Use new. Don't initialize
12913 language_of_main.
12914 (free_objfile_per_bfd_storage): Remove.
12915 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12916
741d7538
TT
129172019-03-15 Tom Tromey <tom@tromey.com>
12918
12919 * symfile.c (reread_symbols): Update.
12920 * objfiles.c (objfile::objfile): Update.
12921 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12922 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12923 comment.
12924 (minimal_symbol_reader::install): Update.
12925 (terminate_minimal_symbol_table): Remove.
12926 * jit.c (jit_object_close_impl): Update.
12927
788c80d1
TT
129282019-03-15 Tom Tromey <tom@tromey.com>
12929
12930 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12931 initializations.
12932
1b7a07cb
TT
129332019-03-15 Tom Tromey <tom@tromey.com>
12934
12935 * objfiles.h (struct objfile_per_bfd_storage)
12936 <demangled_hash_languages>: Now a bitset.
12937 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12938 (lookup_minimal_symbol): Update.
12939
3db066bc
TT
129402019-03-15 Tom Tromey <tom@tromey.com>
12941
12942 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12943 Don't return the symbol.
12944 * coffread.c (record_minimal_symbol): Use record_full.
12945
3fff2c37
EZ
129462019-03-14 Eli Zaretskii <eliz@gnu.org>
12947
12948 The MS-Windows port of ncurses fails to switch to a color pair if
12949 one or both of the colors are the implicit default colors. This
12950 change records the default colors when TUI is initialized, and
12951 then specifies them explicitly when a color pair uses the default
12952 colors. This allows color styling in TUI mode on MS-Windows.
12953
12954 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12955 ncurses_norm_attr.
12956 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12957 colors in ncurses_norm_attr.
12958 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12959 "none", replace it with the default color recorded in
12960 ncurses_norm_attr.
12961
3b336828
TT
129622019-03-14 Tom Tromey <tromey@adacore.com>
12963
12964 * source-cache.h (class source_cache) <get_source_lines>: Return
12965 std::string.
12966 * source-cache.c (source_cache::extract_lines): Handle case where
12967 first_pos==npos. Return std::string.
12968 (source_cache::get_source_lines): Update.
12969
d085f989
TT
129702019-03-14 Tom Tromey <tromey@adacore.com>
12971
12972 * NEWS: Add item for "style sources" commands.
12973 * source-cache.c (source_cache::get_source_lines): Check
12974 source_styling.
12975 * cli/cli-style.c (source_styling): New global.
12976 (_initialize_cli_style): Add "style sources" commands.
12977 (show_style_sources): New function.
12978 * cli/cli-style.h (source_styling): Declare.
12979
6f11e682
TT
129802019-03-14 Pedro Alves <palves@redhat.com>
12981 Tom Tromey <tromey@adacore.com>
12982
12983 * tui/tui-winsource.h (tui_refill_source_window): Declare.
12984 * tui/tui-winsource.c (tui_refill_source_window): New function,
12985 from...
12986 (tui_horizontal_source_scroll): ... here. Move some logic.
12987 * cli/cli-style.c (set_style_enabled): Notify new observable.
12988 * tui/tui-hooks.c (tui_redisplay_source): New function.
12989 (tui_attach_detach_observers): Attach or detach
12990 tui_redisplay_source.
12991 * observable.h (source_styling_changed): New observable.
12992 * observable.c: Define source_styling_changed observable.
12993
a068643d
TT
129942019-03-13 Tom Tromey <tromey@adacore.com>
12995
12996 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
12997 (i386_gnu_nat_target::store_registers): Update.
12998 * target-debug.h (target_debug_print_std_string): New macro.
12999 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13000 * windows-tdep.c (display_one_tib): Update.
13001 * tui/tui-stack.c (tui_make_status_line): Update.
13002 * top.c (print_inferior_quit_action): Update.
13003 * thread.c (thr_try_catch_cmd): Update.
13004 (add_thread_with_info): Update.
13005 (thread_target_id_str): Update.
13006 (thr_try_catch_cmd): Update.
13007 (thread_command): Update.
13008 (thread_find_command): Update.
13009 * record-btrace.c (record_btrace_target::info_record)
13010 (record_btrace_resume_thread, record_btrace_target::resume)
13011 (record_btrace_cancel_resume, record_btrace_step_thread)
13012 (record_btrace_target::wait, record_btrace_target::wait)
13013 (record_btrace_target::wait, record_btrace_target::stop): Update.
13014 * progspace.c (print_program_space): Update.
13015 * process-stratum-target.c
13016 (process_stratum_target::thread_address_space): Update.
13017 * linux-fork.c (linux_fork_mourn_inferior)
13018 (detach_checkpoint_command, info_checkpoints_command)
13019 (linux_fork_context): Update.
13020 (linux_fork_detach): Update.
13021 (class scoped_switch_fork_info): Update.
13022 (delete_checkpoint_command): Update.
13023 * infrun.c (follow_fork_inferior): Update.
13024 (follow_fork_inferior): Update.
13025 (proceed_after_vfork_done): Update.
13026 (handle_vfork_child_exec_or_exit): Update.
13027 (follow_exec): Update.
13028 (displaced_step_prepare_throw): Update.
13029 (displaced_step_restore): Update.
13030 (start_step_over): Update.
13031 (resume_1): Update.
13032 (clear_proceed_status_thread): Update.
13033 (proceed): Update.
13034 (print_target_wait_results): Update.
13035 (do_target_wait): Update.
13036 (context_switch): Update.
13037 (stop_all_threads): Update.
13038 (restart_threads): Update.
13039 (finish_step_over): Update.
13040 (handle_signal_stop): Update.
13041 (switch_back_to_stepped_thread): Update.
13042 (keep_going_pass_signal): Update.
13043 (print_exited_reason): Update.
13044 (normal_stop): Update.
13045 * inferior.c (inferior_pid_to_str): Change return type.
13046 (print_selected_inferior): Update.
13047 (add_inferior): Update.
13048 (detach_inferior): Update.
13049 * dummy-frame.c (fprint_dummy_frames): Update.
13050 * dcache.c (dcache_info_1): Update.
13051 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13052 (btrace_fetch, btrace_clear): Update.
13053 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13054 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13055 type.
13056 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13057 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13058 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13059 * gdbarch.c, gdbarch.h: Rebuild.
13060 * gdbarch.sh (core_pid_to_str): Change return type.
13061 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13062 return type.
13063 (windows_nat_target::pid_to_str): Change return type.
13064 (windows_delete_thread): Update.
13065 (windows_nat_target::attach): Update.
13066 (windows_nat_target::files_info): Update.
13067 * target-delegates.c: Rebuild.
13068 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13069 return type.
13070 (sol_thread_target::pid_to_str): Change return type.
13071 * remote.c (class remote_target) <pid_to_str>: Change return
13072 type.
13073 (remote_target::pid_to_str): Change return type.
13074 (extended_remote_target::attach, remote_target::remote_stop_ns)
13075 (remote_target::remote_notif_remove_queued_reply)
13076 (remote_target::push_stop_reply, remote_target::disable_btrace):
13077 Update.
13078 (extended_remote_target::attach): Update.
13079 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13080 type.
13081 (gdbsim_target::pid_to_str): Change return type.
13082 * ravenscar-thread.c (struct ravenscar_thread_target)
13083 <pid_to_str>: Change return type.
13084 (ravenscar_thread_target::pid_to_str): Change return type.
13085 * procfs.c (class procfs_target) <pid_to_str>: Change return
13086 type.
13087 (procfs_target::pid_to_str): Change return type.
13088 (procfs_target::attach): Update.
13089 (procfs_target::detach): Update.
13090 (procfs_target::fetch_registers): Update.
13091 (procfs_target::store_registers): Update.
13092 (procfs_target::wait): Update.
13093 (procfs_target::files_info): Update.
13094 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13095 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13096 return type.
13097 (nto_procfs_target::pid_to_str): Change return type.
13098 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13099 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13100 return type.
13101 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13102 (exit_lwp): Update.
13103 (attach_proc_task_lwp_callback, get_detach_signal)
13104 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13105 (linux_nat_target::resume, wait_lwp, stop_callback)
13106 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13107 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13108 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13109 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13110 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13111 type.
13112 (inf_ptrace_target::attach): Update.
13113 (inf_ptrace_target::files_info): Update.
13114 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13115 type.
13116 (go32_nat_target::pid_to_str): Change return type.
13117 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13118 (gnu_nat_target::wait): Update.
13119 (gnu_nat_target::wait): Update.
13120 (gnu_nat_target::resume): Update.
13121 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13122 (fbsd_nat_target::wait): Update.
13123 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13124 type.
13125 (darwin_nat_target::attach): Update.
13126 * corelow.c (class core_target) <pid_to_str>: Change return type.
13127 (core_target::pid_to_str): Change return type.
13128 * target.c (normal_pid_to_str): Change return type.
13129 (default_pid_to_str): Likewise.
13130 (target_pid_to_str): Change return type.
13131 (target_translate_tls_address): Update.
13132 (target_announce_detach): Update.
13133 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13134 return type.
13135 (bsd_uthread_target::pid_to_str): Change return type.
13136 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13137 type.
13138 (bsd_kvm_target::pid_to_str): Change return type.
13139 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13140 return type.
13141 (aix_thread_target::pid_to_str): Change return type.
13142 * target.h (struct target_ops) <pid_to_str>: Change return type.
13143 (target_pid_to_str, normal_pid_to_str): Likewise.
13144 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13145 type.
13146 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13147 type.
13148 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13149 return type.
13150 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13151 type.
13152 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13153 type.
13154 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13155 return type.
13156
b4be1b06
SM
131572019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13158
13159 * NEWS: Mention that the new default MI version is 3. Mention
13160 changes to the output of commands and events that deal with
13161 multi-location breakpoints.
13162 * breakpoint.c: Include "mi/mi-out.h".
13163 (print_one_breakpoint): Change output syntax if using MI version
13164 >= 3.
13165 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13166 New.
13167 (mi_multi_location_breakpoint_output_fixed): New.
13168 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13169 (mi_cmd_fix_multi_location_breakpoint_output): New.
13170 (mi_multi_location_breakpoint_output_fixed): New.
13171 * mi/mi-cmds.c (mi_cmds): Register command
13172 -fix-multi-location-breakpoint-output.
13173 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13174 interpreter "mi".
13175
8e5e5494
SM
131762019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13177
13178 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13179 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13180 instantiate mi_ui_out based on interpreter name.
13181 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13182 * mi/mi-main.c (mi_load_progress): Likewise.
13183
197df35e
JB
131842019-03-12 John Baldwin <jhb@FreeBSD.org>
13185
13186 * NEWS: Combine separate "New targets" sections for 8.3.
13187
8399425f
JB
131882019-03-12 John Baldwin <jhb@FreeBSD.org>
13189
13190 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13191 (ppcfbsd_init_abi): Install gdbarch
13192 "fetch_tls_load_module_address" and "get_thread_local_address"
13193 methods.
13194
b0f87ed0
JB
131952019-03-12 John Baldwin <jhb@FreeBSD.org>
13196
13197 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13198 (riscv_fbsd_init_abi): Install gdbarch
13199 "fetch_tls_load_module_address" and "get_thread_local_address"
13200 methods.
13201
ce25aa57
JB
132022019-03-12 John Baldwin <jhb@FreeBSD.org>
13203
13204 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13205 (i386fbsd_init_abi): Install gdbarch
13206 "fetch_tls_load_module_address" and "get_thread_local_address"
13207 methods.
13208
f5424cfa
JB
132092019-03-12 John Baldwin <jhb@FreeBSD.org>
13210
13211 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13212 (amd64fbsd_init_abi): Install gdbarch
13213 "fetch_tls_load_module_address" and "get_thread_local_address"
13214 methods.
13215
945f3901
JB
132162019-03-12 John Baldwin <jhb@FreeBSD.org>
13217
13218 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13219 (struct fbsd_pspace_data): New type.
13220 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13221 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13222 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13223 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13224 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13225
ef0bd204
JB
132262019-03-12 John Baldwin <jhb@FreeBSD.org>
13227
13228 * gdbtypes.c (lookup_struct_elt): New function.
13229 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13230 * gdbtypes.h (struct struct_elt): New type.
13231 (lookup_struct_elt): New prototype.
13232
36c53a02
JB
132332019-03-12 John Baldwin <jhb@FreeBSD.org>
13234
13235 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13236 remove disabled code block.
13237
6e056c81
JB
132382019-03-12 John Baldwin <jhb@FreeBSD.org>
13239
13240 * gdbarch.sh (get_thread_local_address): New method.
13241 * gdbarch.h, gdbarch.c: Regenerate.
13242 * target.c (target_translate_tls_address): Use
13243 gdbarch_get_thread_local_address if present instead of
13244 target::get_thread_local_address.
13245
cd250a18
JB
132462019-03-12 John Baldwin <jhb@FreeBSD.org>
13247
13248 * target.h (target::get_thread_local_address): Update comment.
13249
df22c1e5
JB
132502019-03-12 John Baldwin <jhb@FreeBSD.org>
13251
13252 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13253 objfile->separate_debug_objfile_backlink if not NULL.
13254
dd6876c9
JB
132552019-03-12 John Baldwin <jhb@FreeBSD.org>
13256
13257 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13258 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13259 (amd64bsd_store_inferior_registers): Likewise.
13260 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13261 Enable segment base registers.
13262 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13263 PT_GETFSBASE and PT_GETGSBASE.
13264 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13265 PT_SETGSBASE.
13266 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13267 segment base registers.
13268 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13269
1163a4b7
JB
132702019-03-12 John Baldwin <jhb@FreeBSD.org>
13271
13272 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13273 Update calls to i386_target_description to add 'segments'
13274 parameter.
13275 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13276 add segment base registers.
13277 * arch/i386.c (i386_create_target_description): Add 'segments'
13278 parameter to enable segment base registers.
13279 * arch/i386.h (i386_create_target_description): Likewise.
13280 * features/i386/32bit-segments.xml: New file.
13281 * features/i386/32bit-segments.c: Generate.
13282 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13283 call to i386_target_description to add 'segments' parameter.
13284 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13285 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13286 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13287 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13288 if feature is present.
13289 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13290 Add 'segments' parameter to call to i386_target_description.
13291 (i386_target_description): Add 'segments' parameter to enable
13292 segment base registers.
13293 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13294 to call to i386_target_description.
13295 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13296 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13297 Define I386_NUM_REGS.
13298 (i386_target_description): Add 'segments' parameter to enable
13299 segment base registers.
13300
3a350822
EZ
133012019-03-12 Eli Zaretskii <eliz@gnu.org>
13302
13303 PR/24325
13304 * source-cache.c: #undef open and close, to avoid unresolved
13305 externals during linking.
13306
ffdd69cf
TT
133072019-03-12 Tom Tromey <tromey@adacore.com>
13308
13309 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13310 const. Add initializers.
13311 (_initialize_remote): Don't initialize ptid globals.
13312
ec148c57
PA
133132019-03-12 Pedro Alves <palves@redhat.com>
13314
13315 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13316
32764270
PA
133172019-03-12 Pedro Alves <palves@redhat.com>
13318
13319 * cp-name-parser.y (main): Remove unused 'len' variable.
13320
17547186
TT
133212019-03-12 Tom Tromey <tromey@adacore.com>
13322
13323 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13324 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13325
d3a70e03
TT
133262019-03-12 Tom Tromey <tromey@adacore.com>
13327
13328 * linux-nat.c (iterate_over_lwps): Update.
13329 (stop_callback): Remove parameter.
13330 (stop_wait_callback, detach_callback, resume_set_callback)
13331 (select_singlestep_lwp_callback, set_ignore_sigint)
13332 (status_callback, resumed_callback, resume_clear_callback)
13333 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13334 data parameter.
13335 (linux_nat_target::detach, linux_nat_target::resume)
13336 (linux_stop_and_wait_all_lwps, select_event_lwp)
13337 (linux_nat_filter_event, linux_nat_wait_1)
13338 (linux_nat_target::kill, linux_nat_target::stop)
13339 (linux_nat_target::stop): Update.
13340 (linux_nat_resume_callback): Change type.
13341 (resume_stopped_resumed_lwps, count_events_callback)
13342 (select_event_lwp_callback): Likewise.
13343 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13344 * arm-linux-nat.c (struct update_registers_data): Remove.
13345 (update_registers_callback): Change type.
13346 (arm_linux_insert_hw_breakpoint1): Update.
13347 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13348 parameter.
13349 (x86_linux_dr_set_addr): Update.
13350 (x86_linux_dr_set_control): Update.
13351 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13352 (iterate_over_lwps): Use gdb::function_view.
13353 * nat/aarch64-linux-hw-point.c (struct
13354 aarch64_dr_update_callback_param): Remove.
13355 (debug_reg_change_callback): Change type.
13356 (aarch64_notify_debug_reg_change): Update.
13357 * s390-linux-nat.c (s390_refresh_per_info): Update.
13358
82cb27ff
TT
133592019-03-11 Tom Tromey <tromey@adacore.com>
13360
13361 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13362 redundant assignment to "this_cu".
13363
568c0683
SM
133642019-03-08 Simon Marchi <simon.marchi@efficios.com>
13365
13366 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13367
f09ce22d
SM
133682019-03-08 Simon Marchi <simon.marchi@efficios.com>
13369
13370 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13371 from...
13372 (rank_one_type): ... this.
13373
595f96a9
SM
133742019-03-08 Simon Marchi <simon.marchi@efficios.com>
13375
13376 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13377 from...
13378 (rank_one_type): ... this.
13379
2598a94b
SM
133802019-03-08 Simon Marchi <simon.marchi@efficios.com>
13381
13382 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13383 from...
13384 (rank_one_type): ... this.
13385
7f17b20d
SM
133862019-03-08 Simon Marchi <simon.marchi@efficios.com>
13387
13388 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13389 from...
13390 (rank_one_type): ... this.
13391
2c509035
SM
133922019-03-08 Simon Marchi <simon.marchi@efficios.com>
13393
13394 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13395 from...
13396 (rank_one_type): ... this.
13397
0dd322dc
SM
133982019-03-08 Simon Marchi <simon.marchi@efficios.com>
13399
13400 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13401 from...
13402 (rank_one_type): ... this.
13403
41ea4728
SM
134042019-03-08 Simon Marchi <simon.marchi@efficios.com>
13405
13406 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13407 from...
13408 (rank_one_type): ... this.
13409
793cd1d2
SM
134102019-03-08 Simon Marchi <simon.marchi@efficios.com>
13411
13412 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13413 from...
13414 (rank_one_type): ... this.
13415
34910087
SM
134162019-03-08 Simon Marchi <simon.marchi@efficios.com>
13417
13418 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13419 from...
13420 (rank_one_type): ... this.
13421
f1f832d6
SM
134222019-03-08 Simon Marchi <simon.marchi@efficios.com>
13423
13424 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13425 from...
13426 (rank_one_type): ... this.
13427
b9f4512f
SM
134282019-03-08 Simon Marchi <simon.marchi@efficios.com>
13429
13430 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13431 from...
13432 (rank_one_type): ... this.
13433
9293fc63
SM
134342019-03-08 Simon Marchi <simon.marchi@efficios.com>
13435
13436 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13437 from...
13438 (rank_one_type): ... this.
13439
e3abbe7e
PW
134402019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13441
13442 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13443 inferior-events' shows the example events.
13444
e4adb939
EZ
134452019-03-08 Eli Zaretskii <eliz@gnu.org>
13446
13447 Support styling on native MS-Windows console
13448
13449 PR/24315
13450 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13451 on MS-Windows if $TERM is not defined.
13452
13453 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13454
13455 * posix-hdep.c (gdb_console_fputs):
13456 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13457 functions.
13458 * ui-file.h (gdb_console_fputs): Add prototype.
13459
13460 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13461 back to fputs only if the former returns zero.
13462
25629dfd
TT
134632019-03-07 Tom Tromey <tom@tromey.com>
13464
13465 * symmisc.c (print_symbol_bcache_statistics): Update.
13466 (print_objfile_statistics): Update.
13467 * symfile.c (allocate_symtab): Update.
13468 * stabsread.c: Don't include bcache.h.
13469 * psymtab.h (struct psymbol_bcache): Don't declare.
13470 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13471 (psymbol_bcache_init, psymbol_bcache_free)
13472 (psymbol_bcache_get_bcache): Don't declare.
13473 * psymtab.c (struct psymbol_bcache): Remove.
13474 (psymtab_storage::psymtab_storage): Update.
13475 (psymtab_storage::~psymtab_storage): Update.
13476 (psymbol_bcache_init, psymbol_bcache_free)
13477 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13478 (add_psymbol_to_bcache): Update.
13479 (allocate_psymtab): Update.
13480 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13481 macro_cache>: No longer pointers.
13482 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13483 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13484 * macrotab.c (macro_bcache): Update.
13485 * macroexp.c: Don't include bcache.h.
13486 * gdbtypes.c (check_types_worklist): Update.
13487 (types_deeply_equal): Remove TRY/CATCH. Update.
13488 * elfread.c (elf_symtab_read): Update.
13489 * dwarf2read.c: Don't include bcache.h.
13490 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13491 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13492 (print_bcache_statistics, bcache_memory_used): Don't declare.
13493 (struct bcache): Move from bcache.c. Add constructor, destructor,
13494 methods. Rename all data members.
13495 * bcache.c (struct bcache): Move to bcache.h.
13496 (bcache::expand_hash_table): Rename from expand_hash_table.
13497 (bcache): Remove.
13498 (bcache::insert): Rename from bcache_full.
13499 (bcache::compare): Rename from bcache_compare.
13500 (bcache_xmalloc): Remove.
13501 (bcache::~bcache): Rename from bcache_xfree.
13502 (bcache::print_statistics): Rename from print_bcache_statistics.
13503 (bcache::memory_used): Rename from bcache_memory_used.
13504
fe726667
PA
135052019-03-07 Pedro Alves <palves@redhat.com>
13506
13507 * infrun.c (normal_stop): Also check for
13508 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13509
7584bb30
AB
135102019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13511
13512 * f-lang.c (value_from_host_double): Moved to...
13513 * value.c (value_from_host_double): ...here.
13514 * value.h (value_from_host_double): Declare.
13515 * guile/scm-math.c (vlscm_convert_typed_number): Use
13516 value_from_host_double.
13517 (vlscm_convert_number): Likewise.
13518 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13519 * python/py-value.c (convert_value_from_python): Likewise.
13520
a7b1986e
TT
135212019-03-06 Tom Tromey <tom@tromey.com>
13522
13523 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13524
0ccf4211
TT
135252019-03-06 Tom Tromey <tom@tromey.com>
13526
13527 * utils.h (free_current_contents): Don't declare.
13528 * utils.c (free_current_contents): Remove.
13529
fe7b42e5
TT
135302019-03-06 Tom Tromey <tom@tromey.com>
13531
13532 * top.c (quit_force): Update.
13533 * main.c (captured_command_loop): Update.
13534 * common/new-op.c (operator new): Update.
13535 * common/common-exceptions.c (struct catcher)
13536 <save_cleanup_chain>: Remove member.
13537 (exceptions_state_mc_init): Update.
13538 (exception_try_scope_entry): Return nullptr.
13539 (exception_try_scope_exit, exception_rethrow)
13540 (throw_exception_sjlj, throw_exception_cxx): Update.
13541 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13542 (all_cleanups, do_cleanups, discard_cleanups)
13543 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13544 (restore_cleanups, restore_final_cleanups): Don't declare.
13545 (do_final_cleanups): Remove parameter.
13546 * common/cleanups.c (cleanup_chain, make_cleanup)
13547 (make_cleanup_dtor, all_cleanups, do_cleanups)
13548 (discard_my_cleanups, discard_cleanups)
13549 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13550 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13551 (null_cleanup): Remove.
13552 (do_final_cleanups): Remove parameter.
13553
c6321f19
TT
135542019-03-06 Tom Tromey <tom@tromey.com>
13555
13556 * remote.c (remote_target::remote_parse_stop_reply): Use
13557 unique_xmalloc_ptr.
13558
61b30099
TT
135592019-03-06 Tom Tromey <tom@tromey.com>
13560
13561 * stabsread.c (struct stabs_field_info): Rename from field_info.
13562 <list, fnlist>: Add initializers.
13563 <obstack>: New member.
13564 (read_member_functions, read_struct_fields, read_baseclasses):
13565 Allocate on obstack. Don't use cleanups.
13566 (read_one_struct_field, read_member_functions, read_struct_fields)
13567 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13568 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13569 (read_struct_type): Update.
13570
6cceac94
TT
135712019-03-06 Tom Tromey <tom@tromey.com>
13572
13573 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13574 * common/filestuff.h (make_cleanup_close): Don't declare.
13575 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13576 Remove.
13577
72412762
TT
135782019-03-06 Tom Tromey <tom@tromey.com>
13579
13580 * solib-aix.c: Use make_scope_exit.
13581
2b6ff1c0
TT
135822019-03-06 Tom Tromey <tom@tromey.com>
13583
13584 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13585 Use make_scope_exit.
13586
d01c5877
TT
135872019-03-06 Tom Tromey <tom@tromey.com>
13588
13589 * solib-svr4.c (disable_probes_interface): Remove parameter.
13590 (svr4_handle_solib_event): Use make_scope_exit.
13591
32603266
TT
135922019-03-06 Tom Tromey <tom@tromey.com>
13593
13594 * remote.c (struct stop_reply_deleter): Remove.
13595 (stop_reply_up): Update.
13596 (struct stop_reply): Derive from notif_event. Don't typedef.
13597 <regcache>: Now a std::vector.
13598 (stop_reply_xfree): Remove.
13599 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13600 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13601 (remote_target::discard_pending_stop_replies): Use delete.
13602 (remote_target::remote_parse_stop_reply): Update.
13603 (remote_target::process_stop_reply): Update.
13604 * remote-notif.h (struct notif_event): Add virtual destructor.
13605 Remove "dtr" member.
13606 (struct notif_client) <alloc_event>: Return a unique_ptr.
13607 (notif_event_xfree): Don't declare.
13608 (notif_event_up): New typedef.
13609 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13610 (notif_event_xfree, do_notif_event_xfree): Remove.
13611 (remote_notif_state_xfree): Update.
13612
9799571e
TT
136132019-03-06 Tom Tromey <tom@tromey.com>
13614
13615 * infrun.c (displaced_step_clear_cleanup): Now a
13616 forward_scope_exit type.
13617 (displaced_step_prepare_throw): Update.
13618 (displaced_step_fixup): Update.
13619
09e3c4ca
TT
136202019-03-06 Tom Tromey <tom@tromey.com>
13621
13622 * inferior.h (class inferior): Update comment.
13623 * gdbthread.h (class thread_info): Update comment.
13624
e2a03548
TT
136252019-03-06 Joel Brobecker <brobecker@adacore.com>
13626 Tom Tromey <tom@tromey.com>
13627
13628 * stabsread.h (struct stab_section_list): Remove.
13629 (coffstab_build_psymtabs): Update.
13630 * dbxread.c (symbuf_sections): Now a std::vector.
13631 (sect_idx): New global.
13632 (fill_symbuf): Update.
13633 (coffstab_build_psymtabs): Change type of stabsects parameter.
13634 Update.
13635 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13636 std::vector.
13637 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13638 (coff_locate_sections): Update.
13639 (coff_symfile_read): Remove cleanups. Update.
13640 (init_stringtab): Add storage parameter.
13641 (free_stringtab, free_stringtab_cleanup): Remove.
13642 (init_lineno): Add storage parameter.
13643 (free_linetab, free_linetab_cleanup): Remove.
13644
b7e60d85
PA
136452019-03-06 Pedro Alves <palves@redhat.com>
13646
13647 * linux-fork.c (fork_info::clobber_regs): Delete.
13648 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13649 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13650 comment. Adjust.
13651 (scoped_switch_fork_info::scoped_switch_fork_info)
13652 (checkpoint_command, linux_fork_context): Adjust
13653 fork_save_infrun_state calls.
13654
e52c971f
PA
136552019-03-06 Pedro Alves <palves@redhat.com>
13656
13657 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13658 (inf_has_multiple_threads): Return 'bool' and rewrite using
13659 inferior_info::threads().
13660
06974e6c
PA
136612019-03-06 Pedro Alves <palves@redhat.com>
13662
13663 * linux-fork.c: Include <list>.
13664 (fork_list): Now a std::list instance.
13665 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13666 (forks_exist_p, find_last_fork): Adjust.
13667 (new_fork): Delete.
13668 (one_fork_p): New.
13669 (add_fork): Adjust.
13670 (free_fork): Delete, folded into fork_info::~fork_info().
13671 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13672 Adjust.
13673 (init_fork_list): Delete.
13674 (linux_fork_killall, linux_fork_mourn_inferior)
13675 (linux_fork_detach, info_checkpoints_command): Adjust.
13676 (_initialize_linux_fork): No longer call init_fork_list.
13677
72f31aea
PA
136782019-03-06 Pedro Alves <palves@redhat.com>
13679
13680 * linux-fork.c (new_fork): New, split out of ...
13681 (add_fork): ... this. Return void. Move "first fork" special
13682 case from here, to ...
13683 (checkpoint_command): ... here.
13684 * linux-linux.h (add_fork): Return void.
13685
efbecbc1
AB
136862019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13687
13688 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13689
0841c79a
AB
136902019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13691 Chris January <chris.january@arm.com>
13692 David Lecomber <david.lecomber@arm.com>
13693
13694 * f-exp.y: New token, UNOP_INTRINSIC.
13695 (exp): New pattern using UNOP_INTRINSIC token.
13696 (f77_keywords): Add 'abs' keyword.
13697 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13698 (value_from_host_double): New function.
13699 (evaluate_subexp_f): Support UNOP_ABS.
13700
4a270568
AB
137012019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13702
13703 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13704 types.
13705
067630bd
AB
137062019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13707
13708 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13709 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13710 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13711
3be47f7a
AB
137122019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13713
13714 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13715
4d00f5d8
AB
137162019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13717 Chris January <chris.january@arm.com>
13718
13719 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13720 * f-exp.y: Define 'KIND' token.
13721 (exp): New pattern for KIND expressions.
13722 (ptype): Handle types with a kind extension.
13723 (direct_abs_decl): Extend to spot kind extensions.
13724 (f77_keywords): Add 'kind' to the list.
13725 (push_kind_type): New function.
13726 (convert_to_kind_type): New function.
13727 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13728 * parse.c (operator_length_standard): Likewise.
13729 * parser-defs.h (enum type_pieces): Add tp_kind.
13730 * std-operator.def: Add UNOP_KIND.
13731
e454224f
AB
137322019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13733
13734 * f-exp.y (f_parse): Set yydebug.
13735
9dad4a58
AB
137362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13737
13738 * f-lang.c (evaluate_subexp_f): New function.
13739 (exp_descriptor_f): New global.
13740 (f_language_defn): Use exp_descriptor_f instead of
13741 exp_descriptor_standard.
13742
c8f91604
AB
137432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13744
13745 * f-exp.y (struct token): Add comments.
13746 (dot_ops): Remove uppercase versions and the end marker.
13747 (f77_keywords): Likewise.
13748 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13749 entries in the dot_ops array are case insensitive, and use
13750 strncasecmp to compare strings. Also some whitespace cleanup in
13751 this area. Similar for the f77_keywords array, except entries in
13752 this list might be case sensitive.
13753
dd9f2c76
AB
137542019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13755
13756 * f-exp.y (struct f77_boolean_val): Add comments.
13757 (boolean_values): Remove uppercase versions, and end marker.
13758 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13759 and use strncasecmp to achieve case insensitivity. Additionally,
13760 perform whitespace cleanup around this code.
13761
67a3048c
TT
137622019-03-06 Tom Tromey <tromey@adacore.com>
13763
13764 * remote-sim.c (gdbsim_target_open): Use result of
13765 gdb_argv::release.
13766
aa3cfbda
RB
137672019-03-06 Richard Bunt <richard.bunt@arm.com>
13768 Dirk Schubert <dirk.schubert@arm.com>
13769 Chris January <chris.january@arm.com>
13770
13771 * eval.c (evaluate_subexp_standard): Call Fortran argument
13772 wrapping logic.
13773 * f-lang.c (struct value): A value which can be passed into a
13774 Fortran function call.
13775 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13776 where appropriate.
13777 (struct type): Value ready for a Fortran function call.
13778 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13779 is needed.
13780 * f-lang.h (fortran_argument_convert): Declaration.
13781 (fortran_preserve_arg_pointer): Declaration.
13782 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13783
ea38e5df
TT
137842019-03-05 Tom Tromey <tromey@adacore.com>
13785
13786 * python/py-prettyprint.c (print_string_repr): Remove #if.
13787 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13788
06b5b831
TT
137892019-03-05 Tom Tromey <tromey@adacore.com>
13790
13791 * target.c (the_dummy_target): Move later. Change type to
13792 "dummy_target".
13793 (initialize_targets): Don't initialize the_dummy_target.
13794
edbd9e45
TT
137952019-03-05 Tom Tromey <tromey@adacore.com>
13796
13797 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13798 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13799
c119e040
TT
138002019-03-05 Tom Tromey <tromey@adacore.com>
13801
13802 * windows-nat.c (windows_nat_target::attach)
13803 (windows_nat_target::detach): Don't call gdb_flush.
13804 * valprint.c (generic_val_print, val_print, val_print_string):
13805 Don't call gdb_flush.
13806 * utils.c (defaulted_query): Don't call gdb_flush.
13807 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13808 * target.c (target_announce_detach): Don't call gdb_flush.
13809 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13810 * remote.c (extended_remote_target::attach): Don't call
13811 gdb_flush.
13812 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13813 * printcmd.c (do_examine): Don't call gdb_flush.
13814 (info_display_command): Don't call gdb_flush.
13815 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13816 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13817 * memattr.c (info_mem_command): Don't call gdb_flush.
13818 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13819 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13820 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13821 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13822 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13823 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13824 (gnu_nat_target::detach): Don't call gdb_flush.
13825 * f-valprint.c (f_val_print): Don't call gdb_flush.
13826 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13827 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13828 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13829 gdb_flush.
13830 * c-valprint.c (c_val_print): Don't call gdb_flush.
13831 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13832
895dafa6
TT
138332019-03-05 Tom Tromey <tromey@adacore.com>
13834
13835 * varobj.c (update_dynamic_varobj_children): Update.
13836 (install_default_visualizer): Use reset, not release.
13837 * value.c (set_internalvar): Update.
13838 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13839 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13840 ATTRIBUTE_UNUSED_RESULT.
13841
88a774b9
TT
138422019-03-05 Tom Tromey <tromey@adacore.com>
13843
13844 * remote.c (class scoped_remote_fd) <release>: Add
13845 ATTRIBUTE_UNUSED_RESULT.
13846
4e4a8b93
TT
138472019-03-05 Tom Tromey <tromey@adacore.com>
13848
13849 * macroexp.c (struct macro_buffer) <release>: Add
13850 ATTRIBUTE_UNUSED_RESULT.
13851
083eef1f
TT
138522019-03-05 Tom Tromey <tromey@adacore.com>
13853
13854 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13855 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13856 ATTRIBUTE_UNUSED_RESULT.
13857
3cabd438
TT
138582019-03-05 Tom Tromey <tromey@adacore.com>
13859
13860 * common/scoped_fd.h (class scoped_fd) <release>: Add
13861 ATTRIBUTE_UNUSED_RESULT.
13862
41e3300a
TT
138632019-03-05 Tom Tromey <tromey@adacore.com>
13864
13865 * parser-defs.h (struct parser_state) <release>: Add
13866 ATTRIBUTE_UNUSED_RESULT.
13867
18cb7c9f
TT
138682019-03-05 Tom Tromey <tromey@adacore.com>
13869
13870 * utils.h (class gdb_argv) <release>: Add
13871 ATTRIBUTE_UNUSED_RESULT.
13872 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13873
41fa577f
EZ
138742019-03-02 Eli Zaretskii <eliz@gnu.org>
13875
a6a4b2c6
EZ
13876 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13877 for-loop range, to avoid compiler warnings.
13878
13879 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13880 avoid compiler warnings about unused variables.
13881
742a7df5
EZ
13882 * NEWS: Mention end of support for native debugging on MS-Windows
13883 before XP.
13884
41fa577f
EZ
13885 PR gdb/24292
13886 * common/netstuff.c:
13887 * gdbserver/gdbreplay.c
13888 * gdbserver/remote-utils.c:
13889 * ser-tcp.c:
13890 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13891 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13892 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13893 'getaddrinfo' and 'freeaddrinfo' were not available before
13894 Windows XP, and mingw.org's MinGW headers by default define
13895 _WIN32_WINNT to 0x500.
13896
827f438f
GB
138972019-03-01 Gary Benson <gbenson@redhat.com>
13898
13899 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13900
92137da0
RO
139012019-02-28 Brian Vandenberg <phantall@gmail.com>
13902 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13903
13904 PR gdb/8527
13905 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13906 set_sigint_trap, clear_sigint_trap.
13907
799efbe8
PW
139082019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13909
13910 * target.c (target_detach): Clear the regcache and the
13911 frame cache.
13912
8ed25214
PA
139132019-02-27 Pedro Alves <palves@redhat.com>
13914
13915 * utils.c (set_screen_size): When we cap the height/width sizes,
13916 tweak the corresponding command variable to show "unlimited":
13917
23031e31
SJ
139182019-02-27 Saagar Jha <saagar@saagarjha.com>
13919 Pedro Alves <palves@redhat.com>
13920
13921 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13922 before calling rl_set_screen_size.
13923
6c28e44a
TT
139242019-02-27 Tom Tromey <tromey@adacore.com>
13925
13926 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13927 define.
13928 * python/py-value.c: Remove Python 2.4 workaround.
13929 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13930 workaround.
13931 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13932 Python 2.4 workaround.
13933 * python/python-internal.h: Remove Python 2.4 comment.
13934 (Py_ssize_t): Don't define.
13935 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13936 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13937 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13938 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13939 * python/python.c (do_start_initialization): Remove Python 2.4
13940 workaround.
13941 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13942 (print_children): Remove Python 2.4 workaround.
13943 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13944 workaround.
13945 (CHARBUFFERPROC_NAME): Remove.
13946 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13947 Python 2.4 workaround.
13948
2c3fc25d 139492019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13950
2c3fc25d
KB
13951 * NEWS: Note minimum Python version.
13952
6ca62222
KB
139532019-02-27 Kevin Buettner <kevinb@redhat.com>
13954
13955 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13956 code from these functions. Remove corresponding ifdefs. Use
13957 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13958 Remove gotos and target of gotos.
13959 (infpy_search_memory): Likewise.
13960
f4bc7d2c
AB
139612019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13962
13963 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13964 (hppa_gdbarch_init): Don't register deleted functions with
13965 gdbarch.
13966
9734a586
AB
139672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13968
13969 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13970 (h8300_unwind_sp): Delete.
13971 (h8300_dummy_id): Delete.
13972 (h8300_gdbarch_init): Don't register deleted functions with
13973 gdbarch.
13974
68b867f3
AB
139752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13976
13977 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
13978 (ft32_unwind_pc): Delete.
13979 (ft32_unwind_sp): Delete.
13980 (ft32_gdbarch_init): Don't register deleted functions with
13981 gdbarch.
13982
2fbe7ad0
AB
139832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13984
13985 * gdb/frv-tdep.c (frv_dummy_id): Delete.
13986 (frv_unwind_pc): Delete.
13987 (frv_unwind_sp): Delete.
13988 (frv_gdbarch_init): Don't register deleted functions with
13989 gdbarch.
13990
76055cbe
AB
139912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13992
13993 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
13994 (riscv_unwind_pc): Delete.
13995 (riscv_unwind_sp): Delete.
13996 (riscv_gdbarch_init): Don't register deleted functions with
13997 gdbarch.
13998
4133e5a1
AB
139992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14000
14001 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14002 (csky_unwind_pc): Delete.
14003 (csky_unwind_sp): Delete.
14004 (csky_gdbarch_init): Don't register deleted functions with
14005 gdbarch.
14006
8010f576
AB
140072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14008
14009 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14010 (cris_unwind_pc): Delete.
14011 (cris_unwind_sp): Delete.
14012 (cris_gdbarch_init): Don't register deleted functions with
14013 gdbarch.
14014
b56bf084
AB
140152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14016
14017 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14018 (bfin_unwind_pc): Delete.
14019 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14020
a19a650f
AB
140212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14022
14023 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14024 (arm_unwind_pc): Delete.
14025 (arm_unwind_sp): Delete.
14026 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14027
f8278c3c
AB
140282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14029
14030 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14031 (arc_unwind_pc): Delete.
14032 (arc_unwind_sp): Delete.
14033 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14034
480e46cf
AB
140352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14036
14037 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14038 (alpha_unwind_pc): Delete.
14039 (alpha_gdbarch_init): Don't register deleted functions with
14040 gdbarch.
14041
7a995095
AB
140422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14043
14044 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14045 (aarch64_unwind_pc): Delete.
14046 (aarch64_unwind_sp): Delete.
14047 (aarch64_gdbarch_init): Don't register deleted functions with
14048 gdbarch.
14049
bf9a735e
AB
140502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14051
14052 * gdbtypes.c (type_align): Don't consider static members when
14053 computing structure alignment.
14054
5561fc30
AB
140552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14056
14057 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14058 return 0 for other types.
14059 * arch-utils.c (default_type_align): Always return 0.
14060 * gdbarch.h: Regenerate.
14061 * gdbarch.sh (type_align): Extend comment.
14062 * gdbtypes.c (type_align): Add additional comments, always call
14063 gdbarch_type_align before applying the default rules.
14064 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14065 generic code will then apply a suitable default.
14066 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14067 types, return 0 for other types.
14068
9335e75a
JB
140692019-02-27 Joel Brobecker <brobecker@adacore.com>
14070
14071 * NEWS: Create a new section for the next release branch.
14072 Rename the section of the current branch, now that it has
14073 been cut.
14074
3d34d8de
JB
140752019-02-27 Joel Brobecker <brobecker@adacore.com>
14076
14077 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14078 * version.in: Bump version to 8.3.50.DATE-git.
14079
143420fb
SM
140802019-02-26 Simon Marchi <simon.marchi@efficios.com>
14081
14082 * aix-thread.c (ptid_cmp): Remove unused variable.
14083 (get_signaled_thread): Likewise.
14084 (store_regs_user_thread): Likewise.
14085 (store_regs_kernel_thread): Likewise.
14086 (fetch_regs_kernel_thread): Remove shadowed variable.
14087
172fb711
AB
140882019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14089
14090 * features/riscv/32bit-cpu.xml: Add register numbers.
14091 * features/riscv/32bit-fpu.c: Regenerate.
14092 * features/riscv/32bit-fpu.xml: Add register numbers.
14093 * features/riscv/64bit-cpu.xml: Add register numbers.
14094 * features/riscv/64bit-fpu.c: Regenerate.
14095 * features/riscv/64bit-fpu.xml: Add register numbers.
14096
26c89782
KB
140972019-02-26 Kevin Buettner <kevinb@redhat.com>
14098
af54ade9 14099 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14100 * python/py-value.c (convert_buffer_and_type_to_value): New
14101 function.
14102 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14103 Add support for handling an optional second argument. Call
14104 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14105 * python/python-internal.h (Py_buffer_deleter): New struct.
14106 (Py_buffer_up): New typedef.
14107
0f58c9e8
JB
141082019-02-25 John Baldwin <jhb@FreeBSD.org>
14109
14110 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14111 instead of releasing ownership.
14112
0a0f4c01
JR
141132019-02-25 Jordan Rupprecht <rupprecht@google.com>
14114
14115 * dwarf2read.c (open_and_init_dwp_file): Call
14116 elf_numsections instead of bfd_count_sections to initialize
14117 dwp_file->num_sections.
14118
cd5a152c
TT
141192019-02-25 Tom Tromey <tromey@adacore.com>
14120
14121 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14122
8a6a8513
SDJ
141232019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14124
14125 * gcore.in: Add '--readnever' option when invoking GDB.
14126
04dcda9c
SM
141272019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14128
14129 * MAINTAINERS: Update my email address.
14130
07bc701d
SM
141312019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14132
14133 * build-id.c (build_id_to_debug_bfd_1): New function.
14134 (build_id_to_debug_bfd): Look for separate debug file in
14135 sysroot.
14136
c6f4a5d0
AB
141372019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14138
14139 * gdbarch.sh: Update the copyright year range that is placed into
14140 generated files.
14141
9600246d
KS
141422019-02-22 Keith Seitz <keiths@redhat.com>
14143
14144 PR symtab/23853
14145 * linespec.c (create_sals_line_offset): Search for the default
14146 symtab's filename instead of its fullname.
14147
7557a514
AH
141482019-02-21 Alan Hayward <alan.hayward@arm.com>
14149
14150 * NEWS: Update style defaults.
14151
ee2bcb0c
AH
141522019-02-21 Alan Hayward <alan.hayward@arm.com>
14153
14154 * main.c (captured_main_1): Disable styling in batch mode.
14155
0c95f9ed
TT
141562019-02-20 Tom Tromey <tom@tromey.com>
14157
14158 * symtab.c (symtab_symbol_info): Fix typos.
14159
c763b894
TT
141602019-02-20 Tom Tromey <tromey@adacore.com>
14161
14162 * findcmd.c (_initialize_mem_search): Use upper case for
14163 metasyntactic variables.
14164
0ef8a082
AH
141652019-02-20 Alan Hayward <alan.hayward@arm.com>
14166
14167 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14168 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14169
6caa91b6
SM
141702019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14171
14172 * top.h (source_file_name): Change to std::string.
14173 * top.c (source_file_name): Likewise.
14174 (command_line_input): Adjust.
14175 * cli/cli-script.c (script_from_file): Adjust.
14176
98814c6c
TT
141772019-02-19 Tom Tromey <tromey@adacore.com>
14178
14179 * ravenscar-thread.c
14180 (ravenscar_thread_target::update_thread_list): Don't call
14181 ada_build_task_list.
14182 * ada-lang.h (ada_build_task_list): Don't declare.
14183 * ada-tasks.c (struct ada_tasks_inferior_data)
14184 <task_list_valid_p>: Now bool.
14185 (read_known_tasks, ada_task_list_changed)
14186 (ada_tasks_invalidate_inferior_data): Update.
14187 (read_known_tasks_array): Return bool.
14188 (read_known_tasks_list): Likewise.
14189 (read_known_tasks): Return void.
14190 (ada_build_task_list): Now static.
14191
70cd633e
AB
141922019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14193
14194 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14195 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14196
040b3e95
PW
141972019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14198
14199 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14200 variant for ada_tasks_pspace_data_handle and
14201 ada_tasks_inferior_data_handle.
14202 (ada_tasks_pspace_data_cleanup): New function.
14203 (ada_tasks_inferior_data_cleanup): New function.
14204
9409233b
TT
142052019-02-17 Tom Tromey <tom@tromey.com>
14206
14207 * macrotab.h (macro_source_fullname): Return a std::string.
14208 * macrotab.c (macro_include, check_for_redefinition)
14209 (macro_undef, macro_lookup_definition, foreach_macro)
14210 (foreach_macro_in_scope): Update.
14211 (macro_source_fullname): Return a std::string.
14212 * macrocmd.c (show_pp_source_pos): Update.
14213
6506371f
TT
142142019-02-17 Tom Tromey <tom@tromey.com>
14215
14216 * macrocmd.c (show_pp_source_pos): Style the file names.
14217
0c820d67
TT
142182019-02-17 Tom Tromey <tom@tromey.com>
14219
14220 PR tui/24197:
14221 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14222
a0087920
TT
142232019-02-17 Tom Tromey <tom@tromey.com>
14224
14225 * ada-lang.c (user_select_syms): Use filtered printing.
14226 * utils.c (wrap_style): New global.
14227 (desired_style): Remove.
14228 (emit_style_escape): Add stream parameter.
14229 (set_output_style, reset_terminal_style, prompt_for_continue):
14230 Update.
14231 (flush_wrap_buffer): Only flush gdb_stdout.
14232 (wrap_here): Set wrap_style.
14233 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14234 treat escape sequences as a character. Change when wrap buffer is
14235 flushed.
14236 (fputs_styled): Do not set the output style when the default is
14237 requested.
14238 * ui-style.h (struct ui_file_style) <is_default>: New method.
14239 * source.c (print_source_lines_base): Emit escape sequences in one
14240 piece.
14241
75ba10dc
JB
142422019-02-17 Joel Brobecker <brobecker@adacore.com>
14243
14244 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14245 integers and enumeration types.
14246
a2cd4f14
JB
142472019-02-17 Joel Brobecker <brobecker@adacore.com>
14248
14249 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14250 instead of lookup_symbol_in_language
14251 (do_exact_match): New function.
14252 (ada_get_symbol_name_matcher): Return do_exact_match when
14253 doing a verbatim match.
14254
485b851b
TT
142552019-02-15 Tom Tromey <tromey@adacore.com>
14256
14257 * ravenscar-thread.c (ravenscar_thread_target::resume)
14258 (ravenscar_thread_target::wait): Special case wildcard requests.
14259
0b790b1e
TT
142602019-02-15 Tom Tromey <tromey@adacore.com>
14261
14262 * ravenscar-thread.c (base_ptid): Remove.
14263 (struct ravenscar_thread_target) <close>: New method.
14264 <m_base_ptid>: New member.
14265 <update_inferior_ptid, active_task, task_is_currently_active,
14266 runtime_initialized>: Declare methods.
14267 <ravenscar_thread_target>: Add constructor.
14268 (ravenscar_thread_target::task_is_currently_active)
14269 (ravenscar_thread_target::update_inferior_ptid)
14270 (ravenscar_runtime_initialized): Rename. Now methods.
14271 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14272 (ravenscar_thread_target::update_thread_list): Update.
14273 (ravenscar_thread_target::active_task): Now method.
14274 (ravenscar_thread_target::store_registers)
14275 (ravenscar_thread_target::prepare_to_store)
14276 (ravenscar_thread_target::prepare_to_store)
14277 (ravenscar_thread_target::mourn_inferior): Update.
14278 (ravenscar_inferior_created): Use "new" to create target.
14279 (ravenscar_thread_target::get_ada_task_ptid): Update.
14280 (_initialize_ravenscar): Don't initialize base_ptid.
14281 (ravenscar_ops): Remove global.
14282
dea57a62
TT
142832019-02-15 Tom Tromey <tromey@adacore.com>
14284
14285 * target.h (push_target): Declare new overload.
14286 * target.c (push_target): New overload, taking an rvalue reference.
14287 * remote.c (remote_target::open_1): Use push_target overload.
14288 * corelow.c (core_target_open): Use push_target overload.
14289
989f3c58
TT
142902019-02-15 Tom Tromey <tromey@adacore.com>
14291
14292 * ravenscar-thread.c (is_ravenscar_task)
14293 (ravenscar_task_is_currently_active): Return bool.
14294 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14295 (_initialize_ravenscar): Remove "(void)".
14296 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14297 Return bool.
14298
6cbcc006
TT
142992019-02-15 Tom Tromey <tromey@adacore.com>
14300
14301 * ravenscar-thread.c (ravenscar_runtime_initializer)
14302 (has_ravenscar_runtime, get_running_thread_id)
14303 (ravenscar_thread_target::resume): Fix indentation.
14304
7657f14d
TT
143052019-02-15 Tom Tromey <tromey@adacore.com>
14306
14307 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14308 from ravenscar_arch_ops.
14309 (sparc_ravenscar_ops::fetch_registers)
14310 (sparc_ravenscar_ops::store_registers): Now methods.
14311 (sparc_ravenscar_prepare_to_store): Remove.
14312 (sparc_ravenscar_ops): Redefine.
14313 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14314 methods and destructor. Remove members.
14315 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14316 (ravenscar_thread_target::store_registers)
14317 (ravenscar_thread_target::prepare_to_store): Update.
14318 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14319 Remove.
14320 (struct ppc_ravenscar_powerpc_ops): Derive from
14321 ravenscar_arch_ops.
14322 (ppc_ravenscar_powerpc_ops::fetch_registers)
14323 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14324 (ppc_ravenscar_powerpc_ops): Redefine.
14325 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14326 (ppc_ravenscar_e500_ops::fetch_registers)
14327 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14328 (ppc_ravenscar_e500_ops): Redefine.
14329 * aarch64-ravenscar-thread.c
14330 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14331 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14332 (aarch64_ravenscar_fetch_registers)
14333 (aarch64_ravenscar_store_registers): Now methods.
14334 (aarch64_ravenscar_ops): Redefine.
14335
5b6ea500
TT
143362019-02-15 Tom Tromey <tromey@adacore.com>
14337
14338 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14339 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14340 (ravenscar_thread_target::stopped_by_watchpoint)
14341 (ravenscar_thread_target::stopped_data_address)
14342 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14343
e397fd39
TT
143442019-02-15 Tom Tromey <tromey@adacore.com>
14345
14346 * ravenscar-thread.c: Fix some typos.
14347
cc12f4a8
TT
143482019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14349 Tom Tromey <tromey@adacore.com>
14350
14351 * ada-lang.c (ada_exception_sal): Change addr_string to a
14352 std::string.
14353 (create_ada_exception_catchpoint): Update.
14354
5f486660
TT
143552019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14356 Tom Tromey <tromey@adacore.com>
14357
14358 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14359 (bp_location_ops): Remove.
14360 (base_breakpoint_allocate_location): Update.
14361 (free_bp_location): Update.
14362 * ada-lang.c (class ada_catchpoint_location)
14363 <ada_catchpoint_location>: Remove ops parameter.
14364 (ada_catchpoint_location_dtor): Remove.
14365 (ada_catchpoint_location_ops): Remove.
14366 (allocate_location_exception): Update.
14367 * breakpoint.h (struct bp_location_ops): Remove.
14368 (class bp_location) <bp_location>: Remove bp_location_ops
14369 parameter.
14370 <~bp_location>: Add destructor.
14371 <ops>: Remove.
14372
b671c7fb
TS
143732019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14374 Pedro Alves <palves@redhat.com>
14375
14376 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14377 'PATH_MAX'.
14378
8071c5ce
DM
143792019-02-14 David Michael <fedora.dm0@gmail.com>
14380 Samuel Thibault <samuel.thibault@gnu.org>
14381 Thomas Schwinge <thomas@codesourcery.com>
14382
14383 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14384 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14385
b1041ae0
TS
143862019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14387
924514e1
TS
14388 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14389 (check_empty): Use "const char *".
14390
c29ee8d4
TS
14391 * gnu-nat.c (gnu_nat_target::detach): Instead of
14392 'detach_inferior (pid)' call
14393 'detach_inferior (find_inferior_pid (pid))'.
14394
6c6ef69f
TS
14395 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14396 'nat/fork-inferior.o'.
14397 * gnu-nat.c: #include "nat/fork-inferior.h".
14398
2d0a338c
TS
14399 * gnu-nat.c (gnu_nat_target::detach): Instead of
14400 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14401 * gnu-nat.h: #include "inf-child.h".
14402 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14403 'i386_gnu_nat_target::fetch_registers'.
14404 (gnu_store_registers): Rename/move to
14405 'i386_gnu_nat_target::store_registers'.
14406
cabb5f06
TS
14407 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14408 * gnu-nat.h (mach_thread_info): New function.
14409 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14410
b1041ae0
TS
14411 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14412
2988d01e
KF
144132019-02-14 Frederic Konrad <konrad@adacore.com>
14414
14415 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14416
c559d709
JB
144172019-02-14 Joel Brobecker <brobecker@adacore.com>
14418
14419 * windows-nat.c (windows_add_thread): Add new parameter
14420 "main_thread_p" with default value set to false. Update
14421 function documentation as well as all callers.
14422 (windows_delete_thread): Likewise.
14423 (fake_create_process): Update call to windows_add_thread.
14424 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14425 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14426 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14427 call to windows_delete_thread.
14428
007024cc
SM
144292019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14430
14431 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14432
f62318e9
JB
144332019-02-12 John Baldwin <jhb@FreeBSD.org>
14434
14435 * symfile.c (find_separate_debug_file): Use canonical path of
14436 sysroot with child_path instead of gdb_sysroot if it is valid.
14437
cd4b7848
JB
144382019-02-12 John Baldwin <jhb@FreeBSD.org>
14439
14440 * symfile.c (find_separate_debug_file): Use child_path to
14441 determine if an object file is under a sysroot.
14442
efac4bfe
JB
144432019-02-12 John Baldwin <jhb@FreeBSD.org>
14444
14445 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14446 unittests/child-path-selftests.c.
14447 * common/pathstuff.c (child_path): New function.
14448 * common/pathstuff.h (child_path): New prototype.
14449 * unittests/child-path-selftests.c: New file.
14450
402d2bfe
JB
144512019-02-12 John Baldwin <jhb@FreeBSD.org>
14452
14453 * symfile.c (find_separate_debug_file): Look for separate debug
14454 files in debug directories under the sysroot.
14455
1ed9f74e
PW
144562019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14457
14458 * symtab.h (struct minimal_symbol data_p): New const method.
14459 (struct minimal_symbol text_p): Likewise.
14460 * symtab.c (output_source_filename): Use file name style
14461 to print file name.
14462 (print_symbol_info): Likewise.
14463 (print_msymbol_info): Use address style to print addresses.
14464 Use function name style to print executable text symbols.
14465 (expand_symtab_containing_pc): Use data_p.
14466 (find_pc_sect_compunit_symtab): Likewise.
14467
2636d81d
PW
144682019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14469
14470 * breakpoint.c (describe_other_breakpoints): Use address style
14471 to print addresses.
14472 (say_where): Likewise.
14473
ac8c53cc
PW
144742019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14475
14476 * ada-typeprint.c (print_func_type): Print function name
14477 style to print function name.
14478 * c-typeprint.c (c_print_type_1): Likewise.
14479
ea638c43
AH
144802019-02-11 Alan Hayward <alan.hayward@arm.com>
14481
14482 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14483 for execve.
14484
ab759ca8
PW
144852019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14486
14487 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14488 type_stack.
14489
aff29d1c
JB
144902019-02-10 Joel Brobecker <brobecker@adacore.com>
14491
14492 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14493 TYPE_CODE_REF types.
14494
617126bc
JW
144952019-02-08 Jim Wilson <jimw@sifive.com>
14496
14497 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14498 (riscv_linux_fregset): New.
14499 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14500
46e3ed7f
TT
145012019-02-07 Tom Tromey <tom@tromey.com>
14502
14503 * thread.c (thread_cancel_execution_command): Update.
14504 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14505 methods.
14506 (struct thread_fsm_ops): Remove.
14507 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14508 (thread_fsm_should_stop, thread_fsm_return_value)
14509 (thread_fsm_set_finished, thread_fsm_finished_p)
14510 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14511 Don't declare.
14512 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14513 * infrun.c (clear_proceed_status_thread)
14514 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14515 (print_stop_event): Update.
14516 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14517 Add constructor.
14518 (step_command_fsm_ops): Remove.
14519 (new_step_command_fsm): Remove.
14520 (step_1): Update.
14521 (step_command_fsm::should_stop): Rename from
14522 step_command_fsm_should_stop.
14523 (step_command_fsm::clean_up): Rename from
14524 step_command_fsm_clean_up.
14525 (step_command_fsm::do_async_reply_reason): Rename from
14526 step_command_fsm_async_reply_reason.
14527 (struct until_next_fsm): Inherit from thread_fsm. Add
14528 constructor.
14529 (until_next_fsm_ops): Remove.
14530 (new_until_next_fsm): Remove.
14531 (until_next_fsm::should_stop): Rename from
14532 until_next_fsm_should_stop.
14533 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14534 (until_next_fsm::do_async_reply_reason): Rename from
14535 until_next_fsm_async_reply_reason.
14536 (struct finish_command_fsm): Inherit from thread_fsm. Add
14537 constructor. Change type of breakpoint.
14538 (finish_command_fsm_ops): Remove.
14539 (new_finish_command_fsm): Remove.
14540 (finish_command_fsm::should_stop): Rename from
14541 finish_command_fsm_should_stop.
14542 (finish_command_fsm::clean_up): Rename from
14543 finish_command_fsm_clean_up.
14544 (finish_command_fsm::return_value): Rename from
14545 finish_command_fsm_return_value.
14546 (finish_command_fsm::do_async_reply_reason): Rename from
14547 finish_command_fsm_async_reply_reason.
14548 (finish_command): Update.
14549 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14550 Add constructor.
14551 (call_thread_fsm_ops): Remove.
14552 (call_thread_fsm::call_thread_fsm): Rename from
14553 new_call_thread_fsm.
14554 (call_thread_fsm::should_stop): Rename from
14555 call_thread_fsm_should_stop.
14556 (call_thread_fsm::should_notify_stop): Rename from
14557 call_thread_fsm_should_notify_stop.
14558 (run_inferior_call, call_function_by_hand_dummy): Update.
14559 * cli/cli-interp.c (should_print_stop_to_console): Update.
14560 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14561 Add constructor. Change type of location_breakpoint,
14562 caller_breakpoint.
14563 (until_break_fsm_ops): Remove.
14564 (new_until_break_fsm): Remove.
14565 (until_break_fsm::should_stop): Rename from
14566 until_break_fsm_should_stop.
14567 (until_break_fsm::clean_up): Rename from
14568 until_break_fsm_clean_up.
14569 (until_break_fsm::do_async_reply_reason): Rename from
14570 until_break_fsm_async_reply_reason.
14571 (until_break_command): Update.
14572 * thread-fsm.c: Remove.
14573 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14574
1a5c2598
TT
145752019-02-07 Tom Tromey <tom@tromey.com>
14576
14577 * yy-remap.h: Add include guard.
14578 * xtensa-tdep.h: Add include guard.
14579 * xcoffread.h: Rename include guard.
14580 * varobj-iter.h: Add include guard.
14581 * tui/tui.h: Rename include guard.
14582 * tui/tui-winsource.h: Rename include guard.
14583 * tui/tui-wingeneral.h: Rename include guard.
14584 * tui/tui-windata.h: Rename include guard.
14585 * tui/tui-win.h: Rename include guard.
14586 * tui/tui-stack.h: Rename include guard.
14587 * tui/tui-source.h: Rename include guard.
14588 * tui/tui-regs.h: Rename include guard.
14589 * tui/tui-out.h: Rename include guard.
14590 * tui/tui-layout.h: Rename include guard.
14591 * tui/tui-io.h: Rename include guard.
14592 * tui/tui-hooks.h: Rename include guard.
14593 * tui/tui-file.h: Rename include guard.
14594 * tui/tui-disasm.h: Rename include guard.
14595 * tui/tui-data.h: Rename include guard.
14596 * tui/tui-command.h: Rename include guard.
14597 * tic6x-tdep.h: Add include guard.
14598 * target/waitstatus.h: Rename include guard.
14599 * target/wait.h: Rename include guard.
14600 * target/target.h: Rename include guard.
14601 * target/resume.h: Rename include guard.
14602 * target-float.h: Rename include guard.
14603 * stabsread.h: Add include guard.
14604 * rs6000-tdep.h: Add include guard.
14605 * riscv-fbsd-tdep.h: Add include guard.
14606 * regformats/regdef.h: Rename include guard.
14607 * record.h: Rename include guard.
14608 * python/python.h: Rename include guard.
14609 * python/python-internal.h: Rename include guard.
14610 * python/py-stopevent.h: Rename include guard.
14611 * python/py-ref.h: Rename include guard.
14612 * python/py-record.h: Rename include guard.
14613 * python/py-record-full.h: Rename include guard.
14614 * python/py-record-btrace.h: Rename include guard.
14615 * python/py-instruction.h: Rename include guard.
14616 * python/py-events.h: Rename include guard.
14617 * python/py-event.h: Rename include guard.
14618 * procfs.h: Add include guard.
14619 * proc-utils.h: Add include guard.
14620 * p-lang.h: Add include guard.
14621 * or1k-tdep.h: Rename include guard.
14622 * observable.h: Rename include guard.
14623 * nto-tdep.h: Rename include guard.
14624 * nat/x86-linux.h: Rename include guard.
14625 * nat/x86-linux-dregs.h: Rename include guard.
14626 * nat/x86-gcc-cpuid.h: Add include guard.
14627 * nat/x86-dregs.h: Rename include guard.
14628 * nat/x86-cpuid.h: Rename include guard.
14629 * nat/ppc-linux.h: Rename include guard.
14630 * nat/mips-linux-watch.h: Rename include guard.
14631 * nat/linux-waitpid.h: Rename include guard.
14632 * nat/linux-ptrace.h: Rename include guard.
14633 * nat/linux-procfs.h: Rename include guard.
14634 * nat/linux-osdata.h: Rename include guard.
14635 * nat/linux-nat.h: Rename include guard.
14636 * nat/linux-namespaces.h: Rename include guard.
14637 * nat/linux-btrace.h: Rename include guard.
14638 * nat/glibc_thread_db.h: Rename include guard.
14639 * nat/gdb_thread_db.h: Rename include guard.
14640 * nat/gdb_ptrace.h: Rename include guard.
14641 * nat/fork-inferior.h: Rename include guard.
14642 * nat/amd64-linux-siginfo.h: Rename include guard.
14643 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14644 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14645 * nat/aarch64-linux.h: Rename include guard.
14646 * nat/aarch64-linux-hw-point.h: Rename include guard.
14647 * mn10300-tdep.h: Add include guard.
14648 * mips-linux-tdep.h: Add include guard.
14649 * mi/mi-parse.h: Rename include guard.
14650 * mi/mi-out.h: Rename include guard.
14651 * mi/mi-main.h: Rename include guard.
14652 * mi/mi-interp.h: Rename include guard.
14653 * mi/mi-getopt.h: Rename include guard.
14654 * mi/mi-console.h: Rename include guard.
14655 * mi/mi-common.h: Rename include guard.
14656 * mi/mi-cmds.h: Rename include guard.
14657 * mi/mi-cmd-break.h: Rename include guard.
14658 * m2-lang.h: Add include guard.
14659 * location.h: Rename include guard.
14660 * linux-record.h: Rename include guard.
14661 * linux-nat.h: Add include guard.
14662 * linux-fork.h: Add include guard.
14663 * i386-darwin-tdep.h: Rename include guard.
14664 * hppa-linux-offsets.h: Add include guard.
14665 * guile/guile.h: Rename include guard.
14666 * guile/guile-internal.h: Rename include guard.
14667 * gnu-nat.h: Rename include guard.
14668 * gdb-stabs.h: Rename include guard.
14669 * frv-tdep.h: Add include guard.
14670 * f-lang.h: Add include guard.
14671 * event-loop.h: Add include guard.
14672 * darwin-nat.h: Rename include guard.
14673 * cp-abi.h: Rename include guard.
14674 * config/sparc/nm-sol2.h: Rename include guard.
14675 * config/nm-nto.h: Rename include guard.
14676 * config/nm-linux.h: Add include guard.
14677 * config/i386/nm-i386gnu.h: Rename include guard.
14678 * config/djgpp/nl_types.h: Rename include guard.
14679 * config/djgpp/langinfo.h: Rename include guard.
14680 * compile/gcc-cp-plugin.h: Add include guard.
14681 * compile/gcc-c-plugin.h: Add include guard.
14682 * compile/compile.h: Rename include guard.
14683 * compile/compile-object-run.h: Rename include guard.
14684 * compile/compile-object-load.h: Rename include guard.
14685 * compile/compile-internal.h: Rename include guard.
14686 * compile/compile-cplus.h: Rename include guard.
14687 * compile/compile-c.h: Rename include guard.
14688 * common/xml-utils.h: Rename include guard.
14689 * common/x86-xstate.h: Rename include guard.
14690 * common/version.h: Rename include guard.
14691 * common/vec.h: Rename include guard.
14692 * common/tdesc.h: Rename include guard.
14693 * common/selftest.h: Rename include guard.
14694 * common/scoped_restore.h: Rename include guard.
14695 * common/scoped_mmap.h: Rename include guard.
14696 * common/scoped_fd.h: Rename include guard.
14697 * common/safe-iterator.h: Rename include guard.
14698 * common/run-time-clock.h: Rename include guard.
14699 * common/refcounted-object.h: Rename include guard.
14700 * common/queue.h: Rename include guard.
14701 * common/ptid.h: Rename include guard.
14702 * common/print-utils.h: Rename include guard.
14703 * common/preprocessor.h: Rename include guard.
14704 * common/pathstuff.h: Rename include guard.
14705 * common/observable.h: Rename include guard.
14706 * common/netstuff.h: Rename include guard.
14707 * common/job-control.h: Rename include guard.
14708 * common/host-defs.h: Rename include guard.
14709 * common/gdb_wait.h: Rename include guard.
14710 * common/gdb_vecs.h: Rename include guard.
14711 * common/gdb_unlinker.h: Rename include guard.
14712 * common/gdb_unique_ptr.h: Rename include guard.
14713 * common/gdb_tilde_expand.h: Rename include guard.
14714 * common/gdb_sys_time.h: Rename include guard.
14715 * common/gdb_string_view.h: Rename include guard.
14716 * common/gdb_splay_tree.h: Rename include guard.
14717 * common/gdb_setjmp.h: Rename include guard.
14718 * common/gdb_ref_ptr.h: Rename include guard.
14719 * common/gdb_optional.h: Rename include guard.
14720 * common/gdb_locale.h: Rename include guard.
14721 * common/gdb_assert.h: Rename include guard.
14722 * common/filtered-iterator.h: Rename include guard.
14723 * common/filestuff.h: Rename include guard.
14724 * common/fileio.h: Rename include guard.
14725 * common/environ.h: Rename include guard.
14726 * common/common-utils.h: Rename include guard.
14727 * common/common-types.h: Rename include guard.
14728 * common/common-regcache.h: Rename include guard.
14729 * common/common-inferior.h: Rename include guard.
14730 * common/common-gdbthread.h: Rename include guard.
14731 * common/common-exceptions.h: Rename include guard.
14732 * common/common-defs.h: Rename include guard.
14733 * common/common-debug.h: Rename include guard.
14734 * common/cleanups.h: Rename include guard.
14735 * common/buffer.h: Rename include guard.
14736 * common/btrace-common.h: Rename include guard.
14737 * common/break-common.h: Rename include guard.
14738 * cli/cli-utils.h: Rename include guard.
14739 * cli/cli-style.h: Rename include guard.
14740 * cli/cli-setshow.h: Rename include guard.
14741 * cli/cli-script.h: Rename include guard.
14742 * cli/cli-interp.h: Rename include guard.
14743 * cli/cli-decode.h: Rename include guard.
14744 * cli/cli-cmds.h: Rename include guard.
14745 * charset-list.h: Add include guard.
14746 * buildsym-legacy.h: Rename include guard.
14747 * bfin-tdep.h: Add include guard.
14748 * ax.h: Rename include guard.
14749 * arm-linux-tdep.h: Add include guard.
14750 * arm-fbsd-tdep.h: Add include guard.
14751 * arch/xtensa.h: Rename include guard.
14752 * arch/tic6x.h: Add include guard.
14753 * arch/i386.h: Add include guard.
14754 * arch/arm.h: Rename include guard.
14755 * arch/arm-linux.h: Rename include guard.
14756 * arch/arm-get-next-pcs.h: Rename include guard.
14757 * arch/amd64.h: Add include guard.
14758 * arch/aarch64-insn.h: Rename include guard.
14759 * arch-utils.h: Rename include guard.
14760 * annotate.h: Add include guard.
14761 * amd64-darwin-tdep.h: Rename include guard.
14762 * aarch64-linux-tdep.h: Add include guard.
14763 * aarch64-fbsd-tdep.h: Add include guard.
14764 * aarch32-linux-nat.h: Add include guard.
14765
ab9268d2
PW
147662019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14767
14768 * macrotab.c (macro_define_internal): New function that
14769 factorizes macro_define_object_internal and macro_define_function
14770 code.
14771 (macro_define_object_internal): Use macro_define_internal.
14772 (macro_define_function): Likewise.
14773
bb0da2b4
PW
147742019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14775
14776 * macrocmd.c (extract_identifier): Return
14777 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14778 callers.
14779
424eb552
JB
147802019-02-06 John Baldwin <jhb@FreeBSD.org>
14781
14782 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14783
1688cb29
TT
147842019-02-05 Tom Tromey <tom@tromey.com>
14785
14786 * target.c (target_stack::unpush): Move assertion earlier.
14787
b5eba2d8
TT
147882019-01-30 Tom Tromey <tom@tromey.com>
14789
14790 PR python/23615:
14791 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14792 (gdbpy_parse_and_eval): Likewise.
14793 * python/python-internal.h (gdbpy_allow_threads): New class.
14794
7054e2ff
JB
147952019-01-28 John Baldwin <jhb@FreeBSD.org>
14796
14797 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14798 (aarch64_fbsd_fpregmap): Move earlier.
14799 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14800 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14801 instead of individual calls to trad_frame_set_reg_addr.
14802 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14803 earlier.
14804 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14805 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14806 instead of individual calls to trad_frame_set_reg_addr.
14807
36c25ffa
AH
148082019-01-28 Alan Hayward <alan.hayward@arm.com>
14809
14810 * CONTRIBUTE: Replace contribution list with wiki link.
14811
a0707f3c
TT
148122019-01-25 Tom Tromey <tom@tromey.com>
14813
14814 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14815
0747795c
TT
148162019-01-25 Tom Tromey <tom@tromey.com>
14817
14818 * xtensa-linux-nat.c: Fix common/ includes.
14819 * xml-support.h: Fix common/ includes.
14820 * xml-support.c: Fix common/ includes.
14821 * x86-linux-nat.c: Fix common/ includes.
14822 * windows-nat.c: Fix common/ includes.
14823 * varobj.h: Fix common/ includes.
14824 * varobj.c: Fix common/ includes.
14825 * value.c: Fix common/ includes.
14826 * valops.c: Fix common/ includes.
14827 * utils.c: Fix common/ includes.
14828 * unittests/xml-utils-selftests.c: Fix common/ includes.
14829 * unittests/utils-selftests.c: Fix common/ includes.
14830 * unittests/unpack-selftests.c: Fix common/ includes.
14831 * unittests/tracepoint-selftests.c: Fix common/ includes.
14832 * unittests/style-selftests.c: Fix common/ includes.
14833 * unittests/string_view-selftests.c: Fix common/ includes.
14834 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14835 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14836 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14837 * unittests/rsp-low-selftests.c: Fix common/ includes.
14838 * unittests/parse-connection-spec-selftests.c: Fix common/
14839 includes.
14840 * unittests/optional-selftests.c: Fix common/ includes.
14841 * unittests/offset-type-selftests.c: Fix common/ includes.
14842 * unittests/observable-selftests.c: Fix common/ includes.
14843 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14844 * unittests/memrange-selftests.c: Fix common/ includes.
14845 * unittests/memory-map-selftests.c: Fix common/ includes.
14846 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14847 * unittests/function-view-selftests.c: Fix common/ includes.
14848 * unittests/environ-selftests.c: Fix common/ includes.
14849 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14850 * unittests/common-utils-selftests.c: Fix common/ includes.
14851 * unittests/cli-utils-selftests.c: Fix common/ includes.
14852 * unittests/array-view-selftests.c: Fix common/ includes.
14853 * ui-file.c: Fix common/ includes.
14854 * tui/tui-io.c: Fix common/ includes.
14855 * tracepoint.h: Fix common/ includes.
14856 * tracepoint.c: Fix common/ includes.
14857 * tracefile-tfile.c: Fix common/ includes.
14858 * top.h: Fix common/ includes.
14859 * top.c: Fix common/ includes.
14860 * thread.c: Fix common/ includes.
14861 * target/waitstatus.h: Fix common/ includes.
14862 * target/waitstatus.c: Fix common/ includes.
14863 * target.h: Fix common/ includes.
14864 * target.c: Fix common/ includes.
14865 * target-memory.c: Fix common/ includes.
14866 * target-descriptions.c: Fix common/ includes.
14867 * symtab.h: Fix common/ includes.
14868 * symfile.c: Fix common/ includes.
14869 * stap-probe.c: Fix common/ includes.
14870 * spu-linux-nat.c: Fix common/ includes.
14871 * sparc-nat.c: Fix common/ includes.
14872 * source.c: Fix common/ includes.
14873 * solib.c: Fix common/ includes.
14874 * solib-target.c: Fix common/ includes.
14875 * ser-unix.c: Fix common/ includes.
14876 * ser-tcp.c: Fix common/ includes.
14877 * ser-pipe.c: Fix common/ includes.
14878 * ser-base.c: Fix common/ includes.
14879 * selftest-arch.c: Fix common/ includes.
14880 * s12z-tdep.c: Fix common/ includes.
14881 * rust-exp.y: Fix common/ includes.
14882 * rs6000-aix-tdep.c: Fix common/ includes.
14883 * riscv-tdep.c: Fix common/ includes.
14884 * remote.c: Fix common/ includes.
14885 * remote-notif.h: Fix common/ includes.
14886 * remote-fileio.h: Fix common/ includes.
14887 * remote-fileio.c: Fix common/ includes.
14888 * regcache.h: Fix common/ includes.
14889 * regcache.c: Fix common/ includes.
14890 * record-btrace.c: Fix common/ includes.
14891 * python/python.c: Fix common/ includes.
14892 * python/py-type.c: Fix common/ includes.
14893 * python/py-inferior.c: Fix common/ includes.
14894 * progspace.h: Fix common/ includes.
14895 * producer.c: Fix common/ includes.
14896 * procfs.c: Fix common/ includes.
14897 * proc-api.c: Fix common/ includes.
14898 * printcmd.c: Fix common/ includes.
14899 * ppc-linux-nat.c: Fix common/ includes.
14900 * parser-defs.h: Fix common/ includes.
14901 * osdata.c: Fix common/ includes.
14902 * obsd-nat.c: Fix common/ includes.
14903 * nat/x86-linux.c: Fix common/ includes.
14904 * nat/x86-linux-dregs.c: Fix common/ includes.
14905 * nat/x86-dregs.h: Fix common/ includes.
14906 * nat/x86-dregs.c: Fix common/ includes.
14907 * nat/ppc-linux.c: Fix common/ includes.
14908 * nat/mips-linux-watch.h: Fix common/ includes.
14909 * nat/mips-linux-watch.c: Fix common/ includes.
14910 * nat/linux-waitpid.c: Fix common/ includes.
14911 * nat/linux-ptrace.h: Fix common/ includes.
14912 * nat/linux-ptrace.c: Fix common/ includes.
14913 * nat/linux-procfs.c: Fix common/ includes.
14914 * nat/linux-personality.c: Fix common/ includes.
14915 * nat/linux-osdata.c: Fix common/ includes.
14916 * nat/linux-namespaces.c: Fix common/ includes.
14917 * nat/linux-btrace.h: Fix common/ includes.
14918 * nat/linux-btrace.c: Fix common/ includes.
14919 * nat/fork-inferior.c: Fix common/ includes.
14920 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14921 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14922 * nat/aarch64-linux.c: Fix common/ includes.
14923 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14924 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14925 * namespace.h: Fix common/ includes.
14926 * mips-linux-tdep.c: Fix common/ includes.
14927 * minsyms.c: Fix common/ includes.
14928 * mi/mi-parse.h: Fix common/ includes.
14929 * mi/mi-main.c: Fix common/ includes.
14930 * mi/mi-cmd-env.c: Fix common/ includes.
14931 * memrange.h: Fix common/ includes.
14932 * memattr.c: Fix common/ includes.
14933 * maint.h: Fix common/ includes.
14934 * maint.c: Fix common/ includes.
14935 * main.c: Fix common/ includes.
14936 * machoread.c: Fix common/ includes.
14937 * location.c: Fix common/ includes.
14938 * linux-thread-db.c: Fix common/ includes.
14939 * linux-nat.c: Fix common/ includes.
14940 * linux-fork.c: Fix common/ includes.
14941 * inline-frame.c: Fix common/ includes.
14942 * infrun.c: Fix common/ includes.
14943 * inflow.c: Fix common/ includes.
14944 * inferior.h: Fix common/ includes.
14945 * inferior.c: Fix common/ includes.
14946 * infcmd.c: Fix common/ includes.
14947 * inf-ptrace.c: Fix common/ includes.
14948 * inf-child.c: Fix common/ includes.
14949 * ia64-linux-nat.c: Fix common/ includes.
14950 * i387-tdep.c: Fix common/ includes.
14951 * i386-tdep.c: Fix common/ includes.
14952 * i386-linux-tdep.c: Fix common/ includes.
14953 * i386-linux-nat.c: Fix common/ includes.
14954 * i386-go32-tdep.c: Fix common/ includes.
14955 * i386-fbsd-tdep.c: Fix common/ includes.
14956 * i386-fbsd-nat.c: Fix common/ includes.
14957 * guile/scm-type.c: Fix common/ includes.
14958 * guile/guile.c: Fix common/ includes.
14959 * go32-nat.c: Fix common/ includes.
14960 * gnu-nat.c: Fix common/ includes.
14961 * gdbthread.h: Fix common/ includes.
14962 * gdbarch-selftests.c: Fix common/ includes.
14963 * gdb_usleep.c: Fix common/ includes.
14964 * gdb_select.h: Fix common/ includes.
14965 * gdb_bfd.c: Fix common/ includes.
14966 * gcore.c: Fix common/ includes.
14967 * fork-child.c: Fix common/ includes.
14968 * findvar.c: Fix common/ includes.
14969 * fbsd-nat.c: Fix common/ includes.
14970 * event-top.c: Fix common/ includes.
14971 * event-loop.c: Fix common/ includes.
14972 * dwarf2read.c: Fix common/ includes.
14973 * dwarf2loc.c: Fix common/ includes.
14974 * dwarf2-frame.c: Fix common/ includes.
14975 * dwarf-index-cache.c: Fix common/ includes.
14976 * dtrace-probe.c: Fix common/ includes.
14977 * disasm-selftests.c: Fix common/ includes.
14978 * defs.h: Fix common/ includes.
14979 * csky-tdep.c: Fix common/ includes.
14980 * cp-valprint.c: Fix common/ includes.
14981 * cp-support.h: Fix common/ includes.
14982 * cp-support.c: Fix common/ includes.
14983 * corelow.c: Fix common/ includes.
14984 * completer.h: Fix common/ includes.
14985 * completer.c: Fix common/ includes.
14986 * compile/compile.c: Fix common/ includes.
14987 * compile/compile-loc2c.c: Fix common/ includes.
14988 * compile/compile-cplus-types.c: Fix common/ includes.
14989 * compile/compile-cplus-symbols.c: Fix common/ includes.
14990 * command.h: Fix common/ includes.
14991 * cli/cli-dump.c: Fix common/ includes.
14992 * cli/cli-cmds.c: Fix common/ includes.
14993 * charset.c: Fix common/ includes.
14994 * build-id.c: Fix common/ includes.
14995 * btrace.h: Fix common/ includes.
14996 * btrace.c: Fix common/ includes.
14997 * breakpoint.h: Fix common/ includes.
14998 * breakpoint.c: Fix common/ includes.
14999 * ax.h:
15000 (enum agent_op): Fix common/ includes.
15001 * ax-general.c (struct aop_map): Fix common/ includes.
15002 * ax-gdb.c: Fix common/ includes.
15003 * auxv.c: Fix common/ includes.
15004 * auto-load.c: Fix common/ includes.
15005 * arm-tdep.c: Fix common/ includes.
15006 * arch/riscv.c: Fix common/ includes.
15007 * arch/ppc-linux-common.c: Fix common/ includes.
15008 * arch/i386.c: Fix common/ includes.
15009 * arch/arm.c: Fix common/ includes.
15010 * arch/arm-linux.c: Fix common/ includes.
15011 * arch/arm-get-next-pcs.c: Fix common/ includes.
15012 * arch/amd64.c: Fix common/ includes.
15013 * arch/aarch64.c: Fix common/ includes.
15014 * arch/aarch64-insn.c: Fix common/ includes.
15015 * arch-utils.c: Fix common/ includes.
15016 * amd64-windows-tdep.c: Fix common/ includes.
15017 * amd64-tdep.c: Fix common/ includes.
15018 * amd64-sol2-tdep.c: Fix common/ includes.
15019 * amd64-obsd-tdep.c: Fix common/ includes.
15020 * amd64-nbsd-tdep.c: Fix common/ includes.
15021 * amd64-linux-tdep.c: Fix common/ includes.
15022 * amd64-linux-nat.c: Fix common/ includes.
15023 * amd64-fbsd-tdep.c: Fix common/ includes.
15024 * amd64-fbsd-nat.c: Fix common/ includes.
15025 * amd64-dicos-tdep.c: Fix common/ includes.
15026 * amd64-darwin-tdep.c: Fix common/ includes.
15027 * agent.c: Fix common/ includes.
15028 * ada-lang.h: Fix common/ includes.
15029 * ada-lang.c: Fix common/ includes.
15030 * aarch64-tdep.c: Fix common/ includes.
15031
2f5c153e
TT
150322019-01-25 Tom Tromey <tom@tromey.com>
15033
15034 * common/create-version.sh: Use common/version.h.
15035
adc6a863
PA
150362019-01-24 Pedro Alves <palves@redhat.com>
15037
15038 * infrun.c (signal_stop, signal_print, signal_program)
15039 (signal_catch, signal_pass): Now arrays instead of pointers.
15040 (update_signals_program_target, do_target_resume)
15041 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15042 * linux-nat.c (linux_nat_target::pass_signals)
15043 (linux_nat_target::create_inferior, linux_nat_target::attach):
15044 Adjust.
15045 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15046 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15047 * procfs.c (procfs_target::pass_signals): Adjust.
15048 * record-full.c (record_full_target::resume): Adjust.
15049 * remote.c (remote_target::pass_signals)
15050 (remote_target::program_signals): Adjust.
15051 * target-debug.h (target_debug_print_signals): Now takes a
15052 gdb::array_view as parameter. Adjust.
15053 * target.h (target_ops) <pass_signals, program_signals>: Replace
15054 pointer and length parameters with gdb::array_view.
15055 (target_pass_signals, target_program_signals): Likewise.
15056 * target-delegates.c: Regenerate.
15057
3046d67a
PA
150582019-01-24 Pedro Alves <palves@redhat.com>
15059
15060 * common/forward-scope-exit.h
15061 (forward_scope_exit::forward_scope_exit): Pass arguments to
15062 m_bind_function directly, instead of creating a std::bind and
15063 copying that.
15064
353229bf
AH
150652019-01-24 Alan Hayward <alan.hayward@arm.com>
15066
15067 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15068 for static members.
15069 (pass_in_v_vfp_candidate): Likewise.
15070
311dc83a
TT
150712019-01-23 Tom Tromey <tom@tromey.com>
15072 Pedro Alves <palves@redhat.com>
15073
15074 * regcache.c (class regcache_invalidator): Remove.
15075 (regcache::raw_write): Use make_scope_exit.
15076
296bd123
TT
150772019-01-23 Tom Tromey <tom@tromey.com>
15078
15079 * ui-out.h (class ui_out_emit_type): Update comment.
15080
979a0d13
TT
150812019-01-23 Tom Tromey <tom@tromey.com>
15082
15083 * infrun.c (fetch_inferior_event): Update comment.
15084
d238133d
TT
150852019-01-23 Tom Tromey <tom@tromey.com>
15086 Pedro Alves <palves@redhat.com>
15087
15088 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15089 parameter.
15090 (fetch_inferior_event): Use SCOPE_EXIT.
15091
15092
9885e6bb
TT
150932019-01-23 Tom Tromey <tom@tromey.com>
15094 Pedro Alves <palves@redhat.com>
15095
15096 * infrun.c (disable_thread_events): Delete.
15097 (stop_all_threads): Use SCOPE_EXIT.
15098
286526c1
TT
150992019-01-23 Tom Tromey <tom@tromey.com>
15100 Pedro Alves <palves@redhat.com>
15101
15102 * symfile.c: Include forward-scope-exit.h.
15103 (clear_symtab_users_cleanup): Replace forward declaration with
15104 a FORWARD_SCOPE_EXIT.
15105 (syms_from_objfile_1): Use the forward_scope_exit and
15106 gdb::optional instead of cleanup_function.
15107 (reread_symbols): Use the forward_scope_exit instead of
15108 cleanup_function.
15109 (clear_symtab_users_cleanup): Remove function.
15110
1db93f14
TT
151112019-01-23 Tom Tromey <tom@tromey.com>
15112 Pedro Alves <palves@redhat.com>
15113
15114 * linux-nat.c: Include scope-exit.h.
15115 (cleanup_target_stop): Remove.
15116 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15117 SCOPE_EXIT.
15118
2cc83d1e
TT
151192019-01-23 Tom Tromey <tom@tromey.com>
15120 Pedro Alves <palves@redhat.com>
15121
15122 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15123 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15124
694c6bf5
TT
151252019-01-23 Tom Tromey <tom@tromey.com>
15126 Andrew Burgess <andrew.burgess@embecosm.com>
15127 Pedro Alves <palves@redhat.com>
15128
15129 * infrun.c (fetch_inferior_event): Use scope_exit.
15130 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15131 * top.c (execute_command): Use scope_exit.
15132 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15133 * utils.c (do_bpstat_clear_actions_cleanup)
15134 (make_bpstat_clear_actions_cleanup): Remove.
15135
4c41382a
TT
151362019-01-23 Tom Tromey <tom@tromey.com>
15137 Pedro Alves <palves@redhat.com>
15138
15139 * infrun.c: Include "common/scope-exit.h"
15140 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15141 (wait_for_inferior): Use SCOPE_EXIT.
15142 (fetch_inferior_event): Use scope_exit.
15143
89f8fb50
TT
151442019-01-23 Tom Tromey <tom@tromey.com>
15145 Pedro Alves <palves@redhat.com>
15146
15147 * breakpoint.c (create_breakpoint): Remove cleanup.
15148
5419bdae
TT
151492019-01-23 Tom Tromey <tom@tromey.com>
15150 Andrew Burgess <andrew.burgess@embecosm.com>
15151 Pedro Alves <palves@redhat.com>
15152
e587ef42
PA
151532019-01-23 Pedro Alves <palves@redhat.com>
15154
15155 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15156
77f0e74c
PA
151572019-01-23 Pedro Alves <palves@redhat.com>
15158 Andrew Burgess <andrew.burgess@embecosm.com>
15159
15160 * gdbthread.h: Include "common/forward-scope-exit.h".
15161 (scoped_finish_thread_state): Redefine custom class in terms of
15162 forward_scope_exit.
15163
5b9b3e53
PA
151642019-01-23 Pedro Alves <palves@redhat.com>
15165 Andrew Burgess <andrew.burgess@embecosm.com>
15166
15167 * common/forward-scope-exit.h: New file.
15168
54b65c9b
PA
151692019-01-23 Pedro Alves <palves@redhat.com>
15170 Andrew Burgess <andrew.burgess@embecosm.com>
15171 Tom Tromey <tom@tromey.com>
15172
15173 * common/scope-exit.h: New file.
15174
cf08fb29
PA
151752019-01-23 Pedro Alves <palves@redhat.com>
15176
15177 * common/preprocessor.h (ESC): Rename to ...
15178 (ESC_PARENS): ... this.
15179 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15180 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15181
ae73e2e2
TT
151822019-01-23 Tom Tromey <tom@tromey.com>
15183
15184 * language.h (class scoped_switch_to_sym_language_if_auto):
15185 Initialize m_lang in both cases.
15186
6594e122
AH
151872019-01-23 Alan Hayward <alan.hayward@arm.com>
15188
15189 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15190 with XCNEW.
15191
a7c9855d
TT
151922019-01-22 Tom Tromey <tom@tromey.com>
15193
15194 * corelow.c: Do not include sys/file.h.
15195
93cc1d53
TT
151962019-01-22 Tom Tromey <tom@tromey.com>
15197
15198 * tui/tui-wingeneral.h: Include gdb_curses.h.
15199
38561778
TT
152002019-01-22 Tom Tromey <tom@tromey.com>
15201
15202 * source-cache.h (class source_cache) <get_source_lines,
15203 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15204
37b3ab5b
TT
152052019-01-22 Tom Tromey <tom@tromey.com>
15206
15207 * remote-fileio.h (struct remote_target): Declare.
15208
3fabc016
TT
152092019-01-22 Tom Tromey <tom@tromey.com>
15210
15211 * python/py-arch.c: Do not include py-ref.h.
15212 * python/py-bpevent.c: Do not include py-ref.h.
15213 * python/py-cmd.c: Do not include py-ref.h.
15214 * python/py-continueevent.c: Do not include py-ref.h.
15215 * python/py-event.h: Do not include py-ref.h.
15216 * python/py-evtregistry.c: Do not include py-ref.h.
15217 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15218 * python/py-frame.c: Do not include py-ref.h.
15219 * python/py-framefilter.c: Do not include py-ref.h.
15220 * python/py-function.c: Do not include py-ref.h.
15221 * python/py-infevents.c: Do not include py-ref.h.
15222 * python/py-linetable.c: Do not include py-ref.h.
15223 * python/py-objfile.c: Do not include py-ref.h.
15224 * python/py-param.c: Do not include py-ref.h.
15225 * python/py-prettyprint.c: Do not include py-ref.h.
15226 * python/py-progspace.c: Do not include py-ref.h.
15227 * python/py-symbol.c: Do not include py-ref.h.
15228 * python/py-symtab.c: Do not include py-ref.h.
15229 * python/py-type.c: Do not include py-ref.h.
15230 * python/py-unwind.c: Do not include py-ref.h.
15231 * python/py-utils.c: Do not include py-ref.h.
15232 * python/py-value.c: Do not include py-ref.h.
15233 * python/py-varobj.c: Do not include py-ref.h.
15234 * python/py-xmethods.c: Do not include py-ref.h.
15235 * python/python.c: Do not include py-ref.h.
15236 * varobj.c: Do not include py-ref.h.
15237
6b4d7774
TT
152382019-01-22 Tom Tromey <tom@tromey.com>
15239
15240 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15241 keyword for bcache.
15242
7af7e9b5
TT
152432019-01-22 Tom Tromey <tom@tromey.com>
15244
15245 * compile/compile-cplus-types.c: Remove a comment by #include.
15246
951d1049
TT
152472019-01-22 Tom Tromey <tom@tromey.com>
15248
15249 * compile/gcc-c-plugin.h: Include compile-internal.h.
15250
d65d5705
TT
152512019-01-22 Tom Tromey <tom@tromey.com>
15252
15253 * stabsread.c (EXTERN): Do not define.
15254 (symnum, next_symbol_text_func, processing_gcc_compilation)
15255 (within_function, global_sym_chain, global_stabs)
15256 (previous_stab_code, this_object_header_files)
15257 (n_this_object_header_files)
15258 (n_allocated_this_object_header_files): Define.
15259 * stabsread.h (EXTERN): Never define. Use "extern".
15260
b6fb1ee5
PW
152612019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15262
15263 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15264 history_value.
15265
be6d4f74
TT
152662019-01-21 Tom Tromey <tom@tromey.com>
15267
15268 * ui-out.c: Fix includes.
15269 * tui/tui-source.c: Fix includes.
15270 * target.c: Fix includes.
15271 * remote.c: Fix includes.
15272 * regcache.c: Fix includes.
15273 * python/py-block.c: Fix includes.
15274 * printcmd.c: Fix includes.
15275 * or1k-tdep.c: Fix includes.
15276 * mi/mi-main.c: Fix includes.
15277 * m32r-tdep.c: Fix includes.
15278 * csky-tdep.c: Fix includes.
15279 * compile/compile-cplus-types.c: Fix includes.
15280 * cli/cli-interp.c: Fix includes.
15281
73021deb
AH
152822019-01-21 Alan Hayward <alan.hayward@arm.com>
15283
15284 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15285 for padding.
15286
7932255d
TT
152872019-01-16 Tom Tromey <tom@tromey.com>
15288
15289 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15290 earlier.
15291 (struct objfile) <msymbols_range>: Move from top level.
15292 <msymbols>: New method.
15293 (class objfile_msymbols): Remove.
15294 * symtab.c (default_collect_symbol_completion_matches_break_on):
15295 Update.
15296 * symmisc.c (dump_msymbols): Update.
15297 * stabsread.c (scan_file_globals): Update.
15298 * objc-lang.c (info_selectors_command, info_classes_command)
15299 (find_methods): Update.
15300 * minsyms.c (find_solib_trampoline_target): Update.
15301 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15302 * coffread.c (coff_symfile_read): Update.
15303 * ada-lang.c (ada_lookup_simple_minsym)
15304 (ada_collect_symbol_completion_matches): Update.
15305
604b1bfb
TT
153062019-01-16 Tom Tromey <tom@tromey.com>
15307
15308 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15309 type. Remove no-argument constructor.
15310 <iterator::operator++>: Simplify.
15311 <begin>: Update.
15312 <end>: Use minimal_symbol_count.
15313
f252c6d5
TT
153142019-01-16 Tom Tromey <tom@tromey.com>
15315
15316 * objfiles.h (struct objfile) <psymtabs>: New method.
15317 (class objfile_psymtabs): Remove.
15318 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15319 typedef.
15320 <range>: New method.
15321 (require_partial_symbols): Change return type.
15322 * psymtab.c (require_partial_symbols)
15323 (psym_expand_symtabs_matching): Update.
15324 * mdebugread.c (parse_partial_symbols): Update.
15325 * dbxread.c (dbx_end_psymtab): Update.
15326
b669c953
TT
153272019-01-15 Tom Tromey <tom@tromey.com>
15328
15329 * symtab.c (lookup_objfile_from_block)
15330 (lookup_symbol_in_objfile_symtabs)
15331 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15332 (find_line_symtab, info_sources_command)
15333 (default_collect_symbol_completion_matches_break_on)
15334 (make_source_files_completion_list): Update.
15335 * symmisc.c (print_objfile_statistics, dump_objfile)
15336 (maintenance_print_symbols, maintenance_info_symtabs)
15337 (maintenance_check_symtabs, maintenance_info_line_tables):
15338 Update.
15339 * source.c (select_source_symtab)
15340 (forget_cached_source_info_for_objfile): Update.
15341 * objfiles.h (class objfile_compunits): Remove.
15342 (struct objfile) <compunits_range>: New typedef.
15343 (compunits): New method.
15344 * objfiles.c (objfile_relocate1): Update.
15345 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15346 * maint.c (count_symtabs_and_blocks): Update.
15347 * linespec.c (iterate_over_all_matching_symtabs): Update.
15348 * cp-support.c (add_symbol_overload_list_qualified): Update.
15349 * coffread.c (coff_symtab_read): Update.
15350 * ada-lang.c (add_nonlocal_symbols)
15351 (ada_collect_symbol_completion_matches)
15352 (ada_add_global_exceptions): Update.
15353
7e955d83
TT
153542019-01-15 Tom Tromey <tom@tromey.com>
15355
15356 * progspace.h (program_space) <objfiles_safe_range>: New
15357 typedef.
15358 <objfiles_safe>: New method.
15359 * objfiles.h (class all_objfiles_safe): Remove.
15360 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15361 * jit.c (jit_inferior_exit_hook): Update.
15362
2030c079
TT
153632019-01-17 Tom Tromey <tom@tromey.com>
15364
15365 * progspace.h (program_space) <objfiles_range>: New typedef.
15366 <objfiles>: New method.
15367 <objfiles_head>: Rename from objfiles.
15368 (object_files): Update.
15369 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15370 * guile/scm-pretty-print.c
15371 (ppscm_find_pretty_printer_from_objfiles): Update.
15372 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15373 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15374 Update.
15375 * python/py-progspace.c (pspy_get_objfiles): Update.
15376 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15377 Update.
15378 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15379 (objfpy_lookup_objfile_by_build_id): Update.
15380 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15381 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15382 Update.
15383 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15384 (expand_symtab_containing_pc, lookup_objfile_from_block)
15385 (lookup_static_symbol, basic_lookup_transparent_type)
15386 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15387 (find_line_symtab, info_sources_command)
15388 (default_collect_symbol_completion_matches_break_on)
15389 (make_source_files_completion_list, find_main_name): Update.
15390 * symmisc.c (print_symbol_bcache_statistics)
15391 (print_objfile_statistics, maintenance_print_symbols)
15392 (maintenance_print_msymbols, maintenance_print_objfiles)
15393 (maintenance_info_symtabs, maintenance_check_symtabs)
15394 (maintenance_expand_symtabs, maintenance_info_line_tables):
15395 Update.
15396 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15397 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15398 (map_overlay_command, unmap_overlay_command)
15399 (simple_overlay_update, expand_symtabs_matching)
15400 (map_symbol_filenames): Update.
15401 * symfile-debug.c (set_debug_symfile): Update.
15402 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15403 Update.
15404 * source.c (select_source_symtab, forget_cached_source_info):
15405 Update.
15406 * solib.c (solib_read_symbols): Update.
15407 * solib-spu.c (append_ocl_sos): Update.
15408 * psymtab.c (maintenance_print_psymbols)
15409 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15410 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15411 * printcmd.c (info_symbol_command): Update.
15412 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15413 Update.
15414 * objfiles.h (class all_objfiles): Remove.
15415 * objfiles.c (have_partial_symbols, have_full_symbols)
15416 (have_minimal_symbols, qsort_cmp, update_section_map)
15417 (shared_objfile_contains_address_p)
15418 (default_iterate_over_objfiles_in_search_order): Update.
15419 * objc-lang.c (info_selectors_command, info_classes_command)
15420 (find_methods): Update.
15421 * minsyms.c (find_solib_trampoline_target): Update.
15422 * maint.c (maintenance_info_sections)
15423 (maintenance_translate_address, count_symtabs_and_blocks):
15424 Update.
15425 * main.c (captured_main_1): Update.
15426 * linux-thread-db.c (try_thread_db_load_from_pdir)
15427 (has_libpthread): Update.
15428 * linespec.c (iterate_over_all_matching_symtabs)
15429 (search_minsyms_for_name): Update.
15430 * jit.c (jit_find_objf_with_entry_addr): Update.
15431 * hppa-tdep.c (find_unwind_entry)
15432 (hppa_lookup_stub_minimal_symbol): Update.
15433 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15434 Update.
15435 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15436 (elf_gnu_ifunc_resolve_by_got): Update.
15437 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15438 * dwarf-index-write.c (save_gdb_index_command): Update.
15439 * cp-support.c (add_symbol_overload_list_qualified): Update.
15440 * breakpoint.c (create_overlay_event_breakpoint)
15441 (create_longjmp_master_breakpoint)
15442 (create_std_terminate_master_breakpoint)
15443 (create_exception_master_breakpoint): Update.
15444 * blockframe.c (find_pc_partial_function): Update.
15445 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15446 (ada_collect_symbol_completion_matches)
15447 (ada_add_global_exceptions): Update.
15448
776489e0
TT
154492019-01-17 Tom Tromey <tom@tromey.com>
15450
15451 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15452 declare VEC.
15453 (solib_target_parse_libraries): Change return type.
15454 (library_list_start_segment, library_list_start_section)
15455 (library_list_end_library, library_list_start_library); Update.
15456 (solib_target_free_library_list): Remove.
15457 (solib_target_parse_libraries): Remove cleanup. Change return
15458 type.
15459 (solib_target_current_sos): Update.
15460
6471e7d2
TT
154612019-01-17 Tom Tromey <tromey@bapiya>
15462
15463 * valprint.c: Replace "the the" with "the".
15464 * symtab.c: Replace "the the" with "the".
15465 * solib.c: Replace "the the" with "the".
15466 * solib-dsbt.c: Replace "the the" with "the".
15467 * linespec.c: Replace "the the" with "the".
15468 * dwarf2loc.h: Replace "the the" with "the".
15469 * amd64-windows-tdep.c: Replace "the the" with "the".
15470 * aarch64-tdep.c: Replace "the the" with "the".
15471
c24bdb02
KS
154722019-01-16 Keith Seitz <keiths@redhat.com>
15473
15474 PR gdb/23773
15475 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15476 <builder>: Rename to ..
15477 <m_builder>: ... this and make private.
15478 (dwarf2_cu::get_builder): New method. Change all users of
15479 `builder' to use this method.
15480 (dwarf2_start_symtab): Move to ...
15481 (dwarf2_cu::start_symtab): ... here. Update all callers
15482 (setup_type_unit_groups): Move to ...
15483 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15484 callers.
15485 (dwarf2_cu::reset_builder): New method.
15486 (process_full_compunit, process_full_type_unit): Use
15487 dwarf2_cu::reset_builder.
15488 (follow_die_offset): Record the ancestor CU if it is different
15489 from the followed DIE's CU.
15490 (follow_die_sig_1): Likewise.
15491
8d64371b
TT
154922019-01-15 Tom Tromey <tom@tromey.com>
15493
15494 * remote.c (class remote_state) <buf>: Now a char_vector.
15495 <buf_size>: Remove.
15496 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15497 parameter.
15498 (remote_target::getpkt_or_notif_sane_1)
15499 (remote_target::getpkt_sane)
15500 (remote_target::getpkt_or_notif_sane): Likewise.
15501 (class remote_target) <putpkt>: New overload.
15502 (remote_target::read_frame): Change type of "buf_p". Remove
15503 sizeof_p parameter.
15504 (packet_ok): New overload.
15505 (packet_check_result): New overload.
15506 Update all uses.
15507
bb277751
TT
155082019-01-14 Tom Tromey <tom@tromey.com>
15509
15510 * remote-notif.c (handle_notification, remote_notif_ack)
15511 (remote_notif_parse): Make "buf" const.
15512 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15513 const.
15514 (remote_notif_parse, remote_notif_ack, handle_notification):
15515 Likewise.
15516 * remote.c (remote_notif_stop_parse): Make "buf" const.
15517 (remote_target::remote_parse_stop_reply): Make "buf" const.
15518 (remote_notif_stop_ack): Make "buf" const.
15519
05be00a8
TT
155202019-01-14 Tom Tromey <tom@tromey.com>
15521
15522 * remote.c (remote_console_output): Make parameter const.
15523
491adeca
TT
155242019-01-14 Tom Tromey <tom@tromey.com>
15525
15526 * target-debug.h (target_debug_print_signals): Constify.
15527 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15528 * procfs.c (procfs_target::pass_signals): Update.
15529 * linux-nat.c (linux_nat_target::pass_signals): Update.
15530 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15531 * target-delegates.c: Rebuild.
15532 * remote.c (remote_target::program_signals): Update.
15533 (remote_target::pass_signals): Update.
15534 * target.c (target_pass_signals): Constify argument.
15535 (target_program_signals): Likewise.
15536 * target.h (struct target_ops) <pass_signals, program_signals>:
15537 Constify argument.
15538 (target_pass_signals, target_program_signals): Constify argument.
15539
bbd94648
TT
155402019-01-14 Tom Tromey <tom@tromey.com>
15541
15542 PR tui/28819:
15543 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15544
6f072a10
PFC
155452019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15546
15547 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15548 field.
15549 * rs6000-tdep.c: Include reggroups.h.
15550 (IS_V_ALIAS_PSEUDOREG): Define.
15551 (rs6000_register_name): Return names for the "vX" aliases.
15552 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15553 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15554 aliases. Call default_register_reggroup_p for all other
15555 pseudo-registers.
15556 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15557 New functions.
15558 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15559 Handle "vX" aliases.
15560 (v_alias_pseudo_register_collect): New function.
15561 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15562 (rs6000_gdbarch_init): Initialize "vX" aliases as
15563 pseudo-registers. Restore registration of
15564 rs6000_pseudo_register_reggroup_p with
15565 set_tdesc_pseudo_register_reggroup_p.
15566
1a782351
MF
155672019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15568
15569 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15570 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15571 set_gdbarch_num_pseudo_regs.
15572
d73cff18
PW
155732019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15574
15575 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15576 Remove arg prefixname, add do_set and do_show.
15577 Add member functions set_list and show_list.
15578 * cli/cli-style.c (class cli_style_option): Update accordingly.
15579 (style_set_list): Move to file scope.
15580 (style_show_list): Likewise.
15581 (set_style): Call help_list.
15582 (show_style): Call cmd_show_list.
15583 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15584 Update to use the new macro.
15585
60a90376
JB
155862019-10-12 Joel Brobecker <brobecker@adacore.com>
15587
15588 * ada-lang.c (_initialize_ada_language): Expand the help text
15589 for the "catch exception" command.
15590
9d7c67bf
PW
155912019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15592
15593 * symtab.c (matching_obj_sections): Initialize obj,
15594 declare it closer to its usage.
15595
7cf47dc4
TT
155962019-01-10 Tom Tromey <tom@tromey.com>
15597
15598 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15599 (basic_inf_threads_range): Remove.
15600 (inf_threads_range, inf_non_exited_threads_range)
15601 (safe_inf_threads_range): Use next_adapter.
15602
d3cb6808
KS
156032019-01-10 Keith Seitz <keiths@redhat.com>
15604
15605 PR gdb/23712
15606 PR symtab/23010
15607 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15608 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15609
63a20375
KS
156102019-01-10 Keith Seitz <keiths@redhat.com>
15611
15612 PR gdb/23712
15613 PR symtab/23010
15614 * dictionary.c (pending_to_vector): Remove.
15615 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15616 Remove _1 suffix, replacing functions of the same name. Update
15617 all callers.
15618 (dict_create_hashed, dict_create_hashed_expandable)
15619 (dict_create_linear, dict_create_linear_expandable, dict_free)
15620 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15621 Make functions static.
15622
b026f593
KS
156232019-01-10 Keith Seitz <keiths@redhat.com>
15624
15625 PR gdb/23712
15626 PR symtab/23010
15627 * dictionary.h (struct dictionary): Replace declaration with
15628 multidictionary.
15629 (dict_create_hashed, dict_create_hashed_expandable)
15630 (dict_create_linear, dict_create_linear_expandable)
15631 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15632 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15633 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15634 taking multidictionary argument.
15635 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15636 * block.h (struct block) <dict>: Change to multidictionary
15637 and rename `multidict'.
15638 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15639 symmisc.c: Update all dictionary references to multidictionary.
15640
c7748ee9
KS
156412019-01-10 Keith Seitz <keiths@redhat.com>
15642
15643 PR gdb/23712
15644 PR symtab/23010
15645 * dictionary.c: Include unordered_map.
15646 (pending_to_vector): New function.
15647 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15648 Rewrite the non-"_1" functions to take vector instead
15649 of linked list.
15650 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15651 "new" _1 versions of the same name.
15652 (multidictionary): Define.
15653 (std::hash<enum language): New definition.
15654 (collate_pending_symbols_by_language, mdict_create_hashed)
15655 (mdict_create_hashed_expandable, mdict_create_linear)
15656 (mdict_create_linear_expandable, mdict_free)
15657 (find_language_dictionary, create_new_language_dictionary)
15658 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15659 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15660 (mdict_size, mdict_empty): New functions.
15661 * dictionary.h (mdict_iterator): Define.
15662
67aa1f3c
PA
156632019-01-10 Pedro Alves <palves@redhat.com>
15664
15665 * breakpoint.c (read_uploaded_action)
15666 (create_tracepoint_from_upload): Adjust to use
15667 gdb::unique_xmalloc_ptr.
15668 * ctf.c (ctf_write_uploaded_tp):
15669 (SET_ARRAY_FIELD): Use emplace_back.
15670 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15671 * tracefile-tfile.c (tfile_write_uploaded_tp):
15672 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15673 gdb::unique_xmalloc_ptr.
15674 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15675 at_string, cond_string, cmd_strings>: Replace char pointers
15676 with gdb::unique_xmalloc_ptr.
15677
2f667667
PA
156782019-01-10 Pedro Alves <palves@redhat.com>
15679
15680 * solib-target.c (library_list_start_library): Don't xstrdup name.
15681
36cb7237
PA
156822019-01-10 Pedro Alves <palves@redhat.com>
15683
15684 * mdebugread.c (parse_partial_symbols): Use
15685 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15686
da584958
AB
156872019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15688
15689 * linux-fork.c (scoped_switch_fork_info)
15690 <~scoped_switch_fork_info>: Fix incorrect variable name.
15691
1ef8573c
AB
156922019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15693
15694 * linux-fork.c (scoped_switch_fork_info)
15695 <scoped_switch_fork_info>: Make explicit.
15696 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15697
8d7bcccb
TT
156982019-01-10 Tom Tromey <tom@tromey.com>
15699
15700 * objfiles.h (objfile::reset_psymtabs): Update.
15701 * objfiles.c (objfile::objfile): Update.
15702 * psymtab.h (psymtab_storage::obstack): Update.
15703 (psymtab_storage::m_obstack): Use gdb::optional.
15704 (class psymtab_storage): Update comment. Remove objfile
15705 parameter.
15706 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15707
b596a3c7
TT
157082019-01-10 Tom Tromey <tom@tromey.com>
15709
15710 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15711 <free_psymtabs>: Now private.
15712 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15713 (allocate_psymtab): Use new method.
15714
a9342b62
TT
157152019-01-10 Tom Tromey <tom@tromey.com>
15716
15717 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15718 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15719 * mdebugread.c (parse_partial_symbols): Use
15720 allocate_dependencies.
15721 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15722 allocate_dependencies.
15723 (process_psymtab_comp_unit_reader)
15724 (build_type_psymtab_dependencies): Likewise.
15725 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15726
5af70966
TT
157272019-01-10 Tom Tromey <tom@tromey.com>
15728
15729 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15730 PSYMBOL_SET_LANGUAGE.
15731 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15732
5923a04c
TT
157332019-01-10 Tom Tromey <tom@tromey.com>
15734
15735 * psymtab.h (psymtab_storage::obstack): New method.
15736 <m_obstack>: Rename from obstack; now private.
15737 * psymtab.c (psymtab_storage): Update.
15738 * dwarf2read.c (create_addrmap_from_index)
15739 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15740 Update.
15741
6d6a12bf
TT
157422019-01-10 Tom Tromey <tom@tromey.com>
15743
15744 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15745 * objfiles.h (objfile::reset_psymtabs): New method.
15746
d320c2b5
TT
157472019-01-10 Tom Tromey <tom@tromey.com>
15748
15749 * symmisc.c (print_symbol_bcache_statistics): Update.
15750 (print_objfile_statistics): Update.
15751 * symfile.c (reread_symbols): Update.
15752 * psymtab.h (class psymtab_storage): New.
15753 * psymtab.c (psymtab_storage): New constructor.
15754 (~psymtab_storage): New destructor.
15755 (require_partial_symbols): Update.
15756 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15757 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15758 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15759 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15760 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15761 (start_psymtab_common, end_psymtab_common)
15762 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15763 (allocate_psymtab): Update.
15764 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15765 Update.
15766 (dump_psymtab_addrmap, maintenance_print_psymbols)
15767 (maintenance_check_psymtabs): Update.
15768 (class objfile_psymtabs): Move to objfiles.h.
15769 * psympriv.h (discard_psymtab): Now inline.
15770 (psymtab_discarder::psymtab_discarder): Update.
15771 (psymtab_discarder::~psymtab_discarder): Update.
15772 (ALL_OBJFILE_PSYMTABS): Rewrite.
15773 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15774 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15775 Remove fields.
15776 <partial_symtabs>: New field.
15777 (class objfile_psymtabs): Move from psymtab.h. Update.
15778 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15779 psymbol_cache.
15780 (objfile::~objfile): Don't destroy psymbol_cache.
15781 * mdebugread.c (parse_partial_symbols): Update.
15782 * dwarf2read.c (create_addrmap_from_index)
15783 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15784 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15785 (add_partial_subprogram, dwarf2_ranges_read): Update.
15786 * dwarf-index-write.c (write_address_map)
15787 (write_one_signatured_type, recursively_write_psymbols)
15788 (class debug_names, class debug_names, write_psymtabs_to_index):
15789 Update.
15790
1d94a5a3
TT
157912019-01-10 Tom Tromey <tom@tromey.com>
15792
15793 * symtab.h (SYMBOL_SET_NAMES): Update.
15794 (symbol_set_names): Update.
15795 (MSYMBOL_SET_NAMES): Update.
15796 * symtab.c (symbol_set_names): Change argument to be an
15797 objfile_per_bfd_storage.
15798 * psymtab.c (add_psymbol_to_bcache): Update.
15799 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15800
0f14768a
TT
158012019-01-10 Tom Tromey <tom@tromey.com>
15802
15803 * symtab.c (create_demangled_names_hash): Change argument to be an
15804 objfile_per_bfd_storage.
15805 (symbol_set_names): Update.
15806
6eee24ce
TT
158072019-01-10 Tom Tromey <tom@tromey.com>
15808
15809 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15810 init_psymbol_list.
15811 * psymtab.c (init_psymbol_list): Do nothing if already called.
15812 * psympriv.h (init_psymbol_list): Add comment.
15813 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15814 init_psymbol_list.
15815 * dbxread.c (dbx_symfile_read): Unconditionally call
15816 init_psymbol_list.
15817
75aedd27
TT
158182019-01-10 Tom Tromey <tom@tromey.com>
15819
15820 * xcoffread.c (scan_xcoff_symtab): Update.
15821 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15822 "where".
15823 * mdebugread.c (parse_partial_symbols)
15824 (handle_psymbol_enumerators): Update.
15825 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15826 * dbxread.c (read_dbx_symtab): Update.
15827 * psympriv.h (psymbol_placement): New enum.
15828 (add_psymbol_to_list): Update.
15829
939652a5
TT
158302019-01-10 Tom Tromey <tom@tromey.com>
15831
15832 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15833 static_psymbols parameters.
15834 (scan_xcoff_symtab): Update.
15835 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15836 static_psymbols parameters.
15837 * psympriv.h (start_psymtab_common): Update.
15838 * mdebugread.c (parse_partial_symbols): Update.
15839 * dwarf2read.c (create_partial_symtab): Update.
15840 * dbxread.c (read_dbx_symtab): Update.
15841 (start_psymtab): Remove global_psymbols and static_psymbols
15842 parameters.
15843
baa62830
TT
158442019-01-10 Tom Tromey <tom@tromey.com>
15845
15846 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15847 * psymtab.c (allocate_psymtab): Add comment.
15848 * psympriv.h (allocate_psymtab): Add comment.
15849 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15850 initializations.
15851 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15852
0e8f53ba
TT
158532019-01-10 Tom Tromey <tom@tromey.com>
15854
15855 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15856 Don't declare.
15857 * mipsread.c: Include mdebugread.h.
15858 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15859 Declare.
15860 * elfread.c: Include mdebugread.h.
15861
b22a7c6a
TT
158622019-01-09 Tom Tromey <tom@tromey.com>
15863
15864 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15865 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15866 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15867 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15868 (psym_lookup_symbol, psym_find_last_source_symtab)
15869 (psym_forget_cached_source_info, psym_print_stats)
15870 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15871 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15872 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15873 (psym_find_compunit_symtab_by_address)
15874 (maintenance_print_psymbols, maintenance_info_psymtabs)
15875 (maintenance_check_psymtabs): Use ranged for.
15876 * psymtab.h (class objfile_psymtabs): New.
15877 (require_partial_symbols): Return objfile_psymtabs.
15878 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15879
3b9d3ac2
TT
158802019-01-09 Tom Tromey <tom@tromey.com>
15881
15882 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15883 (find_pc_mapped_section, list_overlays_command)
15884 (map_overlay_command, unmap_overlay_command)
15885 (simple_overlay_update): Use all_objfiles.
15886 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15887 * printcmd.c (info_symbol_command): Use all_objfiles.
15888 * objfiles.h (ALL_OBJSECTIONS): Remove.
15889 * maint.c (maintenance_translate_address): Use all_objfiles.
15890 * gcore.c (gcore_create_callback): Use all_objfiles.
15891 (objfile_find_memory_regions): Likewise.
15892
8b31193a
TT
158932019-01-09 Tom Tromey <tom@tromey.com>
15894
15895 * symtab.c (find_line_symtab, info_sources_command)
15896 (make_source_files_completion_list): Use objfile_compunits.
15897 * source.c (select_source_symtab): Use objfile_compunits.
15898 * objfiles.h (struct objfile): Update comment.
15899 (ALL_OBJFILES): Remove.
15900 (ALL_FILETABS): Remove.
15901 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15902 objfile_compunits.
15903
d5da8b3c
TT
159042019-01-09 Tom Tromey <tom@tromey.com>
15905
15906 * symmisc.c (print_objfile_statistics, dump_objfile)
15907 (maintenance_print_symbols): Use compunit_filetabs.
15908 * source.c (forget_cached_source_info_for_objfile): Use
15909 compunit_filetabs.
15910 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15911 (ALL_FILETABS): Use compunit_filetabs.
15912 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15913 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15914
5accd1a0
TT
159152019-01-09 Tom Tromey <tom@tromey.com>
15916
15917 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15918 (compunit_filetabs): New.
15919 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15920 compunit_filetabs.
15921 (info_sources_command, make_source_files_completion_list): Remove
15922 declaration.
15923 * symmisc.c (print_objfile_statistics, dump_objfile)
15924 (maintenance_print_symbols): Remove declaration.
15925 (maintenance_info_symtabs): Use compunit_filetabs.
15926 (maintenance_info_line_tables): Likewise.
15927 * source.c (select_source_symtab): Change local variable name.
15928 (forget_cached_source_info_for_objfile): Remove declaration.
15929 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15930 * objfiles.c (objfile_relocate1): Remove declaration.
15931 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15932 declaration.
15933 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15934 * coffread.c (coff_symtab_read): Remove declaration.
15935 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15936 compunit_filetabs.
15937
d8aeb77f
TT
159382019-01-09 Tom Tromey <tom@tromey.com>
15939
15940 * symtab.c (lookup_objfile_from_block)
15941 (find_pc_sect_compunit_symtab, search_symbols)
15942 (default_collect_symbol_completion_matches_break_on): Use
15943 objfile_compunits.
15944 * objfiles.h (ALL_COMPUNITS): Remove.
15945 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15946 * cp-support.c (add_symbol_overload_list_qualified): Use
15947 objfile_compunits.
15948 * ada-lang.c (ada_collect_symbol_completion_matches)
15949 (ada_add_global_exceptions): Use objfile_compunits.
15950
592553c4
TT
159512019-01-09 Tom Tromey <tom@tromey.com>
15952
15953 * source.c (select_source_symtab)
15954 (forget_cached_source_info_for_objfile): Remove declaration.
15955 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15956 declaration.
15957 * maint.c (count_symtabs_and_blocks): Remove declaration.
15958 * cp-support.c (add_symbol_overload_list_qualified): Remove
15959 declaration.
15960 * coffread.c (coff_symtab_read): Remove declaration.
15961 * symtab.c (lookup_symbol_in_objfile_symtabs)
15962 (basic_lookup_transparent_type_1): Use objfile_compunits.
15963 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15964 (info_sources_command, search_symbols)
15965 (default_collect_symbol_completion_matches_break_on)
15966 (make_source_files_completion_list): Remove declaration.
15967 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15968 (ada_collect_symbol_completion_matches)
15969 (ada_add_global_exceptions): Remove declaration.
15970 * linespec.c (iterate_over_all_matching_symtabs): Use
15971 objfile_compunits.
15972 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
15973 (class objfile_compunits): New.
15974 (ALL_COMPUNITS): Use objfile_compunits.
15975 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
15976 (maintenance_check_symtabs, maintenance_info_line_tables): Use
15977 objfile_compunits.
15978 * objfiles.c (objfile_relocate1): Use objfile_compunits.
15979
5325b9bf
TT
159802019-01-09 Tom Tromey <tom@tromey.com>
15981
15982 * symtab.c (search_symbols)
15983 (default_collect_symbol_completion_matches_break_on): Use
15984 objfile_msymbols.
15985 * ada-lang.c (ada_lookup_simple_minsym)
15986 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
15987 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
15988 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
15989 objfile_msymbols.
15990 * coffread.c (coff_symfile_read): Use objfile_msymbols.
15991 * symmisc.c (dump_msymbols): Use objfile_msymbols.
15992 * objc-lang.c (find_methods): Use objfile_msymbols.
15993 (info_selectors_command, info_classes_command): Likewise.
15994 * stabsread.c (scan_file_globals): Use objfile_msymbols.
15995 * objfiles.h (class objfile_msymbols): New.
15996 (ALL_OBJFILE_MSYMBOLS): Remove.
15997 (ALL_MSYMBOLS): Remove.
15998
cac85af2
TT
159992019-01-09 Tom Tromey <tom@tromey.com>
16000
16001 * common/next-iterator.h (next_adapter): Add Iterator template
16002 parameter.
16003 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16004 (class all_objfiles_safe): New.
16005 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16006 * objfiles.c (put_objfile_before): Update comment.
16007 (add_separate_debug_objfile): Likewise.
16008 (free_all_objfiles): Use all_objfiles_safe.
16009 (objfile_purge_solibs): Likewise.
16010
aed57c53
TT
160112019-01-09 Tom Tromey <tom@tromey.com>
16012
16013 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16014 (expand_symtab_containing_pc, lookup_static_symbol)
16015 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16016 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16017 all_objfiles.
16018 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16019 * breakpoint.c (create_overlay_event_breakpoint)
16020 (create_longjmp_master_breakpoint)
16021 (create_std_terminate_master_breakpoint)
16022 (create_exception_master_breakpoint): Use all_objfiles.
16023 * linux-thread-db.c (try_thread_db_load_from_pdir)
16024 (has_libpthread): Use all_objfiles.
16025 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16026 * linespec.c (iterate_over_all_matching_symtabs)
16027 (search_minsyms_for_name): Use all_objfiles.
16028 * maint.c (maintenance_info_sections): Use all_objfiles.
16029 * main.c (captured_main_1): Use all_objfiles.
16030 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16031 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16032 * guile/scm-pretty-print.c
16033 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16034 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16035 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16036 (maintenance_print_msymbols): Use all_objfiles.
16037 * source.c (select_source_symtab): Use all_objfiles.
16038 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16039 * symfile.c (remove_symbol_file_command)
16040 (expand_symtabs_matching, map_symbol_filenames): Use
16041 all_objfiles.
16042 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16043 all_objfiles.
16044 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16045 * objc-lang.c (find_methods): Use all_objfiles.
16046 * objfiles.c (have_partial_symbols, have_full_symbols)
16047 (have_minimal_symbols, qsort_cmp)
16048 (default_iterate_over_objfiles_in_search_order): Use
16049 all_objfiles.
16050 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16051 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16052 (maintenance_check_psymtabs): Use all_objfiles.
16053 (ALL_PSYMTABS): Remove.
16054 * compile/compile-object-run.c (do_module_cleanup): Use
16055 all_objfiles.
16056 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16057 * cp-support.c (add_symbol_overload_list_qualified): Use
16058 all_objfiles.
16059 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16060 Use all_objfiles.
16061 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16062 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16063 all_objfiles.
16064 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16065 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16066 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16067 Uses all_objfiles.
16068 * solib.c (solib_read_symbols): Use all_objfiles
16069
99d89cde
TT
160702019-01-09 Tom Tromey <tom@tromey.com>
16071
16072 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16073 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16074 all_objfiles.
16075 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16076 * symmisc.c (print_symbol_bcache_statistics)
16077 (print_objfile_statistics, maintenance_print_objfiles)
16078 (maintenance_info_symtabs, maintenance_check_symtabs)
16079 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16080 all_objfiles.
16081 * source.c (forget_cached_source_info): Use all_objfiles.
16082 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16083 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16084 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16085 * objfiles.c (update_section_map): Use all_objfiles.
16086 (shared_objfile_contains_address_p): Likewise.
16087 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16088 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16089
21708325
TT
160902019-01-09 Tom Tromey <tom@tromey.com>
16091
16092 * common/next-iterator.h: New file.
16093 * objfiles.h (class all_objfiles): New.
16094 (struct objfile_iterator): New.
16095
669e09f6
PW
160962019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16097
16098 * NEWS: Move the description of the changed "frame", "select-frame",
16099 and "info frame" commands to the Changed commands section.
16100
041be526
SM
161012019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16102
16103 * gdbtypes.c (check_stub_method_group): Remove handling of old
16104 mangling schemes.
16105 * linespec.c (find_methods): Likewise.
16106 * stabsread.c (read_member_functions): Likewise.
16107 * valops.c (search_struct_method): Likewise.
16108 (value_struct_elt_for_reference): Likewise.
16109 * NEWS: Mention this change.
16110
0e2a2133
AB
161112019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16112
16113 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16114 print_source_lines.
16115 * source.c (print_source_lines_base): Update line number check.
16116 (print_source_lines): New function.
16117 (source_lines_range::source_lines_range): New function.
16118 * source.h (class source_lines_range): New class.
16119 (print_source_lines): New declaration.
16120
1055a3b4
PW
161212019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16122
16123 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16124
cfeadda5
TT
161252019-01-08 Tom Tromey <tom@tromey.com>
16126 Simon Marchi <simon.marchi@ericsson.com>
16127
16128 PR gdb/24060
16129 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16130 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16131 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16132 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16133 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16134 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16135
583068ca
AB
161362019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16137
16138 * source.c (select_source_symtab): Move header comment to
16139 declaration in source.h.
16140 (forget_cached_source_info_for_objfile): Likewise.
16141 (forget_cached_source_info): Likewise.
16142 (identify_source_line): Likewise.
16143 * source.h (identify_source_line): Move declaration from symtab.h
16144 and add comment from source.c
16145 (print_source_lines): Likewise.
16146 (forget_cached_source_info_for_objfile): Likewise.
16147 (forget_cached_source_info): Likewise.
16148 (select_source_symtab): Likewise.
16149 (enum print_source_lines_flag): Move definition from symtab.h.
16150 * symtab.h (identify_source_line): Move declaration to source.h.
16151 (print_source_lines): Likewise.
16152 (forget_cached_source_info_for_objfile): Likewise.
16153 (forget_cached_source_info): Likewise.
16154 (select_source_symtab): Likewise.
16155 (enum print_source_lines_flag): Move definition to source.h.
16156 * tui/tui-hooks.c: Add 'source.h' include.
16157
ec98a4ad
AB
161582019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16159
16160 * source.c (print_source_lines_base): Handle requests to print
16161 reverse line number sequences, and guard against empty lines
16162 string.
16163
62ea19c1
AB
161642019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16165
16166 * source.c (print_source_lines_base): Fix skip of '\r' if next
16167 character is '\n'.
16168
9d30e1fd
TT
161692019-01-06 Tom Tromey <tom@tromey.com>
16170
16171 * c-exp.y (struct c_parse_state) <macro_original_text,
16172 expansion_obstack>: New member.
16173 (macro_original_text, expansion_obstack): Remove globals.
16174 (scan_macro_expansion, scanning_macro_expansion)
16175 (finished_macro_expansion): Update.
16176 (scan_macro_cleanup): Remove.
16177 (yylex, c_parse): Update.
16178
c65bac38
TT
161792019-01-06 Tom Tromey <tom@tromey.com>
16180
16181 * c-exp.y (struct c_parse_state) <strings>: New member.
16182 (operator_stoken): Update.
16183
02e12e38
TT
161842019-01-06 Tom Tromey <tom@tromey.com>
16185
16186 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16187 (union type_stack_elt) <typelist_val>: Now a pointer to
16188 std::vector.
16189 (type_stack_cleanup): Don't declare.
16190 (push_typelist): Update.
16191 * parse.c (pop_typelist): Return a std::vector.
16192 (push_typelist): Take a std::vector.
16193 (follow_types): Update. Do not free args.
16194 (type_stack_cleanup): Remove.
16195 * c-exp.y (struct c_parse_state): New.
16196 (cpstate): New global.
16197 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16198 (nonempty_typelist): Update.
16199 (func_mod): Create a new vector.
16200 (c_parse): Create a c_parse_state.
16201 (check_parameter_typelist): Do not delete params.
16202 (function_method): Update. Do not delete type_list.
16203
f097f5ad
TT
162042019-01-06 Tom Tromey <tom@tromey.com>
16205
16206 PR gdb/28155:
16207 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16208 check_typedef.
16209 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16210 (print_return_value): Likewise.
16211
d2adf9f1
TT
162122019-01-05 Tom Tromey <tom@tromey.com>
16213
16214 * contrib/cleanup_check.py: Remove.
16215 * contrib/gcc-with-excheck: Remove.
16216 * contrib/exsummary.py: Remove.
16217 * contrib/excheck.py: Remove.
16218
2eab46b1
JB
162192019-01-05 Joel Brobecker <brobecker@adacore.com>
16220
16221 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16222 NULL. Initialize tpprev to NULL instead of assigning it
16223 to NULL on the next statement.
16224 * windows-nat.c (windows_delete_thread): Remove check for
16225 main_thread_id before printing thread exit notifications.
16226 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16227 Remove thread ID check against main_thread_id.
16228 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16229 windows_delete_thread.
16230 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16231
48c5e7e2
TT
162322019-01-04 Tom Tromey <tom@tromey.com>
16233
16234 * compile/compile.c (_initialize_compile): Use upper case for
16235 metasyntactic variables.
16236 * symmisc.c (_initialize_symmisc): Use upper case for
16237 metasyntactic variables.
16238 * psymtab.c (_initialize_psymtab): Use upper case for
16239 metasyntactic variables.
16240 * demangle.c (demangle_command): Use upper case for metasyntactic
16241 variables.
16242 (_initialize_demangler): Likewise.
16243 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16244 variables.
16245
986041cd
TT
162462019-01-03 Tom Tromey <tom@tromey.com>
16247
16248 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16249
7c711119
TT
162502019-01-03 Tom Tromey <tom@tromey.com>
16251
16252 * python/py-symtab.c (salpy_str): Update.
16253 (struct salpy_sal_object) <symtab>: Now a PyObject.
16254 (salpy_dealloc): Update.
16255 (del_objfile_sal): Use gdbpy_ref.
16256
1b20edf0
TT
162572019-01-03 Tom Tromey <tom@tromey.com>
16258
16259 * python/py-type.c (convert_field): Use new_reference. Return
16260 gdbpy_ref.
16261 (make_fielditem): Return gdbpy_ref.
16262 (typy_fields): Update.
16263 (typy_getitem): Update.
16264 (field_name): Return gdbpy_ref. Use new_reference.
16265 (typy_iterator_iternext): Update.
16266
ea41325b
TT
162672019-01-03 Tom Tromey <tom@tromey.com>
16268
16269 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16270
2a3c71d6
TT
162712019-01-03 Tom Tromey <tom@tromey.com>
16272
16273 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16274 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16275 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16276 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16277 (pspy_set_type_printers): Likewise.
16278 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16279 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16280 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16281 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16282 (objfpy_set_type_printers): Likewise.
16283
5c329e6a
TT
162842019-01-03 Tom Tromey <tom@tromey.com>
16285
16286 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16287 (gdbpy_print_stack): Use gdbpy_err_fetch.
16288 * python/python-internal.h (class gdbpy_err_fetch): New class.
16289 (class gdbpy_enter) <m_error_type, m_error_value,
16290 m_error_traceback>: Remove.
16291 <m_error>: New member.
16292 (gdbpy_exception_to_string): Don't declare.
16293 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16294 * python/py-value.c (convert_value_from_python): Use
16295 gdbpy_err_fetch.
16296 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16297 gdbpy_exception_to_string.
16298 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16299 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16300 gdbpy_err_fetch.
16301
169bb27b
AB
163022019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16303
16304 * linux-nat.c (delete_lwp_cleanup): Delete.
16305 (struct lwp_deleter): New struct.
16306 (lwp_info_up): New typedef.
16307 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16308 lwp_info_up.
16309
a07c8880
AB
163102019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16311
16312 * linux-fork.c (class scoped_switch_fork_info): New class.
16313 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16314
26089c49
AB
163152019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16316
16317 * valops.c (find_overload_match): Remove use of null_cleanup, and
16318 calls to do_cleanups.
16319
06d3e5b0
AB
163202019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16321
16322 * compile/compile-cplus-types.c
16323 (compile_cplus_instance::decl_name): Handle changes to
16324 cp_func_name.
16325 * cp-support.c (cp_func_name): Update header comment, update
16326 return type.
16327 * cp-support.h (cp_func_name): Update return type in declaration.
16328 * valops.c (find_overload_match): Move temp_func local to top
16329 level of function and change its type. Use temp_func to hold and
16330 delete temporary string obtained from cp_func_name.
16331
66644cd3
AB
163322019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16333
16334 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16335 gdb::char_vector, remove cleanup, and update uses of `msg`.
16336
592d8c0a
JW
163372019-01-03 Jim Wilson <jimw@sifive.com>
16338
16339 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16340
c55d06ec
TT
163412019-01-02 Tom Tromey <tom@tromey.com>
16342
16343 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16344 (tdesc_parse_xml): Remove cleanups.
16345 * target-descriptions.h (make_cleanup_free_target_description):
16346 Don't declare.
16347 (target_desc_deleter): New struct.
16348 (target_desc_up): New typedef.
16349 * target-descriptions.c (target_desc_deleter::operator()): Rename
16350 from free_target_description.
16351 (make_cleanup_free_target_description): Remove.
16352
3a6ae42d
TT
163532019-01-02 Tom Tromey <tom@tromey.com>
16354
16355 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16356 constructor, destructor.
16357 (linespec_parser): Remove typedef.
16358 (~linespec_parser): Rename from linespec_parser_delete.
16359 (linespec_lex_to_end, linespec_complete_label)
16360 (linespec_complete): Update.
16361 (decode_line_full): Remove cleanups.
16362 (decode_line_1): Update.
16363
61fd3e73
TT
163642019-01-02 Tom Tromey <tom@tromey.com>
16365
16366 * python/python-internal.h (inferior_to_inferior_object): Change
16367 return type.
16368 * python/py-exitedevent.c (create_exited_event_object): Update.
16369 * python/py-inferior.c (inferior_to_inferior_object): Return
16370 gdbpy_ref.
16371 (python_new_inferior, python_inferior_deleted)
16372 (thread_to_thread_object, delete_thread_object)
16373 (build_inferior_list, gdbpy_selected_inferior): Update.
16374 * python/py-infthread.c (create_thread_object): Update. Also fail
16375 if inferior_to_inferior_object fails.
16376
d20172fc
SM
163772019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16378
16379 * inferior.h (class inferior) <displaced_step_state>: New field.
16380 * infrun.h (struct displaced_step_state): Move here from
16381 infrun.c. Initialize fields, add constructor.
16382 <inf>: Remove field.
16383 <reset>: New method.
16384 * infrun.c (struct displaced_step_inferior_state): Move to
16385 infrun.h.
16386 (displaced_step_inferior_states): Remove.
16387 (get_displaced_stepping_state): Adust.
16388 (displaced_step_in_progress_any_inferior): Adjust.
16389 (displaced_step_in_progress_thread): Adjust.
16390 (displaced_step_in_progress): Adjust.
16391 (add_displaced_stepping_state): Remove.
16392 (get_displaced_step_closure_by_addr): Adjust.
16393 (remove_displaced_stepping_state): Remove.
16394 (infrun_inferior_exit): Call displaced_step_state.reset.
16395 (use_displaced_stepping): Don't check for NULL.
16396 (displaced_step_prepare_throw): Call
16397 get_displaced_stepping_state.
16398 (displaced_step_fixup): Don't check for NULL.
16399 (prepare_for_detach): Don't check for NULL.
16400
e3319240
PW
164012019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16402
16403 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16404 in case of call that did not complete.
16405
5d36dfb9
AU
164062019-01-02 Andrey Utkin <autkin@undo.io>
16407
16408 * symfile.c (find_separate_debug_file): Fix search of debug files for
16409 remote debuggee.
16410
8833fbf0
TT
164112019-01-02 Tom Tromey <tom@tromey.com>
16412
16413 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16414 indentation.
16415 * python/py-frame.c (frapy_older): Remove cast.
16416 (frapy_newer): Likewise.
16417 * python/py-breakpoint.c (local_setattro): Remove cast.
16418 * python/py-arch.c (archpy_name): Remove local variable.
16419 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16420
4ada3dfd
JB
164212019-01-02 Joel Brobecker <brobecker@adacore.com>
16422
16423 * unittests/basic_string_view/element_access/char/empty.cc:
16424 Fix year range in copyright header.
16425
113b7b81
AB
164262019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16427
16428 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16429 Delete.
16430 <operator==>: Update with for removed field.
16431 <hash>: Likewise.
16432 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16433 <isa_features>: ...this.
16434 <abi_features>: New field.
16435 (riscv_isa_flen): Update comment.
16436 (riscv_abi_xlen): New declaration.
16437 (riscv_abi_flen): New declaration.
16438 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16439 isa_features.
16440 (riscv_abi_xlen): New function.
16441 (riscv_isa_flen): Update to get answer from isa_features.
16442 (riscv_abi_flen): New function.
16443 (riscv_has_fp_abi): Update to get answer from abi_features.
16444 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16445 xlen and flen.
16446 (riscv_call_info) <xlen, flen>: Update comment.
16447 (riscv_call_arg_struct): Remove invalid assertions
16448 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16449 is removed.
16450 (riscv_gdbarch_init): Gather isa features and abi features
16451 separately, ensure both match on the gdbarch when reusing an old
16452 gdbarch. Relax an error check to allow 32-bit abi float to run on
16453 a target with 64-bit float hardware.
16454
b18ca514
PW
164552019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16456
16457 * source.c (search_command_helper): Stop reverse search
16458 when line 1 has been searched.
16459
ec70d8db
PW
164602019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16461
16462 * record-full.c (record_full_base_target::close): Rewrite
16463 record_full_core_buf_list free logic.
16464
5b38f9c1
PW
164652019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16466
16467 * break-catch-syscall.c (print_one_catch_syscall): xfree
16468 the last text.
16469
66d91b39
JB
164702019-01-01 Joel Brobecker <brobecker@adacore.com>
16471
16472 * top.c (print_gdb_version): Update Copyright year in version
16473 message.
16474
42a4f53d
JB
164752019-01-01 Joel Brobecker <brobecker@adacore.com>
16476
16477 Update copyright year range in all GDB files.
16478
7e955d83 164792019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16480
5bbd631d 16481 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16482
5bbd631d 16483For older changes see ChangeLog-2018.
c906108c
SS
16484\f
16485Local Variables:
16486mode: change-log
16487left-margin: 8
16488fill-column: 74
16489version-control: never
57da7796 16490coding: utf-8
c906108c 16491End:
5bbd631d 16492