gdb/copyright.py: Convert to Python 3
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8b371634
JB
12020-01-01 Joel Brobecker <brobecker@adacore.com>
2
3 * copyright.py: Convert to Python 3.
4
a292f79f
JB
52020-01-01 Joel Brobecker <brobecker@adacore.com>
6
7 * copyright.py: Adapt after move of gnulib directory from gdb
8 directory to toplevel directory.
9
1458b0f3
JB
102020-01-01 Joel Brobecker <brobecker@adacore.com>
11
12 * copyright.py (main): Exit if run from the wrong directory.
13
e9de78be
JB
142020-01-01 Joel Brobecker <brobecker@adacore.com>
15
16 * top.c (print_gdb_version): Change copyright year to 2020.
17
c0716f3e
CB
182019-12-26 Christian Biesinger <cbiesinger@google.com>
19
20 * configure: Regenerate.
21 * configure.ac: Quote variable arguments of test.
22 * gdbsupport/common.m4: Likewise.
23
527178f7
EZ
242019-12-21 Eli Zaretskii <eliz@gnu.org>
25
26 * top.c (print_gdb_configuration): Print "--with-xxhash" or
27 "--without-xxhash" according to HAVE_LIBXXHASH.
28
4ae7258e
TT
292019-12-18 Tom Tromey <tromey@adacore.com>
30
31 PR build/25268:
32 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
33 type on macOS. Add comment.
34
1c66314d
TT
352019-12-18 Tom Tromey <tromey@adacore.com>
36
37 PR build/25250:
38 * ui-out.c (ui_out::vmessage): Update.
39 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
40 Rename.
41 (string_field): Update.
42 (signed_field): Update.
43
be19b699
SM
442019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
45
46 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
47
3f434671
JB
482019-12-11 Joel Brobecker <brobecker@adacore.com>
49
50 * version.in: Set GDB version number to 9.0.90.DATE-git.
51
07d5aa38
JB
522019-12-11 Joel Brobecker <brobecker@adacore.com>
53
54 GDB 9.0.90 released.
55
b06b5486
JB
562019-12-11 Joel Brobecker <brobecker@adacore.com>
57
58 * version.in: Set GDB version number to 9.0.90.
59
41ec388b
JB
602019-12-11 Joel Brobecker <brobecker@adacore.com>
61
62 * NEWS: Change "Changes since GDB 8.3" into "Changes in GDB 9".
63
c87abc50
JB
642019-12-11 Joel Brobecker <brobecker@adacore.com>
65
66 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
67 * version.in: Bump version to 9.0.90.DATE-git.
68
2e744276
TT
692019-12-11 Tom Tromey <tromey@adacore.com>
70
71 PR build/25268:
72 * gdbsupport/thread-pool.c (set_thread_name): New function.
73 (thread_pool::set_thread_count): Don't call pthread_setname_np.
74 (thread_pool::thread_function): Call set_thread_name.
75
aac4760f
TT
762019-12-11 Tom Tromey <tromey@adacore.com>
77
78 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
79 bfd_get_signed_8.
80
d8edc8b7
PW
812019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
82
83 * NEWS: Document -raw-values option and the related setting commands.
84 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
85 only set it on when /r is given.
86 * valprint.c (value_print_option_defs): New element raw-values.
87 * Makefile.in: Add the new file.
88
cb511130
CB
892019-12-10 Christian Biesinger <cbiesinger@google.com>
90
91 * gdbsupport/safe-strerror.c: Supress the unused function warning
92 for select_strerror_r.
93
ab7d13f0
CB
942019-12-10 Christian Biesinger <cbiesinger@google.com>
95
96 * config.in: Regenerate.
97 * configure: Regenerate.
98 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
99 safe_strerror instead of strerror.
100 * gdbsupport/common.m4: Don't check for strerror.
101 * gdbsupport/safe-strerror.c: Support both the glibc version
102 of strerror_r and the XSI version.
103
6c71eb7d
TT
1042019-12-10 Tom Tromey <tromey@adacore.com>
105
106 * ada-typeprint.c (print_choices): Use a single "?".
107 (print_variant_part): Print "?" if the discriminant name
108 is not known.
109
bac7c5cf
GB
1102019-12-10 George Barrett <bob@bob131.so>
111
112 Fix scripted probe breakpoints.
113 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
114 declaration forward.
115 (breakpoint_ops_for_event_location_type)
116 (breakpoint_ops_for_event_location): Add function definitions.
117 (break_command_1, trace_command): Use
118 breakpoint_ops_for_event_location.
119 * breakpoint.h (breakpoint_ops_for_event_location): Add function
120 declarations.
121 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
122 breakpoint_ops_for_event_location.
123 * python/py-breakpoint.c (bppy_init): Use
124 breakpoint_ops_for_event_location.
125
330f1d38
TBA
1262019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
127
128 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
129 when ranking an lvalue argument for an rvalue parameter.
130
b1f0c0b9
WA
1312019-12-08 Wataru Ashihara <wataash@wataash.com>
132
133 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
134 template argument for scoped_restore_tmpl from bool to int.
135
aa2d5a42
KS
1362019-12-07 Keith Seitz <keiths@redhat.com>
137
138 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
139 (build_id_to_debug_bfd): Make static, rewriting to use
140 build_id_to_bfd_suffix.
141 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
142 adding `suffix' parameter. Append SUFFIX to file names
143 when searching for matching files.
144 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
145 (build_id_to_exec_bfd): Likewise.
146 * build-id.h (build_id_to_debug_bfd): Clarify that function
147 searches for BFD of debug info file.
148 (build_id_to_exec_bfd): Declare.
149 * corelow.c: Include build-id.h.
150 (locate_exec_from_corefile_build_id): New function.
151 (core_target_open): If no executable BFD is found,
152 search for a core file BFD using build-id.
153
dfb65191
CB
1542019-12-06 Christian Biesinger <cbiesinger@google.com>
155
156 * bcache.c: Put in namespace gdb.
157 * bcache.h: Likewise.
158 * gdbtypes.c (check_types_worklist): Update.
159 (types_deeply_equal): Update.
160 * macrotab.c (struct macro_table) <bcache>: Update.
161 (new_macro_table): Update.
162 * macrotab.h (struct bcache): Put this forward declaration
163 inside namespace gdb.
164 (new_macro_table): Update.
165 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
166 Update.
167 <macro_cache>: Update.
168 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
169
93e55f0a
TV
1702019-12-06 Tom de Vries <tdevries@suse.de>
171
172 PR symtab/24971
173 * block.c (best_symbol, better_symbol): New function.
174 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
175 decl.
176
06acc08f
TBA
1772019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
178
179 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
180 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
181 for ranking see-through reference cases.
182
e0fad1ea
PW
1832019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
184 * stack.c (faas_command): Check a command is provided.
185 * thread.c (taas_command, tfaas_command): Likewise.
186
908641f5
PW
1872019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
188 * inferior.c (prune_inferiors): Only call delete_inferior,
189 Do not modify the inferior list.
190
b858499d
SM
1912019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
192
193 * c-exp.y: Update calls to lookup_typename,
194 lookup_signed_typename and lookup_unsigned_typename.
195 * c-lang.c (evaluate_subexp_c): Likewise.
196 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
197 Likewise.
198 * eval.c (binop_promote): Likewise.
199 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
200 (lookup_unsigned_typename): Likewise.
201 (lookup_signed_typename): Likewise.
202 * gdbtypes.h (lookup_unsigned_typename): Likewise.
203 (lookup_signed_typename): Likewise.
204 (lookup_typename): Likewise.
205 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
206 lookup_typename, lookup_signed_typename,
207 lookup_unsigned_typename.
208 * m2-exp.y: Likewise.
209 * printcmd.c (printf_wide_c_string): Likewise.
210 (ui_printf): Likewise.
211 * python/py-type.c (typy_lookup_typename): Likewise.
212 * python/py-xmethods.c (python_xmethod_worker::invoke):
213 Likewise.
214 * rust-exp.y: Likewise.
215
3a8fa228
CB
2162019-12-04 Christian Biesinger <cbiesinger@google.com>
217
218 * configure.nat (obsd64): Add missing files x86-nat.o and
219 nat/x86-dregs.o.
220
2dbc041e
TT
2212019-12-04 Tom Tromey <tom@tromey.com>
222
223 * valprint.c (val_print_string): Use metadata_style.
224 * go-valprint.c (print_go_string): Use metadata style.
225 * p-valprint.c (pascal_object_print_static_field): Use metadata
226 style.
227 * cp-valprint.c (cp_print_static_field): Use metadata style.
228
36c8fb93
AB
2292019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
230 Chris January <chris.january@arm.com>
231
232 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
233 tokens.
234 (typebase): New patterns for complex, single/double precision, and
235 single/double complex.
236 (f77_keywords): Change token for complex keyword, and add single,
237 double, and precision keywords.
238
c6170c2c
SM
2392019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
240
241 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
242 "info io_registers".
243
894ecaf4
SM
2442019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
245
246 * regcache.c (cooked_read_test): Initialize thread list of
247 mock_inferior.
248
be155ebb
SM
2492019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * aarch64-linux-tdep.c: Remove includes.
252
c577cdd7
SM
2532019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
254
255 * aarch64-tdep.c: Remove includes.
256
610cfd61
SM
2572019-12-04 Simon Marchi <simon.marchi@efficios.com>
258
259 * filtered-iterator.h (filtered_iterator) <operator==,
260 operator!=>: Compare wrapped iterators, not wrapped pointers.
261 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
262 unittests/filtered_iterator-selftests.c.
263 * unittests/filtered_iterator-selftests.c: New file.
264
a05cf17a
TT
2652019-12-04 Tom Tromey <tromey@adacore.com>
266
267 * gdbtypes.c (create_range_type): Inherit endianity
268 from base type.
269
d5a22e77
TT
2702019-12-04 Tom Tromey <tromey@adacore.com>
271
272 * ada-lang.c (decode_constrained_packed_array)
273 (ada_value_assign, value_assign_to_component): Update.
274 * dwarf2loc.c (rw_pieced_value, access_memory)
275 (dwarf2_compile_expr_to_ax): Update.
276 * dwarf2read.c (dwarf2_add_field): Update.
277 * eval.c (evaluate_subexp_standard): Update.
278 * gdbarch.c, gdbarch.h: Rebuild.
279 * gdbarch.sh (bits_big_endian): Remove.
280 * gdbtypes.h (union field_location): Update comment.
281 * target-descriptions.c (make_gdb_type): Update.
282 * valarith.c (value_bit_index): Update.
283 * value.c (struct value) <bitpos>: Update comment.
284 (unpack_bits_as_long, modify_field): Update.
285 * value.h (value_bitpos): Update comment.
286
7ab4a236
TT
2872019-12-04 Tom Tromey <tromey@adacore.com>
288
289 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
290 endian-ness.
291
103a685e
TT
2922019-12-04 Tom Tromey <tromey@adacore.com>
293
294 * dwarf2read.c (dwarf2_init_float_type)
295 (dwarf2_init_complex_target_type): Add byte_order parameter.
296 (read_base_type): Compute byte order earlier.
297 * gdbtypes.c (init_float_type): Add byte_order parameter.
298 * gdbtypes.h (init_float_type): Add byte_order parameter.
299
7a9e9f9f
TT
3002019-12-04 Tom Tromey <tromey@adacore.com>
301
302 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
303
feee869b
TT
3042019-12-04 Tom Tromey <tromey@adacore.com>
305
306 * dwarf2read.c (process_structure_scope): Initialize
307 "discr_offset".
308
c2512106
AB
3092019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
310
311 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
312 add it into the search spec.
313 (parse_max_results_option): New function.
314 (mi_info_functions_or_variables): Parse -max-results flag and pass
315 it to mi_symbol_info.
316 (mi_cmd_symbol_info_modules): Likewise.
317 (mi_cmd_symbol_info_types): Likewise.
318 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
319 return type to bool, change result container into a set, and don't
320 add new results if we have enough already.
321 (global_symbol_searcher::add_matching_msymbols): Change return
322 type to bool, and don't add new results if we have enough already.
323 (sort_search_symbols_remove_dups): Delete.
324 (global_symbol_searcher::search): Early exit from search loop when
325 we have enough results. Use a std::set to collect the results
326 from calling add_matching_symbols.
327 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
328 member function.
329 (global_symbol_searcher) <m_max_search_results>: New member
330 variable.
331 (global_symbol_searcher) <add_matching_symbols>: Update header
332 comment and change return type to bool.
333 (global_symbol_searcher) <add_matching_msymbols>: Update header
334 comment and change return type to bool.
335
f97a63c5
AB
3362019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
337
338 * symtab.c (symbol_search::compare_search_syms): Update header
339 comment.
340 (global_symbol_searcher::is_suitable_msymbol): New function.
341 (global_symbol_searcher::expand_symtabs): New function.
342 (global_symbol_searcher::add_matching_symbols): New function.
343 (global_symbol_searcher::add_matching_msymbols): New function.
344 (global_symbol_searcher::search): Move most of the content
345 into the new functions above, and call them as needed.
346 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
347 function.
348 (global_symbol_searcher) <add_matching_symbols>: New member
349 function.
350 (global_symbol_searcher) <add_matching_msymbols>: New member
351 function.
352 (global_symbol_searcher) <is_suitable_msymbol>: New member
353 function.
354
293b38d6
AB
3552019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
356
357 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
358 -symbol-info-module-variables entries.
359 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
360 (mi_cmd_symbol_info_module_variables): Declare.
361 * mi/mi-symbol-cmds.c
362 (module_symbol_search_iterator): New typedef.
363 (output_module_symbols_in_single_module_and_file): New function.
364 (output_module_symbols_in_single_module): New function.
365 (mi_info_module_functions_or_variables): New function.
366 (mi_cmd_symbol_info_module_functions): New function.
367 (mi_cmd_symbol_info_module_variables): New function.
368 * NEWS: Mention new MI command.
369
4cbd39b2
CB
3702019-12-03 Christian Biesinger <cbiesinger@google.com>
371
372 * bcache.c (hash): Remove.
373 (hash_continue): Remove.
374 * bcache.h (hash): Remove.
375 (hash_continue): Remove.
376 (struct bcache) <ctor>: Update.
377 * psymtab.c (psymbol_hash): Update.
378 * stabsread.c (hashname): Update.
379 * utils.h (fast_hash): Add an argument for a start value,
380 defaulting to zero.
381
82f910ea
PW
3822019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
383 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
384 (destroy_block_symbol_cache): New function.
385 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
386 (resize_symbol_cache): Likewise.
387
de2396d0
TT
3882019-12-02 Tom Tromey <tom@tromey.com>
389
390 * unittests/tui-selftests.c (run_tests): Make conditional.
391 (_initialize_tui_selftest): Make conditional.
392
638d85bc
CB
3932019-12-02 Christian Biesinger <cbiesinger@google.com>
394
395 * aix-thread.c (debug_aix_thread): Change type to bool.
396
7532a164
LM
3972019-12-02 Luis Machado <luis.machado@linaro.org>
398
399 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
400
216a7e6b
AB
4012019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
402
403 * dwarf2read.c (read_tag_string_type): Read the fields required to
404 make a dynamic string, and possibly create a dynamic range for the
405 string.
406 (attr_to_dynamic_prop): Setup is_reference based on the type of
407 attribute being processed.
408 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
409 (resolve_dynamic_array): Rename to...
410 (resolve_dynamic_array_or_string): ...this, update header comment,
411 and accept TYPE_CODE_STRING.
412 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
413
11a8b164
AB
4142019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
417 of its implementation from...
418 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
419 the new function.
420
5bbd8269
AB
4212019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
422
423 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
424 create a range with stride where appropriate.
425 * f-valprint.c: Include 'gdbarch.h'.
426 (f77_print_array_1): Take the stride into account when walking the
427 array. Also convert the stride into addressable units.
428 * gdbtypes.c (create_range_type): Initialise the stride to
429 constant zero.
430 (create_range_type_with_stride): New function, initialise the
431 range as normal, and then setup the stride.
432 (has_static_range): Include the stride here. Also change the
433 return type to bool.
434 (create_array_type_with_stride): Consider the range stride if the
435 array isn't given its own stride.
436 (resolve_dynamic_range): Resolve the stride if needed.
437 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
438 (struct range_bounds) <flag_is_byte_stride>: New member variable.
439 (TYPE_BIT_STRIDE): Define.
440 (TYPE_ARRAY_BIT_STRIDE): Define.
441 (create_range_type_with_stride): Declare.
442 * valarith.c (value_subscripted_rvalue): Take range stride into
443 account when walking the array.
444
82e3b564
TT
4452019-12-01 Tom Tromey <tom@tromey.com>
446
447 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
448 specially.
449
517d261d
TT
4502019-12-01 Tom Tromey <tom@tromey.com>
451
452 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
453 \0.
454 * unittests/tui-selftests.c: New file.
455 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
456
484c9b64
TT
4572019-12-01 Tom Tromey <tom@tromey.com>
458
459 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
460
a2a7af0c
TT
4612019-12-01 Tom Tromey <tom@tromey.com>
462
463 * NEWS: Document new settings.
464 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
465 * tui/tui-win.c (_initialize_tui_win): Add border style
466 observers.
467 * tui/tui-io.h (tui_apply_style): Declare.
468 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
469 longer static.
470 (apply_ansi_escape, tui_set_reverse_mode): Update.
471 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
472 Add "skip_intensity" parameter.
473 <changed>: New member.
474 <do_set_value>: Declare.
475 (tui_border_style, tui_active_border_style): Declare.
476 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
477 globals.
478 (cli_style_option): Initialize "changed".
479 (cli_style_option::do_set_value): New function.
480 (cli_style_option::add_setshow_commands): Add "skip_intensity"
481 parameter. Update.
482 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
483 (_initialize_cli_style): Update. Create TUI border style
484 commands.
485
d1da6b01
TT
4862019-12-01 Tom Tromey <tom@tromey.com>
487
488 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
489 parameter.
490 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
491 parameter.
492 * tui/tui-win.h (compact_source): Declare.
493 * tui/tui-win.c (compact_source): New global.
494 (tui_set_compact_source, tui_show_compact_source): New functions.
495 (_initialize_tui_win): Add "compact-source" setting.
496 * tui/tui-source.c (tui_source_window::set_contents): Handle
497 compact_source setting.
498 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
499 * NEWS: Document new setting.
500
489dbda6
TT
5012019-11-30 Tom Tromey <tom@tromey.com>
502
503 * dwarf2read.c (dwarf2_add_field): Include field offset when
504 computing variant part length.
505
bf498525
PW
5062019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
507 * NEWS: Mention define-prefix. Tell that command names can now
508 contain a . character.
509
be09caf1
PW
5102019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
511
512 * command.h (valid_cmd_char_p): Declare.
513 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
514 the check of valid command char.
515 (find_command_name_length, valid_user_defined_cmd_name_p): Use
516 valid_cmd_char_p.
517 * cli/cli-script.c (validate_comname): Likewise.
518 * completer.c (gdb_completer_command_word_break_characters):
519 Do not remove . from the word break char, update comments.
520 (complete_line_internal_1): Use valid_cmd_char_p.
521 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
522 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
523
c6ac7fc9
PW
5242019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
525
526 * cli/cli-script.c (do_define_command): Ensure a redefined
527 prefix command is kept as a prefix command.
528 (define_prefix_command): New function.
529 (show_user_1): Report user defined prefixes.
530 (_initialize_cli_script): Create the new 'define-prefix' command.
531 Add completers for 'define' and 'document'.
532 * top.c (execute_command): If command is a user-defined prefix only
533 command, report the list of commands for this prefix command.
534
a992a3b0
TBA
5352019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
536
537 * valops.c (find_oload_champ): Improve debug output.
538
e9194a1a
TBA
5392019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
540
541 * valops.c (find_oload_champ): Print part of debug messages
542 before the badness vector is std::move'd.
543
53a008a6
TT
5442019-11-28 Tom Tromey <tom@tromey.com>
545
546 * value.c (creal_internal_fn): Fix comment.
547
bab05c83
TT
5482019-11-28 Tom Tromey <tom@tromey.com>
549
550 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
551 flag_bound_evaluated>: Now unsigned.
552
2522f049
TT
5532019-11-28 Tom Tromey <tom@tromey.com>
554
555 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
556 declare.
557
38b49e22
MS
5582019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
559
560 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
561 debug output.
562 * jit.c (jit_unregister_code): Add debug print to match
563 `jit_register_code`.
564
35125921
CB
5652019-11-27 Christian Biesinger <cbiesinger@google.com>
566
567 * NEWS: Mention the new multithreaded symbol loading.
568
62e77f56
CB
5692019-11-27 Christian Biesinger <cbiesinger@google.com>
570
571 * maint.c (n_worker_threads): Default to 0.
572 (worker_threads_disabled): New function.
573 * maint.h (worker_threads_disabled): New function.
574 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
575 here if worker_threads_disabled () is true.
576 (minimal_symbol_reader::install): Skip all threading if
577 worker_threads_disabled () is true.
578
f29d7f6b
CB
5792019-11-27 Christian Biesinger <cbiesinger@google.com>
580
581 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
582 hash code if possible.
583 (add_minsym_to_demangled_hash_table): Likewise.
584 (minimal_symbol_reader::install): Compute the hash codes for msymbol
585 on the background thread.
586 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
587 Add these fields.
588
e76b2246
CB
5892019-11-27 Christian Biesinger <cbiesinger@google.com>
590
591 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
592 of the mangled name on the background thread.
593 * symtab.c (symbol_set_names): Allow passing in the hash of the
594 linkage_name.
595 * symtab.h (symbol_set_names): Likewise.
596
8d9a2568
KB
5972019-11-27 Kevin Buettner <kevinb@redhat.com>
598
599 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
600 physnames are computed for inherited DIEs.
601
fad03f6e
TT
6022019-11-27 Tom Tromey <tromey@adacore.com>
603
604 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
605 backslashes.
606 * cp-support.c: Remove unnecessary backslashes.
607
43678b0a
CB
6082019-11-27 Christian Biesinger <cbiesinger@google.com>
609
610 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
611 with sym->set_linkage_name.
612 * coffread.c (coff_read_enum_type): Likewise.
613 * mdebugread.c (parse_symbol): Likewise.
614 * stabsread.c (patch_block_stabs): Likewise.
615 (define_symbol): Likewise.
616 (read_enum_type): Likewise.
617 (common_block_end): Likewise.
618 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
619 function.
620 (SYMBOL_SET_LINKAGE_NAME): Remove.
621 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
622 with sym->set_linkage_name.
623
db5960b4
AB
6242019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
625
626 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
627 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
628 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
629 * NEWS: Mention new MI command.
630
7dc42066
AB
6312019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
632
633 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
634 '-symbol-info-types', and '-symbol-info-variables'.
635 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
636 (mi_cmd_symbol_info_types): Declare.
637 (mi_cmd_symbol_info_variables): Declare.
638 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
639 (output_debug_symbol): New function.
640 (output_nondebug_symbol): New function.
641 (mi_symbol_info): New function.
642 (mi_info_functions_or_variables): New function.
643 (mi_cmd_symbol_info_functions): New function.
644 (mi_cmd_symbol_info_types): New function.
645 (mi_cmd_symbol_info_variables): New function.
646 * NEWS: Mention new commands.
647
5f512a7d
AB
6482019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
649
650 * symtab.c (symbol_to_info_string): New function, most content
651 moved from print_symbol_info, but updated to return a std::string.
652 (print_symbol_info): Update to use symbol_to_info_string and print
653 returned string.
654 * symtab.h (symbol_to_info_string): Declare new function.
655
470c0b1c
AB
6562019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
657
658 * python/python.c (gdbpy_rbreak): Convert to using
659 global_symbol_searcher.
660 * symtab.c (file_matches): Convert return type to bool, change
661 file list to std::vector, update header comment.
662 (search_symbols): Rename to...
663 (global_symbol_searcher::search): ...this and update now its
664 a member function of global_symbol_searcher. Take account of the
665 changes to file_matches.
666 (symtab_symbol_info): Convert to using global_symbol_searcher.
667 (rbreak_command): Likewise.
668 (search_module_symbols): Likewise.
669 * symtab.h (enum symbol_search): Update comment.
670 (search_symbols): Remove declaration.
671 (class global_symbol_searcher): New class.
672
57357d9d
TT
6732019-11-26 Tom Tromey <tromey@adacore.com>
674
675 * cp-support.c (_initialize_cp_support): Conditionally initialize
676 gdb_demangle_attempt_core_dump.
677
3ea16160
TT
6782019-11-26 Tom Tromey <tom@tromey.com>
679
680 * python/py-function.c (fnpy_init): Update.
681 * value.h (add_internal_function): Adjust declaration.
682 * value.c (function_destroyer): Remove.
683 (do_add_internal_function): Don't set destroyer or copy name.
684 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
685 Set name_allocated.
686 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
687 (cmdpy_init): Set name_allocated.
688 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
689 member.
690 (~cmd_list_element): Free "name" if needed.
691
1a6d41c6
TT
6922019-11-26 Tom Tromey <tom@tromey.com>
693
694 * value.h (add_internal_function): Add new overload. Move
695 documentation from value.h.
696 * value.c (do_add_internal_function): New function.
697 (add_internal_function): Use it. Add new overload.
698 (function_destroyer): Don't free doc.
699 * python/py-function.c (fnpy_init): Update.
700
8318f3c3
TT
7012019-11-26 Tom Tromey <tom@tromey.com>
702
703 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
704 (cmdpy_init): Set "doc_allocated".
705
4da8c3a8
TT
7062019-11-26 Tom Tromey <tom@tromey.com>
707
708 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
709 name of worker thread.
710 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
711 pthread_setname_np.
712 * configure, config.in: Rebuild.
713
971db5e2
TT
7142019-11-26 Tom Tromey <tom@tromey.com>
715
716 * python/python.c (class gdbpy_gil): New.
717 (struct gdbpy_event): Add constructor, destructor, operator().
718 (gdbpy_post_event): Use run_on_main_thread.
719 (gdbpy_initialize_events): Remove.
720 (do_start_initialization): Update.
721
22138db6
TT
7222019-11-26 Tom Tromey <tom@tromey.com>
723
724 * NEWS: Add entry.
725 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
726 commands. Call update_thread_pool_size.
727 (update_thread_pool_size, maintenance_set_worker_threads): New
728 functions.
729 (n_worker_threads): New global.
730
d55c9a68
TT
7312019-11-26 Christian Biesinger <cbiesinger@google.com>
732 Tom Tromey <tom@tromey.com>
733
734 * minsyms.c (minimal_symbol_reader::install): Use
735 parallel_for_each.
736 * gdbsupport/parallel-for.h: New file.
737 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
738
a0b57563
CB
7392019-11-26 Christian Biesinger <cbiesinger@google.com>
740 Tom Tromey <tom@tromey.com>
741
742 * gdbsupport/thread-pool.h: New file.
743 * gdbsupport/thread-pool.c: New file.
744 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
745 (HFILES_NO_SRCDIR): Add thread-pool.h.
746
3b3978bc
TT
7472019-11-26 Tom Tromey <tom@tromey.com>
748
749 * event-top.h (thread_local_segv_handler): Declare.
750 * event-top.c (thread_local_segv_handler): New global.
751 (install_handle_sigsegv, handle_sigsegv): New functions.
752 (async_init_signals): Install SIGSEGV handler.
753 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
754 thread-local.
755 (report_failed_demangle): New function.
756 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
757 handler-setting code, instead use segv_handler. Run warning code
758 on main thread.
759
9411c49e
TT
7602019-11-26 Tom Tromey <tom@tromey.com>
761
762 * run-on-main-thread.c: New file.
763 * run-on-main-thread.h: New file.
764 * unittests/main-thread-selftests.c: New file.
765 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
766 main-thread-selftests.c.
767 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
768 (COMMON_SFILES): Add run-on-main-thread.c.
769
c3efb965
TT
7702019-11-26 Tom Tromey <tom@tromey.com>
771
772 * main.c (setup_alternate_signal_stack): Remove.
773 (captured_main_1): Use gdb::alternate_signal_stack.
774 * gdbsupport/alt-stack.h: New file.
775
21987b9c
TT
7762019-11-26 Tom Tromey <tom@tromey.com>
777
778 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
779 Remove comment.
780 (save_original_signals_state, restore_original_signals_state): Use
781 gdb_sigmask.
782 * linux-nat.c (block_child_signals, restore_child_signals_mask)
783 (_initialize_linux_nat): Use gdb_sigmask.
784 * guile/guile.c (_initialize_guile): Use block_signals.
785 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
786 * gdbsupport/gdb-sigmask.h: New file.
787 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
788 * cp-support.c (gdb_demangle): Use gdb_sigmask.
789 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
790 pthread_sigmask.
791 * configure, config.in: Rebuild.
792 * gdbsupport/block-signals.h: New file.
793
5e030278
TT
7942019-11-26 Tom Tromey <tom@tromey.com>
795
796 * acinclude.m4: Include ax_pthread.m4.
797 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
798 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
799 (CLIBS): Use PTHREAD_LIBS.
800 (aclocal_m4_deps): Add ax_pthread.m4.
801 * config.in, configure: Rebuild.
802 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
803
5a79c107
TT
8042019-11-26 Tom Tromey <tom@tromey.com>
805
806 * symtab.h (struct minimal_symbol) <name_set>: New member.
807 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
808 Don't call symbol_set_names.
809 (minimal_symbol_reader::install): Call symbol_set_names.
810
aa369509
PW
8112019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
812
813 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
814 restore_active_ext_lang, as GIL is needed for (indirectly)
815 called PyOS_InterruptOccurred.
816
cadc9cb8
SM
8172019-11-26 Simon Marchi <simon.marchi@efficios.com>
818
819 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
820 definition.
821
d04afd58
SM
8222019-11-26 Simon Marchi <simon.marchi@efficios.com>
823
824 * remote-sim.c (simulator_command): Make static, remove
825 declaration.
826
dd694d77
SM
8272019-11-26 Simon Marchi <simon.marchi@efficios.com>
828
829 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
830 static.
831 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
832 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
833 (main): Likewise.
834 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
835 (main): Likewise.
836 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
837 (main): Likewise.
838 * unittests/basic_string_view/element_access/char/1.cc (test01):
839 Likewise.
840 (main): Likewise.
841 * unittests/basic_string_view/element_access/char/empty.cc (main):
842 Likewise.
843 * unittests/basic_string_view/element_access/char/front_back.cc
844 (test01): Likewise.
845 (main): Likewise.
846 * unittests/basic_string_view/inserters/char/2.cc (test05):
847 Likewise.
848 (main): Likewise.
849 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
850 (test01): Likewise.
851 (main): Likewise.
852 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
853 (test01): Likewise.
854 (main): Likewise.
855 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
856 Likewise.
857 * unittests/basic_string_view/operations/compare/char/1.cc
858 (test01): Likewise.
859 (main): Likewise.
860 * unittests/basic_string_view/operations/compare/char/13650.cc
861 (test01): Likewise.
862 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
863 Likewise.
864 (main): Likewise.
865 * unittests/basic_string_view/operations/data/char/1.cc (test01):
866 Likewise.
867 (main): Likewise.
868 * unittests/basic_string_view/operations/find/char/1.cc (test01):
869 Likewise.
870 (main): Likewise.
871 * unittests/basic_string_view/operations/find/char/2.cc (test02):
872 Likewise.
873 (main): Likewise.
874 * unittests/basic_string_view/operations/find/char/3.cc (test03):
875 Likewise.
876 (main): Likewise.
877 * unittests/basic_string_view/operations/find/char/4.cc (main):
878 Likewise.
879 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
880 Likewise.
881 (main): Likewise.
882 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
883 Likewise.
884 (main): Likewise.
885 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
886 Likewise.
887 (main): Likewise.
888 * unittests/basic_string_view/operations/substr/char/1.cc
889 (test01): Likewise.
890 (main): Likewise.
891 * unittests/basic_string_view/operators/char/2.cc (main):
892 Likewise.
893 * unittests/optional/assignment/1.cc (test): Likewise.
894 * unittests/optional/assignment/2.cc (test): Likewise.
895 * unittests/optional/assignment/3.cc (test): Likewise.
896 * unittests/optional/assignment/4.cc (test): Likewise.
897 * unittests/optional/assignment/5.cc (test): Likewise.
898 * unittests/optional/assignment/6.cc (test): Likewise.
899 * unittests/optional/assignment/7.cc (test): Likewise.
900 * unittests/optional/cons/copy.cc (test): Likewise.
901 * unittests/optional/cons/default.cc (test): Likewise.
902 * unittests/optional/cons/move.cc (test): Likewise.
903 * unittests/optional/cons/value.cc (test): Likewise.
904 * unittests/optional/in_place.cc (test): Likewise.
905 * unittests/optional/observers/1.cc (test): Likewise.
906 * unittests/optional/observers/2.cc (test): Likewise.
907
3b5c1d49
SM
9082019-11-26 Simon Marchi <simon.marchi@efficios.com>
909
910 * tui-win.h (tui_set_var_cmd): Remove.
911 * tui-win.c (tui_set_var_cmd): Make static.
912
adce99fe
SM
9132019-11-26 Simon Marchi <simon.marchi@efficios.com>
914
915 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
916 rbreak_command_wrapper): Remove.
917 * symtab.c (rbreak_command_wrapper): Remove.
918
fe3adccf
SM
9192019-11-26 Simon Marchi <simon.marchi@efficios.com>
920
921 * inferior.h (info_terminal_command): Remove declaration.
922 * inflow.c (info_terminal_command): Make static.
923
b926335f
SM
9242019-11-26 Simon Marchi <simon.marchi@efficios.com>
925
926 * inferior.c (exit_inferior_silent): Remove.
927
b62f6f54
SM
9282019-11-26 Simon Marchi <simon.marchi@efficios.com>
929
930 * dictionary.c (dict_empty, mdict_empty): Remove.
931 * dictionary.c (mdict_empty): Remove.
932
cb8c24b6
SM
9332019-11-26 Simon Marchi <simon.marchi@efficios.com>
934
935 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
936 (arc_insn_get_memory_offset): Likewise.
937 (arc_insn_dump): Likewise.
938 * cp-support.c (test_cp_symbol_name_matches): Likewise.
939 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
940 * dictionary.c (dict_iterator_next): Likewise.
941 (dict_iter_match_first): Likewise.
942 (dict_iter_match_next): Likewise.
943 * f-lang.c (evaluate_subexp_f): Likewise.
944 * hppa-tdep.c (hppa_read_pc): Likewise.
945 * i386-tdep.c (i386_floatformat_for_type): Likewise.
946 * parse.c (write_exp_elt_msym): Likewise.
947 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
948 * remote.c (remote_packet_size): Likewise.
949 (remote_notif_stop_parse): Likewise.
950 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
951 * s12z-tdep.c (s12z_disassemble_info): Likewise.
952 * source.c (prepare_path_for_appending): Likewise.
953 * sparc64-linux-tdep.c
954 (sparc64_linux_handle_segmentation_fault); Likewise.
955 * stack.c (frame_selection_by_function_completer): Likewise.
956
781597ff
SM
9572019-11-26 Simon Marchi <simon.marchi@efficios.com>
958
959 * completer.c (set_gdb_completion_word_break_characters):
960 Remove.
961
23baa4cc
SM
9622019-11-26 Simon Marchi <simon.marchi@efficios.com>
963
964 * dwarf-index-write.c: Include dwarf-index-write.h.
965 * mi/mi-interp.c: Include mi/mi-interp.h.
966
23767560
SM
9672019-11-26 Simon Marchi <simon.marchi@efficios.com>
968
969 * aarch32-tdep.c: Include aarch32-tdep.h.
970 * aarch32-tdep.h: Forward-declare struct target_desc.
971
6d91ce9a
CB
9722019-11-26 Christian Biesinger <cbiesinger@google.com>
973
974 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
975 strerror.
976 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
977 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
978
3cf2f237
TV
9792019-11-25 Tom de Vries <tdevries@suse.de>
980
981 * contrib/words.sh: Add -c option.
982
5b89c67a
CB
9832019-11-25 Christian Biesinger <cbiesinger@google.com>
984
985 * solib.c (solib_find_1): Change int to bool.
986 (exec_file_find): Change int to bool.
987 (solib_find): Change int to bool.
988 (solib_read_symbols): Change int to bool.
989 (solib_used): Change int to bool.
990 (solib_add): Change int to bool.
991 (info_sharedlibrary_command): Change int to bool.
992 (solib_contains_address_p): Change int to bool.
993 (solib_keep_data_in_core): Change int to bool.
994 (in_solib_dynsym_resolve_code): Change int to bool.
995 (reload_shared_libraries_1): Change int to bool.
996 (gdb_sysroot_changed): Change int to bool.
997 * solib.h (solib_read_symbols): Change int to bool.
998 (solib_contains_address_p): Change int to bool.
999 (solib_keep_data_in_core): Change int to bool.
1000 (in_solib_dynsym_resolve_code): Change int to bool.
1001 (libpthread_name_p): Change int to bool.
1002
6cc8564b
LM
10032019-11-25 Luis Machado <luis.machado@linaro.org>
1004
1005 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1006 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1007 (remote_packet_max_chars): New static global.
1008 (show_remote_packet_max_chars): New function.
1009 (remote_target::putpkt_binary): Adjust to use new
1010 remote_packet_max_chars option.
1011 (remote_target::getpkt_or_notif_sane_1): Likewise.
1012 (_initialize_remote): Register new remote-packet-max-chars option.
1013
a7cdaa91
SM
10142019-11-24 Simon Marchi <simon.marchi@efficios.com>
1015
1016 * m68k-linux-nat.c: Include gdbarch.h.
1017
26abc753
TT
10182019-11-24 Tom Tromey <tom@tromey.com>
1019
1020 * symfile.c (read_symbols): Update.
1021 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1022 bool.
1023 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1024 (psym_lookup_symbol, psym_find_last_source_symtab)
1025 (psym_forget_cached_source_info, psym_print_stats)
1026 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1027 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1028 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1029 (psym_find_compunit_symtab_by_address)
1030 (maintenance_print_psymbols, maintenance_info_psymtabs)
1031 (maintenance_check_psymtabs): Update.
1032 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1033 bool.
1034
012fc909
TT
10352019-11-22 Tom Tromey <tom@tromey.com>
1036
1037 * observable.h: Update comments.
1038
c83d8d32
TT
10392019-11-22 Tom Tromey <tromey@adacore.com>
1040
1041 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1042 (print_ada_task_info): Don't try to fetch thread id if task is not
1043 alive.
1044
987012b8
CB
10452019-11-22 Christian Biesinger <cbiesinger@google.com>
1046
1047 * ada-exp.y: Update.
1048 * ada-lang.c (sort_choices): Update.
1049 (ada_print_symbol_signature): Update.
1050 (resolve_subexp): Update.
1051 (ada_parse_renaming): Update.
1052 (ada_read_renaming_var_value): Update.
1053 (lesseq_defined_than): Update.
1054 (remove_extra_symbols): Update.
1055 (remove_irrelevant_renamings): Update.
1056 (ada_add_block_symbols): Update.
1057 (ada_collect_symbol_completion_matches): Update.
1058 (ada_is_renaming_symbol): Update.
1059 (aggregate_assign_from_choices): Update.
1060 (ada_evaluate_subexp): Update.
1061 (ada_has_this_exception_support): Update.
1062 (ada_is_non_standard_exception_sym): Update.
1063 (ada_add_exceptions_from_frame): Update.
1064 (ada_add_global_exceptions): Update.
1065 (ada_print_subexp): Update.
1066 * ax-gdb.c (gen_var_ref): Update.
1067 (gen_maybe_namespace_elt): Update.
1068 (gen_expr_for_cast): Update.
1069 (gen_expr): Update.
1070 * block.h: Update.
1071 * blockframe.c (find_pc_partial_function): Update.
1072 * breakpoint.c (print_breakpoint_location): Update.
1073 (update_static_tracepoint): Update.
1074 * btrace.c (ftrace_print_function_name): Update.
1075 (ftrace_function_switched): Update.
1076 * buildsym.c (find_symbol_in_list): Update.
1077 * c-exp.y: Update.
1078 * c-typeprint.c (c_print_typedef): Update.
1079 (c_type_print_template_args): Update.
1080 * cli/cli-cmds.c (edit_command): Update.
1081 (list_command): Update.
1082 (print_sal_location): Update.
1083 * coffread.c (patch_opaque_types): Update.
1084 (process_coff_symbol): Update.
1085 (coff_read_enum_type): Update.
1086 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1087 (convert_one_symbol): Update.
1088 (hash_symname): Update.
1089 (eq_symname): Update.
1090 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1091 * compile/compile-cplus-types.c (debug_print_scope): Update.
1092 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1093 * compile/compile-object-load.c (get_out_value_type): Update.
1094 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1095 (search_symbol_list): Update.
1096 (cp_lookup_symbol_imports_or_template): Update.
1097 * cp-support.c (overload_list_add_symbol): Update.
1098 * ctfread.c (psymtab_to_symtab): Update.
1099 * dbxread.c (cp_set_block_scope): Update.
1100 * dictionary.c (iter_match_first_hashed): Update.
1101 (iter_match_next_hashed): Update.
1102 (insert_symbol_hashed): Update.
1103 (iter_match_next_linear): Update.
1104 * dictionary.h: Update.
1105 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1106 (locexpr_describe_location_piece): Update.
1107 (locexpr_describe_location_1): Update.
1108 (locexpr_generate_c_location): Update.
1109 (loclist_describe_location): Update.
1110 (loclist_generate_c_location): Update.
1111 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1112 (read_func_scope): Update.
1113 (process_enumeration_scope): Update.
1114 (new_symbol): Update.
1115 (dwarf2_const_value): Update.
1116 (dwarf2_symbol_mark_computed): Update.
1117 * eval.c (evaluate_funcall): Update.
1118 (evaluate_subexp_standard): Update.
1119 * expprint.c (print_subexp_standard): Update.
1120 (dump_subexp_body_standard): Update.
1121 * f-valprint.c (info_common_command_for_block): Update.
1122 * findvar.c (get_hosting_frame): Update.
1123 (default_read_var_value): Update.
1124 * go-lang.c (go_symbol_package_name): Update.
1125 * guile/scm-block.c (bkscm_print_block_smob): Update.
1126 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1127 (gdbscm_symbol_name): Update.
1128 (gdbscm_symbol_linkage_name): Update.
1129 (gdbscm_symbol_print_name): Update.
1130 * infcall.c (get_function_name): Update.
1131 * infcmd.c (jump_command): Update.
1132 (finish_command): Update.
1133 * infrun.c (insert_exception_resume_breakpoint): Update.
1134 * linespec.c (canonicalize_linespec): Update.
1135 (create_sals_line_offset): Update.
1136 (convert_linespec_to_sals): Update.
1137 (complete_label): Update.
1138 (find_label_symbols_in_block): Update.
1139 * m2-typeprint.c (m2_print_typedef): Update.
1140 * mdebugread.c (mdebug_reg_to_regnum): Update.
1141 (parse_symbol): Update.
1142 (mylookup_symbol): Update.
1143 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1144 (list_args_or_locals): Update.
1145 * objc-lang.c (compare_selectors): Update.
1146 (info_selectors_command): Update.
1147 (compare_classes): Update.
1148 (info_classes_command): Update.
1149 (find_imps): Update.
1150 * p-typeprint.c (pascal_print_typedef): Update.
1151 * printcmd.c (build_address_symbolic): Update.
1152 (info_address_command): Update.
1153 (print_variable_and_value): Update.
1154 * python/py-framefilter.c (extract_sym): Update.
1155 (py_print_single_arg): Update.
1156 * python/py-symbol.c (sympy_str): Update.
1157 (sympy_get_name): Update.
1158 (sympy_get_linkage_name): Update.
1159 * python/python.c (gdbpy_rbreak): Update.
1160 * record-btrace.c (btrace_get_bfun_name): Update.
1161 (btrace_call_history): Update.
1162 * rust-lang.c (rust_print_typedef): Update.
1163 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1164 * stabsread.c (stab_reg_to_regnum): Update.
1165 (define_symbol): Update.
1166 (read_enum_type): Update.
1167 (common_block_end): Update.
1168 (cleanup_undefined_types_1): Update.
1169 (scan_file_globals): Update.
1170 * stack.c (print_frame_arg): Update.
1171 (print_frame_args): Update.
1172 (find_frame_funname): Update.
1173 (info_frame_command_core): Update.
1174 (iterate_over_block_locals): Update.
1175 (print_block_frame_labels): Update.
1176 (do_print_variable_and_value): Update.
1177 (iterate_over_block_arg_vars): Update.
1178 (return_command): Update.
1179 * symmisc.c (dump_symtab_1): Update.
1180 (print_symbol): Update.
1181 * symtab.c (eq_symbol_entry): Update.
1182 (symbol_cache_dump): Update.
1183 (lookup_language_this): Update.
1184 (find_pc_sect_line): Update.
1185 (skip_prologue_sal): Update.
1186 (symbol_search::compare_search_syms): Update.
1187 (treg_matches_sym_type_name): Update.
1188 (search_symbols): Update.
1189 (print_symbol_info): Update.
1190 (rbreak_command): Update.
1191 (completion_list_add_symbol): Update.
1192 (find_gnu_ifunc): Update.
1193 (get_symbol_address): Update.
1194 (search_module_symbols): Update.
1195 (info_module_subcommand): Update.
1196 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1197 (SYMBOL_LINKAGE_NAME): Remove.
1198 (SYMBOL_DEMANGLED_NAME): Remove.
1199 (SYMBOL_PRINT_NAME): Remove.
1200 (SYMBOL_SEARCH_NAME): Remove.
1201 * tracepoint.c (set_traceframe_context): Update.
1202 (validate_actionline): Update.
1203 (collection_list::collect_symbol): Update.
1204 (encode_actions_1): Update.
1205 (info_scope_command): Update.
1206 (print_one_static_tracepoint_marker): Update.
1207 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1208 * valops.c (address_of_variable): Update.
1209 (find_overload_match): Update.
1210 (find_oload_champ): Update.
1211
c9d95fa3
CB
12122019-11-22 Christian Biesinger <cbiesinger@google.com>
1213
1214 * ada-lang.c (ada_lookup_simple_minsym): Update.
1215 (ada_collect_symbol_completion_matches): Update.
1216 * ada-tasks.c (read_atcb): Update.
1217 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1218 (amd64_windows_skip_trampoline_code): Update.
1219 * arm-tdep.c (skip_prologue_function): Update.
1220 (arm_skip_stack_protector): Update.
1221 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1222 (arm_wince_skip_main_prologue): Update.
1223 * ax-gdb.c (gen_expr): Update.
1224 * block.c (call_site_for_pc): Update.
1225 * blockframe.c (find_pc_partial_function): Update.
1226 * breakpoint.c (set_breakpoint_location_function): Update.
1227 * btrace.c (ftrace_print_function_name): Update.
1228 (ftrace_function_switched): Update.
1229 * c-valprint.c (print_unpacked_pointer): Update.
1230 * coffread.c (coff_symfile_read): Update.
1231 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1232 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1233 * dwarf-index-write.c (write_psymbols): Update.
1234 * dwarf2loc.c (call_site_to_target_addr): Update.
1235 (func_verify_no_selftailcall): Update.
1236 (tailcall_dump): Update.
1237 (call_site_find_chain_1): Update.
1238 (dwarf_expr_reg_to_entry_parameter): Update.
1239 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1240 * eval.c (evaluate_funcall): Update.
1241 (evaluate_subexp_standard): Update.
1242 (evaluate_subexp_for_sizeof): Update.
1243 * expprint.c (print_subexp_standard): Update.
1244 (dump_subexp_body_standard): Update.
1245 * frame.c (get_prev_frame_always_1): Update.
1246 * frv-tdep.c (frv_skip_main_prologue): Update.
1247 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1248 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1249 (gnuv3_get_typename_from_type_info): Update.
1250 (gnuv3_skip_trampoline): Update.
1251 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1252 * i386-tdep.c (i386_skip_main_prologue): Update.
1253 (i386_pe_skip_trampoline_code): Update.
1254 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1255 * infcall.c (get_function_name): Update.
1256 * linespec.c (minsym_found): Update.
1257 * linux-fork.c (info_checkpoints_command): Update.
1258 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1259 (m32c_m16c_pointer_to_address): Update.
1260 * maint.c (maintenance_translate_address): Update.
1261 * minsyms.c (add_minsym_to_hash_table): Update.
1262 (add_minsym_to_demangled_hash_table): Update.
1263 (lookup_minimal_symbol_mangled): Update.
1264 (lookup_minimal_symbol_demangled): Update.
1265 (lookup_minimal_symbol_linkage): Update.
1266 (lookup_minimal_symbol_text): Update.
1267 (lookup_minimal_symbol_by_pc_name): Update.
1268 (minimal_symbol_is_less_than): Update.
1269 (compact_minimal_symbols): Update.
1270 (build_minimal_symbol_hash_tables): Update.
1271 (find_solib_trampoline_target): Update.
1272 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1273 (mips_skip_pic_trampoline_code): Update.
1274 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1275 * objc-lang.c (info_selectors_command): Update.
1276 (info_classes_command): Update.
1277 (find_methods): Update.
1278 (find_imps): Update.
1279 * p-valprint.c (pascal_val_print): Update.
1280 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1281 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1282 * printcmd.c (build_address_symbolic): Update.
1283 (info_symbol_command): Update.
1284 * psymtab.c (psymbol_name_matches): Update.
1285 (match_partial_symbol): Update.
1286 (lookup_partial_symbol): Update.
1287 (print_partial_symbols): Update.
1288 (sort_pst_symbols): Update.
1289 (maintenance_check_psymtabs): Update.
1290 * python/py-framefilter.c (py_print_frame): Update.
1291 * python/python.c (gdbpy_rbreak): Update.
1292 * record-btrace.c (btrace_get_bfun_name): Update.
1293 (btrace_call_history): Update.
1294 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1295 (rs6000_skip_trampoline_code): Update.
1296 * sol-thread.c (info_cb): Update.
1297 * stabsread.c (scan_file_globals): Update.
1298 * stack.c (find_frame_funname): Update.
1299 (info_frame_command_core): Update.
1300 * symmisc.c (dump_msymbols): Update.
1301 * symtab.c (symbol_natural_name): Rename to..,
1302 (general_symbol_info::natural_name): ...this.
1303 (symbol_demangled_name): Rename to...
1304 (general_symbol_info::demangled_name): ...this.
1305 (symbol_search_name): Rename to...
1306 (general_symbol_info::search_name): ...this.
1307 (symbol_matches_search_name): Update.
1308 (find_pc_sect_line): Update.
1309 (skip_prologue_sal): Update.
1310 (search_symbols): Update.
1311 (print_msymbol_info): Update.
1312 (rbreak_command): Update.
1313 (completion_list_add_msymbol): Update.
1314 (completion_list_objc_symbol): Update.
1315 (get_msymbol_address): Update.
1316 * symtab.h (struct general_symbol_info): Add member functions
1317 natural_name (), linkage_name (), print_name (), demangled_name (),
1318 and search_name ().
1319 (SYMBOL_NATURAL_NAME): Update.
1320 (symbol_natural_name): Move to a member function on general_symbol_info.
1321 (SYMBOL_DEMANGLED_NAME): Update.
1322 (symbol_demangled_name): Move to a member function on
1323 general_symbol_info.
1324 (SYMBOL_SEARCH_NAME): Update.
1325 (symbol_search_name): Move to a member function on general_symbol_info.
1326 (MSYMBOL_NATURAL_NAME): Remove.
1327 (MSYMBOL_LINKAGE_NAME): Remove.
1328 (MSYMBOL_PRINT_NAME): Remove.
1329 (MSYMBOL_DEMANGLED_NAME): Remove.
1330 (MSYMBOL_SEARCH_NAME): Remove.
1331 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1332
f8bab2d6
CB
13332019-11-22 Christian Biesinger <cbiesinger@google.com>
1334
1335 * symtab.c (create_demangled_names_hash): Use per_bfd->
1336 minimal_symbol_count for computing the initial size, if greater
1337 than our default size.
1338
85e7588d
TV
13392019-11-22 Tom de Vries <tdevries@suse.de>
1340
1341 * contrib/words.sh: Improve words extraction.
1342
f6180073
TV
13432019-11-22 Tom de Vries <tdevries@suse.de>
1344
1345 * contrib/words.sh: Combine sed invocations.
1346
f10ffa41
CB
13472019-11-21 Christian Biesinger <cbiesinger@google.com>
1348
1349 * Makefile.in: Update.
1350 * demangle.c: Rename to...
1351 * gdb-demangle.c: ..this.
1352 (is_cplus_marker): Change return type to bool.
1353 (_initialize_demangler): Rename to...
1354 (_initialize_gdb_demangle): ...this.
1355 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1356 * symtab.h (demangle): Remove declaration; instead include
1357 gdb-demangle.h.
1358
6ba18521
TT
13592019-11-21 Tom Tromey <tromey@adacore.com>
1360
1361 * gdbsupport/format.c (format_pieces): Parse %I64d.
1362 * unittests/format_pieces-selftests.c (test_windows_formats): New
1363 function.
1364 (run_tests): Call it.
1365
34877895
PJ
13662019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1367
1368 Byte reverse display of variables with DW_END_big, DW_END_little
1369 (DW_AT_endianity) dwarf attributes if different than the native
1370 byte order.
1371 * ada-lang.c (ada_value_binop):
1372 Use type_byte_order instead of gdbarch_byte_order.
1373 * ada-valprint.c (printstr):
1374 (ada_val_print_string):
1375 * ada-lang.c (value_pointer):
1376 (ada_value_binop):
1377 Use type_byte_order instead of gdbarch_byte_order.
1378 * c-lang.c (c_get_string):
1379 Use type_byte_order instead of gdbarch_byte_order.
1380 * c-valprint.c (c_val_print_array):
1381 Use type_byte_order instead of gdbarch_byte_order.
1382 * cp-valprint.c (cp_print_class_member):
1383 Use type_byte_order instead of gdbarch_byte_order.
1384 * dwarf2loc.c (rw_pieced_value):
1385 Use type_byte_order instead of gdbarch_byte_order.
1386 * dwarf2read.c (read_base_type): Handle DW_END_big,
1387 DW_END_little
1388 * f-lang.c (f_get_encoding):
1389 Use type_byte_order instead of gdbarch_byte_order.
1390 * findvar.c (default_read_var_value):
1391 Use type_byte_order instead of gdbarch_byte_order.
1392 * gdbtypes.c (check_types_equal):
1393 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1394 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1395 and TYPE_ENDIANITY_LITTLE if set.
1396 (type_byte_order): new function.
1397 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1398 (struct main_type) <flag_endianity_not_default>:
1399 New field.
1400 (type_byte_order): New function.
1401 * infcmd.c (default_print_one_register_info):
1402 Use type_byte_order instead of gdbarch_byte_order.
1403 * p-lang.c (pascal_printstr):
1404 Use type_byte_order instead of gdbarch_byte_order.
1405 * p-valprint.c (pascal_val_print):
1406 Use type_byte_order instead of gdbarch_byte_order.
1407 * printcmd.c (print_scalar_formatted):
1408 Use type_byte_order instead of gdbarch_byte_order.
1409 * solib-darwin.c (darwin_current_sos):
1410 Use type_byte_order instead of gdbarch_byte_order.
1411 * solib-svr4.c (solib_svr4_r_ldsomap):
1412 Use type_byte_order instead of gdbarch_byte_order.
1413 * stap-probe.c (stap_modify_semaphore):
1414 Use type_byte_order instead of gdbarch_byte_order.
1415 * target-float.c (target_float_same_format_p):
1416 Use type_byte_order instead of gdbarch_byte_order.
1417 * valarith.c (scalar_binop):
1418 (value_bit_index):
1419 Use type_byte_order instead of gdbarch_byte_order.
1420 * valops.c (value_cast):
1421 Use type_byte_order instead of gdbarch_byte_order.
1422 * valprint.c (generic_emit_char):
1423 (generic_printstr):
1424 (val_print_string):
1425 Use type_byte_order instead of gdbarch_byte_order.
1426 * value.c (unpack_long):
1427 (unpack_bits_as_long):
1428 (unpack_value_bitfield):
1429 (modify_field):
1430 (pack_long):
1431 (pack_unsigned_long):
1432 Use type_byte_order instead of gdbarch_byte_order.
1433 * findvar.c (unsigned_pointer_to_address):
1434 (signed_pointer_to_address):
1435 (unsigned_address_to_pointer):
1436 (address_to_signed_pointer):
1437 (default_read_var_value):
1438 (default_value_from_register):
1439 Use type_byte_order instead of gdbarch_byte_order.
1440 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1441 Use type_byte_order instead of gdbarch_byte_order.
1442 * riscv-tdep.c (riscv_print_one_register_info):
1443 Use type_byte_order instead of gdbarch_byte_order.
1444
87fb00ea
SM
14452019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1446
1447 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1448 (current_ui_gdb_stdin_ptr): Likewise.
1449 (current_ui_gdb_stderr_ptr): Likewise.
1450 (current_ui_gdb_stdlog_ptr): Likewise.
1451 (current_ui_current_uiout_ptr): Likewise.
1452 (gen_ret_current_ui_field_ptr): Remove.
1453
65d1cd5f
TV
14542019-11-21 Tom de Vries <tdevries@suse.de>
1455
1456 PR gdb/24956
1457 * cli/cli-script.c (execute_control_command): Only switch to
1458 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1459
9f6ad286
TT
14602019-11-19 Tom Tromey <tom@tromey.com>
1461
1462 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1463 Now static. Change type of "name".
1464 (tui_set_win_height_command): Don't copy "arg".
1465 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1466 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1467
435d3d88
AT
14682019-11-19 Ali Tamur <tamur@google.com>
1469
1470 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1471 "if (attr != nullptr)".
1472 (dwarf2_find_base_address): Likewise.
1473 (dwarf2_build_include_psymtabs): Likewise.
1474 (read_cutu_die_from_dwo): Likewise.
1475 (read_func_scope): Likewise.
1476 (read_call_site_scope): Likewise.
1477 (dwarf2_get_pc_bounds): Likewise.
1478 (dwarf2_record_block_ranges): Likewise.
1479 (dwarf2_add_field): Likewise.
1480 (dwarf2_add_member_fn): Likewise.
1481 (read_structure_type): Likewise.
1482 (read_enumeration_type): Likewise.
1483 (read_array_type): Likewise.
1484 (read_array_order): Likewise.
1485 (read_set_type): Likewise.
1486 (read_common_block): Likewise.
1487 (read_tag_reference_type): Likewise.
1488 (read_tag_string_type): Likewise.
1489 (read_subroutine_type): Likewise.
1490 (read_base_type): Likewise.
1491 (read_subrange_type): Likewise.
1492 (new_symbol): Likewise.
1493 (prepare_one_comp_unit): Likewise.
1494
c9739b6a
TT
14952019-11-19 Tom Tromey <tromey@adacore.com>
1496
1497 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1498 result in error when DebugActiveProcess fails.
1499
494409bb
SDJ
15002019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1501 Pedro Alves <palves@redhat.com>
1502
1503 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1504 * target.c (target_stack::push): Call 'unpush' if there's a
1505 target on top of the stack.
1506
2e953aca
PW
15072019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1508
1509 * python/py-block.c (blpy_dealloc): Call tp_free.
1510 (blpy_block_syms_dealloc): Likewise.
1511 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1512 * python/py-inferior.c (infpy_dealloc): Likewise.
1513 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1514 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1515 * python/py-symbol.c (sympy_dealloc): Likewise.
1516 * python/py-symtab.c (stpy_dealloc): Likewise.
1517 * python/py-type.c (typy_iterator_dealloc): Likewise.
1518
6edc43ec
CB
15192019-11-18 Christian Biesinger <cbiesinger@google.com>
1520
1521 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1522 constructor instead of using a class initializer.
1523
cd850b40
CB
15242019-11-15 Christian Biesinger <cbiesinger@google.com>
1525
1526 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1527 * configure: Regenerate.
1528 * configure.ac: Don't source common.host.
1529 * gdbsupport/common.host: Remove.
1530 * gdbsupport/mingw-strerror.c: Remove.
1531 * gdbsupport/posix-strerror.c: Rename to...
1532 * gdbsupport/safe-strerror.c: ...this.
1533
53fea9c7
CB
15342019-11-15 Christian Biesinger <cbiesinger@google.com>
1535
1536 * maint.c (scoped_command_stats::print_time): Use localtime_r
1537 instead of localtime (provided through gnulib if necessary).
1538 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1539 of ctime.
1540
f8e27d88
CB
15412019-11-15 Christian Biesinger <cbiesinger@google.com>
1542
1543 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1544 avoid compile errors.
1545
5abebf3c
CB
15462019-11-15 Christian Biesinger <cbiesinger@google.com>
1547
1548 * config.in: Regenerate.
1549 * configure: Regenerate.
1550 * gdbsupport/common.m4: No longer check for strerror_r.
1551 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1552 POSIX version of strerror_r, now that gnulib provides it if
1553 necessary.
1554
9a351667
CB
15552019-11-14 Christian Biesinger <cbiesinger@google.com>
1556
1557 * README (`configure' options): Update.
1558
55708e99
TT
15592019-11-14 Tom Tromey <tromey@adacore.com>
1560
1561 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1562 expected type for the RHS if the LHS is a convenience variable.
1563
4b09bb2e
SM
15642019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1565
1566 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1567 Provide explicit default and copy constructor.
1568
bd454f8b
PW
15692019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1570
1571 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1572 only call Py_INCREF (newbp) in the bppy_pending_object case.
1573
d1aa3cf0
TT
15742019-11-13 Tom Tromey <tromey@adacore.com>
1575
1576 PR build/25182:
1577 * psympriv.h (partial_symbol): Remove static assert.
1578 * symtab.h (general_symbol_info, symbol): Remove static assert.
1579
e06f3d6e
AB
15802019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1581
1582 * gdbsupport/format.c (format_pieces::format_pieces): Support
1583 printf 'z' size modifier.
1584 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1585 * printcmd.c (ui_printf): Handle size_t_arg.
1586 * ui-out.c (ui_out::vmessage): Likewise.
1587 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1588 function.
1589 (run_tests): Call test_format_int_sizes.
1590
468c0cbb
CB
15912019-11-12 Christian Biesinger <cbiesinger@google.com>
1592
1593 * ada-exp.y (write_ambiguous_var): Update.
1594 * buildsym.c (add_symbol_to_list): Update.
1595 * dwarf2read.c (read_variable): Update.
1596 (new_symbol): Update.
1597 * jit.c (finalize_symtab): Update.
1598 * language.c (language_alloc_type_symbol): Update.
1599 * symtab.c (fixup_symbol_section): Update.
1600 (initialize_objfile_symbol_1): Move code to...
1601 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1602 (allocate_symbol): Update.
1603 (allocate_template_symbol): Update.
1604 (get_symbol_address): Update.
1605 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1606 of having as a field, and add a constructor.
1607 (SYMBOL_VALUE): Update.
1608 (SYMBOL_VALUE_ADDRESS): Update.
1609 (SET_SYMBOL_VALUE_ADDRESS): Update.
1610 (SYMBOL_VALUE_BYTES): Update.
1611 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1612 (SYMBOL_BLOCK_VALUE): Update.
1613 (SYMBOL_VALUE_CHAIN): Update.
1614 (SYMBOL_LANGUAGE): Update.
1615 (SYMBOL_SECTION): Update.
1616 (SYMBOL_OBJ_SECTION): Update.
1617 (SYMBOL_SET_LANGUAGE): Update.
1618 (SYMBOL_SET_LINKAGE_NAME): Update.
1619 (SYMBOL_SET_NAMES): Update.
1620 (SYMBOL_NATURAL_NAME): Update.
1621 (SYMBOL_LINKAGE_NAME): Update.
1622 (SYMBOL_DEMANGLED_NAME): Update.
1623 (SYMBOL_SEARCH_NAME): Update.
1624 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1625 (struct symbol): Update.
1626 (struct template_symbol): Update.
1627 (struct rust_vtable_symbol): Update.
1628 * xcoffread.c (SYMBOL_DUP): Update.
1629
ed2c82c3
TT
16302019-11-12 Tom Tromey <tom@tromey.com>
1631
1632 * tui/tui-layout.c (show_layout): Set current_layout.
1633 (show_source_disasm_command, show_data)
1634 (show_source_or_disasm_and_command): Don't set current_layout.
1635
d9fcefd5
TT
16362019-11-12 Tom Tromey <tom@tromey.com>
1637
1638 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1639
45e42163
TT
16402019-11-12 Tom Tromey <tom@tromey.com>
1641
1642 * tui/tui-win.c (resize_message): New global.
1643 (show_tui_resize_message): New function.
1644 (tui_async_resize_screen): Print message if requested.
1645 (_initialize_tui_win): Add tui-resize-message setting.
1646 * NEWS: Add entry for new commands.
1647
c86d74cc
TT
16482019-11-11 Tom Tromey <tom@tromey.com>
1649
1650 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1651 functions.
1652
7b7b9424
CB
16532019-11-11 Christian Biesinger <cbiesinger@google.com>
1654
1655 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1656
086baaf1
AB
16572019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1658
1659 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1660 function.
1661 * python/python-internal.h (gdbpy_lookup_static_symbols):
1662 Declare new function.
1663 * python/python.c (python_GdbMethods): Add
1664 gdb.lookup_static_symbols method.
1665 * NEWS: Mention gdb.lookup_static_symbols.
1666
09ff83af
AB
16672019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1668
1669 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1670 static block of current object file first. Also fix typo in
1671 header comment.
1672
eb2dd8df
AB
16732019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1674
1675 * stack.c (set_last_displayed_sal): Delete.
1676 (last_displayed_sal_valid): Delete.
1677 (last_displayed_pspace): Delete.
1678 (last_displayed_addr): Delete.
1679 (last_displayed_symtab): Delete.
1680 (last_displayed_line): Delete.
1681 (class last_displayed_symtab_info_type): New.
1682 (last_displayed_symtab_info): New static global variable.
1683 (print_frame_info): Call methods on last_displayed_symtab_info.
1684 (clear_last_displayed_sal): Update header comment, and make use of
1685 last_displayed_symtab_info.
1686 (last_displayed_sal_is_valid): Likewise.
1687 (get_last_displayed_pspace): Likewise.
1688 (get_last_displayed_addr): Likewise.
1689 (get_last_displayed_symtab): Likewise.
1690 (get_last_displayed_line): Likewise.
1691 (get_last_displayed_sal): Likewise.
1692 * stack.h (clear_last_displayed_sal): Update header comment.
1693 (last_displayed_sal_is_valid): Likewise.
1694 (get_last_displayed_pspace): Likewise.
1695 (get_last_displayed_addr): Likewise.
1696 (get_last_displayed_symtab): Likewise.
1697 (get_last_displayed_line): Likewise.
1698 (get_last_displayed_sal): Likewise.
1699
62137775
AB
17002019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1701
1702 * stack.c (frame_show_address): Convert return type to bool.
1703 * stack.h (frame_show_address): Likewise, and update header
1704 comment.
1705
cf57ad6d
AB
17062019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1707
1708 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1709 * unittests/vec-utils-selftests.c: New file.
1710 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1711
0b026263
TT
17122019-11-10 Tom Tromey <tom@tromey.com>
1713
1714 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1715 (tui_highlight_win): Likewise.
1716 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1717 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1718 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1719 Don't set can_highlight.
1720
b049ce2d
TT
17212019-11-10 Tom Tromey <tom@tromey.com>
1722
1723 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1724 Remove unused declaration.
1725
992a7040
TT
17262019-11-08 Tom Tromey <tromey@adacore.com>
1727
1728 * top.c (read_command_file): Update.
1729 (command_line_input): Make return type const.
1730 * python/py-gdb-readline.c: Update.
1731 * linespec.c (decode_line_2): Update.
1732 * defs.h (command_line_input): Make return type const.
1733 * cli/cli-script.c (read_next_line): Make return type const.
1734 * ada-lang.c (get_selections): Update.
1735
ca3a04f6
CB
17362019-11-06 Christian Biesinger <cbiesinger@google.com>
1737
1738 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1739 * mi/mi-main.c (output_cores): Likewise.
1740 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1741 (linux_xfer_osdata_modules): Likewise.
1742 * remote.c (register_remote_support_xml): Likewise.
1743 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1744 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1745
e0eac551
TT
17462019-11-06 Tom Tromey <tom@tromey.com>
1747
1748 * tui/tui-interp.c: Don't include readline.h.
1749 * tui/tui-hooks.c: Don't include readline.h.
1750 * symmisc.c: Include tilde.h, not readline.h.
1751 * symfile.c: Include tilde.h, not readline.h.
1752 * source.c: Include tilde.h, not readline.h.
1753 * solib.c: Include tilde.h, not readline.h.
1754 * psymtab.c: Include tilde.h, not readline.h.
1755 * exec.c: Include tilde.h, not readline.h.
1756 * corelow.c: Include tilde.h, not readline.h.
1757 * cli/cli-dump.c: Include tilde.h, not readline.h.
1758 * cli/cli-cmds.c: Don't include readline.h.
1759
825165c5
TT
17602019-11-05 Tom Tromey <tom@tromey.com>
1761
1762 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1763 (tui_disassemble): Set addr_size.
1764 (tui_disasm_window::set_contents): Use addr_size.
1765
91ae903f
TT
17662019-11-05 Tom Tromey <tom@tromey.com>
1767
1768 * rust-lang.c (rust_language_defn): Update.
1769 * python/py-value.c (valpy_string): Call c_get_string.
1770 * p-lang.c (pascal_language_defn): Update.
1771 * opencl-lang.c (opencl_language_defn): Update.
1772 * objc-lang.c (objc_language_defn): Update.
1773 * m2-lang.c (m2_language_defn): Update.
1774 * language.c (unknown_language_defn, auto_language_defn): Update.
1775 (default_get_string): Remove.
1776 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1777 * go-lang.c (go_language_defn): Update.
1778 * f-lang.c (f_language_defn): Update.
1779 * d-lang.c (d_language_defn): Update.
1780 * c-lang.c (c_language_defn, cplus_language_defn)
1781 (asm_language_defn, minimal_language_defn): Update.
1782 * ada-lang.c (ada_language_defn): Update.
1783 * language.h (struct language_defn) <la_get_string>: Remove.
1784 (LA_GET_STRING): Remove.
1785 (default_get_string): Don't declare.
1786
1df2f9ef
TT
17872019-11-05 Tom Tromey <tom@tromey.com>
1788
1789 * tui/tui-source.h (struct tui_source_window): Inline
1790 constructor. Remove destructor.
1791 <style_changed, m_observable>: Move to superclass.
1792 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1793 (struct tui_source_window_base): Move private members to end.
1794 <style_changed, m_observable>: Move from tui_source_window.
1795 * tui/tui-winsource.c (tui_copy_source_line): Move from
1796 tui-source.c. Rename from copy_source_line. Add special handling
1797 for negative line number.
1798 (tui_source_window_base::style_changed): Move from
1799 tui_source_window.
1800 (tui_source_window_base): Register observer.
1801 (~tui_source_window_base): New.
1802 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1803 rename.
1804 (tui_source_window::set_contents): Use tui_copy_source_line.
1805 (tui_source_window::tui_source_window): Move to tui-source.h.
1806 (tui_source_window::~tui_source_window): Remove.
1807 (tui_source_window::style_changed): Move to superclass.
1808 * tui/tui-disasm.c (tui_disassemble): Create string file with
1809 styling, when possible. Add "addr_size" parameter.
1810 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1811 Don't compute maximum size.
1812 (len_without_escapes): New function
1813
5d051055
TT
18142019-11-05 Tom Tromey <tom@tromey.com>
1815
1816 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1817 std::string.
1818 * tui/tui-winsource.c (tui_show_source_line): Update.
1819 * tui/tui-source.c (tui_source_window::set_contents): Update.
1820 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1821
ade7beea
CB
18222019-11-05 Christian Biesinger <cbiesinger@google.com>
1823
1824 * symtab.h (gdb_static_assert): Put && operator at the beginning
1825 of the line instead of the end.
1826
3573abe1
CB
18272019-11-04 Christian Biesinger <cbiesinger@google.com>
1828
1829 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1830 and sizeof (symbol).
1831 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1832
dae8b3eb
RO
18332019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1834
1835 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1836 * configure.host: Mark *-*-solaris2.10* obsolete.
1837 * configure.tgt: Mark Solaris < 11 obsolete.
1838 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1839 Update target triplet.
1840
5df96a4e
TT
18412019-11-01 Tom Tromey <tromey@adacore.com>
1842
1843 * utils.c (print_sys_errmsg): Simplify.
1844
b7481649
TT
18452019-11-01 Tom Tromey <tromey@adacore.com>
1846
1847 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1848
e48f6033
CB
18492019-11-01 Christian Biesinger <cbiesinger@google.com>
1850
1851 * configure: Regenerate.
1852 * configure.ac: Remove check for strerror_r.
1853 * gdbsupport/common.m4: Check for strerror_r.
1854
bd5766ec
LM
18552019-11-01 Luis Machado <luis.machado@linaro.org>
1856
1857 PR gdb/25124
1858
1859 * arm-tdep.c (arm_per_objfile): Rename to ...
1860 (arm_per_bfd): ... this.
1861 (arm_objfile_data_key): Rename to ...
1862 (arm_bfd_data_key): ... this.
1863 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1864 data.
1865 (arm_record_special_symbol): Likewise.
1866
e1709896
AB
18672019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1868
1869 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1870 end.
1871 * c-typeprint.c (c_print_typedef): Likewise.
1872 * f-typeprint.c (f_print_typedef): Likewise.
1873 * m2-typeprint.c (m2_print_typedef): Likewise.
1874 * p-typeprint.c (pascal_print_typedef): Likewise.
1875 * rust-lang.c (rust_print_typedef): Likewise.
1876 * symtab.c (print_symbol_info): Print a newline after calling
1877 typedef_print.
1878
165f8965
AB
18792019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1880
1881 * symtab.c (info_module_cmdlist): New variable.
1882 (info_module_command): New function.
1883 (search_module_symbols): New function.
1884 (info_module_subcommand): New function.
1885 (struct info_modules_var_func_options): New struct.
1886 (info_modules_var_func_options_defs): New variable.
1887 (make_info_modules_var_func_options_def_group): New function.
1888 (info_module_functions_command): New function.
1889 (info_module_variables_command): New function.
1890 (info_module_var_func_command_completer): New function.
1891 (_initialize_symtab): Register new 'info module functions' and
1892 'info module variables' commands.
1893 * symtab.h (typedef symbol_search_in_module): New typedef.
1894 (search_module_symbols): Declare new function.
1895 * NEWS: Mention new commands.
1896
59c35742
AB
18972019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1898
1899 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1900 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1901 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1902 MODULES_DOMAIN.
1903 (scan_partial_symbols): Only create partial module symbols for non
1904 declarations.
1905 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1906 and MODULES_DOMAIN.
1907 * symtab.c (search_domain_name): Likewise.
1908 (search_symbols): Likewise.
1909 (print_symbol_info): Likewise.
1910 (symtab_symbol_info): Likewise.
1911 (info_modules_command): New function.
1912 (_initialize_symtab): Register 'info modules' command.
1913 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1914 * NEWS: Mention new 'info modules' command.
1915
aed61d02
PW
19162019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1917
1918 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1919 and $_gdb_maint_setting_str.
1920
9ad9b77d
PW
19212019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1922
1923 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1924 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1925 (str_value_from_setting, gdb_setting_str_internal_fn)
1926 (gdb_maint_setting_str_internal_fn): New functions.
1927 (_initialize_cli_cmds): Define the new convenience functions.
1928 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1929 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1930
8d6efaa2
CB
19312019-10-31 Christian Biesinger <cbiesinger@google.com>
1932
1933 * agent.c (set_can_use_agent): When the setting is turned on,
1934 look up agent symbols if we don't have them yet.
1935 (agent_new_objfile): Don't look up agent symbols when the agent
1936 setting is off.
1937
33cb1647
CB
19382019-10-31 Christian Biesinger <cbiesinger@google.com>
1939
1940 * config.in: Regenerate.
1941
b231e86a
CB
19422019-10-31 Christian Biesinger <cbiesinger@google.com>
1943
1944 * configure: Regenerate.
1945 * configure.ac: Check for strerror_r.
1946 * gdbsupport/common-utils.h (safe_strerror): Change return value
1947 to const char * and document that this function is now threadsafe.
1948 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1949 thread_local and call strerror_r, if available.
1950 * utils.c (perror_string): Update.
1951 (print_sys_errmsg): Update.
1952
a2726d4f
LM
19532019-10-31 Luis Machado <luis.machado@linaro.org>
1954
1955 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1956 objfile_key.
1957 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1958 objfile to fetch per-bfd data.
1959 (arm_find_exidx_entry): Likewise.
1960
75cafaa6
CB
19612019-10-31 Christian Biesinger <cbiesinger@google.com>
1962
1963 * gdbsupport/agent.c (debug_agent): Change type to bool.
1964 (use_agent): Likewise.
1965 (all_agent_symbols_look_up): Likewise.
1966 (agent_loaded_p): Change return value to bool.
1967 (agent_look_up_symbols): Update.
1968 (agent_capability_check): Change return value to bool.
1969 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1970 (debug_agent): Change type to bool.
1971 (use_agent): Likewise.
1972 (agent_capability_check): Change return value to bool.
1973
808590ec
CB
19742019-10-30 Christian Biesinger <cbiesinger@google.com>
1975
1976 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1977 (build_minimal_symbol_hash_tables): Code to clear the table moved
1978 to clear_minimal_symbol_hash_tables.
1979 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1980 when needed.
1981
f18ad8a1
SM
19822019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1983
1984 * infcmd.c: Remove includes.
1985 * infrun.c: Remove includes.
1986
de93309a
SM
19872019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1988
1989 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1990 (grow_vect): Remove declaration.
1991 (ada_type_of_array): Remove declaration.
1992 (ada_update_initial_language): Remove declaration.
1993 (ada_fold_name): Remove declaration.
1994 (ada_fill_in_ada_prototype): Remove declaration.
1995 (user_select_syms): Remove declaration.
1996 (get_selections): Remove declaration.
1997 (ada_tag_type): Remove declaration.
1998 (ada_value_tag): Remove declaration.
1999 (ada_is_others_clause): Remove declaration.
2000 (ada_in_variant): Remove declaration.
2001 (ada_value_struct_elt): Remove declaration.
2002 (ada_attribute_name): Remove declaration.
2003 (ada_system_address_type): Remove declaration.
2004 * ada-lang.c (ada_watch_location_expression): Make static.
2005 (GROW_VECT): Move here from ada-lang.h.
2006 (grow_vect): Make static.
2007 (ada_update_initial_language): Make static.
2008 (ada_fold_name): Make static.
2009 (ada_type_of_array): Make static.
2010 (encoded_ordered_before): Move up.
2011 (sort_choices): Move up.
2012 (print_signatures): Move up.
2013 (ada_print_symbol_signature): Move up.
2014 (get_selections): Move up and make static.
2015 (user_select_syms): Move up and make static.
2016 (ada_value_struct_elt): Move up and make static.
2017 (ada_tag_type): Make static.
2018 (ada_value_tag): Make static.
2019 (ada_is_others_clause): Make static.
2020 (ada_in_variant): Make static.
2021 (ada_attribute_name): Make static.
2022
cdc46a9f
SM
20232019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2024
2025 * ada-lang.c: Remove includes.
2026 * ada-typeprint.c: Remove includes.
2027 * ada-valprint.c: Remove includes.
2028
90421c56
SM
20292019-10-29 Simon Marchi <simon.marchi@efficios.com>
2030
2031 * addrmap.c: Add static assertions of type size, moved from
2032 _initialize_addrmap.
2033 (_initialize_addrmap): Remove.
2034
31edb802
CB
20352019-10-29 Christian Biesinger <cbiesinger@google.com>
2036
2037 * coffread.c (record_minimal_symbol): Update.
2038 (process_coff_symbol): Update.
2039 * dbxread.c (read_dbx_symtab): Update.
2040 * dwarf2read.c (add_partial_symbol): Update.
2041 (fixup_go_packaging): Update.
2042 (load_partial_dies): Update.
2043 (new_symbol): Update.
2044 * elfread.c (record_minimal_symbol): Change signature to use
2045 gdb::string_view instead of name+len.
2046 (elf_symtab_read): Update.
2047 (elf_rel_plt_read): Update.
2048 * mdebugread.c (parse_partial_symbols): Update.
2049 (handle_psymbol_enumerators): Update.
2050 (new_symbol): Update.
2051 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2052 to use gdb::string_view instead of name+len.
2053 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2054 * psympriv.h (add_psymbol_to_list): Likewise.
2055 * psymtab.c (add_psymbol_to_bcache): Likewise.
2056 (add_psymbol_to_list): Likewise.
2057 * stabsread.c (define_symbol): Update.
2058 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2059 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2060 (symbol_set_names): Likewise.
2061 * xcoffread.c (scan_xcoff_symtab): Update.
2062
0c921b21
CB
20632019-10-29 Christian Biesinger <cbiesinger@google.com>
2064
2065 * symtab.h (symbol_set_names): Document that copy_name must be
2066 set to true for non-nullterminated strings.
2067 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2068 linkage_name if the entry was not found and we need to demangle.
2069
35e65c49
CB
20702019-10-29 Christian Biesinger <cbiesinger@google.com>
2071
2072 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2073 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2074 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2075 * gdbsupport/gdb_binary_search.h: New file.
2076
ed2a2229
CB
20772019-10-29 Christian Biesinger <cbiesinger@google.com>
2078
2079 * NEWS: Mention new --with-system-gdbinit-dir option.
2080 * config.in: Regenerate.
2081 * configure: Regenerate.
2082 * configure.ac: Add new option --with-system-gdbinit-dir.
2083 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2084 for a ".gdb" suffix.
2085 * main.c (get_init_files): Change system_gdbinit argument to
2086 a vector and return the files in SYSTEM_GDBINIT_DIR in
2087 addition to SYSTEM_GDBINIT.
2088 (captured_main_1): Update.
2089 (print_gdb_help): Update.
2090 * top.c (print_gdb_configuration): Also print the value of
2091 SYSTEM_GDBINIT_DIR.
2092
87f34879
CB
20932019-10-28 Christian Biesinger <cbiesinger@google.com>
2094
2095 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2096 that takes gdb::string_view arguments.
2097
30baf67b
TV
20982019-10-26 Tom de Vries <tdevries@suse.de>
2099
2100 * aarch64-linux-tdep.c: Fix typos in comments.
2101 * aarch64-tdep.c: Same.
2102 * ada-lang.c: Same.
2103 * amd64-nat.c: Same.
2104 * arc-tdep.c: Same.
2105 * arch/aarch64-insn.c: Same.
2106 * block.c: Same.
2107 * breakpoint.h: Same.
2108 * btrace.h: Same.
2109 * c-varobj.c: Same.
2110 * cli/cli-decode.c: Same.
2111 * cli/cli-script.c: Same.
2112 * cli/cli-utils.h: Same.
2113 * coff-pe-read.c: Same.
2114 * coffread.c: Same.
2115 * compile/compile-cplus-symbols.c: Same.
2116 * compile/compile-object-run.c: Same.
2117 * completer.c: Same.
2118 * corelow.c: Same.
2119 * cp-support.c: Same.
2120 * demangle.c: Same.
2121 * dwarf-index-write.c: Same.
2122 * dwarf2-frame.c: Same.
2123 * dwarf2-frame.h: Same.
2124 * eval.c: Same.
2125 * frame-base.h: Same.
2126 * frame.h: Same.
2127 * gdbcmd.h: Same.
2128 * gdbtypes.h: Same.
2129 * gnu-nat.c: Same.
2130 * guile/scm-objfile.c: Same.
2131 * i386-tdep.c: Same.
2132 * i386-tdep.h: Same.
2133 * infcall.c: Same.
2134 * infcall.h: Same.
2135 * linux-nat.c: Same.
2136 * m68k-tdep.c: Same.
2137 * macroexp.c: Same.
2138 * memattr.c: Same.
2139 * mi/mi-cmd-disas.c: Same.
2140 * mi/mi-getopt.h: Same.
2141 * mi/mi-main.c: Same.
2142 * minsyms.c: Same.
2143 * nat/aarch64-sve-linux-sigcontext.h: Same.
2144 * objfiles.h: Same.
2145 * ppc-linux-nat.c: Same.
2146 * ppc-linux-tdep.c: Same.
2147 * ppc-tdep.h: Same.
2148 * progspace.h: Same.
2149 * prologue-value.h: Same.
2150 * python/py-evtregistry.c: Same.
2151 * python/py-instruction.h: Same.
2152 * record-btrace.c: Same.
2153 * record-full.c: Same.
2154 * remote.c: Same.
2155 * rs6000-tdep.c: Same.
2156 * ser-tcp.c: Same.
2157 * sol-thread.c: Same.
2158 * sparc-sol2-tdep.c: Same.
2159 * sparc64-tdep.c: Same.
2160 * stabsread.c: Same.
2161 * symfile.c: Same.
2162 * symtab.h: Same.
2163 * target.c: Same.
2164 * tracepoint.c: Same.
2165 * tui/tui-data.h: Same.
2166 * tui/tui-io.c: Same.
2167 * tui/tui-win.c: Same.
2168 * tui/tui.c: Same.
2169 * unittests/rsp-low-selftests.c: Same.
2170 * user-regs.h: Same.
2171 * utils.c: Same.
2172 * utils.h: Same.
2173 * valarith.c: Same.
2174 * valops.c: Same.
2175 * valprint.c: Same.
2176 * valprint.h: Same.
2177 * value.c: Same.
2178 * value.h: Same.
2179 * varobj.c: Same.
2180 * x86-nat.h: Same.
2181 * xtensa-tdep.c: Same.
2182
1834d45f
AT
21832019-10-25 Ali Tamur <tamur@google.com>
2184
2185 * charset.c (find_charset_names): Reflect API change.
2186
5396ae17
CB
21872019-10-25 Christian Biesinger <cbiesinger@google.com>
2188
2189 * symtab.c (struct demangled_name_entry): Change demangled name
2190 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2191 part of the struct anymore.
2192 (symbol_set_names): No longer obstack allocate + copy the demangled
2193 name, just store the allocated name from bfd.
2194
93878f47
TT
21952019-10-25 Tom Tromey <tromey@adacore.com>
2196
2197 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2198 (bsearch_cie_cmp, add_cie): Remove.
2199 (find_cie): Reimplement.
2200 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2201 (dwarf2_build_frame_info): Update.
2202
7b71fc97
L
22032019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2204
2205 PR gdb/25126
2206 * symfile.c (reread_symbols): Call forget_cached_source_info to
2207 clear the stale source cache.
2208
cbb5a2ea
CB
22092019-10-24 Christian Biesinger <cbiesinger@google.com>
2210
2211 * configure: Regenerate.
2212 * configure.ac: Remove code that sets python_has_threads.
2213
71737c43
CB
22142019-10-24 Christian Biesinger <cbiesinger@google.com>
2215
2216 * config.in: Regenerate.
2217 * configure: Regenerate.
2218 * configure.ac: Remove the code that uses sed to get the python
2219 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2220
33d569b7
AB
22212019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2222
2223 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2224 error paths.
2225
f16f7b7c
TT
22262019-10-23 Tom Tromey <tom@tromey.com>
2227
2228 * arc-tdep.c: Remove ".." from include.
2229 * frv-tdep.c: Remove ".." from include.
2230 * lm32-tdep.c: Remove ".." from include.
2231 * microblaze-tdep.c: Remove ".." from include.
2232 * or1k-tdep.h: Remove ".." from include.
2233 * s12z-tdep.c: Remove ".." from include.
2234 * Makefile.in (OPCODES_CFLAGS): Add comment.
2235 (TOP_CFLAGS): New variable.
2236 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2237
6999161a
TT
22382019-10-23 Tom Tromey <tom@tromey.com>
2239
2240 * Makefile.in (READLINE_DIR): Update.
2241
12e7c35e
TBA
22422019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2243
2244 * infcall.c (call_function_by_hand_dummy): Fix the function
2245 comment. And extract out a code section into...
2246 (reserve_stack_space): ...this new function.
2247
37055cad
TBA
22482019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2249
2250 * infcall.c (value_arg_coerce): Remove an unused parameter.
2251 (call_function_by_hand_dummy): Update the call to
2252 'value_arg_coerce'.
2253
39bcc47c
TBA
22542019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2255
2256 * infcall.c (call_function_by_hand_dummy): Refactor.
2257
bd888c0f
TBA
22582019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2259
2260 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2261
c12d372d
TT
22622019-10-23 Tom Tromey <tom@tromey.com>
2263
2264 * configure: Rebuild.
2265 * configure.ac: Don't check for sigprocmask.
2266 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2267
4d0b984b
TT
22682019-10-23 Tom Tromey <tom@tromey.com>
2269
2270 * configure: Rebuild.
2271 * acinclude.m4: Use m4_include, not sinclude.
2272
7e785608
TV
22732019-10-23 Tom de Vries <tdevries@suse.de>
2274
2275 PR breakpoints/24687
2276 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2277
403772ef
CB
22782019-10-22 Christian Biesinger <cbiesinger@google.com>
2279
2280 * symtab.c (struct demangled_name_entry) <language>: Change from
2281 bitfield to regular variable.
2282
3a494279
CB
22832019-10-22 Christian Biesinger <cbiesinger@google.com>
2284
2285 * symtab.c (struct demangled_name_entry): Add a constructor.
2286 (free_demangled_name_entry): New function to call the destructor
2287 for demangled_name_entry.
2288 (create_demangled_names_hash): Pass free_demangled_name_entry to
2289 htab_create_alloc.
2290 (symbol_set_names): Call placement new for demangled_name_entry.
2291 * utils.c: No longer include xxhash.h here, now that fast_hash
2292 is inlined in the header.
2293 * utils.h: Instead, include it here.
2294
ccb1ba62
CB
22952019-10-22 Christian Biesinger <cbiesinger@google.com>
2296
2297 * Makefile.in: Link with libxxhash.
2298 * config.in: Regenerate.
2299 * configure: Regenerate.
2300 * configure.ac: Search for libxxhash.
2301 * utils.c (fast_hash): Use xxhash if present.
2302
1a6ff1a9
CB
23032019-10-22 Christian Biesinger <cbiesinger@google.com>
2304
2305 * utils.h (fast_hash): New function.
2306 * symtab.c (hash_demangled_name_entry): Call new function
2307 fast_hash.
2308
7bb43059
CB
23092019-10-22 Christian Biesinger <cbiesinger@google.com>
2310
2311 * symtab.c (struct demangled_name_entry): Change type of mangled
2312 to gdb::string_view. Also adds a constructor that takes the
2313 mangled name.
2314 (hash_demangled_name_entry): Update.
2315 (eq_demangled_name_entry): Update.
2316 (free_demangled_name_entry): New function to call the destructor
2317 now that this is not a POD anymore.
2318 (create_demangled_names_hash): Pass free_demangled_name_entry to
2319 htab_create_alloc.
2320 (symbol_set_names): Update.
2321
7ba99d21
AT
23222019-10-21 Ali Tamur <tamu@google.com>
2323
2324 * dwarf2read.c (dir_index): Change type.
2325 (file_name_index): Likewise.
2326 (line_header::include_dir_at): Change comment and implementation on
2327 whether it is DWARF 5.
2328 (line_header::is_valid_file_index): New function.
2329 (line_header::file_name_at): Change comment and implementation on
2330 whether it is DWARF 5.
2331 (line_header::file_names): Change to private field renamed as
2332 m_file_names and introduce a new accessor method.
2333 (line_header::file_names_size): New method.
2334 (line_header::include_dirs): Change to private field and rename as
2335 m_include_dirs.
2336 (dw2_get_file_names_reader): Define local var at a smaller scope and
2337 reflect API change.
2338 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2339 (process_structure_scope): Likewise.
2340 (line_header::add_include_dir): Change message and reflect renaming.
2341 (line_header::add_file_name): Likewise.
2342 (read_formatted_entries): Handle DW_FORM_data16.
2343 (dwarf_decode_line_header): Fix line header length calculation.
2344 (psymtab_include_file_name): Change comment and API.
2345 (lnp_state_machine::m_file): Update comment and reflect type change.
2346 (lnp_state_machine::record_line): Reflect type change.
2347 (dwarf_decode_lines): Reflect API change.
2348 (file_file_name): Likewise.
2349 (file_full_name): Likewise.
2350
45f47c3a
AB
23512019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2352
2353 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2354
e5f3c0e3
TT
23552019-10-21 Tom Tromey <tom@tromey.com>
2356
2357 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2358
a0a461e5
TT
23592019-10-21 Tom Tromey <tom@tromey.com>
2360
2361 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2362 NM_H. Use AC_CONFIG_LINKS.
2363 * configure: Rebuild.
2364 * Makefile.in (NM_H): New variable.
2365 (generated_files): Add NM_H. Remove gcore.
2366 (nm.h, stamp-nmh): New targets.
2367
54d83b8d
TT
23682019-10-20 Tom Tromey <tom@tromey.com>
2369
2370 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2371 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2372 obsolete comment.
2373 (put_objfile_before): Now static.
2374
23771117
SM
23752019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2376
2377 * gdbsupport/common-utils.h (startswith): Change return type to
2378 bool.
2379
39ef2f62
CB
23802019-10-19 Christian Biesinger <cbiesinger@google.com>
2381
2382 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2383 * breakpoint.c (bp_locations_compare): Rename to...
2384 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2385 (update_global_location_list): Use std::sort instead of qsort.
2386 * buildsym.c (compare_line_numbers): Rename to...
2387 (lte_is_less_than): ...this, and change to std::sort semantics.
2388 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2389 instead of qsort.
2390 * disasm.c (compare_lines): Rename to...
2391 (line_is_less_than): ...this, and change to std::sort semantics.
2392 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2393 of qsort.
2394 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2395 (fde_is_less_than): ...this, and change to std::sort semantics.
2396 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2397 * mdebugread.c (compare_blocks):
2398 (block_is_less_than): ...this, and change to std::sort semantics.
2399 (sort_blocks): Call std::sort instead of qsort.
2400 * objfiles.c (qsort_cmp): Rename to...
2401 (sort_cmp): ...this, and change to std::sort semantics.
2402 (update_section_map): Call std::sort instead of qsort.
2403 * remote.c (compare_pnums): Remove.
2404 (map_regcache_remote_table): Call std::sort instead of qsort.
2405 * utils.c (compare_positive_ints): Remove.
2406 * utils.h (compare_positive_ints): Remove.
2407 * xcoffread.c (compare_lte): Remove.
2408 (arrange_linetable): Call std::sort instead of qsort.
2409
f71433ee
SDJ
24102019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2411
2412 * symfile.c (init_entry_point_info): Fix typo.
2413 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2414
85102364
TV
24152019-10-18 Tom de Vries <tdevries@suse.de>
2416
2417 * aarch64-tdep.c: Fix typos in comments.
2418 * ada-lang.c: Same.
2419 * ada-tasks.c: Same.
2420 * alpha-tdep.c: Same.
2421 * alpha-tdep.h: Same.
2422 * amd64-nat.c: Same.
2423 * amd64-windows-tdep.c: Same.
2424 * arc-tdep.c: Same.
2425 * arc-tdep.h: Same.
2426 * arch-utils.c: Same.
2427 * arm-nbsd-tdep.c: Same.
2428 * arm-tdep.c: Same.
2429 * ax-gdb.c: Same.
2430 * blockframe.c: Same.
2431 * btrace.c: Same.
2432 * c-varobj.c: Same.
2433 * coff-pe-read.c: Same.
2434 * coffread.c: Same.
2435 * cris-tdep.c: Same.
2436 * darwin-nat.c: Same.
2437 * dbxread.c: Same.
2438 * dcache.c: Same.
2439 * disasm.c: Same.
2440 * dtrace-probe.c: Same.
2441 * dwarf-index-write.c: Same.
2442 * dwarf2-frame-tailcall.c: Same.
2443 * dwarf2-frame.c: Same.
2444 * dwarf2read.c: Same.
2445 * eval.c: Same.
2446 * exceptions.c: Same.
2447 * fbsd-tdep.c: Same.
2448 * findvar.c: Same.
2449 * frame.c: Same.
2450 * frv-tdep.c: Same.
2451 * gnu-v3-abi.c: Same.
2452 * go32-nat.c: Same.
2453 * h8300-tdep.c: Same.
2454 * hppa-tdep.c: Same.
2455 * i386-linux-tdep.c: Same.
2456 * i386-tdep.c: Same.
2457 * ia64-libunwind-tdep.c: Same.
2458 * ia64-tdep.c: Same.
2459 * infcmd.c: Same.
2460 * infrun.c: Same.
2461 * linespec.c: Same.
2462 * linux-nat.c: Same.
2463 * linux-thread-db.c: Same.
2464 * machoread.c: Same.
2465 * mdebugread.c: Same.
2466 * mep-tdep.c: Same.
2467 * mn10300-tdep.c: Same.
2468 * namespace.c: Same.
2469 * objfiles.c: Same.
2470 * opencl-lang.c: Same.
2471 * or1k-tdep.c: Same.
2472 * osabi.c: Same.
2473 * ppc-linux-nat.c: Same.
2474 * ppc-linux-tdep.c: Same.
2475 * ppc-sysv-tdep.c: Same.
2476 * printcmd.c: Same.
2477 * procfs.c: Same.
2478 * record-btrace.c: Same.
2479 * record-full.c: Same.
2480 * remote-fileio.c: Same.
2481 * remote.c: Same.
2482 * rs6000-tdep.c: Same.
2483 * s12z-tdep.c: Same.
2484 * score-tdep.c: Same.
2485 * ser-base.c: Same.
2486 * ser-go32.c: Same.
2487 * skip.c: Same.
2488 * sol-thread.c: Same.
2489 * solib-svr4.c: Same.
2490 * solib.c: Same.
2491 * source.c: Same.
2492 * sparc-nat.c: Same.
2493 * sparc-sol2-tdep.c: Same.
2494 * sparc-tdep.c: Same.
2495 * sparc64-tdep.c: Same.
2496 * stabsread.c: Same.
2497 * stack.c: Same.
2498 * symfile.c: Same.
2499 * symtab.c: Same.
2500 * target-descriptions.c: Same.
2501 * target-float.c: Same.
2502 * thread.c: Same.
2503 * utils.c: Same.
2504 * valops.c: Same.
2505 * valprint.c: Same.
2506 * value.c: Same.
2507 * varobj.c: Same.
2508 * windows-nat.c: Same.
2509 * xcoffread.c: Same.
2510 * xstormy16-tdep.c: Same.
2511 * xtensa-tdep.c: Same.
2512
c5adaa19
TT
25132019-10-17 Tom Tromey <tromey@adacore.com>
2514
2515 * configure: Rebuild.
2516 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2517 in AC_CONFIG_FILES invocation.
2518 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2519 new-style config.status invocation.
2520
405feb71
TV
25212019-10-17 Tom de Vries <tdevries@suse.de>
2522
2523 * arm-nbsd-nat.c: Fix typos in comments.
2524 * arm-tdep.c: Same.
2525 * darwin-nat-info.c: Same.
2526 * dwarf2read.c: Same.
2527 * elfread.c: Same.
2528 * event-top.c: Same.
2529 * findvar.c: Same.
2530 * gdbtypes.c: Same.
2531 * hppa-tdep.c: Same.
2532 * i386-tdep.c: Same.
2533 * jit.c: Same.
2534 * main.c: Same.
2535 * mdebugread.c: Same.
2536 * moxie-tdep.c: Same.
2537 * nto-procfs.c: Same.
2538 * osabi.c: Same.
2539 * ppc-linux-tdep.c: Same.
2540 * remote.c: Same.
2541 * riscv-tdep.c: Same.
2542 * s390-tdep.c: Same.
2543 * sh-tdep.c: Same.
2544 * sparc-linux-tdep.c: Same.
2545 * sparc-nat.c: Same.
2546 * stack.c: Same.
2547 * target-descriptions.c: Same.
2548 * top.c: Same.
2549 * varobj.c: Same.
2550
befcd486
TT
25512019-10-16 Tom Tromey <tom@tromey.com>
2552
2553 * objfiles.h (struct objfile) <original_name>: Now const.
2554
17bfe554
CB
25552019-10-16 Christian Biesinger <cbiesinger@google.com>
2556
2557 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2558 pass on to sigsetjmp's second argument.
2559 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2560
950b7495
KS
25612019-10-16 Keith Seitz <keiths@redhat.com>
2562
2563 PR gdb/23567
2564 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2565 sections whose size is greater than the file size.
2566
ff371ec9
JW
25672019-10-16 Jim Wilson <jimw@sifive.com>
2568
2569 * riscv-tdep.c (riscv_gcc_target_options): New.
2570 (riscv_gnu_triplet_regexp): New.
2571 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2572 set_gdbarch_gnu_triplet_regexp.
2573
fec4e896
CB
25742019-10-16 Christian Biesinger <cbiesinger@google.com>
2575
2576 * Makefile.in: Add xml-builtin.h.
2577 * features/feature_to_c.sh: Add an include for xml-builtin.h
2578 to ensure that the compiler checks that the types match.
2579 * xml-builtin.h: New file.
2580 * xml-support.c (fetch_xml_builtin): Add missing const.
2581 * xml-support.h: Remove declaration of xml_builtins.
2582
d10eccaa
TV
25832019-10-16 Tom de Vries <tdevries@suse.de>
2584
2585 PR tdep/25096
2586 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2587 (amd64_classify_aggregate): ... here.
2588 (amd64_classify_aggregate_field): Handled fiels of nested structs
2589 recursively.
2590
745ff14e
TV
25912019-10-16 Tom de Vries <tdevries@suse.de>
2592
2593 PR tdep/24104
2594 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2595 that handles 'theclass'.
2596
791b7405
AB
25972019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2598
2599 * linespec.c (decode_digits_ordinary): Update comment.
2600 * make-target-delegates: No longer need to handle VEC case.
2601 * memrange.c (normalize_mem_ranges): Update comment.
2602 * namespace.c (add_using_directive): Update comment.
2603 * objc-lang.c (uniquify_strings): Update comment.
2604 * ppc-linux-nat.c (struct thread_points): Update comment.
2605 * probe.h (find_probes_in_objfile): Update comment.
2606 * target.h (enum flash_preserve_mode): Update comment.
2607 * varobj.c (varobj_restrict_range): Update comment.
2608 * varobj.h (varobj_list_children): Update comment.
2609
0dc32745
AB
26102019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2611
2612 * Makefile.in: Remove references to vec.h and vec.c.
2613 * aarch64-tdep.c: No longer include vec.h.
2614 * ada-lang.c: Likewise.
2615 * ada-lang.h: Likewise.
2616 * arm-tdep.c: Likewise.
2617 * ax.h: Likewise.
2618 * breakpoint.h: Likewise.
2619 * charset.c: Likewise.
2620 * cp-support.h: Likewise.
2621 * dtrace-probe.c: Likewise.
2622 * dwarf2read.c: Likewise.
2623 * extension.h: Likewise.
2624 * gdb_bfd.c: Likewise.
2625 * gdbsupport/gdb_vecs.h: Likewise.
2626 * gdbsupport/vec.c: Remove.
2627 * gdbsupport/vec.h: Remove.
2628 * gdbthread.h: Likewise.
2629 * guile/scm-type.c: Likewise.
2630 * inline-frame.c: Likewise.
2631 * machoread.c: Likewise.
2632 * memattr.c: Likewise.
2633 * memrange.h: Likewise.
2634 * namespace.h: Likewise.
2635 * nat/linux-btrace.h: Likewise.
2636 * osdata.c: Likewise.
2637 * parser-defs.h: Likewise.
2638 * progspace.h: Likewise.
2639 * python/py-type.c: Likewise.
2640 * record-btrace.c: Likewise.
2641 * rust-exp.y: Likewise.
2642 * solib-target.c: Likewise.
2643 * stap-probe.c: Likewise.
2644 * target-descriptions.c: Likewise.
2645 * target-memory.c: Likewise.
2646 * target.h: Likewise.
2647 * varobj.c: Likewise.
2648 * varobj.h: Likewise.
2649 * xml-support.h: Likewise.
2650
ae640021
AB
26512019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2652
2653 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2654 Update for new std::vector based implementation.
2655 (process_psymtab_comp_unit_reader): Likewise.
2656 (scan_partial_symbols): Likewise.
2657 (recursively_compute_inclusions): Likewise.
2658 (compute_compunit_symtab_includes): Likewise.
2659 (process_imported_unit_die): Likewise.
2660 (queue_and_load_dwo_tu): Likewise.
2661 (follow_die_sig_1): Likewise.
2662 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2663 (typedef dwarf2_per_cu_ptr): Remove.
2664 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2665 function.
2666 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2667 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2668 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2669 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2670 std::vector.
2671
55dfc88f
TT
26722019-10-15 Tom Tromey <tromey@adacore.com>
2673
2674 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2675 TID.
2676
96b49c5e
TT
26772019-10-15 Tom Tromey <tromey@adacore.com>
2678
2679 * windows-nat.c (windows_nat_target::fetch_registers)
2680 (windows_nat_target::store_registers): Rename "pid" to "tid".
2681
953cff56
TT
26822019-10-15 Tom Tromey <tromey@adacore.com>
2683
2684 * gdbarch.h, gdbarch.c: Rebuild.
2685 * gdbarch.sh (gcc_target_options): Change return type to
2686 std::string.
2687 * compile/compile.c (get_args): Update.
2688 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2689 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2690 std::string.
2691 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2692 std::string.
2693 * arch-utils.c (default_gcc_target_options): Return std::string.
2694 * arch-utils.h (default_gcc_target_options): Return std::string.
2695 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2696
81e6b8eb
CB
26972019-10-15 Christian Biesinger <cbiesinger@google.com>
2698
2699 * breakpoint.c (breakpoint_chain): Make static.
2700 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2701 of accessing breakpoint_chain.
2702
95da600f
CB
27032019-10-15 Christian Biesinger <cbiesinger@google.com>
2704
2705 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2706 to a gdb::function_view and return value to bool.
2707 * breakpoint.h (iterate_over_breakpoints): Likewise.
2708 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2709 (pop_dummy_frame): Update.
2710 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2711 (gdbscm_breakpoints): Update.
2712 * python/py-breakpoint.c (build_bp_list): Update.
2713 (gdbpy_breakpoints): Update.
2714 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2715 Update.
2716 (bpfinishpy_handle_stop): Update.
2717 (bpfinishpy_handle_exit): Update.
2718 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2719 (svr4_update_solib_event_breakpoints): Update.
2720
ba18312d
AA
27212019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2722
2723 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2724 when unwrapping single-field structs.
2725
6acc1a0b
SM
27262019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2727
2728 * dwarf2read.c: Remove includes.
2729
284782de
SM
27302019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2731
2732 * ui-out.c (ui_out::call_do_message): Silence
2733 -Wformat-nonliteral warning.
2734
073bbbb0
SM
27352019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2738 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2739 include: readline/tilde.h.
2740
7b9a15e1
CB
27412019-10-12 Christian Biesinger <cbiesinger@google.com>
2742
2743 * remote.c (remote_target::get_trace_status): Remove declaration of
2744 trace_regblock_size.
2745
cc8dee1f
CB
27462019-10-12 Christian Biesinger <cbiesinger@google.com>
2747
2748 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2749 (show_user): Remove declaration of cmdlist.
2750 * cli/cli-cmds.h (max_user_call_depth): Declare.
2751 * cli/cli-script.c (execute_user_command): Remove declaration
2752 of max_user_call_depth.
2753
a83d4ef6
JW
27542019-10-11 Jim Wilson <jimw@sifive.com>
2755
5f93c5a6
JW
2756 * gdbsupport/print-utils.h (pulongest): Fix comment.
2757 (plongest): Likewise.
2758 (phex): Add missing comment, mention leading zeros.
2759 (phex_nz): Add mention of no leading zeros to comment.
2760
a83d4ef6
JW
2761 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2762 plongest instead of unsigned long long cast.
2763
26344e0c
CB
27642019-10-10 Christian Biesinger <cbiesinger@google.com>
2765
2766 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2767 for external_editor_command and gdbtk_test.
2768
c2c440a9
CB
27692019-10-10 Christian Biesinger <cbiesinger@google.com>
2770
2771 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2772 * varobj.c (varobjdebug): Move comment to...
2773 * varobj.h (varobjdebug): ...here, and declare.
2774
a31bff9d
TT
27752019-10-09 Tom Tromey <tom@tromey.com>
2776
2777 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2778 erase_data_content.
2779
7523da63
TT
27802019-10-09 Tom Tromey <tom@tromey.com>
2781
2782 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2783 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2784 * tui/tui-command.c (tui_cmd_window::resize)
2785 (tui_refresh_cmd_win): Update.
2786 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2787 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2788 * tui/tui-data.c (~tui_gen_win_info): Remove.
2789 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2790 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2791 (tui_redisplay_readline, tui_mld_flush)
2792 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2793 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2794 (tui_data_window::erase_data_content)
2795 (tui_data_item_window::rerender)
2796 (tui_data_item_window::refresh_window): Update.
2797 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2798 (box_win, tui_gen_win_info::make_window)
2799 (tui_gen_win_info::make_visible): Update.
2800 (tui_delete_win): Remove.
2801 * tui/tui-winsource.c
2802 (tui_source_window_base::do_erase_source_content): Update.
2803 (tui_show_source_line, tui_source_window_base::update_tab_width)
2804 (tui_source_window_base::update_exec_info): Update.
2805 * tui/tui-data.h (struct curses_deleter): New.
2806 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2807 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2808
a7798e7f
TT
28092019-10-09 Tom Tromey <tom@tromey.com>
2810
2811 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2812
5c45899e
TT
28132019-10-09 Tom Tromey <tom@tromey.com>
2814
2815 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2816 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2817
6d7fd9aa
TT
28182019-10-09 Tom Tromey <tom@tromey.com>
2819
2820 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2821 window height directly.
2822 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2823 declare.
2824 * tui/tui-layout.c (tui_default_win_height): Remove.
2825 (tui_default_win_viewport_height): Remove.
2826
d2dd1084
TT
28272019-10-09 Tom Tromey <tom@tromey.com>
2828
2829 * tui/tui.h: Remove comments.
2830
cff32449
TV
28312019-10-09 Tom de Vries <tdevries@suse.de>
2832
2833 * python/lib/gdb/printer/bound_registers.py: Use
2834 '^builtin_type_bound128' as regexp argument for
2835 add_builtin_pretty_printer.
2836
6a25e8a2
CB
28372019-10-09 Christian Biesinger <cbiesinger@google.com>
2838
2839 * guile/guile.c (guile_extension_script_ops): Remove forward
2840 declaration and mark as static.
2841 (guile_script_ops): Likewise.
2842 (extension_language_guile): Move further down in the file so
2843 it can reference the definitions for guile_{extension_,}script_ops.
2844
6d9d6da4
AA
28452019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2846
2847 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2848 except SORTL, DFLTCC, and KDSA.
2849
3abea05d
TT
28502019-10-08 Tom Tromey <tromey@adacore.com>
2851
2852 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2853 (struct safe_symbol_file_add_args): Remove.
2854
dde996e2
TT
28552019-10-08 Tom Tromey <tromey@adacore.com>
2856
2857 * windows-nat.c: Don't include buildsym-legacy.h.
2858
cd6fdaa1
TT
28592019-10-08 Tom Tromey <tromey@adacore.com>
2860
2861 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2862
79bb1944
CB
28632019-10-08 Christian Biesinger <cbiesinger@google.com>
2864
2865 * gdbtypes.c (overload_debug): Move comment to header.
2866 * gdbtypes.h (overload_debug): Declare.
2867 * valops.c: Remove declaration of overload_debug, instead
2868 include gdbtypes.h.
2869
34916edc
CB
28702019-10-08 Christian Biesinger <cbiesinger@google.com>
2871
2872 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2873 through _().
2874 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2875 move comment...
2876 * language.h (lang_frame_mismatch_warn): ... here. Also add
2877 declaration.
2878 * top.c (lang_frame_mismatch_warn): Remove declaration.
2879 (check_frame_language_change): Pass lang_frame_mismatch_warn
2880 through _().
2881
bad5c026
CB
28822019-10-07 Christian Biesinger <cbiesinger@google.com>
2883
2884 * c-lang.h (vtbl_ptr_name): Declare.
2885 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2886 it from the header.
2887 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2888
51f1fdc3
CB
28892019-10-07 Christian Biesinger <cbiesinger@google.com>
2890
2891 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2892 gdb_static_assert.
2893
30d1f018
WP
28942019-10-07 Weimin Pan <weimin.pan@oracle.com>
2895
606813d5
WP
2896 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2897 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2898 * ctfread.c: New file.
2899 * ctfread.h: New file.
2900 * elfread.c: Include ctfread.h.
2901 (struct elfinfo text_p): New member ctfsect.
2902 (elf_locate_sections): Mark CTF section.
2903 (elf_symfile_read): Call elfctf_build_psymtabs.
2904 * Makefile.in (LIBCTF): Add.
2905 (CLIBS): Use it.
2906 (CDEPS): Likewise.
2907 (DIST): Add ctfread.c.
606813d5
WP
2908
29092019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * ctfread.c (struct nextfield): Renamed to ...
2912 (struct ctf_nextfield): ... this.
2913 (struct field_info): Renamed to ...
2914 (strut ctf_field_info): ... this.
2915 (attach_fields_to_type): Update for renamed structures.
2916 (ctf_add_member_cb): Likewise.
2917 (ctf_add_enum_member_cb): Likewise.
2918 (process_struct_members): Likewise.
2919 (process_enum_type): Likewise.
30d1f018 2920
518fe38c
WP
29212019-10-07 Weimin Pan <weimin.pan@oracle.com>
2922
2923 * tracectf.h: Rename, was ctf.h.
2924 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2925 * tracefile.c: Likewise.
2926 * tracepoint.c: Remove unused include ctf.h.
2927 * mi/mi-main.c: Likewise.
2928 * Makefile.in Replace ctf.c with tracectf.c.
2929
225f296a
JB
29302019-10-06 Joel Brobecker <brobecker@adacore.com>
2931
2932 * version.in: Change version number to "9.0.50.DATE-git".
2933
77c2dba3
TT
29342019-10-03 Tom Tromey <tom@tromey.com>
2935
2936 PR rust/24976:
2937 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2938
179aed7f
AB
29392019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2940
2941 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2942 cp_search_name_hash.
2943 * NEWS: Add entry about nested function support.
2944
0a4b0913
AB
29452019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2946 Andrew Burgess <andrew.burgess@embecosm.com>
2947
2948 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2949 for nested static variables when searchin VAR_DOMAIN.
2950 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2951 global scope, update comment.
2952 (add_partial_subprogram): Call add_partial_subprogram recursively
2953 for nested subroutines when processinng Fortran.
2954 (load_partial_dies): Process the child entities of a subprogram
2955 when processing Fortran.
2956 (partial_die_parent_scope): Handle building scope
2957 for Fortran nested functions.
2958 (process_die): Record that nested functions have a scope.
2959 (new_symbol): Always record Fortran subprograms on the global
2960 symbol list.
2961 (determine_prefix): How to build the prefix for Fortran
2962 subprograms.
2963
d8c06f22
AB
29642019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2967 have just sent the thread a SIGSTOP and are waiting for it to
2968 arrive.
2969
a8b3b8e9
AB
29702019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2971
2972 * btrace.c (btrace_add_pc): Remove whitespace before the template
2973 parameter in 'std::vector <...>'.
2974 (parse_xml_btrace_block): Likewise.
2975 (btrace_maint_decode_pt): Likewise.
2976 (btrace_maint_update_packets): Likewise.
2977 (btrace_maint_print_packets): Likewise.
2978 * btrace.h (struct btrace_maint_info): Likewise.
2979 * dwarf2read.c (struct type_unit_group): Likewise.
2980 (build_type_psymtabs_reader): Likewise.
2981 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2982 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2983 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2984
4d825eab
TV
29852019-10-03 Tom de Vries <tdevries@suse.de>
2986
2987 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2988 the first line of the help text for set/show style metadata.
2989
80fd2826
TT
29902019-10-02 Tom Tromey <tromey@adacore.com>
2991
2992 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2993 * gdbsupport/common-inferior.c: New file.
2994 * infcmd.c (startup_with_shell): Don't define.
2995 * nat/fork-inferior.h (startup_with_shell): Don't declare.
2996 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
2997 * inferior.h (startup_with_shell): Don't declare.
2998
70054538
CB
29992019-10-02 Christian Biesinger <cbiesinger@google.com>
3000
3001 * gdbsupport/gdb_assert.h: Include errors.h.
3002 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3003
37f6a7f4
TT
30042019-10-02 Tom Tromey <tromey@adacore.com>
3005
3006 * NEWS: Add $_ada_exception entry.
3007 * ada-lang.c (struct ada_catchpoint): Add constructor.
3008 <m_kind>: New member.
3009 (allocate_location_exception, re_set_exception): Remove
3010 "ex" parameter.
3011 (should_stop_exception): Compute $_ada_exception.
3012 (check_status_exception, print_it_exception)
3013 (print_one_exception, print_mention_exception): Remove
3014 "ex" parameter.
3015 (allocate_location_catch_exception, re_set_catch_exception)
3016 (check_status_exception, print_it_catch_exception)
3017 (print_one_catch_exception, print_mention_catch_exception)
3018 (print_recreate_catch_exception)
3019 (allocate_location_catch_exception_unhandled)
3020 (re_set_catch_exception_unhandled)
3021 (check_status_exception, print_it_catch_exception_unhandled)
3022 (print_one_catch_exception_unhandled)
3023 (print_mention_catch_exception_unhandled)
3024 (print_recreate_catch_exception_unhandled)
3025 (allocate_location_catch_assert, re_set_catch_assert)
3026 (check_status_assert, print_it_catch_assert)
3027 (print_one_catch_assert, print_mention_catch_assert)
3028 (print_recreate_catch_assert)
3029 (allocate_location_catch_handlers, re_set_catch_handlers)
3030 (check_status_handlers, print_it_catch_handlers)
3031 (print_one_catch_handlers, print_mention_catch_handlers)
3032 (print_recreate_catch_handlers): Remove.
3033 (create_ada_exception_catchpoint): Update.
3034 (initialize_ada_catchpoint_ops): Update.
3035
fccf9de1
TT
30362019-10-02 Tom Tromey <tromey@adacore.com>
3037
3038 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3039 (create_excep_cond_exprs): Simplify exception string computation.
3040 (ada_exception_catchpoint_cond_string): Likewise.
3041
4b610737
TT
30422019-10-02 Tom Tromey <tromey@adacore.com>
3043
3044 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3045 * ada-lang.c (lesseq_defined_than): Handle
3046 LOC_STATIC.
3047 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3048 parameter.
3049 (dwarf2_has_info): Likewise.
3050 (new_symbol): Set maybe_copied on symbol when
3051 appropriate.
3052 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3053 parameter.
3054 <can_copy>: New member.
3055 * elfread.c (record_minimal_symbol): Set maybe_copied
3056 on symbol when appropriate.
3057 (elf_symfile_read): Update call to dwarf2_has_info.
3058 * minsyms.c (lookup_minimal_symbol_linkage): New
3059 function.
3060 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3061 * symtab.c (get_symbol_address, get_msymbol_address):
3062 New functions.
3063 * symtab.h (get_symbol_address, get_msymbol_address):
3064 Declare.
3065 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3066 maybe_copied.
3067 (struct symbol, struct minimal_symbol) <maybe_copied>:
3068 New member.
3069
1dd58850
TT
30702019-10-02 Tom Tromey <tromey@adacore.com>
3071
3072 * source.c (struct current_source_location): New.
3073 (current_source_key): New global.
3074 (current_source_symtab, current_source_line)
3075 (current_source_pspace): Remove.
3076 (get_source_location): New function.
3077 (get_current_source_symtab_and_line)
3078 (set_default_source_symtab_and_line)
3079 (set_current_source_symtab_and_line)
3080 (clear_current_source_symtab_and_line, select_source_symtab)
3081 (info_source_command, print_source_lines_base)
3082 (info_line_command, search_command_helper, _initialize_source):
3083 Update.
3084
5c281dbb
TT
30852019-10-02 Tom Tromey <tromey@adacore.com>
3086
3087 * source.c (select_source_symtab): Don't call
3088 decode_line_with_current_source.
3089
d3d32391
AB
30902019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3091
3092 * symtab.c (lookup_global_symbol): Search global block.
3093
38583298
TT
30942019-10-02 Tom Tromey <tromey@adacore.com>
3095
3096 * coffread.c (process_coff_symbol): Update.
3097 * dwarf2read.c (var_decode_location, new_symbol): Update.
3098 * mdebugread.c (parse_symbol): Update.
3099 * objfiles.c (relocate_one_symbol): Update.
3100 * stabsread.c (define_symbol, fix_common_block)
3101 (scan_file_globals): Update.
3102 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3103 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3104 * xcoffread.c (process_xcoff_symbol): Update.
3105
9344c18f
AA
31062019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3107
3108 * MAINTAINERS: Update my email address.
3109
df07e2c7
AB
31102019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3111
3112 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3113 std::vector.
3114 (build_type_psymtabs_reader): Update for std::vector.
3115 (build_type_psymtab_dependencies): Likewise.
3116 * dwarf2read.h: Remove use of DEF_VEC_P.
3117 (typedef sig_type_ptr): Delete.
3118
554ac434
AB
31192019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3120
3121 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3122 to std::vector.
3123 (btrace_maint_decode_pt): Likewise, and move allocation of the
3124 vector outside of the loop.
3125 (btrace_maint_update_packets): Update to handle change from VEC to
3126 std::vector.
3127 (btrace_maint_print_packets): Likewise.
3128 (maint_info_btrace_cmd): Likewise.
3129 * btrace.h: Remove use of DEF_VEC_O.
3130 (typedef btrace_pt_packet_s): Delete.
3131 (struct btrace_maint_info) <packets>: Change fromm VEC to
3132 std::vector.
3133 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3134
46f29a9a
AB
31352019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3136
3137 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3138 make accesses into the vector constant references.
3139 (btrace_add_pc): Update for std::vector.
3140 (btrace_stitch_bts): Likewise.
3141 (parse_xml_btrace_block): Likewise.
3142 (btrace_maint_update_packets): Likewise.
3143 (btrace_maint_print_packets): Likewise.
3144 (maint_info_btrace_cmd): Likewise.
3145 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3146 std::vector.
3147 (btrace_data::empty): Likewise.
3148 (btrace_data_append): Likewise.
3149 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3150 (typedef btrace_block_s): Delete.
3151 (struct btrace_block): Add constructor.
3152 (struct btrace_data_bts) <blocks>: Change to std::vector.
3153 * nat/linux-btrace.c (perf_event_read_bts): Update for
3154 std::vector.
3155 (linux_read_bts): Likewise.
3156
d770d56f
TT
31572019-10-01 Tom Tromey <tom@tromey.com>
3158
3159 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3160
9d636d67
TT
31612019-10-01 Tom Tromey <tom@tromey.com>
3162
3163 * stack.c (print_frame, info_frame_command_core): Use
3164 styled_string.
3165 * linux-thread-db.c (try_thread_db_load_1)
3166 (try_thread_db_load_from_pdir_1): Use styled_string.
3167 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3168 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3169 (maybe_print_unsupported_script_warning)
3170 (maybe_print_script_not_found_warning): Use styled_string.
3171 * ada-lang.c (user_select_syms): Use styled_string.
3172
7f6aba03
TT
31732019-10-01 Tom Tromey <tom@tromey.com>
3174
3175 * p-lang.c (pascal_printstr): Use metadata style.
3176 * value.c (show_convenience): Use metadata style.
3177 * valprint.c (valprint_check_validity, val_print_optimized_out)
3178 (val_print_not_saved, val_print_unavailable)
3179 (val_print_invalid_address, generic_val_print, val_print)
3180 (value_check_printable, val_print_array_elements): Use metadata
3181 style.
3182 * ui-out.h (class ui_out) <field_fmt>: New overload.
3183 <do_field_fmt>: Add style parameter.
3184 * ui-out.c (ui_out::field_fmt): New overload.
3185 * typeprint.c (type_print_unknown_return_type)
3186 (val_print_not_allocated, val_print_not_associated): Use metadata
3187 style.
3188 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3189 parameter.
3190 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3191 * tracepoint.c (tvariables_info_1): Use metadata style.
3192 * stack.c (print_frame_arg, print_frame_info, print_frame)
3193 (info_frame_command_core): Use metadata style.
3194 * skip.c (info_skip_command): Use metadata style.
3195 * rust-lang.c (rust_print_enum): Use metadata style.
3196 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3197 metadata style.
3198 * python/py-framefilter.c (py_print_single_arg): Use metadata
3199 style.
3200 * printcmd.c (do_one_display, print_variable_and_value): Use
3201 metadata style.
3202 * p-valprint.c (pascal_val_print)
3203 (pascal_object_print_value_fields): Use metadata style.
3204 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3205 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3206 parameter.
3207 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3208 * m2-valprint.c (m2_print_long_set): Use metadata style.
3209 * m2-typeprint.c (m2_print_type): Use metadata style.
3210 * infcmd.c (print_return_value_1): Use metadata style.
3211 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3212 * f-valprint.c (info_common_command_for_block): Use metadata
3213 style.
3214 * f-typeprint.c (f_type_print_base): Use metadata style.
3215 * expprint.c (print_subexp_standard): Use metadata style.
3216 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3217 * cli/cli-style.h (class cli_style_option): Add constructor.
3218 (metadata_style): Declare.
3219 * cli/cli-style.c (metadata_style): New global.
3220 (_initialize_cli_style): Register metadata style.
3221 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3222 parameter.
3223 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3224 * c-typeprint.c (c_type_print_base_struct_union)
3225 (c_type_print_base_1): Use metadata style.
3226 * breakpoint.c (watchpoint_value_print)
3227 (print_one_breakpoint_location): Use metadata style.
3228 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3229 style.
3230 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3231 style.
3232 * ada-valprint.c (val_print_packed_array_elements, printstr)
3233 (print_field_values, ada_val_print_ref, ada_val_print): Use
3234 metadata style.
3235 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3236 style.
3237 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3238 style.
3239 * ada-lang.c (user_select_syms): Use metadata style.
3240
14309bb6
TT
32412019-10-01 Tom Tromey <tom@tromey.com>
3242
3243 * cli/cli-cmds.c (pwd_command): Style output.
3244
6a831f06
PA
32452019-10-01 Pedro Alves <palves@redhat.com>
3246 Tom Tromey <tom@tromey.com>
3247
3248 * symtab.c (print_symbol_info): Use %ps.
3249 (print_msymbol_info): Use %ps.
3250 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3251 * printcmd.c (print_variable_and_value): Use %ps.
3252 * macrocmd.c (show_pp_source_pos): Use %ps.
3253 * infrun.c (print_exited_reason): Use ui_out::message.
3254 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3255 (describe_other_breakpoints): Use ui_out::message and new
3256 formats.
3257 (say_where): Use new formats.
3258 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3259 and new formats.
3260
2a3c1174
PA
32612019-10-01 Pedro Alves <palves@redhat.com>
3262 Tom Tromey <tom@tromey.com>
3263
3264 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3265 (test_gdb_formats): New function.
3266 (run_tests): Call it.
3267 (test_format_specifier): Update.
3268 * utils.h (fputs_filtered): Update comment.
3269 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3270 (fputs_styled_unfiltered): Declare.
3271 * utils.c (fputs_styled_unfiltered): New function.
3272 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3273 (vfprintf_filtered): Update.
3274 (vfprintf_unfiltered, vprintf_filtered): Update.
3275 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3276 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3277 disallow_ui_out_field>: New constants.
3278 (enum class field_kind): New.
3279 (struct base_field_s, struct signed_field_s): New.
3280 (signed_field): New function.
3281 (struct string_field_s): New.
3282 (string_field): New function.
3283 (struct styled_string_s): New.
3284 (styled_string): New function.
3285 (class ui_out) <message>: Add comment.
3286 <vmessage, call_do_message>: New methods.
3287 <do_message>: Add style parameter.
3288 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3289 methods.
3290 (ui_out::message): Rewrite.
3291 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3292 parameter.
3293 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3294 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3295 gdb_extensions parameter.
3296 (class format_piece): Add parameter to constructor.
3297 (n_int_args): New field.
3298 * gdbsupport/format.c (format_pieces::format_pieces): Add
3299 gdb_extensions parameter. Handle '*'.
3300 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3301 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3302 vfprintf_styled_no_gdbfmt.
3303 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3304 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3305 unfiltered output.
3306 * ui-style.h (struct ui_file_style) <ptr>: New method.
3307
0dfe5bfb
TT
33082019-10-01 Tom Tromey <tom@tromey.com>
3309
3310 * unittests/format_pieces-selftests.c: Update. Add final format.
3311 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3312 empty literal pieces.
3313
e43b10e1
TT
33142019-10-01 Tom Tromey <tom@tromey.com>
3315
3316 * ui-out.h (enum class ui_out_style_kind): Remove.
3317 (class ui_out) <field_string, field_stsream, do_field_string>:
3318 Change type of "style".
3319 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3320 (ui_out::field_string): Update.
3321 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3322 of "style".
3323 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3324 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3325 * stack.c (print_frame_arg, print_frame_info, print_frame):
3326 Update.
3327 * source.c (print_source_lines_base): Update.
3328 * solib.c (info_sharedlibrary_command): Update.
3329 * skip.c (info_skip_command): Update.
3330 * record-btrace.c (btrace_call_history_src_line)
3331 (btrace_call_history): Update.
3332 * python/py-framefilter.c (py_print_frame): Update.
3333 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3334 "style".
3335 * mi/mi-out.c (mi_ui_out::do_table_header)
3336 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3337 (mi_ui_out::do_field_string): Update.
3338 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3339 Update.
3340 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3341 "style".
3342 * cli-out.c (cli_ui_out::do_table_header)
3343 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3344 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3345 (cli_ui_out::do_field_fmt): Update.
3346 * breakpoint.c (print_breakpoint_location): Update.
3347 (update_static_tracepoint): Update.
3348
cd7c32c3
PW
33492019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3350
3351 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3352 conversion of gdb_datadir.
3353 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3354 remove not needed c_str ().
3355
8fe0f950
AT
33562019-09-30 Ali Tamur <tamur@google.com>
3357
3358 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3359 (dwarf2_string_attr): Likewise.
3360
5f48f8f3
AT
33612019-09-30 Ali Tamur <tamur@google.com>
3362
3363 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3364 (process_full_type_unit): Likewise.
3365 (dump_die_shallow): Likewise.
3366 (cu_debug_loc_section): Likewise.
3367
6fb08628
CB
33682019-09-28 Christian Biesinger <cbiesinger@google.com>
3369
3370 * minsyms.c (compare_minimal_symbols): Rename to...
3371 (minimal_symbol_is_less_than): ...this, and adjust to STL
3372 conventions (return bool, take arguments as references)
3373 (minimal_symbol_reader::install): Call std::sort instead
3374 of qsort.
3375
c7ee338a
CB
33762019-09-29 Christian Biesinger <cbiesinger@google.com>
3377
3378 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3379 hash and why.
3380 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3381 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3382
703a86c2
SM
33832019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3384
3385 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3386 * psympriv.h (add_psymbol_to_list): Move comment here and update
3387 it.
3388
0df0352a
TV
33892019-09-29 Tom de Vries <tdevries@suse.de>
3390
3391 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3392 Use $tmpdir/$(basename "$output_file").dwz instead of
3393 "${output_file}.dwz".
3394
ad75efa6
SM
33952019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3396
3397 PR gdb/25045
3398 * hppa-linux-nat.c: Include gdbarch.h.
3399
ececd218
CB
34002019-09-26 Christian Biesinger <cbiesinger@google.com>
3401
3402 * blockframe.c (find_pc_partial_function): Change return type to bool.
3403 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3404 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3405 (stub_gnu_ifunc_resolve_name): Likewise.
3406 * symtab.c (compare_filenames_for_search): Likewise.
3407 (compare_glob_filenames_for_search): Likewise.
3408 (matching_obj_sections): Likewise.
3409 (symbol_matches_domain): Likewise.
3410 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3411 (find_line_pc): Change return type to bool.
3412 (find_line_pc_range): Likewise.
3413 (producer_is_realview): Likewise.
3414 * symtab.h (symbol_matches_domain): Likewise.
3415 (find_pc_partial_function): Likewise.
3416 (find_pc_line_pc_range): Likewise.
3417 (in_gnu_ifunc_stub): Likewise.
3418 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3419 (find_line_pc): Likewise.
3420 (find_line_pc_range): Likewise.
3421 (matching_obj_sections): Likewise.
3422 (find_line_symtab): Change out parameter to bool.
3423 (producer_is_realview): Change return type to bool.
3424 (compare_filenames_for_search): Likewise.
3425 (compare_glob_filenames_for_search): Likewise.
3426
27a900b8
TT
34272019-09-26 Tom Tromey <tom@tromey.com>
3428
3429 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3430 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3431 * gdb_usleep.h: Remove.
3432 * gdb_usleep.c: Remove.
3433 * utils.c: Don't include gdb_usleep.h.
3434
5d63b30a
TT
34352019-09-26 Tom Tromey <tromey@adacore.com>
3436
3437 * python/py-type.c (type_to_type_object): Call check_typedef
3438 for stub types.
3439
12904d37
TT
34402019-09-26 Tom Tromey <tom@tromey.com>
3441
3442 * utils.h (initialize_utils): Don't declare.
3443 * top.c (gdb_init): Don't call initialize_utils.
3444 * utils.c (initialize_utils): Remove. Move contents...
3445 (_initialize_utils): ... here.
3446
858f25f0
TT
34472019-09-25 Tom Tromey <tom@tromey.com>
3448
3449 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3450 * utils.h (make_hex_string): Don't declare.
3451 * utils.c (make_hex_string): Remove.
3452
3d435220
TV
34532019-09-24 Tom de Vries <tdevries@suse.de>
3454
3455 PR gdb/23815
3456 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3457 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3458
ddd44b70
DD
34592019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3460
3461 * NEWS: Mention new simulator port for PRU.
3462
f945dedf
CB
34632019-09-23 Christian Biesinger <cbiesinger@google.com>
3464
3465 * ada-exp.y (write_object_remaining): Update.
3466 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3467 and eliminate the static buffer.
3468 (ada_decode_symbol): Update.
3469 (ada_la_decode): Update.
3470 (ada_sniff_from_mangled_name): Update.
3471 (is_valid_name_for_wild_match): Update.
3472 (ada_lookup_name_info::matches): Update and simplify.
3473 (name_matches_regex): Update.
3474 (ada_add_global_exceptions): Update.
3475 * ada-lang.h (ada_decode): Update signature.
3476 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3477 * dwarf-index-write.c (debug_names::insert): Update.
3478
7ab78ccb
SM
34792019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3480
3481 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3482 formatting.
3483
9252448b
SM
34842019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3485
3486 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3487 Change "nonzero" to "true" in documentation.
3488
626ca2c0
CB
34892019-09-20 Christian Biesinger <cbiesinger@google.com>
3490
3491 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3492 (_initialize_darwin_solib): Don't set
3493 darwin_so_ops.lookup_lib_global_symbol.
3494 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3495 set_gdbarch_iterate_over_objfiles_in_search_order.
3496 (elf_lookup_lib_symbol): Rename to...
3497 (svr4_iterate_over_objfiles_in_search_order): this, and update
3498 to iterate semantics.
3499 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3500 * solib.c (solib_global_lookup): Remove.
3501 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3502 (solib_global_lookup): Remove.
3503 * symtab.c (lookup_global_or_static_symbol): Remove call to
3504 solib_global_lookup.
3505
5a3a0d63
JB
35062019-09-20 Joel Brobecker <brobecker@adacore.com>
3507
3508 * NEWS: Move entries about default MI version now being
3509 version 3, and about the GDB/MI fix for multi-location
3510 breakpoints to the "since GDB 8.3" section.
3511
ffea1427
JB
35122019-09-20 Joel Brobecker <brobecker@adacore.com>
3513
3514 GDB 8.3.1 released.
3515
abf516c6
UW
35162019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3517
3518 * NEWS: Mention that Cell/B.E. debugging support was removed.
3519 * MAINTAINERS: Remove spu target.
3520
3521 * config/djgpp/fnchange.lst: Remove entries for removed files.
3522
3523 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3524 spu-multiarch.o, and spu-tdep.o.
3525 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3526 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3527 spu-multiarch.c, and spu-tdep.c.
3528 * spu-linux-nat.c: Remove file.
3529 * spu-multiarch.c: Remove file.
3530 * spu-tdep.c: Remove file.
3531 * spu-tdep.h: Remove file.
3532 * solib-spu.c: Remove file.
3533 * solib-spu.h: Remove file.
3534
3535 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3536 * configure.nat (spu-linux): Remove.
3537 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3538 solib-multiarch.o from gdb_target_obs.
3539 (spu*-*-*): Remove.
3540
3541 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3542 feature flag.
3543 (ppc_linux_no_features): Update.
3544 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3545 Cell/B.E. support.
3546 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3547 (tdesc_powerpc_cell64l): Likewise.
3548 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3549 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3550 Cell/B.E. support.
3551 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3552 Do not include "features/rs6000/powerpc-cell32l.c" or
3553 "features/rs6000/powerpc-cell64l.c".
3554 (ppc_linux_spu_section): Remove.
3555 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3556 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3557 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3558 (ppc_linux_spe_context_lookup): Remove.
3559 (ppc_linux_spe_context_inferior_created): Remove.
3560 (ppc_linux_spe_context_solib_loaded): Remove.
3561 (ppc_linux_spe_context_solib_unloaded): Remove.
3562 (ppc_linux_spe_context): Remove.
3563 (struct ppu2spu_cache): Remove.
3564 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3565 (struct ppu2spu_data): Remove.
3566 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3567 ppu2spu_unwind): Remove.
3568 (ppc_linux_init_abi): Remove Cell/B.E. support.
3569 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3570
3571 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3572 (rs6000/powerpc-cell64l-expedite): Likewise
3573 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3574 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3575 rs6000/powerpc-cell64l.xml.
3576 * features/rs6000/powerpc-cell32l.xml: Remove.
3577 * features/rs6000/powerpc-cell64l.xml: Likewise.
3578 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3579 * features/rs6000/powerpc-cell64l.c: Likewise.
3580 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3581 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3582 * regformats/reg-spu.dat: Remove.
3583
3584 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3585 * corelow.c (struct spuid_list): Remove.
3586 (add_to_spuid_list): Remove.
3587 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3588 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3589 (remote_protocol_features): Remove associated entries.
3590 (_initialize_remote): No longer initialize them.
3591 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3592 * linux-nat.c (SPUFS_MAGIC): Remove.
3593 (linux_proc_xfer_spu): Remove.
3594 (spu_enumerate_spu_ids): Remove.
3595 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3596 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3597 (linux_make_corefile_notes): No longer call it.
3598
3599 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3600 (cooked_write_test): Likewise.
3601
78e8cb91
TT
36022019-09-20 Tom Tromey <tom@tromey.com>
3603
3604 * NEWS: Mention case-sensitivity of TUI commands.
3605 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3606 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3607 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3608
f074b67e
TT
36092019-09-20 Tom Tromey <tom@tromey.com>
3610
3611 * tui/tui-source.c (tui_source_window::set_contents): Use
3612 make_unique_xstrdup.
3613 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3614 make_unique_xstrdup.
3615
63c4bf19
TT
36162019-09-20 Tom Tromey <tom@tromey.com>
3617
3618 * tui/tui-data.c: Remove separator comments.
3619 * tui/tui-layout.c: Remove separator comments.
3620 * tui/tui-win.c: Remove separator comments.
3621 * tui/tui-wingeneral.c: Remove separator comments.
3622
43df9b2f
TT
36232019-09-20 Tom Tromey <tom@tromey.com>
3624
3625 * tui/tui.h (strcat_to_buf): Don't declare.
3626 * tui/tui.c (strcat_to_buf): Remove.
3627
7226433c
TT
36282019-09-20 Tom Tromey <tom@tromey.com>
3629
3630 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3631 from "fullname".
3632 * tui/tui-source.c (tui_source_window::set_contents)
3633 (tui_source_window::location_matches_p)
3634 (tui_source_window::maybe_update): Update.
3635
80df3337
TT
36362019-09-20 Tom Tromey <tom@tromey.com>
3637
3638 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3639 Update.
3640 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3641 prefix.
3642 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3643 (tui_data_window::line_from_reg_element_no)
3644 (tui_data_window::first_reg_element_no_inline)
3645 (tui_data_window::show_registers)
3646 (tui_data_window::show_register_group)
3647 (tui_data_window::display_registers_from)
3648 (tui_data_window::display_registers_from_line)
3649 (tui_data_window::first_data_item_displayed)
3650 (tui_data_window::delete_data_content_windows)
3651 (tui_data_window::erase_data_content)
3652 (tui_data_window::do_scroll_vertical)
3653 (tui_data_window::refresh_window)
3654 (tui_data_window::check_register_values): Update.
3655
9923f347
TT
36562019-09-20 Tom Tromey <tom@tromey.com>
3657
3658 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3659 (struct tui_locator_window) <full_name, proc_name>: Now
3660 std::string.
3661 * tui/tui-stack.c (tui_locator_window::make_status_line)
3662 (tui_locator_window::set_locator_fullname)
3663 (tui_locator_window::set_locator_info): Update.
3664 * tui/tui-source.c (tui_source_window::set_contents)
3665 (tui_source_window::showing_source_p): Update.
3666
b76251ab
TT
36672019-09-20 Tom Tromey <tom@tromey.com>
3668
3669 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3670 Don't call tui_locator_win_info_ptr.
3671
0891be08
TT
36722019-09-20 Tom Tromey <tom@tromey.com>
3673
3674 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3675
1b935acf
TT
36762019-09-20 Tom Tromey <tom@tromey.com>
3677
3678 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3679 height for locator.
3680 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3681 * tui/tui-layout.c (show_source_disasm_command, show_data)
3682 (show_source_or_disasm_and_command): Use 1 as height for locator.
3683
9abd8a65
TT
36842019-09-20 Tom Tromey <tom@tromey.com>
3685
3686 * tui/tui.c (tui_enable): Update.
3687 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3688 Update.
3689 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3690 Update.
3691 * tui/tui-data.c (win_resized): Now bool.
3692 (tui_win_resized): Return bool.
3693 (tui_set_win_resized_to): Accept a bool.
3694
b5457826
TT
36952019-09-20 Tom Tromey <tom@tromey.com>
3696
3697 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3698 Change type of "refresh_values_only".
3699 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3700 type of "refresh_values_only".
3701
6b915f7d
TT
37022019-09-20 Tom Tromey <tom@tromey.com>
3703
3704 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3705 std::string.
3706 (tui_disassemble): Add "pos" parameter.
3707 (tui_disasm_window::set_contents): Simplify.
3708
2ad52f6f
TT
37092019-09-20 Tom Tromey <tom@tromey.com>
3710
3711 * tui/tui-winsource.h (struct tui_source_window_base)
3712 <show_source_content>: Now private.
3713 * tui/tui-winsource.c
3714 (tui_source_window_base::show_source_content): Don't handle empty
3715 content case.
3716
b3b1bde6
TT
37172019-09-20 Tom Tromey <tom@tromey.com>
3718
3719 * tui/tui-layout.c (show_source_disasm_command)
3720 (show_source_or_disasm_and_command): Don't call
3721 show_source_content.
3722
71a25ed2
TT
37232019-09-20 Tom Tromey <tom@tromey.com>
3724
3725 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3726 Declare.
3727 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3728 from tui_make_status_line.
3729 (tui_locator_window::rerender): Update.
3730
f8532154
TT
37312019-09-20 Tom Tromey <tom@tromey.com>
3732
3733 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3734 (tui_locator_window::rerender): Update.
3735
2d81b349
TT
37362019-09-20 Tom Tromey <tom@tromey.com>
3737
3738 * tui/tui-winsource.h (struct tui_source_window_base)
3739 <~tui_source_window_base>: Don't declare.
3740 <fullname>: Remove.
3741 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3742 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3743 member.
3744 * tui/tui-source.c (tui_source_window::set_contents): Update.
3745 (tui_source_window::location_matches_p)
3746 (tui_source_window::maybe_update): Update.
3747
f14bec58
TT
37482019-09-20 Tom Tromey <tom@tromey.com>
3749
3750 * tui/tui-winsource.h (~tui_source_element): Remove.
3751 (tui_source_element): Update.
3752 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3753 * tui/tui-winsource.c (tui_show_source_line): Update.
3754 * tui/tui-source.c (tui_source_window::set_contents): Update.
3755 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3756
78d5933a
TT
37572019-09-20 Tom Tromey <tom@tromey.com>
3758
3759 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3760 declare.
3761 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3762 tui_clear_source_windows_detail.
3763 * tui/tui-winsource.h (struct tui_source_window_base)
3764 <clear_detail>: Don't declare.
3765 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3766 Remove.
3767 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3768
d4207696
TT
37692019-09-20 Tom Tromey <tromey@adacore.com>
3770
3771 PR ada/24919:
3772 * block.c (contained_in): Fix final return value.
3773
00f93c44
AM
37742019-09-20 Alan Modra <amodra@gmail.com>
3775
3776 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3777 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3778 (read_indirect_string_from_dwz): Use bfd accessor.
3779 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3780 * machoread.c (macho_symfile_read_all_oso): Likewise.
3781 * solib.c (solib_bfd_open): Likewise.
3782
e4153ae6
CB
37832019-09-19 Christian Biesinger <cbiesinger@google.com>
3784
3785 * eval.c: Move declaration of overload_resolution to...
3786 * value.h: ...here.
3787
c7ae7675
CB
37882019-09-19 Christian Biesinger <cbiesinger@google.com>
3789
3790 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3791 * arm-linux-tdep.c: Likewise.
3792 * arm-nbsd-nat.c: Likewise.
3793 * arm-tdep.h: Declare arm_apcs_32.
3794 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3795
e86f08d2
CB
37962019-09-19 Christian Biesinger <cbiesinger@google.com>
3797
3798 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3799 * dwarf2read.h: Declare dwarf_always_disassemble.
3800
f64e2f40
TV
38012019-09-19 Tom de Vries <tdevries@suse.de>
3802
3803 PR gdb/25009
3804 * source-cache.c (source_cache::ensure): Catch exception thrown during
3805 construction of the highlighter.
3806
fd361982
AM
38072019-09-18 Alan Modra <amodra@gmail.com>
3808
3809 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3810 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3811 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3812 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3813 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3814 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3815 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3816 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3817 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3818 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3819 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3820 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3821 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3822 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3823 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3824 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3825 * mi/mi-interp.c: Update throughout for bfd section macro and
3826 function changes.
3827 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3828 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3829
11061048
TT
38302019-09-18 Tom Tromey <tom@tromey.com>
3831
3832 * NEWS: Add entry.
3833 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3834 call rl_initialize.
3835 (tui_enable): Do not call rl_initialize.
3836
7a27b85f
CG
38372019-09-18 Christian Groessler <chris@groessler.org>
3838
3839 * alpha-linux-nat.c: Include gdbarch.h.
3840
f64eea3a
SM
38412019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3842
3843 * ui-file.c: Include cli/cli-style.h.
3844 (term_cli_styling): Remove cli_styling declaration.
3845
e6f7f6d1
AM
38462019-09-18 Alan Modra <amodra@gmail.com>
3847
3848 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3849 to bfd_asymbol_section.
3850
1d38e9d1
AM
38512019-09-18 Alan Modra <amodra@gmail.com>
3852
3853 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3854 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3855 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3856
90d92a63
AM
38572019-09-18 Alan Modra <amodra@gmail.com>
3858
3859 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3860 * spu-linux-nat.c (spu_bfd_open): Likewise.
3861
a3d181d2
CB
38622019-09-18 Christian Biesinger <cbiesinger@google.com>
3863
3864 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3865 to bool to match definition in dwarf2read.c.
3866
491144b5
CB
38672019-09-17 Christian Biesinger <cbiesinger@google.com>
3868
3869 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3870 (print_signatures): Likewise.
3871 (trust_pad_over_xvs): Likewise.
3872 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3873 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3874 * arm-linux-nat.c (arm_apcs_32): Likewise.
3875 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3876 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3877 * arm-tdep.c (arm_debug): Likewise.
3878 (arm_apcs_32): Likewise.
3879 * auto-load.c (debug_auto_load): Likewise.
3880 (auto_load_gdb_scripts): Likewise.
3881 (global_auto_load): Likewise.
3882 (auto_load_local_gdbinit): Likewise.
3883 (auto_load_local_gdbinit_loaded): Likewise.
3884 * auto-load.h (global_auto_load): Likewise.
3885 (auto_load_local_gdbinit): Likewise.
3886 (auto_load_local_gdbinit_loaded): Likewise.
3887 * breakpoint.c (disconnected_dprintf): Likewise.
3888 (breakpoint_proceeded): Likewise.
3889 (automatic_hardware_breakpoints): Likewise.
3890 (always_inserted_mode): Likewise.
3891 (target_exact_watchpoints): Likewise.
3892 (_initialize_breakpoint): Update.
3893 * breakpoint.h (target_exact_watchpoints): Change to bool.
3894 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3895 * cli/cli-cmds.c (trace_commands): Likewise.
3896 * cli/cli-cmds.h (trace_commands): Likewise.
3897 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3898 to bool*.
3899 * cli/cli-logging.c (logging_overwrite): Change to bool.
3900 (logging_redirect): Likewise.
3901 (debug_redirect): Likewise.
3902 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3903 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3904 to bool.
3905 <boolean_option_def>: Update.
3906 (struct flag_option_def): Change default type of Context to bool
3907 from int.
3908 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3909 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3910 (get_setshow_command_value_string): Likewise.
3911 * cli/cli-style.c (cli_styling): Change to bool.
3912 (source_styling): Likewise.
3913 * cli/cli-style.h (source_styling): Likewise.
3914 (cli_styling): Likewise.
3915 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3916 to bool.
3917 * command.h (var_types): Update comment.
3918 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3919 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3920 bool.
3921 (debug_compile_cplus_scopes): Likewise.
3922 * compile/compile-internal.h (compile_debug): Likewise.
3923 * compile/compile.c (compile_debug): Likewise.
3924 (struct compile_options) <raw>: Likewise.
3925 * cp-support.c (catch_demangler_crashes): Likewise.
3926 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3927 (usr_cmd_cris_dwarf2_cfi): Likewise.
3928 * csky-tdep.c (csky_debug): Likewise.
3929 * darwin-nat.c (enable_mach_exceptions): Likewise.
3930 * dcache.c (dcache_enabled_p): Likewise.
3931 * defs.h (info_verbose): Likewise.
3932 * demangle.c (demangle): Likewise.
3933 (asm_demangle): Likewise.
3934 * dwarf-index-cache.c (debug_index_cache): Likewise.
3935 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3936 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3937 * dwarf2read.c (check_physname): Likewise.
3938 (use_deprecated_index_sections): Likewise.
3939 (dwarf_always_disassemble): Likewise.
3940 * eval.c (overload_resolution): Likewise.
3941 * event-top.c (set_editing_cmd_var): Likewise.
3942 (exec_done_display_p): Likewise.
3943 * event-top.h (set_editing_cmd_var): Likewise.
3944 (exec_done_display_p): Likewise.
3945 * exec.c (write_files): Likewise.
3946 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3947 (debug_fbsd_nat): Likewise.
3948 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3949 Likewise.
3950 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3951 <backtrace_past_entry> Likewise.
3952 * gdb-demangle.h (demangle): Likewise.
3953 (asm_demangle): Likewise.
3954 * gdb_bfd.c (bfd_sharing): Likewise.
3955 * gdbcore.h (write_files): Likewise.
3956 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3957 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3958 * gdbthread.h (print_thread_events): Likewise.
3959 * gdbtypes.c (opaque_type_resolution): Likewise.
3960 (strict_type_checking): Likewise.
3961 * gnu-nat.c (gnu_debug_flag): Likewise.
3962 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3963 * guile/scm-param.c (pascm_variable): Add boolval.
3964 (add_setshow_generic): Update.
3965 (pascm_param_value): Update.
3966 (pascm_set_param_value_x): Update.
3967 * hppa-tdep.c (hppa_debug): Change to bool..
3968 * infcall.c (may_call_functions_p): Likewise.
3969 (coerce_float_to_double_p): Likewise.
3970 (unwind_on_signal_p): Likewise.
3971 (unwind_on_terminating_exception_p): Likewise.
3972 * infcmd.c (startup_with_shell): Likewise.
3973 * inferior.c (print_inferior_events): Likewise.
3974 * inferior.h (startup_with_shell): Likewise.
3975 (print_inferior_events): Likewise.
3976 * infrun.c (step_stop_if_no_debug): Likewise.
3977 (detach_fork): Likewise.
3978 (debug_displaced): Likewise.
3979 (disable_randomization): Likewise.
3980 (non_stop): Likewise.
3981 (non_stop_1): Likewise.
3982 (observer_mode): Likewise.
3983 (observer_mode_1): Likewise.
3984 (set_observer_mode): Update.
3985 (sched_multi): Change to bool.
3986 * infrun.h (debug_displaced): Likewise.
3987 (sched_multi): Likewise.
3988 (step_stop_if_no_debug): Likewise.
3989 (non_stop): Likewise.
3990 (disable_randomization): Likewise.
3991 * linux-tdep.c (use_coredump_filter): Likewise.
3992 (dump_excluded_mappings): Likewise.
3993 * linux-thread-db.c (auto_load_thread_db): Likewise.
3994 (check_thread_db_on_load): Likewise.
3995 * main.c (captured_main_1): Update.
3996 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
3997 xx2_opt, boolean_opt>: Change to bool.
3998 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
3999 * maint.c (maintenance_profile_p): Likewise.
4000 (per_command_time): Likewise.
4001 (per_command_space): Likewise.
4002 (per_command_symtab): Likewise.
4003 * memattr.c (inaccessible_by_default): Likewise.
4004 * mi/mi-main.c (mi_async): Likewise.
4005 (mi_async_1): Likewise.
4006 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4007 * nat/fork-inferior.h (startup_with_shell): Likewise.
4008 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4009 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4010 * nios2-tdep.c (nios2_debug): Likewise.
4011 * or1k-tdep.c (or1k_debug): Likewise.
4012 * parse.c (parser_debug): Likewise.
4013 * parser-defs.h (parser_debug): Likewise.
4014 * printcmd.c (print_symbol_filename): Likewise.
4015 * proc-api.c (procfs_trace): Likewise.
4016 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4017 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4018 (set_parameter_value): Update.
4019 (add_setshow_generic): Update.
4020 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4021 to bool*.
4022 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4023 int*.
4024 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4025 * record-btrace.c (record_btrace_target::store_registers): Update.
4026 * record-full.c (record_full_memory_query): Change to bool.
4027 (record_full_stop_at_limit): Likewise.
4028 * record-full.h (record_full_memory_query): Likewise.
4029 * remote-notif.c (notif_debug): Likewise.
4030 * remote-notif.h (notif_debug): Likewise.
4031 * remote.c (use_range_stepping): Likewise.
4032 (interrupt_on_connect): Likewise.
4033 (remote_break): Likewise.
4034 * ser-tcp.c (tcp_auto_retry): Likewise.
4035 * ser-unix.c (serial_hwflow): Likewise.
4036 * skip.c (debug_skip): Likewise.
4037 * solib-aix.c (solib_aix_debug): Likewise.
4038 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4039 (spu_auto_flush_cache_p): Likewise.
4040 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4041 Likewise.
4042 (struct info_print_options) <quiet>: Likewise.
4043 * symfile-debug.c (debug_symfile): Likewise.
4044 * symfile.c (auto_solib_add): Likewise.
4045 (separate_debug_file_debug): Likewise.
4046 * symfile.h (auto_solib_add): Likewise.
4047 (separate_debug_file_debug): Likewise.
4048 * symtab.c (basenames_may_differ): Likewise.
4049 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4050 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4051 (struct info_types_options) <quiet>: Likewise.
4052 * symtab.h (demangle): Likewise.
4053 (basenames_may_differ): Likewise.
4054 * target-dcache.c (stack_cache_enabled_1): Likewise.
4055 (code_cache_enabled_1): Likewise.
4056 * target.c (trust_readonly): Likewise.
4057 (may_write_registers): Likewise.
4058 (may_write_memory): Likewise.
4059 (may_insert_breakpoints): Likewise.
4060 (may_insert_tracepoints): Likewise.
4061 (may_insert_fast_tracepoints): Likewise.
4062 (may_stop): Likewise.
4063 (auto_connect_native_target): Likewise.
4064 (target_stop_and_wait): Update.
4065 (target_async_permitted): Change to bool.
4066 (target_async_permitted_1): Likewise.
4067 (may_write_registers_1): Likewise.
4068 (may_write_memory_1): Likewise.
4069 (may_insert_breakpoints_1): Likewise.
4070 (may_insert_tracepoints_1): Likewise.
4071 (may_insert_fast_tracepoints_1): Likewise.
4072 (may_stop_1): Likewise.
4073 * target.h (target_async_permitted): Likewise.
4074 (may_write_registers): Likewise.
4075 (may_write_memory): Likewise.
4076 (may_insert_breakpoints): Likewise.
4077 (may_insert_tracepoints): Likewise.
4078 (may_insert_fast_tracepoints): Likewise.
4079 (may_stop): Likewise.
4080 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4081 (make_thread_apply_all_options_def_group): Change argument from int*
4082 to bool*.
4083 (thread_apply_all_command): Update.
4084 (print_thread_events): Change to bool.
4085 * top.c (confirm): Likewise.
4086 (command_editing_p): Likewise.
4087 (history_expansion_p): Likewise.
4088 (write_history_p): Likewise.
4089 (info_verbose): Likewise.
4090 * top.h (confirm): Likewise.
4091 (history_expansion_p): Likewise.
4092 * tracepoint.c (disconnected_tracing): Likewise.
4093 (circular_trace_buffer): Likewise.
4094 * typeprint.c (print_methods): Likewise.
4095 (print_typedefs): Likewise.
4096 * utils.c (debug_timestamp): Likewise.
4097 (sevenbit_strings): Likewise.
4098 (pagination_enabled): Likewise.
4099 * utils.h (sevenbit_strings): Likewise.
4100 (pagination_enabled): Likewise.
4101 * valops.c (overload_resolution): Likewise.
4102 * valprint.h (struct value_print_options) <prettyformat_arrays,
4103 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4104 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4105 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4106 Likewise.
4107 * windows-nat.c (new_console): Likewise.
4108 (cygwin_exceptions): Likewise.
4109 (new_group): Likewise.
4110 (debug_exec): Likewise.
4111 (debug_events): Likewise.
4112 (debug_memory): Likewise.
4113 (debug_exceptions): Likewise.
4114 (useshell): Likewise.
4115 * windows-tdep.c (maint_display_all_tib): Likewise.
4116 * xml-support.c (debug_xml): Likewise.
4117
f1b620e9
MG
41182019-09-17 Mike Gulick <mgulick@mathworks.com>
4119
4120 * source.c (prepare_path_for_appending): New function.
4121 (openp): Make use of new function.
4122 (find_and_open_source): Search for the compilation directory and
4123 source file as a relative path beneath the directory search path.
4124
67f3ed6a
AB
41252019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4126
4127 * source-cache.c (source_cache::get_line_charpos): Catch
4128 exceptions and return false, this matches the behaviour documented
4129 in the header file.
4130
74332189
JB
41312019-09-17 Joel Brobecker <brobecker@adacore.com>
4132
4133 * ada-tasks.c (info_task): Remove quoting of the task's name.
4134
f2f24aa9
CB
41352019-09-16 Christian Biesinger <cbiesinger@google.com>
4136
4137 * symfile.c (auto_solib_add): Replace comment with a reference
4138 to the header file.
4139
6a062a93
CB
41402019-09-14 Christian Biesinger <cbiesinger@google.com>
4141
4142 * NEWS: Mention that gdb can now be compiled with Python 3
4143 on Windows.
4144
ec6c8338
AB
41452019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4146
4147 * maint.c (maint_print_section_data::maint_print_section_data):
4148 Force use of 'float log10 (float)' by casting the argument to
4149 float.
4150
aa17805f
AB
41512019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4152
4153 * maint.c: Add 'cmath' include.
4154 (struct maint_print_section_data): New structure.
4155 (print_section_index): New function.
4156 (print_bfd_section_info): Add header comment, small whitespace
4157 cleanup, and update to call new print_section_index function.
4158 (print_objfile_section_info): Likewise.
4159 (maint_obj_section_from_bfd_section): New function.
4160 (print_bfd_section_info_maybe_relocated): New function.
4161 (maintenance_info_sections): Add header comment, always use
4162 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4163
3dd9bb46
AB
41642019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4165
4166 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4167 inner scope, add check that the objfile has psymtabs before
4168 checking psymtabs_addrmap.
4169 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4170
4993045d
PW
41712019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4172
4173 * NEWS: Announce that Ada task names are now shown at more places,
4174 and between quotes (except in info task output).
4175 * gdb/ada-tasks.c (task_to_str): New function.
4176 (display_current_task_id): Call task_to_str.
4177 (task_command_1): Likewise.
4178 (print_ada_task_info): In non-mi mode, Properly align headers and data
4179 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4180
7a289707
RO
41812019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4182
4183 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4184 prstatus.pr_lwp.pr_info instead of making it up.
4185
f2aec7f6
CB
41862019-09-11 Christian Biesinger <cbiesinger@google.com>
4187
4188 * auto-load.c (auto_load_expand_dir_vars): Update.
4189 * defs.h (gdb_datadir): Change to std::string.
4190 (python_libdir): Likewise.
4191 (relocate_gdb_directory): Change return type to std::string.
4192 * guile/guile.c (gdbscm_data_directory): Update.
4193 (initialize_scheme_side): Update.
4194 * jit.c (jit_reader_dir): Change to std::string.
4195 (jit_reader_load_command): Update.
4196 * main.c (gdb_datadir): Change to std::string.
4197 (python_libdir): Likewise.
4198 (set_gdb_data_directory): Update.
4199 (relocate_path): Change to return std::string.
4200 (relocate_gdb_directory): Change to return std::string.
4201 (relocate_gdbinit_path_maybe_in_datadir): Update.
4202 (captured_main_1): Update.
4203 * python/python.c (do_start_initialization): Update.
4204 * top.c (show_gdb_datadir): Update.
4205 * xml-syscall.c (xml_init_syscalls_info): Update.
4206 (init_syscalls_info): Update.
4207
9224a013
CB
42082019-09-11 Christian Biesinger <cbiesinger@google.com>
4209
4210 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4211 out of get_init_files.
4212 (get_init_files): Update.
4213
f48cd836
CB
42142019-09-11 Christian Biesinger <cbiesinger@google.com>
4215
4216 * main.c (get_init_files): Change to use std::string.
4217 (captured_main_1): Update.
4218 (print_gdb_help): Update.
4219
9cab7ecd
AT
42202019-09-11 Ali Tamur <tamur@google.com>
4221
4222 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4223 implementation.
4224
67547d89
CB
42252019-09-11 Christian Biesinger <cbiesinger@google.com>
4226
4227 * dbxread.c (read_dbx_symtab): Update.
4228 * dwarf2read.c (load_partial_dies): Update.
4229 * mdebugread.c (parse_partial_symbols): Update.
4230 (handle_psymbol_enumerators): Update.
4231 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4232 * psymtab.c (add_psymbol_to_bcache): Likewise.
4233 (add_psymbol_to_list): Likewise.
4234 * symtab.c (symbol_set_names): Likewise.
4235 * symtab.h (symbol_set_names): Likewise.
4236 * xcoffread.c (scan_xcoff_symtab): Update.
4237
64b2d4a0
TT
42382019-09-11 Tom Tromey <tom@tromey.com>
4239
4240 * symfile-mem.c (symbol_file_add_from_memory): Use
4241 bfd_set_filename.
4242 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4243 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4244
3b00ef10
TT
42452019-09-10 Tom Tromey <tromey@adacore.com>
4246
4247 * dwarf-index-write.c (write_psymbols): Extend error message.
4248 (debug_names::insert): Add Ada code.
4249 (debug_names::write_psymbols): Remove Ada check.
4250 (debug_names) <m_string_obstack>: New member.
4251 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4252 (gdb_index_symbol_name_matcher::matches): Remove.
4253 (mapped_index_base::find_name_components_bounds): Add "lang"
4254 parameter.
4255 (mapped_index_base::build_name_components): Also split names
4256 according to Ada syntax.
4257 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4258 type of "match_callback".
4259 (check_match, check_find_bounds_finds)
4260 (dw2_expand_symtabs_matching): Update.
4261 (dw2_debug_names_iterator): Add new constructor.
4262 (dw2_debug_names_map_matching_symbols): New function.
4263 (dw2_debug_names_expand_symtabs_matching): Update.
4264 (dwarf2_debug_names_functions): Use
4265 dw2_debug_names_map_matching_symbols.
4266
aa391654
TT
42672019-09-10 Tom Tromey <tromey@adacore.com>
4268
4269 * dwarf2read.c (dw2_get_file_names_reader): Add the
4270 CU's file name to the results.
4271
b054970d
TT
42722019-09-10 Tom Tromey <tromey@adacore.com>
4273
4274 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4275 map_matching_symbols. Update.
4276 * dwarf2read.c (dw2_map_matching_symbols): Update.
4277 * psymtab.c (match_partial_symbol): Change type; update.
4278 (psym_map_matching_symbols): Likewise.
4279 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4280 type; update.
4281 * symfile.h (struct quick_symbol_functions)
4282 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4283 Remove "match".
4284
6a3dbf1b
TT
42852019-09-10 Tom Tromey <tromey@adacore.com>
4286
4287 * psymtab.c (map_block): Remove.
4288 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4289 * symtab.c (iterate_over_symbols_terminated): New function.
4290 * symtab.c (iterate_over_symbols_terminated): Declare.
4291
6969f124
TT
42922019-09-10 Tom Tromey <tromey@adacore.com>
4293
4294 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4295 * language.h (struct language_defn) <la_iterate_over_symbols>:
4296 Return bool.
4297 * symtab.c (iterate_over_symbols): Return bool.
4298 * symtab.h (iterate_over_symbols): Return bool.
4299
199b4314
TT
43002019-09-10 Tom Tromey <tromey@adacore.com>
4301
4302 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4303 (add_nonlocal_symbols): Update.
4304 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4305 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4306 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4307 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4308 Change type of "callback". Remove "data".
4309
a084a2a6
AT
4310
43112019-09-09 Ali Tamur <tamur@google.com>
4312
4313 * dwarf2read.c (comp_unit_head): Update comment.
4314 (dwarf2_dwo_name): New function declaration.
4315 (dwarf_unit_type_name): New function declaration.
4316 (read_comp_unit_head): Add support for new compilation units,
4317 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4318 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4319 (currently named as "signature") in their header. Also clarify error
4320 messages.
4321 (lookup_dwo_id): New function. Returns the dwo id of the given
4322 compile unit.
4323 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4324 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4325 functions.
4326 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4327 (dwarf2_dwo_name): Get the dwo name if present.
4328 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4329 purposes.
4330
25a2915e
TT
43312019-09-09 Tom Tromey <tom@tromey.com>
4332
4333 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4334
e4df0874
PW
43352019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4336
4337 * python/python.c (do_start_initialization): Make progname_copy static,
4338 to avoid a leak report.
4339
8634b462
TT
43402019-09-08 Tom Tromey <tom@tromey.com>
4341
4342 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4343
c7f839cb
SM
43442019-09-07 Simon Marchi <simon.marchi@efficios.com>
4345
4346 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4347 Change type to gdb::optional<block_enum>.
4348 (dw2_symtab_iter_init): Change block_index parameter type
4349 to gdb::optional<block_enum>.
4350 (dw2_lookup_symbol): Change block_index parameter
4351 type to block_enum.c
4352 (dw2_debug_names_lookup_symbol): Likewise.
4353 * psymtab.c (psym_lookup_symbol): Likewise.
4354 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4355 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4356 Likewise.
4357
ead0e69a
CB
43582019-09-06 Christian Biesinger <cbiesinger@google.com>
4359
4360 * defs.h (relocate_gdb_directory): Change int to bool in
4361 signature and rename flag to relocatable.
4362 * main.c (relocate_path): Likewise.
4363 (relocate_gdb_directory): Likewise.
4364
b16c44de
AM
43652019-09-06 Alan Modra <amodra@gmail.com>
4366
4367 * coffread.c (coff_symfile_read): Constify filename variable.
4368 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4369 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4370 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4371 * solib.c (reload_shared_libraries_1): Likewise.
4372 * symfile.c (reread_symbols): Likewise.
4373 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4374 * solib-darwin.c (darwin_bfd_open): Likewise.
4375 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4376
06ff036e
AB
43772019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4378
4379 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4380 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4381
4e962e74
TT
43822019-09-03 Tom Tromey <tromey@adacore.com>
4383
4384 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4385 types.
4386 (has_negatives): Unbias a range type bound.
4387 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4388 * gdbtypes.c (operator==): Handle new field.
4389 (create_range_type): Add "bias" parameter.
4390 (create_static_range_type, resolve_dynamic_range): Update.
4391 * gdbtypes.h (struct range_bounds) <bias>: New member.
4392 (create_range_type): Add bias parameter.
4393 * printcmd.c (print_scalar_formatted): Unbias range types.
4394 * value.c (unpack_long): Unbias range types.
4395 (pack_long): Bias range types.
4396
d90b8f26
AH
43972019-09-02 Alan Hayward <alan.hayward@arm.com>
4398
4399 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4400 probe arguments.
4401
fe01123e
AH
44022019-09-02 Alan Hayward <alan.hayward@arm.com>
4403
4404 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4405 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4406 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4407 (compile_probe_arg): Likewise.
4408 * probe.h (get_argument_count): Likewise.
4409 * solib-svr4.c (solib_event_probe_action): Likewise.
4410 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4411
e661ef01
AH
44122019-09-02 Alan Hayward <alan.hayward@arm.com>
4413
4414 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4415 code to here...
4416 (svr4_create_solib_event_breakpoints): ...from here.
4417
47a536d9
SDJ
44182019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4419
4420 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4421 suffix from warning message.
4422
d6a00eba
TT
44232019-08-30 Tom Tromey <tom@tromey.com>
4424
4425 * tui/tui-winsource.h (struct tui_source_window_base)
4426 <refresh_all>: Don't declare.
4427 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4428 Remove.
4429 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4430 tui_show_locator_content.
4431 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4432 declare.
4433 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4434 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4435 declare.
4436
55b2657b
TT
44372019-08-30 Tom Tromey <tom@tromey.com>
4438
4439 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4440
12a8555a
TT
44412019-08-30 Tom Tromey <tom@tromey.com>
4442
4443 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4444 Remove unnecessary forward declarations.
4445
900ac242
TT
44462019-08-30 Tom Tromey <tom@tromey.com>
4447
4448 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4449 rerender.
4450 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4451 tui_show_locator_content.
4452
99ab33fb
TT
44532019-08-30 Tom Tromey <tom@tromey.com>
4454
4455 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4456 (tui_locator_window::rerender): Rewrite using body of previous
4457 tui_show_locator_content.
4458
e594a5d1
TT
44592019-08-30 Tom Tromey <tom@tromey.com>
4460
4461 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4462 set_locator_fullname>: New methods.
4463 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4464 Rename from tui_set_locator_fullname.
4465 (tui_locator_window::set_locator_info): Rename from
4466 tui_set_locator_info. Return bool.
4467 (tui_update_locator_fullname, tui_show_frame_info): Update.
4468
715bb467
TT
44692019-08-30 Tom Tromey <tom@tromey.com>
4470
4471 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4472
772f3f03
TT
44732019-08-30 Tom Tromey <tom@tromey.com>
4474
4475 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4476 call touchwin.
4477
108e13ab
TT
44782019-08-30 Tom Tromey <tom@tromey.com>
4479
4480 * tui/tui-wingeneral.c (box_win): Assume win_info and
4481 win_info->handle cannot be NULL.
4482
cdaa6eb4
TT
44832019-08-30 Tom Tromey <tom@tromey.com>
4484
4485 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4486 refresh_window>: Declare.
4487 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4488 resize.
4489 (tui_data_item_window::rerender): Rename from
4490 tui_display_register.
4491 (tui_data_item_window::refresh_window): New method.
4492 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4493 no-op.
4494
89df7f90
TT
44952019-08-30 Tom Tromey <tom@tromey.com>
4496
4497 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4498 regs_column_count, current_group>: Move later. Now private.
4499 <get_current_group>: New method.
4500 * tui/tui-regs.c (tui_reg_command): Update.
4501 * tui/tui-layout.c (tui_set_layout): Update.
4502
1bf2866a
TT
45032019-08-30 Tom Tromey <tom@tromey.com>
4504
4505 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4506 (tui_data_window::rerender): Don't call
4507 check_and_display_highlight_if_needed.
4508 (tui_data_window::refresh_all): Remove call to
4509 erase_data_content.
4510
0670413d
TT
45112019-08-30 Tom Tromey <tom@tromey.com>
4512
4513 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4514 (tui_data_window::display_registers_from)
4515 (tui_data_window::display_reg_element_at_line)
4516 (tui_data_window::display_registers_from_line): Remove checks of
4517 "empty".
4518
18bb55c7
TT
45192019-08-30 Tom Tromey <tom@tromey.com>
4520
4521 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4522 Don't declare.
4523 * tui/tui-regs.c (tui_data_window::show_registers): Call
4524 rerender.
4525 (tui_data_window::rerender): Rename from display_all_data.
4526 (tui_data_window::rerender): Remove old implementation.
4527
1f6d2f10
TT
45282019-08-30 Tom Tromey <tom@tromey.com>
4529
4530 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4531 text.
4532 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4533
16d01f9c
BW
45342019-08-29 Bernhard Wodok <barto@gmx.net>
4535 Sergio Durigan Junior <sergiodj@redhat.com>
4536
4537 PR win32/24284
4538 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4539
d8f27c60
AB
45402019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4541
4542 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4543 when searching for types.
4544
1f20c35e
AB
45452019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4546
4547 * f-lang.c (f_language_defn): Use f_print_typedef.
4548 * f-lang.h (f_print_typedef): Declare.
4549 * f-typeprint.c (f_print_typedef): Define.
4550
550105b7
CB
45512019-08-27 Christian Biesinger <cbiesinger@google.com>
4552
4553 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4554
4acfdd20
AB
45552019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4556
4557 * cli/cli-utils.c (info_print_options_defs): Delete.
4558 (make_info_print_options_def_group): Delete.
4559 (extract_info_print_options): Delete.
4560 (info_print_command_completer): Delete.
4561 (info_print_args_help): Add extra parameter, and optionally
4562 include text about -n flag.
4563 * cli/cli-utils.h (struct info_print_options): Delete.
4564 (extract_info_print_options): Delete declaration.
4565 (info_print_command_completer): Delete declaration.
4566 (info_print_args_help): Add extra parameter, extend header
4567 comment.
4568 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4569 search_symbols.
4570 * stack.c (struct info_print_options): New type.
4571 (info_print_options_defs): New file scoped variable.
4572 (make_info_print_options_def_group): New static function.
4573 (info_print_command_completer): New static function.
4574 (info_locals_command): Update to use new local functions.
4575 (info_args_command): Likewise.
4576 (_initialize_stack): Add extra parameter to calls to
4577 info_print_args_help.
4578 * symtab.c (search_symbols): Add extra parameter, use this to
4579 possibly excluse non-debug symbols.
4580 (symtab_symbol_info): Add extra parameter, which is passed on to
4581 search_symbols.
4582 (struct info_print_options): New type.
4583 (info_print_options_defs): New file scoped variable.
4584 (make_info_print_options_def_group): New static function.
4585 (info_print_command_completer): New static function.
4586 (info_variables_command): Update to use local functions, and pass
4587 extra parameter through to symtab_symbol_info.
4588 (info_functions_command): Likewise.
4589 (info_types_command): Pass additional argument through to
4590 symtab_symbol_info.
4591 (rbreak_command): Pass extra argument to search_symbols.
4592 (_initialize_symtab): Add extra arguments for calls to
4593 info_print_args_help, and update help text for 'info variables',
4594 'whereis', and 'info functions' commands.
4595 * symtab.h (search_symbols): Add extra argument to declaration.
4596 * NEWS: Mention new flags.
4597
9aa55206
CB
45982019-08-26 Christian Biesinger <cbiesinger@google.com>
4599
4600 * symtab.c (lookup_static_symbol): Call the new function (and move
4601 it down to be next to lookup_global_symbol).
4602 (struct global_sym_lookup_data): Add block_enum member and rename to...
4603 (struct global_or_static_sym_lookup_data): ...this.
4604 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4605 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4606 (lookup_symbol_global_or_static_iterator_cb): ...this.
4607 (lookup_global_or_static_symbol): New function.
4608 (lookup_global_symbol): Call new function.
4609
5c31b358
TV
46102019-08-26 Tom de Vries <tdevries@suse.de>
4611
4612 PR c++/24852
4613 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4614 when pc_probe.prob == NULL.
4615
23c13d42
SM
46162019-08-25 Simon Marchi <simon.marchi@efficios.com>
4617
4618 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4619 variable symbol_linkage to symbol_linkage_.
4620
beadd3e8
SM
46212019-08-25 Simon Marchi <simon.marchi@efficios.com>
4622
4623 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4624 represent whether the symbol is static, dynamic, or we don't
4625 know.
4626
e3ec872f
YS
46272019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4628
4629 * gdb/rx-tdep.c (rx_register_names): New.
4630 (rx_register_name): Delete.
4631 (rx_psw_type): Delete.
4632 (rx_fpsw_type): Delete.
4633 (rx_register_type): Delete.
4634 (rx_gdbarch_init): Convert target-descriptions.
4635 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4636 * gdb/features/Makefile: Add rx.xml.
4637 * gdb/features/rx.xml: New.
4638 * gdb/features/rx.c: Generated.
4639 * gdb/NEWS: Mention target description support.
4640
d0509ba4
CB
46412019-08-22 Christian Biesinger <cbiesinger@google.com>
4642
4643 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4644 *slot_ptr.
4645
2d41fa11
SDJ
46462019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4647
4648 * configure.ac: Don't check for 'dlfcn.h' (moved to
4649 gdbsupport/common.m4).
4650 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4651 'gdbsupport/'.
4652 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4653 * compile/compile-c-support.c: Include
4654 'gdbsupport/gdb-dlfcn.h'.
4655 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4656 * gdb-dlfcn.c: Move to...
4657 * gdbsupport/gdb-dlfcn.c: ... here.
4658 * gdb-dlfcn.h: Move to...
4659 * gdbsupport/gdb-dlfcn.h: ... here.
4660
de8af808
SL
46612019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4662
4663 * nios2-tdep.c (struct reg_value): Improve comments. Make
4664 the offset field signed.
4665
27204489
CB
46662019-08-22 Christian Biesinger <cbiesinger@google.com>
4667
4668 * python/lib/gdb/__init__.py (_execute_file): New function.
4669 * python/python.c (python_run_simple_file): Call gdb._execute_file
4670 on Windows.
4671
43771869
AB
46722019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4673
4674 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4675 all uses as this was never set to anything but a zero value.
4676
26c957f1
PA
46772019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4678
4679 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4680
c07aae6e
CB
46812019-08-21 Christian Biesinger <cbiesinger@google.com>
4682
4683 * tui/tui-data.h (tui_gen_win_info): Add an =default
4684 move constructor, required by some GCC versions.
4685
3960cb7a
JF
46862019-08-21 Jinke Fan <fanjinke51@yeah.net>
4687
4688 * go32-nat.c (go32_sysinfo): Add hygon_p.
4689
04c72a68
TT
46902019-08-20 Tom Tromey <tom@tromey.com>
4691
4692 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4693 line_from_reg_element_no, first_reg_element_no_inline,
4694 display_all_data, delete_data_content_windows,
4695 erase_data_content>: Now private.
4696
072272ce
TT
46972019-08-20 Tom Tromey <tom@tromey.com>
4698
4699 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4700 (tui_unhighlight_win, tui_highlight_win)
4701 (tui_win_info::make_window): Update.
4702 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4703
973961bd
TT
47042019-08-20 Tom Tromey <tom@tromey.com>
4705
4706 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4707 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4708 (MAX_PID_WIDTH): Move to tui-stack.c.
4709 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4710 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4711 (MAX_PID_WIDTH): Move from tui-data.h.
4712
ab0e1f1a
TT
47132019-08-20 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4716 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4717 (box_win): Update.
4718 (tui_gen_win_info::make_window): Rename from tui_make_window.
4719 (tui_win_info::make_window): New method.
4720 (tui_gen_win_info::make_visible): Update.
4721 * tui/tui-source.c (tui_source_window::set_contents): Update.
4722 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4723 (tui_data_window::display_registers_from): Update.
4724 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4725 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4726 Declare.
4727 <can_box>: Remove.
4728 <title>: Remove.
4729 (struct tui_win_info) <make_window>: Declare.
4730 <can_box>: Now virtual.
4731 <title>: New member.
4732 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4733 * tui/tui-command.c (tui_cmd_window::resize): Update.
4734
100c2bf3
TT
47352019-08-20 Tom Tromey <tom@tromey.com>
4736
4737 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4738 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4739 (tui_data_window::check_register_values): Update.
4740
fa4dc567
TT
47412019-08-20 Tom Tromey <tom@tromey.com>
4742
4743 * tui/tui-regs.h (struct tui_data_window): Use
4744 DISABLE_COPY_AND_ASSIGN.
4745 <regs_content>: Change type, removing unique_ptr.
4746 <tui_data_window>: Add move constructor.
4747 * tui/tui-regs.c (tui_data_window::show_registers)
4748 (tui_data_window::show_register_group)
4749 (tui_data_window::display_registers_from)
4750 (tui_data_window::display_registers_from)
4751 (tui_data_window::first_data_item_displayed)
4752 (tui_data_window::delete_data_content_windows)
4753 (tui_data_window::rerender, tui_data_window::refresh_window)
4754 (tui_data_window::check_register_values): Update.
4755
ca02d7c8
TT
47562019-08-20 Tom Tromey <tom@tromey.com>
4757
4758 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4759 show_register_group>: Declare.
4760 (tui_show_register_group): Don't declare.
4761 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4762 tui_show_registers.
4763 (tui_data_window::show_register_group): Rename from
4764 tui_show_register_group.
4765 (tui_data_window::check_register_values, tui_reg_command):
4766 Update.
4767 * tui/tui-layout.c (tui_set_layout): Update.
4768
63356bfd
TT
47692019-08-20 Tom Tromey <tom@tromey.com>
4770
4771 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4772 Declare.
4773 (tui_check_register_values): Don't declare.
4774 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4775 from tui_check_register_values.
4776 * tui/tui-hooks.c (tui_register_changed): Update.
4777
42cc14a7
TT
47782019-08-20 Tom Tromey <tom@tromey.com>
4779
4780 * tui/tui-regs.c (tui_reg_layout): Move later.
4781 (tui_show_registers): Don't enable TUI mode or change layout.
4782
b9ad3686
TT
47832019-08-20 Tom Tromey <tom@tromey.com>
4784
4785 * tui/tui-regs.h (struct tui_data_item_window)
4786 <~tui_data_item_window>: Remove.
4787 <content>: Now a unique_xmalloc_ptr.
4788 * tui/tui-regs.c (tui_register_format): Return a
4789 unique_xmalloc_ptr.
4790 (tui_get_register): Update.
4791 (~tui_data_item_window): Remove.
4792 (tui_data_window::display_registers_from, tui_display_register):
4793 Update.
4794 * tui/tui-io.h (tui_expand_tabs): Update.
4795 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4796 Remove "col" parameter.
4797
8e114aab
TT
47982019-08-20 Tom Tromey <tom@tromey.com>
4799
4800 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4801 field.
4802 * tui/tui-regs.c (~tui_data_item_window): Update.
4803
1a4f81dd
TT
48042019-08-20 Tom Tromey <tom@tromey.com>
4805
4806 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4807 earlier.
4808
0f8d8876
TT
48092019-08-20 Tom Tromey <tom@tromey.com>
4810
4811 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4812
605dc2c2
TT
48132019-08-20 Tom Tromey <tom@tromey.com>
4814
4815 * tui/tui-source.h (struct tui_source_window): Update.
4816 * tui/tui-regs.c (tui_show_registers): Update.
4817 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4818 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4819 (NO_REGS_STRING): Remove defines.
4820
aedbe3bb
CM
48212019-08-20 Conrad Meyer <cem@FreeBSD.org>
4822
4823 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4824 unnecessary thread walk if remote doesn't support the packet.
4825
7ce8f214
TT
48262019-08-19 Tom Tromey <tromey@adacore.com>
4827
4828 * python/py-value.c (value_has_field): Fix indentation.
4829
f21c2bd7
TT
48302019-08-19 Tom Tromey <tromey@adacore.com>
4831
4832 * printcmd.c (do_one_display, info_display_command): Update.
4833 * block.h (contained_in): Return bool. Add allow_nested
4834 parameter.
4835 * block.c (contained_in): Return bool. Add allow_nested
4836 parameter.
4837
d806ea2d
TT
48382019-08-19 Tom Tromey <tom@tromey.com>
4839
4840 * configure: Rebuild.
4841 * configure.ac: Disallow the combination of -static-libstdc++ and
4842 source highlight.
4843 * source-cache.c (get_language_name): Handle rust.
4844 (source_cache::get_source_lines): Ignore highlighting exceptions.
4845
398fdd60
TT
48462019-08-16 Tom Tromey <tom@tromey.com>
4847
4848 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4849 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4850 (struct tui_source_window_base) <make_visible, refresh_window,
4851 resize>: Remove methods.
4852 <execution_info>: Remove field.
4853 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4854 (tui_show_source_line, tui_source_window_base)
4855 (~tui_source_window_base): Update.
4856 (tui_source_window_base::resize)
4857 (tui_source_window_base::make_visible)
4858 (tui_source_window_base::refresh_window): Remove.
4859 (tui_source_window_base::update_exec_info): Update.
4860 * tui/tui-source.c (tui_source_window::set_contents): Update.
4861 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4862
e699d331
TT
48632019-08-16 Tom Tromey <tom@tromey.com>
4864
4865 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4866 deprecated_query_hook.
4867
bb01dbfc
TT
48682019-08-16 Tom Tromey <tom@tromey.com>
4869
4870 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4871 (tui_update_source_windows_with_line): Update.
4872 * tui/tui-source.h (struct tui_source_window)
4873 <show_symtab_source>: Declare.
4874 (tui_show_symtab_source): Don't declare.
4875 * tui/tui-source.c (tui_show_symtab_source): Rename from
4876 tui_show_symtab_source.
4877
81c82c4b
TT
48782019-08-16 Tom Tromey <tom@tromey.com>
4879
4880 * tui/tui-winsource.h (struct tui_source_window_base)
4881 <set_contents>: Declare.
4882 * tui/tui-winsource.c
4883 (tui_source_window_base::update_source_window_as_is): Update.
4884 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4885 Declare.
4886 (tui_set_source_content): Don't declare.
4887 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4888 tui_set_source_content.
4889 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4890 Declare.
4891 (tui_set_disassem_content): Don't declare.
4892 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4893 tui_set_disassem_content.
4894
2ddaf614
TT
48952019-08-16 Tom Tromey <tom@tromey.com>
4896
4897 * tui/tui-winsource.h (struct tui_source_window_base)
4898 <update_breakpoint_info>: Declare.
4899 (tui_update_breakpoint_info): Don't declare.
4900 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4901 (tui_update_all_breakpoint_info): Update.
4902 (tui_source_window_base::update_breakpoint_info): Rename from
4903 tui_update_breakpoint_info.
4904 (tui_source_window_base::update_exec_info): Update.
4905
017f9828
TT
49062019-08-16 Tom Tromey <tom@tromey.com>
4907
4908 * tui/tui-winsource.h (struct tui_source_window_base)
4909 <update_source_window>: Declare.
4910 (tui_update_source_window): Don't declare.
4911 * tui/tui-winsource.c
4912 (tui_source_window_base::update_source_window): Rename from
4913 tui_update_source_window.
4914 (tui_source_window_base::rerender): Update.
4915 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4916 * tui/tui-disasm.c (tui_show_disassem)
4917 (tui_show_disassem_and_update_source)
4918 (tui_disasm_window::maybe_update): Update.
4919
ed8358e9
TT
49202019-08-16 Tom Tromey <tom@tromey.com>
4921
4922 * tui/tui-winsource.h (struct tui_source_window_base)
4923 <update_source_window_as_is>: Declare.
4924 (tui_update_source_window_as_is): Don't declare.
4925 * tui/tui-winsource.c (tui_update_source_window): Update
4926 (tui_source_window_base::update_source_window_as_is): Rename from
4927 tui_update_source_window_as_is.
4928 (tui_source_window_base::refill): Update.
4929 * tui/tui-source.c (tui_show_symtab_source): Update.
4930 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4931 Update.
4932
20149b6b
TT
49332019-08-16 Tom Tromey <tom@tromey.com>
4934
4935 * tui/tui-winsource.h (tui_update_source_window)
4936 (tui_update_source_window_as_is): Remove "noerror" parameter.
4937 * tui/tui-winsource.c (tui_update_source_window)
4938 (tui_update_source_window_as_is): Remove "noerror" parameter.
4939 (tui_update_source_windows_with_addr)
4940 (tui_update_source_windows_with_line)
4941 (tui_source_window_base::rerender)
4942 (tui_source_window_base::refill): Update.
4943 * tui/tui-source.h (tui_set_source_content)
4944 (tui_show_symtab_source): Remove "noerror" parameter.
4945 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4946 parameter.
4947 (tui_show_symtab_source): Likewise.
4948 (tui_source_window::maybe_update): Update.
4949 * tui/tui-disasm.c (tui_show_disassem)
4950 (tui_show_disassem_and_update_source)
4951 (tui_disasm_window::do_scroll_vertical)
4952 (tui_disasm_window::maybe_update): Update.
4953
2d83e710
TT
49542019-08-16 Tom Tromey <tom@tromey.com>
4955
4956 * tui/tui.c (tui_is_window_visible): Update.
4957 * tui/tui-wingeneral.c (tui_make_window)
4958 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4959 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4960 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4961 (tui_set_win_height_command, parse_scrolling_args): Update.
4962 * tui/tui-source.c (tui_source_window::style_changed): Update.
4963 * tui/tui-regs.c (tui_show_registers)
4964 (tui_data_window::first_data_item_displayed)
4965 (tui_data_window::delete_data_content_windows)
4966 (tui_check_register_values, tui_reg_command): Update.
4967 * tui/tui-disasm.c (tui_show_disassem): Update.
4968 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4969 method.
4970 <is_visible>: Remove field.
4971 * tui/tui-data.c (tui_next_win, tui_prev_win)
4972 (tui_delete_invisible_windows): Update.
4973
d4ab829a
TT
49742019-08-16 Tom Tromey <tom@tromey.com>
4975
4976 * tui/tui-winsource.h (struct tui_source_window_base)
4977 <m_has_locator>: Remove.
4978 * tui/tui-layout.c (show_source_disasm_command, show_data)
4979 (show_source_or_disasm_and_command): Update.
4980
aa7ca1bb
AH
49812019-08-16 Alan Hayward <alan.hayward@arm.com>
4982
4983 * NEWS (Other MI changes): New subsection.
4984 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4985 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4986 * arch-utils.c (default_get_pc_address_flags): New function.
4987 * arch-utils.h (default_get_pc_address_flags): New declaration.
4988 * gdbarch.sh: Add get_pc_address_flags.
4989 * gdbarch.c: Regenerate.
4990 * gdbarch.h: Likewise.
4991 * stack.c (print_pc): New function.
4992 (print_frame_info) (print_frame): Call print_pc.
4993
6eac171f
TV
49942019-08-16 Tom de Vries <tdevries@suse.de>
4995
4996 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
4997 print_objfile_section_info.
4998
3df505f6
TT
49992019-08-15 Tom Tromey <tom@tromey.com>
5000
5001 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5002 calling update_cmdwin_start_line.
5003 * tui/tui-winsource.h (struct tui_source_window_base)
5004 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5005 <rerender>: Declare.
5006 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5007 Call rerender.
5008 (tui_source_window_base::set_new_height): Remove.
5009 (tui_source_window_base::rerender): Rename from
5010 do_make_visible_with_new_height.
5011 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5012 resize method.
5013 (tui_win_info::make_invisible_and_set_new_height)
5014 (tui_win_info::make_visible_with_new_height): Remove.
5015 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5016 Declare.
5017 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5018 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5019 do_make_visible_with_new_height>: Don't declare.
5020 <rerender>: Declare.
5021 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5022 set_new_height.
5023 (tui_data_window::do_make_visible_with_new_height): Remove.
5024 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5025 call tui_show_locator_content.
5026 (tui_gen_win_info::resize): Call rerender.
5027 (show_source_or_disasm_and_command): Don't call
5028 tui_show_locator_content.
5029 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5030 method.
5031 (struct tui_win_info) <rerender>: Declare.
5032 <set_new_height, make_invisible_and_set_new_height,
5033 make_visible_with_new_height>: Don't declare.
5034 * tui/tui-data.c (tui_win_list::rerender): New method.
5035 * tui/tui-command.h (struct tui_cmd_window)
5036 <do_make_visible_with_new_height>: Don't declare.
5037 * tui/tui-command.c
5038 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5039
272560b5
TT
50402019-08-15 Tom Tromey <tromey@adacore.com>
5041
5042 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5043 * ada-lang.c (ada_enum_name): Likewise.
5044
08235187
CB
50452019-08-15 Christian Biesinger <cbiesinger@google.com>
5046
5047 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5048 leading underscore.
5049 (GdbOutputErrorFile): Likewise.
5050 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5051 accordingly.
5052 (execute_unwinders): Rename to have a leading underscore.
5053 (auto_load_packages): Likewise.
5054 (global scope): Adjust call to auto_load_packages accordingly.
5055 (GdbSetPythonDirectory): Likewise.
5056 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5057 instead of execute_unwinders.
5058
db502012
TT
50592019-08-15 Tom Tromey <tom@tromey.com>
5060
5061 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5062 (show_data): Don't change window visibility.
5063 (tui_gen_win_info::resize): Remove special case for command
5064 window. Use wresize, when available.
5065 (show_source_or_disasm_and_command): Don't change window
5066 visibility.
5067 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5068 <make_visible>: New method.
5069 * tui/tui-command.c (tui_cmd_window::resize): New method.
5070
3891b65e
TT
50712019-08-15 Tom Tromey <tom@tromey.com>
5072
5073 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5074 (struct tui_source_windows): New.
5075 * tui/tui-winsource.c (tui_display_main): Update.
5076 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5077 (new_height_ok, parse_scrolling_args): Update.
5078 * tui/tui-layout.c (show_layout, show_data): Update.
5079 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5080 (tui_add_to_source_windows): Don't declare.
5081 * tui/tui-data.c (source_windows, tui_source_windows)
5082 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5083
ee556432
TT
50842019-08-15 Tom Tromey <tom@tromey.com>
5085
5086 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5087 Rename from reset.
5088 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5089 * tui/tui-layout.c (show_source_disasm_command, show_data):
5090 Update.
5091 (tui_gen_win_info::resize): Rename.
5092 (show_source_or_disasm_and_command): Update.
5093 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5094 reset.
5095
46f438e3
TT
50962019-08-15 Tom Tromey <tom@tromey.com>
5097
5098 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5099 * tui/tui-interp.c (tui_interp::init): Don't call
5100 tui_initialize_static_data.
5101 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5102
f4ce562c
TT
51032019-08-15 Tom Tromey <tom@tromey.com>
5104
5105 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5106 examine tui_win_list.
5107
c398c3d0
TT
51082019-08-15 Tom Tromey <tom@tromey.com>
5109
5110 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5111 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5112 tui_clear_source_content.
5113 (tui_clear_source_content): Remove.
5114 (tui_source_window_base::do_erase_source_content): Hoist call to
5115 content.clear().
5116 * tui/tui-stack.c (tui_show_frame_info): Don't call
5117 tui_clear_source_content.
5118
e25d2004
TT
51192019-08-15 Tom Tromey <tom@tromey.com>
5120
5121 * tui/tui-winsource.h (struct tui_source_window_base)
5122 <do_erase_source_content>: New method.
5123 <erase_source_content>: New method.
5124 (tui_erase_source_content): Don't declare.
5125 * tui/tui-winsource.c (tui_clear_source_content): Update.
5126 (tui_source_window_base::do_erase_source_content): Rename from
5127 tui_erase_source_content.
5128 (tui_source_window_base::show_source_content): Update.
5129 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5130 * tui/tui-source.h (struct tui_source_window)
5131 <erase_source_content>: New method.
5132 * tui/tui-disasm.h (struct tui_disasm_window)
5133 <erase_source_content>: New method.
5134
002f15c2
TT
51352019-08-15 Tom Tromey <tom@tromey.com>
5136
5137 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5138 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5139 constructor.
5140 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5141 * tui/tui-source.c (tui_set_source_content): Update.
5142 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5143
c9033fe8
TT
51442019-08-15 Tom Tromey <tom@tromey.com>
5145
5146 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5147 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5148 tui-source.c.
5149 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5150 Declare.
5151 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5152 method.
5153 (tui_source_window::maybe_update): Update.
5154
088f37dd
TT
51552019-08-15 Tom Tromey <tom@tromey.com>
5156
5157 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5158 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5159 tui-disasm.c.
5160 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5161 Declare.
5162 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5163 method.
5164 (tui_disasm_window::maybe_update): Update.
5165
a54700c6
TT
51662019-08-15 Tom Tromey <tom@tromey.com>
5167
5168 * tui/tui-winsource.h (struct tui_source_window_base)
5169 <maybe_update>: Declare.
5170 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5171 method.
5172 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5173 Declare.
5174 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5175 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5176 Declare.
5177 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5178
e2a678a5
TT
51792019-08-15 Tom Tromey <tom@tromey.com>
5180
5181 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5182
f2dda477
TT
51832019-08-15 Tom Tromey <tom@tromey.com>
5184
5185 * tui/tui-wingeneral.c: Include tui-stack.h.
5186 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5187 (struct tui_locator_window): Move from tui-data.h.
5188 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5189 (tui_initialize_static_data): Move from tui-data.c.
5190 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5191 (struct tui_locator_window): Move to tui-stack.c.
5192 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5193 (tui_initialize_static_data): Move to tui-stack.c.
5194
ed4a1084
TT
51952019-08-15 Tom Tromey <tom@tromey.com>
5196
5197 * tui/tui-layout.c (show_source_disasm_command)
5198 (show_source_or_disasm_and_command): Use make_visible method, not
5199 tui_make_window.
5200 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5201 Remove.
5202
65962b20
TT
52032019-08-15 Tom Tromey <tom@tromey.com>
5204
5205 * tui/tui-wingeneral.h (tui_make_window): Update.
5206 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5207 parameter.
5208 (tui_gen_win_info::make_visible): Update.
5209 * tui/tui-regs.c (tui_data_window::display_registers_from):
5210 Update.
5211 * tui/tui-layout.c (show_source_disasm_command)
5212 (show_source_or_disasm_and_command): Update.
5213 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5214 (enum tui_box): Remove.
5215 (struct tui_win_info) <can_box>: New method.
5216 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5217 method.
5218
2208ee91
TV
52192019-08-15 Tom de Vries <tdevries@suse.de>
5220
5221 * linux-nat-trad.c: Include gdbarch.h.
5222
75faf5c4
AH
52232019-08-14 Alan Hayward <alan.hayward@arm.com>
5224
5225 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5226 register sizes.
5227
b1c896b3
TT
52282019-08-14 Tom Tromey <tromey@adacore.com>
5229
5230 * darwin-nat.c: Include gdbarch.h.
5231 * darwin-nat-info.c: Include gdbarch.h.
5232
6405cd73
TT
52332019-08-13 Tom Tromey <tom@tromey.com>
5234
5235 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5236 Remove.
5237 * tui/tui-data.c (tui_initialize_static_data): Update.
5238
5216580d
TT
52392019-08-13 Tom Tromey <tom@tromey.com>
5240
5241 * tui/tui-winsource.h (struct tui_exec_info_window)
5242 <~tui_exec_info_window, maybe_allocate_content, get_content,
5243 m_content>: Remove.
5244 (struct tui_source_window_base) <set_exec_info_content,
5245 show_exec_info_content>: Don't declare.
5246 * tui/tui-winsource.c
5247 (tui_exec_info_window::maybe_allocate_content): Remove.
5248 (tui_source_window_base::update_exec_info): Rename from
5249 set_exec_info_content.
5250 (tui_source_window_base::show_exec_info_content)
5251 (tui_source_window_base::update_exec_info): Remove.
5252
93858ad3
TT
52532019-08-13 Tom Tromey <tom@tromey.com>
5254
5255 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5256 declare.
5257 * tui/tui-winsource.c (tui_update_source_window_as_is)
5258 (tui_update_source_windows_with_addr, tui_erase_source_content):
5259 Update.
5260 (tui_clear_exec_info_content): Remove.
5261
e321e7ce
TT
52622019-08-13 Tom Tromey <tom@tromey.com>
5263
5264 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5265 declare.
5266 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5267 call tui_erase_exec_info_content.
5268 (tui_clear_exec_info_content): Rename from
5269 tui_erase_exec_info_content.
5270 (tui_clear_exec_info_content): Delete.
5271
8270ac62
TT
52722019-08-13 Tom Tromey <tom@tromey.com>
5273
5274 * tui/tui-winsource.h (struct tui_source_window_base)
5275 <show_exec_info_content>: Declare.
5276 (tui_show_exec_info_content): Don't declare.
5277 * tui/tui-winsource.c
5278 (tui_source_window_base::show_exec_info_content): Rename from
5279 tui_show_exec_info_content.
5280 (tui_source_window_base::update_exec_info): Update.
5281
7b56485d
TT
52822019-08-13 Tom Tromey <tom@tromey.com>
5283
5284 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5285 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5286 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5287 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5288 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5289 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5290 ... here.
5291
7ba913dc
TT
52922019-08-13 Tom Tromey <tom@tromey.com>
5293
5294 * tui/tui-winsource.h (struct tui_source_window_base)
5295 <update_exec_info>: Declare.
5296 (tui_update_exec_info): Don't declare.
5297 * tui/tui-winsource.c (tui_update_source_window_as_is)
5298 (tui_source_window_base::refresh_all)
5299 (tui_update_all_breakpoint_info): Update.
5300 (tui_source_window_base::update_exec_info): Rename from
5301 tui_update_exec_info.
5302 * tui/tui-stack.c (tui_show_frame_info): Update.
5303
37a4a131
TT
53042019-08-13 Tom Tromey <tom@tromey.com>
5305
5306 * tui/tui-winsource.h (struct tui_source_window_base)
5307 <set_exec_info_content>: Declare.
5308 (tui_set_exec_info_content): Don't declare.
5309 * tui/tui-winsource.c
5310 (tui_source_window_base::set_exec_info_content): Rename from
5311 tui_set_exec_info_content.
5312 (tui_update_exec_info): Update.
5313
0bd27e07
TT
53142019-08-13 Tom Tromey <tom@tromey.com>
5315
5316 * tui/tui-winsource.h (struct tui_source_window_base)
5317 <show_source_content>: Declare.
5318 (tui_show_source_content): Don't declare.
5319 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5320 (tui_source_window_base::show_source_content): Rename from
5321 tui_show_source_content.
5322 (tui_source_window_base::refresh_all): Update.
5323 * tui/tui-layout.c (show_source_disasm_command)
5324 (show_source_or_disasm_and_command): Update.
5325
b4ef5aeb
TT
53262019-08-13 Tom Tromey <tom@tromey.com>
5327
5328 * tui/tui-winsource.c (tui_erase_source_content)
5329 (tui_show_source_content, tui_source_window_base::refresh_all):
5330 Update.
5331 * tui/tui-wingeneral.h
5332 (tui_check_and_display_highlight_if_needed): Don't declare.
5333 * tui/tui-wingeneral.c
5334 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5335 check_and_display_highlight_if_needed.
5336 * tui/tui-win.c (tui_rehighlight_all)
5337 (tui_win_info::make_visible_with_new_height): Update.
5338 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5339 (tui_data_window::erase_data_content)
5340 (tui_data_window::display_all_data): Update.
5341 * tui/tui-data.h (struct tui_win_info)
5342 <check_and_display_highlight_if_needed>: Declare.
5343
fede5273
TT
53442019-08-13 Tom Tromey <tom@tromey.com>
5345
5346 * tui/tui-win.c (tui_resize_all): Call
5347 tui_delete_invisible_windows.
5348 * tui/tui-layout.c (show_layout): Call
5349 tui_delete_invisible_windows.
5350 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5351 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5352
22c3f490
TT
53532019-08-13 Tom Tromey <tom@tromey.com>
5354
5355 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5356 tui_add_win_to_layout.
5357
16cb7910
TT
53582019-08-13 Tom Tromey <tom@tromey.com>
5359
5360 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5361 * tui/tui-layout.c (tui_default_win_height): Now static.
5362
cc0c3ffb
TT
53632019-08-13 Tom Tromey <tom@tromey.com>
5364
5365 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5366 single switch.
5367 (show_source_disasm_command, show_source_or_disasm_and_command):
5368 Don't check current layout.
5369
3f3ffe54
TT
53702019-08-13 Tom Tromey <tom@tromey.com>
5371
5372 * tui/tui-wingeneral.c (make_all_visible): Remove.
5373 (tui_make_all_invisible): Simplify.
5374 * tui/tui-layout.c (tui_make_all_invisible): Move from
5375 tui-wingeneral.c; simplify.
5376 (show_layout): Hoist call to tui_make_all_invisible.
5377 (show_data): Don't call tui_make_all_invisible.
5378
69258091
TT
53792019-08-13 Tom Tromey <tom@tromey.com>
5380
5381 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5382 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5383
62cf57fe
TT
53842019-08-13 Tom Tromey <tom@tromey.com>
5385
5386 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5387 tui-data.c.
5388 (show_source_disasm_command, show_data)
5389 (show_source_or_disasm_and_command): Don't use
5390 tui_set_current_layout_to.
5391 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5392 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5393 tui-layout.c.
5394 (tui_set_current_layout_to): Remove.
5395
2afade5d
TT
53962019-08-13 Tom Tromey <tom@tromey.com>
5397
5398 * tui/tui-layout.c (tui_set_layout): Update.
5399 * tui/tui-data.h (struct tui_layout_def): Remove.
5400 (tui_layout_def): Don't declare.
5401 * tui/tui-data.c (layout_def): Remove.
5402 (tui_layout_def): Remove.
5403
a3504e96
TT
54042019-08-13 Tom Tromey <tom@tromey.com>
5405
5406 * tui/tui-winsource.h (struct tui_source_window_base)
5407 <clear_detail>: No longer "override".
5408 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5409 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5410 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5411 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5412 Remove.
5413 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5414
29c92911
TT
54152019-08-13 Tom Tromey <tromey@adacore.com>
5416
5417 * tracepoint.c: Don't include readline.h or history.h.
5418
86c6b807
TT
54192019-08-12 Tom Tromey <tom@tromey.com>
5420
5421 * configure: Rebuild.
5422 * configure.ac: Check for readline 7.
5423 * NEWS: Mention readline 7 requirement.
5424 * README: Update.
5425
5db2718c
TT
54262019-08-12 Tom Tromey <tom@tromey.com>
5427
5428 * mingw-hdep.c (gdb_select): Remove readline hack.
5429
dac36daf
PFC
54302019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5431
5432 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5433 when the function fails.
5434
1022c627
AA
54352019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5436
5437 * s390-tdep.c (s390_type_align): New function.
5438 (s390_gdbarch_init): Set it as type_align gdbarch method.
5439
eba4caf2
TV
54402019-08-09 Tom de Vries <tdevries@suse.de>
5441
5442 PR gdb/24591
5443 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5444 pc_low with relocation offset.
5445
123cd851
TT
54462019-08-07 Tom Tromey <tromey@adacore.com>
5447
5448 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5449 (print_frame_args): Update.
5450 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5451 Update.
5452 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5453 * frame.h (struct frame_arg): Add initializers.
5454 <error>: Now a unique_xmalloc_ptr.
5455
3d31bc39
AH
54562019-08-07 Alan Hayward <alan.hayward@arm.com>
5457
5458 * NEWS: Expand the Pointer Authentication entry.
5459 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5460 (aarch64_frame_unmask_lr): ... to this.
5461 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5462 Call aarch64_frame_unmask_lr.
5463 * frame.c (struct frame_info): Add "masked" variable.
5464 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5465 (fprint_frame): Check for masked pc.
5466 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5467 declarations.
5468 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5469 * stack.c (print_frame): Check for masked pc.
5470
0cf9feb9
TT
54712019-08-06 Tom Tromey <tom@tromey.com>
5472
5473 * stabsread.c (patch_block_stabs, read_one_struct_field)
5474 (read_enum_type): Use obstack_strndup.
5475 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5476 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5477 * dwarf2read.c (guess_full_die_structure_name)
5478 (anonymous_struct_prefix): Use obstack_strndup.
5479 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5480 * c-exp.y (yylex): Use obstack_strndup.
5481 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5482 (write_var_or_type): Use obstack_strndup.
5483
efba19b0
TT
54842019-08-06 Tom Tromey <tom@tromey.com>
5485
5486 * symfile.c (reread_symbols): Use obstack_strdup.
5487 * stabsread.c (read_type): Use obstack_strdup.
5488 * gdb_obstack.h (obstack_strdup): New overload.
5489 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5490 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5491 (dwarf2_canonicalize_name): Use obstack_strdup.
5492 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5493 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5494 Use obstack_strdup.
5495
f25102f7
TT
54962019-08-06 Tom Tromey <tom@tromey.com>
5497
5498 * gdb_obstack.h (obstack_strdup): Define.
5499 * gdb_obstack.c (obstack_strdup): Don't define.
5500
021887d8
TT
55012019-08-06 Tom Tromey <tom@tromey.com>
5502
5503 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5504 obstack_strdup.
5505 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5506 obstack_strdup.
5507 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5508 * stabsread.c (common_block_start): Use obstack_strdup.
5509 * objfiles.c (set_objfile_main_name, objfile): Use
5510 obstack_strdup.
5511 * namespace.c (add_using_directive): Use obstack_strdup.
5512 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5513 * jit.c (finalize_symtab): Use obstack_strdup.
5514 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5515 (guess_partial_die_structure_name, partial_die_info::fixup)
5516 (dwarf2_name): Use obstack_strdup.
5517 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5518 obstack_strdup.
5519 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5520 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5521 obstack_strdup.
5522 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5523
d2834edc
PW
55242019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5525
5526 * unittests/help-doc-selftests.c: New file.
5527 * Makefile.in: Add the new file.
5528
590042fc
PW
55292019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5530
5531 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5532 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5533 the full first line, except when FOR_VALUE_PREFIX. In this case,
5534 the trailing '.' is not output, and the first character is uppercased.
5535 (print_help_for_command): Update call to print_doc_line.
5536 (print_doc_of_command): Likewise.
5537 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5538 * cli/cli-option.c (append_indented_doc): Do not append newline.
5539 (build_help_option): Append newline after first appended_indented_doc
5540 only if a second call is done.
5541 (build_help): Append 2 new lines before each option, except the first
5542 one.
5543 * compile/compile.c (_initialize_compile): Add new lines after
5544 %OPTIONS%, when not at the end of the help.
5545 Change help doc or code
5546 producing the help doc to respect the invariants.
5547 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5548 Also removed the new line after 'Options:', as all other commands
5549 do not put an empty line between 'Options:' and the first option.
5550 * printcmd.c (_initialize_printcmd): Likewise.
5551 * stack.c (_initialize_stack): Likewise.
5552 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5553 incorrectly telling COMMAND is optional.
5554 * ada-lang.c (_initialize_ada_language): Change help doc or code
5555 producing the help doc to respect the invariants.
5556 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5557 * breakpoint.c (_initialize_breakpoint): Likewise.
5558 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5559 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5560 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5561 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5562 _initialize_cli_style): Likewise.
5563 * corelow.c (core_target_info): Likewise.
5564 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5565 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5566 * filesystem.c (_initialize_filesystem): Likewise.
5567 * frame.c (_initialize_frame): Likewise.
5568 * gnu-nat.c (add_task_commands): Likewise.
5569 * infcall.c (_initialize_infcall): Likewise.
5570 * infcmd.c (_initialize_infcmd): Likewise.
5571 * interps.c (_initialize_interpreter): Likewise.
5572 * language.c (_initialize_language): Likewise.
5573 * linux-fork.c (_initialize_linux_fork): Likewise.
5574 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5575 * maint.c (_initialize_maint_cmds): Likewise.
5576 * memattr.c (_initialize_mem): Likewise.
5577 * printcmd.c (_initialize_printcmd): Likewise.
5578 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5579 _RegEx): Likewise.
5580 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5581 * record-btrace.c (_initialize_record_btrace): Likewise.
5582 * record-full.c (_initialize_record_full): Likewise.
5583 * record.c (_initialize_record): Likewise.
5584 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5585 * regcache.c (_initialize_regcache): Likewise.
5586 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5587 _initialize_remote): Likewise.
5588 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5589 * serial.c (_initialize_serial): Likewise.
5590 * skip.c (_initialize_step_skip): Likewise.
5591 * source.c (_initialize_source): Likewise.
5592 * stack.c (_initialize_stack): Likewise.
5593 * symfile.c (_initialize_symfile): Likewise.
5594 * symtab.c (_initialize_symtab): Likewise.
5595 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5596 * top.c (init_main): Likewise.
5597 * tracefile-tfile.c (tfile_target_info): Likewise.
5598 * tracepoint.c (_initialize_tracepoint): Likewise.
5599 * tui/tui-win.c (_initialize_tui_win): Likewise.
5600 * utils.c (add_internal_problem_command): Likewise.
5601 * valprint.c (value_print_option_defs): Likewise.
5602
404f2902
FCE
56032019-08-06 Frank Ch. Eigler <fche@redhat.com>
5604
5605 PR build/24886
5606 * configure.ac: Drop enable-libmcheck support.
5607 * configure, config.in: Rebuild.
5608 * libmcheck.m4: Remove.
5609 * acinclude.m4: Don't include it.
5610 * Makefile.in: Don't distribute it.
5611 * top.c (print_gdb_configuration): Don't mention it.
5612
046bebe1
TT
56132019-08-06 Tom Tromey <tom@tromey.com>
5614
5615 * utils.c (set_output_style): Sometimes pass stream to
5616 emit_style_escape.
5617 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5618 * record-btrace.c (btrace_insn_history): Update.
5619 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5620 method.
5621 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5622 Update initializers.
5623 <m_uiout>: New field.
5624 <m_di>: Move lower.
5625 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5626 Remove "uiout" parameter.
5627 (dump_insns): Update.
5628 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5629 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5630
ddbcedf5
CB
56312019-08-06 Christian Biesinger <cbiesinger@google.com>
5632
5633 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5634 (error_in_psymtab_expansion): Likewise.
5635 (lookup_symbol_via_quick_fns): Likewise.
5636 (basic_lookup_transparent_type_quick): Likewise.
5637 (basic_lookup_transparent_type_1): Likewise.
5638
b08b16c8
TT
56392019-08-06 Tom Tromey <tromey@adacore.com>
5640
5641 * source.c (last_source_error): Now bool.
5642 (print_source_lines_base): Make "noprint" bool. Only open
5643 source file when last_source_visited changes.
5644
cb44333d
TT
56452019-08-06 Tom Tromey <tromey@adacore.com>
5646
5647 * annotate.c (annotate_source_line): Use g_source_cache.
5648 * source-cache.c (source_cache::get_plain_source_lines): Change
5649 parameters. Populate m_offset_cache.
5650 (source_cache::ensure): New method.
5651 (source_cache::get_line_charpos): New method.
5652 (extract_lines): Move lower. Change parameters.
5653 (source_cache::get_source_lines): Move lower.
5654 * source-cache.h (class source_cache): Update comment.
5655 <get_line_charpos>: New method.
5656 <get_source_lines>: Update comment.
5657 <clear>: Clear m_offset_cache.
5658 <get_plain_source_lines>: Change parameters.
5659 <ensure>: New method
5660 <m_offset_cache>: New member.
5661 * source.c (forget_cached_source_info_for_objfile): Update.
5662 (info_source_command): Use g_source_cache.
5663 (find_source_lines, open_source_file_with_line_charpos): Remove.
5664 (print_source_lines_base, search_command_helper): Use g_source_cache.
5665 * source.h (open_source_file_with_line_charpos): Don't declare.
5666 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5667 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5668 Use g_source_cache.
5669
872dceaa
TT
56702019-08-06 Tom Tromey <tromey@adacore.com>
5671
5672 * source-cache.c (source_cache::get_plain_source_lines):
5673 Remove "first_line" and "last_line" parameters.
5674 (source_cache::get_source_lines): Cache plain text.
5675 * source-cache.h (class source_cache)
5676 <get_plain_source_lines>: Update.
5677
269249d9
TT
56782019-08-06 Tom Tromey <tromey@adacore.com>
5679
5680 * source-cache.c (extract_lines): No longer a method.
5681 Changed type of parameter. Include final newline.
5682 (selftests::extract_lines_test): New function.
5683 (_initialize_source_cache): Likewise.
5684 * source-cache.h (class source_cache)
5685 <extract_lines>: Don't declare.
5686
c0e8dcd8
TT
56872019-08-06 Tom Tromey <tromey@adacore.com>
5688
5689 * breakpoint.c (init_breakpoint_sal): Update.
5690 (breakpoint): Update.
5691 * breakpoint.h (struct breakpoint) <filter>: Now a
5692 unique_xmalloc_ptr.
5693
0b27c27d
CB
56942019-08-05 Christian Biesinger <cbiesinger@google.com>
5695
5696 * NEWS: Mention dictionary access on blocks.
5697 * python/py-block.c (blpy_getitem): New function.
5698 (block_object_as_mapping): New struct.
5699 (block_object_type): Use new struct for tp_as_mapping field.
5700
4ee94178
CB
57012019-08-05 Christian Biesinger <cbiesinger@google.com>
5702
5703 * objfiles.h (objfile): Add a comment describing partial symbols.
5704
8abfcabc
TT
57052019-08-05 Tom Tromey <tromey@adacore.com>
5706
5707 * compile/compile.c (_initialize_compile): Use _(), not N_().
5708 * thread.c (_initialize_thread): Use _(), not N_().
5709 * stack.c (_initialize_stack): Use _(), not N_().
5710 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5711
2b79f376
SM
57122019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5713
5714 * dwarf2read.c (struct dw2_symtab_iterator):
5715 <want_specific_block>: Remove.
5716 <block_index>: Change type to gdb::optional.
5717 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5718 change type of BLOCK_INDEX parameter to gdb::optional.
5719 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5720 (dw2_lookup_symbol): Don't pass argument for
5721 WANT_SPECIFIC_BLOCK.
5722 (dw2_expand_symtabs_for_function): Don't pass argument for
5723 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5724 (class dw2_debug_names_iterator)
5725 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5726 parameter, change BLOCK_INDEX type to gdb::optional.
5727 <m_want_specific_block>: Remove.
5728 <m_block_index>: Change type to gdb::optional.
5729 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5730 gdb::optional. Re-write in function of gdb::optional.
5731 (dw2_debug_names_lookup_symbol): Don't pass argument for
5732 WANT_SPECIFIC_BLOCK.
5733 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5734 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5735 BLOCK_INDEX.
5736
ae60f04e
PW
57372019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5738
5739 * NEWS: Mention changes to "info sources" command.
5740
28cd9371
PW
57412019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5742
5743 * symtab.c (filename_partial_match_opts): New struct type.
5744 (struct output_source_filename_data): New members
5745 regexp, c_regexp, partial_match.
5746 (output_source_filename): Use new members to decide to print file.
5747 (info_sources_option_defs): New variable.
5748 (make_info_sources_options_def_group, print_info_sources_header,
5749 info_sources_command_completer):
5750 New functions.
5751 (info_sources_command): Read new optional arguments.
5752 (_initialize_symtab): Update info sources help.
5753
ca683e3a
AO
57542019-08-02 Alexandre Oliva <oliva@adacore.com>
5755
5756 * ada-lang.c (exception_support_info_v0): Renamed from...
5757 (default_exception_support_info): ... this. Create new
5758 definition for v1.
5759 (ada_has_this_exception_support): Look up catch_handlers_sym.
5760 (ada_exception_support_info_sniffer): Try v0 after default.
5761
f1264162
TT
57622019-08-01 Tom Tromey <tromey@adacore.com>
5763
5764 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5765 gdbarch.h.
5766
0a7b2485
CB
57672019-08-01 Christian Biesinger <cbiesinger@google.com>
5768
5769 * s12z-tdep.c: Fix include path for s12z-opc.h.
5770
c6bdbeb7
AH
57712019-08-01 Alan Hayward <alan.hayward@arm.com>
5772
5773 * NEWS: Require GNU make 3.82.
5774
a2bd7b82
TT
57752019-07-16 Tom Tromey <tom@tromey.com>
5776
5777 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5778 declare.
5779
aa3b6533
TT
57802019-07-30 Tom Tromey <tromey@adacore.com>
5781
5782 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5783
a1530dc7
KB
57842019-07-30 Kevin Buettner <kevinb@redhat.com>
5785
5786 * printcmd.c (print_address_symbolic): Print negative offsets.
5787 (build_address_symbolic): Force signed arithmetic when computing
5788 offset.
5789
2906593f
CB
57902019-07-30 Christian Biesinger <cbiesinger@google.com>
5791
5792 PR/24474: Add a function to lookup static variables.
5793 * NEWS: Mention this new function.
5794 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5795 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5796 * python/python.c (python_GdbMethods): Add new function.
5797
c620ed88
CB
57982019-07-29 Christian Biesinger <cbiesinger@google.com>
5799
5800 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5801 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5802 (objfpy_lookup_static_symbol): New function.
5803 (objfile_object_methods): Add new functions.
5804
bc4268a5
PW
58052019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5806
5807 * NEWS: Mention 'set|show print frame-info'. Mention new
5808 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5809 backtrace argument. Mention that python frame filtering code
5810 is now consistent with what 'backtrace' command prints.
5811
4b5e8d19
PW
58122019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5813
5814 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5815 comments.
5816 (print_frame_info_auto, print_frame_info_source_line,
5817 print_frame_info_location, print_frame_info_source_and_location,
5818 print_frame_info_location_and_address, print_frame_info_short_location):
5819 New declarations.
5820 (struct frame_print_options): New member print_frame_info.
5821 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5822 * stack.h (get_user_print_what_frame_info): New declaration.
5823 (frame_show_address): New declaration.
5824 * stack.c (print_frame_arguments_choices): New value 'presence'.
5825 (print_frame_info_auto, print_frame_info_source_line,
5826 print_frame_info_location, print_frame_info_source_and_location,
5827 print_frame_info_location_and_address, print_frame_info_short_location,
5828 print_frame_info_choices, print_frame_info_print_what): New definitions.
5829 (print_frame_args): Only print dots for args if print frame-arguments
5830 is 'presence'.
5831 (frame_print_option_defs): New element for "frame-info".
5832 (get_user_print_what_frame_info): New function.
5833 (frame_show_address): Make non static. Move comment to stack.h.
5834 (print_frame_info_to_print_what): New function.
5835 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5836 to decide what to print.
5837 (backtrace_command_1): Handle the new print_frame_arguments_presence
5838 value.
5839 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5840 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5841 (py_print_frame): In non-mi mode, use LOCATION as default for
5842 print_what, similarly to frame information printed directly by
5843 backtrace command. Handle frame-info user option in non MI mode.
5844
6bdfee81
KB
58452019-07-27 Kevin Buettner <kevinb@redhat.com>
5846
5847 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5848 Add case for debugging 32-bit target on 64-bit host. Revise
5849 comment.
5850
98a617f8
KB
58512019-07-27 Kevin Buettner <kevinb@redhat.com>
5852
5853 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5854 instead of find_function_entry_range_from_pc.
5855
567238c9
KB
58562019-07-27 Kevin Buettner <kevinb@redhat.com>
5857
5858 * stack.c (find_frame_funname): Remove code which preferred
5859 minsym over symtab sym in "certain pathological cases".
5860
2dc80cf8
KB
5861 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5862 parameter. Change type of "do_demangle" to bool.
5863 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5864 Pass suitable "prefer_sym_over_minsym" flag to
5865 build_address_symbolic(). Don't output "+" for negative offsets.
5866 * printcmd.c (print_address_symbolic): Update invocation of
5867 build_address_symbolic to include a "prefer_sym_over_minsym"
5868 flag.
5869 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5870 Restrict cases in which use of minimal symbol is preferred to that
5871 of a found symbol. Update comments.
5872
1aff7173
KB
5873 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5874 for entry pc when entry pc is out of range for that FDE.
5875
89b085ac
BC
58762019-07-26 Brian Callahan <bcallah@openbsd.org>
5877
5878 PR gdb/24839:
5879 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5880 type.
5881
f32feb4a
CB
58822019-07-25 Christian Biesinger <cbiesinger@google.com>
5883
5884 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5885 this function's Python signature.
5886
5887
58882019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5889
5890 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5891 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5892 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5893 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5894 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5895
5896
c54e4253
YS
58972019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5898
5899 * h8300-tdep.c (h8300_register_name_common): New.
5900 h8300_register_name): Use h8300_register_name_common.
5901 (h8300s_register_name): Likewise.
5902 (h8300sx_register_name): Likewise.
5903 (h8300h_register_nam): New.
5904 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5905
5906
40eadf04
SP
59072019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5908
5909 * arm-tdep.c (arm_skip_cmse_entry): New function.
5910 (arm_is_sgstubs_section): New function.
5911 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5912
bfa2a36d
TT
59132019-07-22 Tom Tromey <tom@tromey.com>
5914
5915 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5916 Don't self-assign.
5917
a8e9d247
AB
59182019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5919
5920 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5921 type_print.
5922
eb86c5e2
AB
59232019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5924
5925 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5926 so that GDB doesn't match any msymbols when searching in the
5927 TYPES_DOMAIN.
5928 (print_symbol_info): Print using typedef_print or type_print based
5929 on the type of the symbol. Add updated FIXME comment moved from...
5930 (_initialize_symtab): ... move and update FIXME comment to above.
5931
a8eab7c6
AB
59322019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5933
5934 * NEWS: Mention adding -q option to "info types".
5935 * symtab.c (struct info_types_options): New struct.
5936 (info_types_options_defs): New variable.
5937 (make_info_types_options_def_group): New function.
5938 (info_types_command): Use gdb::option framework to parse options.
5939 (info_types_command_completer): New function.
5940 (_initialize_symtab): Extend the help text on "info types" and
5941 register command completer.
5942
b4603c34
CB
59432019-07-21 Christian Biesinger <cbiesinger@google.com>
5944
5945 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5946 (lookup_symbol_in_objfile): Change int to block_enum and add a
5947 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5948
c8cdc1e0
CB
59492019-07-20 Christian Biesinger <cbiesinger@google.com>
5950
5951 * MAINTAINERS (Write After Approval): Add self.
5952
01e175fe
AB
59532019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5954
5955 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5956 instruction to the dummy code region.
5957
56f79b63
TT
59582019-07-19 Tom Tromey <tromey@adacore.com>
5959
5960 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5961 (ARGSUSED, PARAMS, __func__): Remove rules.
5962
4c5aa8e0
AH
59632019-07-19 Alan Hayward <alan.hayward@arm.com>
5964
5965 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5966 * features/arm/arm-with-iwmmxt.c: Remove.
5967 * features/arm/arm-with-iwmmxt.xml: Remove.
5968 * features/arm/arm-with-m-fpa-layout.c: Remove.
5969 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5970 * features/arm/arm-with-m-vfp-d16.c: Remove.
5971 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5972 * features/arm/arm-with-m.c: Remove.
5973 * features/arm/arm-with-m.xml: Remove.
5974 * features/arm/arm-with-neon.c: Remove.
5975 * features/arm/arm-with-neon.xml: Remove.
5976 * features/arm/arm-with-vfpv2.c: Remove.
5977 * features/arm/arm-with-vfpv2.xml: Remove.
5978 * features/arm/arm-with-vfpv3.c: Remove.
5979 * features/arm/arm-with-vfpv3.xml: Remove.
5980
f42b2617
AH
59812019-07-19 Alan Hayward <alan.hayward@arm.com>
5982
5983 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5984
f29ec966
AH
59852019-07-19 Alan Hayward <alan.hayward@arm.com>
5986
5987 * arch/aarch32.c (aarch32_create_target_description): Create
5988 target descriptions using features.
5989 * arch/arm.c (arm_create_target_description)
5990 (arm_create_mprofile_target_description): Likewise.
5991 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5992
d105cce5
AH
59932019-07-19 Alan Hayward <alan.hayward@arm.com>
5994
5995 * Makefile.in: Add new files.
5996 * aarch32-tdep.c: New file.
5997 * aarch32-tdep.h: New file.
5998 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
5999 Call aarch32_read_description.
6000 * arch/aarch32.c: New file.
6001 * arch/aarch32.h: New file.
6002 * arch/arm.c (arm_create_target_description)
6003 (arm_create_mprofile_target_description): New function.
6004 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6005 (arm_create_target_description)
6006 (arm_create_mprofile_target_description): New declaration.
6007 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6008 read_description functions.
6009 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6010 Likewise.
6011 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6012 * arm-tdep.c (tdesc_arm_list): New variable.
6013 (arm_register_g_packet_guesses): Call create description functions.
6014 (arm_read_description) (arm_read_mprofile_description): New
6015 function.
6016 * arm-tdep.h (arm_read_description)
6017 (arm_read_mprofile_description): Add declaration.
6018 * configure.tgt: Add new files.
6019
afe09f0b
GL
60202019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6021
6022 * top.c (new_ui_command): Open specified terminal just once.
6023
cd215b2e
TT
60242019-07-18 Tom Tromey <tromey@adacore.com>
6025
6026 * symtab.c (main_name): Constify return type.
6027 * symfile.c (set_initial_language): Update.
6028 * symtab.h (main_name): Constify return type.
6029
d8f68fcb
TT
60302019-07-17 Tom Tromey <tom@tromey.com>
6031
6032 * tui/tui-winsource.c (tui_update_source_window)
6033 (tui_update_source_window_as_is)
6034 (tui_update_source_windows_with_line): Remove return.
6035 * tui/tui-disasm.c (tui_show_disassem)
6036 (tui_show_disassem_and_update_source): Remove return.
6037 * tui/tui.c (tui_reset): Remove return.
6038 * tui/tui-wingeneral.c
6039 (tui_check_and_display_highlight_if_needed): Remove return.
6040
ca5af91e
TT
60412019-07-17 Tom Tromey <tom@tromey.com>
6042
6043 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6044
5104fe36
TT
60452019-07-17 Tom Tromey <tom@tromey.com>
6046
6047 * tui/tui-winsource.h (struct tui_exec_info_window)
6048 (struct tui_source_window_base): Move from tui-data.h.
6049 * tui/tui-winsource.c: Move many method definitions from
6050 elsewhere. Remove "structuring" comments.
6051 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6052 (tui_source_window_base::refresh_window): Move to
6053 tui-winsource.c.
6054 * tui/tui-win.c (tui_source_window_base::refresh_all)
6055 (tui_source_window_base::update_tab_width)
6056 (tui_source_window_base::set_new_height)
6057 (tui_source_window_base::do_make_visible_with_new_height): Move to
6058 tui-winsource.c.
6059 * tui/tui-source.h: Update.
6060 * tui/tui-source.c (tui_source_window_base::reset): Move to
6061 tui-winsource.c.
6062 * tui/tui-disasm.h: Update.
6063 * tui/tui-data.h (struct tui_exec_info_window): Move to
6064 tui-winsource.h.
6065 (struct tui_source_window_base): Likewise.
6066 * tui/tui-data.c (tui_source_window_base::clear_detail)
6067 (tui_source_window_base, ~tui_source_window_base): Move to
6068 tui-winsource.c.
6069
daa15dde
TT
60702019-07-17 Tom Tromey <tom@tromey.com>
6071
6072 * tui/tui-win.c (tui_resize_all)
6073 (tui_source_window_base::update_tab_width)
6074 (tui_adjust_win_heights): Update.
6075 (tui_win_info::make_invisible_and_set_new_height): Rename from
6076 make_invisible_and_set_new_height.
6077 * tui/tui-data.h (struct tui_win_info)
6078 <make_invisible_and_set_new_height>: New method.
6079
bfad4537
TT
60802019-07-17 Tom Tromey <tom@tromey.com>
6081
6082 * tui/tui.c: Update.
6083 * tui/tui-source.h (struct tui_source_window): Move from
6084 tui-data.h.
6085 * tui/tui-layout.c: Update.
6086 * tui/tui-disasm.c: Update.
6087 * tui/tui-data.h (struct tui_source_window): Move to
6088 tui-source.h.
6089
88f7e873
TT
60902019-07-17 Tom Tromey <tom@tromey.com>
6091
6092 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6093 tui-data.h.
6094 * tui/tui-data.h (struct tui_disasm_window): Move to
6095 tui-disasm.h.
6096
96bd6233
TT
60972019-07-17 Tom Tromey <tom@tromey.com>
6098
6099 * tui/tui-regs.h (struct tui_data_item_window): Move from
6100 tui-data.h.
6101 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6102 * tui/tui-data.h (struct tui_data_item_window): Move to
6103 tui-regs.h.
6104 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6105
ce38393b
TT
61062019-07-17 Tom Tromey <tom@tromey.com>
6107
6108 * tui/tui.c: Update.
6109 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6110 (tui_cmd_window::max_height): Move to tui-command.c.
6111 * tui/tui-layout.c: Update.
6112 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6113 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6114 tui-command.c.
6115 * tui/tui-command.h (struct tui_cmd_window): Move from
6116 tui-data.h.
6117 * tui/tui-command.c: Remove "structuring" comments.
6118 (tui_cmd_window::clear_detail)
6119 (tui_cmd_window::do_make_visible_with_new_height)
6120 (tui_cmd_window::max_height): Move from elsewhere.
6121
2d8b51cb
TT
61222019-07-17 Tom Tromey <tom@tromey.com>
6123
6124 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6125 Now static.
6126 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6127 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6128
18ab23af
TT
61292019-07-17 Tom Tromey <tom@tromey.com>
6130
6131 * tui/tui.c: Update.
6132 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6133 tui-regs.c.
6134 * tui/tui-windata.h: Remove file.
6135 * tui/tui-windata.c: Remove file.
6136 * tui/tui-win.c (tui_data_window::set_new_height)
6137 (tui_data_window::do_make_visible_with_new_height): Move to
6138 tui-regs.c.
6139 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6140 * tui/tui-regs.c: Remove "structuring" comments.
6141 (tui_data_window::first_data_item_displayed)
6142 (tui_data_window::delete_data_content_windows)
6143 (tui_data_window::erase_data_content)
6144 (tui_data_window::display_all_data)
6145 (tui_data_window::refresh_all)
6146 (tui_data_window::do_scroll_vertical)
6147 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6148 (tui_data_window::do_make_visible_with_new_height)
6149 (tui_data_window::refresh_window): Move from elsewhere.
6150 (_initialize_tui_regs): Move to end of file.
6151 * tui/tui-layout.c: Update.
6152 * tui/tui-hooks.c: Update.
6153 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6154 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6155 tui-regs.c.
6156 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6157
88b7e7cc
TT
61582019-07-17 Tom Tromey <tom@tromey.com>
6159
6160 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6161 seen.
6162
0fcd3711
TT
61632019-07-17 Tom Tromey <tom@tromey.com>
6164
6165 * tui/tui-win.c (tui_source_window_base::set_new_height)
6166 (tui_source_window_base::do_make_visible_with_new_height): Use
6167 m_has_locator field directly.
6168 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6169 method.
6170 (struct tui_source_window_base) <has_locator>: Likewise.
6171
4a38112d
TT
61722019-07-17 Tom Tromey <tom@tromey.com>
6173
6174 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6175 Don't declare.
6176 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6177 Remove.
6178 * tui/tui-win.c (tui_source_window_base::set_new_height)
6179 (tui_source_window_base::set_new_height)
6180 (make_invisible_and_set_new_height)
6181 (tui_source_window_base::do_make_visible_with_new_height)
6182 (tui_source_window_base::do_make_visible_with_new_height):
6183 Update.
6184 * tui/tui-layout.c (show_source_disasm_command, show_data)
6185 (show_source_or_disasm_and_command): Update.
6186 * tui/tui-layout.c (show_layout): Update.
6187
09129226
TT
61882019-07-17 Tom Tromey <tom@tromey.com>
6189
6190 * tui/tui-layout.c (make_data_window): Remove.
6191 (show_data): Unify creation and re-initialization cases.
6192
4a8a5e84
TT
61932019-07-17 Tom Tromey <tom@tromey.com>
6194
6195 * tui/tui-layout.c (make_source_window, make_disasm_window):
6196 Remove.
6197 (show_data): Unify creation and re-initialization cases.
6198
76d2be8e
TT
61992019-07-17 Tom Tromey <tom@tromey.com>
6200
6201 * tui/tui-layout.c (make_command_window): Remove.
6202 (show_source_disasm_command, show_source_or_disasm_and_command):
6203 Unify creation and re-initialization cases.
6204
890b8bde
TT
62052019-07-17 Tom Tromey <tom@tromey.com>
6206
6207 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6208 creation and re-initialization cases.
6209
2cdfa113
TT
62102019-07-17 Tom Tromey <tom@tromey.com>
6211
6212 * tui/tui-regs.c (tui_get_register): Return void.
6213
8e3cfd09
TT
62142019-07-17 Tom Tromey <tom@tromey.com>
6215
6216 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6217 Simplify.
6218
f4e04977
TT
62192019-07-17 Tom Tromey <tom@tromey.com>
6220
6221 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6222 resetting.
6223
0379b883
TT
62242019-07-17 Tom Tromey <tom@tromey.com>
6225
6226 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6227 * tui/tui-regs.c (tui_reg_layout): New function.
6228 (tui_show_registers, tui_reg_command): Use it.
6229 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6230 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6231 parameters.
6232 (tui_layout_command): Remove.
6233
b7fbad91
TT
62342019-07-17 Tom Tromey <tom@tromey.com>
6235
6236 * tui/tui-layout.h (tui/tui-layout): Return void.
6237 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6238
4e1e56b9
TT
62392019-07-17 Tom Tromey <tom@tromey.com>
6240
6241 * tui/tui-layout.c (show_source_disasm_command, show_data):
6242 Update.
6243 (reset_locator): Remove.
6244 (show_source_or_disasm_and_command): Update.
6245
1e0c09ba
TT
62462019-07-17 Tom Tromey <tom@tromey.com>
6247
6248 * tui/tui-source.c (tui_source_window_base::reset): Remove
6249 win_type parameter.
6250 * tui/tui-layout.c (make_command_window, make_source_window)
6251 (make_disasm_window, make_data_window)
6252 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6253 (reset_locator, show_source_or_disasm_and_command): Update.
6254 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6255 win_type parameter.
6256 (struct tui_source_window_base) <reset>: Likewise.
6257
1bf605de
TT
62582019-07-17 Tom Tromey <tom@tromey.com>
6259
6260 * tui/tui-layout.c (show_source_disasm_command): Use
6261 reset_locator.
6262 (reset_locator): New function.
6263 (init_and_make_win): Remove.
6264 (show_source_or_disasm_and_command): Use reset_locator.
6265
098f9ed4
TT
62662019-07-17 Tom Tromey <tom@tromey.com>
6267
6268 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6269 condition.
6270 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6271 Remove condition.
6272 * tui/tui-source.c (tui_source_window_base::reset): New method.
6273 * tui/tui-layout.c (make_command_window): Don't call
6274 init_and_make_win.
6275 (make_source_window, make_disasm_window): Don't call
6276 make_source_or_disasm_window.
6277 (make_data_window): Don't call init_and_make_win. Change calling
6278 convention.
6279 (show_source_disasm_command, show_data): Simplify.
6280 (make_source_or_disasm_window): Remove.
6281 (show_source_or_disasm_and_command): Simplify.
6282 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6283 (struct tui_source_window_base) <reset>: Likewise.
6284 <execution_info>: Remove initializer.
6285 * tui/tui-data.c (tui_source_window_base): Initialize
6286 execution_info.
6287
80110957
TT
62882019-07-17 Tom Tromey <tom@tromey.com>
6289
6290 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6291 variable.
6292
cf82af05
TT
62932019-07-17 Tom Tromey <tom@tromey.com>
6294
6295 * tui/tui.c (tui_rl_other_window): Update.
6296 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6297 superclass method first. Always iterate over regs_content.
6298 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6299 method.
6300 * tui/tui-win.c (tui_set_focus_command): Update.
6301
01aeb396
TT
63022019-07-17 Tom Tromey <tom@tromey.com>
6303
6304 * tui/tui-win.c (tui_set_focus_command): Rename from
6305 tui_set_focus. Call tui_enable.
6306 (tui_set_focus_command): Remove.
6307
fd6c75ee
TT
63082019-07-17 Tom Tromey <tom@tromey.com>
6309
6310 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6311 refresh_window.
6312 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6313 touchwin.
6314 (tui_data_window::refresh_window): Call refresh_window on data
6315 items. Always call superclass refresh_window.
6316 (tui_win_info::refresh): Remove.
6317 (tui_source_window_base::refresh_window): Update.
6318 (tui_refresh_all): Update.
6319 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6320 refresh_window.
6321 (show_source_or_disasm_and_command): Likewise.
6322 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6323 (struct tui_source_window_base) <refresh>: Likewise.
6324
f6cc34a9
TT
63252019-07-17 Tom Tromey <tom@tromey.com>
6326
6327 * tui/tui-winsource.c (tui_clear_source_content)
6328 (tui_show_source_content): Update.
6329 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6330 whether content is empty.
6331 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6332 Remove.
6333
f31ec9af
TT
63342019-07-17 Tom Tromey <tom@tromey.com>
6335
6336 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6337 window's contents.
6338 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6339 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6340
d1b6f1e5
TT
63412019-07-17 Tom Tromey <tom@tromey.com>
6342
6343 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6344 (struct tui_data_item_window): Update.
6345
d9743a13
TT
63462019-07-17 Tom Tromey <tom@tromey.com>
6347
6348 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6349 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6350 defines.
6351
caf0bc4e
TT
63522019-07-17 Tom Tromey <tom@tromey.com>
6353
6354 * tui/tui-winsource.h (tui_erase_source_content)
6355 (tui_clear_source_content): Remove "display_prompt" parameter.
6356 * tui/tui-winsource.c (tui_update_source_window_as_is)
6357 (tui_update_source_windows_with_addr): Update.
6358 (tui_clear_source_content): Remove "display_prompt" parameter.
6359 (tui_erase_source_content): Likewise. Simplify.
6360 (tui_show_source_content): Update.
6361 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6362 * tui/tui-stack.c (tui_show_frame_info): Update.
6363 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6364 Remove defines.
6365
9d391078
TT
63662019-07-17 Tom Tromey <tom@tromey.com>
6367
6368 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6369 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6370 parameter.
6371 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6372 parameter.
6373
a38da35d
TT
63742019-07-17 Tom Tromey <tom@tromey.com>
6375
6376 * tui/tui-winsource.c (tui_clear_source_content)
6377 (tui_show_source_content, tui_show_exec_info_content)
6378 (tui_clear_exec_info_content): Update.
6379 * tui/tui-stack.c (tui_show_locator_content): Update.
6380 (tui_show_frame_info): Update.
6381 * tui/tui-source.h (tui_source_window): Don't declare.
6382 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6383 from tui_source_is_displayed.
6384 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6385 Remove field.
6386 (struct tui_source_window_base) <content_in_use>: New field. Now
6387 bool.
6388 (struct tui_source_window) <showing_source_p>: New method.
6389 (TUI_SRC_WIN): Change cast.
6390 * tui/tui-data.c (tui_initialize_static_data): Update.
6391
c2cd8994
TT
63922019-07-17 Tom Tromey <tom@tromey.com>
6393
6394 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6395 location_matches_p.
6396 * tui/tui-source.c (tui_source_window::location_matches_p): New
6397 method.
6398 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6399 method.
6400 * tui/tui-data.h (struct tui_source_window_base)
6401 <location_matches_p>: New method.
6402 (struct tui_source_window, struct tui_disasm_window)
6403 <location_matches_p>: Likewise.
6404
4dde7b34
TT
64052019-07-17 Tom Tromey <tom@tromey.com>
6406
6407 * tui/tui-win.c (tui_set_win_height_command): Rename from
6408 tui_set_win_height.
6409 (tui_set_win_height_command): Remove.
6410
b73dd877
TT
64112019-07-17 Tom Tromey <tom@tromey.com>
6412
6413 * tui/tui-source.c (tui_source_window): New constructor. Add
6414 observer.
6415 (~tui_source_window): New destructor.
6416 (tui_source_window::style_changed): New method.
6417 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6418 (tui_attach_detach_observers): Update.
6419 * tui/tui-data.h (struct tui_source_window): Make constructor not
6420 inline. Add destructor.
6421 (struct tui_source_window) <style_changed>: New method.
6422 <m_observable>: New member.
6423
ae2b5380
TT
64242019-07-17 Tom Tromey <tom@tromey.com>
6425
6426 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6427 * tui/tui-win.c (tui_resize_all): Fix typo.
6428
1ce3e844
TT
64292019-07-17 Tom Tromey <tom@tromey.com>
6430
6431 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6432 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6433 (tui_refresh_all): Remove "list" parameter. Use foreach.
6434 * tui/tui-win.c (window_name_completer): Use foreach.
6435 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6436 (update_tab_width): Likewise.
6437 * tui/tui-layout.c (show_layout): Update.
6438 * tui/tui-data.h (class tui_window_iterator): New.
6439 (struct all_tui_windows): New.
6440 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6441
fe3eaf1c
TT
64422019-07-17 Tom Tromey <tom@tromey.com>
6443
6444 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6445 parameter. Don't reference globals.
6446 (tui_reg_command): Update.
6447
368c1354
TT
64482019-07-17 Tom Tromey <tom@tromey.com>
6449
6450 * tui/tui-regs.c (tui_show_registers): Simplify.
6451
e80cd204
TT
64522019-07-17 Tom Tromey <tom@tromey.com>
6453
6454 * tui/tui-regs.c (tui_show_registers): Update.
6455 (tui_show_register_group): Add win_info parameter.
6456
aca2dd16
TT
64572019-07-17 Tom Tromey <tom@tromey.com>
6458
6459 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6460 Rename from tui_display_reg_element_at_line.
6461 (tui_data_window::display_registers_from_line): Update.
6462 * tui/tui-data.h (struct tui_data_window)
6463 <display_reg_element_at_line>: New method.
6464
517e9505
TT
64652019-07-17 Tom Tromey <tom@tromey.com>
6466
6467 * tui/tui-regs.h (tui_display_registers_from)
6468 (tui_display_registers_from_line): Don't declare.
6469 * tui/tui-windata.c (tui_data_window::display_all_data)
6470 (tui_data_window::refresh_all)
6471 (tui_data_window::do_scroll_vertical): Update.
6472 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6473 from tui_display_registers_from.
6474 (tui_display_reg_element_at_line): Update.
6475 (tui_data_window::display_registers_from_line): Rename from
6476 tui_display_registers_from_line.
6477 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6478 display_registers_from_line>: New methods.
6479
f76d8b19
TT
64802019-07-17 Tom Tromey <tom@tromey.com>
6481
6482 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6483 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6484 from tui_erase_data_content.
6485 (tui_data_window::display_all_data)
6486 (tui_data_window::refresh_all)
6487 (tui_data_window::do_scroll_vertical): Update.
6488 * tui/tui-regs.c (tui_show_registers): Update.
6489 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6490 New method.
6491
b4094625
TT
64922019-07-17 Tom Tromey <tom@tromey.com>
6493
6494 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6495 declare.
6496 * tui/tui-windata.c
6497 (tui_data_window::delete_data_content_windows): Rename from
6498 tui_delete_data_content_windows.
6499 (tui_data_window::display_all_data)
6500 (tui_data_window::do_scroll_vertical): Update.
6501 * tui/tui-data.h (struct tui_data_window)
6502 <delete_data_content_windows>: New method.
6503
c223a729
TT
65042019-07-17 Tom Tromey <tom@tromey.com>
6505
6506 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6507 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6508
50daf268
TT
65092019-07-17 Tom Tromey <tom@tromey.com>
6510
6511 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6512 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6513 from tui_display_all_data.
6514 * tui/tui-win.c
6515 (tui_data_window::do_make_visible_with_new_height): Update.
6516 * tui/tui-regs.c (tui_show_registers): Update.
6517 * tui/tui-layout.c (tui_set_layout): Update.
6518 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6519 method.
6520
df5f8cab
TT
65212019-07-17 Tom Tromey <tom@tromey.com>
6522
6523 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6524 * tui/tui-windata.c (tui_display_data_from): Remove.
6525 (tui_data_window::refresh_all): Update.
6526
80cb6c27
TT
65272019-07-17 Tom Tromey <tom@tromey.com>
6528
6529 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6530 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6531 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6532 tui_display_registers_from_line.
6533 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6534 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6535 "force_display" parameter.
6536
baff0c28
TT
65372019-07-17 Tom Tromey <tom@tromey.com>
6538
6539 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6540 declare.
6541 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6542 Rename from tui_first_reg_element_no_inline.
6543 (tui_display_reg_element_at_line)
6544 (tui_display_registers_from_line): Update.
6545 * tui/tui-data.h (struct tui_data_window)
6546 <first_reg_element_no_inline>: New method.
6547
3b23c5f2
TT
65482019-07-17 Tom Tromey <tom@tromey.com>
6549
6550 * tui/tui-windata.c (tui_display_data_from)
6551 (tui_data_window::do_scroll_vertical): Update.
6552 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6553 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6554 Rename from tui_line_from_reg_element_no.
6555 (tui_display_registers_from_line): Update.
6556 * tui/tui-data.h (struct tui_data_window)
6557 <line_from_reg_element_no>: New method.
6558
0b5ec218
TT
65592019-07-17 Tom Tromey <tom@tromey.com>
6560
6561 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6562 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6563 tui_last_regs_line_no.
6564 (tui_display_reg_element_at_line)
6565 (tui_display_registers_from_line): Update.
6566 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6567 method.
6568
0807ab7b
TT
65692019-07-17 Tom Tromey <tom@tromey.com>
6570
6571 PR tui/24722:
6572 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6573 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6574 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6575 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6576 (tui_update_breakpoint_info): Likewise.
6577 * tui/tui-hooks.c (tui_event_create_breakpoint)
6578 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6579 Update.
6580
9ad7fdef
TT
65812019-07-17 Tom Tromey <tom@tromey.com>
6582
6583 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6584
5813316f
TT
65852019-07-17 Tom Tromey <tom@tromey.com>
6586
6587 * tui/tui-winsource.c (tui_update_source_window_as_is)
6588 (tui_update_source_windows_with_addr): Update.
6589 * tui/tui-source.h (tui_set_source_content)
6590 (tui_show_symtab_source): Add "win_info" parameter.
6591 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6592 parameter.
6593 (tui_show_symtab_source): Likewise.
6594
00e264e7
TT
65952019-07-17 Tom Tromey <tom@tromey.com>
6596
6597 * tui/tui-wingeneral.c
6598 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6599
06210ce4
TT
66002019-07-17 Tom Tromey <tom@tromey.com>
6601
6602 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6603 (struct tui_cmd_window) <can_scroll>: New method.
6604 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6605 method.
6606
381befee
TT
66072019-07-17 Tom Tromey <tromey@adacore.com>
6608
6609 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6610 do_field_signed>: Rename. Change type of "value".
6611 * ui-out.c (ui_out::field_signed): Rename from field_int.
6612 Change type of "value".
6613 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6614 type of "value".
6615 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6616 do_field_int. Change type of "value".
6617 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6618 do_field_int. Change type of "value".
6619 * tracepoint.c (trace_status_mi, tfind_1)
6620 (print_one_static_tracepoint_marker): Update.
6621 * thread.c (print_thread_info_1, print_selected_thread_frame):
6622 Update.
6623 * stack.c (print_frame, print_frame_info): Update.
6624 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6625 Update.
6626 * source.c (print_source_lines_base): Update.
6627 * skip.c (info_skip_command): Update.
6628 * record-btrace.c (btrace_ui_out_decode_error)
6629 (btrace_call_history_src_line): Update.
6630 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6631 Update.
6632 * progspace.c (print_program_space): Update.
6633 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6634 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6635 do_field_int. Change type of "value".
6636 * mi/mi-out.c (mi_ui_out::do_table_begin)
6637 (mi_ui_out::do_table_header): Update.
6638 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6639 type of "value".
6640 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6641 (mi_cmd_data_list_changed_registers, output_register)
6642 (mi_cmd_data_read_memory, mi_load_progress)
6643 (mi_cmd_trace_frame_collected): Update.
6644 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6645 Update.
6646 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6647 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6648 (mi_cmd_var_list_children, varobj_update_one): Update.
6649 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6650 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6651 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6652 * inferior.c (print_inferior): Update.
6653 * gdb_bfd.c (print_one_bfd): Update.
6654 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6655 Update.
6656 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6657 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6658 do_field_int. Change type of "value".
6659 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6660 do_field_int. Change type of "value".
6661 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6662 (print_one_breakpoint_location, print_it_catch_fork)
6663 (print_one_catch_fork, print_it_catch_vfork)
6664 (print_one_catch_vfork, print_it_catch_solib)
6665 (print_it_catch_exec, print_it_ranged_breakpoint)
6666 (print_mention_watchpoint, print_mention_masked_watchpoint)
6667 (bkpt_print_it, update_static_tracepoint): Update.
6668 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6669 * break-catch-syscall.c (print_it_catch_syscall): Update.
6670 * ada-tasks.c (print_ada_task_info): Update.
6671 * ada-lang.c (print_it_exception, print_mention_exception):
6672 Update.
6673
6b78c3f8
AB
66742019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6675
6676 PR breakpoints/24541
6677 * gdbarch.c: Regenerate.
6678 * gdbarch.h: Regenerate.
6679 * gdbarch.sh: Adjust return type and parameter types for
6680 'stap_adjust_register'.
6681 (i386_stap_adjust_register): Adjust signature and return new
6682 register name.
6683 * stap-probe.c (stap_parse_register_operand): Adjust use of
6684 'gdbarch_stap_adjust_register'.
6685
d72a9b85
TT
66862019-07-17 Tom Tromey <tromey@adacore.com>
6687
6688 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6689 declare VEC.
6690 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6691 std::vector.
6692 (struct s390_process_info): Add initializers.
6693 (s390_add_process): Use new.
6694 (s390_linux_nat_target::low_forget_process): Use delete.
6695 (s390_linux_nat_target::low_new_fork)
6696 (s390_linux_nat_target::stopped_by_watchpoint)
6697 (s390_linux_nat_target::low_prepare_to_resume)
6698 (s390_linux_nat_target::insert_watchpoint)
6699 (s390_linux_nat_target::insert_hw_breakpoint)
6700 (s390_linux_nat_target::remove_watchpoint)
6701 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6702
206e6c58
JB
67032019-07-16 John Baldwin <jhb@FreeBSD.org>
6704
6705 * aarch64-fbsd-nat.c: Include regcache.h.
6706 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6707 argument.
6708 (aarch64_fbsd_nat_target::fetch_registers)
6709 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6710 variable.
6711 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6712
cbde90f2
JB
67132019-07-16 John Baldwin <jhb@FreeBSD.org>
6714
6715 * fbsd-nat.c: Include gdbarch.h.
6716
07128006
TT
67172019-07-15 Tom Tromey <tromey@adacore.com>
6718
6719 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6720
1f77b012
TT
67212019-07-15 Tom Tromey <tromey@adacore.com>
6722
6723 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6724 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6725 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6726 * cli-out.c (cli_ui_out::do_field_int): New method.
6727 * ui-out.c (ui_out::field_unsigned): New method.
6728 * symfile.c (generic_load): Use field_unsigned.
6729 (print_transfer_performance): Likewise.
6730 * record-btrace.c (ui_out_field_uint): Remove.
6731 (btrace_call_history_insn_range, btrace_call_history): Use
6732 field_unsigned.
6733 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6734 field_unsigned.
6735 * ui-out.h (class ui_out) <field_unsigned>: New method.
6736 <do_field_unsigned>: Likewise.
6737
33eca680
TT
67382019-07-15 Tom Tromey <tromey@adacore.com>
6739
6740 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6741 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6742 * target.c (flash_erase_command): Use field_string.
6743 * infrun.c (print_signal_received_reason): Use field_string.
6744 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6745 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6746 field_string.
6747 * ada-tasks.c (print_ada_task_info): Use field_string.
6748
ca8d69be
TT
67492019-07-15 Tom Tromey <tromey@adacore.com>
6750
6751 * target.c (flash_erase_command): Use field_core_addr.
6752 * symfile.c (generic_load): Use field_core_addr.
6753 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6754 Use field_core_addr.
6755 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6756 field_core_addr.
6757
0d4e84ed
AB
67582019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6759
6760 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6761 value if its desired type is smaller than a CORE_ADDR and signed.
6762
9a49df9d
AB
67632019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6764
6765 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6766 of changes to field names, and use new is_reference field to
6767 decide if a property is a reference or not.
6768 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6769 field.
6770 (struct dwarf2_property_baton): Update header comment, rename
6771 'referenced_type' to 'property_type' and update comments.
6772 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6773 default property type, store in property baton, update to take
6774 accound of renamed field.
6775 (read_func_scope): Update call to attr_to_dynamic_prop.
6776 (read_array_type): Likewise.
6777 (dwarf2_per_cu_addr_sized_int_type): New function.
6778 (read_subrange_index_type): Move type finding code to
6779 dwarf2_per_cu_addr_sized_int_type.
6780 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6781 (dwarf2_per_cu_addr_type): New function.
6782 (set_die_type): Update calls to attr_to_dynamic_prop.
6783
b86352cf
AB
67842019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6785
6786 * dwarf2read.c (read_subrange_index_type): New function.
6787 (read_subrange_type): Move code into new function and call it.
6788 * gdbtypes.c (create_range_type): Add some asserts.
6789
603490bf
AB
67902019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6791
6792 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6793 update return statements.
6794 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6795 declaration, and update comment to match.
6796 * gdbtypes.c (resolve_dynamic_array): Update call to
6797 dwarf2_evaluate_property to match new return type.
6798
592f9d27
AB
67992019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6800
6801 * valarith.c (value_subscripted_rvalue): Change lowerbound
6802 parameter type from int to LONGEST.
6803 * value.h (value_subscripted_rvalue): Likewise in declaration.
6804
60cfcb20
AB
68052019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6806
6807 * cli/cli-utils.c (info_print_command_completer): New function.
6808 * cli/cli-utils.h: Add 'completer.h' include, and forward
6809 declaration for 'struct cmd_list_element'.
6810 (info_print_command_completer): Declare.
6811 * stack.c (_initialize_stack): Add completer for 'info locals' and
6812 'info args'.
6813 * symtab.c (_initialize_symtab): Add completer for 'info
6814 variables' and 'info functions'.
6815 * NEWS: Mention completion for additional info commands.
6816
b16507e0
AB
68172019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6818
6819 * cli/cli-utils.c (extract_info_print_args): Delete.
6820 (extract_arg_maybe_quoted): Delete.
6821 (info_print_options_defs): New variable.
6822 (make_info_print_options_def_group): New function.
6823 (extract_info_print_options): Define new function.
6824 * cli/cli-utils.h (extract_info_print_args): Delete.
6825 (struct info_print_options): New structure.
6826 (extract_info_print_options): Declare new function.
6827 * stack.c (info_locals_command): Update to use new
6828 extract_info_print_options, also add a header comment.
6829 (info_args_command): Likewise.
6830 * symtab.c (info_variables_command): Likewise.
6831 (info_functions_command): Likewise.
6832
021d8588
AB
68332019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6834
6835 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6836 to extract string arguments.
6837 * common/common-utils.c (extract_string_maybe_quoted): New function.
6838 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6839
b777eb6d
TT
68402019-07-11 Tom Tromey <tromey@adacore.com>
6841
6842 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6843 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6844 * top.h (gdbinit): Don't declare.
6845 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6846 into...
6847 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6848 * top.c (gdb_init): Don't call init_cli_cmds.
6849 (gdbinit): Remove.
6850 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6851
72ee03ff
TT
68522019-07-11 Tom Tromey <tromey@adacore.com>
6853
6854 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6855 after it has been moved.
6856
00db9531
SM
68572019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6858
6859 * valops.c (value_must_coerce_to_target): Change return type to
6860 bool.
6861 * value.h (value_must_coerce_to_target): Likewise.
6862
f2478a7e
SM
68632019-07-10 Simon Marchi <simon.marchi@efficios.com>
6864
6865 * breakpoint.c (is_hardware_watchpoint): Remove
6866 forward-declaration.
6867 (is_masked_watchpoint): Change return type to bool.
6868 (is_tracepoint): Likewise.
6869 (is_breakpoint): Likewise.
6870 (is_hardware_watchpoint): Likewise.
6871 (is_watchpoint): Likewise.
6872 (is_no_memory_software_watchpoint): Likewise.
6873 (is_catchpoint): Likewise.
6874 (breakpoint_1): Make FILTER parameter's return type bool.
6875 is_masked_watchpoint): Change return type to bool.
6876 (save_breakpoints): Make FILTER parameter's return type bool.
6877 * breakpoint.h (is_breakpoint): Change return type to bool.
6878 (is_watchpoint): Likewise.
6879 (is_catchpoint): Likewise.
6880 (is_tracepoint): Likewise.
6881
0d12e84c
TT
68822019-07-10 Tom Tromey <tom@tromey.com>
6883
6884 * defs.h: Don't include gdbarch.h.
6885 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6886 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6887 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6888 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6889 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6890 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6891 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6892 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6893 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6894 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6895 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6896 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6897 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6898 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6899 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6900 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6901 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6902 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6903 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6904 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6905 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6906 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6907 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6908 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6909 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6910 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6911 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6912
f06f1252
TT
69132019-07-10 Tom Tromey <tromey@adacore.com>
6914
6915 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6916 * breakpoint.c (init_ada_exception_breakpoint): Register as
6917 bp_catchpoint.
6918 (print_one_breakpoint_location, print_one_breakpoint): Use
6919 is_ada_exception_catchpoint.
6920 * ada-lang.c (class ada_catchpoint_location): Pass
6921 bp_loc_software_breakpoint to bp_location constructor.
6922 (is_ada_exception_catchpoint): New function.
6923
7a5d944b
TT
69242019-07-10 Tom Tromey <tromey@adacore.com>
6925
6926 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6927 VEC.
6928 (struct arm_exidx_entry): New method operator<.
6929 (struct arm_exidx_data) <section_maps>: Change type.
6930 (arm_exidx_data_free): Remove.
6931 (arm_exidx_data_key): Change type. Move lower.
6932 (arm_exidx_new_objfile): Update.
6933 (arm_compare_exidx_entries): Remove.
6934 (arm_find_exidx_entry, _initialize_arm_tdep)
6935
48c66e1d
TT
69362019-07-10 Tom Tromey <tromey@adacore.com>
6937
6938 * solib-spu.c (ocl_program_data_key): Change type.
6939 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6940 Update.
6941
a269fbf1
TT
69422019-07-10 Tom Tromey <tromey@adacore.com>
6943
6944 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6945 (struct solib_aix_inferior_data) <library_list>: Change type.
6946 (solib_aix_inferior_data_handle): Change type.
6947 (get_solib_aix_inferior_data): Update.
6948 (solib_aix_free_library_list): Remove.
6949 (library_list_start_library): Update.
6950 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6951 return type.
6952 (solib_aix_get_library_list)
6953 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6954 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6955
c294730c
TT
69562019-07-10 Tom Tromey <tromey@adacore.com>
6957
6958 * solib-dsbt.c (struct dsbt_info): Add initializers.
6959 (solib_dsbt_pspace_data): Change type.
6960 (dsbt_pspace_data_cleanup): Remove.
6961 (get_dsbt_info, _initialize_dsbt_solib): Update.
6962
9d52077d
TT
69632019-07-10 Tom Tromey <tromey@adacore.com>
6964
6965 * spu-tdep.c (spu_overlay_data): Change type.
6966 (spu_get_overlay_table, spu_overlay_new_objfile)
6967 (_initialize_spu_tdep): Update.
6968
22a20dca
TT
69692019-07-10 Tom Tromey <tromey@adacore.com>
6970
6971 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6972 destructor.
6973 (dbx_objfile_data_key): Change type and declare later.
6974 (DBX_SYMFILE_INFO): Rewrite.
6975 * dbxread.c (dbx_objfile_data_key): Change type.
6976 (dbx_symfile_init): Update.
6977 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6978 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6979 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6980
cb60f420
TT
69812019-07-10 Tom Tromey <tromey@adacore.com>
6982
6983 * jit.c (jit_program_space_key): Change type. Move lower.
6984 (get_jit_program_space_data): Update.
6985 (jit_program_space_data_cleanup): Remove.
6986 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6987 Update.
6988 (struct jit_program_space_data): Add initializers.
6989
51df2ae3
TT
69902019-07-10 Tom Tromey <tromey@adacore.com>
6991
6992 * solib-darwin.c (struct darwin_info): Add initializers.
6993 (solib_darwin_pspace_data): Change type.
6994 (darwin_pspace_data_cleanup): Remove.
6995 (get_darwin_info, _initialize_darwin_solib): Update.
6996
18101a35
TT
69972019-07-10 Tom Tromey <tromey@adacore.com>
6998
6999 * remote-sim.c (struct sim_inferior_data): Add initializers,
7000 constructor, and destructor.
7001 (sim_inferior_data_key): Change type. Move lower.
7002 (check_for_duplicate_sim_descriptor): Update.
7003 (get_sim_inferior_data): Use new. Update.
7004 (~sim_inferior_data_cleanup): Rename from
7005 sim_inferior_data_cleanup. Simplify.
7006 (gdbsim_close_inferior, simulator_command)
7007 (sim_command_completer, _initialize_remote_sim): Update.
7008 (next_pid, INITIAL_PID): Move earlier.
7009
05b08ac1
TT
70102019-07-10 Tom Tromey <tromey@adacore.com>
7011
7012 * python/python-internal.h (create_thread_object): Return
7013 gdbpy_ref.
7014 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7015 * python/py-inferior.c (struct threadlist_entry): Add
7016 constructor.
7017 <thread_obj>: Now a gdbpy_ref.
7018 (thread_to_thread_object): Update.
7019 (add_thread_object): Use new.
7020 (delete_thread_object): Use delete.
7021 (infpy_threads): Update.
7022 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7023 GIL.
7024
32372d80
TT
70252019-07-10 Tom Tromey <tromey@adacore.com>
7026
7027 * valops.c (value_cast): Specialize error message for Ada.
7028
5c458ae8
SM
70292019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7030
7031 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7032
4c462cb0
SM
70332019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7034
7035 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7036 bpstat_should_step): Return bool, adjust comments.
7037 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7038 bpstat_should_step): Likewise.
7039
89abbcc2
AH
70402019-07-10 Alan Hayward <alan.hayward@arm.com>
7041
7042 * features/Makefile: Use feature target descriptions for Arm.
7043 * features/arm/arm-core.c: Generate new file.
7044 * features/arm/arm-fpa.c: Likewise.
7045 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7046 * features/arm/arm-m-profile.c: Likewise.
7047 * features/arm/arm-vfpv2.c: Likewise.
7048 * features/arm/arm-vfpv3.c: Likewise.
7049 * features/arm/xscale-iwmmxt.c: Likewise.
7050 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7051
166a82be
AH
70522019-07-10 Alan Hayward <alan.hayward@arm.com>
7053
7054 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7055 ptrace earlier.
7056
9fb4c7e9
AH
70572019-07-10 Alan Hayward <alan.hayward@arm.com>
7058
7059 * features/aarch64-pauth.c: Regenerate.
7060
e2d0f980
SM
70612019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7062
7063 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7064 bool.
7065 (bpstat_what): Use false instead of 0.
7066
a38118e5
PA
70672019-07-09 Pedro Alves <palves@redhat.com>
7068
7069 * break-catch-throw.c (is_exception_catchpoint): New.
7070 * breakpoint.c (print_one_breakpoint_location): New parameter
7071 'raw_loc'. Handle it. Use
7072 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7073 looking at the breakpoint's type.
7074 (print_one_breakpoint): If handling "maint info breakpoints", also
7075 print locations of exception catchpoints.
7076 * breakpoint.h (is_exception_catchpoint): Declare.
7077
cb1e4e32
PA
70782019-07-09 Pedro Alves <palves@redhat.com>
7079
7080 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7081 "addr" field.
7082 (allocate_location_exception_catchpoint): New.
7083 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7084 (initialize_throw_catchpoint_ops): Install
7085 allocate_location_exception_catchpoint as allocate_location
7086 method.
7087 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7088 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7089 bp_loc_other.
7090 (breakpoint_address_is_meaningful): Delete.
7091 (bl_address_is_meaningful): New.
7092 (breakpoint_locations_match): Adjust comment.
7093 (bp_location_from_bp_type): New, factored out of...
7094 (bp_location::bp_location(breakpoint *)): ... this.
7095 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7096 factored out of...
7097 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7098 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7099 breakpoint_address_is_meaningful.
7100 (bp_locations_compare): Adjust comment.
7101 (update_global_location_list): Use bl_address_is_meaningful
7102 instead of breakpoint_address_is_meaningful.
7103 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7104 explicit.
7105 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7106 * python/py-breakpoint.c (bppy_get_location): No longer check
7107 whether location is null.
7108
b58a68fe
PA
71092019-07-09 Pedro Alves <palves@redhat.com>
7110
7111 PR c++/15468
7112 * breakpoint.c (print_one_breakpoint_location): Remove
7113 single-location assert.
7114
268a13a5
TT
71152019-07-09 Tom Tromey <tom@tromey.com>
7116
7117 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7118 * configure: Rebuild.
7119 * configure.ac: Change common to gdbsupport.
7120 * gdbsupport: Rename from common.
7121 * acinclude.m4: Change common to gdbsupport.
7122 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7123 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7124 gdbsupport.
7125 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7126 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7127 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7128 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7129 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7130 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7131 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7132 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7133 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7134 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7135 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7136 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7137 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7138 coff-pe-read.c, command.h, compile/compile-c-support.c,
7139 compile/compile-c.h, compile/compile-cplus-symbols.c,
7140 compile/compile-cplus-types.c, compile/compile-cplus.h,
7141 compile/compile-loc2c.c, compile/compile.c, completer.c,
7142 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7143 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7144 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7145 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7146 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7147 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7148 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7149 features/aarch64-core.c, features/aarch64-fpu.c,
7150 features/aarch64-pauth.c, features/aarch64-sve.c,
7151 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7152 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7153 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7154 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7155 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7156 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7157 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7158 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7159 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7160 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7161 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7162 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7163 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7164 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7165 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7166 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7167 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7168 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7169 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7170 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7171 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7172 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7173 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7174 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7175 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7176 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7177 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7178 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7179 minsyms.c, mips-linux-tdep.c, namespace.h,
7180 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7181 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7182 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7183 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7184 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7185 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7186 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7187 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7188 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7189 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7190 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7191 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7192 procfs.c, producer.c, progspace.h, psymtab.h,
7193 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7194 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7195 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7196 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7197 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7198 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7199 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7200 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7201 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7202 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7203 target-memory.c, target.c, target.h, target/waitstatus.c,
7204 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7205 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7206 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7207 unittests/array-view-selftests.c,
7208 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7209 unittests/common-utils-selftests.c,
7210 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7211 unittests/format_pieces-selftests.c,
7212 unittests/function-view-selftests.c,
7213 unittests/lookup_name_info-selftests.c,
7214 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7215 unittests/mkdir-recursive-selftests.c,
7216 unittests/observable-selftests.c,
7217 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7218 unittests/parse-connection-spec-selftests.c,
7219 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7220 unittests/scoped_fd-selftests.c,
7221 unittests/scoped_mmap-selftests.c,
7222 unittests/scoped_restore-selftests.c,
7223 unittests/string_view-selftests.c, unittests/style-selftests.c,
7224 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7225 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7226 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7227 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7228 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7229 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7230
5b0e2db4
AB
72312019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7232
7233 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7234 bool value.
7235 (decode_digits_ordinary): Set explicit_line field in sal.
7236 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7237 symtab_and_line that was set on an explicit line number in
7238 assembler code. Do always update the recorded symtab and line if
7239 we do skip the prologue.
7240
0ba852ab
AB
72412019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7242
7243 * breakpoint.c (set_breakpoint_location_function): Remove
7244 explicit_loc parameter.
7245 (momentary_breakpoint_from_master): Update call to
7246 set_breakpoint_location_function.
7247 (add_location_to_breakpoint): Likewise.
7248
b3a7d171
AB
72492019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7250
7251 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7252 required features based on default bfd type when no specific bfd
7253 is present.
7254
1f6f6e21
PW
72552019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7256
7257 * NEWS: Mention that GDB printf and eval commands can now print
7258 C-style and Ada-style convenience var strings without
7259 calling the inferior.
7260 * printcmd.c (printf_c_string): Locally print GDB internal var
7261 instead of transiting via the inferior.
7262 (printf_wide_c_string): Likewise.
7263
72642019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7265
5862c886 7266 PR breakpoints/25011
ea142fbf
AH
7267 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7268
0598af48
TT
72692019-07-04 Tom Tromey <tom@tromey.com>
7270
7271 PR tui/24724:
7272 * tui/tui-winsource.c (tui_clear_source_content): Update.
7273 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7274 (tui_update_breakpoint_info): Update.
7275 (tui_set_exec_info_content): Update.
7276 * tui/tui-source.c (tui_set_source_content_nil): Update.
7277 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7278 has_break.
7279 * tui/tui-data.h (enum tui_bp_flag): New.
7280 (tui_bp_flags): New enum flags type.
7281 (struct tui_source_element) <break_mode>: Change type. Rename
7282 from has_break.
7283 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7284 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7285 constants.
7286 * tui/tui-winsource.h: Fix comment.
7287
350fab54
AH
72882019-07-04 Alan Hayward <alan.hayward@arm.com>
7289
7290 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7291 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7292 (store_fpregs_to_thread)
7293 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7294 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7295 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7296 (IWMMXT_REGS_SIZE): Add define.
7297 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7298 (fetch_vfp_regs, store_vfp_regs)
7299 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7300 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7301
f0452268
AH
73022019-07-04 Alan Hayward <alan.hayward@arm.com>
7303
7304 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7305 defines.
7306 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7307 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7308 (ARM_INT_REGISTER_SIZE): ...to this.
7309 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7310 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7311 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7312 (arm_linux_collect_gregset, supply_nwfpe_register)
7313 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7314 defines.
7315 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7316 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7317 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7318 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7319 (arm_return_in_memory, arm_store_return_value)
7320 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7321 (arm_record_ld_st_multiple): Likewise.
7322 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7323 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7324
e935475c
AH
73252019-07-04 Alan Hayward <alan.hayward@arm.com>
7326
7327 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7328 AARCH64_DISPLACED_MODIFIED_INSNS.
7329 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7330 (aarch64_displaced_step_copy_insn): Likewise.
7331 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7332 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7333 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7334 ARM_DISPLACED_MODIFIED_INSNS.
7335 * arm-tdep.c (arm_gdbarch_init): Likewise.
7336 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7337 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7338 (struct arm_displaced_step_closure): Use
7339 ARM_DISPLACED_MODIFIED_INSNS.
7340
df0bb381
AH
73412019-07-04 Alan Hayward <alan.hayward@arm.com>
7342
7343 * features/Makefile: Remove unused xml files.
7344 * features/aarch64.xml: Remove.
7345 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7346 * features/i386/amd64-avx-avx512.xml: Remove.
7347 * features/i386/amd64-avx-linux.xml: Remove.
7348 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7349 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7350 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7351 * features/i386/amd64-avx-mpx.xml: Remove.
7352 * features/i386/amd64-avx.xml: Remove.
7353 * features/i386/amd64-linux.xml: Remove.
7354 * features/i386/amd64-mpx-linux.xml: Remove.
7355 * features/i386/amd64-mpx.xml: Remove.
7356 * features/i386/amd64.xml: Remove.
7357 * features/i386/i386-avx-avx512-linux.xml: Remove.
7358 * features/i386/i386-avx-avx512.xml: Remove.
7359 * features/i386/i386-avx-linux.xml: Remove.
7360 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7361 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7362 * features/i386/i386-avx-mpx-linux.xml: Remove.
7363 * features/i386/i386-avx-mpx.xml: Remove.
7364 * features/i386/i386-avx.xml: Remove.
7365 * features/i386/i386-linux.xml: Remove.
7366 * features/i386/i386-mmx-linux.xml: Remove.
7367 * features/i386/i386-mmx.xml: Remove.
7368 * features/i386/i386-mpx-linux.xml: Remove.
7369 * features/i386/i386-mpx.xml: Remove.
7370 * features/i386/i386.xml: Remove.
7371 * features/i386/x32-avx-avx512-linux.xml: Remove.
7372 * features/i386/x32-avx-linux.xml: Remove.
7373 * features/i386/x32-linux.xml: Remove.
7374
edd6266a
AH
73752019-07-04 Alan Hayward <alan.hayward@arm.com>
7376
7377 * regformats/aarch64.dat: Remove.
7378 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7379 * regformats/i386/amd64-avx-linux.dat: Remove.
7380 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7381 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7382 * regformats/i386/amd64-linux.dat: Remove.
7383 * regformats/i386/amd64-mpx-linux.dat: Remove.
7384 * regformats/i386/amd64.dat: Remove.
7385 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7386 * regformats/i386/i386-avx-linux.dat: Remove.
7387 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7388 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7389 * regformats/i386/i386-linux.dat: Remove.
7390 * regformats/i386/i386-mmx-linux.dat: Remove.
7391 * regformats/i386/i386-mpx-linux.dat: Remove.
7392 * regformats/i386/i386.dat: Remove.
7393 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7394 * regformats/i386/x32-avx-linux.dat: Remove.
7395 * regformats/i386/x32-linux.dat: Remove.
7396
2b40fda7
AH
73972019-07-04 Alan Hayward <alan.hayward@arm.com>
7398
7399 * aarch64-tdep.c: Remove xml self tests.
7400 * amd64-linux-tdep.c: Likewise.
7401 * amd64-tdep.c: Likewise.
7402 * i386-linux-tdep.c: Likewise.
7403 * i386-tdep.c: Likewise.
7404
5f4ba3e7
PA
74052019-07-03 Pedro Alves <palves@redhat.com>
7406
7407 PR cli/24732
7408 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7409 (pipe_cmd_option_defs): New.
7410 (make_pipe_cmd_options_def_group): New.
7411 (pipe_command): Use gdb::option::process_options.
7412 (pipe_command_completer): New function.
7413 (_initialize_cli_cmds): Install completer for "pipe" command.
7414
3d9be6f5
PA
74152019-07-03 Pedro Alves <palves@redhat.com>
7416
7417 * cli/cli-option.c (union option_value) <string>: New field.
7418 (struct option_def_and_value): Add ctor, move ctor, dtor and
7419 use DISABLE_COPY_AND_ASSIGN.
7420 (option_def_and_value::clear_value): New.
7421 (parse_option, save_option_value_in_ctx, get_val_type_str)
7422 (add_setshow_cmds_for_options): Handle var_string.
7423 * cli-option.h (union option_def::var_address) <string>: New
7424 field.
7425 (struct string_option_def): New.
7426 * maint-test-options.c (struct test_options_opts): Add default
7427 ctor and use DISABLE_COPY_AND_ASSIGN.
7428 <string_opt>: New field.
7429 (test_options_opts::~test_options_opts): New.
7430 (test_options_opts::dump): Also dump "-string".
7431 (test_options_option_defs): Install "string.
7432
41fc454c
PA
74332019-07-03 Pedro Alves <palves@redhat.com>
7434
7435 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7436 option_value with a null enumeration.
7437 (complete_options): Save the option values in the context.
7438 (save_option_value_in_ctx): New, factored out from ...
7439 (process_options): ... here.
7440 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7441 of the function.
7442 * maint-test-options.c (test_options_opts::dump): New, factored
7443 out from ...
7444 (maintenance_test_options_command_mode): ... here.
7445 (maintenance_test_options_command_completion_result): Delete.
7446 (maintenance_test_options_command_completion_text): Update
7447 comment.
7448 (maintenance_show_test_options_completion_result): Change
7449 prototype. Just print
7450 maintenance_test_options_command_completion_text.
7451 (save_completion_result): New.
7452 (maintenance_test_options_completer_mode): Pass options context to
7453 complete_options, and then save a dump.
7454 (_initialize_maint_test_options): Use add_cmd to install "maint
7455 show test-options-completion-result".
7456
fdbc9870
PA
74572019-07-03 Pedro Alves <palves@redhat.com>
7458
7459 * NEWS (New commands): Mention "with" and "maint with".
7460 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7461 (with_command, with_command_completer): New.
7462 (pipe_command): Adjust to new repeat_previous
7463 interface.
7464 (_initialize_cli_cmds): Install the "with" command and its "w"
7465 alias.
7466 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7467 declarations.
7468 * cli/cli-setshow.c (parse_cli_var_uinteger)
7469 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7470 argument strings for all var_types.
7471 (get_setshow_command_value_string): New, factored out from ...
7472 (do_show_command): ... this.
7473 * cli/cli-setshow.h: Include <string>.
7474 (get_setshow_command_value_string): Declare.
7475 * command.h (repeat_previous): Now returns const char *. Adjust
7476 comment.
7477 * maint.c: Include "cli/cli-cmds.h".
7478 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7479 (_initialize_maint_cmds): Register the "maintenance with" command.
7480 * top.c (repeat_previous): Move bits from pipe_command here:
7481 Return the saved command line, if any; error out if there's no
7482 command to relaunch.
7483
c6ac8931
PA
74842019-07-03 Pedro Alves <palves@redhat.com>
7485
7486 * NEWS (New commands): Mention "maint set/show test-settings"
7487 instead of "maint test-settings".
7488 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7489 (maintenance_test_settings_set_list): Rename to ...
7490 (maintenance_set_test_settings_list): ... this.
7491 (maintenance_test_settings_show_list): Rename to ...
7492 (maintenance_show_test_settings_list): ... this.
7493 (maintenance_test_settings_cmd): Delete.
7494 (maintenance_test_settings_set_cmd): ...
7495 (maintenance_set_test_settings_cmd): ... this.
7496 (maintenance_test_settings_show_cmd): ...
7497 (maintenance_show_test_settings_cmd): ... this.
7498 (maintenance_test_settings_show_value_cmd):
7499 (maintenance_show_test_settings_value_cmd): ... this.
7500 (_initialize_maint_test_settings): No longer install the "maint
7501 test-settings" prefix command. Rename "maint test-settings set"
7502 to "maint set test-settings", and "maint test-settings show" to
7503 "maint show test-settings". Adjust all subcommands.
7504
d1fcf2fd
PA
75052019-07-03 Pedro Alves <palves@redhat.com>
7506
7507 * maint-test-settings.c: Fix file's intro comment. Replace all
7508 references to "test-options" with references to "test-settings",
7509 in comments.
7510
970f9d09
PA
75112019-07-03 Pedro Alves <palves@redhat.com>
7512
7513 * maint-test-settings.c (maintenance_test_settings_xxx)
7514 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7515 New.
7516 (maintenance_test_settings_enums): Use them.
7517 (maintenance_test_settings_enum): Default to
7518 maintenance_test_settings_xxx.
7519 (_initialize_maint_test_settings): Initialize
7520 MAINTENANCE_TEST_SETTINGS_FILENAME.
7521
f3869b1a
SM
75222019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7523
7524 * breakpoint.h (remove_breakpoints_inf): Change return type to
7525 void, move function documentation here.
7526 * breakpoint.c (remove_breakpoints_inf): Change return type to
7527 void, move function documentation to header.
7528
54d66006
PA
75292019-07-02 Pedro Alves <palves@redhat.com>
7530
7531 * NEWS (Completion improvements): Mention "info threads".
7532 * thread.c (struct info_threads_opts, info_threads_option_defs)
7533 (make_info_threads_options_def_group): New.
7534 (info_threads_command): Use gdb::option::process_options.
7535 (info_threads_command_completer): New.
7536 (_initialize_thread): Use gdb::option::build_help to build the
7537 help text for "info threads".
7538
854f6088
SM
75392019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7540
7541 * defs.h (generic_load): Move from here...
7542 * symfile.h (generic_load): ... to here. Rename name parameter
7543 to args.
7544 * symfile.c (generic_load): Add comment.
7545
54ee4252
TT
75462019-07-01 Tom Tromey <tromey@adacore.com>
7547
7548 * dwarf2read.c
7549 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7550 declaration of without_params. Fix formatting.
7551
65392b3e
TT
75522019-07-01 Tom Tromey <tromey@adacore.com>
7553
7554 * ada-exp.y (find_primitive_type): Update.
7555 * ada-lang.h (ada_lookup_symbol): Update.
7556 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7557 parameter.
7558 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7559
7d7571f0
SDJ
75602019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7561
7562 PR breakpoints/24541
7563 * gdbarch.c: Regenerate.
7564 * gdbarch.h: Regenerate.
7565 * gdbarch.sh: Add 'stap_adjust_register'.
7566 * i386-tdep.c: Include '<unordered_set>'.
7567 (i386_stap_adjust_register): New function.
7568 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7569 * stap-probe.c (stap_parse_register_operand): Call
7570 'gdbarch_stap_adjust_register'.
7571
5af5392a
SDJ
75722019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7573
7574 PR python/24742
7575 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7576 * python/python.c (do_start_initialization): Use 'xmalloc'
7577 instead of 'PyMem_Malloc'.
7578
10d06d82
TT
75792019-06-28 Tom Tromey <tromey@adacore.com>
7580
7581 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7582 for Ada.
7583
1b7f24cd
TT
75842019-06-27 Tom Tromey <tromey@adacore.com>
7585
7586 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7587 objfile_key.
7588 (arm_find_mapping_symbol, arm_record_special_symbol)
7589 (_initialize_arm_tdep): Update.
7590 (arm_objfile_data_free): Remove.
7591
3d507ff2
TT
75922019-06-27 Tom Tromey <tromey@adacore.com>
7593
7594 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7595 to cp_print_static_field.
7596
762c164d
TT
75972019-06-26 Tom Tromey <tromey@adacore.com>
7598
7599 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7600 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7601 declare.
7602
aa2f9bcf
AH
76032019-06-26 Alan Hayward <alan.hayward@arm.com>
7604
7605 * features/aarch64-core.c (create_feature_aarch64_core):
7606 Regenerate.
7607 * features/aarch64-core.xml: Add cpsr flags.
7608
3426ae57
AH
76092019-06-26 Alan Hayward <alan.hayward@arm.com>
7610
7611 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7612 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7613
4838e44c
SM
76142019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7615
7616 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7617 field.
7618 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7619 use.
7620 (arm_record_special_symbol): Don't insert new symbol in sorted
7621 position, push it at the end.
7622
54cc7474
SM
76232019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7624
7625 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7626 (arm_mapping_symbol_s): Remove.
7627 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7628 (arm_mapping_symbol_vec): New typedef.
7629 (struct arm_per_objfile): Add constructor.
7630 <section_maps>: Change type to
7631 std::unique_ptr<arm_mapping_symbol_vec[]>.
7632 (arm_compare_mapping_symbols): Remove.
7633 (arm_find_mapping_symbol): Adjust to section_maps type change.
7634 (arm_objfile_data_free): Call delete on arm_per_objfile.
7635 (arm_record_special_symbol): Adjust to section_maps type change.
7636 Allocate arm_per_objfile with new.
7637
b65b566c
PW
76382019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7639
7640 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7641 with the command prefix.
7642
c2fc64f5
TT
76432019-06-25 Tom Tromey <tom@tromey.com>
7644
7645 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7646 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7647
fb54fa76
TT
76482019-06-25 Tom Tromey <tom@tromey.com>
7649
7650 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7651 type.
7652 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7653 protected.
7654
f7952c57
TT
76552019-06-25 Tom Tromey <tom@tromey.com>
7656
7657 * tui/tui-winsource.c
7658 (tui_source_window_base::set_is_exec_point_at): Add check against
7659 LOA_ADDRESS.
7660
17568d78
TT
76612019-06-25 Tom Tromey <tom@tromey.com>
7662
7663 * tui/tui-source.c (tui_set_source_content): Don't check before
7664 xfree.
7665 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7666
53e7cdba
TT
76672019-06-25 Tom Tromey <tom@tromey.com>
7668
7669 * tui/tui-winsource.h (tui_update_source_window_as_is)
7670 (tui_alloc_source_buffer, tui_line_is_displayed)
7671 (tui_addr_is_displayed): Change type of win_info.
7672 * tui/tui-winsource.c (tui_update_source_window_as_is)
7673 (tui_clear_source_content, tui_show_source_line)
7674 (tui_show_source_content, tui_source_window_base::refill)
7675 (tui_source_window_base::set_is_exec_point_at)
7676 (tui_source_window_base::set_is_exec_point_at)
7677 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7678 (tui_alloc_source_buffer, tui_line_is_displayed)
7679 (tui_addr_is_displayed): Change type of win_info. Update.
7680 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7681 (tui_source_window_base::do_make_visible_with_new_height):
7682 Update.
7683 * tui/tui-source.c (tui_set_source_content)
7684 (tui_set_source_content_nil)
7685 (tui_source_window::do_scroll_vertical): Update.
7686 * tui/tui-layout.c (show_layout): Update.
7687 * tui/tui-disasm.c (tui_set_disassem_content)
7688 (tui_disasm_window::do_scroll_vertical): Update.
7689 * tui/tui-data.h (tui_win_content): Remove.
7690 (struct tui_gen_win_info) <content, content_size>: Remove.
7691 (struct tui_source_element): Add initializers and destructor.
7692 (union tui_which_element, struct tui_win_element): Remove.
7693 (struct tui_source_window_base) <content>: New field.
7694 (struct tui_data_window): Remove destructor.
7695 (tui_alloc_content, tui_free_win_content)
7696 (tui_free_all_source_wins_content): Don't declare.
7697 * tui/tui-data.c (tui_initialize_static_data): Update.
7698 (init_content_element, tui_alloc_content): Remove.
7699 (~tui_gen_win_info): Update.
7700 (~tui_data_window, tui_free_all_source_wins_content)
7701 (tui_free_win_content, free_content, free_content_elements):
7702 Remove.
7703
7908abbf
TT
77042019-06-25 Tom Tromey <tom@tromey.com>
7705
7706 * tui/tui-winsource.h (tui_clear_source_content)
7707 (tui_erase_source_content, tui_show_source_content): Change type
7708 of win_info.
7709 * tui/tui-winsource.c (tui_clear_source_content)
7710 (tui_erase_source_content, tui_show_source_content): Change type
7711 of win_info.
7712 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7713 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7714 win_info.
7715 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7716 win_info.
7717 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7718
02c28df0
TT
77192019-06-25 Tom Tromey <tom@tromey.com>
7720
7721 * tui/tui-winsource.c (tui_clear_source_content)
7722 (tui_source_window_base::set_is_exec_point_at): Update.
7723 * tui/tui-source.c (tui_set_source_content_nil): Update.
7724 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7725 a bool.
7726 * tui/tui-data.c (init_content_element): Update.
7727
6658b1bf
TT
77282019-06-25 Tom Tromey <tom@tromey.com>
7729
7730 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7731 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7732 * tui/tui-layout.c (init_and_make_win): Update.
7733 * tui/tui.h (enum tui_win_type): Update.
7734 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7735 tui_win_is_auxillary.
7736 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7737 tui_win_is_auxillary.
7738
21e1c91e
TT
77392019-06-25 Tom Tromey <tom@tromey.com>
7740
7741 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7742 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7743 (tui_delete_data_content_windows, tui_display_all_data)
7744 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7745 Update.
7746 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7747 * tui/tui-regs.c (tui_last_regs_line_no)
7748 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7749 (tui_show_registers): Update.
7750 (tui_show_register_group): Return void. Update.
7751 (tui_display_registers_from, tui_display_reg_element_at_line)
7752 (tui_display_registers_from_line, tui_check_register_values):
7753 Update.
7754 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7755 member.
7756 (struct tui_data_window) <regs_content>: Now a std::vector.
7757 <regs_content_count>: Remove.
7758 (tui_add_content_elements, tui_free_data_content): Don't declare.
7759 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7760 (init_content_element): Remove DATA_WIN case. Add assert.
7761 (tui_add_content_elements): Remove.
7762 (tui_data_window): Update.
7763 (tui_free_data_content): Remove.
7764 (free_content_elements): Remove DATA_WIN case.
7765
115ac53b
TT
77662019-06-25 Tom Tromey <tom@tromey.com>
7767
7768 * tui/tui-data.c (tui_data_item_window): Update.
7769 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7770 * tui/tui-windata.c (tui_display_all_data)
7771 (tui_display_data_from_line): Update.
7772 (tui_check_data_values): Remove.
7773 * tui/tui-regs.c (tui_show_register_group)
7774 (tui_display_reg_element_at_line): Update.
7775 * tui/tui-hooks.c (tui_register_changed)
7776 (tui_refresh_frame_and_register_information): Call
7777 tui_check_register_values.
7778 * tui/tui-data.h (struct tui_data_window) <data_content,
7779 data_content_count, data_type>: Remove.
7780 (enum tui_data_type): Remove.
7781
7782 * tui/tui-data.c (tui_data_window::clear_detail)
7783 (~tui_data_window): Update.
7784
eaf9738b
TT
77852019-06-25 Tom Tromey <tom@tromey.com>
7786
7787 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7788 declare.
7789 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7790 Rename from tui_first_data_item_displayed. Update.
7791 (tui_data_window::refresh_all)
7792 (tui_data_window::do_scroll_vertical): Update.
7793 * tui/tui-data.h (struct tui_data_window)
7794 <first_data_item_displayed>: Declare new method.
7795
31ca4723
TT
77962019-06-25 Tom Tromey <tom@tromey.com>
7797
7798 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7799 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7800 contents...
7801 (tui_initialize_static_data): ...here.
7802
41bcff7f
TT
78032019-06-25 Tom Tromey <tom@tromey.com>
7804
7805 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7806 (tui_display_registers_from, tui_check_register_values): Update.
7807 (tui_display_register): Remove win_info parameter; update.
7808 (tui_get_register): Change type of parameters.
7809 * tui/tui-data.h (struct tui_data_element): Remove.
7810 (union tui_which_element) <data>: Remove.
7811 <data_window>: Change type.
7812 (struct tui_data_item_window): New.
7813 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7814 case. Add assert.
7815 (~tui_data_item_window): New destructor.
7816 (free_content_elements): Remove DATA_ITEM_WIN case.
7817
d2802c33
TT
78182019-06-25 Tom Tromey <tom@tromey.com>
7819
7820 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7821 Remove.
7822
dd835f8b
TT
78232019-06-25 Tom Tromey <tom@tromey.com>
7824
7825 * tui/tui-data.h (struct tui_command_element): Remove.
7826 (union tui_which_element) <command>: Remove.
7827 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7828 assert.
7829 (free_content_elements): Remove CMD_WIN case.
7830
bd7db367
TT
78312019-06-25 Tom Tromey <tom@tromey.com>
7832
7833 * tui/tui-layout.c (tui_set_layout): Update.
7834 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7835 * tui/tui-data.c (layout_def): Update.
7836
3add462f
TT
78372019-06-25 Tom Tromey <tom@tromey.com>
7838
7839 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7840 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7841 (tui_source_window_base::set_new_height): Update.
7842 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7843 Update.
7844 (tui_set_locator_fullname, tui_set_locator_info)
7845 (tui_show_frame_info): Update.
7846 * tui/tui-source.c (tui_set_source_content)
7847 (tui_source_is_displayed): Update.
7848 * tui/tui-layout.c (show_source_disasm_command, show_data)
7849 (show_source_or_disasm_and_command): Update.
7850 * tui/tui-disasm.c (tui_set_disassem_content)
7851 (tui_get_begin_asm_address): Update.
7852 * tui/tui-data.h (struct tui_locator_element): Remove.
7853 (union tui_which_element) <locator>: Remove.
7854 (struct tui_locator_window): New.
7855 (tui_locator_win_info_ptr): Change return type.
7856 * tui/tui-data.c (_locator): Change type.
7857 (tui_locator_win_info_ptr): Change return type.
7858 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7859 (tui_alloc_content): Add assert.
7860
489e9d8b
TT
78612019-06-25 Tom Tromey <tom@tromey.com>
7862
7863 * tui/tui-winsource.c
7864 (tui_exec_info_window::maybe_allocate_content): New method.
7865 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7866 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7867 (make_source_or_disasm_window): Add cast.
7868 * tui/tui-data.h (union tui_which_element) <simple_string>:
7869 Remove.
7870 (struct tui_source_info): New.
7871 (struct tui_source_window_base) <execution_info>: Change type.
7872 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7873 case, and add assert.
7874 (tui_alloc_content): Add assert.
7875
c3fabb7d
TT
78762019-06-25 Tom Tromey <tom@tromey.com>
7877
7878 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7879 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7880 * tui/tui-data.c (tui_alloc_win_info): Remove.
7881
bbc228ee
TT
78822019-06-25 Tom Tromey <tom@tromey.com>
7883
7884 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7885 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7886 can_highlight.
7887
5fcee43a
TT
78882019-06-25 Tom Tromey <tom@tromey.com>
7889
7890 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7891 make_visible_with_new_height method.
7892 (tui_win_info::make_visible_with_new_height): New method.
7893 (tui_source_window_base::do_make_visible_with_new_height)
7894 (tui_data_window::do_make_visible_with_new_height)
7895 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7896 (make_visible_with_new_height): Remove.
7897 (tui_resize_all, tui_adjust_win_heights): Use
7898 make_visible_with_new_height method.
7899 * tui/tui-data.h (struct tui_win_info)
7900 <do_make_visible_with_new_height, make_visible_with_new_height>:
7901 New methods.
7902 (struct tui_source_window_base, struct tui_data_window)
7903 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7904 methods.
7905
d83f1fe6
TT
79062019-06-25 Tom Tromey <tom@tromey.com>
7907
7908 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7909 method.
7910 (update_tab_width): Call update_tab_width method.
7911 * tui/tui-data.h (struct tui_win_info)
7912 (struct tui_source_window_base) <update_tab_width>: New methods.
7913
17374de4
TT
79142019-06-25 Tom Tromey <tom@tromey.com>
7915
7916 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7917 parameter.
7918 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7919 parameter.
7920 (tui_gen_win_info::make_visible): Update.
7921 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7922 parameter.
7923 * tui/tui-data.h (enum tui_box): New enum.
7924 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7925
f936bca2
TT
79262019-06-25 Tom Tromey <tom@tromey.com>
7927
7928 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7929 init_and_make_win for EXEC_INFO_WIN.
7930 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7931 longer inline.
7932 (struct tui_win_info) <~tui_win_info>: Inline.
7933 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7934 Don't declare.
7935 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7936 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7937 Remove.
7938 (tui_initialize_static_data): Update.
7939 (~tui_gen_win_info): Handle more cleanup here.
7940 (~tui_source_window_base): Delete "execution_info".
7941 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7942
d6ba6a11
TT
79432019-06-25 Tom Tromey <tom@tromey.com>
7944
7945 * tui/tui-layout.c (make_command_window): Don't set
7946 can_highlight.
7947 (show_source_disasm_command): Call the reset method.
7948 (show_data): Don't set can_highlight. Call the reset method.
7949 (tui_gen_win_info::reset): Rename from init_gen_win_info
7950 (init_and_make_win): Simplify. Return tui_gen_win_info.
7951 (show_source_or_disasm_and_command): Call the reset method.
7952 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7953 (struct tui_cmd_window): Set can_highlight.
7954
48a3bd16
TT
79552019-06-25 Tom Tromey <tom@tromey.com>
7956
7957 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7958 from make_visible.
7959 (tui_make_visible, tui_make_invisible): Rewrite.
7960 (tui_win_info::make_visible): Remove.
7961 (tui_source_window_base::make_visible): Update.
7962 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7963 method. Moved from...
7964 (struct tui_win_info) <make_visible>: ...here.
7965
c3bd716f
TT
79662019-06-25 Tom Tromey <tom@tromey.com>
7967
7968 * tui/tui-winsource.c
7969 (tui_source_window_base::do_scroll_horizontal): Remove direction
7970 parameter.
7971 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7972 direction parameter.
7973 * tui/tui-win.c (tui_win_info::forward_scroll)
7974 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7975 (tui_win_info::right_scroll): Update.
7976 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7977 direction parameter.
7978 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7979 direction parameter.
7980 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7981 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7982 Remove direction parameter.
7983 (struct tui_source_window_base, struct tui_source_window)
7984 (struct tui_disasm_window, struct tui_data_window)
7985 (struct tui_cmd_window): Update.
7986
21c32dca
TT
79872019-06-25 Tom Tromey <tom@tromey.com>
7988
7989 * tui/tui-winsource.h (tui_set_exec_info_content)
7990 (tui_show_exec_info_content, tui_erase_exec_info_content)
7991 (tui_clear_exec_info_content, tui_update_exec_info): Change
7992 argument to tui_source_window_base.
7993 * tui/tui-winsource.c (tui_set_exec_info_content)
7994 (tui_show_exec_info_content, tui_erase_exec_info_content)
7995 (tui_clear_exec_info_content, tui_update_exec_info): Change
7996 argument to tui_source_window_base.
7997
73fbdc65
TT
79982019-06-25 Tom Tromey <tom@tromey.com>
7999
8000 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8001 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8002
33325343
TT
80032019-06-25 Tom Tromey <tom@tromey.com>
8004
8005 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8006 check.
8007
29d2c474
TT
80082019-06-25 Tom Tromey <tom@tromey.com>
8009
8010 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8011 type to void.
8012 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8013 type to void.
8014 * tui/tui-source.c (tui_set_source_content): Update.
8015 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8016
152f3f4b
TT
80172019-06-25 Tom Tromey <tom@tromey.com>
8018
8019 * tui/tui-win.c (window_name_completer, tui_set_focus)
8020 (tui_all_windows_info): Use name method.
8021 * tui/tui-data.h (struct tui_gen_win_info)
8022 (struct tui_source_window, struct tui_disasm_window)
8023 (struct tui_data_window, struct tui_cmd_window) <name>: New
8024 method.
8025 (tui_win_name): Don't declare.
8026 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8027 (tui_win_name): Remove.
8028
be4da588
TT
80292019-06-25 Tom Tromey <tom@tromey.com>
8030
8031 * tui/tui-winsource.h (tui_update_source_window)
8032 (tui_update_source_window_as_is): Change parameter type.
8033 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8034 to be a tui_source_window_base.
8035 (tui_update_source_window_as_is): Likewise.
8036 * tui/tui-win.c (make_visible_with_new_height): Update.
8037
5b81daba
TT
80382019-06-25 Tom Tromey <tom@tromey.com>
8039
8040 * tui/tui-winsource.c (tui_erase_source_content)
8041 (tui_show_source_content, tui_show_exec_info_content)
8042 (tui_erase_exec_info_content): Use refresh_window method.
8043 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8044 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8045 from tui_refresh_win.
8046 (tui_data_window::refresh_window): New method.
8047 (tui_win_info::refresh, tui_source_window_base::refresh)
8048 (tui_refresh_all): Use refresh_window method.
8049 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8050 method.
8051 * tui/tui-regs.c (tui_display_register): Call refresh_window
8052 method.
8053 * tui/tui-layout.c (show_source_disasm_command)
8054 (show_source_or_disasm_and_command): Call refresh_window method.
8055 * tui/tui-data.h (struct tui_gen_win_info)
8056 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8057 New method.
8058
cb2ce893
TT
80592019-06-25 Tom Tromey <tom@tromey.com>
8060
8061 * tui/tui.c (tui_rl_other_window, tui_enable)
8062 (tui_is_window_visible, tui_get_command_dimension): Update.
8063 * tui/tui-winsource.c (tui_update_source_window_as_is)
8064 (tui_clear_source_content, tui_erase_source_content)
8065 (tui_show_source_line, tui_source_window_base::refill)
8066 (tui_source_window_base::do_scroll_horizontal)
8067 (tui_source_window_base::set_is_exec_point_at)
8068 (tui_update_breakpoint_info, tui_set_exec_info_content)
8069 (tui_alloc_source_buffer, tui_line_is_displayed)
8070 (tui_addr_is_displayed): Update.
8071 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8072 (tui_check_and_display_highlight_if_needed)
8073 (tui_win_info::make_visible, tui_win_info::refresh)
8074 (tui_refresh_all): Update.
8075 * tui/tui-windata.c (tui_first_data_item_displayed)
8076 (tui_delete_data_content_windows, tui_erase_data_content)
8077 (tui_display_all_data, tui_data_window::refresh_all)
8078 (tui_check_data_values): Update.
8079 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8080 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8081 (tui_win_info::backward_scroll, tui_refresh_all_win)
8082 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8083 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8084 (tui_source_window_base::set_new_height)
8085 (tui_data_window::set_new_height)
8086 (make_invisible_and_set_new_height)
8087 (make_visible_with_new_height, new_height_ok)
8088 (parse_scrolling_args): Update.
8089 * tui/tui-stack.c (tui_show_frame_info): Update.
8090 * tui/tui-source.c (tui_set_source_content)
8091 (tui_set_source_content_nil, tui_source_is_displayed)
8092 (tui_source_window::do_scroll_vertical): Update.
8093 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8094 (tui_display_registers_from, tui_display_reg_element_at_line)
8095 (tui_check_register_values, tui_reg_command): Update.
8096 * tui/tui-layout.c (tui_default_win_height)
8097 (show_source_disasm_command, show_data, init_and_make_win)
8098 (show_source_or_disasm_and_command): Update.
8099 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8100 (tui_redisplay_readline, tui_mld_flush)
8101 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8102 (tui_getc): Update.
8103 * tui/tui-disasm.c (tui_set_disassem_content)
8104 (tui_disasm_window::do_scroll_vertical): Update.
8105 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8106 Now virtual.
8107 (struct tui_win_info): Derive from tui_gen_win_info.
8108 <~tui_win_info>: Mark as override.
8109 <generic>: Remove member.
8110 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8111 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8112 (~tui_data_window, ~tui_win_info)
8113 (tui_free_all_source_wins_content): Update.
8114 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8115
ab313b35
TT
81162019-06-25 Tom Tromey <tom@tromey.com>
8117
8118 * tui/tui-layout.c (init_and_make_win): Use new.
8119 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8120 destructor, initializers.
8121 (tui_alloc_generic_win_info): Don't declare.
8122 * tui/tui-data.c (_locator): Add argument to constructor.
8123 (source_win, disasm_win): New globals.
8124 (exec_info): Remove.
8125 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8126 Update.
8127 (tui_alloc_generic_win_info): Remove.
8128 (init_content_element): Use new.
8129 (tui_win_info::tui_win_info): Update.
8130 (free_content_elements) <case DATA_WIN>: Use delete.
8131
dc2c33e4
TT
81322019-06-25 Tom Tromey <tom@tromey.com>
8133
8134 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8135 * tui/tui-windata.c (tui_first_data_item_displayed)
8136 (tui_delete_data_content_windows): Update.
8137 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8138 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8139 (tui_display_registers_from, tui_check_register_values): Update.
8140 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8141 pointer.
8142 * tui/tui-data.c (init_content_element): Update. Allocate the new
8143 window.
8144 (tui_free_data_content): Update.
8145 (free_content_elements) <case DATA_WIN>: Free the window.
8146
214a5cbe
TT
81472019-06-25 Tom Tromey <tom@tromey.com>
8148
8149 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8150 Update.
8151 * tui/tui-layout.c (make_command_window)
8152 (show_source_disasm_command, show_data, init_and_make_win)
8153 (show_source_or_disasm_and_command): Update.
8154 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8155 method.
8156 <can_highight, is_highlighted>: Now bool.
8157 (tui_set_win_highlight): Don't declare.
8158 * tui/tui-data.c (tui_set_win_highlight): Remove.
8159
8e2daf15
TT
81602019-06-25 Tom Tromey <tom@tromey.com>
8161
8162 * tui/tui-wingeneral.c (make_visible): Remove check of window
8163 type.
8164
8903bd8a
TT
81652019-06-25 Tom Tromey <tom@tromey.com>
8166
8167 * tui/tui-win.c (tui_win_info::max_height)
8168 (tui_cmd_window::max_height): New methods.
8169 (new_height_ok): Call max_height.
8170 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8171 <max_height>: New method.
8172
3f02ce1e
TT
81732019-06-25 Tom Tromey <tom@tromey.com>
8174
8175 * tui/tui-win.c (tui_source_window_base::set_new_height)
8176 (tui_data_window::set_new_height): New methods.
8177 (make_invisible_and_set_new_height): Call set_new_height method.
8178 * tui/tui-data.h (struct tui_win_info)
8179 (struct tui_source_window_base, struct tui_data_window)
8180 <set_new_height>: New method.
8181
1825f487
TT
81822019-06-25 Tom Tromey <tom@tromey.com>
8183
8184 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8185 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8186 tui_refresh_data_win.
8187 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8188 method.
8189 (tui_refresh_all_win): Call the refresh_all method.
8190 (tui_set_focus): Likewise.
8191 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8192 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8193 Likewise.
8194
ad54d15b
TT
81952019-06-25 Tom Tromey <tom@tromey.com>
8196
8197 * tui/tui-winsource.h (tui_refill_source_window)
8198 (tui_set_is_exec_point_at): Don't declare.
8199 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8200 (tui_source_window_base::refill): Rename from
8201 tui_refill_source_window.
8202 (tui_source_window_base::do_scroll_horizontal): Update.
8203 (tui_source_window_base::set_is_exec_point_at): Rename from
8204 tui_set_is_exec_point_at.
8205 (tui_update_all_breakpoint_info): Update.
8206 * tui/tui-stack.c (tui_show_frame_info): Update.
8207 * tui/tui-layout.c (show_data): Add cast.
8208 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8209 * tui/tui-data.h (struct tui_source_window_base) <refill,
8210 set_is_exec_point_at>: New methods.
8211 (tui_source_windows, tui_add_to_source_windows): Update types.
8212 (tui_add_to_source_windows): Remove redundant declaration.
8213 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8214 (tui_source_windows): Change return type.
8215 (tui_clear_source_windows_detail): Update.
8216 (tui_add_to_source_windows): Change type of parameter.
8217 (tui_free_all_source_wins_content): Update.
8218
2042b506
TT
82192019-06-25 Tom Tromey <tom@tromey.com>
8220
8221 * tui/tui-wingeneral.c (tui_win_info::refresh)
8222 (tui_source_window_base::refresh): New methods.
8223 (tui_refresh_all): Call the refresh method.
8224 * tui/tui-data.h (struct tui_win_info)
8225 (struct tui_source_window_base) <refresh>: New method.
8226
56122977
TT
82272019-06-25 Tom Tromey <tom@tromey.com>
8228
8229 * tui/tui.h (tui_is_window_visible): Return bool.
8230 * tui/tui.c (tui_is_window_visible): Return bool.
8231 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8232 (tui_make_visible, tui_make_invisible)
8233 (tui_win_info::make_visible)
8234 (tui_source_window_base::make_visible, make_all_visible)
8235 (tui_make_all_visible, tui_make_all_invisible): Update.
8236 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8237 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8238 bool.
8239 (struct tui_win_info, struct tui_source_window_base)
8240 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8241 * tui/tui-data.c (tui_init_generic_part): Update.
8242
cda37efb
TT
82432019-06-25 Tom Tromey <tom@tromey.com>
8244
8245 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8246 (tui_source_window_base::make_visible): New methods.
8247 (make_all_visible): Make method call.
8248 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8249 (struct tui_source_window_base, struct tui_cmd_window): Override
8250 make_visible.
8251 (tui_win_is_source_type): Don't declare.
8252 * tui/tui-data.c (tui_win_is_source_type): Remove.
8253
6a0ee02c
TT
82542019-06-25 Tom Tromey <tom@tromey.com>
8255
8256 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8257 NULL check.
8258
63901aec
TT
82592019-06-25 Tom Tromey <tom@tromey.com>
8260
8261 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8262 Inline constructor. Add initializers for members.
8263 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8264 constructors; now inline in class.
8265
ceb13a13
TT
82662019-06-25 Tom Tromey <tom@tromey.com>
8267
8268 * tui/tui-regs.c (tui_show_registers): Update.
8269 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8270 bool.
8271 * tui/tui-data.c (tui_data_window::clear_detail)
8272 (tui_data_window): Update.
8273
238eb706
TT
82742019-06-25 Tom Tromey <tom@tromey.com>
8275
8276 * tui/tui-windata.c (tui_display_all_data)
8277 (tui_display_data_from_line, tui_display_data_from)
8278 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8279 Update.
8280 * tui/tui-regs.c (tui_last_regs_line_no)
8281 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8282 (tui_show_registers, tui_show_register_group)
8283 (tui_display_registers_from, tui_display_reg_element_at_line)
8284 (tui_display_registers_from_line, tui_check_register_values)
8285 (tui_reg_next, tui_reg_prev): Update.
8286 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8287 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8288 tui_data_window.
8289 (struct tui_win_info) <detail>: Remove. Add new fields from
8290 tui_data_info.
8291 (TUI_DATA_WIN): Add cast.
8292 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8293 (~tui_data_window): Simplify.
8294
81491aa0
TT
82952019-06-25 Tom Tromey <tom@tromey.com>
8296
8297 * tui/tui-layout.c (show_source_disasm_command)
8298 (show_source_or_disasm_and_command): Update.
8299 * tui/tui-io.c (update_cmdwin_start_line)
8300 (tui_redisplay_readline): Update.
8301 * tui/tui-data.h (struct tui_command_info): Remove.
8302 (struct tui_win_info) <detail>: Remove command_info member.
8303 (struct tui_data_window) <start_line>: New member, from
8304 tui_command_info.
8305 (TUI_CMD_WIN): Add casts.
8306
e6e41501
TT
83072019-06-25 Tom Tromey <tom@tromey.com>
8308
8309 * tui/tui-winsource.c (tui_update_source_window)
8310 (tui_refill_source_window)
8311 (tui_source_window_base::do_scroll_horizontal)
8312 (tui_update_breakpoint_info, tui_set_exec_info_content)
8313 (tui_show_exec_info_content, tui_erase_exec_info_content)
8314 (tui_clear_exec_info_content): Update.
8315 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8316 Update.
8317 * tui/tui-win.c (make_invisible_and_set_new_height)
8318 (make_visible_with_new_height): Update.
8319 * tui/tui-source.c (tui_set_source_content)
8320 (tui_show_symtab_source): Update.
8321 * tui/tui-layout.c (extract_display_start_addr)
8322 (show_source_disasm_command, show_data)
8323 (make_source_or_disasm_window)
8324 (show_source_or_disasm_and_command): Update.
8325 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8326 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8327 "gdbarch".
8328 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8329 to tui_source_window_base.
8330 (struct tui_win_info) <detail>: Remove source_info member.
8331 (struct tui_source_window_base) <has_locator>: Inline.
8332 Move contents from tui_source_info; rename has_locator member to
8333 m_has_locator.
8334 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8335 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8336 header file.
8337 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8338 Simplify.
8339 (tui_free_all_source_wins_content): Cast to
8340 tui_source_window_base.
8341
44f0e208
TT
83422019-06-25 Tom Tromey <tom@tromey.com>
8343
8344 * tui/tui-win.c (make_invisible_and_set_new_height)
8345 (make_visible_with_new_height): Call has_locator method.
8346 * tui/tui-layout.c (show_source_disasm_command, show_data)
8347 (show_source_or_disasm_and_command): Update for bool change.
8348 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8349 (tui_win_info) <has_locator>: New method.
8350 (struct tui_source_window_base) <has_locator>: New method.
8351 (tui_win_has_locator): Don't declare.
8352 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8353 from tui_win_has_locator.
8354 (tui_source_window_base): Use false, not FALSE.
8355
7778b912
TT
83562019-06-25 Tom Tromey <tom@tromey.com>
8357
8358 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8359 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8360 clear_detail method directly.
8361 (tui_clear_win_detail): Remove.
8362
f83d391c
TT
83632019-06-25 Tom Tromey <tom@tromey.com>
8364
8365 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8366 "this", not TUI_DISASM_WIN.
8367
13446e05
TT
83682019-06-25 Tom Tromey <tom@tromey.com>
8369
8370 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8371 declare.
8372 * tui/tui-winsource.c
8373 (tui_source_window_base::do_scroll_horizontal): Rename from
8374 tui_horizontal_source_scroll.
8375 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8376 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8377 from tui_vertical_data_scroll.
8378 * tui/tui-win.h (tui_scroll): Don't declare.
8379 * tui/tui-win.c (tui_win_info::forward_scroll)
8380 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8381 (tui_win_info::right_scroll): Rename and update.
8382 (tui_scroll_forward_command, tui_scroll_backward_command)
8383 (tui_scroll_left_command, tui_scroll_right_command): Update.
8384 (tui_scroll): Remove.
8385 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8386 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8387 from tui_vertical_source_scroll.
8388 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8389 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8390 from tui_vertical_disassem_scroll.
8391 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8392 do_scroll_horizontal>: New methods.
8393 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8394 Likewise.
8395 (struct tui_source_window_base): Add do_scroll_horizontal.
8396 (struct tui_source_window, struct tui_disasm_window): Add
8397 do_scroll_vertical.
8398 (struct tui_data_window, struct tui_cmd_window): Add
8399 do_scroll_horizontal and do_scroll_vertical.
8400 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8401
5cf82909
TT
84022019-06-25 Tom Tromey <tom@tromey.com>
8403
8404 * tui/tui-data.h (struct tui_source_window_base): New struct.
8405 (struct tui_source_window): Derive from tui_source_window_base.
8406 (struct tui_disasm_window): New struct.
8407 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8408 from tui_source_window::clear_detail.
8409 (tui_source_window_base): Rename from tui_source_window.
8410 (~tui_source_window_base): Rename from ~tui_source_window.
8411 (tui_alloc_win_info): Create a tui_disasm_window.
8412
ee1d42d6
TT
84132019-06-25 Tom Tromey <tom@tromey.com>
8414
8415 * tui/tui-data.h (struct tui_source_window)
8416 (struct tui_data_window): Declare destructors.
8417 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8418 destructors.
8419 (tui_win_info): Simplify.
8420
b4eb2452
TT
84212019-06-25 Tom Tromey <tom@tromey.com>
8422
8423 * tui/tui-winsource.c (tui_display_main)
8424 (tui_update_source_windows_with_addr)
8425 (tui_update_all_breakpoint_info): Update.
8426 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8427 (new_height_ok, parse_scrolling_args): Update.
8428 * tui/tui-stack.c (tui_show_frame_info): Update.
8429 * tui/tui-data.h (struct tui_list): Remove.
8430 (tui_source_windows): Return a reference to a std::vector.
8431 * tui/tui-data.c (source_windows): Now a std::vector.
8432 (tui_source_windows): Change return type.
8433 (tui_clear_source_windows): Rewrite.
8434 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8435 (tui_free_all_source_wins_content): Rewrite.
8436
8761a91b
TT
84372019-06-25 Tom Tromey <tom@tromey.com>
8438
8439 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8440 (struct tui_data_window, struct tui_cmd_window): Declare
8441 clear_detail method.
8442 * tui/tui-data.c (tui_source_window::clear_detail)
8443 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8444 methods.
8445 (tui_clear_win_detail): Simplify.
8446
0ed69eda
TT
84472019-06-25 Tom Tromey <tom@tromey.com>
8448
8449 * tui/tui-layout.c (make_source_window, make_disasm_window)
8450 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8451 Return the new window.
8452 (show_source_disasm_command, show_data)
8453 (show_source_or_disasm_and_command): Update.
8454
82432e10
TT
84552019-06-25 Tom Tromey <tom@tromey.com>
8456
8457 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8458 parameter. Return the new window.
8459 (show_source_disasm_command): Update and remove NULL check.
8460 (show_source_or_disasm_and_command): Update.
8461
ec328aa5
TT
84622019-06-25 Tom Tromey <tom@tromey.com>
8463
8464 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8465
33b906ab
TT
84662019-06-25 Tom Tromey <tom@tromey.com>
8467
8468 * tui/tui-data.h (struct tui_win_info): Make constructor
8469 protected. Make destructor virtual. Add initializers.
8470 (tui_source_window, tui_data_window, tui_cmd_window): New
8471 classes.
8472 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8473 constructor. Add "type" parameter.
8474 (tui_source_window, tui_data_window, tui_cmd_window): New
8475 constructors.
8476 (tui_alloc_win_info): Instantiate the appropriate subclass.
8477
e7e11af4
TT
84782019-06-25 Tom Tromey <tom@tromey.com>
8479
8480 * tui/tui-win.c (tui_resize_all): Use delete.
8481 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8482 destructor.
8483 (tui_free_window): Don't declare.
8484 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8485 Update.
8486
6792b55e
TT
84872019-06-25 Tom Tromey <tom@tromey.com>
8488
8489 * tui/tui-data.h (struct tui_win_info): Add constructor.
8490 * tui/tui-data.c (tui_alloc_win_info): Use new.
8491 (tui_free_window): Use delete.
8492
f95675e1
TT
84932019-06-22 Tom Tromey <tom@tromey.com>
8494
8495 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8496 declare.
8497 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8498
5bff081c
TT
84992019-06-22 Tom Tromey <tom@tromey.com>
8500
8501 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8502 declare.
8503 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8504
47e3f474
TV
85052019-06-22 Tom de Vries <tdevries@suse.de>
8506
8507 * dwarf2read.c (create_addrmap_from_aranges)
8508 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8509 instead of '%zu'.
8510
fd5866f6
SM
85112019-06-21 Simon Marchi <simon.marchi@efficios.com>
8512
8513 * dwarf2read.h (dwarf2_section_info_def): Remove.
8514 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8515 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8516 std::vector<dwarf2_section_info>.
8517 (struct dwo_file) <~dwo_file>: Remove.
8518 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8519 types field.
8520 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8521 (dwarf2_read_debug_names): Likewise.
8522 (create_debug_types_hash_table): Change parameter type to
8523 array_view, adjust code accordingly.
8524 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8525 (partial_die_info::fixup): Likewise.
8526 (determine_prefix): Likewise.
8527 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8528
fb1eb2f9
SM
85292019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8530
8531 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8532 gdb_bfd_ref_ptr.
8533 <~dwo_file>: Remove call to gdb_bfd_unref.
8534 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8535 gdb_bfd_ref_ptr::get.
8536
51ac9db5
SM
85372019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8538
8539 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8540 type to htab_up.
8541 * dwarf2read.c (struct dwo_file): Initialize fields.
8542 <~dwo_file>: New.
8543 (free_dwo_file): Remove, move content to ~dwo_file.
8544 (struct dwo_file_deleter): Remove.
8545 (dwo_file_up>: Remove custom deleter.
8546 (free_dwo_files): Remove.
8547 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8548 dwo_files.
8549 (process_skeletonless_type_units): Call unique_ptr::get.
8550 (allocate_dwo_file_hash_table): Add deleter to created hash
8551 table. Change return type to htab_up.
8552 (lookup_dwo_file_slot): Don't memset dwo_file, call
8553 unique_ptr::get.
8554 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8555 (create_dwo_unit_in_dwp_v2): Likewise.
8556 (open_and_init_dwo_file): Likewise.
8557 (free_dwo_file_from_slot): Remove.
8558
dc4ccb6f
SM
85592019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8560
8561 * dwarf2read.h (struct dwarf2_section_info) <readin,
8562 is_virtual>: Change type to bool.
8563 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8564 true instead of 1.
8565
e6a1c5cb
TT
85662019-06-19 Tom Tromey <tom@tromey.com>
8567
8568 * tui/tui-data.h (tui_init_content_element): Don't declare.
8569
6f6ffbeb
TT
85702019-06-19 Tom Tromey <tom@tromey.com>
8571
8572 * tui/tui-data.h (tui_init_win_info): Don't declare.
8573
f23f598e
TV
85742019-06-19 Tom de Vries <tdevries@suse.de>
8575
8576 * dwarf2read.h (abstract_to_concrete): Change type to
8577 std::unordered_map<sect_offset, std::vector<sect_offset>,
8578 gdb::hash_enum<sect_offset>>.
8579
680e1bee
TT
85802019-06-19 Tom Tromey <tromey@adacore.com>
8581
8582 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8583 EVAL_AVOID_SIDE_EFFECTS specially.
8584
dcf37923
TT
85852019-06-19 Tom Tromey <tromey@adacore.com>
8586
8587 * source-cache.c (highlighter): New global.
8588 (source_cache::get_source_lines): Create a highlighter on demand.
8589
494986d5
AB
85902019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8591
8592 * defs.h (deprecated_interactive_hook): Delete declaration.
8593 * interps.c (clear_interpreter_hooks): Remove use of
8594 deprecated_interactive_hook.
8595 * top.c (deprecated_interactive_hook): Delete definition.
8596 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8597
3360b6e7
TV
85982019-06-18 Tom de Vries <tdevries@suse.de>
8599
8600 PR gdb/24515
8601 * dwarf2read.h (abstract_to_concrete): Change type from
8602 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8603 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8604 * dwarf2read.c (read_variable): Update.
8605 (dwarf2_fetch_die_loc_sect_off): Update.
8606
310b3441
TV
86072019-06-17 Tom de Vries <tdevries@suse.de>
8608
8609 PR gdb/24617
8610 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8611 accessing parent[parent_len - 1].
8612
ba9777be
PP
86132019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8614
8615 PR gdb/24364
8616 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8617 call dtrace_process_dof with NULL dof.
8618
2b9f6e89
TV
86192019-06-16 Tom de Vries <tdevries@suse.de>
8620
8621 PR gdb/24445
8622 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8623
431b3ead
TT
86242019-06-16 Tom Tromey <tom@tromey.com>
8625
8626 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8627 (make_all_visible): Use address of member.
8628
d04b44a1
TT
86292019-06-16 Tom Tromey <tom@tromey.com>
8630
8631 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8632 (tui_free_window, free_content, free_content_elements): Remove
8633 unnecessary cast.
8634 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8635 cast.
8636 * tui/tui-regs.c (tui_show_register_group)
8637 (tui_display_registers_from, tui_display_reg_element_at_line):
8638 Remove unnecessary cast.
8639
bf5142e7
AB
86402019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8641
8642 * linux-nat.c (normal_mask): Delete.
8643 (_initialize_linux_nat): Don't initialise normal_mask.
8644
c4973306
SM
86452019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8646
8647 PR gdb/24445
8648 * dwarf-index-write.h (write_psymtabs_to_index): Add
8649 dwz_basename parameter.
8650 * dwarf-index-write.c (write_gdbindex): Move file writing to
8651 write_gdbindex_1. Change return type void.
8652 (assert_file_size): Move up, remove filename parameter.
8653 (write_gdbindex_1): New function.
8654 (write_debug_names): Change return type to void, call
8655 assert_file_size.
8656 (struct index_wip_file): New struct.
8657 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8658 file logic to index_wip_file. Write index for dwz file if
8659 needed.
8660 (save_gdb_index_command): Pass basename of dwz file, if present.
8661 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8662 build-id of dwz file, if present.
8663 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8664 (dwarf2_get_dwz_file): Likewise.
8665 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8666 (dwarf2_get_dwz_file): Likewise.
8667
395f9c91
TT
86682019-06-16 Tom Tromey <tom@tromey.com>
8669
8670 * coffread.c (process_coff_symbol): Use xstrdup.
8671 * value.c (create_internalvar): Use xstrdup.
8672
cafb3438
TT
86732019-06-16 Tom Tromey <tom@tromey.com>
8674
8675 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8676 * breakpoint.c (stopin_command, stopat_command)
8677 (until_break_command, decode_location_default): Remove unnecessary
8678 cast.
8679 * utils.c (subset_compare): Remove unnecessary cast.
8680 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8681 cast.
8682 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8683 cast.
8684 * infcmd.c (path_command): Remove unnecessary cast.
8685 * coffread.c (decode_type): Remove unnecessary cast.
8686 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8687 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8688 * tui/tui-stack.c (tui_show_locator_content)
8689 (tui_show_frame_info): Remove unnecessary cast.
8690 * tui/tui-win.c (tui_scroll_forward_command)
8691 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8692 (parse_scrolling_args): Remove unnecessary cast.
8693 * tui/tui-data.c (init_win_info, tui_del_window)
8694 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8695 (free_content_elements): Remove unnecessary cast.
8696 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8697 unnecessary cast.
8698 * tui/tui-source.c (tui_set_source_content)
8699 (tui_vertical_source_scroll): Remove unnecessary cast.
8700 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8701 cast.
8702 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8703 * tui/tui-regs.c (tui_display_registers_from)
8704 (tui_display_register): Remove unnecessary cast.
8705 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8706 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8707 (make_visible): Remove unnecessary cast.
8708 * tui/tui-winsource.c (tui_erase_source_content)
8709 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8710 unnecessary cast.
8711 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8712 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8713 * stabsread.c (read_type, read_array_type, read_range_type):
8714 Remove unnecessary cast.
8715 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8716 (parse_symbol, parse_type, upgrade_type, parse_external)
8717 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8718 unnecessary cast.
8719 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8720
730ead81
TT
87212019-06-16 Tom Tromey <tom@tromey.com>
8722
8723 * tui/tui-data.c (tui_alloc_generic_win_info)
8724 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8725 checks.
8726
584a927c
AB
87272019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8728 Andrew Burgess <andrew.burgess@embecosm.com>
8729
8730 * f-typeprint.c (f_print_type): Don't return early for not
8731 associated or not allocated types.
8732 (f_type_print_varspec_suffix): Add print_rank parameter and print
8733 ranks of array types in case they dangling.
8734 (f_type_print_base): Add print_rank parameter.
8735
30056ea0
AB
87362019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8737
8738 * NEWS: Mention new MI commands.
8739 * break-catch-throw.c (enum exception_event_kind): Move to
8740 breakpoint.h.
8741 (print_mention_exception_catchpoint): Output text as a single
8742 message.
8743 (catch_exception_command_1): Rename to...
8744 (catch_exception_event): ...this, make non-static, update header
8745 command, and change some parameter types.
8746 (catch_catch_command): Update for changes to
8747 catch_exception_command_1.
8748 (catch_throw_command): Likewise.
8749 (catch_rethrow_command): Likewise.
8750 * breakpoint.c (enum exception_event_kind): Delete.
8751 * breakpoint.h (enum exception_event_kind): Moved here from
8752 break-catch-throw.c.
8753 (catch_exception_event): Declare.
8754 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8755 (mi_cmd_catch_throw): New function.
8756 (mi_cmd_catch_rethrow): New function.
8757 (mi_cmd_catch_catch): New function.
8758 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8759 'catch-catch' entries.
8760 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8761 (mi_cmd_catch_rethrow): Declare.
8762 (mi_cmd_catch_catch): Declare.
8763
ec8e2b6d
AB
87642019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8765
8766 * annotate.c (annotate_source_line): Change return type to void,
8767 update implementation to match.
8768 * annotate.h (annotate_source_line): Change return type to void,
8769 update header comment.
8770 * stack.c (print_frame_info): Don't change what frame information
8771 is printed based on whether annotations are on or not.
8772
0d3abd8c
AB
87732019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8774
8775 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8776 (annotate_source): Make static.
8777 (annotate_source_line): Moved from source.c and renamed from
8778 identify_source_line. Update the return type.
8779 * annotate.h (annotate_source): Delete declaration.
8780 (annotate_source_line): Declaration moved from source.h, and
8781 renamed from identify_source_line. Return type updated.
8782 * source.c (identify_source_line): Moved to annotate.c and renamed
8783 to annotate_source_line.
8784 (info_line_command): Remove check of annotation_level.
8785 * source.h (identify_source_line): Move declaration to annotate.h
8786 and rename to annotate_source_line.
8787 * stack.c: Add 'annotate.h' include.
8788 (print_frame_info): Remove check of annotation_level before
8789 calling annotate_source_line.
8790
00df30ae
AB
87912019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8792
8793 * source-cache.c (source_cache::get_plain_source_lines): Use
8794 open_source_file_with_line_charpos instead of just
8795 open_source_file, remove call to find_source_lines.
8796 (source_cache::get_source_lines): Likewise.
8797 * source.c (find_source_lines): Make static.
8798 (get_filename_and_charpos): Renamed into...
8799 (open_source_file_with_line_charpos): ..this along with changes to
8800 return a scoped_fd, and some other minor clean ups.
8801 (identify_source_line): Use open_source_file_with_line_charpos.
8802 (search_command_helper): Use open_source_file_with_line_charpos
8803 instead of just open_source_file, remove call to
8804 find_source_lines.
8805 * source.h (open_source_file_with_line_charpos): Declare new
8806 function.
8807 (find_source_lines): Delete declaration.
8808
afda45a2
AB
88092019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8810
8811 * source.c (get_filename_and_charpos): Remove fullname
8812 parameter.
8813 (identify_source_line): Update call to get_filename_and_charpos.
8814
0735b091
TT
88152019-06-14 Tom Tromey <tromey@adacore.com>
8816
8817 PR gdb/24502:
8818 * ui-style.h (skip_ansi_escape): Update comment.
8819 * ui-file.h (class no_terminal_escape_file): New class.
8820 * ui-file.c (no_terminal_escape_file::write)
8821 (no_terminal_escape_file::puts): New methods.
8822 * cli/cli-logging.c (handle_redirections): Use
8823 no_terminal_escape_file.
8824
52ce35e2
TT
88252019-06-14 Tom Tromey <tromey@adacore.com>
8826
8827 * NEWS: Move convenience variable news above Python news.
8828
73cc7272
TT
88292019-06-14 Tom Tromey <tom@tromey.com>
8830
8831 * gnulib: Move directory to top-level.
8832 * configure.ac: Don't configure gnulib.
8833 * configure: Rebuild.
8834 * common/common-defs.h: Use new path to gnulib.
8835 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8836 (GNULIB_H): Remove.
8837 (INCGNU): Look in new gnulib location.
8838 (HFILES_NO_SRCDIR): Remove gnulib files.
8839 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8840 (generated_files): Remove GNULIB_H.
8841 ($(LIBGNU), all-lib): Remove targets.
8842 (distclean): Don't mention GNULIB_BUILDDIR.
8843 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8844
f5686554
TT
88452019-06-14 Tom Tromey <tromey@adacore.com>
8846
8847 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8848 Warn if symbol file does not provide any symbols.
8849
a0c1ffed
TT
88502019-06-14 Tom Tromey <tromey@adacore.com>
8851
8852 * source.c (find_and_open_source): Respect basenames_may_differ.
8853
7c39e397
AB
88542019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8855
8856 * annotate.c (annotate_breakpoints_invalid): Make use of
8857 scoped_restore_terminal_state.
8858 (annotate_frames_invalid): Likewise.
8859
f411722c
TT
88602019-06-14 Tom Tromey <tromey@adacore.com>
8861
8862 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8863 allow assignment to an internalvar.
8864
4268ec18
TT
88652019-06-14 Tom Tromey <tromey@adacore.com>
8866
8867 * ada-lex.l: Allow "_" in attribute names.
8868
abdb711e
TT
88692019-06-14 Tom Tromey <tromey@adacore.com>
8870
8871 PR gdb/24653:
8872 * regcache.c (registers_changed): Don't call alloca.
8873 * top.c (execute_command): Don't call alloca.
8874
4c048731
PA
88752019-06-13 Pedro Alves <palves@redhat.com>
8876
8877 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8878 'expression'. When parsing an expression, error out if there's
8879 junk after "unlimited".
8880 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8881 (do_set_command): Adjust calls to is_unlimited_literal.
8882
66eb1ed3
PA
88832019-06-13 Pedro Alves <palves@redhat.com>
8884
8885 * compile/compile.c (make_compile_options_def_group): Add braces
8886 around array_view initializer.
8887 * thread.c (make_thread_apply_all_options_def_group)
8888 (make_thread_apply_all_options_def_group): Likewise.
8889
3345721a
PA
88902019-06-13 Pedro Alves <palves@redhat.com>
8891
8892 * NEWS (New commands): Mention "maint test-options
8893 require-delimiter", "maint test-options unknown-is-error", "maint
8894 test-options unknown-is-operand" and "maint show
8895 test-options-completion-result".
8896 (New command options, command completion): New section.
8897 (Completion improvements): New section.
8898 Mention that you can abbreviate "unlimited".
8899
6206060d
PA
89002019-06-13 Pedro Alves <palves@redhat.com>
8901
8902 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8903 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8904 * unittests/cli-utils-selftests.c (test_parse_flags)
8905 (test_parse_flags_qcs): Delete.
8906 (test_cli_utils): Don't call deleted functions.
8907
6665660a
PA
89082019-06-13 Pedro Alves <palves@redhat.com>
8909
8910 * thread.c: Include "cli/cli-option.h".
8911 (tp_array_compar_ascending): Global.
8912 (tp_array_compar): Delete function.
8913 (tp_array_compar_ascending, tp_array_compar_descending): New
8914 functions.
8915 (ascending_option_def, qcs_flag_option_def)
8916 (thr_qcs_flags_option_defs)
8917 (make_thread_apply_all_options_def_group)
8918 (make_thread_apply_options_def_group): New.
8919 (thread_apply_all_command): Use gdb::option::process_options.
8920 (thread_apply_command_completer)
8921 (thread_apply_all_command_completer): New.
8922 (thread_apply_command): Use gdb::option::process_options.
8923 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8924 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8925 to generate help text of "thread apply". Adjust "taas"'s help.
8926 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8927 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8928
f7e13587
PA
89292019-06-13 Pedro Alves <palves@redhat.com>
8930
8931 * thread.c (thread_apply_command): Check for invalid TID with
8932 isdigit instead of !isalpha.
8933
5d707134
PA
89342019-06-13 Pedro Alves <palves@redhat.com>
8935
8936 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8937 (validate_flags_qcs): New.
8938 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8939 (validate_flags_qcs): Declare.
8940 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8941 (make_frame_apply_options_def_group): New.
8942 (frame_apply_command_count): Process options with
8943 gdb::option::process_options.
8944 (frame_apply_completer): New.
8945 (frame_apply_level_completer, frame_apply_all_completer)
8946 (frame_apply_completer): New.
8947 (_initialize_stack): Update help of "frame apply", "frame apply
8948 level", "frame apply all" and "faas" to mention supported options
8949 and install command completers.
8950 * stack.h (frame_apply_all_completer): Declare.
8951 * thread.c: Include "stack.h".
8952 (tfaas_command): Add "--".
8953 (_initialize_thread): Update help "tfaas" to mention supported
8954 options and install command completer.
8955
272d4594
PA
89562019-06-13 Pedro Alves <palves@redhat.com>
8957
8958 * completer.c (complete_nested_command_line): New.
8959 (gdb_completion_word_break_characters_throw): Add assertion.
8960 * completer.h (complete_nested_command_line): Declare.
8961
90a1ef87
PA
89622019-06-13 Pedro Alves <palves@redhat.com>
8963
8964 * stack.c (parse_backtrace_qualifiers): New.
8965 (backtrace_command): Use it.
8966 (backtrace_command_completer): Complete on qualifiers.
8967
d4c16835
PA
89682019-06-13 Pedro Alves <palves@redhat.com>
8969
8970 * frame.c: Include "cli/cli-option.h.
8971 (user_set_backtrace_options): New.
8972 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8973 Delete.
8974 (get_prev_frame): Adjust.
8975 (boolean_option_def, uinteger_option_def)
8976 (set_backtrace_option_defs): New.
8977 (_initialize_frame): Adjust and use
8978 gdb::option::add_setshow_cmds_for_options to install "set
8979 backtrace past-main" and "set backtrace past-entry".
8980 * frame.h: Include "cli/cli-option.h".
8981 (struct frame_print_options): Forward declare.
8982 (print_frame_arguments_all, print_frame_arguments_scalars)
8983 (print_frame_arguments_none): Declare.
8984 (print_entry_values): Delete declaration.
8985 (struct frame_print_options, user_frame_print_options): New.
8986 (struct set_backtrace_options): New.
8987 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8988 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8989 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8990 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8991 (list_args_or_locals): Add frame_print_options parameter.
8992 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8993 * python/py-framefilter.c (enumerate_args): Pass down
8994 USER_FRAME_PRINT_OPTIONS.
8995 * stack.c: Include "cli/cli-option.h".
8996 (print_frame_arguments_all, print_frame_arguments_scalars)
8997 (print_frame_arguments_none): Declare.
8998 (print_raw_frame_arguments, print_entry_values): Delete.
8999 (user_frame_print_options): New.
9000 (boolean_option_def, enum_option_def, frame_print_option_defs):
9001 New.
9002 (struct backtrace_cmd_options): New.
9003 (bt_flag_option_def): New.
9004 (backtrace_command_option_defs): New.
9005 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9006 (print_frame_arg, read_frame_arg, print_frame_args)
9007 (print_frame_info, print_frame): Add frame_print_options parameter
9008 and use it.
9009 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9010 (backtrace_command_1): Add frame_print_options and
9011 backtrace_cmd_options parameters and use them.
9012 (make_backtrace_options_def_group): New.
9013 (backtrace_command): Process command options with
9014 gdb::option::process_options.
9015 (backtrace_command_completer): New.
9016 (_initialize_stack): Extend "backtrace"'s help to mention
9017 supported options. Install completer for "backtrace".
9018 Install some settings commands with add_setshow_cmds_for_options.
9019
2daf894e
PA
90202019-06-13 Pedro Alves <palves@redhat.com>
9021
9022 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9023 and that "set/show print raw frame-arguments" are now deprecated.
9024
9025 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9026 command.
9027 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9028 * stack.c (_initialize_stack): Install "set/show print
9029 raw-frame-arguments", and deprecate "set/show print raw
9030 frame-arguments".
9031 * valprint.c (_initialize_valprint): Deprecate "set/show print
9032 raw".
9033
e6ed716c
PA
90342019-06-13 Pedro Alves <palves@redhat.com>
9035
9036 * compile/compile.c (struct compile_options): New.
9037 (compile_flag_option_def, compile_command_option_defs)
9038 (make_compile_options_def_group): New.
9039 (compile_file_command): Handle options with
9040 gdb::option::process_options.
9041 (compile_file_command_completer): New function.
9042 (compile_code_command): Handle options with
9043 gdb::option::process_options.
9044 (compile_code_command_completer): New function.
9045 (_initialize_compiler): Install completers for "compile code" and
9046 "compile file". Mention available options in "compile code" and
9047 "compile code"'s help.
9048 * completer.c (advance_to_completion_word): New, factored out from
9049 ...
9050 (advance_to_expression_complete_word_point): ... this.
9051 (advance_to_filename_complete_word_point): New.
9052 * completer.h (advance_to_filename_complete_word_point): New
9053 declaration.
9054
7d8062de
PA
90552019-06-13 Pedro Alves <palves@redhat.com>
9056
9057 * compile/compile.c: Include "cli/cli-option.h".
9058 (compile_print_value): Scope data pointer is now a
9059 value_print_options pointer; adjust.
9060 (compile_print_command): Process options. Scope data pointer is
9061 now a value_print_options pointer; adjust.
9062 (_initialize_compile): Update "compile print"'s help to include
9063 supported options. Install a completer for "compile print".
9064 * cp-valprint.c (show_vtblprint, show_objectprint)
9065 (show_static_field_print): Delete.
9066 (_initialize_cp_valprint): Don't install "set print
9067 static-members", "set print vtbl", "set print object" here.
9068 * printcmd.c: Include "cli/cli-option.h" and
9069 "common/gdb_optional.h".
9070 (print_command_parse_format): Rework to fill in a
9071 value_print_options instead of a format_data.
9072 (print_value): Change parameter type from format_data pointer to
9073 value_print_options reference. Adjust.
9074 (print_command_1): Process options. Adjust to pass down a
9075 value_print_options.
9076 (print_command_completer): New.
9077 (_initialize_printcmd): Install print_command_completer as
9078 handle_brkchars completer for the "print" command. Update
9079 "print"'s help to include supported options.
9080 * valprint.c: Include "cli/cli-option.h".
9081 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9082 here from cp-valprint.c.
9083 (boolean_option_def, uinteger_option_def)
9084 (value_print_option_defs, make_value_print_options_def_group):
9085 New. Use gdb::option::add_setshow_cmds_for_options to install
9086 "set print elements", "set print null-stop", "set print repeats",
9087 "set print pretty", "set print union", "set print array", "set
9088 print address", "set print symbol", "set print array-indexes".
9089 * valprint.h: Include <string> and "cli/cli-option.h".
9090 (make_value_print_options_def_group): Declare.
9091 (print_value): Change parameter type from format_data pointer to
9092 value_print_options reference.
9093 (print_command_completer): Declare.
9094
9d0faba9
PA
90952019-06-13 Pedro Alves <palves@redhat.com>
9096
9097 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9098 (COMMON_SFILES): Add maint-test-settings.c.
9099 * cli/cli-decode.c (boolean_enums): New global, factored out from
9100 ...
9101 (add_setshow_boolean_cmd): ... here.
9102 * cli/cli-decode.h (boolean_enums): Declare.
9103 * cli/cli-option.c: New file.
9104 * cli/cli-option.h: New file.
9105 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9106 factored out from ...
9107 (parse_cli_boolean_value(const char *)): ... this.
9108 (is_unlimited_literal): Change parameter type to pointer to
9109 pointer. Adjust and advance ARG pointer.
9110 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9111 (parse_cli_var_enum): New, factored out from ...
9112 (do_set_command): ... this. Adjust.
9113 * cli/cli-setshow.h (parse_cli_boolean_value)
9114 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9115 (parse_cli_var_enum): Declare.
9116 * cli/cli-utils.c: Include "cli/cli-option.h".
9117 (get_ulongest): New.
9118 * cli/cli-utils.h (get_ulongest): Declare.
9119 (check_for_argument): New overloads.
9120 * maint-test-options.c: New file.
9121
2c722807
PA
91222019-06-13 Pedro Alves <palves@redhat.com>
9123
9124 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9125 parse a range if "-" is at the end of the string.
9126
dee7b4c8
PA
91272019-06-13 Pedro Alves <palves@redhat.com>
9128
9129 * cli/cli-setshow.c (parse_auto_binary_operation)
9130 (parse_cli_boolean_value): Don't allow "o".
9131
dca0f6c0
PA
91322019-06-13 Pedro Alves <palves@redhat.com>
9133
9134 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9135 * NEWS: Mention maint test-settings KIND.
9136 * maint-test-settings.c: New file.
9137
597bf39d
PA
91382019-06-13 Pedro Alves <palves@redhat.com>
9139
9140 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9141 completer.
9142 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9143 "set" completers.
9144
48c410fb
PA
91452019-06-13 Pedro Alves <palves@redhat.com>
9146
9147 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9148 after item.
9149
93bcb043
PA
91502019-06-13 Pedro Alves <palves@redhat.com>
9151
9152 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9153
cbba3ecd
PA
91542019-06-13 Pedro Alves <palves@redhat.com>
9155
9156 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9157 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9158 call.
9159 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9160 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9161 calls.
9162 (check_for_argument): Skip spaces after argument.
9163
b9a3f842
PA
91642019-06-13 Pedro Alves <palves@redhat.com>
9165
9166 * thread.c (thread_apply_command): Adjust TID parsing.
9167 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9168 detected before end of string.
9169 (tid_is_in_list): Error out if LIST is invalid.
9170
3844e605
PA
91712019-06-13 Pedro Alves <palves@redhat.com>
9172
9173 * completer.c (complete_line_internal_1): Rewind completion word
9174 point.
9175 (completion_tracker::advance_custom_word_point_by): Change
9176 parameter type to int.
9177 * completer.h (completion_tracker::advance_custom_word_point_by):
9178 Likewise.
9179
00b56dbe
PA
91802019-06-13 Pedro Alves <palves@redhat.com>
9181
9182 * completer.c (advance_to_completion_word): Handle delimiters.
9183
d106773e
PA
91842019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9185
9186 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9187
08f10e02
TT
91882019-06-11 Tom Tromey <tom@tromey.com>
9189
9190 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9191 (xmalloc_failed): Move to alloc.c.
9192 * alloc.c: New file.
9193 * Makefile.in (COMMON_SFILES): Add alloc.c.
9194
1c7fe951
TT
91952019-06-11 Tom Tromey <tom@tromey.com>
9196
9197 * nat/linux-waitpid.c: Don't include server.h.
9198 (linux_debug): Remove.
9199 (my_waitpid): Update.
9200
89549d7f
TT
92012019-06-11 Tom Tromey <tromey@adacore.com>
9202
9203 * infcall.c (_initialize_infcall): Remove trailing newline from
9204 help.
9205 * user-regs.c (_initialize_user_regs): Remove trailing newline
9206 from help.
9207 * typeprint.c (_initialize_typeprint): Remove trailing newline
9208 from help.
9209 * reverse.c (_initialize_reverse): Remove trailing newlines from
9210 help.
9211 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9212 from help.
9213 * language.c (add_set_language_command): Remove trailing newline
9214 from help.
9215 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9216 help.
9217 * disasm.c (_initialize_disasm): Remove trailing newline from
9218 help.
9219 * top.c (init_main): Remove trailing newline from help.
9220 * interps.c (_initialize_interpreter): Remove trailing newline
9221 from help.
9222 * btrace.c (_initialize_btrace): Remove trailing newlines from
9223 help.
9224 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9225 from help.
9226 * python/python.c (_initialize_python): Remove trailing newline
9227 from help.
9228 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9229 help.
9230 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9231 from help. Reformat some text.
9232 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9233 from help.
9234 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9235 newline from help.
9236
86108c13
TT
92372019-06-11 Tom Tromey <tromey@adacore.com>
9238
9239 * darwin-nat.c (darwin_decode_exception_message)
9240 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9241
a7067863
AB
92422019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9243
9244 * valops.c (value_slice): Check for not allocated or not
9245 associated values.
9246
9ab08412
TV
92472019-06-10 Tom de Vries <tdevries@suse.de>
9248
9249 PR gdb/24618
9250 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9251 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9252 invalid.
9253
f19e22e9
TV
92542019-06-10 Tom de Vries <tdevries@suse.de>
9255
9256 PR gdb/24611
9257 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9258 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9259
e99f9db0
TV
92602019-06-10 Tom de Vries <tdevries@suse.de>
9261
9262 PR symtab/24545
9263 * symtab.c (struct demangled_name_entry): Add language field.
9264 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9265 static minimal symbol". Set and use language field.
9266
9bf7038b
TT
92672019-06-10 Tom Tromey <tromey@adacore.com>
9268
9269 * ada-lang.c (_initialize_ada_language): Update help text.
9270
422186a9
TT
92712019-06-10 Tom Tromey <tromey@adacore.com>
9272
9273 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9274 with a newline.
9275 * guile/guile.c (handle_boot_error): Don't end warning with a
9276 newline.
9277 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9278 warning with a newline.
9279 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9280 newline.
9281 (s12z_frame_cache): Likewise.
9282 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9283 a newline.
9284 * solib-svr4.c (disable_probes_interface): Don't end warning with
9285 a newline.
9286 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9287 newline.
9288 * python/python.c (do_finish_initialization): Don't end warning
9289 with a newline.
9290
25ce02ee
TT
92912019-06-10 Tom Tromey <tom@tromey.com>
9292
9293 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9294 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9295 gdbpy_enter.
9296
caa429d8
TT
92972019-06-10 Tom Tromey <tromey@adacore.com>
9298
9299 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9300 data.
9301 (elf_new_init): Don't call stabsread_new_init.
9302 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9303 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9304 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9305
81873cc8
TV
93062019-06-10 Tom de Vries <tdevries@suse.de>
9307
9308 PR symtab/16264
9309 PR symtab/24517
9310 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9311
4fa0265e
РИ
93122019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9313
9314 * source.c (find_and_open_source): Also rewrite relative file
9315 names.
9316
1a3da2cd
AB
93172019-04-26 Amos Bird <amosbird@gmail.com>
9318
9319 * annotate.c (annotate_thread_exited): Add "thread-exited"
9320 annotation.
9321
3847a7bf
TT
93222019-06-06 Tom Tromey <tromey@adacore.com>
9323
9324 * maint.h (class scoped_command_stats): Use
9325 DISABLE_COPY_AND_ASSIGN.
9326 <print_time>: New method.
9327 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9328 print_time.
9329 (scoped_command_stats::print_time): New method.
9330
312617a3
AB
93312019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9332
9333 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9334 instructions of lengths 6 or 8 bytes.
9335
b02f78f9
PA
93362019-06-04 Pedro Alves <palves@redhat.com>
9337
9338 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9339
9340 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9341 * breakpoint.c (condition_completer): Likewise.
9342 * cli/cli-dump.c (scan_expression): Likewise.
9343 * common/filestuff.c (mkdir_recursive): Likewise.
9344 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9345 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9346 (gdb_abspath): Likewise.
9347 * compile/compile-cplus-types.c
9348 (compile_cplus_instance::decl_name): Likewise.
9349 * completer.c (complete_explicit_location):
9350 (signal_completer, reg_or_group_completer_1): Likewise.
9351 * cp-support.c (cp_remove_params_if_any): Likewise.
9352 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9353 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9354 * infcmd.c (strip_bg_char): Likewise.
9355 * linespec.c (copy_token_string): Likewise.
9356 * mi/mi-main.c (output_cores): Likewise.
9357 * psymtab.c (psymtab_search_name):
9358 * symfile.c (test_set_ext_lang_command): Likewise.
9359 * target.c (target_fileio_read_stralloc): Likewise.
9360 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9361 * value.c (complete_internalvar): Likewise.
9362
e1f2e1a2
CB
93632019-06-04 Christian Biesinger <cbiesinger@google.com>
9364
9365 Add objfile property to gdb.Type.
d3238f7d
PA
9366 * NEWS: Mention Python API addition.
9367 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9368
e664d728
PW
93692019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9370
9371 * NEWS: Mention the new set|show style [title|highlight].
9372 Mention changes to "show style", "help" and "apropos".
9373
66d8c862
PW
93742019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9375
9376 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9377 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9378 instead of print_help_for_command.
9379 (print_doc_of_command): New function.
9380 (help_list): Add 'apropos -v word' suggestion.
9381 (print_help_for_command): Style the command name using title style.
9382 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9383 (_initialize_cli_cmds): Describe -v in apropos_command help.
9384
9303eb2f
PW
93852019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9386
9387 * cli/cli-style.h (cli_style_option): Add name in constructor,
9388 add m_name class member, add constructor with intensity,
9389 add name class function.
9390 (cli_style_option::add_setshow_commands): Remove name argument.
9391 (highlight_style, title_style): New styles.
9392 * cli/cli-style.c (do_show): New function that shows a style
9393 characteristic styling the style name with itself.
9394 (set_style_name): New function.
9395 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9396 Update all callers according to the changes in cli/cli-style.h.
9397 * utils.h (fputs_highlighted): New function.
9398 * utils.c (fputs_highlighted): Likewise.
9399
e2c52041
PW
94002019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9401
9402 * NEWS: Mention new pipe command and new convenience variables.
9403
947d3946
PW
94042019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9405
9406 * cli/cli-cmds.c (pipe_command): New function.
9407 (_initialize_cli_cmds): Call add_com for pipe_command.
9408 Define | as an alias for pipe.
9409 (exit_status_set_internal_vars): New function.
9410 (shell_escape): Call exit_status_set_internal_vars.
9411 cli/cli-decode.c (find_command_name_length): Recognize | as
9412 a single character command.
9413
b8fd0918
PW
94142019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9415
9416 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9417 top.c (execute_command_to_ui_file): New function, mostly a copy
9418 of execute_command_to_string.
9419 (execute_command_to_string): Implement by calling
9420 execute_command_to_ui_file.
9421
68bb5386
PW
94222019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9423
9424 * top.h (saved_command_line): Remove declaration.
9425 * top.c (previous_saved_command_line, previous_repeat_arguments):
9426 New variables.
9427 (saved_command_line): Make static, define together with other
9428 'repeat variables'.
9429 (dont_repeat): Clear repeat_arguments.
9430 (repeat_previous, get_saved_command_line, save_command_line):
9431 New functions.
9432 (gdb_init): Initialize saved_command_line
9433 and previous_saved_command_line.
9434 * main.c (captured_main_1): Remove saved_command_line initialization.
9435 * event-top.c (handle_line_of_input): Update to use
9436 the new 'repeat' related functions instead of direct access to
9437 saved_command_line.
9438 * command.h (repeat_previous, get_saved_command_line,
9439 save_command_line): New declarations.
9440 (dont_repeat): Add comment.
9441
bfcdb852
TT
94422019-05-30 Tom Tromey <tromey@adacore.com>
9443
9444 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9445 Fix comment.
9446 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9447
0ef209f2
JV
94482019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9449
9450 PR cli/24587
9451 * completer.c (complete): Initialize variable word.
9452
955b06fa
SDJ
94532019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9454
9455 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9456 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9457 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9458 'body' is NULL to the outter 'if', protecting the '!is_define'
9459 situation as well.
9460
fa9c3fa0
TT
94612019-05-29 Tom Tromey <tromey@adacore.com>
9462
9463 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9464 (dwarf_unknown): New function.
9465 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9466 (dwarf_type_encoding_name): Use dwarf_unknown.
9467
4330d61d
TT
94682019-05-29 Tom Tromey <tromey@adacore.com>
9469
9470 PR c++/20020:
9471 * cp-valprint.c (cp_print_value_fields): Call
9472 cp_print_static_field inside "try".
9473
33a6bc35
TT
94742019-05-29 Tom Tromey <tromey@adacore.com>
9475
9476 * inflow.c (struct terminal_info): Add default operator=.
9477 * configure: Rebuild.
9478 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9479 -Wdeprecated-copy-dtor, -Wredundant-move.
9480
000439d5
TT
94812019-05-29 Tom Tromey <tromey@adacore.com>
9482
9483 * NEWS: Add entry.
9484 * infcmd.c (print_return_value_1): Handle finish_print
9485 option.
9486 (show_print_finish): New function.
9487 (_initialize_infcmd): Add "set/show print finish" commands.
9488 * valprint.c (user_print_options): Initialize new member.
9489 * valprint.h (struct value_print_options) <finish_print>: New
9490 member.
9491
c0e70c62
TT
94922019-05-28 Tom Tromey <tromey@adacore.com>
9493
9494 * ada-lang.c (ada_remove_Xbn_suffix)
9495 (find_old_style_renaming_symbol)
9496 (parse_old_style_renaming): Remove.
9497 (ada_find_renaming_symbol): Don't call
9498 find_old_style_renaming_symbol.
9499 (ada_is_renaming_symbol): Rename from
9500 ada_find_renaming_symbol. Remove "block" parameter. Return
9501 bool. Now static.
9502 (ada_read_var_value): Update and simplify.
9503 * ada-exp.y (write_var_or_type): Remove old code.
9504
766f8836
AH
95052019-05-28 Alan Hayward <alan.hayward@arm.com>
9506
68255adc 9507 PR gdb/25010
766f8836
AH
9508 * event-top.c: Remove include comment.
9509 * inflow.c (class scoped_ignore_sigttou): Move from here...
9510 * inflow.h (class scoped_ignore_sigttou): ...to here.
9511 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9512 * top.c: Remove include comment.
9513
eb41253a
TT
95142019-05-27 Tom Tromey <tom@tromey.com>
9515
9516 * NEWS: Fix typo.
9517
4ca51187
TT
95182019-05-22 Tom Tromey <tromey@adacore.com>
9519
9520 * target.c (target_follow_exec): Constify parameter.
9521 * target-delegates.c: Rebuild.
9522 * remote.c (remote_target::follow_exec): Constify parameter.
9523 * infrun.c (follow_exec): Constify parameter.
9524 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9525 (target_follow_exec): Likewise.
9526
8fca4da0
AH
95272019-05-22 Alan Hayward <alan.hayward@arm.com>
9528
9529 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9530 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9531
b7060614
AH
95322019-05-22 Alan Hayward <alan.hayward@arm.com>
9533
9534 * NEWS: Add debugredirect and testsuite sections.
9535
0a5954bd
SC
95362019-05-22 Simon Cook <simon.cook@embecosm.com>
9537
9538 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9539 target descriptions using exclusively floating point register name
9540 aliases.
9541
dc42e902
AB
95422019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9543
9544 PR gdb/18644:
9545 * f-lang.c (build_fortran_types): Handle the case where
9546 gdbarch_floatformat_for_type returns a nullptr.
9547
fb7806c7
TV
95482019-05-21 Tom de Vries <tdevries@suse.de>
9549
9550 PR cli/24587
9551 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9552
34d11c68
AB
95532019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9554
9555 PR gdb/18644:
9556 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9557 16-byte floats.
9558 * i386-tdep.c (i386_floatformat_for_type): Use
9559 floatformats_ia64_quad for the 16-byte floating point component
9560 within a fortran 32-byte complex number.
9561
122cf0f2
AB
95622019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9563
9564 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9565 delete default constructor.
9566 (find_partial_die): Update to return const struct.
9567 (partial_die_parent_scope): Move variable declaration into scope
9568 of its use and change its type to auto.
9569 (guess_partial_die_structure_name): Likewise.
9570 (partial_die_info::fixup): Likewise.
9571
33d0e35a
TT
95722019-05-17 Tom Tromey <tromey@adacore.com>
9573
9574 * source.c (find_and_open_source): Remove cast.
9575
a45575b0
TT
95762019-05-17 Tom Tromey <tromey@adacore.com>
9577
9578 * annotate.c (annotate_source): Make "filename" const.
9579 * annotate.h (annotate_source): Use const.
9580
81f47ac2
AH
95812019-05-17 Alan Hayward <alan.hayward@arm.com>
9582
9583 * disasm.c (set_disassembler_options): Send errors to stderr.
9584
ca1285d1
AH
95852019-05-17 Alan Hayward <alan.hayward@arm.com>
9586
9587 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9588 (cli_interp_base::set_logging): Check debug_redirect.
9589 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9590 * cli/cli-logging.c (debug_redirect): Add static variable.
9591 (pop_output_files): Add default param.
9592 (handle_redirections): Print debug setting.
9593 (show_logging_command): Likewise.
9594 (_initialize_cli_logging): Add debugredirect command.
9595 * interps.c (current_interp_set_logging): Add debug_redirect
9596 parameter.
9597 * interps.h (set_logging): Add debug_redirect parameter.
9598 (current_interp_set_logging): Likewise.
9599 * mi/mi-common.h: Likewise.
9600 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9601
96022019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9603 Tom Tromey <tromey@adacore.com>
9604
9605 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9606 directly.
9607 * cli/cli-interp.h (make_logging_output): Remove declaration.
9608 * cli/cli-logging.c (make_logging_output): Remove function.
9609 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9610 directly.
9611 * ui-file.c (tee_file::tee_file): Remove bools.
9612 (tee_file::~tee_file): Remove deletes.
9613 * ui-file.h (tee_file): Remove bools.
9614
26648588
JV
96152019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9616
9617 * mi/mi-cmds.h (mi_cmd_complete): New function.
9618 * mi/mi-main.c (mi_cmd_complete): Likewise.
9619 * mi/mi-cmds.c: Define new MI command -complete.
9620 * NEWS: Mention new -complete command.
9621
6e035501
JV
96222019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9623
9624 * completer.h (complete): New function.
9625 * completer.c (complete): Likewise.
9626 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9627 function defined in completer.h.
9628
7d0e2ece
JV
96292019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9630
e79be6e5 9631 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9632
fb816e8b
TV
96332019-05-17 Tom de Vries <tdevries@suse.de>
9634
9635 PR gdb/24094
9636 * dwarf2read.c (struct cu_partial_die_info): New struct.
9637 (find_partial_die): Return cu_partial_die_info.
9638 (partial_die_parent_scope, guess_partial_die_structure_name)
9639 (partial_die_info::fixup): Handle new return type of find_partial_die.
9640
677052f2
SDJ
96412019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9642
a1726c38 9643 PR breakpoints/24541
677052f2
SDJ
9644 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9645 "std::string", simplifying the algorithm.
9646
f3da9116
SDJ
96472019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9648
9649 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9650 (stap_static_probe_ops::get_probes): Likewise.
9651
f1bb75ab
SDJ
96522019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9653
9654 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9655 '-')" and "else if".
9656 (stap_parse_single_operand): Join checks for
9657 "gdbarch_stap_parse_special_token_p" and
9658 "gdbarch_stap_parse_special_token" in the same "if" statement.
9659 Invert check when verifying for operation on register
9660 displacement.
9661
3ca58cde
SDJ
96622019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9663
9664 * stap-probe.c (stap_get_opcode): Update comment.
9665 (stap_get_expected_argument_type): Likewise.
9666 (handle_stap_probe): Likewise.
9667
af2d9bee
SDJ
96682019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9669
9670 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9671 return type to 'bool'. Adjust comment. Use 'bool' when
9672 appropriate.
9673 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9674 * stap-probe.c (stap_parse_argument_1): Likewise.
9675 (stap_is_operator): Likewise.
9676 (stap_is_generic_prefix): Likewise.
9677 (stap_is_register_prefix): Likewise.
9678 (stap_is_register_indirection_prefix): Likewise.
9679 (stap_is_integer_prefix): Likewise.
9680 (stap_generic_check_suffix): Likewise.
9681 (stap_check_integer_suffix): Likewise.
9682 (stap_check_register_suffix): Likewise.
9683 (stap_check_register_indirection_suffix): Likewise.
9684 (stap_parse_register_operand): Likewise.
9685 (stap_parse_single_operand): Likewise.
9686 (stap_parse_argument_1): Likewise.
9687 (stap_probe::get_argument_count): Likewise.
9688 (stap_is_operator): Likewise.
9689
61c9c421
TT
96902019-05-16 Tom Tromey <tromey@adacore.com>
9691
9692 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9693 keyword to foreach.
9694
9ddc1af1
SM
96952019-05-15 Simon Marchi <simon.marchi@efficios.com>
9696
9697 * linux-thread-db.c (try_thread_db_load_1): Change return type
9698 to bool.
9699 (try_thread_db_load): Likewise.
9700 (try_thread_db_load_from_pdir_1): Likewise.
9701 (try_thread_db_load_from_pdir): Likewise.
9702 (try_thread_db_load_from_sdir): Likewise.
9703 (try_thread_db_load_from_dir): Likewise.
9704 (thread_db_load_search): Likewise.
9705 (has_libpthread): Likewise.
9706 (thread_db_load): Likewise.
9707
7bede828
SDJ
97082019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9709
9710 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9711 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9712 NULL, and complain/return if that's the case.
9713
c5358db4
JD
97142019-05-15 John Darrington <john@darrington.wattle.id.au>
9715
9716 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9717 (advance, posn, abstract_read_memory): New functions.
9718 [struct mem_read_abstraction]: New struct.
9719 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9720
c408a94f
TT
97212019-05-14 Tom Tromey <tromey@adacore.com>
9722
9723 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9724 value is not lval_memory.
9725
e7bd7fba
TT
97262019-05-14 Tom Tromey <tromey@adacore.com>
9727
9728 * solib.c (info_sharedlibrary_command): Style the file name.
9729
a6d0f249
AH
97302019-05-14 Alan Hayward <alan.hayward@arm.com>
9731
9732 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9733 (aarch64_vnv_type): Likewise.
9734 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9735 * common/tdesc.c: Likewise.
9736 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9737 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9738 * features/aarch64-fpu.xml: Add ieee half view.
9739 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9740 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9741 * gdbtypes.h (struct builtin_type): Likewise.
9742 (struct objfile_type): Likewise.
9743
66b8bb74
SM
97442019-05-12 Paul Naert <paul.naert@polymtl.ca>
9745
9746 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9747 typo.
9748 * location.h (string_to_event_location): Likewise.
9749
21c219fd
JB
97502019-05-11 Joel Brobecker <brobecker@adacore.com>
9751
9752 GDB 8.3 released.
9753
13674803
SM
97542019-05-10 Simon Marchi <simon.marchi@efficios.com>
9755
9756 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9757 New variable declaration.
9758 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9759 New variable.
9760 (print_one_breakpoint): Use ui_out::test_flags and new global
9761 variable to compute use_fixed_output.
9762 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9763 Remove.
9764 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9765 (mi_multi_location_breakpoint_output_fixed): Remove.
9766 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9767 new variable.
9768 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9769 fix_multi_location_breakpoint_output flag if version >= 3.
9770 * ui-out.h (enum ui_out_flag)
9771 <fix_multi_location_breakpoint_output>: New enumerator.
9772
a9eac7f9
SM
97732019-05-10 Simon Marchi <simon.marchi@efficios.com>
9774
9775 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9776
71bed2db
TT
97772019-05-10 Tom Tromey <tromey@adacore.com>
9778
9779 * ada-lang.c (catch_ada_completer): New function.
9780 (_initialize_ada_language): Use it.
9781
24c54127
TT
97822019-05-10 Tom Tromey <tromey@adacore.com>
9783
9784 * thread.c (print_thread_info): Make "requested_threads" const.
9785 * gdbthread.h (print_thread_info): Make "requested_threads"
9786 const.
9787 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9788 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9789
7a102139
TT
97902019-05-08 Tom Tromey <tom@tromey.com>
9791
9792 * gdbtypes.c (objfile_type_data): Change type.
9793 (objfile_type, _initialize_gdbtypes): Update.
9794
924d79e2
TT
97952019-05-08 Tom Tromey <tom@tromey.com>
9796
9797 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9798 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9799 (_initialize_dwarf2_frame): Update.
9800
4c58e337
TT
98012019-05-08 Tom Tromey <tom@tromey.com>
9802
9803 * objc-lang.c (objc_objfile_data): Change type.
9804 (find_methods): Update.
9805 (_initialize_objc_lang): Remove.
9806
d772d2ab
TT
98072019-05-08 Tom Tromey <tom@tromey.com>
9808
9809 * stabsread.c (rs6000_builtin_type_data): Change type.
9810 (rs6000_builtin_type, _initialize_stabsread): Update.
9811
d11d83f4
TT
98122019-05-08 Tom Tromey <tom@tromey.com>
9813
9814 * mips-tdep.c (mips_pdr_data): Remove.
9815 (_initialize_mips_tdep): Update.
9816
9a73f0ad
TT
98172019-05-08 Tom Tromey <tom@tromey.com>
9818
9819 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9820 (hppa_init_objfile_priv_data, read_unwind_info)
9821 (find_unwind_entry, _initialize_hppa_tdep): Update.
9822
8127a2fa
TT
98232019-05-08 Tom Tromey <tom@tromey.com>
9824
9825 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9826 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9827 on obstack.
9828 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9829
91d3055d
TT
98302019-05-08 Tom Tromey <tom@tromey.com>
9831
9832 * mdebugread.c (basic_type_data): Change type.
9833 (basic_type, _initialize_mdebugread): Update.
9834
31930bd3
TT
98352019-05-08 Tom Tromey <tom@tromey.com>
9836
9837 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9838
bdb3ed9e
TT
98392019-05-08 Tom Tromey <tom@tromey.com>
9840
9841 * nto-tdep.c (nto_inferior_data_reg): Change type.
9842 (nto_inferior_data): Update.
9843 (nto_inferior_data_cleanup, nto_new_inferior_data)
9844 (_initialize_nto_tdep): Remove.
9845 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9846
f37b313d
TT
98472019-05-08 Tom Tromey <tom@tromey.com>
9848
9849 * ada-lang.c (struct ada_inferior_data): Add initializers.
9850 (ada_inferior_data): Change type.
9851 (ada_inferior_data_cleanup): Remove.
9852 (get_ada_inferior_data, ada_inferior_exit)
9853 (struct ada_pspace_data): Add initializers, destructor.
9854 (ada_pspace_data_handle): Change type.
9855 (get_ada_pspace_data): Update.
9856 (ada_pspace_data_cleanup): Remove.
9857
24699405
TT
98582019-05-08 Tom Tromey <tom@tromey.com>
9859
9860 * coffread.c (struct coff_symfile_info): Add initializers.
9861 (coff_objfile_data_key): Move lower. Change type.
9862 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9863 Update.
9864 (coff_free_info): Remove.
9865
d4e05d2f
TT
98662019-05-08 Tom Tromey <tom@tromey.com>
9867
9868 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9869 (fbsd_pspace_data_handle): Move lower. Change type.
9870 (get_fbsd_pspace_data): Update.
9871 (fbsd_pspace_data_cleanup): Remove.
9872 (_initialize_fbsd_tdep): Update.
9873
14ef6690
TT
98742019-05-08 Tom Tromey <tom@tromey.com>
9875
9876 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9877 (get_ada_tasks_pspace_data): Update.
9878 (ada_tasks_pspace_data_cleanup): Remove.
9879 (_initialize_tasks): Update.
9880 (ada_tasks_inferior_data_handle): Change type.
9881 (get_ada_tasks_inferior_data): Update.
9882 (ada_tasks_inferior_data_cleanup): Remove.
9883 (struct ada_tasks_pspace_data): Add initializers.
9884
814cf43a
TT
98852019-05-08 Tom Tromey <tom@tromey.com>
9886
9887 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9888 * symfile-debug.c (debug_sym_get_probes): Change type.
9889 * stap-probe.c (handle_stap_probe):
9890 (stap_static_probe_ops::get_probes): Change type.
9891 * probe.h (class static_probe_ops) <get_probes>: Change type.
9892 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9893 (parse_probes_in_pspace): Update.
9894 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9895 Update.
9896 (any_static_probe_ops::get_probes): Change type.
9897 * elfread.c (elfread_data): New typedef.
9898 (probe_key): Change type.
9899 (elf_get_probes): Likewise. Update.
9900 (probe_key_free): Remove.
9901 (_initialize_elfread): Update.
9902 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9903 Change type.
9904 (dtrace_process_dof_probe, dtrace_process_dof)
9905 (dtrace_static_probe_ops::get_probe): Change type.
9906
02dc647e
TT
99072019-05-08 Tom Tromey <tom@tromey.com>
9908
9909 * xcoffread.c (struct xcoff_symfile_info): Rename from
9910 coff_symfile_info. Add initializers.
9911 (xcoff_objfile_data_key): Move lower. Change type.
9912 (XCOFF_DATA): Rewrite.
9913 (xcoff_free_info): Remove.
9914 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9915 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9916 (xcoff_initial_scan): Update.
9917
09232438
TT
99182019-05-08 Tom Tromey <tom@tromey.com>
9919
9920 * solib-svr4.c (struct svr4_info): Add initializers and
9921 destructor.
9922 <probes_table>: Now an htab_up.
9923 (solib_svr4_pspace_data): Change type.
9924 (free_probes_table): Simplify.
9925 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9926 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9927 (probes_table_remove_objfile_probes, register_solib_event_probe)
9928 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9929 (_initialize_svr4_solib): Update.
9930
7b4a314f
TT
99312019-05-08 Tom Tromey <tom@tromey.com>
9932
9933 * remote.c (remote_pspace_data): Change type.
9934 (remote_pspace_data_cleanup): Remove.
9935 (get_remote_exec_file, set_pspace_remote_exec_file)
9936 (_initialize_remote): Update.
9937
51d3063a
TT
99382019-05-08 Tom Tromey <tom@tromey.com>
9939
9940 * breakpoint.c (breakpoint_objfile_key): Change type.
9941 (get_breakpoint_objfile_data): Update.
9942 (free_breakpoint_objfile_data): Remove.
9943 (_initialize_breakpoint): Update.
9944
89fb8848
TT
99452019-05-08 Tom Tromey <tom@tromey.com>
9946
9947 * linux-tdep.c (struct linux_info): Add initializers.
9948 (linux_inferior_data): Move. Change type.
9949 (invalidate_linux_cache_inf): Update.
9950 (linux_inferior_data_cleanup): Remove.
9951 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9952
e9b89e2d
TT
99532019-05-08 Tom Tromey <tom@tromey.com>
9954
9955 * auxv.c (auxv_inferior_data): Move. Change type.
9956 (auxv_inferior_data_cleanup): Remove.
9957 (invalidate_auxv_cache_inf): Rewrite.
9958 (get_auxv_inferior_data, _initialize_auxv): Update.
9959
8c42777c
TT
99602019-05-08 Tom Tromey <tom@tromey.com>
9961
9962 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9963 (symfile_debug_objfile_data_key): Change type.
9964 (symfile_debug_installed, debug_qf_has_symbols)
9965 (debug_qf_find_last_source_symtab)
9966 (debug_qf_forget_cached_source_info)
9967 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9968 (debug_qf_print_stats, debug_qf_dump)
9969 (debug_qf_expand_symtabs_for_function)
9970 (debug_qf_expand_all_symtabs)
9971 (debug_qf_expand_symtabs_with_fullname)
9972 (debug_qf_map_matching_symbols)
9973 (debug_qf_expand_symtabs_matching)
9974 (debug_qf_find_pc_sect_compunit_symtab)
9975 (debug_qf_map_symbol_filenames)
9976 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9977 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9978 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9979 (debug_sym_read_linetable, debug_sym_relocate): Update.
9980 (symfile_debug_free_objfile): Remove.
9981 (install_symfile_debug_logging, _initialize_symfile_debug):
9982 Update.
9983
5bfd760d
TT
99842019-05-08 Tom Tromey <tom@tromey.com>
9985
9986 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9987 allocate_on_obstack.
9988 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9989 (get_dwarf2_per_objfile): Update.
9990 (set_dwarf2_per_objfile): Remove.
9991 (dwarf2_has_info, dwarf2_get_section_info): Update.
9992 (dwarf2_free_objfile): Remove.
9993 (_initialize_dwarf2_read): Update.
9994
e85e19b4
TT
99952019-05-08 Tom Tromey <tom@tromey.com>
9996
9997 * auto-load.c (struct auto_load_pspace_info): Add destructor and
9998 initializers.
9999 <unsupported_script_warning_printed,
10000 script_not_found_warning_printed>: Now bool.
10001 (auto_load_pspace_data): Change type.
10002 (~auto_load_pspace_info): Rename from
10003 auto_load_pspace_data_cleanup.
10004 (get_auto_load_pspace_data, init_loaded_scripts_info)
10005 (clear_section_scripts, maybe_print_unsupported_script_warning)
10006 (maybe_print_script_not_found_warning, _initialize_auto_load):
10007 Update.
10008
f6aa7436
TT
100092019-05-08 Tom Tromey <tom@tromey.com>
10010
10011 * objfiles.c (objfile_pspace_info): Add destructor and
10012 initializers.
10013 (objfiles_pspace_data): Change type.
10014 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10015 (get_objfile_pspace_data): Update.
10016 (objfiles_bfd_data): Change type.
10017 (get_objfile_bfd_data): Update.
10018 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10019
6ae614f6
TT
100202019-05-08 Tom Tromey <tom@tromey.com>
10021
10022 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10023 Change type.
10024 (get_catch_syscall_inferior_data): Update.
10025 (catch_syscall_inferior_data_cleanup): Remove.
10026 (_initialize_break_catch_syscall): Update.
10027
6509b8eb
TT
100282019-05-08 Tom Tromey <tom@tromey.com>
10029
10030 * inflow.c (struct terminal_info): Add destructor and
10031 initializers.
10032 (inflow_inferior_data): Change type.
10033 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10034 (get_inflow_inferior_data, inflow_inferior_exit)
10035 (swap_terminal_info, _initialize_inflow): Update.
10036
35632941
TT
100372019-05-08 Tom Tromey <tom@tromey.com>
10038
10039 * target-dcache.c (target_dcache_cleanup): Remove.
10040 (target_dcache_aspace_key): Change type.
10041 (target_dcache_init_p, target_dcache_invalidate)
10042 (target_dcache_get, target_dcache_get_or_init)
10043 (_initialize_target_dcache): Update.
10044 * dcache.h (struct dcache_deleter): New.
10045
3017b94d
TT
100462019-05-08 Tom Tromey <tom@tromey.com>
10047
10048 * symtab.c (struct symbol_cache): Add destructor and
10049 initializers.
10050 (symbol_cache_key): Move. Change type.
10051 (make_symbol_cache, free_symbol_cache): Remove.
10052 (get_symbol_cache): Update.
10053 (symbol_cache_cleanup): Remove.
10054 (ALL_PSPACES, symbol_cache_flush)
10055 (maintenance_print_symbol_cache)
10056 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10057 Update.
10058
a32ad8c5
TT
100592019-05-08 Tom Tromey <tom@tromey.com>
10060
10061 * symtab.c (struct main_info): Add destructor and initializers.
10062 (main_progspace_key): Move. Change type.
10063 (get_main_info): Update.
10064 (main_info_cleanup): Remove.
10065 (_initialize_symtab): Update.
10066
5f6e90a0
TT
100672019-05-08 Tom Tromey <tom@tromey.com>
10068
10069 * registry.h (DECLARE_REGISTRY): Define the _key class.
10070
1bd0c6e4
AB
100712019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10072
10073 * NEWS: Merge two 'New commands' sections.
10074
2228ef77
XR
100752019-05-08 Joel Brobecker <brobecker@adacore.com>
10076
10077 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10078 parameter and use Ada language definition instead.
10079 (ada_val_print_ptr): Remove unused language parameter.
10080 (ada_val_print_num): Remove language parameter and use Ada language
10081 definition instead.
10082 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10083 parameter.
10084 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10085 parameter and use Ada language definition instead.
10086 (ada_val_print_1): Update all ada_val_print_xxx calls.
10087 Remove language parameter.
10088 (ada_val_print): Update ada_val_print_1 call.
10089
60fcc1c3
TT
100902019-05-08 Tom Tromey <tromey@adacore.com>
10091
10092 * remote.c (remote_hw_watchpoint_limit)
10093 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10094 Now static.
10095
ed2b7c17
TT
100962019-05-08 Tom Tromey <tromey@adacore.com>
10097
10098 * maint.c (_initialize_maint_cmds): Move initialization code to
10099 remote.c.
10100 (watchdog, show_watchdog): Move to remote.c.
10101 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10102 "watchdog" static.
10103 (_initialize_remote): Move initialization code from maint.c.
10104 * defs.h (watchdog): Don't declare.
10105
b0be6c91
TT
101062019-05-08 Tom Tromey <tromey@adacore.com>
10107
10108 * tui/tui-interp.c: Include main.h.
10109 * interps.c: Include main.h.
10110 * main.h (interpreter_p): Declare.
10111 * defs.h (interpreter_p): Don't declare.
10112
587ee17b
TT
101132019-05-08 Tom Tromey <tromey@adacore.com>
10114
10115 * dwarf2loc.c: Include dwarf2read.h.
10116 * defs.h (read_unsigned_leb128): Don't declare.
10117 * dwarf2read.h (read_unsigned_leb128): Declare.
10118
ca1df239
TT
101192019-05-08 Tom Tromey <tromey@adacore.com>
10120
10121 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10122 method.
10123
99f20f08
TT
101242019-05-08 Tom Tromey <tromey@adacore.com>
10125
10126 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10127 when no wrap column is set.
10128
80e55b13
TT
101292019-05-08 Tom Tromey <tromey@adacore.com>
10130
10131 * c-lang.c (c_get_string): Handle non-C-style arrays.
10132
9d3421af
TT
101332019-05-08 Tom Tromey <tromey@adacore.com>
10134
10135 * typeprint.c (print_offset_data::update): Print the bit offset,
10136 not the number of bits remaining.
10137
844333e2
TT
101382019-05-08 Tom Tromey <tromey@adacore.com>
10139
10140 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10141 padding at end of comment.
10142
988915ee
TT
101432019-05-08 Tom Tromey <tromey@adacore.com>
10144
10145 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10146 Compare main types.
10147
26bfd823
TT
101482019-05-06 Tom Tromey <tom@tromey.com>
10149
10150 * common/scoped_mmap.c: Include common-defs.h.
10151 * common/scoped_mmap.h: Don't include config.h.
10152
89055eaa
TT
101532019-05-04 Tom Tromey <tom@tromey.com>
10154
10155 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10156 (struct aarch64_call_info): Add initializers.
10157 <si>: Now a std::vector.
10158 (pass_on_stack, aarch64_push_dummy_call): Update.
10159
5da01df5
TT
101602019-05-04 Simon Marchi <simon.marchi@efficios.com>
10161 Tom Tromey <tom@tromey.com>
10162
10163 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10164 (ppc_threads): Now a std::vector. Now static.
10165 (hwdebug_find_thread_points_by_tid)
10166 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10167 Update.
10168
fbdf05a1
TT
101692019-05-04 Tom Tromey <tom@tromey.com>
10170
10171 * arc-tdep.c (arc_tdesc_init): Return bool.
10172
06d16ec9
TT
101732019-05-04 Tom Tromey <tom@tromey.com>
10174
10175 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10176 Use gdb_assert_not_reached.
10177
9c056022
TT
101782019-05-04 Tom Tromey <tom@tromey.com>
10179
10180 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10181 "false".
10182
fa9c2a59
TT
101832019-05-04 Tom Tromey <tom@tromey.com>
10184
10185 * arc-tdep.c (arc_tdesc_init): Use bool.
10186
e2eb806a
TT
101872019-05-04 Tom Tromey <tom@tromey.com>
10188
10189 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10190
6fe87677
TT
101912019-05-04 Tom Tromey <tom@tromey.com>
10192
10193 * cli/cli-cmds.c (valid_command_p): Return bool.
10194
7f008c9e
TT
101952019-05-04 Tom Tromey <tom@tromey.com>
10196
10197 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10198 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10199
b6484282
RT
102002019-05-04 Raul Tambre <raul@tambre.ee>
10201
10202 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10203 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10204 operator for comparison.
10205
af97b416
TT
102062019-05-04 Tom Tromey <tom@tromey.com>
10207
10208 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10209 (lookup_partial_symbol, print_partial_symbols)
10210 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10211 (psymbol_compare): Update.
10212 (add_psymbol_to_bcache): Clear the entire psymbol.
10213 (maintenance_check_psymtabs): Update.
10214 * psympriv.h (struct partial_symbol): Don't derive from
10215 general_symbol_info.
10216 <obj_section, unrelocated_address, address,
10217 set_unrelocated_address>: Update.
10218 <ginfo>: New member.
10219 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10220 (debug_names::write_psymbols): Update.
10221
9d6d4be8
TV
102222019-05-04 Tom de Vries <tdevries@suse.de>
10223
10224 * contrib/cc-with-tweaks.sh: Support -n arg.
10225
66452beb
PW
102262019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10227
10228 * corelow.c (core_target::detach): Ensure frame cache and
10229 register caches are cleared.
10230 inferior.c (exit_inferior_1): Likewise.
10231
bde09ab7
TT
102322019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10233 Tom Tromey <tom@tromey.com>
10234
10235 * dictionary.c (collate_pending_symbols_by_language): Remove
10236 "struct" from foreach.
10237 * symtab.c (lookup_global_symbol_from_objfile)
10238 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10239 foreach.
10240 * ser-tcp.c (net_open): Remove "struct" from foreach.
10241 * objfiles.c (objfile_relocate, objfile_rebase)
10242 (objfile_has_symbols): Remove "struct" from foreach.
10243 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10244 from foreach.
10245 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10246 foreach.
10247 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10248 "struct" from foreach.
10249 * ada-lang.c (create_excep_cond_exprs)
10250 (ada_exception_catchpoint_cond_string): Remove "struct" from
10251 foreach.
10252
222a8d25
TT
102532019-05-03 Tom Tromey <tromey@adacore.com>
10254
10255 * ada-exp.y (convert_char_literal): Check suffix of each
10256 enumerator.
10257
fcd60b84
DP
102582019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10259
10260 PR ada/21406:
10261 * ada-exp.y (yywrap): Don't define.
10262 * ada-lex.l (%option): Add noyywrap
10263 (yywrap): Remove.
10264
5f2459c2
EZ
102652019-05-03 Eli Zaretskii <eliz@gnu.org>
10266
353ea2d1
EZ
10267 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10268 _WIN32_WINNT to the XP level, unless already defined to a higher
10269 level.
10270
10271 * unittests/parse-connection-spec-selftests.c:
10272 * ser-tcp.c:
10273 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10274 override.
10275
5f2459c2
EZ
10276 * symfile.c (find_separate_debug_file): Remove colon from the
10277 drive spec of DOS/Windows file names of the target, so that the
10278 file name produced from DEBUGDIR and the target's directory will
10279 be valid on DOS/Windows systems.
10280
80062eb9
AB
102812019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10282
10283 * rust-lang.c (val_print_struct): Handle printing structures
10284 containing strings.
10285
b8c05e85
TT
102862019-05-02 Tom Tromey <tromey@adacore.com>
10287
10288 * valarith.c (_initialize_valarith): Remove.
10289
4504bbde
TT
102902019-05-01 Tom Tromey <tromey@adacore.com>
10291
10292 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10293 bitfields.
10294
d48e62f4
TT
102952019-05-01 Tom Tromey <tromey@adacore.com>
10296
10297 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10298 for big-endian copies.
10299
15f18d14
AT
103002019-04-30 Ali Tamur <tamur@google.com>
10301 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10302 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10303 (read_3_bytes): New function.
10304
ab4ee614
JB
103052019-04-30 Joel Brobecker <brobecker@adacore.com>
10306
10307 * windows-nat.c (main_thread_id): Delete.
10308 (handle_output_debug_string): Replace main_thread_id by
10309 current_event.dwThreadId.
10310 (fake_create_process): Likewise.
10311 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10312 Do not set main_thread_id.
10313 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10314 current_event.dwThreadId.
10315 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10316
8ed5b76e
JB
103172019-04-30 Joel Brobecker <brobecker@adacore.com>
10318
10319 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10320 Use current_event.dwThreadId instead of main_thread_id.
10321
2ff0a947
TT
103222019-04-30 Tom Tromey <tromey@adacore.com>
10323
10324 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10325 (create_excep_cond_exprs): Iterate over program spaces.
10326 (ada_exception_catchpoint_cond_string): Examine all minimal
10327 symbols for exception types.
10328
a776957c
TT
103292019-04-30 Tom Tromey <tromey@adacore.com>
10330
10331 PR c++/24470:
10332 * dwarf2read.c (process_structure_scope): Handle case where type
10333 has template parameters but no symbol was created.
10334
bc68014d
AB
103352019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10336 Chris January <chris.january@arm.com>
10337
10338 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10339 qualifier.
10340 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10341
f1fdc960
AB
103422019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10343
10344 * f-typeprint.c (f_print_type): Update rules for printing
10345 whitespace.
10346 (f_type_print_varspec_suffix): Likewise.
10347
bf7a4de1
AB
103482019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10349 Chris January <chris.january@arm.com>
10350
10351 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10352 function arguments.
10353
bbe75b9d
AB
103542019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10355
10356 * f-lang.c (build_fortran_types): Change name of void type to
10357 lower case.
10358 * f-typeprint.c (f_type_print_base): Print the name of the void
10359 type, rather than a fixed string.
10360 * f-valprint.c (f_decorations): Use lower case void string.
10361
1db455a7
AB
103622019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10363 Chris January <chris.january@arm.com>
10364
10365 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10366 types for Fortran.
10367
b6d03bb2
AB
103682019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10369 Chris January <chris.january@arm.com>
10370 David Lecomber <david.lecomber@arm.com>
10371
10372 * f-exp.y (BINOP_INTRINSIC): New token.
10373 (exp): New parser rule handling BINOP_INTRINSIC.
10374 (f77_keywords): Add new builtin procedures.
10375 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10376 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10377 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10378 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10379 (print_unop_subexp_f): New function.
10380 (print_binop_subexp_f): New function.
10381 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10382 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10383 (dump_subexp_body_f): Likewise.
10384 (operator_check_f): Likewise.
10385 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10386 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10387
83228e93
AB
103882019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10389
10390 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10391 UNOP_KIND.
10392 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10393 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10394 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10395 (operator_length_f): New fuction.
10396 (print_subexp_f): New function.
10397 (op_name_f): New function.
10398 (dump_subexp_body_f): New function.
10399 (operator_check_f): New function.
10400 (exp_descriptor_f): Replace standard expression handling functions
10401 with new functions.
10402 * gdb/fortran-operator.def: New file.
10403 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10404 * gdb/std-operator.def: Remove UNOP_KIND.
10405
6fdcd7cc
AB
104062019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10407
10408 * std-operator.def: Remove unbalanced, stray double quote
10409 character.
10410
2e62ab40
AB
104112019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10412 Chris January <chris.january@arm.com>
10413 Daniel Everett <daniel.everett@arm.com>
10414 Nick Forrington <nick.forrington@arm.com>
10415 Richard Bunt <richard.bunt@arm.com>
10416
10417 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10418 of depth when printing anonymous structs or unions.
10419 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10420 Don't print either the top-level value, or the children if the
10421 max-depth is exceeded.
10422 (ppscm_print_children): When printing the key of a map, allow one
10423 extra level of depth.
10424 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10425 print either the top-level value, or the children if the max-depth
10426 is exceeded.
10427 (print_children): When printing the key of a map, allow one extra
10428 level of depth.
10429 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10430 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10431 (user_print_options): Initialise max_depth field.
10432 (val_print_scalar_or_string_type_p): New function.
10433 (val_print): Check to see if the max depth has been reached.
10434 (val_print_check_max_depth): Define new function.
10435 (show_print_max_depth): New function.
10436 (_initialize_valprint): Add 'print max-depth' option.
10437 * valprint.h (struct value_print_options) <max_depth>: New field.
10438 (val_print_check_max_depth): Declare new function.
10439 * NEWS: Document new feature.
10440
4be290b2
AB
104412019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10442
10443 * ada-lang.c (ada_language_defn): Initialise new field.
10444 * c-lang.c (c_is_string_type_p): New function.
10445 (c_language_defn): Initialise new field.
10446 (cplus_language_defn): Initialise new field.
10447 (asm_language_defn): Initialise new field.
10448 (minimal_language_defn): Initialise new field.
10449 * c-lang.h (c_is_string_type_p): Declare new function.
10450 * d-lang.c (d_language_defn): Initialise new field.
10451 * f-lang.c (f_is_string_type_p): New function.
10452 (f_language_defn): Initialise new field.
10453 * go-lang.c (go_is_string_type_p): New function.
10454 (go_language_defn): Initialise new field.
10455 * language.c (default_is_string_type_p): New function.
10456 (unknown_language_defn): Initialise new field.
10457 (auto_language_defn): Initialise new field.
10458 * language.h (struct language_defn) <la_is_string_type_p>: New
10459 member variable.
10460 (default_is_string_type_p): Declare new function.
10461 * m2-lang.c (m2_language_defn): Initialise new field.
10462 * objc-lang.c (objc_language_defn): Initialise new field.
10463 * opencl-lang.c (opencl_language_defn): Initialise new field.
10464 * p-lang.c (pascal_is_string_type_p): New function.
10465 (pascal_language_defn): Initialise new field.
10466 * rust-lang.c (rust_is_string_type_p): New function.
10467 (rust_language_defn): Initialise new field.
10468
721b08c6
AB
104692019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10470
10471 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10472 New field.
10473 * ada-lang.c (ada_language_defn): Initialise new field.
10474 * c-lang.c (c_language_defn): Likewise.
10475 (cplus_language_defn): Likewise.
10476 (asm_language_defn): Likewise.
10477 (minimal_language_defn): Likewise.
10478 * d-lang.c (d_language_defn): Likewise.
10479 * f-lang.c (f_language_defn): Likewise.
10480 * go-lang.c (go_language_defn): Likewise.
10481 * language.c (unknown_language_defn): Likewise.
10482 (auto_language_defn): Likewise.
10483 * m2-lang.c (m2_language_defn): Likewise.
10484 * objc-lang.c (objc_language_defn): Likewise.
10485 * opencl-lang.c (opencl_language_defn): Likewise.
10486 * p-lang.c (pascal_language_defn): Likewise.
10487 * rust-lang.c (rust_language_defn): Likewise.
10488
fc913e53
AB
104892019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10490
10491 * ada-lang.c (ada_is_character_type): Change return type to bool.
10492 (ada_is_string_type): Likewise.
10493 * ada-lang.h (ada_is_character_type): Update declaration
10494 (ada_is_string_type): Likewise.
10495
fa731fa0
PW
104962019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10497
10498 Support style in 'frame|thread apply'
10499
10500 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10501 * record.c (record_start, record_stop): Update callers of
10502 execute_command_to_string with false.
10503 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10504 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10505 methods.
10506 (class string_file): New constructor with term_out parameter.
10507 Override methods term_out and can_emit_style_escape. New member
10508 term_out.
10509 (class stdio_file): Override can_emit_style_escape.
10510 (class tee_file): Override term_out and can_emit_style_escape.
10511 * utils.h (can_emit_style_escape): Remove.
10512 * utils.c (can_emit_style_escape): Likewise.
10513 Update all callers of can_emit_style_escape (SOMESTREAM) to
10514 SOMESTREAM->can_emit_style_escape.
10515 * source-cache.c (source_cache::get_source_lines): Likewise.
10516 * stack.c (frame_apply_command_count): Call execute_command_to_string
10517 passing the term_out characteristic of the current gdb_stdout.
10518 * thread.c (thr_try_catch_cmd): Likewise.
10519 * top.c (execute_command_to_string): pass term_out parameter
10520 to construct the string_file for the command output.
10521 * ui-file.c (term_cli_styling): New function (most code moved
10522 from utils.c can_emit_style_escape).
10523 (string_file::string_file, string_file::can_emit_style_escape,
10524 stdio_file::can_emit_style_escape, tee_file::term_out,
10525 tee_file::can_emit_style_escape): New functions.
10526
136afab8
PW
105272019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10528
10529 * NEWS: Mention the new set|show may-call-functions.
10530 * infcall.c (may_call_functions_p): New variable.
10531 (show_may_call_functions_p): New function.
10532 (call_function_by_hand_dummy): Throws an error if not
10533 may-call-functions.
10534 (_initialize_infcall): Call add_setshow_boolean_cmd for
10535 may-call-functions.
10536
725cbb63
KS
105372019-04-25 Keith Seitz <keiths@redhat.com>
10538
10539 PR c++/24367
10540 * cp-support.c (inspect_type): Don't attempt substitutions
10541 of symbol with the same name.
10542
3d1cbb78
TT
105432019-04-25 Tom Tromey <tromey@adacore.com>
10544
10545 PR gdb/24475:
10546 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10547 static.
10548
94aeb44b
TT
105492019-04-25 Tom Tromey <tromey@adacore.com>
10550
10551 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10552 rvalue reference.
10553 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10554 (gdb_xml_parser::parse): Use std::move.
10555 * python/python-internal.h (gdbpy_convert_exception): Take a const
10556 reference.
10557 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10558 std::move.
10559 * python/py-utils.c (gdbpy_convert_exception): Take a const
10560 reference.
10561 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10562 Use std::move.
10563 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10564 Use std::move.
10565 * mi/mi-main.c (mi_print_exception): Take a const reference.
10566 * main.c (handle_command_errors): Take a const reference.
10567 * linespec.c (parse_linespec): Use std::move.
10568 * infcall.c (run_inferior_call): Use std::move.
10569 (call_function_by_hand_dummy): Use std::move.
10570 * exec.c (try_open_exec_file): Use std::move.
10571 * exceptions.h (exception_print, exception_fprintf)
10572 (exception_print_same): Update.
10573 * exceptions.c (print_exception, exception_print)
10574 (exception_fprintf, exception_print_same): Change parameters to
10575 const reference.
10576 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10577 * common/new-op.c: Use std::move.
10578 * common/common-exceptions.h (struct gdb_exception): Add move
10579 constructor.
10580 (struct gdb_exception_error, struct gdb_exception_quit, struct
10581 gdb_quit_bad_alloc): Change constructor to move constructor.
10582 (throw_exception): Change parameter to rvalue reference.
10583 * common/common-exceptions.c (throw_exception): Take rvalue
10584 reference.
10585 * cli/cli-interp.c (safe_execute_command): Use std::move.
10586 * breakpoint.c (insert_bp_location, location_to_sals): Use
10587 std::move.
10588
680d7fd5
TT
105892019-04-25 Tom Tromey <tromey@adacore.com>
10590
10591 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10592 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10593 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10594 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10595 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10596 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10597 guile/scm-value.c: Use unpack.
10598 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10599 gdbscm_gdb_exception.
10600 (gdbscm_throw_gdb_exception): Likewise.
10601 (struct gdbscm_gdb_exception): New.
10602 (unpack): New function.
10603 (gdbscm_wrap): Use unpack.
10604
c6fdd8b2
TT
106052019-04-25 Tom Tromey <tromey@adacore.com>
10606
10607 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10608 (gdb_rl_callback_handler): Use std::move.
10609 * common/common-exceptions.h (struct gdb_exception): Add move
10610 assignment operator.
10611 (throw_exception_sjlj): Change "exception" to const reference.
10612 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10613 (throw_exception_sjlj): Change "exception" to const reference.
10614
cc06b668
TT
106152019-04-25 Tom Tromey <tromey@adacore.com>
10616
10617 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10618 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10619 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10620 Update.
10621 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10622 Update.
10623 * mi/mi-interp.c (mi_interp::exec): Update.
10624 * linespec.c (parse_linespec): Update.
10625 * infcall.c (run_inferior_call): Update.
10626 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10627 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10628 (gdbscm_lookup_global_symbol): Update.
10629 * guile/scm-param.c (gdbscm_parameter_value): Update.
10630 * guile/scm-frame.c (gdbscm_frame_read_register)
10631 (gdbscm_frame_read_var): Update.
10632 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10633 * exec.c (try_open_exec_file): Update.
10634 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10635 (gdb_rl_callback_handler): Update.
10636 * common/common-exceptions.h (exception_none): Don't declare.
10637 * common/common-exceptions.c (exception_none): Don't define.
10638 (struct catcher) <exception>: Update.
10639 * cli/cli-interp.c (safe_execute_command): Update.
10640 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10641
cf532bd1
AT
106422019-04-25 Ali Tamur <tamur@google.com>
10643
10644 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10645 (read_attribute_value): Likewise.
10646 (dwarf2_read_addr_index): Update comment.
10647 (read_str_index): Add DW_FORM_strx.
10648 (dwarf2_string_attr): Likewise.
10649 (dwarf2_const_value_attr): Likewise.
10650 (dump_die_shallow): Likewise.
10651 (dwarf2_fetch_constant_bytes): Likewise.
10652 (skip_form_bytes): Likewise.
10653 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10654
82433e3e
SDJ
106552019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10656
10657 PR corefiles/11608
10658 PR corefiles/18187
10659 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10660 OFFSET. Verify if current mapping contains an ELF header.
10661 (linux_find_memory_regions_full): Adjust call to
10662 dump_mapping_p.
10663
723adb65
SL
106642019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10665 Kang Li <kanglictf@gmail.com>
10666
10667 PR gdb/21600
10668
10669 * dwarf2-frame.c (read_initial_length): Be consistent about using
10670 unsigned representation of length.
10671 (decode_frame_entry_1): Likewise. Check for wraparound of
10672 end pointer as well as buffer overflow.
10673
596179f7
SDJ
106742019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10675
10676 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10677 "vq".
10678
a59240a4
TT
106792019-04-24 Tom Tromey <tromey@adacore.com>
10680
10681 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10682
f872fdbb
AB
106832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10684
10685 * s12z-tdep.c (s12z_unwind_pc): Delete.
10686 (s12z_unwind_sp): Delete.
10687 (s12z_gdbarch_init): Don't register deleted functions with
10688 gdbarch.
10689
b614e6f3
AB
106902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10691
10692 * rl78-tdep.c (rl78_unwind_sp): Delete.
10693 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10694
14faed38
AB
106952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10696
10697 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10698 (xstormy16_unwind_pc): Delete.
10699 (xstormy16_dummy_id): Delete.
10700 (xstormy16_gdbarch_init): Don't register deleted functions with
10701 gdbarch.
10702
541aad8a
AB
107032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10704
10705 * vax-tdep.c (vax_unwind_pc): Delete.
10706 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10707
29222070
AB
107082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10709
10710 * v850-tdep.c (v850_unwind_sp): Delete.
10711 (v850_unwind_pc): Delete.
10712 (v850_dummy_id): Delete.
10713 (v850_gdbarch_init): Don't register deleted functions with
10714 gdbarch.
10715
0f534d76
AB
107162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10717
10718 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10719 (tilegx_unwind_pc): Delete.
10720 (tilegx_unwind_dummy_id): Delete.
10721 (tilegx_gdbarch_init): Don't register deleted functions with
10722 gdbarch.
10723
1ba7b7f9
AB
107242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10725
10726 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10727 (tic6x_dummy_id): Delete.
10728 (tic6x_gdbarch_init): Don't register deleted functions with
10729 gdbarch.
10730
d31f262c
AB
107312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10732
10733 * sparc-tdep.c (sparc_unwind_pc): Delete.
10734 (sparc32_gdbarch_init): Don't register deleted function with
10735 gdbarch.
10736
6d14d64d
AB
107372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10738
10739 * sh-tdep.c (sh_unwind_sp): Delete.
10740 (sh_unwind_pc): Delete.
10741 (sh_dummy_id): Delete.
10742 (sh_gdbarch_init): Don't register deleted functions with
10743 gdbarch.
10744
a40dde9d
AB
107452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10746
10747 * score-tdep.c (score_unwind_sp): Delete.
10748 (score_unwind_pc): Delete.
10749 (score_dummy_id): Delete.
10750 (score_gdbarch_init): Don't register deleted functions with
10751 gdbarch.
10752
47c47d69
AB
107532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10754
10755 * rx-tdep.c (rx_unwind_pc): Delete.
10756 (rx_unwind_sp): Delete.
10757 (rx_dummy_id): Delete.
10758 (rx_gdbarch_init): Don't register deleted functions with
10759 gdbarch. Update comment.
10760
833a4480
AB
107612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10762
10763 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10764 (rs6000_dummy_id): Delete.
10765 (rs6000_gdbarch_init): Don't register deleted functions with
10766 gdbarch.
10767
3f2cef49
AB
107682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10769
10770 * or1k-tdep.c (or1k_dummy_id): Delete.
10771 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10772
96acf884
AB
107732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10774
10775 * nios2-tdep.c (nios2_dummy_id): Delete.
10776 (nios2_unwind_sp): Delete.
10777 (nios2_gdbarch_init): Don't register deleted functions with
10778 gdbarch.
10779
ca0ab0aa
AB
107802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10781
10782 * nds32-tdep.c (nds32_dummy_id): Delete.
10783 (nds32_unwind_pc): Delete.
10784 (nds32_unwind_sp): Delete.
10785 (nds32_gdbarch_init): Don't register deleted functions with
10786 gdbarch.
10787
c8259044
AB
107882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10789
10790 * msp430-tdep.c (msp430_unwind_pc): Delete.
10791 (msp430_unwind_sp): Delete.
10792 (msp430_dummy_id): Delete.
10793 (msp430_gdbarch_init): Don't register deleted functions with
10794 gdbarch.
10795
27f113c8
AB
107962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10797
10798 * moxie-tdep.c (moxie_unwind_sp): Delete.
10799 (moxie_unwind_pc): Delete.
10800 (moxie_dummy_id): Delete.
10801 (moxie_gdbarch_init): Don't register deleted functions with
10802 gdbarch.
10803
aee6c3cd
AB
108042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10805
10806 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10807 (mn10300_unwind_pc): Delete.
10808 (mn10300_unwind_sp): Delete.
10809 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10810 mn10300_unwind_sp.
10811 (mn10300_frame_unwind_init): Don't register deleted functions with
10812 gdbarch.
10813
8e2b5aea
AB
108142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10815
10816 * mep-tdep.c (mep_unwind_pc): Delete.
10817 (mep_unwind_sp): Delete.
10818 (mep_dummy_id): Delete.
10819 (mep_gdbarch_init): Don't register deleted functions with
10820 gdbarch.
10821
43cf3ede
AB
108222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10823
10824 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10825 (m68hc11_unwind_sp): Delete.
10826 (m68hc11_gdbarch_init): Don't register deleted functions with
10827 gdbarch.
10828
5e79b7bb
AB
108292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10830
10831 * m32r-tdep.c (m32r_unwind_sp): Delete.
10832 (m32r_unwind_pc): Delete.
10833 (m32r_dummy_id): Delete.
10834 (m32r_gdbarch_init): Don't register deleted functions with
10835 gdbarch.
10836
89b268d8
AB
108372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10838
10839 * m32c-tdep.c (m32c_unwind_pc): Delete.
10840 (m32c_unwind_sp): Delete.
10841 (m32c_dummy_id): Delete.
10842 (m32c_gdbarch_init): Don't register deleted functions with
10843 gdbarch.
10844
946c28d2
AB
108452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10846
10847 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10848 (lm32_unwind_pc): Delete.
10849 (lm32_dummy_id): Delete.
10850 (lm32_gdbarch_init): Don't register deleted functions with
10851 gdbarch.
10852
bf12844a
AB
108532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10854
10855 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10856 (iq2000_unwind_pc): Delete.
10857 (iq2000_dummy_id): Delete.
10858 (iq2000_gdbarch_init): Don't register deleted functions with
10859 gdbarch.
10860
ecbc06d2
AB
108612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10862
10863 * nds32-tdep.c (nds32_type_align): Delete.
10864 (nds32_push_dummy_call): Use type_align instead.
10865
030197b4
AB
108662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10867
10868 * arm-tdep.c (arm_type_align): Only handle vector override case.
10869 (arm_push_dummy_call): Use type_align.
10870 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10871
b907456c
AB
108722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10873
10874 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10875 case.
10876 (pass_on_stack): Use type_align.
10877 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10878 function.
10879
9e97ba43
TT
108802019-04-23 Tom Tromey <tromey@adacore.com>
10881
10882 * dwarf2read.c (line_header::file_name_at): Remove unused
10883 overload.
10884
6892f601
TV
108852019-04-23 Tom de Vries <tdevries@suse.de>
10886
10887 PR gdb/24438
10888 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10889 invocation.
10890
336d760d
AT
10891
108922019-03-27 Ali Tamur <tamur@google.com>
10893
10894 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10895 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10896 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10897 (dwarf_expr_context::get_addr_index): Likewise
10898 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10899 (symbol_needs_eval_context::get_addr_index): Likewise
10900 (disassemble_dwarf_expression): Add DW_OP_addrx
10901 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10902 (read_cutu_die_from_dwo): Update comment
10903 (skip_one_die): Add DW_FORM_addrx
10904 (read_attribute_value): Likewise
10905 (var_decode_location): Add DW_OP_addrx
10906 (dwarf2_const_value_attr): Add DW_FORM_addrx
10907 (dump_die_shallow): Likewise
10908 (dwarf2_fetch_constant_bytes): Likewise
10909 (decode_locdesc): Add DW_OP_addrx
10910 (skip_form_bytes): Add DW_FORM_addrx
10911
ad9d13f8
AT
109122019-04-22 Ali Tamur <tamur@google.com>
10913
10914 * MAINTAINERS (Write After Approval): Add self.
10915
d70cc3ba
SM
109162019-04-22 Simon Marchi <simon.marchi@efficios.com>
10917
10918 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10919 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10920 (open_symbol_file_object): Likewise.
10921 (svr4_default_sos): Add info parameter.
10922 (svr4_read_so_list): Likewise.
10923 (svr4_current_sos_direct): Adjust functions calls to pass down
10924 info.
10925 (svr4_current_sos_1): Add info parameter.
10926 (svr4_current_sos): Call get_svr4_info, pass info down to
10927 svr4_current_sos_1.
10928 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10929 get_svr4_info.
10930 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10931 get_svr4_info.
10932 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10933 to get_svr4_info.
10934 (probes_table_remove_objfile_probes): Likewise.
10935 (register_solib_event_probe): Add info parameter.
10936 (solist_update_incremental): Pass info parameter down to
10937 svr4_read_so_list.
10938 (disable_probes_interface): Add info parameter.
10939 (svr4_handle_solib_event): Pass current_program_space to
10940 get_svr4_info. Adjust disable_probes_interface cleanup.
10941 (svr4_create_probe_breakpoints): Add info parameter, pass it
10942 down to register_solib_event_probe.
10943 (svr4_create_solib_event_breakpoints): Add info parameter,
10944 pass it down to svr4_create_probe_breakpoints.
10945 (enable_break): Pass info down to
10946 svr4_create_solib_event_breakpoints.
10947 (svr4_solib_create_inferior_hook): Pass current_program_space to
10948 get_svr4_info.
10949 (svr4_clear_solib): Likewise.
10950
7905fc35
PA
109512019-04-22 Pedro Alves <palves@redhat.com>
10952
10953 * solib-svr4.c (svr4_free_objfile_observer): New.
10954 (probe_and_action::objfile): New field.
10955 (probes_table_htab_remove_objfile_probes)
10956 (probes_table_remove_objfile_probes): New functions.
10957 (register_solib_event_probe): Add 'objfile' parameter. Store it
10958 in the new probe_and_action. Don't store the probe in 'lookup'.
10959 (svr4_create_probe_breakpoints): Pass objfile to
10960 register_solib_event_probe.
10961 (_initialize_svr4_solib): Register a free_objfile observer.
10962
fb881986
TT
109632019-04-19 Tom Tromey <tom@tromey.com>
10964
10965 * common/queue.h: Remove.
10966
8732db6c
TT
109672019-04-19 Tom Tromey <tom@tromey.com>
10968
10969 * event-loop.c: Don't include "common/queue.h".
10970
97dfbadd
TT
109712019-04-19 Tom Tromey <tom@tromey.com>
10972
10973 * remote.c (remote_target): Use delete.
10974 * remote-notif.h: Include <list>, not "common/queue.h".
10975 (notif_client_p): Remove typedef.
10976 (remote_notif_state): Add constructor, destructor, initializer.
10977 <notif_queue>: Now a std::list.
10978 (remote_notif_state_xfree): Don't declare.
10979 * remote-notif.c (remote_notif_process, handle_notification)
10980 (remote_notif_state_allocate): Update.
10981 (~remote_notif_state): Rename from remote_notif_state_xfree.
10982
cf250e36
TT
109832019-04-19 Tom Tromey <tom@tromey.com>
10984
10985 * symfile.c (reread_symbols): Update.
10986 * objfiles.c (objfile_register_static_link)
10987 (objfile_lookup_static_link): Update
10988 (~objfile) Don't delete static_links.
10989 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10990
61f4b350
TT
109912019-04-19 Tom Tromey <tom@tromey.com>
10992
10993 * type-stack.h (struct type_stack) <insert>: Constify string.
10994 * type-stack.c (type_stack::insert): Constify string.
10995 * gdbtypes.h (lookup_template_type): Update.
10996 (address_space_name_to_int): Update.
10997 * gdbtypes.c (address_space_name_to_int): Make space_identifier
10998 const.
10999 (lookup_template_type): Make name const.
11000 * c-exp.y: Update rules.
11001 (lex_one_token, classify_name, classify_inner_name)
11002 (c_print_token): Update.
11003 * p-exp.y: Update rules.
11004 (yylex): Update.
11005 * f-exp.y: Update rules.
11006 (yylex): Update.
11007 * d-exp.y: Update rules.
11008 (lex_one_token, classify_name, classify_inner_name): Update.
11009 * parse.c (write_dollar_variable, copy_name): Return std::string.
11010 * parser-defs.h (copy_name): Change return type.
11011 * m2-exp.y: Update rules.
11012 (yylex): Update.
11013 * go-exp.y (lex_one_token): Update.
11014 Update rules.
11015 (classify_unsafe_function, classify_packaged_name)
11016 (classify_name, yylex): Update.
11017
189b8c2e
ST
110182019-04-19 Sergei Trofimovich <siarheit@google.com>
11019
11020 * configure.ac: add --enable-source-highlight switch.
11021 * configure: Regenerate.
11022 * top.c (print_gdb_version): plumb --enable-source-highlight
11023 status to "show configuration".
11024
8ecb59f8
TT
110252019-04-19 Tom Tromey <tromey@adacore.com>
11026
11027 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11028 Check ADA_TYPE_P.
11029 (empty_record, ada_template_to_fixed_record_type_1)
11030 (template_to_static_fixed_type)
11031 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11032 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11033 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11034 macros.
11035
62160ec9
TT
110362019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11037
11038 PR symtab/24423:
11039 * source.c (print_source_lines_base): Advance "iter" when a
11040 control character is seen.
11041
f2ae8bc8
PW
110422019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11043
11044 * inferior.h (struct infcall_suspend_state_deleter):
11045 Catch exception in destructor to avoid crash.
11046
d563b953
PW
110472019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11048
11049 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11050 close to the add_com "shell".
11051
dc34c897
TT
110522019-04-18 Tom Tromey <tromey@adacore.com>
11053
11054 * process-stratum-target.h (class process_stratum_target)
11055 <stratum>: Add "final".
11056
a12e5744
TT
110572019-04-17 Tom Tromey <tromey@adacore.com>
11058
11059 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11060 against nullptr before use.
11061
a7e559cc
AH
110622019-04-17 Alan Hayward <alan.hayward@arm.com>
11063
11064 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11065
c01660c6
AB
110662019-04-17 Jim Wilson <jimw@sifive.com>
11067 Andrew Burgess <andrew.burgess@embecosm.com>
11068
11069 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11070 code read might fail, assume 4-byte breakpoint in that case.
11071
4aa866af
LS
110722019-04-15 Leszek Swirski <leszeks@google.com>
11073
11074 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11075 rather than a hand-rolled POD check when checking for forced MEMORY
11076 classification.
11077
48574d91
AH
110782019-04-15 Alan Hayward <alan.hayward@arm.com>
11079
11080 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11081 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11082 function.
11083 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11084 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11085 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11086 declaration.
11087
4da037ef
AH
110882019-04-15 Alan Hayward <alan.hayward@arm.com>
11089
11090 * aarch64-linux-nat.c
11091 (aarch64_linux_nat_target::thread_architecture): Add override.
11092 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11093 each VQ.
11094
ccb8d7e8
AH
110952019-04-15 Alan Hayward <alan.hayward@arm.com>
11096
11097 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11098
35add35e
AB
110992019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11100
11101 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11102 target types of size 96-bits, add some additional comments, and
11103 check that the builtin type we found was the correct size.
11104
51196bbc
EZ
111052019-04-12 Eli Zaretskii <eliz@gnu.org>
11106
11107 * utils.c (prompt_for_continue): Don't restore the styling at the
11108 end, as applied_style has the wrong value. This fixes styling in
11109 long lists of file names that are interrupted by the "Continue?"
11110 prompt.
11111
62253a61
AB
111122019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11113
11114 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11115 * c-lang.c (c_language_defn): Likewise.
11116 (cplus_language_defn): Likewise.
11117 (asm_language_defn): Likewise.
11118 (minimal_language_defn): Likewise.
11119 * d-lang.c (d_language_defn): Likewise.
11120 * f-lang.c (f_language_defn): Likewise.
11121 * go-lang.c (go_language_defn): Likewise.
11122 * language.c (unknown_language_defn): Likewise.
11123 (auto_language_defn): Likewise.
11124 * language.h (struct language_defn): Remove la_magic field.
11125 (LANG_MAGIC): Delete.
11126 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11127 * objc-lang.c (objc_language_defn): Likewise.
11128 * opencl-lang.c (opencl_language_defn): Likewise.
11129 * p-lang.c (pascal_language_defn): Likewise.
11130 * rust-lang.c (rust_language_defn): Likewise.
11131
a9158a86
AB
111322019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11133
11134 * riscv-tdep.c (riscv_type_align): New function.
11135 (riscv_type_alignment): Delete.
11136 (riscv_arg_location): Use 'type_align'.
11137 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11138
41077b66
AB
111392019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11140
11141 * gdbtypes.c (type_align): A struct with no non-static fields also
11142 has alignment of 1.
11143
9f0272f8
AB
111442019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11145
11146 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11147 component to 0.
11148 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11149 member.
11150 (riscv_struct_info::analyse): New implementation using new
11151 analyse_inner member function.
11152 (riscv_struct_info::field_offset): New member function.
11153 (riscv_struct_info::m_offsets): New member variable.
11154 (riscv_struct_info::analyse_inner): New private member function,
11155 takes the old implementation of riscv_struct_info::analyse but
11156 extended to track field offsets.
11157 (riscv_call_arg_struct): Update the struct folding special cases
11158 to handle cases where empty C++ structs, which are non-zero
11159 length, are found.
11160 (riscv_arg_location): Initialise the length of each location, a
11161 non-zero length now indicates the location is in use.
11162 (riscv_push_dummy_call): Allow for the first location having a
11163 non-zero offset when setting up arguments.
11164 (riscv_return_value): Likewise, but for return values.
11165
02cf60c7
TT
111662019-04-11 Tom Tromey <tromey@adacore.com>
11167
11168 * utils.c (internal_vproblem): Make "msg" const.
11169
68811f8f
AH
111702019-04-11 Alan Hayward <alan.hayward@arm.com>
11171
11172 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11173 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11174 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11175 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11176
3f52fdbc
KB
111772019-04-10 Kevin Buettner <kevinb@redhat.com>
11178
11179 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11180 function.
11181 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11182 of amd64_collect_native_gregset.
11183 (amd64_linux_nat_target::store_registers): Likewise.
11184
e9ad22ee
TT
111852019-04-10 Tom Tromey <tom@tromey.com>
11186
11187 * symtab.c (lookup_global_symbol_from_objfile)
11188 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11189 * objfiles.h (class separate_debug_iterator): New.
11190 (class separate_debug_range): New.
11191 (struct objfile) <separate_debug_objfiles>: New method.
11192 (objfile_separate_debug_iterate): Don't declare.
11193 * objfiles.c (separate_debug_iterator::operator++): Rename from
11194 objfile_separate_debug_iterate.
11195 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11196 iterator.
11197 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11198 iterator.
11199
ee371134
TT
112002019-04-10 Tom Tromey <tom@tromey.com>
11201
11202 * symfile.c (reread_symbols): Remove old comment.
11203 * objfiles.c (free_all_objfiles): Fix a typo.
11204
bf227d61
TT
112052019-04-10 Tom Tromey <tom@tromey.com>
11206
11207 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11208 * minsyms.c (lookup_minimal_symbol): Use foreach.
11209 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11210 (lookup_minimal_symbol_solib_trampoline): Likewise.
11211 * symfile.c (reread_symbols): Use foreach.
11212
8dc433a0
TT
112132019-04-09 Ivan Begert <ivanbegert@gmail.com>
11214 Tom Tromey <tromey@adacore.com>
11215
11216 PR rust/24414:
11217 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11218 (rust_lex_int_test): Change "value" to be LONGEST.
11219 (rust_lex_tests): Add test for long integer literal.
11220
9ab8741a
TT
112212019-04-09 Tom Tromey <tromey@adacore.com>
11222
11223 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11224 to bool.
11225 (extended_remote_target::attach): Update.
11226 (remote_target::remote_notice_new_inferior): Update.
11227 (remote_target::add_current_inferior_and_thread): Update.
11228 * inferior.c (exit_inferior_1): Use "false".
11229 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11230
e242fd12
SM
112312019-04-09 Simon Marchi <simon.marchi@efficios.com>
11232
9ca1957f 11233 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11234 the "start" command.
11235
2b0c8b01
KB
112362019-04-08 Kevin Buettner <kevinb@redhat.com>
11237
11238 * python/py-inferior.c (infpy_thread_from_thread_handle):
11239 Adjust comments to reflect renaming of thread_from_thread_handle
11240 to thread_from_handle. Adjust keywords. Fix type error message.
11241 (inferior_object_methods): Add thread_from_handle. Retain
11242 thread_from_thread_handle, but mark it as deprecated.
11243
50a82723
KB
112442019-04-08 Kevin Buettner <kevinb@redhat.com>
11245
11246 * gdbthread.h (find_thread_by_handle): Revise declaration.
11247 * thread.c (find_thread_by_handle): Likewise. Adjust
11248 implementation too.
11249 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11250 support for buffer objects as handles.
11251
cf63b016
KB
112522019-04-08 Kevin Buettner <kevinb@redhat.com>
11253
11254 * python/py-infthread.c (thpy_thread_handle): New function.
11255 (thread_object_methods): Register thpy_thread_handle.
11256
3d6c6204
KB
112572019-04-08 Kevin Buettner <kevinb@redhat.com>
11258
11259 * gdbthread.h (thread_to_thread_handle): Declare.
11260 * thread.c (gdbtypes.h): Include.
11261 (thread_to_thread_handle): New function.
11262
11263 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11264 (target_thread_info_to_thread_handle): Declare.
11265 * target.c (target_thread_info_to_thread_handle): New function.
11266 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11267 * target-delegates.c: Regenerate.
11268
11269 * linux-thread-db.c (class thread_db_target): Add method
11270 thread_info_to_thread_handle.
11271 (thread_db_target::thread_info_to_thread_handle): Define.
11272 * remote.c (class remote_target): Add new method
11273 thread_info_to_thread_handle.
11274 (remote_target::thread_info_to_thread_handle): Define.
11275
56be6ea8
PA
112762019-04-08 Pedro Alves <palves@redhat.com>
11277
11278 * common/common-exceptions.c (throw_exception): Don't create
11279 named object to throw; throw directly.
11280 (throw_it): Likewise. Don't initialize gdb_exception::message
11281 here, with new; pass FMT and AP to the ctor instead.
11282 * common/common-exceptions.h: Include <string>.
11283 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11284 const char *, va_list)): New ctor. Use std::make_shared.
11285 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11286 errors)): Delete.
11287 (gdb_exception_error::gdb_exception_error(enum errors, const char
11288 *, va_list)): New.
11289 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11290 Add assertion.
11291 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11292 errors)): Delete.
11293 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11294 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11295 Add assertion.
11296
eedc3f4f
TT
112972019-04-08 Tom Tromey <tom@tromey.com>
11298
11299 * valops.c (value_rtti_indirect_type): Replace throw_exception
11300 with throw.
11301 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11302 with throw.
11303 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11304 throw.
11305 * target.c (target_translate_tls_address): Replace throw_exception
11306 with throw.
11307 * stack.c (frame_apply_command_count): Replace throw_exception
11308 with throw.
11309 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11310 throw.
11311 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11312 with throw.
11313 * rs6000-tdep.c (rs6000_frame_cache)
11314 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11315 * remote.c: Replace throw_exception with throw.
11316 * record-full.c (record_full_message, record_full_wait_1)
11317 (record_full_restore): Replace throw_exception with throw.
11318 * record-btrace.c:
11319 (get_thread_current_frame_id, record_btrace_start_replaying)
11320 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11321 (cmd_record_btrace_start): Replace throw_exception with throw.
11322 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11323 throw.
11324 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11325 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11326 * linespec.c:
11327 (find_linespec_symbols): Replace throw_exception with throw.
11328 * infrun.c (displaced_step_prepare, resume): Replace
11329 throw_exception with throw.
11330 * infcmd.c (post_create_inferior): Replace throw_exception with
11331 throw.
11332 * inf-loop.c (inferior_event_handler): Replace throw_exception
11333 with throw.
11334 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11335 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11336 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11337 (get_prev_frame_always, get_frame_pc_if_available)
11338 (get_frame_address_in_block_if_available, get_frame_language):
11339 Replace throw_exception with throw.
11340 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11341 throw_exception with throw.
11342 * eval.c (fetch_subexp_value, evaluate_var_value)
11343 (evaluate_funcall, evaluate_subexp_standard): Replace
11344 throw_exception with throw.
11345 * dwarf2loc.c (call_site_find_chain)
11346 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11347 Replace throw_exception with throw.
11348 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11349 with throw.
11350 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11351 throw.
11352 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11353 * completer.c (complete_line_internal): Replace throw_exception
11354 with throw.
11355 * compile/compile-object-run.c (compile_object_run): Replace
11356 throw_exception with throw.
11357 * cli/cli-script.c (process_next_line): Replace throw_exception
11358 with throw.
11359 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11360 (btrace_enable, btrace_maint_update_pt_packets): Replace
11361 throw_exception with throw.
11362 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11363 throw_exception with throw.
11364 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11365 throw_exception with throw.
11366 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11367 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11368 * aarch64-tdep.c (aarch64_make_prologue_cache)
11369 (aarch64_make_stub_cache): Replace throw_exception with throw.
11370
26003a20
TT
113712019-04-08 Tom Tromey <tom@tromey.com>
11372
11373 * common/common-exceptions.c (throw_exception): Rename from
11374 throw_exception_cxx. Remove old copy. Make argument const.
11375 (throw_it): Create and throw exception objects directly.
11376 * common/common-exceptions.h (throw_exception): Make argument
11377 const.
11378 (struct gdb_exception_error): Add constructor.
11379 (struct gdb_exception_quit): Add constructor.
11380
d272eb37
TT
113812019-04-08 Tom Tromey <tom@tromey.com>
11382
11383 * common/common-exceptions.h (exception_rethrow): Don't declare.
11384 (TRY_SJLJ): Update comment.
11385 (TRY, CATCH, END_CATCH): Remove.
11386 * common/common-exceptions.c (exception_rethrow): Remove.
11387
230d2906
TT
113882019-04-08 Tom Tromey <tom@tromey.com>
11389
11390 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11391 Remove.
11392 (gdb_exception_error): Rename from
11393 gdb_exception_RETURN_MASK_ERROR.
11394 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11395 (gdb_quit_bad_alloc): Update.
11396 * aarch64-tdep.c: Update.
11397 * ada-lang.c: Update.
11398 * ada-typeprint.c: Update.
11399 * ada-valprint.c: Update.
11400 * amd64-tdep.c: Update.
11401 * arch-utils.c: Update.
11402 * break-catch-throw.c: Update.
11403 * breakpoint.c: Update.
11404 * btrace.c: Update.
11405 * c-varobj.c: Update.
11406 * cli/cli-cmds.c: Update.
11407 * cli/cli-interp.c: Update.
11408 * cli/cli-script.c: Update.
11409 * common/common-exceptions.c: Update.
11410 * common/new-op.c: Update.
11411 * common/selftest.c: Update.
11412 * compile/compile-c-symbols.c: Update.
11413 * compile/compile-cplus-symbols.c: Update.
11414 * compile/compile-object-load.c: Update.
11415 * compile/compile-object-run.c: Update.
11416 * completer.c: Update.
11417 * corelow.c: Update.
11418 * cp-abi.c: Update.
11419 * cp-support.c: Update.
11420 * cp-valprint.c: Update.
11421 * darwin-nat.c: Update.
11422 * disasm-selftests.c: Update.
11423 * dtrace-probe.c: Update.
11424 * dwarf-index-cache.c: Update.
11425 * dwarf-index-write.c: Update.
11426 * dwarf2-frame-tailcall.c: Update.
11427 * dwarf2-frame.c: Update.
11428 * dwarf2loc.c: Update.
11429 * dwarf2read.c: Update.
11430 * eval.c: Update.
11431 * event-loop.c: Update.
11432 * event-top.c: Update.
11433 * exec.c: Update.
11434 * f-valprint.c: Update.
11435 * fbsd-tdep.c: Update.
11436 * frame-unwind.c: Update.
11437 * frame.c: Update.
11438 * gdbtypes.c: Update.
11439 * gnu-v3-abi.c: Update.
11440 * guile/guile-internal.h: Update.
11441 * guile/scm-block.c: Update.
11442 * guile/scm-breakpoint.c: Update.
11443 * guile/scm-cmd.c: Update.
11444 * guile/scm-disasm.c: Update.
11445 * guile/scm-frame.c: Update.
11446 * guile/scm-lazy-string.c: Update.
11447 * guile/scm-math.c: Update.
11448 * guile/scm-param.c: Update.
11449 * guile/scm-ports.c: Update.
11450 * guile/scm-pretty-print.c: Update.
11451 * guile/scm-symbol.c: Update.
11452 * guile/scm-symtab.c: Update.
11453 * guile/scm-type.c: Update.
11454 * guile/scm-value.c: Update.
11455 * i386-linux-tdep.c: Update.
11456 * i386-tdep.c: Update.
11457 * inf-loop.c: Update.
11458 * infcall.c: Update.
11459 * infcmd.c: Update.
11460 * infrun.c: Update.
11461 * jit.c: Update.
11462 * language.c: Update.
11463 * linespec.c: Update.
11464 * linux-fork.c: Update.
11465 * linux-nat.c: Update.
11466 * linux-tdep.c: Update.
11467 * linux-thread-db.c: Update.
11468 * main.c: Update.
11469 * mi/mi-cmd-break.c: Update.
11470 * mi/mi-cmd-stack.c: Update.
11471 * mi/mi-interp.c: Update.
11472 * mi/mi-main.c: Update.
11473 * objc-lang.c: Update.
11474 * p-valprint.c: Update.
11475 * parse.c: Update.
11476 * ppc-linux-tdep.c: Update.
11477 * printcmd.c: Update.
11478 * python/py-arch.c: Update.
11479 * python/py-breakpoint.c: Update.
11480 * python/py-cmd.c: Update.
11481 * python/py-finishbreakpoint.c: Update.
11482 * python/py-frame.c: Update.
11483 * python/py-framefilter.c: Update.
11484 * python/py-gdb-readline.c: Update.
11485 * python/py-inferior.c: Update.
11486 * python/py-infthread.c: Update.
11487 * python/py-lazy-string.c: Update.
11488 * python/py-linetable.c: Update.
11489 * python/py-objfile.c: Update.
11490 * python/py-param.c: Update.
11491 * python/py-prettyprint.c: Update.
11492 * python/py-progspace.c: Update.
11493 * python/py-record-btrace.c: Update.
11494 * python/py-record.c: Update.
11495 * python/py-symbol.c: Update.
11496 * python/py-type.c: Update.
11497 * python/py-unwind.c: Update.
11498 * python/py-utils.c: Update.
11499 * python/py-value.c: Update.
11500 * python/python.c: Update.
11501 * record-btrace.c: Update.
11502 * record-full.c: Update.
11503 * remote-fileio.c: Update.
11504 * remote.c: Update.
11505 * riscv-tdep.c: Update.
11506 * rs6000-aix-tdep.c: Update.
11507 * rs6000-tdep.c: Update.
11508 * rust-exp.y: Update.
11509 * rust-lang.c: Update.
11510 * s390-tdep.c: Update.
11511 * selftest-arch.c: Update.
11512 * solib-dsbt.c: Update.
11513 * solib-frv.c: Update.
11514 * solib-spu.c: Update.
11515 * solib-svr4.c: Update.
11516 * solib.c: Update.
11517 * sparc64-linux-tdep.c: Update.
11518 * stack.c: Update.
11519 * symfile-mem.c: Update.
11520 * symmisc.c: Update.
11521 * target.c: Update.
11522 * thread.c: Update.
11523 * top.c: Update.
11524 * tracefile-tfile.c: Update.
11525 * tui/tui.c: Update.
11526 * typeprint.c: Update.
11527 * unittests/cli-utils-selftests.c: Update.
11528 * unittests/parse-connection-spec-selftests.c: Update.
11529 * valops.c: Update.
11530 * valprint.c: Update.
11531 * value.c: Update.
11532 * varobj.c: Update.
11533 * windows-nat.c: Update.
11534 * x86-linux-nat.c: Update.
11535 * xml-support.c: Update.
11536
a70b8144
TT
115372019-04-08 Tom Tromey <tom@tromey.com>
11538
11539 * xml-support.c: Use C++ exception handling.
11540 * x86-linux-nat.c: Use C++ exception handling.
11541 * windows-nat.c: Use C++ exception handling.
11542 * varobj.c: Use C++ exception handling.
11543 * value.c: Use C++ exception handling.
11544 * valprint.c: Use C++ exception handling.
11545 * valops.c: Use C++ exception handling.
11546 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11547 handling.
11548 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11549 * typeprint.c: Use C++ exception handling.
11550 * tui/tui.c: Use C++ exception handling.
11551 * tracefile-tfile.c: Use C++ exception handling.
11552 * top.c: Use C++ exception handling.
11553 * thread.c: Use C++ exception handling.
11554 * target.c: Use C++ exception handling.
11555 * symmisc.c: Use C++ exception handling.
11556 * symfile-mem.c: Use C++ exception handling.
11557 * stack.c: Use C++ exception handling.
11558 * sparc64-linux-tdep.c: Use C++ exception handling.
11559 * solib.c: Use C++ exception handling.
11560 * solib-svr4.c: Use C++ exception handling.
11561 * solib-spu.c: Use C++ exception handling.
11562 * solib-frv.c: Use C++ exception handling.
11563 * solib-dsbt.c: Use C++ exception handling.
11564 * selftest-arch.c: Use C++ exception handling.
11565 * s390-tdep.c: Use C++ exception handling.
11566 * rust-lang.c: Use C++ exception handling.
11567 * rust-exp.y: Use C++ exception handling.
11568 * rs6000-tdep.c: Use C++ exception handling.
11569 * rs6000-aix-tdep.c: Use C++ exception handling.
11570 * riscv-tdep.c: Use C++ exception handling.
11571 * remote.c: Use C++ exception handling.
11572 * remote-fileio.c: Use C++ exception handling.
11573 * record-full.c: Use C++ exception handling.
11574 * record-btrace.c: Use C++ exception handling.
11575 * python/python.c: Use C++ exception handling.
11576 * python/py-value.c: Use C++ exception handling.
11577 * python/py-utils.c: Use C++ exception handling.
11578 * python/py-unwind.c: Use C++ exception handling.
11579 * python/py-type.c: Use C++ exception handling.
11580 * python/py-symbol.c: Use C++ exception handling.
11581 * python/py-record.c: Use C++ exception handling.
11582 * python/py-record-btrace.c: Use C++ exception handling.
11583 * python/py-progspace.c: Use C++ exception handling.
11584 * python/py-prettyprint.c: Use C++ exception handling.
11585 * python/py-param.c: Use C++ exception handling.
11586 * python/py-objfile.c: Use C++ exception handling.
11587 * python/py-linetable.c: Use C++ exception handling.
11588 * python/py-lazy-string.c: Use C++ exception handling.
11589 * python/py-infthread.c: Use C++ exception handling.
11590 * python/py-inferior.c: Use C++ exception handling.
11591 * python/py-gdb-readline.c: Use C++ exception handling.
11592 * python/py-framefilter.c: Use C++ exception handling.
11593 * python/py-frame.c: Use C++ exception handling.
11594 * python/py-finishbreakpoint.c: Use C++ exception handling.
11595 * python/py-cmd.c: Use C++ exception handling.
11596 * python/py-breakpoint.c: Use C++ exception handling.
11597 * python/py-arch.c: Use C++ exception handling.
11598 * printcmd.c: Use C++ exception handling.
11599 * ppc-linux-tdep.c: Use C++ exception handling.
11600 * parse.c: Use C++ exception handling.
11601 * p-valprint.c: Use C++ exception handling.
11602 * objc-lang.c: Use C++ exception handling.
11603 * mi/mi-main.c: Use C++ exception handling.
11604 * mi/mi-interp.c: Use C++ exception handling.
11605 * mi/mi-cmd-stack.c: Use C++ exception handling.
11606 * mi/mi-cmd-break.c: Use C++ exception handling.
11607 * main.c: Use C++ exception handling.
11608 * linux-thread-db.c: Use C++ exception handling.
11609 * linux-tdep.c: Use C++ exception handling.
11610 * linux-nat.c: Use C++ exception handling.
11611 * linux-fork.c: Use C++ exception handling.
11612 * linespec.c: Use C++ exception handling.
11613 * language.c: Use C++ exception handling.
11614 * jit.c: Use C++ exception handling.
11615 * infrun.c: Use C++ exception handling.
11616 * infcmd.c: Use C++ exception handling.
11617 * infcall.c: Use C++ exception handling.
11618 * inf-loop.c: Use C++ exception handling.
11619 * i386-tdep.c: Use C++ exception handling.
11620 * i386-linux-tdep.c: Use C++ exception handling.
11621 * guile/scm-value.c: Use C++ exception handling.
11622 * guile/scm-type.c: Use C++ exception handling.
11623 * guile/scm-symtab.c: Use C++ exception handling.
11624 * guile/scm-symbol.c: Use C++ exception handling.
11625 * guile/scm-pretty-print.c: Use C++ exception handling.
11626 * guile/scm-ports.c: Use C++ exception handling.
11627 * guile/scm-param.c: Use C++ exception handling.
11628 * guile/scm-math.c: Use C++ exception handling.
11629 * guile/scm-lazy-string.c: Use C++ exception handling.
11630 * guile/scm-frame.c: Use C++ exception handling.
11631 * guile/scm-disasm.c: Use C++ exception handling.
11632 * guile/scm-cmd.c: Use C++ exception handling.
11633 * guile/scm-breakpoint.c: Use C++ exception handling.
11634 * guile/scm-block.c: Use C++ exception handling.
11635 * guile/guile-internal.h: Use C++ exception handling.
11636 * gnu-v3-abi.c: Use C++ exception handling.
11637 * gdbtypes.c: Use C++ exception handling.
11638 * frame.c: Use C++ exception handling.
11639 * frame-unwind.c: Use C++ exception handling.
11640 * fbsd-tdep.c: Use C++ exception handling.
11641 * f-valprint.c: Use C++ exception handling.
11642 * exec.c: Use C++ exception handling.
11643 * event-top.c: Use C++ exception handling.
11644 * event-loop.c: Use C++ exception handling.
11645 * eval.c: Use C++ exception handling.
11646 * dwarf2read.c: Use C++ exception handling.
11647 * dwarf2loc.c: Use C++ exception handling.
11648 * dwarf2-frame.c: Use C++ exception handling.
11649 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11650 * dwarf-index-write.c: Use C++ exception handling.
11651 * dwarf-index-cache.c: Use C++ exception handling.
11652 * dtrace-probe.c: Use C++ exception handling.
11653 * disasm-selftests.c: Use C++ exception handling.
11654 * darwin-nat.c: Use C++ exception handling.
11655 * cp-valprint.c: Use C++ exception handling.
11656 * cp-support.c: Use C++ exception handling.
11657 * cp-abi.c: Use C++ exception handling.
11658 * corelow.c: Use C++ exception handling.
11659 * completer.c: Use C++ exception handling.
11660 * compile/compile-object-run.c: Use C++ exception handling.
11661 * compile/compile-object-load.c: Use C++ exception handling.
11662 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11663 * compile/compile-c-symbols.c: Use C++ exception handling.
11664 * common/selftest.c: Use C++ exception handling.
11665 * common/new-op.c: Use C++ exception handling.
11666 * cli/cli-script.c: Use C++ exception handling.
11667 * cli/cli-interp.c: Use C++ exception handling.
11668 * cli/cli-cmds.c: Use C++ exception handling.
11669 * c-varobj.c: Use C++ exception handling.
11670 * btrace.c: Use C++ exception handling.
11671 * breakpoint.c: Use C++ exception handling.
11672 * break-catch-throw.c: Use C++ exception handling.
11673 * arch-utils.c: Use C++ exception handling.
11674 * amd64-tdep.c: Use C++ exception handling.
11675 * ada-valprint.c: Use C++ exception handling.
11676 * ada-typeprint.c: Use C++ exception handling.
11677 * ada-lang.c: Use C++ exception handling.
11678 * aarch64-tdep.c: Use C++ exception handling.
11679
3d6e9d23
TT
116802019-04-08 Tom Tromey <tom@tromey.com>
11681
11682 * xml-support.c (gdb_xml_parser::parse): Update.
11683 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11684 * value.c (show_convenience): Update.
11685 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11686 (test_parse_flags_qcs): Update.
11687 * thread.c (thr_try_catch_cmd): Update.
11688 * target.c (target_translate_tls_address): Update.
11689 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11690 (info_frame_command_core, frame_apply_command_count): Update.
11691 * rust-exp.y (rust_lex_exception_test): Update.
11692 * riscv-tdep.c (riscv_print_one_register_info): Update.
11693 * remote.c (remote_target::enable_btrace): Update.
11694 * record-btrace.c (record_btrace_enable_warn): Update.
11695 * python/py-utils.c (gdbpy_convert_exception): Update.
11696 * printcmd.c (do_one_display, print_variable_and_value): Update.
11697 * mi/mi-main.c (mi_print_exception): Update.
11698 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11699 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11700 * linux-nat.c (linux_nat_target::attach): Update.
11701 * linux-fork.c (class scoped_switch_fork_info): Update.
11702 * infrun.c (displaced_step_prepare): Update.
11703 * infcall.c (call_function_by_hand_dummy): Update.
11704 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11705 * gnu-v3-abi.c (print_one_vtable): Update.
11706 * frame.c (get_prev_frame_always): Update.
11707 * f-valprint.c (info_common_command_for_block): Update.
11708 * exec.c (try_open_exec_file): Update.
11709 * exceptions.c (print_exception, exception_print)
11710 (exception_fprintf, exception_print_same): Update.
11711 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11712 * dwarf-index-cache.c (index_cache::store)
11713 (index_cache::lookup_gdb_index): Update.
11714 * darwin-nat.c (maybe_cache_shell): Update.
11715 * cp-valprint.c (cp_print_value_fields): Update.
11716 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11717 (gcc_cplus_symbol_address): Update.
11718 * compile/compile-c-symbols.c (gcc_convert_symbol)
11719 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11720 * common/selftest.c: Update.
11721 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11722 a std::string.
11723 (exception_try_scope_entry, exception_try_scope_exit): Don't
11724 declare.
11725 (struct exception_try_scope): Remove.
11726 (TRY): Don't use exception_try_scope.
11727 (struct gdb_exception): Add constructor, operator=.
11728 <what>: New method.
11729 (struct gdb_exception_RETURN_MASK_ALL)
11730 (struct gdb_exception_RETURN_MASK_ERROR)
11731 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11732 (struct gdb_quit_bad_alloc): Update.
11733 * common/common-exceptions.c (exception_none): Change
11734 initializer.
11735 (struct catcher) <state, exception>: Initialize inline.
11736 <prev>: Remove member.
11737 (current_catcher): Remove.
11738 (catchers): New global.
11739 (exceptions_state_mc_init): Simplify.
11740 (catcher_pop): Remove.
11741 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11742 (try_scope_depth, exception_try_scope_entry)
11743 (exception_try_scope_exit): Remove.
11744 (throw_exception_sjlj): Update.
11745 (exception_messages, exception_messages_size): Remove.
11746 (throw_it): Simplify.
11747 (gdb_exception_sliced_copy): Remove.
11748 (throw_exception_cxx): Update.
11749 * cli/cli-script.c (script_from_file): Update.
11750 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11751 Update.
11752 * ada-valprint.c (ada_val_print): Update.
11753 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11754 (create_excep_cond_exprs): Update.
11755
c5c10118
TT
117562019-04-08 Tom Tromey <tom@tromey.com>
11757
11758 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11759 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11760 (TRY, CATCH, END_CATCH): Remove some definitions.
11761 * common/common-exceptions.c: Don't use GDB_XCPT.
11762 (catcher_list_size): Remove.
11763 (throw_exception, throw_it): Simplify.
11764
4de283e4
TT
117652019-04-05 Tom Tromey <tom@tromey.com>
11766
11767 Revert the header-sorting patch.
11768 * ft32-tdep.c: Revert.
11769 * frv-tdep.c: Revert.
11770 * frv-linux-tdep.c: Revert.
11771 * frame.c: Revert.
11772 * frame-unwind.c: Revert.
11773 * frame-base.c: Revert.
11774 * fork-child.c: Revert.
11775 * findvar.c: Revert.
11776 * findcmd.c: Revert.
11777 * filesystem.c: Revert.
11778 * filename-seen-cache.h: Revert.
11779 * filename-seen-cache.c: Revert.
11780 * fbsd-tdep.c: Revert.
11781 * fbsd-nat.h: Revert.
11782 * fbsd-nat.c: Revert.
11783 * f-valprint.c: Revert.
11784 * f-typeprint.c: Revert.
11785 * f-lang.c: Revert.
11786 * extension.h: Revert.
11787 * extension.c: Revert.
11788 * extension-priv.h: Revert.
11789 * expprint.c: Revert.
11790 * exec.h: Revert.
11791 * exec.c: Revert.
11792 * exceptions.c: Revert.
11793 * event-top.c: Revert.
11794 * event-loop.c: Revert.
11795 * eval.c: Revert.
11796 * elfread.c: Revert.
11797 * dwarf2read.h: Revert.
11798 * dwarf2read.c: Revert.
11799 * dwarf2loc.c: Revert.
11800 * dwarf2expr.h: Revert.
11801 * dwarf2expr.c: Revert.
11802 * dwarf2-frame.c: Revert.
11803 * dwarf2-frame-tailcall.c: Revert.
11804 * dwarf-index-write.h: Revert.
11805 * dwarf-index-write.c: Revert.
11806 * dwarf-index-common.c: Revert.
11807 * dwarf-index-cache.h: Revert.
11808 * dwarf-index-cache.c: Revert.
11809 * dummy-frame.c: Revert.
11810 * dtrace-probe.c: Revert.
11811 * disasm.h: Revert.
11812 * disasm.c: Revert.
11813 * disasm-selftests.c: Revert.
11814 * dictionary.c: Revert.
11815 * dicos-tdep.c: Revert.
11816 * demangle.c: Revert.
11817 * dcache.h: Revert.
11818 * dcache.c: Revert.
11819 * darwin-nat.h: Revert.
11820 * darwin-nat.c: Revert.
11821 * darwin-nat-info.c: Revert.
11822 * d-valprint.c: Revert.
11823 * d-namespace.c: Revert.
11824 * d-lang.c: Revert.
11825 * ctf.c: Revert.
11826 * csky-tdep.c: Revert.
11827 * csky-linux-tdep.c: Revert.
11828 * cris-tdep.c: Revert.
11829 * cris-linux-tdep.c: Revert.
11830 * cp-valprint.c: Revert.
11831 * cp-support.c: Revert.
11832 * cp-namespace.c: Revert.
11833 * cp-abi.c: Revert.
11834 * corelow.c: Revert.
11835 * corefile.c: Revert.
11836 * continuations.c: Revert.
11837 * completer.h: Revert.
11838 * completer.c: Revert.
11839 * complaints.c: Revert.
11840 * coffread.c: Revert.
11841 * coff-pe-read.c: Revert.
11842 * cli-out.h: Revert.
11843 * cli-out.c: Revert.
11844 * charset.c: Revert.
11845 * c-varobj.c: Revert.
11846 * c-valprint.c: Revert.
11847 * c-typeprint.c: Revert.
11848 * c-lang.c: Revert.
11849 * buildsym.c: Revert.
11850 * buildsym-legacy.c: Revert.
11851 * build-id.h: Revert.
11852 * build-id.c: Revert.
11853 * btrace.c: Revert.
11854 * bsd-uthread.c: Revert.
11855 * breakpoint.h: Revert.
11856 * breakpoint.c: Revert.
11857 * break-catch-throw.c: Revert.
11858 * break-catch-syscall.c: Revert.
11859 * break-catch-sig.c: Revert.
11860 * blockframe.c: Revert.
11861 * block.c: Revert.
11862 * bfin-tdep.c: Revert.
11863 * bfin-linux-tdep.c: Revert.
11864 * bfd-target.c: Revert.
11865 * bcache.c: Revert.
11866 * ax-general.c: Revert.
11867 * ax-gdb.h: Revert.
11868 * ax-gdb.c: Revert.
11869 * avr-tdep.c: Revert.
11870 * auxv.c: Revert.
11871 * auto-load.c: Revert.
11872 * arm-wince-tdep.c: Revert.
11873 * arm-tdep.c: Revert.
11874 * arm-symbian-tdep.c: Revert.
11875 * arm-pikeos-tdep.c: Revert.
11876 * arm-obsd-tdep.c: Revert.
11877 * arm-nbsd-tdep.c: Revert.
11878 * arm-nbsd-nat.c: Revert.
11879 * arm-linux-tdep.c: Revert.
11880 * arm-linux-nat.c: Revert.
11881 * arm-fbsd-tdep.c: Revert.
11882 * arm-fbsd-nat.c: Revert.
11883 * arm-bsd-tdep.c: Revert.
11884 * arch-utils.c: Revert.
11885 * arc-tdep.c: Revert.
11886 * arc-newlib-tdep.c: Revert.
11887 * annotate.h: Revert.
11888 * annotate.c: Revert.
11889 * amd64-windows-tdep.c: Revert.
11890 * amd64-windows-nat.c: Revert.
11891 * amd64-tdep.c: Revert.
11892 * amd64-sol2-tdep.c: Revert.
11893 * amd64-obsd-tdep.c: Revert.
11894 * amd64-obsd-nat.c: Revert.
11895 * amd64-nbsd-tdep.c: Revert.
11896 * amd64-nbsd-nat.c: Revert.
11897 * amd64-nat.c: Revert.
11898 * amd64-linux-tdep.c: Revert.
11899 * amd64-linux-nat.c: Revert.
11900 * amd64-fbsd-tdep.c: Revert.
11901 * amd64-fbsd-nat.c: Revert.
11902 * amd64-dicos-tdep.c: Revert.
11903 * amd64-darwin-tdep.c: Revert.
11904 * amd64-bsd-nat.c: Revert.
11905 * alpha-tdep.c: Revert.
11906 * alpha-obsd-tdep.c: Revert.
11907 * alpha-nbsd-tdep.c: Revert.
11908 * alpha-mdebug-tdep.c: Revert.
11909 * alpha-linux-tdep.c: Revert.
11910 * alpha-linux-nat.c: Revert.
11911 * alpha-bsd-tdep.c: Revert.
11912 * alpha-bsd-nat.c: Revert.
11913 * aix-thread.c: Revert.
11914 * agent.c: Revert.
11915 * addrmap.c: Revert.
11916 * ada-varobj.c: Revert.
11917 * ada-valprint.c: Revert.
11918 * ada-typeprint.c: Revert.
11919 * ada-tasks.c: Revert.
11920 * ada-lang.c: Revert.
11921 * aarch64-tdep.c: Revert.
11922 * aarch64-ravenscar-thread.c: Revert.
11923 * aarch64-newlib-tdep.c: Revert.
11924 * aarch64-linux-tdep.c: Revert.
11925 * aarch64-linux-nat.c: Revert.
11926 * aarch64-fbsd-tdep.c: Revert.
11927 * aarch64-fbsd-nat.c: Revert.
11928 * aarch32-linux-nat.c: Revert.
11929
d55e5aa6
TT
119302019-04-05 Tom Tromey <tom@tromey.com>
11931
11932 * ft32-tdep.c: Sort headers.
11933 * frv-tdep.c: Sort headers.
11934 * frv-linux-tdep.c: Sort headers.
11935 * frame.c: Sort headers.
11936 * frame-unwind.c: Sort headers.
11937 * frame-base.c: Sort headers.
11938 * fork-child.c: Sort headers.
11939 * findvar.c: Sort headers.
11940 * findcmd.c: Sort headers.
11941 * filesystem.c: Sort headers.
11942 * filename-seen-cache.h: Sort headers.
11943 * filename-seen-cache.c: Sort headers.
11944 * fbsd-tdep.c: Sort headers.
11945 * fbsd-nat.h: Sort headers.
11946 * fbsd-nat.c: Sort headers.
11947 * f-valprint.c: Sort headers.
11948 * f-typeprint.c: Sort headers.
11949 * f-lang.c: Sort headers.
11950 * extension.h: Sort headers.
11951 * extension.c: Sort headers.
11952 * extension-priv.h: Sort headers.
11953 * expprint.c: Sort headers.
11954 * exec.h: Sort headers.
11955 * exec.c: Sort headers.
11956 * exceptions.c: Sort headers.
11957 * event-top.c: Sort headers.
11958 * event-loop.c: Sort headers.
11959 * eval.c: Sort headers.
11960 * elfread.c: Sort headers.
11961 * dwarf2read.h: Sort headers.
11962 * dwarf2read.c: Sort headers.
11963 * dwarf2loc.c: Sort headers.
11964 * dwarf2expr.h: Sort headers.
11965 * dwarf2expr.c: Sort headers.
11966 * dwarf2-frame.c: Sort headers.
11967 * dwarf2-frame-tailcall.c: Sort headers.
11968 * dwarf-index-write.h: Sort headers.
11969 * dwarf-index-write.c: Sort headers.
11970 * dwarf-index-common.c: Sort headers.
11971 * dwarf-index-cache.h: Sort headers.
11972 * dwarf-index-cache.c: Sort headers.
11973 * dummy-frame.c: Sort headers.
11974 * dtrace-probe.c: Sort headers.
11975 * disasm.h: Sort headers.
11976 * disasm.c: Sort headers.
11977 * disasm-selftests.c: Sort headers.
11978 * dictionary.c: Sort headers.
11979 * dicos-tdep.c: Sort headers.
11980 * demangle.c: Sort headers.
11981 * dcache.h: Sort headers.
11982 * dcache.c: Sort headers.
11983 * darwin-nat.h: Sort headers.
11984 * darwin-nat.c: Sort headers.
11985 * darwin-nat-info.c: Sort headers.
11986 * d-valprint.c: Sort headers.
11987 * d-namespace.c: Sort headers.
11988 * d-lang.c: Sort headers.
11989 * ctf.c: Sort headers.
11990 * csky-tdep.c: Sort headers.
11991 * csky-linux-tdep.c: Sort headers.
11992 * cris-tdep.c: Sort headers.
11993 * cris-linux-tdep.c: Sort headers.
11994 * cp-valprint.c: Sort headers.
11995 * cp-support.c: Sort headers.
11996 * cp-namespace.c: Sort headers.
11997 * cp-abi.c: Sort headers.
11998 * corelow.c: Sort headers.
11999 * corefile.c: Sort headers.
12000 * continuations.c: Sort headers.
12001 * completer.h: Sort headers.
12002 * completer.c: Sort headers.
12003 * complaints.c: Sort headers.
12004 * coffread.c: Sort headers.
12005 * coff-pe-read.c: Sort headers.
12006 * cli-out.h: Sort headers.
12007 * cli-out.c: Sort headers.
12008 * charset.c: Sort headers.
12009 * c-varobj.c: Sort headers.
12010 * c-valprint.c: Sort headers.
12011 * c-typeprint.c: Sort headers.
12012 * c-lang.c: Sort headers.
12013 * buildsym.c: Sort headers.
12014 * buildsym-legacy.c: Sort headers.
12015 * build-id.h: Sort headers.
12016 * build-id.c: Sort headers.
12017 * btrace.c: Sort headers.
12018 * bsd-uthread.c: Sort headers.
12019 * breakpoint.h: Sort headers.
12020 * breakpoint.c: Sort headers.
12021 * break-catch-throw.c: Sort headers.
12022 * break-catch-syscall.c: Sort headers.
12023 * break-catch-sig.c: Sort headers.
12024 * blockframe.c: Sort headers.
12025 * block.c: Sort headers.
12026 * bfin-tdep.c: Sort headers.
12027 * bfin-linux-tdep.c: Sort headers.
12028 * bfd-target.c: Sort headers.
12029 * bcache.c: Sort headers.
12030 * ax-general.c: Sort headers.
12031 * ax-gdb.h: Sort headers.
12032 * ax-gdb.c: Sort headers.
12033 * avr-tdep.c: Sort headers.
12034 * auxv.c: Sort headers.
12035 * auto-load.c: Sort headers.
12036 * arm-wince-tdep.c: Sort headers.
12037 * arm-tdep.c: Sort headers.
12038 * arm-symbian-tdep.c: Sort headers.
12039 * arm-pikeos-tdep.c: Sort headers.
12040 * arm-obsd-tdep.c: Sort headers.
12041 * arm-nbsd-tdep.c: Sort headers.
12042 * arm-nbsd-nat.c: Sort headers.
12043 * arm-linux-tdep.c: Sort headers.
12044 * arm-linux-nat.c: Sort headers.
12045 * arm-fbsd-tdep.c: Sort headers.
12046 * arm-fbsd-nat.c: Sort headers.
12047 * arm-bsd-tdep.c: Sort headers.
12048 * arch-utils.c: Sort headers.
12049 * arc-tdep.c: Sort headers.
12050 * arc-newlib-tdep.c: Sort headers.
12051 * annotate.h: Sort headers.
12052 * annotate.c: Sort headers.
12053 * amd64-windows-tdep.c: Sort headers.
12054 * amd64-windows-nat.c: Sort headers.
12055 * amd64-tdep.c: Sort headers.
12056 * amd64-sol2-tdep.c: Sort headers.
12057 * amd64-obsd-tdep.c: Sort headers.
12058 * amd64-obsd-nat.c: Sort headers.
12059 * amd64-nbsd-tdep.c: Sort headers.
12060 * amd64-nbsd-nat.c: Sort headers.
12061 * amd64-nat.c: Sort headers.
12062 * amd64-linux-tdep.c: Sort headers.
12063 * amd64-linux-nat.c: Sort headers.
12064 * amd64-fbsd-tdep.c: Sort headers.
12065 * amd64-fbsd-nat.c: Sort headers.
12066 * amd64-dicos-tdep.c: Sort headers.
12067 * amd64-darwin-tdep.c: Sort headers.
12068 * amd64-bsd-nat.c: Sort headers.
12069 * alpha-tdep.c: Sort headers.
12070 * alpha-obsd-tdep.c: Sort headers.
12071 * alpha-nbsd-tdep.c: Sort headers.
12072 * alpha-mdebug-tdep.c: Sort headers.
12073 * alpha-linux-tdep.c: Sort headers.
12074 * alpha-linux-nat.c: Sort headers.
12075 * alpha-bsd-tdep.c: Sort headers.
12076 * alpha-bsd-nat.c: Sort headers.
12077 * aix-thread.c: Sort headers.
12078 * agent.c: Sort headers.
12079 * addrmap.c: Sort headers.
12080 * ada-varobj.c: Sort headers.
12081 * ada-valprint.c: Sort headers.
12082 * ada-typeprint.c: Sort headers.
12083 * ada-tasks.c: Sort headers.
12084 * ada-lang.c: Sort headers.
12085 * aarch64-tdep.c: Sort headers.
12086 * aarch64-ravenscar-thread.c: Sort headers.
12087 * aarch64-newlib-tdep.c: Sort headers.
12088 * aarch64-linux-tdep.c: Sort headers.
12089 * aarch64-linux-nat.c: Sort headers.
12090 * aarch64-fbsd-tdep.c: Sort headers.
12091 * aarch64-fbsd-nat.c: Sort headers.
12092 * aarch32-linux-nat.c: Sort headers.
12093
699bd4cf
TT
120942019-04-04 Tom Tromey <tom@tromey.com>
12095
12096 * varobj.c (varobj_create): Update.
12097 * rust-exp.y (struct rust_parser) <update_innermost_block,
12098 lookup_symbol>: New methods.
12099 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12100 Rename.
12101 (rust_parser::rust_lookup_type)
12102 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12103 * printcmd.c (display_command, do_one_display): Update.
12104 * parser-defs.h (struct parser_state) <parser_state>: Add
12105 "tracker" parameter.
12106 (block_tracker): New member.
12107 (class innermost_block_tracker) <innermost_block_tracker>: Add
12108 "types" parameter.
12109 <reset>: Remove method.
12110 (innermost_block): Don't declare.
12111 (null_post_parser): Update.
12112 * parse.c (innermost_block): Remove global.
12113 (write_dollar_variable): Update.
12114 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12115 Remove "tracker_types" parameter.
12116 (parse_expression): Add "tracker" parameter.
12117 (parse_expression_for_completion): Update.
12118 (null_post_parser): Add "tracker" parameter.
12119 * p-exp.y: Update rules.
12120 * m2-exp.y: Update rules.
12121 * language.h (struct language_defn) <la_post_parser>: Add
12122 "tracker" parameter.
12123 * go-exp.y: Update rules.
12124 * f-exp.y: Update rules.
12125 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12126 parameter.
12127 * d-exp.y: Update rules.
12128 * c-exp.y: Update rules.
12129 * breakpoint.c (set_breakpoint_condition): Create an
12130 innermost_block_tracker.
12131 (watch_command_1): Likewise.
12132 * ada-lang.c (resolve): Add "tracker" parameter.
12133 (resolve_subexp): Likewise.
12134 * ada-exp.y (write_var_from_sym): Update.
12135
dac43e32
TT
121362019-04-04 Tom Tromey <tom@tromey.com>
12137
12138 * type-stack.h: New file.
12139 * type-stack.c: New file.
12140 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12141 type-stack.h.
12142 (insert_into_type_stack, insert_type, push_type, push_type_int)
12143 (insert_type_address_space, pop_type, pop_type_int)
12144 (pop_typelist, pop_type_stack, append_type_stack)
12145 (push_type_stack, get_type_stack, push_typelist)
12146 (follow_type_instance_flags, follow_types): Don't declare.
12147 * parse.c (type_stack): Remove global.
12148 (parse_exp_in_context): Update.
12149 (insert_into_type_stack, insert_type, push_type, push_type_int)
12150 (insert_type_address_space, pop_type, pop_type_int)
12151 (pop_typelist, pop_type_stack, append_type_stack)
12152 (push_type_stack, get_type_stack, push_typelist)
12153 (follow_type_instance_flags, follow_types): Remove (moved to
12154 type-stack.c).
12155 * f-exp.y (type_stack): New global.
12156 Update rules.
12157 (push_kind_type, f_parse): Update.
12158 * d-exp.y (type_stack): New global.
12159 Update rules.
12160 (d_parse): Update.
12161 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12162 Update rules.
12163 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12164 (HFILES_NO_SRCDIR): Add type-stack.h.
12165
2a612529
TT
121662019-04-04 Tom Tromey <tom@tromey.com>
12167
12168 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12169 (rust_parser::convert_ast_to_expression, rust_parse)
12170 (rust_lex_test_completion, rust_lex_tests): Update.
12171 * parser-defs.h (struct expr_completion_state): New.
12172 (struct parser_state) <parser_state>: Add completion parameter.
12173 <mark_struct_expression, mark_completion_tag>: New methods.
12174 <parse_completion, m_completion_state>: New members.
12175 (prefixify_expression, null_post_parser): Update.
12176 (mark_struct_expression, mark_completion_tag): Don't declare.
12177 * parse.c (parse_completion, expout_last_struct)
12178 (expout_tag_completion_type, expout_completion_name): Remove
12179 globals.
12180 (parser_state::mark_struct_expression)
12181 (parser_state::mark_completion_tag): Now methods.
12182 (prefixify_expression): Add last_struct parameter.
12183 (prefixify_subexp): Likewise.
12184 (parse_exp_1): Update.
12185 (parse_exp_in_context): Add cstate parameter. Update.
12186 (parse_expression_for_completion): Create an
12187 expr_completion_state.
12188 (null_post_parser): Add "completion" parameter.
12189 * p-exp.y: Update rules.
12190 (yylex): Update.
12191 * language.h (struct language_defn) <la_post_parser>: Add
12192 "completing" parameter.
12193 * go-exp.y: Update rules.
12194 (lex_one_token): Update.
12195 * expression.h (parse_completion): Don't declare.
12196 * d-exp.y: Update rules.
12197 (lex_one_token): Update rules.
12198 * c-exp.y: Update rules.
12199 (lex_one_token): Update.
12200 * ada-lang.c (resolve): Add "parse_completion" parameter.
12201 (resolve_subexp): Likewise.
12202 (ada_resolve_function): Likewise.
12203
43476f0b
TT
122042019-04-04 Tom Tromey <tom@tromey.com>
12205
12206 * parser-defs.h (struct parser_state) <start_arglist,
12207 end_arglist>: New methods.
12208 <arglist_len, m_funcall_chain>: New members.
12209 (arglist_len, start_arglist, end_arglist): Don't declare.
12210 * parse.c (arglist_len, funcall_chain): Remove global.
12211 (start_arglist, end_arglist): Remove functions.
12212 (parse_exp_in_context): Update.
12213 * p-exp.y: Update rules.
12214 * m2-exp.y: Update rules.
12215 * go-exp.y: Update rules.
12216 * f-exp.y: Update rules.
12217 * d-exp.y: Update rules.
12218 * c-exp.y: Update rules.
12219
5776fca3
TT
122202019-04-04 Tom Tromey <tom@tromey.com>
12221
12222 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12223 lex_operator, push_back>: New methods.
12224 Update all rules.
12225 (rust_parser::lex_hex, lex_escape): Rename and update.
12226 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12227 (rust_parser::lex_operator): Rename and update.
12228 (rust_parser::lex_number, rustyylex, rustyyerror)
12229 (rust_lex_test_init, rust_lex_test_sequence)
12230 (rust_lex_test_push_back, rust_lex_tests): Update.
12231 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12232 parameter.
12233 <lexptr, prev_lexptr>: New members.
12234 (lexptr, prev_lexptr): Don't declare.
12235 * parse.c (lexptr, prev_lexptr): Remove globals.
12236 (parse_exp_in_context): Update.
12237 * p-exp.y (yylex, yyerror): Update.
12238 * m2-exp.y (parse_number, yylex, yyerror): Update.
12239 * go-exp.y (lex_one_token, yyerror): Update.
12240 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12241 * d-exp.y (lex_one_token, yyerror): Update.
12242 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12243 (lex_one_token, yyerror): Update.
12244 * ada-lex.l (YY_INPUT): Update.
12245 (rewind_to_char): Update.
12246 * ada-exp.y (yyerror): Update.
12247
8621b685
TT
122482019-04-04 Tom Tromey <tom@tromey.com>
12249
12250 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12251 * parser-defs.h (struct parser_state) <parser_state>: Add new
12252 parameter.
12253 <comma_terminates>: New member.
12254 (comma_terminates): Don't declare global.
12255 * parse.c (comma_terminates): Remove global.
12256 (parse_exp_in_context): Update.
12257 * p-exp.y (yylex): Update.
12258 * m2-exp.y (yylex): Update.
12259 * go-exp.y (lex_one_token): Update.
12260 * f-exp.y (yylex): Update.
12261 * d-exp.y (lex_one_token): Update.
12262 * c-exp.y (lex_one_token): Update.
12263 * ada-lex.l: Update.
12264
28aaf3fd
TT
122652019-04-04 Tom Tromey <tom@tromey.com>
12266
12267 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12268 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12269 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12270 * parser-defs.h (paren_depth): Don't declare.
12271 * parse.c (paren_depth): Remove global.
12272 (parse_exp_in_context): Update.
12273 * p-exp.y (paren_depth): New global.
12274 (pascal_parse): Initialize it.
12275 * m2-exp.y (paren_depth): New global.
12276 (m2_parse): Initialize it.
12277 * go-exp.y (paren_depth): New global.
12278 (go_parse): Initialize it.
12279 * f-exp.y (paren_depth): New global.
12280 (f_parse): Initialize it.
12281 * d-exp.y (paren_depth): New global.
12282 (d_parse): Initialize it.
12283 * c-exp.y (paren_depth): New global.
12284 (c_parse): Initialize it.
12285 * ada-lex.l (paren_depth): New global.
12286 (lexer_init): Initialize it.
12287
1e58a4a4
TT
122882019-04-04 Tom Tromey <tom@tromey.com>
12289
12290 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12291 (rust_parser::convert_ast_to_type)
12292 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12293 * parser-defs.h (struct parser_state) <parser_state>: Add
12294 parameters. Initialize new members.
12295 <expression_context_block, expression_context_pc>: New members.
12296 * parse.c (expression_context_block, expression_context_pc):
12297 Remove globals.
12298 (parse_exp_in_context): Update.
12299 * p-exp.y: Update all rules.
12300 (yylex): Update.
12301 * m2-exp.y: Update all rules.
12302 (yylex): Update.
12303 * go-exp.y (yylex): Update.
12304 * f-exp.y (yylex): Update.
12305 * d-exp.y: Update all rules.
12306 (yylex): Update.
12307 * c-exp.y: Update all rules.
12308 (lex_one_token, classify_name, yylex, c_parse): Update.
12309 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12310
37eedb39
TT
123112019-04-04 Tom Tromey <tom@tromey.com>
12312
12313 * gdbarch.h, gdbarch.c: Rebuild.
12314 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12315 * stap-probe.h:
12316 (struct stap_parse_info): Replace "parser_state" with
12317 "expr_builder".
12318 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12319 (parser_state): New class.
12320 * parse.c (expr_builder): Rename.
12321 (expr_builder::release): Rename.
12322 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12323 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12324 (write_exp_elt_longcst, write_exp_elt_floatcst)
12325 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12326 (write_exp_string_vector, write_exp_bitstring)
12327 (write_exp_msymbol, mark_struct_expression)
12328 (write_dollar_variable)
12329 (insert_type_address_space, increase_expout_size): Replace
12330 "parser_state" with "expr_builder".
12331 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12332 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12333 "parser_state" with "expr_builder".
12334
73923d7e
TT
123352019-04-04 Tom Tromey <tom@tromey.com>
12336
12337 * rust-exp.y: Replace "parse_language" with method call.
12338 * p-exp.y:
12339 (yylex): Replace "parse_language" with method call.
12340 * m2-exp.y:
12341 (yylex): Replace "parse_language" with method call.
12342 * go-exp.y (classify_name): Replace "parse_language" with method
12343 call.
12344 * f-exp.y (yylex): Replace "parse_language" with method call.
12345 * d-exp.y (lex_one_token): Replace "parse_language" with method
12346 call.
12347 * c-exp.y:
12348 (lex_one_token, classify_name, yylex): Replace "parse_language"
12349 with method call.
12350 * ada-exp.y (find_primitive_type, type_char)
12351 (type_system_address): Replace "parse_language" with method call.
12352
fa9f5be6
TT
123532019-04-04 Tom Tromey <tom@tromey.com>
12354
12355 * rust-exp.y: Replace "parse_gdbarch" with method call.
12356 * parse.c (write_dollar_variable, insert_type_address_space):
12357 Replace "parse_gdbarch" with method call.
12358 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12359 call.
12360 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12361 call.
12362 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12363 "parse_gdbarch" with method call.
12364 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12365 with method call.
12366 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12367 "parse_gdbarch" with method call.
12368 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12369 "parse_gdbarch" with method call.
12370 * c-exp.y (parse_type, parse_number, classify_name): Replace
12371 "parse_gdbarch" with method call.
12372 * ada-lex.l: Replace "parse_gdbarch" with method call.
12373 * ada-exp.y (parse_type, find_primitive_type, type_char)
12374 (type_system_address): Replace "parse_gdbarch" with method call.
12375
1201a264
TT
123762019-04-04 Tom Tromey <tom@tromey.com>
12377
12378 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12379 * stap-probe.c (stap_parse_argument): Update.
12380 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12381 initial_size parameter.
12382 * rust-exp.y (rust_lex_tests): Update.
12383 * parse.c (parser_state): Update.
12384 (parse_exp_in_context): Update.
12385 * parser-defs.h (struct parser_state) <parser_state>: Remove
12386 "initial_size" parameter.
12387
e3980ce2
TT
123882019-04-04 Tom Tromey <tom@tromey.com>
12389
12390 * parser-defs.h (increase_expout_size): Don't declare.
12391 * parse.c (increase_expout_size): Now static.
12392
e9f8e3f1
TS
123932019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12394
12395 * gnu-nat.c (gnu_nat_target::wait): Fix
12396 target_waitstatus_to_string call.
12397
d7df6549
AB
123982019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12399
12400 * eval.c (evaluate_subexp_standard): Handle internal functions
12401 during Fortran function call handling.
12402
8bdc1658
AB
124032019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12404
12405 * NEWS: Mention new internal functions.
12406 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12407 (read_base_type): Use dwarf2_init_complex_target_type.
12408 * value.c (creal_internal_fn): New function.
12409 (cimag_internal_fn): New function.
12410 (_initialize_values): Register new internal functions.
12411
c29705b7
PW
124122019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12413
12414 * infrun.c (stop_all_threads): If debug_infrun, always
12415 trace the wait status after wait_one, using
12416 target_waitstatus_to_string and target_pid_to_str.
12417 (handle_inferior_event): Replace various trace of
12418 wait status kind by a single trace.
12419 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12420 wait status kind image by target_waitstatus_to_string.
12421 * target/waitstatus.c (target_waitstatus_to_string): Fix
12422 obsolete comment.
12423
05caa1d2
TT
124242019-04-01 Tom Tromey <tromey@adacore.com>
12425
12426 PR symtab/23331:
12427 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12428
9d1447e0
SDJ
124292019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12430 Pedro Alves <palves@redhat.com>
12431
12432 * top.c (quit_force): Call 'finalize_values'.
12433 * value.c (finalize_values): New function.
12434 * value.h (finalize_values): Declare.
12435
7734102d
EZ
124362019-03-30 Eli Zaretskii <eliz@gnu.org>
12437
12438 * NEWS: Announce $_gdb_major and $_gdb_minor.
12439
12440 * top.c (init_gdb_version_vars): New function.
12441 (gdb_init): Call init_gdb_version_vars.
12442
188e1fa9
TT
124432019-03-29 Tom Tromey <tromey@adacore.com>
12444
12445 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12446 help text. Remove dead code.
12447
2880242d
KS
124482019-03-29 Keith Seitz <keiths@redhat.com>
12449
12450 From Siddhesh Poyarekar:
12451 * f-lang.h (f77_get_upperbound): Return LONGEST.
12452 (f77_get_lowerbound): Likewise.
12453 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12454 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12455 print them.
12456 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12457 plongest to format print it.
12458 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12459 (f77_get_upperbound): Likewise.
12460 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12461 LOWER_BOUND to LONGEST.
12462 (f77_create_arrayprint_offset_tbl): Likewise.
12463
cc1defb1
KS
124642019-03-29 Keith Seitz <keiths@redhat.com>
12465
12466 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12467 %s/pulongest for TYPE_LENGTH instead of %d in format
12468 strings.
12469 * ada-typerint.c (ada_print_type): Likewise.
12470 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12471 * compile/compile-c-support.c (generate_register_struct): Likewise.
12472 * gdbtypes.c (recursive_dump_type): Likewise.
12473 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12474 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12475 instead of %d in format strings.
12476 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12477 to std::min to ULONGEST.
12478 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12479 instead of %d in format strings.
12480 * tracepoint.c (info_scope_command): Likewise.
12481 * typeprint.c (print_offset_data::update)
12482 (print_offset_data::finish): Likewise.
12483 * xtensa-tdep.c (xtensa_store_return_value)
12484 (xtensa_push_dummy_call): Likewise.
12485
e432ccf1
JT
124862019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12487
12488 * windows-nat.c (display_selector): Fixed format specifications
12489 for 64-bit Cygwin.
12490
65d2b333
PW
124912019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12492
12493 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12494
f489207e
SL
124952019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12496
12497 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12498 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12499 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12500 (nios2_linux_init_abi): Install it.
12501
bffa1015
AH
125022019-03-28 Alan Hayward <alan.hayward@arm.com>
12503
12504 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12505
fc96163a
AH
125062019-03-28 Alan Hayward <alan.hayward@arm.com>
12507
12508 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12509
20dc7e9b
PW
125102019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12511 Tom Tromey <tromey@adacore.com>
12512
12513 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12514
7f5331a8
JB
125152019-03-26 Joel Brobecker <brobecker@adacore.com>
12516
12517 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12518 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12519 method to compute the bounds of range types. Also print "[evaluated]"
12520 if the bounds' values come from a dynamic evaluation.
12521
18c77628
AB
125222019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12523
12524 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12525 whitespace when pretty printing is on.
12526
53c973f2
AH
125272019-03-26 Alan Hayward <alan.hayward@arm.com>
12528
e79be6e5 12529 * ppc-linux-nat.c: Add include.
53c973f2 12530
d851aa71
AH
125312019-03-26 Alan Hayward <alan.hayward@arm.com>
12532
e79be6e5 12533 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12534
2fe7bab7
AH
125352019-03-26 Alan Hayward <alan.hayward@arm.com>
12536
e79be6e5 12537 * arm-linux-nat.c: Add include.
2fe7bab7 12538
068ef30e
SM
125392019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12540
12541 * source-cache.c (source_cache::get_source_lines): Re-read
12542 fullname after calling open_source_file.
12543
81a24d04
JB
125442019-03-25 John Baldwin <jhb@FreeBSD.org>
12545
12546 * NEWS: Mention TLS support for FreeBSD.
12547
79e7ae11
TT
125482019-03-25 Tom Tromey <tromey@adacore.com>
12549
12550 * minsyms.c (BUNCH_SIZE): Update comment.
12551 (~minimal_symbol_reader): Remove old comment.
12552 (compact_minimal_symbols): Update comment.
12553 (minimal_symbol_reader::install): Remove old comment. Update
12554 other comments.
12555
d45963c2
AH
125562019-03-25 Alan Hayward <alan.hayward@arm.com>
12557
12558 * s390-linux-nat.c: Add include.
12559
0f83012e
AH
125602019-03-25 Alan Hayward <alan.hayward@arm.com>
12561
12562 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12563 Call linux_get_hwcap.
12564 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12565 Likewise.
12566 (aarch64_linux_get_hwcap): Remove function.
12567 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12568 declaration.
12569 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12570 linux_get_hwcap.
12571 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12572 * linux-tdep.c (linux_get_hwcap): Add function.
12573 (linux_get_hwcap2): Likewise.
12574 * linux-tdep.h (linux_get_hwcap): Add declaration.
12575 (linux_get_hwcap2): Likewise.
12576 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12577 (ppc_linux_get_hwcap2): Likewise.
12578 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12579 linux_get_hwcap.
12580 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12581 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12582 (ppc_linux_nat_target::read_description): Likewise.
12583 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12584 * s390-linux-nat.c: Likewise.
12585 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12586
6640a367
TT
125872019-03-24 Tom Tromey <tom@tromey.com>
12588
12589 * ada-lang.c (standard_lookup): Simplify initialization.
12590 (ada_lookup_symbol_nonlocal): Simplify return.
12591 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12592 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12593 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12594 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12595 initialization.
12596 * solib.c (solib_global_lookup): Simplify.
12597 * symtab.c (null_block_symbol): Remove.
12598 (symbol_cache_lookup): Simplify returns.
12599 (lookup_language_this): Simplify returns.
12600 (lookup_symbol_aux): Simplify return.
12601 (lookup_local_symbol): Simplify returns.
12602 (lookup_global_symbol_from_objfile): Simplify return.
12603 (lookup_symbol_in_objfile_symtabs)
12604 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12605 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12606 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12607 * cp-namespace.c (cp_lookup_bare_symbol)
12608 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12609 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12610 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12611 (cp_lookup_symbol_via_imports): Simplify initialization.
12612 (find_symbol_in_baseclass): Likewise.
12613 * symtab.h (null_block_symbol): Remove.
12614 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12615 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12616 (d_lookup_symbol_module): Likewise.
12617 (find_symbol_in_baseclass): Simplify initialization.
12618
a930ebcd
TT
126192019-03-24 Tom Tromey <tom@tromey.com>
12620
12621 * expression.h: Don't include symtab.h.
12622 (struct block): Forward declare.
12623
582942f4
TT
126242019-03-24 Tom Tromey <tom@tromey.com>
12625
12626 * c-exp.y (typebase): Remove casts.
12627 * gdbtypes.c (lookup_unsigned_typename, )
12628 (lookup_signed_typename): Remove cast.
12629 * eval.c (parse_to_comma_and_eval): Remove cast.
12630 * parse.c (write_dollar_variable): Remove cast.
12631 * block.h (struct block) <superblock>: Now const.
12632 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12633 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12634 (map_block): Make "block" const.
12635 * symfile.h (struct quick_symbol_functions)
12636 <map_matching_symbols>: Constify block argument to "callback".
12637 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12638 const.
12639 (find_pc_sect_compunit_symtab): Make "b" const.
12640 (find_symbol_at_address): Likewise.
12641 (search_symbols): Likewise.
12642 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12643 (dw2_debug_names_lookup_symbol): Likewise.
12644 (dw2_map_matching_symbols): Update.
12645 * p-valprint.c (pascal_val_print): Remove "block".
12646 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12647 (aux_add_nonlocal_symbols): Make "block" const.
12648 (resolve_subexp): Remove cast.
12649 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12650 const.
12651 (iterate_over_file_blocks): Likewise.
12652 * f-exp.y (%union) <bval>: Remove.
12653 * coffread.c (patch_opaque_types): Make "b" const.
12654 * spu-tdep.c (spu_catch_start): Make "block" const.
12655 * c-valprint.c (print_unpacked_pointer): Remove "block".
12656 * symmisc.c (dump_symtab_1): Make "b" const.
12657 (block_depth): Make "block" const.
12658 * d-exp.y (%union) <bval>: Remove.
12659 * cp-support.h (cp_lookup_rtti_type): Update.
12660 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12661 * psymtab.c (psym_lookup_symbol): Make "block" const.
12662 (maintenance_check_psymtabs): Make "b" const.
12663 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12664 (enumerate_locals, enumerate_args): Update.
12665 * python/py-symtab.c (stpy_global_block): Make "block" const.
12666 (stpy_static_block): Likewise.
12667 * inline-frame.c (block_starting_point_at): Make "new_block"
12668 const.
12669 * block.c (find_block_in_blockvector): Make return type const.
12670 (blockvector_for_pc_sect): Make "b" const.
12671 (find_block_in_blockvector): Make "b" const.
12672
7ad417dd
TT
126732019-03-23 Tom Tromey <tom@tromey.com>
12674
12675 * varobj.c (varobj_create): Update.
12676 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12677 * printcmd.c (display_command, do_one_display): Don't reset
12678 innermost_block.
12679 * parser-defs.h (enum innermost_block_tracker_type): Move to
12680 expression.h.
12681 (innermost_block): Update comment.
12682 * parse.c (parse_exp_1): Add tracker_types parameter.
12683 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12684 tracker_types parameter. Reset innermost_block.
12685 (parse_exp_in_context): Remove.
12686 (parse_expression_for_completion): Update.
12687 * objfiles.c (~objfile): Don't reset expression_context_block or
12688 innermost_block.
12689 * expression.h (enum innermost_block_tracker_type): Move from
12690 parser-defs.h.
12691 (parse_exp_1): Add tracker_types parameter.
12692 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12693 reset innermost_block.
12694
b366c208
TT
126952019-03-23 Tom Tromey <tom@tromey.com>
12696
12697 * objfiles.h: Include bcache.h.
12698
9bb9b2f9
TT
126992019-03-23 Tom Tromey <tom@tromey.com>
12700
12701 * linespec.c (get_current_search_block): Use
12702 scoped_restore_current_language.
12703 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12704
59c28372
AH
127052019-03-22 Alan Hayward <alan.hayward@arm.com>
12706 Jiong Wang <jiong.wang@arm.com>
12707
12708 * aarch64-linux-tdep.c
12709 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12710 section.
12711 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12712
17e116a7
AH
127132019-03-22 Alan Hayward <alan.hayward@arm.com>
12714 Jiong Wang <jiong.wang@arm.com>
12715
12716 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12717 instructions.
12718 (aarch64_analyze_prologue_test): Add PACIASP test.
12719 (aarch64_prologue_prev_register): Unmask PC value.
12720
11e1b75f
AH
127212019-03-22 Alan Hayward <alan.hayward@arm.com>
12722 Jiong Wang <jiong.wang@arm.com>
12723
12724 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12725 (aarch64_dwarf2_prev_register): Unmask PC value.
12726 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12727 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12728 DW_CFA_AARCH64_negate_ra_state.
12729 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12730
34dcc7cf
AH
127312019-03-22 Alan Hayward <alan.hayward@arm.com>
12732 Jiong Wang <jiong.wang@arm.com>
12733
12734 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12735 registers.
12736 (aarch64_pseudo_register_name): Likewise.
12737 (aarch64_pseudo_register_type): Likewise.
12738 (aarch64_pseudo_register_reggroup_p): Likewise.
12739 (aarch64_gdbarch_init): Add pauth registers.
12740 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12741 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12742 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12743 (struct gdbarch_tdep): Add regnum for ra_state.
12744
1ef53e6b
AH
127452019-03-22 Alan Hayward <alan.hayward@arm.com>
12746 Jiong Wang <jiong.wang@arm.com>
12747
12748 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12749
76bed0fd
AH
127502019-03-22 Alan Hayward <alan.hayward@arm.com>
12751 Jiong Wang <jiong.wang@arm.com>
12752
12753 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12754 function.
12755 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12756 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12757 (aarch64_gdbarch_init): Add puth registers.
12758 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12759 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12760 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12761
ee4fbcfa
AH
127622019-03-22 Alan Hayward <alan.hayward@arm.com>
12763 Jiong Wang <jiong.wang@arm.com>
12764
12765 * aarch64-linux-nat.c
12766 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12767 * aarch64-linux-tdep.c
12768 (aarch64_linux_core_read_description): Likewise.
12769 (aarch64_linux_get_hwcap): New function.
12770 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12771 (aarch64_linux_get_hwcap): New declaration.
12772
6dc0ebde
AH
127732019-03-22 Alan Hayward <alan.hayward@arm.com>
12774 Jiong Wang <jiong.wang@arm.com>
12775
12776 * aarch64-linux-nat.c
12777 (aarch64_linux_nat_target::read_description): Add pauth param.
12778 * aarch64-linux-tdep.c
12779 (aarch64_linux_core_read_description): Likewise.
12780 * aarch64-tdep.c (struct target_desc): Add in pauth.
12781 (aarch64_read_description): Add pauth param.
12782 (aarch64_gdbarch_init): Likewise.
12783 * aarch64-tdep.h (aarch64_read_description): Likewise.
12784 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12785 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12786 * features/Makefile: Add new files.
12787 * features/aarch64-pauth.c: New file.
12788 * features/aarch64-pauth.xml: New file.
12789
595915c1
TT
127902019-03-20 Tom Tromey <tromey@adacore.com>
12791
12792 * infrun.c (handle_inferior_event): Rename from
12793 handle_inferior_event_1. Create a scoped_value_mark.
12794 (handle_inferior_event): Remove.
12795
4c7d57e7
TT
127962019-03-19 Tom Tromey <tromey@adacore.com>
12797
12798 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12799 * infrun.h (print_stop_event): Add "displays" parameter.
12800 * infrun.c (print_stop_event): Add "displays" parameter.
12801
cb246234
PA
128022019-03-19 Pedro Alves <palves@redhat.com>
12803
12804 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12805 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12806 to -1. Fix TABs vs spaces.
12807 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12808 * tui/tui-out.h (tui_ui_out) Add intro comments.
12809 <m_line, m_start_of_line>: In-class initialize, and add describing
12810 comment.
12811
3a0e45b2
AH
128122019-03-18 Alan Hayward <alan.hayward@arm.com>
12813
12814 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12815 variable names.
12816 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12817
5371b850
PA
128182019-03-18 Pedro Alves <palves@redhat.com>
12819 Eli Zaretskii <eliz@gnu.org>
12820
12821 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12822 m_line and m_start_of_line.
12823
b17c4cd0
EZ
128242019-03-18 Eli Zaretskii <eliz@gnu.org>
12825
12826 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12827 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12828 it returns a newline. This fixes a regression in TU mode, whereby
12829 the next line is output on the same screen line as the user input.
12830
4bd56d18
TT
128312019-03-18 Tom Tromey <tromey@adacore.com>
12832
12833 * minsyms.c (minimal_symbol_reader::install): Remove call to
12834 obstack_blank.
12835
55c10aca
PA
128362019-03-18 Pedro Alves <palves@redhat.com>
12837
12838 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12839 New globals.
12840 (apply_style): New, factored out from ...
12841 (apply_ansi_escape): ... this. Handle reverse video mode.
12842 (tui_set_reverse_mode): New function.
12843 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12844 * tui/tui-winsource.c (tui_show_source_line): Use
12845 tui_set_reverse_mode instead of setting A_STANDOUT.
12846 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12847 New setter methods.
12848
647bb750
HD
128492019-03-18 Hannes Domani <ssbssa@yahoo.de>
12850
12851 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12852 Handle tabs.
12853
bff8c71f
TT
128542019-03-18 Tom Tromey <tromey@adacore.com>
12855
12856 * ada-lang.c (empty_array): Add "high" parameter.
12857 (ada_evaluate_subexp): Update.
12858
58785d98
ST
128592019-03-17 Sergei Trofimovich <siarheit@google.com>
12860
12861 * unittests/string_view-selftests.c: Define
12862 _initialize_string_view_selftests unconditionally.
12863
d4cbef22
ВМ
128642019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12865
12866 PR gdb/24350
12867 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12868
fce4c071
ВМ
128692019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12870
12871 PR gdb/24351
12872 * windows-nat.c (display_selector): Fix format specifiers.
12873
f7f0a123
EZ
128742019-03-17 Eli Zaretskii <eliz@gnu.org>
12875
12876 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12877 tui_refill_source_window instead of tui_refresh_win, to update the
12878 current execution line. This fixes redisplay of the current line
12879 when stepping through the code with "next" or "step".
12880
ab42892f
EZ
128812019-03-16 Eli Zaretskii <eliz@gnu.org>
12882
12883 * source-cache.c (source_cache::get_source_lines): Call
12884 find_source_lines to initialize s->nlines. This fixes vertical
12885 scrolling of TUI source window when the DOWN arrow is pressed.
12886
8d8c087f
PW
128872019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12888
12889 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12890 linux-thread-db.c (_initialize_thread_db): Likewise.
12891
798e1c30
EZ
128922019-03-16 Eli Zaretskii <eliz@gnu.org>
12893
12894 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12895 wclrtoeol in tui_show_source_line". This reverts changes made in
12896 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12897
eefba3da
TT
128982019-03-15 Tom Tromey <tom@tromey.com>
12899
12900 * symtab.h (struct minimal_symbol): Derive from
12901 general_symbol_info.
12902 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12903 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12904 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12905 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12906 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12907 (MSYMBOL_SEARCH_NAME): Update.
12908 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12909 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12910 * minsyms.c (minimal_symbol_reader::record_full): Update.
12911
0de2420c
TT
129122019-03-15 Tom Tromey <tom@tromey.com>
12913
12914 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12915
042d75e4
TT
129162019-03-15 Tom Tromey <tom@tromey.com>
12917
12918 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12919 unique_xmalloc_ptr.
12920 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12921 Update.
12922 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12923 (build_minimal_symbol_hash_tables)
12924 (minimal_symbol_reader::install): Update.
12925
db92718b
TT
129262019-03-15 Tom Tromey <tom@tromey.com>
12927
12928 * symtab.c (create_demangled_names_hash): Update.
12929 (symbol_set_names): Update.
12930 * objfiles.h (struct objfile_per_bfd_storage)
12931 <demangled_names_hash>: Now an htab_up.
12932 * objfiles.c (objfile_per_bfd_storage): Simplify.
12933
d6797f46
TT
129342019-03-15 Tom Tromey <tom@tromey.com>
12935
12936 * objfiles.h (struct objfile_per_bfd_storage): Declare
12937 destructor.
12938 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12939 New.
12940 (get_objfile_bfd_data): Use new. Don't initialize
12941 language_of_main.
12942 (free_objfile_per_bfd_storage): Remove.
12943 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12944
741d7538
TT
129452019-03-15 Tom Tromey <tom@tromey.com>
12946
12947 * symfile.c (reread_symbols): Update.
12948 * objfiles.c (objfile::objfile): Update.
12949 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12950 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12951 comment.
12952 (minimal_symbol_reader::install): Update.
12953 (terminate_minimal_symbol_table): Remove.
12954 * jit.c (jit_object_close_impl): Update.
12955
788c80d1
TT
129562019-03-15 Tom Tromey <tom@tromey.com>
12957
12958 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12959 initializations.
12960
1b7a07cb
TT
129612019-03-15 Tom Tromey <tom@tromey.com>
12962
12963 * objfiles.h (struct objfile_per_bfd_storage)
12964 <demangled_hash_languages>: Now a bitset.
12965 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12966 (lookup_minimal_symbol): Update.
12967
3db066bc
TT
129682019-03-15 Tom Tromey <tom@tromey.com>
12969
12970 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12971 Don't return the symbol.
12972 * coffread.c (record_minimal_symbol): Use record_full.
12973
3fff2c37
EZ
129742019-03-14 Eli Zaretskii <eliz@gnu.org>
12975
12976 The MS-Windows port of ncurses fails to switch to a color pair if
12977 one or both of the colors are the implicit default colors. This
12978 change records the default colors when TUI is initialized, and
12979 then specifies them explicitly when a color pair uses the default
12980 colors. This allows color styling in TUI mode on MS-Windows.
12981
12982 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12983 ncurses_norm_attr.
12984 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12985 colors in ncurses_norm_attr.
12986 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12987 "none", replace it with the default color recorded in
12988 ncurses_norm_attr.
12989
3b336828
TT
129902019-03-14 Tom Tromey <tromey@adacore.com>
12991
12992 * source-cache.h (class source_cache) <get_source_lines>: Return
12993 std::string.
12994 * source-cache.c (source_cache::extract_lines): Handle case where
12995 first_pos==npos. Return std::string.
12996 (source_cache::get_source_lines): Update.
12997
d085f989
TT
129982019-03-14 Tom Tromey <tromey@adacore.com>
12999
13000 * NEWS: Add item for "style sources" commands.
13001 * source-cache.c (source_cache::get_source_lines): Check
13002 source_styling.
13003 * cli/cli-style.c (source_styling): New global.
13004 (_initialize_cli_style): Add "style sources" commands.
13005 (show_style_sources): New function.
13006 * cli/cli-style.h (source_styling): Declare.
13007
6f11e682
TT
130082019-03-14 Pedro Alves <palves@redhat.com>
13009 Tom Tromey <tromey@adacore.com>
13010
13011 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13012 * tui/tui-winsource.c (tui_refill_source_window): New function,
13013 from...
13014 (tui_horizontal_source_scroll): ... here. Move some logic.
13015 * cli/cli-style.c (set_style_enabled): Notify new observable.
13016 * tui/tui-hooks.c (tui_redisplay_source): New function.
13017 (tui_attach_detach_observers): Attach or detach
13018 tui_redisplay_source.
13019 * observable.h (source_styling_changed): New observable.
13020 * observable.c: Define source_styling_changed observable.
13021
a068643d
TT
130222019-03-13 Tom Tromey <tromey@adacore.com>
13023
13024 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13025 (i386_gnu_nat_target::store_registers): Update.
13026 * target-debug.h (target_debug_print_std_string): New macro.
13027 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13028 * windows-tdep.c (display_one_tib): Update.
13029 * tui/tui-stack.c (tui_make_status_line): Update.
13030 * top.c (print_inferior_quit_action): Update.
13031 * thread.c (thr_try_catch_cmd): Update.
13032 (add_thread_with_info): Update.
13033 (thread_target_id_str): Update.
13034 (thr_try_catch_cmd): Update.
13035 (thread_command): Update.
13036 (thread_find_command): Update.
13037 * record-btrace.c (record_btrace_target::info_record)
13038 (record_btrace_resume_thread, record_btrace_target::resume)
13039 (record_btrace_cancel_resume, record_btrace_step_thread)
13040 (record_btrace_target::wait, record_btrace_target::wait)
13041 (record_btrace_target::wait, record_btrace_target::stop): Update.
13042 * progspace.c (print_program_space): Update.
13043 * process-stratum-target.c
13044 (process_stratum_target::thread_address_space): Update.
13045 * linux-fork.c (linux_fork_mourn_inferior)
13046 (detach_checkpoint_command, info_checkpoints_command)
13047 (linux_fork_context): Update.
13048 (linux_fork_detach): Update.
13049 (class scoped_switch_fork_info): Update.
13050 (delete_checkpoint_command): Update.
13051 * infrun.c (follow_fork_inferior): Update.
13052 (follow_fork_inferior): Update.
13053 (proceed_after_vfork_done): Update.
13054 (handle_vfork_child_exec_or_exit): Update.
13055 (follow_exec): Update.
13056 (displaced_step_prepare_throw): Update.
13057 (displaced_step_restore): Update.
13058 (start_step_over): Update.
13059 (resume_1): Update.
13060 (clear_proceed_status_thread): Update.
13061 (proceed): Update.
13062 (print_target_wait_results): Update.
13063 (do_target_wait): Update.
13064 (context_switch): Update.
13065 (stop_all_threads): Update.
13066 (restart_threads): Update.
13067 (finish_step_over): Update.
13068 (handle_signal_stop): Update.
13069 (switch_back_to_stepped_thread): Update.
13070 (keep_going_pass_signal): Update.
13071 (print_exited_reason): Update.
13072 (normal_stop): Update.
13073 * inferior.c (inferior_pid_to_str): Change return type.
13074 (print_selected_inferior): Update.
13075 (add_inferior): Update.
13076 (detach_inferior): Update.
13077 * dummy-frame.c (fprint_dummy_frames): Update.
13078 * dcache.c (dcache_info_1): Update.
13079 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13080 (btrace_fetch, btrace_clear): Update.
13081 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13082 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13083 type.
13084 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13085 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13086 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13087 * gdbarch.c, gdbarch.h: Rebuild.
13088 * gdbarch.sh (core_pid_to_str): Change return type.
13089 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13090 return type.
13091 (windows_nat_target::pid_to_str): Change return type.
13092 (windows_delete_thread): Update.
13093 (windows_nat_target::attach): Update.
13094 (windows_nat_target::files_info): Update.
13095 * target-delegates.c: Rebuild.
13096 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13097 return type.
13098 (sol_thread_target::pid_to_str): Change return type.
13099 * remote.c (class remote_target) <pid_to_str>: Change return
13100 type.
13101 (remote_target::pid_to_str): Change return type.
13102 (extended_remote_target::attach, remote_target::remote_stop_ns)
13103 (remote_target::remote_notif_remove_queued_reply)
13104 (remote_target::push_stop_reply, remote_target::disable_btrace):
13105 Update.
13106 (extended_remote_target::attach): Update.
13107 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13108 type.
13109 (gdbsim_target::pid_to_str): Change return type.
13110 * ravenscar-thread.c (struct ravenscar_thread_target)
13111 <pid_to_str>: Change return type.
13112 (ravenscar_thread_target::pid_to_str): Change return type.
13113 * procfs.c (class procfs_target) <pid_to_str>: Change return
13114 type.
13115 (procfs_target::pid_to_str): Change return type.
13116 (procfs_target::attach): Update.
13117 (procfs_target::detach): Update.
13118 (procfs_target::fetch_registers): Update.
13119 (procfs_target::store_registers): Update.
13120 (procfs_target::wait): Update.
13121 (procfs_target::files_info): Update.
13122 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13123 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13124 return type.
13125 (nto_procfs_target::pid_to_str): Change return type.
13126 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13127 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13128 return type.
13129 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13130 (exit_lwp): Update.
13131 (attach_proc_task_lwp_callback, get_detach_signal)
13132 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13133 (linux_nat_target::resume, wait_lwp, stop_callback)
13134 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13135 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13136 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13137 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13138 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13139 type.
13140 (inf_ptrace_target::attach): Update.
13141 (inf_ptrace_target::files_info): Update.
13142 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13143 type.
13144 (go32_nat_target::pid_to_str): Change return type.
13145 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13146 (gnu_nat_target::wait): Update.
13147 (gnu_nat_target::wait): Update.
13148 (gnu_nat_target::resume): Update.
13149 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13150 (fbsd_nat_target::wait): Update.
13151 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13152 type.
13153 (darwin_nat_target::attach): Update.
13154 * corelow.c (class core_target) <pid_to_str>: Change return type.
13155 (core_target::pid_to_str): Change return type.
13156 * target.c (normal_pid_to_str): Change return type.
13157 (default_pid_to_str): Likewise.
13158 (target_pid_to_str): Change return type.
13159 (target_translate_tls_address): Update.
13160 (target_announce_detach): Update.
13161 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13162 return type.
13163 (bsd_uthread_target::pid_to_str): Change return type.
13164 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13165 type.
13166 (bsd_kvm_target::pid_to_str): Change return type.
13167 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13168 return type.
13169 (aix_thread_target::pid_to_str): Change return type.
13170 * target.h (struct target_ops) <pid_to_str>: Change return type.
13171 (target_pid_to_str, normal_pid_to_str): Likewise.
13172 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13173 type.
13174 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13175 type.
13176 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13177 return type.
13178 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13179 type.
13180 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13181 type.
13182 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13183 return type.
13184
b4be1b06
SM
131852019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13186
13187 * NEWS: Mention that the new default MI version is 3. Mention
13188 changes to the output of commands and events that deal with
13189 multi-location breakpoints.
13190 * breakpoint.c: Include "mi/mi-out.h".
13191 (print_one_breakpoint): Change output syntax if using MI version
13192 >= 3.
13193 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13194 New.
13195 (mi_multi_location_breakpoint_output_fixed): New.
13196 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13197 (mi_cmd_fix_multi_location_breakpoint_output): New.
13198 (mi_multi_location_breakpoint_output_fixed): New.
13199 * mi/mi-cmds.c (mi_cmds): Register command
13200 -fix-multi-location-breakpoint-output.
13201 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13202 interpreter "mi".
13203
8e5e5494
SM
132042019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13205
13206 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13207 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13208 instantiate mi_ui_out based on interpreter name.
13209 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13210 * mi/mi-main.c (mi_load_progress): Likewise.
13211
197df35e
JB
132122019-03-12 John Baldwin <jhb@FreeBSD.org>
13213
13214 * NEWS: Combine separate "New targets" sections for 8.3.
13215
8399425f
JB
132162019-03-12 John Baldwin <jhb@FreeBSD.org>
13217
13218 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13219 (ppcfbsd_init_abi): Install gdbarch
13220 "fetch_tls_load_module_address" and "get_thread_local_address"
13221 methods.
13222
b0f87ed0
JB
132232019-03-12 John Baldwin <jhb@FreeBSD.org>
13224
13225 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13226 (riscv_fbsd_init_abi): Install gdbarch
13227 "fetch_tls_load_module_address" and "get_thread_local_address"
13228 methods.
13229
ce25aa57
JB
132302019-03-12 John Baldwin <jhb@FreeBSD.org>
13231
13232 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13233 (i386fbsd_init_abi): Install gdbarch
13234 "fetch_tls_load_module_address" and "get_thread_local_address"
13235 methods.
13236
f5424cfa
JB
132372019-03-12 John Baldwin <jhb@FreeBSD.org>
13238
13239 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13240 (amd64fbsd_init_abi): Install gdbarch
13241 "fetch_tls_load_module_address" and "get_thread_local_address"
13242 methods.
13243
945f3901
JB
132442019-03-12 John Baldwin <jhb@FreeBSD.org>
13245
13246 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13247 (struct fbsd_pspace_data): New type.
13248 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13249 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13250 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13251 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13252 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13253
ef0bd204
JB
132542019-03-12 John Baldwin <jhb@FreeBSD.org>
13255
13256 * gdbtypes.c (lookup_struct_elt): New function.
13257 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13258 * gdbtypes.h (struct struct_elt): New type.
13259 (lookup_struct_elt): New prototype.
13260
36c53a02
JB
132612019-03-12 John Baldwin <jhb@FreeBSD.org>
13262
13263 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13264 remove disabled code block.
13265
6e056c81
JB
132662019-03-12 John Baldwin <jhb@FreeBSD.org>
13267
13268 * gdbarch.sh (get_thread_local_address): New method.
13269 * gdbarch.h, gdbarch.c: Regenerate.
13270 * target.c (target_translate_tls_address): Use
13271 gdbarch_get_thread_local_address if present instead of
13272 target::get_thread_local_address.
13273
cd250a18
JB
132742019-03-12 John Baldwin <jhb@FreeBSD.org>
13275
13276 * target.h (target::get_thread_local_address): Update comment.
13277
df22c1e5
JB
132782019-03-12 John Baldwin <jhb@FreeBSD.org>
13279
13280 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13281 objfile->separate_debug_objfile_backlink if not NULL.
13282
dd6876c9
JB
132832019-03-12 John Baldwin <jhb@FreeBSD.org>
13284
13285 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13286 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13287 (amd64bsd_store_inferior_registers): Likewise.
13288 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13289 Enable segment base registers.
13290 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13291 PT_GETFSBASE and PT_GETGSBASE.
13292 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13293 PT_SETGSBASE.
13294 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13295 segment base registers.
13296 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13297
1163a4b7
JB
132982019-03-12 John Baldwin <jhb@FreeBSD.org>
13299
13300 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13301 Update calls to i386_target_description to add 'segments'
13302 parameter.
13303 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13304 add segment base registers.
13305 * arch/i386.c (i386_create_target_description): Add 'segments'
13306 parameter to enable segment base registers.
13307 * arch/i386.h (i386_create_target_description): Likewise.
13308 * features/i386/32bit-segments.xml: New file.
13309 * features/i386/32bit-segments.c: Generate.
13310 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13311 call to i386_target_description to add 'segments' parameter.
13312 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13313 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13314 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13315 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13316 if feature is present.
13317 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13318 Add 'segments' parameter to call to i386_target_description.
13319 (i386_target_description): Add 'segments' parameter to enable
13320 segment base registers.
13321 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13322 to call to i386_target_description.
13323 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13324 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13325 Define I386_NUM_REGS.
13326 (i386_target_description): Add 'segments' parameter to enable
13327 segment base registers.
13328
3a350822
EZ
133292019-03-12 Eli Zaretskii <eliz@gnu.org>
13330
13331 PR/24325
13332 * source-cache.c: #undef open and close, to avoid unresolved
13333 externals during linking.
13334
ffdd69cf
TT
133352019-03-12 Tom Tromey <tromey@adacore.com>
13336
13337 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13338 const. Add initializers.
13339 (_initialize_remote): Don't initialize ptid globals.
13340
ec148c57
PA
133412019-03-12 Pedro Alves <palves@redhat.com>
13342
13343 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13344
32764270
PA
133452019-03-12 Pedro Alves <palves@redhat.com>
13346
13347 * cp-name-parser.y (main): Remove unused 'len' variable.
13348
17547186
TT
133492019-03-12 Tom Tromey <tromey@adacore.com>
13350
13351 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13352 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13353
d3a70e03
TT
133542019-03-12 Tom Tromey <tromey@adacore.com>
13355
13356 * linux-nat.c (iterate_over_lwps): Update.
13357 (stop_callback): Remove parameter.
13358 (stop_wait_callback, detach_callback, resume_set_callback)
13359 (select_singlestep_lwp_callback, set_ignore_sigint)
13360 (status_callback, resumed_callback, resume_clear_callback)
13361 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13362 data parameter.
13363 (linux_nat_target::detach, linux_nat_target::resume)
13364 (linux_stop_and_wait_all_lwps, select_event_lwp)
13365 (linux_nat_filter_event, linux_nat_wait_1)
13366 (linux_nat_target::kill, linux_nat_target::stop)
13367 (linux_nat_target::stop): Update.
13368 (linux_nat_resume_callback): Change type.
13369 (resume_stopped_resumed_lwps, count_events_callback)
13370 (select_event_lwp_callback): Likewise.
13371 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13372 * arm-linux-nat.c (struct update_registers_data): Remove.
13373 (update_registers_callback): Change type.
13374 (arm_linux_insert_hw_breakpoint1): Update.
13375 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13376 parameter.
13377 (x86_linux_dr_set_addr): Update.
13378 (x86_linux_dr_set_control): Update.
13379 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13380 (iterate_over_lwps): Use gdb::function_view.
13381 * nat/aarch64-linux-hw-point.c (struct
13382 aarch64_dr_update_callback_param): Remove.
13383 (debug_reg_change_callback): Change type.
13384 (aarch64_notify_debug_reg_change): Update.
13385 * s390-linux-nat.c (s390_refresh_per_info): Update.
13386
82cb27ff
TT
133872019-03-11 Tom Tromey <tromey@adacore.com>
13388
13389 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13390 redundant assignment to "this_cu".
13391
568c0683
SM
133922019-03-08 Simon Marchi <simon.marchi@efficios.com>
13393
13394 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13395
f09ce22d
SM
133962019-03-08 Simon Marchi <simon.marchi@efficios.com>
13397
13398 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13399 from...
13400 (rank_one_type): ... this.
13401
595f96a9
SM
134022019-03-08 Simon Marchi <simon.marchi@efficios.com>
13403
13404 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13405 from...
13406 (rank_one_type): ... this.
13407
2598a94b
SM
134082019-03-08 Simon Marchi <simon.marchi@efficios.com>
13409
13410 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13411 from...
13412 (rank_one_type): ... this.
13413
7f17b20d
SM
134142019-03-08 Simon Marchi <simon.marchi@efficios.com>
13415
13416 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13417 from...
13418 (rank_one_type): ... this.
13419
2c509035
SM
134202019-03-08 Simon Marchi <simon.marchi@efficios.com>
13421
13422 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13423 from...
13424 (rank_one_type): ... this.
13425
0dd322dc
SM
134262019-03-08 Simon Marchi <simon.marchi@efficios.com>
13427
13428 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13429 from...
13430 (rank_one_type): ... this.
13431
41ea4728
SM
134322019-03-08 Simon Marchi <simon.marchi@efficios.com>
13433
13434 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13435 from...
13436 (rank_one_type): ... this.
13437
793cd1d2
SM
134382019-03-08 Simon Marchi <simon.marchi@efficios.com>
13439
13440 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13441 from...
13442 (rank_one_type): ... this.
13443
34910087
SM
134442019-03-08 Simon Marchi <simon.marchi@efficios.com>
13445
13446 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13447 from...
13448 (rank_one_type): ... this.
13449
f1f832d6
SM
134502019-03-08 Simon Marchi <simon.marchi@efficios.com>
13451
13452 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13453 from...
13454 (rank_one_type): ... this.
13455
b9f4512f
SM
134562019-03-08 Simon Marchi <simon.marchi@efficios.com>
13457
13458 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13459 from...
13460 (rank_one_type): ... this.
13461
9293fc63
SM
134622019-03-08 Simon Marchi <simon.marchi@efficios.com>
13463
13464 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13465 from...
13466 (rank_one_type): ... this.
13467
e3abbe7e
PW
134682019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13469
13470 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13471 inferior-events' shows the example events.
13472
e4adb939
EZ
134732019-03-08 Eli Zaretskii <eliz@gnu.org>
13474
13475 Support styling on native MS-Windows console
13476
13477 PR/24315
13478 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13479 on MS-Windows if $TERM is not defined.
13480
13481 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13482
13483 * posix-hdep.c (gdb_console_fputs):
13484 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13485 functions.
13486 * ui-file.h (gdb_console_fputs): Add prototype.
13487
13488 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13489 back to fputs only if the former returns zero.
13490
25629dfd
TT
134912019-03-07 Tom Tromey <tom@tromey.com>
13492
13493 * symmisc.c (print_symbol_bcache_statistics): Update.
13494 (print_objfile_statistics): Update.
13495 * symfile.c (allocate_symtab): Update.
13496 * stabsread.c: Don't include bcache.h.
13497 * psymtab.h (struct psymbol_bcache): Don't declare.
13498 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13499 (psymbol_bcache_init, psymbol_bcache_free)
13500 (psymbol_bcache_get_bcache): Don't declare.
13501 * psymtab.c (struct psymbol_bcache): Remove.
13502 (psymtab_storage::psymtab_storage): Update.
13503 (psymtab_storage::~psymtab_storage): Update.
13504 (psymbol_bcache_init, psymbol_bcache_free)
13505 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13506 (add_psymbol_to_bcache): Update.
13507 (allocate_psymtab): Update.
13508 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13509 macro_cache>: No longer pointers.
13510 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13511 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13512 * macrotab.c (macro_bcache): Update.
13513 * macroexp.c: Don't include bcache.h.
13514 * gdbtypes.c (check_types_worklist): Update.
13515 (types_deeply_equal): Remove TRY/CATCH. Update.
13516 * elfread.c (elf_symtab_read): Update.
13517 * dwarf2read.c: Don't include bcache.h.
13518 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13519 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13520 (print_bcache_statistics, bcache_memory_used): Don't declare.
13521 (struct bcache): Move from bcache.c. Add constructor, destructor,
13522 methods. Rename all data members.
13523 * bcache.c (struct bcache): Move to bcache.h.
13524 (bcache::expand_hash_table): Rename from expand_hash_table.
13525 (bcache): Remove.
13526 (bcache::insert): Rename from bcache_full.
13527 (bcache::compare): Rename from bcache_compare.
13528 (bcache_xmalloc): Remove.
13529 (bcache::~bcache): Rename from bcache_xfree.
13530 (bcache::print_statistics): Rename from print_bcache_statistics.
13531 (bcache::memory_used): Rename from bcache_memory_used.
13532
fe726667
PA
135332019-03-07 Pedro Alves <palves@redhat.com>
13534
13535 * infrun.c (normal_stop): Also check for
13536 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13537
7584bb30
AB
135382019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13539
13540 * f-lang.c (value_from_host_double): Moved to...
13541 * value.c (value_from_host_double): ...here.
13542 * value.h (value_from_host_double): Declare.
13543 * guile/scm-math.c (vlscm_convert_typed_number): Use
13544 value_from_host_double.
13545 (vlscm_convert_number): Likewise.
13546 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13547 * python/py-value.c (convert_value_from_python): Likewise.
13548
a7b1986e
TT
135492019-03-06 Tom Tromey <tom@tromey.com>
13550
13551 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13552
0ccf4211
TT
135532019-03-06 Tom Tromey <tom@tromey.com>
13554
13555 * utils.h (free_current_contents): Don't declare.
13556 * utils.c (free_current_contents): Remove.
13557
fe7b42e5
TT
135582019-03-06 Tom Tromey <tom@tromey.com>
13559
13560 * top.c (quit_force): Update.
13561 * main.c (captured_command_loop): Update.
13562 * common/new-op.c (operator new): Update.
13563 * common/common-exceptions.c (struct catcher)
13564 <save_cleanup_chain>: Remove member.
13565 (exceptions_state_mc_init): Update.
13566 (exception_try_scope_entry): Return nullptr.
13567 (exception_try_scope_exit, exception_rethrow)
13568 (throw_exception_sjlj, throw_exception_cxx): Update.
13569 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13570 (all_cleanups, do_cleanups, discard_cleanups)
13571 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13572 (restore_cleanups, restore_final_cleanups): Don't declare.
13573 (do_final_cleanups): Remove parameter.
13574 * common/cleanups.c (cleanup_chain, make_cleanup)
13575 (make_cleanup_dtor, all_cleanups, do_cleanups)
13576 (discard_my_cleanups, discard_cleanups)
13577 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13578 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13579 (null_cleanup): Remove.
13580 (do_final_cleanups): Remove parameter.
13581
c6321f19
TT
135822019-03-06 Tom Tromey <tom@tromey.com>
13583
13584 * remote.c (remote_target::remote_parse_stop_reply): Use
13585 unique_xmalloc_ptr.
13586
61b30099
TT
135872019-03-06 Tom Tromey <tom@tromey.com>
13588
13589 * stabsread.c (struct stabs_field_info): Rename from field_info.
13590 <list, fnlist>: Add initializers.
13591 <obstack>: New member.
13592 (read_member_functions, read_struct_fields, read_baseclasses):
13593 Allocate on obstack. Don't use cleanups.
13594 (read_one_struct_field, read_member_functions, read_struct_fields)
13595 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13596 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13597 (read_struct_type): Update.
13598
6cceac94
TT
135992019-03-06 Tom Tromey <tom@tromey.com>
13600
13601 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13602 * common/filestuff.h (make_cleanup_close): Don't declare.
13603 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13604 Remove.
13605
72412762
TT
136062019-03-06 Tom Tromey <tom@tromey.com>
13607
13608 * solib-aix.c: Use make_scope_exit.
13609
2b6ff1c0
TT
136102019-03-06 Tom Tromey <tom@tromey.com>
13611
13612 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13613 Use make_scope_exit.
13614
d01c5877
TT
136152019-03-06 Tom Tromey <tom@tromey.com>
13616
13617 * solib-svr4.c (disable_probes_interface): Remove parameter.
13618 (svr4_handle_solib_event): Use make_scope_exit.
13619
32603266
TT
136202019-03-06 Tom Tromey <tom@tromey.com>
13621
13622 * remote.c (struct stop_reply_deleter): Remove.
13623 (stop_reply_up): Update.
13624 (struct stop_reply): Derive from notif_event. Don't typedef.
13625 <regcache>: Now a std::vector.
13626 (stop_reply_xfree): Remove.
13627 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13628 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13629 (remote_target::discard_pending_stop_replies): Use delete.
13630 (remote_target::remote_parse_stop_reply): Update.
13631 (remote_target::process_stop_reply): Update.
13632 * remote-notif.h (struct notif_event): Add virtual destructor.
13633 Remove "dtr" member.
13634 (struct notif_client) <alloc_event>: Return a unique_ptr.
13635 (notif_event_xfree): Don't declare.
13636 (notif_event_up): New typedef.
13637 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13638 (notif_event_xfree, do_notif_event_xfree): Remove.
13639 (remote_notif_state_xfree): Update.
13640
9799571e
TT
136412019-03-06 Tom Tromey <tom@tromey.com>
13642
13643 * infrun.c (displaced_step_clear_cleanup): Now a
13644 forward_scope_exit type.
13645 (displaced_step_prepare_throw): Update.
13646 (displaced_step_fixup): Update.
13647
09e3c4ca
TT
136482019-03-06 Tom Tromey <tom@tromey.com>
13649
13650 * inferior.h (class inferior): Update comment.
13651 * gdbthread.h (class thread_info): Update comment.
13652
e2a03548
TT
136532019-03-06 Joel Brobecker <brobecker@adacore.com>
13654 Tom Tromey <tom@tromey.com>
13655
13656 * stabsread.h (struct stab_section_list): Remove.
13657 (coffstab_build_psymtabs): Update.
13658 * dbxread.c (symbuf_sections): Now a std::vector.
13659 (sect_idx): New global.
13660 (fill_symbuf): Update.
13661 (coffstab_build_psymtabs): Change type of stabsects parameter.
13662 Update.
13663 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13664 std::vector.
13665 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13666 (coff_locate_sections): Update.
13667 (coff_symfile_read): Remove cleanups. Update.
13668 (init_stringtab): Add storage parameter.
13669 (free_stringtab, free_stringtab_cleanup): Remove.
13670 (init_lineno): Add storage parameter.
13671 (free_linetab, free_linetab_cleanup): Remove.
13672
b7e60d85
PA
136732019-03-06 Pedro Alves <palves@redhat.com>
13674
13675 * linux-fork.c (fork_info::clobber_regs): Delete.
13676 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13677 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13678 comment. Adjust.
13679 (scoped_switch_fork_info::scoped_switch_fork_info)
13680 (checkpoint_command, linux_fork_context): Adjust
13681 fork_save_infrun_state calls.
13682
e52c971f
PA
136832019-03-06 Pedro Alves <palves@redhat.com>
13684
13685 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13686 (inf_has_multiple_threads): Return 'bool' and rewrite using
13687 inferior_info::threads().
13688
06974e6c
PA
136892019-03-06 Pedro Alves <palves@redhat.com>
13690
13691 * linux-fork.c: Include <list>.
13692 (fork_list): Now a std::list instance.
13693 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13694 (forks_exist_p, find_last_fork): Adjust.
13695 (new_fork): Delete.
13696 (one_fork_p): New.
13697 (add_fork): Adjust.
13698 (free_fork): Delete, folded into fork_info::~fork_info().
13699 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13700 Adjust.
13701 (init_fork_list): Delete.
13702 (linux_fork_killall, linux_fork_mourn_inferior)
13703 (linux_fork_detach, info_checkpoints_command): Adjust.
13704 (_initialize_linux_fork): No longer call init_fork_list.
13705
72f31aea
PA
137062019-03-06 Pedro Alves <palves@redhat.com>
13707
13708 * linux-fork.c (new_fork): New, split out of ...
13709 (add_fork): ... this. Return void. Move "first fork" special
13710 case from here, to ...
13711 (checkpoint_command): ... here.
13712 * linux-linux.h (add_fork): Return void.
13713
efbecbc1
AB
137142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13715
13716 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13717
0841c79a
AB
137182019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13719 Chris January <chris.january@arm.com>
13720 David Lecomber <david.lecomber@arm.com>
13721
13722 * f-exp.y: New token, UNOP_INTRINSIC.
13723 (exp): New pattern using UNOP_INTRINSIC token.
13724 (f77_keywords): Add 'abs' keyword.
13725 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13726 (value_from_host_double): New function.
13727 (evaluate_subexp_f): Support UNOP_ABS.
13728
4a270568
AB
137292019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13730
13731 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13732 types.
13733
067630bd
AB
137342019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13735
13736 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13737 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13738 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13739
3be47f7a
AB
137402019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13741
13742 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13743
4d00f5d8
AB
137442019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13745 Chris January <chris.january@arm.com>
13746
13747 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13748 * f-exp.y: Define 'KIND' token.
13749 (exp): New pattern for KIND expressions.
13750 (ptype): Handle types with a kind extension.
13751 (direct_abs_decl): Extend to spot kind extensions.
13752 (f77_keywords): Add 'kind' to the list.
13753 (push_kind_type): New function.
13754 (convert_to_kind_type): New function.
13755 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13756 * parse.c (operator_length_standard): Likewise.
13757 * parser-defs.h (enum type_pieces): Add tp_kind.
13758 * std-operator.def: Add UNOP_KIND.
13759
e454224f
AB
137602019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13761
13762 * f-exp.y (f_parse): Set yydebug.
13763
9dad4a58
AB
137642019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13765
13766 * f-lang.c (evaluate_subexp_f): New function.
13767 (exp_descriptor_f): New global.
13768 (f_language_defn): Use exp_descriptor_f instead of
13769 exp_descriptor_standard.
13770
c8f91604
AB
137712019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13772
13773 * f-exp.y (struct token): Add comments.
13774 (dot_ops): Remove uppercase versions and the end marker.
13775 (f77_keywords): Likewise.
13776 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13777 entries in the dot_ops array are case insensitive, and use
13778 strncasecmp to compare strings. Also some whitespace cleanup in
13779 this area. Similar for the f77_keywords array, except entries in
13780 this list might be case sensitive.
13781
dd9f2c76
AB
137822019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13783
13784 * f-exp.y (struct f77_boolean_val): Add comments.
13785 (boolean_values): Remove uppercase versions, and end marker.
13786 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13787 and use strncasecmp to achieve case insensitivity. Additionally,
13788 perform whitespace cleanup around this code.
13789
67a3048c
TT
137902019-03-06 Tom Tromey <tromey@adacore.com>
13791
13792 * remote-sim.c (gdbsim_target_open): Use result of
13793 gdb_argv::release.
13794
aa3cfbda
RB
137952019-03-06 Richard Bunt <richard.bunt@arm.com>
13796 Dirk Schubert <dirk.schubert@arm.com>
13797 Chris January <chris.january@arm.com>
13798
13799 * eval.c (evaluate_subexp_standard): Call Fortran argument
13800 wrapping logic.
13801 * f-lang.c (struct value): A value which can be passed into a
13802 Fortran function call.
13803 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13804 where appropriate.
13805 (struct type): Value ready for a Fortran function call.
13806 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13807 is needed.
13808 * f-lang.h (fortran_argument_convert): Declaration.
13809 (fortran_preserve_arg_pointer): Declaration.
13810 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13811
ea38e5df
TT
138122019-03-05 Tom Tromey <tromey@adacore.com>
13813
13814 * python/py-prettyprint.c (print_string_repr): Remove #if.
13815 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13816
06b5b831
TT
138172019-03-05 Tom Tromey <tromey@adacore.com>
13818
13819 * target.c (the_dummy_target): Move later. Change type to
13820 "dummy_target".
13821 (initialize_targets): Don't initialize the_dummy_target.
13822
edbd9e45
TT
138232019-03-05 Tom Tromey <tromey@adacore.com>
13824
13825 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13826 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13827
c119e040
TT
138282019-03-05 Tom Tromey <tromey@adacore.com>
13829
13830 * windows-nat.c (windows_nat_target::attach)
13831 (windows_nat_target::detach): Don't call gdb_flush.
13832 * valprint.c (generic_val_print, val_print, val_print_string):
13833 Don't call gdb_flush.
13834 * utils.c (defaulted_query): Don't call gdb_flush.
13835 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13836 * target.c (target_announce_detach): Don't call gdb_flush.
13837 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13838 * remote.c (extended_remote_target::attach): Don't call
13839 gdb_flush.
13840 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13841 * printcmd.c (do_examine): Don't call gdb_flush.
13842 (info_display_command): Don't call gdb_flush.
13843 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13844 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13845 * memattr.c (info_mem_command): Don't call gdb_flush.
13846 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13847 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13848 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13849 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13850 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13851 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13852 (gnu_nat_target::detach): Don't call gdb_flush.
13853 * f-valprint.c (f_val_print): Don't call gdb_flush.
13854 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13855 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13856 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13857 gdb_flush.
13858 * c-valprint.c (c_val_print): Don't call gdb_flush.
13859 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13860
895dafa6
TT
138612019-03-05 Tom Tromey <tromey@adacore.com>
13862
13863 * varobj.c (update_dynamic_varobj_children): Update.
13864 (install_default_visualizer): Use reset, not release.
13865 * value.c (set_internalvar): Update.
13866 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13867 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13868 ATTRIBUTE_UNUSED_RESULT.
13869
88a774b9
TT
138702019-03-05 Tom Tromey <tromey@adacore.com>
13871
13872 * remote.c (class scoped_remote_fd) <release>: Add
13873 ATTRIBUTE_UNUSED_RESULT.
13874
4e4a8b93
TT
138752019-03-05 Tom Tromey <tromey@adacore.com>
13876
13877 * macroexp.c (struct macro_buffer) <release>: Add
13878 ATTRIBUTE_UNUSED_RESULT.
13879
083eef1f
TT
138802019-03-05 Tom Tromey <tromey@adacore.com>
13881
13882 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13883 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13884 ATTRIBUTE_UNUSED_RESULT.
13885
3cabd438
TT
138862019-03-05 Tom Tromey <tromey@adacore.com>
13887
13888 * common/scoped_fd.h (class scoped_fd) <release>: Add
13889 ATTRIBUTE_UNUSED_RESULT.
13890
41e3300a
TT
138912019-03-05 Tom Tromey <tromey@adacore.com>
13892
13893 * parser-defs.h (struct parser_state) <release>: Add
13894 ATTRIBUTE_UNUSED_RESULT.
13895
18cb7c9f
TT
138962019-03-05 Tom Tromey <tromey@adacore.com>
13897
13898 * utils.h (class gdb_argv) <release>: Add
13899 ATTRIBUTE_UNUSED_RESULT.
13900 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13901
41fa577f
EZ
139022019-03-02 Eli Zaretskii <eliz@gnu.org>
13903
a6a4b2c6
EZ
13904 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13905 for-loop range, to avoid compiler warnings.
13906
13907 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13908 avoid compiler warnings about unused variables.
13909
742a7df5
EZ
13910 * NEWS: Mention end of support for native debugging on MS-Windows
13911 before XP.
13912
41fa577f
EZ
13913 PR gdb/24292
13914 * common/netstuff.c:
13915 * gdbserver/gdbreplay.c
13916 * gdbserver/remote-utils.c:
13917 * ser-tcp.c:
13918 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13919 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13920 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13921 'getaddrinfo' and 'freeaddrinfo' were not available before
13922 Windows XP, and mingw.org's MinGW headers by default define
13923 _WIN32_WINNT to 0x500.
13924
827f438f
GB
139252019-03-01 Gary Benson <gbenson@redhat.com>
13926
13927 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13928
92137da0
RO
139292019-02-28 Brian Vandenberg <phantall@gmail.com>
13930 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13931
13932 PR gdb/8527
13933 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13934 set_sigint_trap, clear_sigint_trap.
13935
799efbe8
PW
139362019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13937
13938 * target.c (target_detach): Clear the regcache and the
13939 frame cache.
13940
8ed25214
PA
139412019-02-27 Pedro Alves <palves@redhat.com>
13942
13943 * utils.c (set_screen_size): When we cap the height/width sizes,
13944 tweak the corresponding command variable to show "unlimited":
13945
23031e31
SJ
139462019-02-27 Saagar Jha <saagar@saagarjha.com>
13947 Pedro Alves <palves@redhat.com>
13948
13949 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13950 before calling rl_set_screen_size.
13951
6c28e44a
TT
139522019-02-27 Tom Tromey <tromey@adacore.com>
13953
13954 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13955 define.
13956 * python/py-value.c: Remove Python 2.4 workaround.
13957 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13958 workaround.
13959 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13960 Python 2.4 workaround.
13961 * python/python-internal.h: Remove Python 2.4 comment.
13962 (Py_ssize_t): Don't define.
13963 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13964 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13965 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13966 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13967 * python/python.c (do_start_initialization): Remove Python 2.4
13968 workaround.
13969 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13970 (print_children): Remove Python 2.4 workaround.
13971 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13972 workaround.
13973 (CHARBUFFERPROC_NAME): Remove.
13974 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13975 Python 2.4 workaround.
13976
2c3fc25d 139772019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13978
2c3fc25d
KB
13979 * NEWS: Note minimum Python version.
13980
6ca62222
KB
139812019-02-27 Kevin Buettner <kevinb@redhat.com>
13982
13983 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13984 code from these functions. Remove corresponding ifdefs. Use
13985 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13986 Remove gotos and target of gotos.
13987 (infpy_search_memory): Likewise.
13988
f4bc7d2c
AB
139892019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13990
13991 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13992 (hppa_gdbarch_init): Don't register deleted functions with
13993 gdbarch.
13994
9734a586
AB
139952019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13996
13997 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
13998 (h8300_unwind_sp): Delete.
13999 (h8300_dummy_id): Delete.
14000 (h8300_gdbarch_init): Don't register deleted functions with
14001 gdbarch.
14002
68b867f3
AB
140032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14004
14005 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14006 (ft32_unwind_pc): Delete.
14007 (ft32_unwind_sp): Delete.
14008 (ft32_gdbarch_init): Don't register deleted functions with
14009 gdbarch.
14010
2fbe7ad0
AB
140112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14012
14013 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14014 (frv_unwind_pc): Delete.
14015 (frv_unwind_sp): Delete.
14016 (frv_gdbarch_init): Don't register deleted functions with
14017 gdbarch.
14018
76055cbe
AB
140192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14020
14021 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14022 (riscv_unwind_pc): Delete.
14023 (riscv_unwind_sp): Delete.
14024 (riscv_gdbarch_init): Don't register deleted functions with
14025 gdbarch.
14026
4133e5a1
AB
140272019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14028
14029 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14030 (csky_unwind_pc): Delete.
14031 (csky_unwind_sp): Delete.
14032 (csky_gdbarch_init): Don't register deleted functions with
14033 gdbarch.
14034
8010f576
AB
140352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14036
14037 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14038 (cris_unwind_pc): Delete.
14039 (cris_unwind_sp): Delete.
14040 (cris_gdbarch_init): Don't register deleted functions with
14041 gdbarch.
14042
b56bf084
AB
140432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14044
14045 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14046 (bfin_unwind_pc): Delete.
14047 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14048
a19a650f
AB
140492019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14050
14051 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14052 (arm_unwind_pc): Delete.
14053 (arm_unwind_sp): Delete.
14054 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14055
f8278c3c
AB
140562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14057
14058 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14059 (arc_unwind_pc): Delete.
14060 (arc_unwind_sp): Delete.
14061 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14062
480e46cf
AB
140632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14064
14065 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14066 (alpha_unwind_pc): Delete.
14067 (alpha_gdbarch_init): Don't register deleted functions with
14068 gdbarch.
14069
7a995095
AB
140702019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14071
14072 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14073 (aarch64_unwind_pc): Delete.
14074 (aarch64_unwind_sp): Delete.
14075 (aarch64_gdbarch_init): Don't register deleted functions with
14076 gdbarch.
14077
bf9a735e
AB
140782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14079
14080 * gdbtypes.c (type_align): Don't consider static members when
14081 computing structure alignment.
14082
5561fc30
AB
140832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14084
14085 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14086 return 0 for other types.
14087 * arch-utils.c (default_type_align): Always return 0.
14088 * gdbarch.h: Regenerate.
14089 * gdbarch.sh (type_align): Extend comment.
14090 * gdbtypes.c (type_align): Add additional comments, always call
14091 gdbarch_type_align before applying the default rules.
14092 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14093 generic code will then apply a suitable default.
14094 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14095 types, return 0 for other types.
14096
9335e75a
JB
140972019-02-27 Joel Brobecker <brobecker@adacore.com>
14098
14099 * NEWS: Create a new section for the next release branch.
14100 Rename the section of the current branch, now that it has
14101 been cut.
14102
3d34d8de
JB
141032019-02-27 Joel Brobecker <brobecker@adacore.com>
14104
14105 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14106 * version.in: Bump version to 8.3.50.DATE-git.
14107
143420fb
SM
141082019-02-26 Simon Marchi <simon.marchi@efficios.com>
14109
14110 * aix-thread.c (ptid_cmp): Remove unused variable.
14111 (get_signaled_thread): Likewise.
14112 (store_regs_user_thread): Likewise.
14113 (store_regs_kernel_thread): Likewise.
14114 (fetch_regs_kernel_thread): Remove shadowed variable.
14115
172fb711
AB
141162019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14117
14118 * features/riscv/32bit-cpu.xml: Add register numbers.
14119 * features/riscv/32bit-fpu.c: Regenerate.
14120 * features/riscv/32bit-fpu.xml: Add register numbers.
14121 * features/riscv/64bit-cpu.xml: Add register numbers.
14122 * features/riscv/64bit-fpu.c: Regenerate.
14123 * features/riscv/64bit-fpu.xml: Add register numbers.
14124
26c89782
KB
141252019-02-26 Kevin Buettner <kevinb@redhat.com>
14126
af54ade9 14127 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14128 * python/py-value.c (convert_buffer_and_type_to_value): New
14129 function.
14130 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14131 Add support for handling an optional second argument. Call
14132 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14133 * python/python-internal.h (Py_buffer_deleter): New struct.
14134 (Py_buffer_up): New typedef.
14135
0f58c9e8
JB
141362019-02-25 John Baldwin <jhb@FreeBSD.org>
14137
14138 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14139 instead of releasing ownership.
14140
0a0f4c01
JR
141412019-02-25 Jordan Rupprecht <rupprecht@google.com>
14142
14143 * dwarf2read.c (open_and_init_dwp_file): Call
14144 elf_numsections instead of bfd_count_sections to initialize
14145 dwp_file->num_sections.
14146
cd5a152c
TT
141472019-02-25 Tom Tromey <tromey@adacore.com>
14148
14149 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14150
8a6a8513
SDJ
141512019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14152
14153 * gcore.in: Add '--readnever' option when invoking GDB.
14154
04dcda9c
SM
141552019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14156
14157 * MAINTAINERS: Update my email address.
14158
07bc701d
SM
141592019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14160
14161 * build-id.c (build_id_to_debug_bfd_1): New function.
14162 (build_id_to_debug_bfd): Look for separate debug file in
14163 sysroot.
14164
c6f4a5d0
AB
141652019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14166
14167 * gdbarch.sh: Update the copyright year range that is placed into
14168 generated files.
14169
9600246d
KS
141702019-02-22 Keith Seitz <keiths@redhat.com>
14171
14172 PR symtab/23853
14173 * linespec.c (create_sals_line_offset): Search for the default
14174 symtab's filename instead of its fullname.
14175
7557a514
AH
141762019-02-21 Alan Hayward <alan.hayward@arm.com>
14177
14178 * NEWS: Update style defaults.
14179
ee2bcb0c
AH
141802019-02-21 Alan Hayward <alan.hayward@arm.com>
14181
14182 * main.c (captured_main_1): Disable styling in batch mode.
14183
0c95f9ed
TT
141842019-02-20 Tom Tromey <tom@tromey.com>
14185
14186 * symtab.c (symtab_symbol_info): Fix typos.
14187
c763b894
TT
141882019-02-20 Tom Tromey <tromey@adacore.com>
14189
14190 * findcmd.c (_initialize_mem_search): Use upper case for
14191 metasyntactic variables.
14192
0ef8a082
AH
141932019-02-20 Alan Hayward <alan.hayward@arm.com>
14194
14195 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14196 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14197
6caa91b6
SM
141982019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14199
14200 * top.h (source_file_name): Change to std::string.
14201 * top.c (source_file_name): Likewise.
14202 (command_line_input): Adjust.
14203 * cli/cli-script.c (script_from_file): Adjust.
14204
98814c6c
TT
142052019-02-19 Tom Tromey <tromey@adacore.com>
14206
14207 * ravenscar-thread.c
14208 (ravenscar_thread_target::update_thread_list): Don't call
14209 ada_build_task_list.
14210 * ada-lang.h (ada_build_task_list): Don't declare.
14211 * ada-tasks.c (struct ada_tasks_inferior_data)
14212 <task_list_valid_p>: Now bool.
14213 (read_known_tasks, ada_task_list_changed)
14214 (ada_tasks_invalidate_inferior_data): Update.
14215 (read_known_tasks_array): Return bool.
14216 (read_known_tasks_list): Likewise.
14217 (read_known_tasks): Return void.
14218 (ada_build_task_list): Now static.
14219
70cd633e
AB
142202019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14221
14222 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14223 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14224
040b3e95
PW
142252019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14226
14227 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14228 variant for ada_tasks_pspace_data_handle and
14229 ada_tasks_inferior_data_handle.
14230 (ada_tasks_pspace_data_cleanup): New function.
14231 (ada_tasks_inferior_data_cleanup): New function.
14232
9409233b
TT
142332019-02-17 Tom Tromey <tom@tromey.com>
14234
14235 * macrotab.h (macro_source_fullname): Return a std::string.
14236 * macrotab.c (macro_include, check_for_redefinition)
14237 (macro_undef, macro_lookup_definition, foreach_macro)
14238 (foreach_macro_in_scope): Update.
14239 (macro_source_fullname): Return a std::string.
14240 * macrocmd.c (show_pp_source_pos): Update.
14241
6506371f
TT
142422019-02-17 Tom Tromey <tom@tromey.com>
14243
14244 * macrocmd.c (show_pp_source_pos): Style the file names.
14245
0c820d67
TT
142462019-02-17 Tom Tromey <tom@tromey.com>
14247
14248 PR tui/24197:
14249 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14250
a0087920
TT
142512019-02-17 Tom Tromey <tom@tromey.com>
14252
14253 * ada-lang.c (user_select_syms): Use filtered printing.
14254 * utils.c (wrap_style): New global.
14255 (desired_style): Remove.
14256 (emit_style_escape): Add stream parameter.
14257 (set_output_style, reset_terminal_style, prompt_for_continue):
14258 Update.
14259 (flush_wrap_buffer): Only flush gdb_stdout.
14260 (wrap_here): Set wrap_style.
14261 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14262 treat escape sequences as a character. Change when wrap buffer is
14263 flushed.
14264 (fputs_styled): Do not set the output style when the default is
14265 requested.
14266 * ui-style.h (struct ui_file_style) <is_default>: New method.
14267 * source.c (print_source_lines_base): Emit escape sequences in one
14268 piece.
14269
75ba10dc
JB
142702019-02-17 Joel Brobecker <brobecker@adacore.com>
14271
14272 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14273 integers and enumeration types.
14274
a2cd4f14
JB
142752019-02-17 Joel Brobecker <brobecker@adacore.com>
14276
14277 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14278 instead of lookup_symbol_in_language
14279 (do_exact_match): New function.
14280 (ada_get_symbol_name_matcher): Return do_exact_match when
14281 doing a verbatim match.
14282
485b851b
TT
142832019-02-15 Tom Tromey <tromey@adacore.com>
14284
14285 * ravenscar-thread.c (ravenscar_thread_target::resume)
14286 (ravenscar_thread_target::wait): Special case wildcard requests.
14287
0b790b1e
TT
142882019-02-15 Tom Tromey <tromey@adacore.com>
14289
14290 * ravenscar-thread.c (base_ptid): Remove.
14291 (struct ravenscar_thread_target) <close>: New method.
14292 <m_base_ptid>: New member.
14293 <update_inferior_ptid, active_task, task_is_currently_active,
14294 runtime_initialized>: Declare methods.
14295 <ravenscar_thread_target>: Add constructor.
14296 (ravenscar_thread_target::task_is_currently_active)
14297 (ravenscar_thread_target::update_inferior_ptid)
14298 (ravenscar_runtime_initialized): Rename. Now methods.
14299 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14300 (ravenscar_thread_target::update_thread_list): Update.
14301 (ravenscar_thread_target::active_task): Now method.
14302 (ravenscar_thread_target::store_registers)
14303 (ravenscar_thread_target::prepare_to_store)
14304 (ravenscar_thread_target::prepare_to_store)
14305 (ravenscar_thread_target::mourn_inferior): Update.
14306 (ravenscar_inferior_created): Use "new" to create target.
14307 (ravenscar_thread_target::get_ada_task_ptid): Update.
14308 (_initialize_ravenscar): Don't initialize base_ptid.
14309 (ravenscar_ops): Remove global.
14310
dea57a62
TT
143112019-02-15 Tom Tromey <tromey@adacore.com>
14312
14313 * target.h (push_target): Declare new overload.
14314 * target.c (push_target): New overload, taking an rvalue reference.
14315 * remote.c (remote_target::open_1): Use push_target overload.
14316 * corelow.c (core_target_open): Use push_target overload.
14317
989f3c58
TT
143182019-02-15 Tom Tromey <tromey@adacore.com>
14319
14320 * ravenscar-thread.c (is_ravenscar_task)
14321 (ravenscar_task_is_currently_active): Return bool.
14322 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14323 (_initialize_ravenscar): Remove "(void)".
14324 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14325 Return bool.
14326
6cbcc006
TT
143272019-02-15 Tom Tromey <tromey@adacore.com>
14328
14329 * ravenscar-thread.c (ravenscar_runtime_initializer)
14330 (has_ravenscar_runtime, get_running_thread_id)
14331 (ravenscar_thread_target::resume): Fix indentation.
14332
7657f14d
TT
143332019-02-15 Tom Tromey <tromey@adacore.com>
14334
14335 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14336 from ravenscar_arch_ops.
14337 (sparc_ravenscar_ops::fetch_registers)
14338 (sparc_ravenscar_ops::store_registers): Now methods.
14339 (sparc_ravenscar_prepare_to_store): Remove.
14340 (sparc_ravenscar_ops): Redefine.
14341 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14342 methods and destructor. Remove members.
14343 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14344 (ravenscar_thread_target::store_registers)
14345 (ravenscar_thread_target::prepare_to_store): Update.
14346 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14347 Remove.
14348 (struct ppc_ravenscar_powerpc_ops): Derive from
14349 ravenscar_arch_ops.
14350 (ppc_ravenscar_powerpc_ops::fetch_registers)
14351 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14352 (ppc_ravenscar_powerpc_ops): Redefine.
14353 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14354 (ppc_ravenscar_e500_ops::fetch_registers)
14355 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14356 (ppc_ravenscar_e500_ops): Redefine.
14357 * aarch64-ravenscar-thread.c
14358 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14359 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14360 (aarch64_ravenscar_fetch_registers)
14361 (aarch64_ravenscar_store_registers): Now methods.
14362 (aarch64_ravenscar_ops): Redefine.
14363
5b6ea500
TT
143642019-02-15 Tom Tromey <tromey@adacore.com>
14365
14366 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14367 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14368 (ravenscar_thread_target::stopped_by_watchpoint)
14369 (ravenscar_thread_target::stopped_data_address)
14370 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14371
e397fd39
TT
143722019-02-15 Tom Tromey <tromey@adacore.com>
14373
14374 * ravenscar-thread.c: Fix some typos.
14375
cc12f4a8
TT
143762019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14377 Tom Tromey <tromey@adacore.com>
14378
14379 * ada-lang.c (ada_exception_sal): Change addr_string to a
14380 std::string.
14381 (create_ada_exception_catchpoint): Update.
14382
5f486660
TT
143832019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14384 Tom Tromey <tromey@adacore.com>
14385
14386 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14387 (bp_location_ops): Remove.
14388 (base_breakpoint_allocate_location): Update.
14389 (free_bp_location): Update.
14390 * ada-lang.c (class ada_catchpoint_location)
14391 <ada_catchpoint_location>: Remove ops parameter.
14392 (ada_catchpoint_location_dtor): Remove.
14393 (ada_catchpoint_location_ops): Remove.
14394 (allocate_location_exception): Update.
14395 * breakpoint.h (struct bp_location_ops): Remove.
14396 (class bp_location) <bp_location>: Remove bp_location_ops
14397 parameter.
14398 <~bp_location>: Add destructor.
14399 <ops>: Remove.
14400
b671c7fb
TS
144012019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14402 Pedro Alves <palves@redhat.com>
14403
14404 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14405 'PATH_MAX'.
14406
8071c5ce
DM
144072019-02-14 David Michael <fedora.dm0@gmail.com>
14408 Samuel Thibault <samuel.thibault@gnu.org>
14409 Thomas Schwinge <thomas@codesourcery.com>
14410
14411 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14412 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14413
b1041ae0
TS
144142019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14415
924514e1
TS
14416 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14417 (check_empty): Use "const char *".
14418
c29ee8d4
TS
14419 * gnu-nat.c (gnu_nat_target::detach): Instead of
14420 'detach_inferior (pid)' call
14421 'detach_inferior (find_inferior_pid (pid))'.
14422
6c6ef69f
TS
14423 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14424 'nat/fork-inferior.o'.
14425 * gnu-nat.c: #include "nat/fork-inferior.h".
14426
2d0a338c
TS
14427 * gnu-nat.c (gnu_nat_target::detach): Instead of
14428 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14429 * gnu-nat.h: #include "inf-child.h".
14430 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14431 'i386_gnu_nat_target::fetch_registers'.
14432 (gnu_store_registers): Rename/move to
14433 'i386_gnu_nat_target::store_registers'.
14434
cabb5f06
TS
14435 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14436 * gnu-nat.h (mach_thread_info): New function.
14437 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14438
b1041ae0
TS
14439 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14440
2988d01e
KF
144412019-02-14 Frederic Konrad <konrad@adacore.com>
14442
14443 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14444
c559d709
JB
144452019-02-14 Joel Brobecker <brobecker@adacore.com>
14446
14447 * windows-nat.c (windows_add_thread): Add new parameter
14448 "main_thread_p" with default value set to false. Update
14449 function documentation as well as all callers.
14450 (windows_delete_thread): Likewise.
14451 (fake_create_process): Update call to windows_add_thread.
14452 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14453 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14454 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14455 call to windows_delete_thread.
14456
007024cc
SM
144572019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14458
14459 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14460
f62318e9
JB
144612019-02-12 John Baldwin <jhb@FreeBSD.org>
14462
14463 * symfile.c (find_separate_debug_file): Use canonical path of
14464 sysroot with child_path instead of gdb_sysroot if it is valid.
14465
cd4b7848
JB
144662019-02-12 John Baldwin <jhb@FreeBSD.org>
14467
14468 * symfile.c (find_separate_debug_file): Use child_path to
14469 determine if an object file is under a sysroot.
14470
efac4bfe
JB
144712019-02-12 John Baldwin <jhb@FreeBSD.org>
14472
14473 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14474 unittests/child-path-selftests.c.
14475 * common/pathstuff.c (child_path): New function.
14476 * common/pathstuff.h (child_path): New prototype.
14477 * unittests/child-path-selftests.c: New file.
14478
402d2bfe
JB
144792019-02-12 John Baldwin <jhb@FreeBSD.org>
14480
14481 * symfile.c (find_separate_debug_file): Look for separate debug
14482 files in debug directories under the sysroot.
14483
1ed9f74e
PW
144842019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14485
14486 * symtab.h (struct minimal_symbol data_p): New const method.
14487 (struct minimal_symbol text_p): Likewise.
14488 * symtab.c (output_source_filename): Use file name style
14489 to print file name.
14490 (print_symbol_info): Likewise.
14491 (print_msymbol_info): Use address style to print addresses.
14492 Use function name style to print executable text symbols.
14493 (expand_symtab_containing_pc): Use data_p.
14494 (find_pc_sect_compunit_symtab): Likewise.
14495
2636d81d
PW
144962019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14497
14498 * breakpoint.c (describe_other_breakpoints): Use address style
14499 to print addresses.
14500 (say_where): Likewise.
14501
ac8c53cc
PW
145022019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14503
14504 * ada-typeprint.c (print_func_type): Print function name
14505 style to print function name.
14506 * c-typeprint.c (c_print_type_1): Likewise.
14507
ea638c43
AH
145082019-02-11 Alan Hayward <alan.hayward@arm.com>
14509
14510 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14511 for execve.
14512
ab759ca8
PW
145132019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14514
14515 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14516 type_stack.
14517
aff29d1c
JB
145182019-02-10 Joel Brobecker <brobecker@adacore.com>
14519
14520 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14521 TYPE_CODE_REF types.
14522
617126bc
JW
145232019-02-08 Jim Wilson <jimw@sifive.com>
14524
14525 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14526 (riscv_linux_fregset): New.
14527 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14528
46e3ed7f
TT
145292019-02-07 Tom Tromey <tom@tromey.com>
14530
14531 * thread.c (thread_cancel_execution_command): Update.
14532 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14533 methods.
14534 (struct thread_fsm_ops): Remove.
14535 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14536 (thread_fsm_should_stop, thread_fsm_return_value)
14537 (thread_fsm_set_finished, thread_fsm_finished_p)
14538 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14539 Don't declare.
14540 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14541 * infrun.c (clear_proceed_status_thread)
14542 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14543 (print_stop_event): Update.
14544 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14545 Add constructor.
14546 (step_command_fsm_ops): Remove.
14547 (new_step_command_fsm): Remove.
14548 (step_1): Update.
14549 (step_command_fsm::should_stop): Rename from
14550 step_command_fsm_should_stop.
14551 (step_command_fsm::clean_up): Rename from
14552 step_command_fsm_clean_up.
14553 (step_command_fsm::do_async_reply_reason): Rename from
14554 step_command_fsm_async_reply_reason.
14555 (struct until_next_fsm): Inherit from thread_fsm. Add
14556 constructor.
14557 (until_next_fsm_ops): Remove.
14558 (new_until_next_fsm): Remove.
14559 (until_next_fsm::should_stop): Rename from
14560 until_next_fsm_should_stop.
14561 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14562 (until_next_fsm::do_async_reply_reason): Rename from
14563 until_next_fsm_async_reply_reason.
14564 (struct finish_command_fsm): Inherit from thread_fsm. Add
14565 constructor. Change type of breakpoint.
14566 (finish_command_fsm_ops): Remove.
14567 (new_finish_command_fsm): Remove.
14568 (finish_command_fsm::should_stop): Rename from
14569 finish_command_fsm_should_stop.
14570 (finish_command_fsm::clean_up): Rename from
14571 finish_command_fsm_clean_up.
14572 (finish_command_fsm::return_value): Rename from
14573 finish_command_fsm_return_value.
14574 (finish_command_fsm::do_async_reply_reason): Rename from
14575 finish_command_fsm_async_reply_reason.
14576 (finish_command): Update.
14577 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14578 Add constructor.
14579 (call_thread_fsm_ops): Remove.
14580 (call_thread_fsm::call_thread_fsm): Rename from
14581 new_call_thread_fsm.
14582 (call_thread_fsm::should_stop): Rename from
14583 call_thread_fsm_should_stop.
14584 (call_thread_fsm::should_notify_stop): Rename from
14585 call_thread_fsm_should_notify_stop.
14586 (run_inferior_call, call_function_by_hand_dummy): Update.
14587 * cli/cli-interp.c (should_print_stop_to_console): Update.
14588 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14589 Add constructor. Change type of location_breakpoint,
14590 caller_breakpoint.
14591 (until_break_fsm_ops): Remove.
14592 (new_until_break_fsm): Remove.
14593 (until_break_fsm::should_stop): Rename from
14594 until_break_fsm_should_stop.
14595 (until_break_fsm::clean_up): Rename from
14596 until_break_fsm_clean_up.
14597 (until_break_fsm::do_async_reply_reason): Rename from
14598 until_break_fsm_async_reply_reason.
14599 (until_break_command): Update.
14600 * thread-fsm.c: Remove.
14601 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14602
1a5c2598
TT
146032019-02-07 Tom Tromey <tom@tromey.com>
14604
14605 * yy-remap.h: Add include guard.
14606 * xtensa-tdep.h: Add include guard.
14607 * xcoffread.h: Rename include guard.
14608 * varobj-iter.h: Add include guard.
14609 * tui/tui.h: Rename include guard.
14610 * tui/tui-winsource.h: Rename include guard.
14611 * tui/tui-wingeneral.h: Rename include guard.
14612 * tui/tui-windata.h: Rename include guard.
14613 * tui/tui-win.h: Rename include guard.
14614 * tui/tui-stack.h: Rename include guard.
14615 * tui/tui-source.h: Rename include guard.
14616 * tui/tui-regs.h: Rename include guard.
14617 * tui/tui-out.h: Rename include guard.
14618 * tui/tui-layout.h: Rename include guard.
14619 * tui/tui-io.h: Rename include guard.
14620 * tui/tui-hooks.h: Rename include guard.
14621 * tui/tui-file.h: Rename include guard.
14622 * tui/tui-disasm.h: Rename include guard.
14623 * tui/tui-data.h: Rename include guard.
14624 * tui/tui-command.h: Rename include guard.
14625 * tic6x-tdep.h: Add include guard.
14626 * target/waitstatus.h: Rename include guard.
14627 * target/wait.h: Rename include guard.
14628 * target/target.h: Rename include guard.
14629 * target/resume.h: Rename include guard.
14630 * target-float.h: Rename include guard.
14631 * stabsread.h: Add include guard.
14632 * rs6000-tdep.h: Add include guard.
14633 * riscv-fbsd-tdep.h: Add include guard.
14634 * regformats/regdef.h: Rename include guard.
14635 * record.h: Rename include guard.
14636 * python/python.h: Rename include guard.
14637 * python/python-internal.h: Rename include guard.
14638 * python/py-stopevent.h: Rename include guard.
14639 * python/py-ref.h: Rename include guard.
14640 * python/py-record.h: Rename include guard.
14641 * python/py-record-full.h: Rename include guard.
14642 * python/py-record-btrace.h: Rename include guard.
14643 * python/py-instruction.h: Rename include guard.
14644 * python/py-events.h: Rename include guard.
14645 * python/py-event.h: Rename include guard.
14646 * procfs.h: Add include guard.
14647 * proc-utils.h: Add include guard.
14648 * p-lang.h: Add include guard.
14649 * or1k-tdep.h: Rename include guard.
14650 * observable.h: Rename include guard.
14651 * nto-tdep.h: Rename include guard.
14652 * nat/x86-linux.h: Rename include guard.
14653 * nat/x86-linux-dregs.h: Rename include guard.
14654 * nat/x86-gcc-cpuid.h: Add include guard.
14655 * nat/x86-dregs.h: Rename include guard.
14656 * nat/x86-cpuid.h: Rename include guard.
14657 * nat/ppc-linux.h: Rename include guard.
14658 * nat/mips-linux-watch.h: Rename include guard.
14659 * nat/linux-waitpid.h: Rename include guard.
14660 * nat/linux-ptrace.h: Rename include guard.
14661 * nat/linux-procfs.h: Rename include guard.
14662 * nat/linux-osdata.h: Rename include guard.
14663 * nat/linux-nat.h: Rename include guard.
14664 * nat/linux-namespaces.h: Rename include guard.
14665 * nat/linux-btrace.h: Rename include guard.
14666 * nat/glibc_thread_db.h: Rename include guard.
14667 * nat/gdb_thread_db.h: Rename include guard.
14668 * nat/gdb_ptrace.h: Rename include guard.
14669 * nat/fork-inferior.h: Rename include guard.
14670 * nat/amd64-linux-siginfo.h: Rename include guard.
14671 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14672 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14673 * nat/aarch64-linux.h: Rename include guard.
14674 * nat/aarch64-linux-hw-point.h: Rename include guard.
14675 * mn10300-tdep.h: Add include guard.
14676 * mips-linux-tdep.h: Add include guard.
14677 * mi/mi-parse.h: Rename include guard.
14678 * mi/mi-out.h: Rename include guard.
14679 * mi/mi-main.h: Rename include guard.
14680 * mi/mi-interp.h: Rename include guard.
14681 * mi/mi-getopt.h: Rename include guard.
14682 * mi/mi-console.h: Rename include guard.
14683 * mi/mi-common.h: Rename include guard.
14684 * mi/mi-cmds.h: Rename include guard.
14685 * mi/mi-cmd-break.h: Rename include guard.
14686 * m2-lang.h: Add include guard.
14687 * location.h: Rename include guard.
14688 * linux-record.h: Rename include guard.
14689 * linux-nat.h: Add include guard.
14690 * linux-fork.h: Add include guard.
14691 * i386-darwin-tdep.h: Rename include guard.
14692 * hppa-linux-offsets.h: Add include guard.
14693 * guile/guile.h: Rename include guard.
14694 * guile/guile-internal.h: Rename include guard.
14695 * gnu-nat.h: Rename include guard.
14696 * gdb-stabs.h: Rename include guard.
14697 * frv-tdep.h: Add include guard.
14698 * f-lang.h: Add include guard.
14699 * event-loop.h: Add include guard.
14700 * darwin-nat.h: Rename include guard.
14701 * cp-abi.h: Rename include guard.
14702 * config/sparc/nm-sol2.h: Rename include guard.
14703 * config/nm-nto.h: Rename include guard.
14704 * config/nm-linux.h: Add include guard.
14705 * config/i386/nm-i386gnu.h: Rename include guard.
14706 * config/djgpp/nl_types.h: Rename include guard.
14707 * config/djgpp/langinfo.h: Rename include guard.
14708 * compile/gcc-cp-plugin.h: Add include guard.
14709 * compile/gcc-c-plugin.h: Add include guard.
14710 * compile/compile.h: Rename include guard.
14711 * compile/compile-object-run.h: Rename include guard.
14712 * compile/compile-object-load.h: Rename include guard.
14713 * compile/compile-internal.h: Rename include guard.
14714 * compile/compile-cplus.h: Rename include guard.
14715 * compile/compile-c.h: Rename include guard.
14716 * common/xml-utils.h: Rename include guard.
14717 * common/x86-xstate.h: Rename include guard.
14718 * common/version.h: Rename include guard.
14719 * common/vec.h: Rename include guard.
14720 * common/tdesc.h: Rename include guard.
14721 * common/selftest.h: Rename include guard.
14722 * common/scoped_restore.h: Rename include guard.
14723 * common/scoped_mmap.h: Rename include guard.
14724 * common/scoped_fd.h: Rename include guard.
14725 * common/safe-iterator.h: Rename include guard.
14726 * common/run-time-clock.h: Rename include guard.
14727 * common/refcounted-object.h: Rename include guard.
14728 * common/queue.h: Rename include guard.
14729 * common/ptid.h: Rename include guard.
14730 * common/print-utils.h: Rename include guard.
14731 * common/preprocessor.h: Rename include guard.
14732 * common/pathstuff.h: Rename include guard.
14733 * common/observable.h: Rename include guard.
14734 * common/netstuff.h: Rename include guard.
14735 * common/job-control.h: Rename include guard.
14736 * common/host-defs.h: Rename include guard.
14737 * common/gdb_wait.h: Rename include guard.
14738 * common/gdb_vecs.h: Rename include guard.
14739 * common/gdb_unlinker.h: Rename include guard.
14740 * common/gdb_unique_ptr.h: Rename include guard.
14741 * common/gdb_tilde_expand.h: Rename include guard.
14742 * common/gdb_sys_time.h: Rename include guard.
14743 * common/gdb_string_view.h: Rename include guard.
14744 * common/gdb_splay_tree.h: Rename include guard.
14745 * common/gdb_setjmp.h: Rename include guard.
14746 * common/gdb_ref_ptr.h: Rename include guard.
14747 * common/gdb_optional.h: Rename include guard.
14748 * common/gdb_locale.h: Rename include guard.
14749 * common/gdb_assert.h: Rename include guard.
14750 * common/filtered-iterator.h: Rename include guard.
14751 * common/filestuff.h: Rename include guard.
14752 * common/fileio.h: Rename include guard.
14753 * common/environ.h: Rename include guard.
14754 * common/common-utils.h: Rename include guard.
14755 * common/common-types.h: Rename include guard.
14756 * common/common-regcache.h: Rename include guard.
14757 * common/common-inferior.h: Rename include guard.
14758 * common/common-gdbthread.h: Rename include guard.
14759 * common/common-exceptions.h: Rename include guard.
14760 * common/common-defs.h: Rename include guard.
14761 * common/common-debug.h: Rename include guard.
14762 * common/cleanups.h: Rename include guard.
14763 * common/buffer.h: Rename include guard.
14764 * common/btrace-common.h: Rename include guard.
14765 * common/break-common.h: Rename include guard.
14766 * cli/cli-utils.h: Rename include guard.
14767 * cli/cli-style.h: Rename include guard.
14768 * cli/cli-setshow.h: Rename include guard.
14769 * cli/cli-script.h: Rename include guard.
14770 * cli/cli-interp.h: Rename include guard.
14771 * cli/cli-decode.h: Rename include guard.
14772 * cli/cli-cmds.h: Rename include guard.
14773 * charset-list.h: Add include guard.
14774 * buildsym-legacy.h: Rename include guard.
14775 * bfin-tdep.h: Add include guard.
14776 * ax.h: Rename include guard.
14777 * arm-linux-tdep.h: Add include guard.
14778 * arm-fbsd-tdep.h: Add include guard.
14779 * arch/xtensa.h: Rename include guard.
14780 * arch/tic6x.h: Add include guard.
14781 * arch/i386.h: Add include guard.
14782 * arch/arm.h: Rename include guard.
14783 * arch/arm-linux.h: Rename include guard.
14784 * arch/arm-get-next-pcs.h: Rename include guard.
14785 * arch/amd64.h: Add include guard.
14786 * arch/aarch64-insn.h: Rename include guard.
14787 * arch-utils.h: Rename include guard.
14788 * annotate.h: Add include guard.
14789 * amd64-darwin-tdep.h: Rename include guard.
14790 * aarch64-linux-tdep.h: Add include guard.
14791 * aarch64-fbsd-tdep.h: Add include guard.
14792 * aarch32-linux-nat.h: Add include guard.
14793
ab9268d2
PW
147942019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14795
14796 * macrotab.c (macro_define_internal): New function that
14797 factorizes macro_define_object_internal and macro_define_function
14798 code.
14799 (macro_define_object_internal): Use macro_define_internal.
14800 (macro_define_function): Likewise.
14801
bb0da2b4
PW
148022019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14803
14804 * macrocmd.c (extract_identifier): Return
14805 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14806 callers.
14807
424eb552
JB
148082019-02-06 John Baldwin <jhb@FreeBSD.org>
14809
14810 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14811
1688cb29
TT
148122019-02-05 Tom Tromey <tom@tromey.com>
14813
14814 * target.c (target_stack::unpush): Move assertion earlier.
14815
b5eba2d8
TT
148162019-01-30 Tom Tromey <tom@tromey.com>
14817
14818 PR python/23615:
14819 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14820 (gdbpy_parse_and_eval): Likewise.
14821 * python/python-internal.h (gdbpy_allow_threads): New class.
14822
7054e2ff
JB
148232019-01-28 John Baldwin <jhb@FreeBSD.org>
14824
14825 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14826 (aarch64_fbsd_fpregmap): Move earlier.
14827 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14828 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14829 instead of individual calls to trad_frame_set_reg_addr.
14830 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14831 earlier.
14832 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14833 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14834 instead of individual calls to trad_frame_set_reg_addr.
14835
36c25ffa
AH
148362019-01-28 Alan Hayward <alan.hayward@arm.com>
14837
14838 * CONTRIBUTE: Replace contribution list with wiki link.
14839
a0707f3c
TT
148402019-01-25 Tom Tromey <tom@tromey.com>
14841
14842 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14843
0747795c
TT
148442019-01-25 Tom Tromey <tom@tromey.com>
14845
14846 * xtensa-linux-nat.c: Fix common/ includes.
14847 * xml-support.h: Fix common/ includes.
14848 * xml-support.c: Fix common/ includes.
14849 * x86-linux-nat.c: Fix common/ includes.
14850 * windows-nat.c: Fix common/ includes.
14851 * varobj.h: Fix common/ includes.
14852 * varobj.c: Fix common/ includes.
14853 * value.c: Fix common/ includes.
14854 * valops.c: Fix common/ includes.
14855 * utils.c: Fix common/ includes.
14856 * unittests/xml-utils-selftests.c: Fix common/ includes.
14857 * unittests/utils-selftests.c: Fix common/ includes.
14858 * unittests/unpack-selftests.c: Fix common/ includes.
14859 * unittests/tracepoint-selftests.c: Fix common/ includes.
14860 * unittests/style-selftests.c: Fix common/ includes.
14861 * unittests/string_view-selftests.c: Fix common/ includes.
14862 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14863 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14864 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14865 * unittests/rsp-low-selftests.c: Fix common/ includes.
14866 * unittests/parse-connection-spec-selftests.c: Fix common/
14867 includes.
14868 * unittests/optional-selftests.c: Fix common/ includes.
14869 * unittests/offset-type-selftests.c: Fix common/ includes.
14870 * unittests/observable-selftests.c: Fix common/ includes.
14871 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14872 * unittests/memrange-selftests.c: Fix common/ includes.
14873 * unittests/memory-map-selftests.c: Fix common/ includes.
14874 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14875 * unittests/function-view-selftests.c: Fix common/ includes.
14876 * unittests/environ-selftests.c: Fix common/ includes.
14877 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14878 * unittests/common-utils-selftests.c: Fix common/ includes.
14879 * unittests/cli-utils-selftests.c: Fix common/ includes.
14880 * unittests/array-view-selftests.c: Fix common/ includes.
14881 * ui-file.c: Fix common/ includes.
14882 * tui/tui-io.c: Fix common/ includes.
14883 * tracepoint.h: Fix common/ includes.
14884 * tracepoint.c: Fix common/ includes.
14885 * tracefile-tfile.c: Fix common/ includes.
14886 * top.h: Fix common/ includes.
14887 * top.c: Fix common/ includes.
14888 * thread.c: Fix common/ includes.
14889 * target/waitstatus.h: Fix common/ includes.
14890 * target/waitstatus.c: Fix common/ includes.
14891 * target.h: Fix common/ includes.
14892 * target.c: Fix common/ includes.
14893 * target-memory.c: Fix common/ includes.
14894 * target-descriptions.c: Fix common/ includes.
14895 * symtab.h: Fix common/ includes.
14896 * symfile.c: Fix common/ includes.
14897 * stap-probe.c: Fix common/ includes.
14898 * spu-linux-nat.c: Fix common/ includes.
14899 * sparc-nat.c: Fix common/ includes.
14900 * source.c: Fix common/ includes.
14901 * solib.c: Fix common/ includes.
14902 * solib-target.c: Fix common/ includes.
14903 * ser-unix.c: Fix common/ includes.
14904 * ser-tcp.c: Fix common/ includes.
14905 * ser-pipe.c: Fix common/ includes.
14906 * ser-base.c: Fix common/ includes.
14907 * selftest-arch.c: Fix common/ includes.
14908 * s12z-tdep.c: Fix common/ includes.
14909 * rust-exp.y: Fix common/ includes.
14910 * rs6000-aix-tdep.c: Fix common/ includes.
14911 * riscv-tdep.c: Fix common/ includes.
14912 * remote.c: Fix common/ includes.
14913 * remote-notif.h: Fix common/ includes.
14914 * remote-fileio.h: Fix common/ includes.
14915 * remote-fileio.c: Fix common/ includes.
14916 * regcache.h: Fix common/ includes.
14917 * regcache.c: Fix common/ includes.
14918 * record-btrace.c: Fix common/ includes.
14919 * python/python.c: Fix common/ includes.
14920 * python/py-type.c: Fix common/ includes.
14921 * python/py-inferior.c: Fix common/ includes.
14922 * progspace.h: Fix common/ includes.
14923 * producer.c: Fix common/ includes.
14924 * procfs.c: Fix common/ includes.
14925 * proc-api.c: Fix common/ includes.
14926 * printcmd.c: Fix common/ includes.
14927 * ppc-linux-nat.c: Fix common/ includes.
14928 * parser-defs.h: Fix common/ includes.
14929 * osdata.c: Fix common/ includes.
14930 * obsd-nat.c: Fix common/ includes.
14931 * nat/x86-linux.c: Fix common/ includes.
14932 * nat/x86-linux-dregs.c: Fix common/ includes.
14933 * nat/x86-dregs.h: Fix common/ includes.
14934 * nat/x86-dregs.c: Fix common/ includes.
14935 * nat/ppc-linux.c: Fix common/ includes.
14936 * nat/mips-linux-watch.h: Fix common/ includes.
14937 * nat/mips-linux-watch.c: Fix common/ includes.
14938 * nat/linux-waitpid.c: Fix common/ includes.
14939 * nat/linux-ptrace.h: Fix common/ includes.
14940 * nat/linux-ptrace.c: Fix common/ includes.
14941 * nat/linux-procfs.c: Fix common/ includes.
14942 * nat/linux-personality.c: Fix common/ includes.
14943 * nat/linux-osdata.c: Fix common/ includes.
14944 * nat/linux-namespaces.c: Fix common/ includes.
14945 * nat/linux-btrace.h: Fix common/ includes.
14946 * nat/linux-btrace.c: Fix common/ includes.
14947 * nat/fork-inferior.c: Fix common/ includes.
14948 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14949 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14950 * nat/aarch64-linux.c: Fix common/ includes.
14951 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14952 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14953 * namespace.h: Fix common/ includes.
14954 * mips-linux-tdep.c: Fix common/ includes.
14955 * minsyms.c: Fix common/ includes.
14956 * mi/mi-parse.h: Fix common/ includes.
14957 * mi/mi-main.c: Fix common/ includes.
14958 * mi/mi-cmd-env.c: Fix common/ includes.
14959 * memrange.h: Fix common/ includes.
14960 * memattr.c: Fix common/ includes.
14961 * maint.h: Fix common/ includes.
14962 * maint.c: Fix common/ includes.
14963 * main.c: Fix common/ includes.
14964 * machoread.c: Fix common/ includes.
14965 * location.c: Fix common/ includes.
14966 * linux-thread-db.c: Fix common/ includes.
14967 * linux-nat.c: Fix common/ includes.
14968 * linux-fork.c: Fix common/ includes.
14969 * inline-frame.c: Fix common/ includes.
14970 * infrun.c: Fix common/ includes.
14971 * inflow.c: Fix common/ includes.
14972 * inferior.h: Fix common/ includes.
14973 * inferior.c: Fix common/ includes.
14974 * infcmd.c: Fix common/ includes.
14975 * inf-ptrace.c: Fix common/ includes.
14976 * inf-child.c: Fix common/ includes.
14977 * ia64-linux-nat.c: Fix common/ includes.
14978 * i387-tdep.c: Fix common/ includes.
14979 * i386-tdep.c: Fix common/ includes.
14980 * i386-linux-tdep.c: Fix common/ includes.
14981 * i386-linux-nat.c: Fix common/ includes.
14982 * i386-go32-tdep.c: Fix common/ includes.
14983 * i386-fbsd-tdep.c: Fix common/ includes.
14984 * i386-fbsd-nat.c: Fix common/ includes.
14985 * guile/scm-type.c: Fix common/ includes.
14986 * guile/guile.c: Fix common/ includes.
14987 * go32-nat.c: Fix common/ includes.
14988 * gnu-nat.c: Fix common/ includes.
14989 * gdbthread.h: Fix common/ includes.
14990 * gdbarch-selftests.c: Fix common/ includes.
14991 * gdb_usleep.c: Fix common/ includes.
14992 * gdb_select.h: Fix common/ includes.
14993 * gdb_bfd.c: Fix common/ includes.
14994 * gcore.c: Fix common/ includes.
14995 * fork-child.c: Fix common/ includes.
14996 * findvar.c: Fix common/ includes.
14997 * fbsd-nat.c: Fix common/ includes.
14998 * event-top.c: Fix common/ includes.
14999 * event-loop.c: Fix common/ includes.
15000 * dwarf2read.c: Fix common/ includes.
15001 * dwarf2loc.c: Fix common/ includes.
15002 * dwarf2-frame.c: Fix common/ includes.
15003 * dwarf-index-cache.c: Fix common/ includes.
15004 * dtrace-probe.c: Fix common/ includes.
15005 * disasm-selftests.c: Fix common/ includes.
15006 * defs.h: Fix common/ includes.
15007 * csky-tdep.c: Fix common/ includes.
15008 * cp-valprint.c: Fix common/ includes.
15009 * cp-support.h: Fix common/ includes.
15010 * cp-support.c: Fix common/ includes.
15011 * corelow.c: Fix common/ includes.
15012 * completer.h: Fix common/ includes.
15013 * completer.c: Fix common/ includes.
15014 * compile/compile.c: Fix common/ includes.
15015 * compile/compile-loc2c.c: Fix common/ includes.
15016 * compile/compile-cplus-types.c: Fix common/ includes.
15017 * compile/compile-cplus-symbols.c: Fix common/ includes.
15018 * command.h: Fix common/ includes.
15019 * cli/cli-dump.c: Fix common/ includes.
15020 * cli/cli-cmds.c: Fix common/ includes.
15021 * charset.c: Fix common/ includes.
15022 * build-id.c: Fix common/ includes.
15023 * btrace.h: Fix common/ includes.
15024 * btrace.c: Fix common/ includes.
15025 * breakpoint.h: Fix common/ includes.
15026 * breakpoint.c: Fix common/ includes.
15027 * ax.h:
15028 (enum agent_op): Fix common/ includes.
15029 * ax-general.c (struct aop_map): Fix common/ includes.
15030 * ax-gdb.c: Fix common/ includes.
15031 * auxv.c: Fix common/ includes.
15032 * auto-load.c: Fix common/ includes.
15033 * arm-tdep.c: Fix common/ includes.
15034 * arch/riscv.c: Fix common/ includes.
15035 * arch/ppc-linux-common.c: Fix common/ includes.
15036 * arch/i386.c: Fix common/ includes.
15037 * arch/arm.c: Fix common/ includes.
15038 * arch/arm-linux.c: Fix common/ includes.
15039 * arch/arm-get-next-pcs.c: Fix common/ includes.
15040 * arch/amd64.c: Fix common/ includes.
15041 * arch/aarch64.c: Fix common/ includes.
15042 * arch/aarch64-insn.c: Fix common/ includes.
15043 * arch-utils.c: Fix common/ includes.
15044 * amd64-windows-tdep.c: Fix common/ includes.
15045 * amd64-tdep.c: Fix common/ includes.
15046 * amd64-sol2-tdep.c: Fix common/ includes.
15047 * amd64-obsd-tdep.c: Fix common/ includes.
15048 * amd64-nbsd-tdep.c: Fix common/ includes.
15049 * amd64-linux-tdep.c: Fix common/ includes.
15050 * amd64-linux-nat.c: Fix common/ includes.
15051 * amd64-fbsd-tdep.c: Fix common/ includes.
15052 * amd64-fbsd-nat.c: Fix common/ includes.
15053 * amd64-dicos-tdep.c: Fix common/ includes.
15054 * amd64-darwin-tdep.c: Fix common/ includes.
15055 * agent.c: Fix common/ includes.
15056 * ada-lang.h: Fix common/ includes.
15057 * ada-lang.c: Fix common/ includes.
15058 * aarch64-tdep.c: Fix common/ includes.
15059
2f5c153e
TT
150602019-01-25 Tom Tromey <tom@tromey.com>
15061
15062 * common/create-version.sh: Use common/version.h.
15063
adc6a863
PA
150642019-01-24 Pedro Alves <palves@redhat.com>
15065
15066 * infrun.c (signal_stop, signal_print, signal_program)
15067 (signal_catch, signal_pass): Now arrays instead of pointers.
15068 (update_signals_program_target, do_target_resume)
15069 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15070 * linux-nat.c (linux_nat_target::pass_signals)
15071 (linux_nat_target::create_inferior, linux_nat_target::attach):
15072 Adjust.
15073 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15074 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15075 * procfs.c (procfs_target::pass_signals): Adjust.
15076 * record-full.c (record_full_target::resume): Adjust.
15077 * remote.c (remote_target::pass_signals)
15078 (remote_target::program_signals): Adjust.
15079 * target-debug.h (target_debug_print_signals): Now takes a
15080 gdb::array_view as parameter. Adjust.
15081 * target.h (target_ops) <pass_signals, program_signals>: Replace
15082 pointer and length parameters with gdb::array_view.
15083 (target_pass_signals, target_program_signals): Likewise.
15084 * target-delegates.c: Regenerate.
15085
3046d67a
PA
150862019-01-24 Pedro Alves <palves@redhat.com>
15087
15088 * common/forward-scope-exit.h
15089 (forward_scope_exit::forward_scope_exit): Pass arguments to
15090 m_bind_function directly, instead of creating a std::bind and
15091 copying that.
15092
353229bf
AH
150932019-01-24 Alan Hayward <alan.hayward@arm.com>
15094
15095 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15096 for static members.
15097 (pass_in_v_vfp_candidate): Likewise.
15098
311dc83a
TT
150992019-01-23 Tom Tromey <tom@tromey.com>
15100 Pedro Alves <palves@redhat.com>
15101
15102 * regcache.c (class regcache_invalidator): Remove.
15103 (regcache::raw_write): Use make_scope_exit.
15104
296bd123
TT
151052019-01-23 Tom Tromey <tom@tromey.com>
15106
15107 * ui-out.h (class ui_out_emit_type): Update comment.
15108
979a0d13
TT
151092019-01-23 Tom Tromey <tom@tromey.com>
15110
15111 * infrun.c (fetch_inferior_event): Update comment.
15112
d238133d
TT
151132019-01-23 Tom Tromey <tom@tromey.com>
15114 Pedro Alves <palves@redhat.com>
15115
15116 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15117 parameter.
15118 (fetch_inferior_event): Use SCOPE_EXIT.
15119
15120
9885e6bb
TT
151212019-01-23 Tom Tromey <tom@tromey.com>
15122 Pedro Alves <palves@redhat.com>
15123
15124 * infrun.c (disable_thread_events): Delete.
15125 (stop_all_threads): Use SCOPE_EXIT.
15126
286526c1
TT
151272019-01-23 Tom Tromey <tom@tromey.com>
15128 Pedro Alves <palves@redhat.com>
15129
15130 * symfile.c: Include forward-scope-exit.h.
15131 (clear_symtab_users_cleanup): Replace forward declaration with
15132 a FORWARD_SCOPE_EXIT.
15133 (syms_from_objfile_1): Use the forward_scope_exit and
15134 gdb::optional instead of cleanup_function.
15135 (reread_symbols): Use the forward_scope_exit instead of
15136 cleanup_function.
15137 (clear_symtab_users_cleanup): Remove function.
15138
1db93f14
TT
151392019-01-23 Tom Tromey <tom@tromey.com>
15140 Pedro Alves <palves@redhat.com>
15141
15142 * linux-nat.c: Include scope-exit.h.
15143 (cleanup_target_stop): Remove.
15144 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15145 SCOPE_EXIT.
15146
2cc83d1e
TT
151472019-01-23 Tom Tromey <tom@tromey.com>
15148 Pedro Alves <palves@redhat.com>
15149
15150 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15151 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15152
694c6bf5
TT
151532019-01-23 Tom Tromey <tom@tromey.com>
15154 Andrew Burgess <andrew.burgess@embecosm.com>
15155 Pedro Alves <palves@redhat.com>
15156
15157 * infrun.c (fetch_inferior_event): Use scope_exit.
15158 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15159 * top.c (execute_command): Use scope_exit.
15160 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15161 * utils.c (do_bpstat_clear_actions_cleanup)
15162 (make_bpstat_clear_actions_cleanup): Remove.
15163
4c41382a
TT
151642019-01-23 Tom Tromey <tom@tromey.com>
15165 Pedro Alves <palves@redhat.com>
15166
15167 * infrun.c: Include "common/scope-exit.h"
15168 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15169 (wait_for_inferior): Use SCOPE_EXIT.
15170 (fetch_inferior_event): Use scope_exit.
15171
89f8fb50
TT
151722019-01-23 Tom Tromey <tom@tromey.com>
15173 Pedro Alves <palves@redhat.com>
15174
15175 * breakpoint.c (create_breakpoint): Remove cleanup.
15176
5419bdae
TT
151772019-01-23 Tom Tromey <tom@tromey.com>
15178 Andrew Burgess <andrew.burgess@embecosm.com>
15179 Pedro Alves <palves@redhat.com>
15180
e587ef42
PA
151812019-01-23 Pedro Alves <palves@redhat.com>
15182
15183 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15184
77f0e74c
PA
151852019-01-23 Pedro Alves <palves@redhat.com>
15186 Andrew Burgess <andrew.burgess@embecosm.com>
15187
15188 * gdbthread.h: Include "common/forward-scope-exit.h".
15189 (scoped_finish_thread_state): Redefine custom class in terms of
15190 forward_scope_exit.
15191
5b9b3e53
PA
151922019-01-23 Pedro Alves <palves@redhat.com>
15193 Andrew Burgess <andrew.burgess@embecosm.com>
15194
15195 * common/forward-scope-exit.h: New file.
15196
54b65c9b
PA
151972019-01-23 Pedro Alves <palves@redhat.com>
15198 Andrew Burgess <andrew.burgess@embecosm.com>
15199 Tom Tromey <tom@tromey.com>
15200
15201 * common/scope-exit.h: New file.
15202
cf08fb29
PA
152032019-01-23 Pedro Alves <palves@redhat.com>
15204
15205 * common/preprocessor.h (ESC): Rename to ...
15206 (ESC_PARENS): ... this.
15207 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15208 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15209
ae73e2e2
TT
152102019-01-23 Tom Tromey <tom@tromey.com>
15211
15212 * language.h (class scoped_switch_to_sym_language_if_auto):
15213 Initialize m_lang in both cases.
15214
6594e122
AH
152152019-01-23 Alan Hayward <alan.hayward@arm.com>
15216
15217 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15218 with XCNEW.
15219
a7c9855d
TT
152202019-01-22 Tom Tromey <tom@tromey.com>
15221
15222 * corelow.c: Do not include sys/file.h.
15223
93cc1d53
TT
152242019-01-22 Tom Tromey <tom@tromey.com>
15225
15226 * tui/tui-wingeneral.h: Include gdb_curses.h.
15227
38561778
TT
152282019-01-22 Tom Tromey <tom@tromey.com>
15229
15230 * source-cache.h (class source_cache) <get_source_lines,
15231 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15232
37b3ab5b
TT
152332019-01-22 Tom Tromey <tom@tromey.com>
15234
15235 * remote-fileio.h (struct remote_target): Declare.
15236
3fabc016
TT
152372019-01-22 Tom Tromey <tom@tromey.com>
15238
15239 * python/py-arch.c: Do not include py-ref.h.
15240 * python/py-bpevent.c: Do not include py-ref.h.
15241 * python/py-cmd.c: Do not include py-ref.h.
15242 * python/py-continueevent.c: Do not include py-ref.h.
15243 * python/py-event.h: Do not include py-ref.h.
15244 * python/py-evtregistry.c: Do not include py-ref.h.
15245 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15246 * python/py-frame.c: Do not include py-ref.h.
15247 * python/py-framefilter.c: Do not include py-ref.h.
15248 * python/py-function.c: Do not include py-ref.h.
15249 * python/py-infevents.c: Do not include py-ref.h.
15250 * python/py-linetable.c: Do not include py-ref.h.
15251 * python/py-objfile.c: Do not include py-ref.h.
15252 * python/py-param.c: Do not include py-ref.h.
15253 * python/py-prettyprint.c: Do not include py-ref.h.
15254 * python/py-progspace.c: Do not include py-ref.h.
15255 * python/py-symbol.c: Do not include py-ref.h.
15256 * python/py-symtab.c: Do not include py-ref.h.
15257 * python/py-type.c: Do not include py-ref.h.
15258 * python/py-unwind.c: Do not include py-ref.h.
15259 * python/py-utils.c: Do not include py-ref.h.
15260 * python/py-value.c: Do not include py-ref.h.
15261 * python/py-varobj.c: Do not include py-ref.h.
15262 * python/py-xmethods.c: Do not include py-ref.h.
15263 * python/python.c: Do not include py-ref.h.
15264 * varobj.c: Do not include py-ref.h.
15265
6b4d7774
TT
152662019-01-22 Tom Tromey <tom@tromey.com>
15267
15268 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15269 keyword for bcache.
15270
7af7e9b5
TT
152712019-01-22 Tom Tromey <tom@tromey.com>
15272
15273 * compile/compile-cplus-types.c: Remove a comment by #include.
15274
951d1049
TT
152752019-01-22 Tom Tromey <tom@tromey.com>
15276
15277 * compile/gcc-c-plugin.h: Include compile-internal.h.
15278
d65d5705
TT
152792019-01-22 Tom Tromey <tom@tromey.com>
15280
15281 * stabsread.c (EXTERN): Do not define.
15282 (symnum, next_symbol_text_func, processing_gcc_compilation)
15283 (within_function, global_sym_chain, global_stabs)
15284 (previous_stab_code, this_object_header_files)
15285 (n_this_object_header_files)
15286 (n_allocated_this_object_header_files): Define.
15287 * stabsread.h (EXTERN): Never define. Use "extern".
15288
b6fb1ee5
PW
152892019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15290
15291 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15292 history_value.
15293
be6d4f74
TT
152942019-01-21 Tom Tromey <tom@tromey.com>
15295
15296 * ui-out.c: Fix includes.
15297 * tui/tui-source.c: Fix includes.
15298 * target.c: Fix includes.
15299 * remote.c: Fix includes.
15300 * regcache.c: Fix includes.
15301 * python/py-block.c: Fix includes.
15302 * printcmd.c: Fix includes.
15303 * or1k-tdep.c: Fix includes.
15304 * mi/mi-main.c: Fix includes.
15305 * m32r-tdep.c: Fix includes.
15306 * csky-tdep.c: Fix includes.
15307 * compile/compile-cplus-types.c: Fix includes.
15308 * cli/cli-interp.c: Fix includes.
15309
73021deb
AH
153102019-01-21 Alan Hayward <alan.hayward@arm.com>
15311
15312 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15313 for padding.
15314
7932255d
TT
153152019-01-16 Tom Tromey <tom@tromey.com>
15316
15317 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15318 earlier.
15319 (struct objfile) <msymbols_range>: Move from top level.
15320 <msymbols>: New method.
15321 (class objfile_msymbols): Remove.
15322 * symtab.c (default_collect_symbol_completion_matches_break_on):
15323 Update.
15324 * symmisc.c (dump_msymbols): Update.
15325 * stabsread.c (scan_file_globals): Update.
15326 * objc-lang.c (info_selectors_command, info_classes_command)
15327 (find_methods): Update.
15328 * minsyms.c (find_solib_trampoline_target): Update.
15329 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15330 * coffread.c (coff_symfile_read): Update.
15331 * ada-lang.c (ada_lookup_simple_minsym)
15332 (ada_collect_symbol_completion_matches): Update.
15333
604b1bfb
TT
153342019-01-16 Tom Tromey <tom@tromey.com>
15335
15336 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15337 type. Remove no-argument constructor.
15338 <iterator::operator++>: Simplify.
15339 <begin>: Update.
15340 <end>: Use minimal_symbol_count.
15341
f252c6d5
TT
153422019-01-16 Tom Tromey <tom@tromey.com>
15343
15344 * objfiles.h (struct objfile) <psymtabs>: New method.
15345 (class objfile_psymtabs): Remove.
15346 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15347 typedef.
15348 <range>: New method.
15349 (require_partial_symbols): Change return type.
15350 * psymtab.c (require_partial_symbols)
15351 (psym_expand_symtabs_matching): Update.
15352 * mdebugread.c (parse_partial_symbols): Update.
15353 * dbxread.c (dbx_end_psymtab): Update.
15354
b669c953
TT
153552019-01-15 Tom Tromey <tom@tromey.com>
15356
15357 * symtab.c (lookup_objfile_from_block)
15358 (lookup_symbol_in_objfile_symtabs)
15359 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15360 (find_line_symtab, info_sources_command)
15361 (default_collect_symbol_completion_matches_break_on)
15362 (make_source_files_completion_list): Update.
15363 * symmisc.c (print_objfile_statistics, dump_objfile)
15364 (maintenance_print_symbols, maintenance_info_symtabs)
15365 (maintenance_check_symtabs, maintenance_info_line_tables):
15366 Update.
15367 * source.c (select_source_symtab)
15368 (forget_cached_source_info_for_objfile): Update.
15369 * objfiles.h (class objfile_compunits): Remove.
15370 (struct objfile) <compunits_range>: New typedef.
15371 (compunits): New method.
15372 * objfiles.c (objfile_relocate1): Update.
15373 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15374 * maint.c (count_symtabs_and_blocks): Update.
15375 * linespec.c (iterate_over_all_matching_symtabs): Update.
15376 * cp-support.c (add_symbol_overload_list_qualified): Update.
15377 * coffread.c (coff_symtab_read): Update.
15378 * ada-lang.c (add_nonlocal_symbols)
15379 (ada_collect_symbol_completion_matches)
15380 (ada_add_global_exceptions): Update.
15381
7e955d83
TT
153822019-01-15 Tom Tromey <tom@tromey.com>
15383
15384 * progspace.h (program_space) <objfiles_safe_range>: New
15385 typedef.
15386 <objfiles_safe>: New method.
15387 * objfiles.h (class all_objfiles_safe): Remove.
15388 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15389 * jit.c (jit_inferior_exit_hook): Update.
15390
2030c079
TT
153912019-01-17 Tom Tromey <tom@tromey.com>
15392
15393 * progspace.h (program_space) <objfiles_range>: New typedef.
15394 <objfiles>: New method.
15395 <objfiles_head>: Rename from objfiles.
15396 (object_files): Update.
15397 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15398 * guile/scm-pretty-print.c
15399 (ppscm_find_pretty_printer_from_objfiles): Update.
15400 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15401 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15402 Update.
15403 * python/py-progspace.c (pspy_get_objfiles): Update.
15404 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15405 Update.
15406 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15407 (objfpy_lookup_objfile_by_build_id): Update.
15408 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15409 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15410 Update.
15411 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15412 (expand_symtab_containing_pc, lookup_objfile_from_block)
15413 (lookup_static_symbol, basic_lookup_transparent_type)
15414 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15415 (find_line_symtab, info_sources_command)
15416 (default_collect_symbol_completion_matches_break_on)
15417 (make_source_files_completion_list, find_main_name): Update.
15418 * symmisc.c (print_symbol_bcache_statistics)
15419 (print_objfile_statistics, maintenance_print_symbols)
15420 (maintenance_print_msymbols, maintenance_print_objfiles)
15421 (maintenance_info_symtabs, maintenance_check_symtabs)
15422 (maintenance_expand_symtabs, maintenance_info_line_tables):
15423 Update.
15424 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15425 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15426 (map_overlay_command, unmap_overlay_command)
15427 (simple_overlay_update, expand_symtabs_matching)
15428 (map_symbol_filenames): Update.
15429 * symfile-debug.c (set_debug_symfile): Update.
15430 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15431 Update.
15432 * source.c (select_source_symtab, forget_cached_source_info):
15433 Update.
15434 * solib.c (solib_read_symbols): Update.
15435 * solib-spu.c (append_ocl_sos): Update.
15436 * psymtab.c (maintenance_print_psymbols)
15437 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15438 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15439 * printcmd.c (info_symbol_command): Update.
15440 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15441 Update.
15442 * objfiles.h (class all_objfiles): Remove.
15443 * objfiles.c (have_partial_symbols, have_full_symbols)
15444 (have_minimal_symbols, qsort_cmp, update_section_map)
15445 (shared_objfile_contains_address_p)
15446 (default_iterate_over_objfiles_in_search_order): Update.
15447 * objc-lang.c (info_selectors_command, info_classes_command)
15448 (find_methods): Update.
15449 * minsyms.c (find_solib_trampoline_target): Update.
15450 * maint.c (maintenance_info_sections)
15451 (maintenance_translate_address, count_symtabs_and_blocks):
15452 Update.
15453 * main.c (captured_main_1): Update.
15454 * linux-thread-db.c (try_thread_db_load_from_pdir)
15455 (has_libpthread): Update.
15456 * linespec.c (iterate_over_all_matching_symtabs)
15457 (search_minsyms_for_name): Update.
15458 * jit.c (jit_find_objf_with_entry_addr): Update.
15459 * hppa-tdep.c (find_unwind_entry)
15460 (hppa_lookup_stub_minimal_symbol): Update.
15461 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15462 Update.
15463 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15464 (elf_gnu_ifunc_resolve_by_got): Update.
15465 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15466 * dwarf-index-write.c (save_gdb_index_command): Update.
15467 * cp-support.c (add_symbol_overload_list_qualified): Update.
15468 * breakpoint.c (create_overlay_event_breakpoint)
15469 (create_longjmp_master_breakpoint)
15470 (create_std_terminate_master_breakpoint)
15471 (create_exception_master_breakpoint): Update.
15472 * blockframe.c (find_pc_partial_function): Update.
15473 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15474 (ada_collect_symbol_completion_matches)
15475 (ada_add_global_exceptions): Update.
15476
776489e0
TT
154772019-01-17 Tom Tromey <tom@tromey.com>
15478
15479 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15480 declare VEC.
15481 (solib_target_parse_libraries): Change return type.
15482 (library_list_start_segment, library_list_start_section)
15483 (library_list_end_library, library_list_start_library); Update.
15484 (solib_target_free_library_list): Remove.
15485 (solib_target_parse_libraries): Remove cleanup. Change return
15486 type.
15487 (solib_target_current_sos): Update.
15488
6471e7d2
TT
154892019-01-17 Tom Tromey <tromey@bapiya>
15490
15491 * valprint.c: Replace "the the" with "the".
15492 * symtab.c: Replace "the the" with "the".
15493 * solib.c: Replace "the the" with "the".
15494 * solib-dsbt.c: Replace "the the" with "the".
15495 * linespec.c: Replace "the the" with "the".
15496 * dwarf2loc.h: Replace "the the" with "the".
15497 * amd64-windows-tdep.c: Replace "the the" with "the".
15498 * aarch64-tdep.c: Replace "the the" with "the".
15499
c24bdb02
KS
155002019-01-16 Keith Seitz <keiths@redhat.com>
15501
15502 PR gdb/23773
15503 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15504 <builder>: Rename to ..
15505 <m_builder>: ... this and make private.
15506 (dwarf2_cu::get_builder): New method. Change all users of
15507 `builder' to use this method.
15508 (dwarf2_start_symtab): Move to ...
15509 (dwarf2_cu::start_symtab): ... here. Update all callers
15510 (setup_type_unit_groups): Move to ...
15511 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15512 callers.
15513 (dwarf2_cu::reset_builder): New method.
15514 (process_full_compunit, process_full_type_unit): Use
15515 dwarf2_cu::reset_builder.
15516 (follow_die_offset): Record the ancestor CU if it is different
15517 from the followed DIE's CU.
15518 (follow_die_sig_1): Likewise.
15519
8d64371b
TT
155202019-01-15 Tom Tromey <tom@tromey.com>
15521
15522 * remote.c (class remote_state) <buf>: Now a char_vector.
15523 <buf_size>: Remove.
15524 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15525 parameter.
15526 (remote_target::getpkt_or_notif_sane_1)
15527 (remote_target::getpkt_sane)
15528 (remote_target::getpkt_or_notif_sane): Likewise.
15529 (class remote_target) <putpkt>: New overload.
15530 (remote_target::read_frame): Change type of "buf_p". Remove
15531 sizeof_p parameter.
15532 (packet_ok): New overload.
15533 (packet_check_result): New overload.
15534 Update all uses.
15535
bb277751
TT
155362019-01-14 Tom Tromey <tom@tromey.com>
15537
15538 * remote-notif.c (handle_notification, remote_notif_ack)
15539 (remote_notif_parse): Make "buf" const.
15540 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15541 const.
15542 (remote_notif_parse, remote_notif_ack, handle_notification):
15543 Likewise.
15544 * remote.c (remote_notif_stop_parse): Make "buf" const.
15545 (remote_target::remote_parse_stop_reply): Make "buf" const.
15546 (remote_notif_stop_ack): Make "buf" const.
15547
05be00a8
TT
155482019-01-14 Tom Tromey <tom@tromey.com>
15549
15550 * remote.c (remote_console_output): Make parameter const.
15551
491adeca
TT
155522019-01-14 Tom Tromey <tom@tromey.com>
15553
15554 * target-debug.h (target_debug_print_signals): Constify.
15555 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15556 * procfs.c (procfs_target::pass_signals): Update.
15557 * linux-nat.c (linux_nat_target::pass_signals): Update.
15558 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15559 * target-delegates.c: Rebuild.
15560 * remote.c (remote_target::program_signals): Update.
15561 (remote_target::pass_signals): Update.
15562 * target.c (target_pass_signals): Constify argument.
15563 (target_program_signals): Likewise.
15564 * target.h (struct target_ops) <pass_signals, program_signals>:
15565 Constify argument.
15566 (target_pass_signals, target_program_signals): Constify argument.
15567
bbd94648
TT
155682019-01-14 Tom Tromey <tom@tromey.com>
15569
15570 PR tui/28819:
15571 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15572
6f072a10
PFC
155732019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15574
15575 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15576 field.
15577 * rs6000-tdep.c: Include reggroups.h.
15578 (IS_V_ALIAS_PSEUDOREG): Define.
15579 (rs6000_register_name): Return names for the "vX" aliases.
15580 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15581 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15582 aliases. Call default_register_reggroup_p for all other
15583 pseudo-registers.
15584 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15585 New functions.
15586 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15587 Handle "vX" aliases.
15588 (v_alias_pseudo_register_collect): New function.
15589 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15590 (rs6000_gdbarch_init): Initialize "vX" aliases as
15591 pseudo-registers. Restore registration of
15592 rs6000_pseudo_register_reggroup_p with
15593 set_tdesc_pseudo_register_reggroup_p.
15594
1a782351
MF
155952019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15596
15597 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15598 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15599 set_gdbarch_num_pseudo_regs.
15600
d73cff18
PW
156012019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15602
15603 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15604 Remove arg prefixname, add do_set and do_show.
15605 Add member functions set_list and show_list.
15606 * cli/cli-style.c (class cli_style_option): Update accordingly.
15607 (style_set_list): Move to file scope.
15608 (style_show_list): Likewise.
15609 (set_style): Call help_list.
15610 (show_style): Call cmd_show_list.
15611 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15612 Update to use the new macro.
15613
60a90376
JB
156142019-10-12 Joel Brobecker <brobecker@adacore.com>
15615
15616 * ada-lang.c (_initialize_ada_language): Expand the help text
15617 for the "catch exception" command.
15618
9d7c67bf
PW
156192019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15620
15621 * symtab.c (matching_obj_sections): Initialize obj,
15622 declare it closer to its usage.
15623
7cf47dc4
TT
156242019-01-10 Tom Tromey <tom@tromey.com>
15625
15626 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15627 (basic_inf_threads_range): Remove.
15628 (inf_threads_range, inf_non_exited_threads_range)
15629 (safe_inf_threads_range): Use next_adapter.
15630
d3cb6808
KS
156312019-01-10 Keith Seitz <keiths@redhat.com>
15632
15633 PR gdb/23712
15634 PR symtab/23010
15635 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15636 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15637
63a20375
KS
156382019-01-10 Keith Seitz <keiths@redhat.com>
15639
15640 PR gdb/23712
15641 PR symtab/23010
15642 * dictionary.c (pending_to_vector): Remove.
15643 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15644 Remove _1 suffix, replacing functions of the same name. Update
15645 all callers.
15646 (dict_create_hashed, dict_create_hashed_expandable)
15647 (dict_create_linear, dict_create_linear_expandable, dict_free)
15648 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15649 Make functions static.
15650
b026f593
KS
156512019-01-10 Keith Seitz <keiths@redhat.com>
15652
15653 PR gdb/23712
15654 PR symtab/23010
15655 * dictionary.h (struct dictionary): Replace declaration with
15656 multidictionary.
15657 (dict_create_hashed, dict_create_hashed_expandable)
15658 (dict_create_linear, dict_create_linear_expandable)
15659 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15660 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15661 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15662 taking multidictionary argument.
15663 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15664 * block.h (struct block) <dict>: Change to multidictionary
15665 and rename `multidict'.
15666 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15667 symmisc.c: Update all dictionary references to multidictionary.
15668
c7748ee9
KS
156692019-01-10 Keith Seitz <keiths@redhat.com>
15670
15671 PR gdb/23712
15672 PR symtab/23010
15673 * dictionary.c: Include unordered_map.
15674 (pending_to_vector): New function.
15675 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15676 Rewrite the non-"_1" functions to take vector instead
15677 of linked list.
15678 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15679 "new" _1 versions of the same name.
15680 (multidictionary): Define.
15681 (std::hash<enum language): New definition.
15682 (collate_pending_symbols_by_language, mdict_create_hashed)
15683 (mdict_create_hashed_expandable, mdict_create_linear)
15684 (mdict_create_linear_expandable, mdict_free)
15685 (find_language_dictionary, create_new_language_dictionary)
15686 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15687 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15688 (mdict_size, mdict_empty): New functions.
15689 * dictionary.h (mdict_iterator): Define.
15690
67aa1f3c
PA
156912019-01-10 Pedro Alves <palves@redhat.com>
15692
15693 * breakpoint.c (read_uploaded_action)
15694 (create_tracepoint_from_upload): Adjust to use
15695 gdb::unique_xmalloc_ptr.
15696 * ctf.c (ctf_write_uploaded_tp):
15697 (SET_ARRAY_FIELD): Use emplace_back.
15698 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15699 * tracefile-tfile.c (tfile_write_uploaded_tp):
15700 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15701 gdb::unique_xmalloc_ptr.
15702 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15703 at_string, cond_string, cmd_strings>: Replace char pointers
15704 with gdb::unique_xmalloc_ptr.
15705
2f667667
PA
157062019-01-10 Pedro Alves <palves@redhat.com>
15707
15708 * solib-target.c (library_list_start_library): Don't xstrdup name.
15709
36cb7237
PA
157102019-01-10 Pedro Alves <palves@redhat.com>
15711
15712 * mdebugread.c (parse_partial_symbols): Use
15713 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15714
da584958
AB
157152019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15716
15717 * linux-fork.c (scoped_switch_fork_info)
15718 <~scoped_switch_fork_info>: Fix incorrect variable name.
15719
1ef8573c
AB
157202019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15721
15722 * linux-fork.c (scoped_switch_fork_info)
15723 <scoped_switch_fork_info>: Make explicit.
15724 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15725
8d7bcccb
TT
157262019-01-10 Tom Tromey <tom@tromey.com>
15727
15728 * objfiles.h (objfile::reset_psymtabs): Update.
15729 * objfiles.c (objfile::objfile): Update.
15730 * psymtab.h (psymtab_storage::obstack): Update.
15731 (psymtab_storage::m_obstack): Use gdb::optional.
15732 (class psymtab_storage): Update comment. Remove objfile
15733 parameter.
15734 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15735
b596a3c7
TT
157362019-01-10 Tom Tromey <tom@tromey.com>
15737
15738 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15739 <free_psymtabs>: Now private.
15740 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15741 (allocate_psymtab): Use new method.
15742
a9342b62
TT
157432019-01-10 Tom Tromey <tom@tromey.com>
15744
15745 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15746 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15747 * mdebugread.c (parse_partial_symbols): Use
15748 allocate_dependencies.
15749 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15750 allocate_dependencies.
15751 (process_psymtab_comp_unit_reader)
15752 (build_type_psymtab_dependencies): Likewise.
15753 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15754
5af70966
TT
157552019-01-10 Tom Tromey <tom@tromey.com>
15756
15757 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15758 PSYMBOL_SET_LANGUAGE.
15759 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15760
5923a04c
TT
157612019-01-10 Tom Tromey <tom@tromey.com>
15762
15763 * psymtab.h (psymtab_storage::obstack): New method.
15764 <m_obstack>: Rename from obstack; now private.
15765 * psymtab.c (psymtab_storage): Update.
15766 * dwarf2read.c (create_addrmap_from_index)
15767 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15768 Update.
15769
6d6a12bf
TT
157702019-01-10 Tom Tromey <tom@tromey.com>
15771
15772 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15773 * objfiles.h (objfile::reset_psymtabs): New method.
15774
d320c2b5
TT
157752019-01-10 Tom Tromey <tom@tromey.com>
15776
15777 * symmisc.c (print_symbol_bcache_statistics): Update.
15778 (print_objfile_statistics): Update.
15779 * symfile.c (reread_symbols): Update.
15780 * psymtab.h (class psymtab_storage): New.
15781 * psymtab.c (psymtab_storage): New constructor.
15782 (~psymtab_storage): New destructor.
15783 (require_partial_symbols): Update.
15784 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15785 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15786 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15787 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15788 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15789 (start_psymtab_common, end_psymtab_common)
15790 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15791 (allocate_psymtab): Update.
15792 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15793 Update.
15794 (dump_psymtab_addrmap, maintenance_print_psymbols)
15795 (maintenance_check_psymtabs): Update.
15796 (class objfile_psymtabs): Move to objfiles.h.
15797 * psympriv.h (discard_psymtab): Now inline.
15798 (psymtab_discarder::psymtab_discarder): Update.
15799 (psymtab_discarder::~psymtab_discarder): Update.
15800 (ALL_OBJFILE_PSYMTABS): Rewrite.
15801 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15802 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15803 Remove fields.
15804 <partial_symtabs>: New field.
15805 (class objfile_psymtabs): Move from psymtab.h. Update.
15806 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15807 psymbol_cache.
15808 (objfile::~objfile): Don't destroy psymbol_cache.
15809 * mdebugread.c (parse_partial_symbols): Update.
15810 * dwarf2read.c (create_addrmap_from_index)
15811 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15812 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15813 (add_partial_subprogram, dwarf2_ranges_read): Update.
15814 * dwarf-index-write.c (write_address_map)
15815 (write_one_signatured_type, recursively_write_psymbols)
15816 (class debug_names, class debug_names, write_psymtabs_to_index):
15817 Update.
15818
1d94a5a3
TT
158192019-01-10 Tom Tromey <tom@tromey.com>
15820
15821 * symtab.h (SYMBOL_SET_NAMES): Update.
15822 (symbol_set_names): Update.
15823 (MSYMBOL_SET_NAMES): Update.
15824 * symtab.c (symbol_set_names): Change argument to be an
15825 objfile_per_bfd_storage.
15826 * psymtab.c (add_psymbol_to_bcache): Update.
15827 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15828
0f14768a
TT
158292019-01-10 Tom Tromey <tom@tromey.com>
15830
15831 * symtab.c (create_demangled_names_hash): Change argument to be an
15832 objfile_per_bfd_storage.
15833 (symbol_set_names): Update.
15834
6eee24ce
TT
158352019-01-10 Tom Tromey <tom@tromey.com>
15836
15837 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15838 init_psymbol_list.
15839 * psymtab.c (init_psymbol_list): Do nothing if already called.
15840 * psympriv.h (init_psymbol_list): Add comment.
15841 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15842 init_psymbol_list.
15843 * dbxread.c (dbx_symfile_read): Unconditionally call
15844 init_psymbol_list.
15845
75aedd27
TT
158462019-01-10 Tom Tromey <tom@tromey.com>
15847
15848 * xcoffread.c (scan_xcoff_symtab): Update.
15849 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15850 "where".
15851 * mdebugread.c (parse_partial_symbols)
15852 (handle_psymbol_enumerators): Update.
15853 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15854 * dbxread.c (read_dbx_symtab): Update.
15855 * psympriv.h (psymbol_placement): New enum.
15856 (add_psymbol_to_list): Update.
15857
939652a5
TT
158582019-01-10 Tom Tromey <tom@tromey.com>
15859
15860 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15861 static_psymbols parameters.
15862 (scan_xcoff_symtab): Update.
15863 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15864 static_psymbols parameters.
15865 * psympriv.h (start_psymtab_common): Update.
15866 * mdebugread.c (parse_partial_symbols): Update.
15867 * dwarf2read.c (create_partial_symtab): Update.
15868 * dbxread.c (read_dbx_symtab): Update.
15869 (start_psymtab): Remove global_psymbols and static_psymbols
15870 parameters.
15871
baa62830
TT
158722019-01-10 Tom Tromey <tom@tromey.com>
15873
15874 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15875 * psymtab.c (allocate_psymtab): Add comment.
15876 * psympriv.h (allocate_psymtab): Add comment.
15877 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15878 initializations.
15879 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15880
0e8f53ba
TT
158812019-01-10 Tom Tromey <tom@tromey.com>
15882
15883 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15884 Don't declare.
15885 * mipsread.c: Include mdebugread.h.
15886 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15887 Declare.
15888 * elfread.c: Include mdebugread.h.
15889
b22a7c6a
TT
158902019-01-09 Tom Tromey <tom@tromey.com>
15891
15892 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15893 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15894 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15895 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15896 (psym_lookup_symbol, psym_find_last_source_symtab)
15897 (psym_forget_cached_source_info, psym_print_stats)
15898 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15899 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15900 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15901 (psym_find_compunit_symtab_by_address)
15902 (maintenance_print_psymbols, maintenance_info_psymtabs)
15903 (maintenance_check_psymtabs): Use ranged for.
15904 * psymtab.h (class objfile_psymtabs): New.
15905 (require_partial_symbols): Return objfile_psymtabs.
15906 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15907
3b9d3ac2
TT
159082019-01-09 Tom Tromey <tom@tromey.com>
15909
15910 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15911 (find_pc_mapped_section, list_overlays_command)
15912 (map_overlay_command, unmap_overlay_command)
15913 (simple_overlay_update): Use all_objfiles.
15914 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15915 * printcmd.c (info_symbol_command): Use all_objfiles.
15916 * objfiles.h (ALL_OBJSECTIONS): Remove.
15917 * maint.c (maintenance_translate_address): Use all_objfiles.
15918 * gcore.c (gcore_create_callback): Use all_objfiles.
15919 (objfile_find_memory_regions): Likewise.
15920
8b31193a
TT
159212019-01-09 Tom Tromey <tom@tromey.com>
15922
15923 * symtab.c (find_line_symtab, info_sources_command)
15924 (make_source_files_completion_list): Use objfile_compunits.
15925 * source.c (select_source_symtab): Use objfile_compunits.
15926 * objfiles.h (struct objfile): Update comment.
15927 (ALL_OBJFILES): Remove.
15928 (ALL_FILETABS): Remove.
15929 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15930 objfile_compunits.
15931
d5da8b3c
TT
159322019-01-09 Tom Tromey <tom@tromey.com>
15933
15934 * symmisc.c (print_objfile_statistics, dump_objfile)
15935 (maintenance_print_symbols): Use compunit_filetabs.
15936 * source.c (forget_cached_source_info_for_objfile): Use
15937 compunit_filetabs.
15938 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15939 (ALL_FILETABS): Use compunit_filetabs.
15940 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15941 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15942
5accd1a0
TT
159432019-01-09 Tom Tromey <tom@tromey.com>
15944
15945 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15946 (compunit_filetabs): New.
15947 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15948 compunit_filetabs.
15949 (info_sources_command, make_source_files_completion_list): Remove
15950 declaration.
15951 * symmisc.c (print_objfile_statistics, dump_objfile)
15952 (maintenance_print_symbols): Remove declaration.
15953 (maintenance_info_symtabs): Use compunit_filetabs.
15954 (maintenance_info_line_tables): Likewise.
15955 * source.c (select_source_symtab): Change local variable name.
15956 (forget_cached_source_info_for_objfile): Remove declaration.
15957 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15958 * objfiles.c (objfile_relocate1): Remove declaration.
15959 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15960 declaration.
15961 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15962 * coffread.c (coff_symtab_read): Remove declaration.
15963 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15964 compunit_filetabs.
15965
d8aeb77f
TT
159662019-01-09 Tom Tromey <tom@tromey.com>
15967
15968 * symtab.c (lookup_objfile_from_block)
15969 (find_pc_sect_compunit_symtab, search_symbols)
15970 (default_collect_symbol_completion_matches_break_on): Use
15971 objfile_compunits.
15972 * objfiles.h (ALL_COMPUNITS): Remove.
15973 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15974 * cp-support.c (add_symbol_overload_list_qualified): Use
15975 objfile_compunits.
15976 * ada-lang.c (ada_collect_symbol_completion_matches)
15977 (ada_add_global_exceptions): Use objfile_compunits.
15978
592553c4
TT
159792019-01-09 Tom Tromey <tom@tromey.com>
15980
15981 * source.c (select_source_symtab)
15982 (forget_cached_source_info_for_objfile): Remove declaration.
15983 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15984 declaration.
15985 * maint.c (count_symtabs_and_blocks): Remove declaration.
15986 * cp-support.c (add_symbol_overload_list_qualified): Remove
15987 declaration.
15988 * coffread.c (coff_symtab_read): Remove declaration.
15989 * symtab.c (lookup_symbol_in_objfile_symtabs)
15990 (basic_lookup_transparent_type_1): Use objfile_compunits.
15991 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15992 (info_sources_command, search_symbols)
15993 (default_collect_symbol_completion_matches_break_on)
15994 (make_source_files_completion_list): Remove declaration.
15995 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
15996 (ada_collect_symbol_completion_matches)
15997 (ada_add_global_exceptions): Remove declaration.
15998 * linespec.c (iterate_over_all_matching_symtabs): Use
15999 objfile_compunits.
16000 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16001 (class objfile_compunits): New.
16002 (ALL_COMPUNITS): Use objfile_compunits.
16003 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16004 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16005 objfile_compunits.
16006 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16007
5325b9bf
TT
160082019-01-09 Tom Tromey <tom@tromey.com>
16009
16010 * symtab.c (search_symbols)
16011 (default_collect_symbol_completion_matches_break_on): Use
16012 objfile_msymbols.
16013 * ada-lang.c (ada_lookup_simple_minsym)
16014 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16015 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16016 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16017 objfile_msymbols.
16018 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16019 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16020 * objc-lang.c (find_methods): Use objfile_msymbols.
16021 (info_selectors_command, info_classes_command): Likewise.
16022 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16023 * objfiles.h (class objfile_msymbols): New.
16024 (ALL_OBJFILE_MSYMBOLS): Remove.
16025 (ALL_MSYMBOLS): Remove.
16026
cac85af2
TT
160272019-01-09 Tom Tromey <tom@tromey.com>
16028
16029 * common/next-iterator.h (next_adapter): Add Iterator template
16030 parameter.
16031 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16032 (class all_objfiles_safe): New.
16033 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16034 * objfiles.c (put_objfile_before): Update comment.
16035 (add_separate_debug_objfile): Likewise.
16036 (free_all_objfiles): Use all_objfiles_safe.
16037 (objfile_purge_solibs): Likewise.
16038
aed57c53
TT
160392019-01-09 Tom Tromey <tom@tromey.com>
16040
16041 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16042 (expand_symtab_containing_pc, lookup_static_symbol)
16043 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16044 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16045 all_objfiles.
16046 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16047 * breakpoint.c (create_overlay_event_breakpoint)
16048 (create_longjmp_master_breakpoint)
16049 (create_std_terminate_master_breakpoint)
16050 (create_exception_master_breakpoint): Use all_objfiles.
16051 * linux-thread-db.c (try_thread_db_load_from_pdir)
16052 (has_libpthread): Use all_objfiles.
16053 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16054 * linespec.c (iterate_over_all_matching_symtabs)
16055 (search_minsyms_for_name): Use all_objfiles.
16056 * maint.c (maintenance_info_sections): Use all_objfiles.
16057 * main.c (captured_main_1): Use all_objfiles.
16058 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16059 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16060 * guile/scm-pretty-print.c
16061 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16062 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16063 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16064 (maintenance_print_msymbols): Use all_objfiles.
16065 * source.c (select_source_symtab): Use all_objfiles.
16066 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16067 * symfile.c (remove_symbol_file_command)
16068 (expand_symtabs_matching, map_symbol_filenames): Use
16069 all_objfiles.
16070 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16071 all_objfiles.
16072 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16073 * objc-lang.c (find_methods): Use all_objfiles.
16074 * objfiles.c (have_partial_symbols, have_full_symbols)
16075 (have_minimal_symbols, qsort_cmp)
16076 (default_iterate_over_objfiles_in_search_order): Use
16077 all_objfiles.
16078 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16079 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16080 (maintenance_check_psymtabs): Use all_objfiles.
16081 (ALL_PSYMTABS): Remove.
16082 * compile/compile-object-run.c (do_module_cleanup): Use
16083 all_objfiles.
16084 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16085 * cp-support.c (add_symbol_overload_list_qualified): Use
16086 all_objfiles.
16087 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16088 Use all_objfiles.
16089 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16090 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16091 all_objfiles.
16092 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16093 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16094 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16095 Uses all_objfiles.
16096 * solib.c (solib_read_symbols): Use all_objfiles
16097
99d89cde
TT
160982019-01-09 Tom Tromey <tom@tromey.com>
16099
16100 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16101 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16102 all_objfiles.
16103 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16104 * symmisc.c (print_symbol_bcache_statistics)
16105 (print_objfile_statistics, maintenance_print_objfiles)
16106 (maintenance_info_symtabs, maintenance_check_symtabs)
16107 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16108 all_objfiles.
16109 * source.c (forget_cached_source_info): Use all_objfiles.
16110 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16111 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16112 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16113 * objfiles.c (update_section_map): Use all_objfiles.
16114 (shared_objfile_contains_address_p): Likewise.
16115 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16116 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16117
21708325
TT
161182019-01-09 Tom Tromey <tom@tromey.com>
16119
16120 * common/next-iterator.h: New file.
16121 * objfiles.h (class all_objfiles): New.
16122 (struct objfile_iterator): New.
16123
669e09f6
PW
161242019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16125
16126 * NEWS: Move the description of the changed "frame", "select-frame",
16127 and "info frame" commands to the Changed commands section.
16128
041be526
SM
161292019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16130
16131 * gdbtypes.c (check_stub_method_group): Remove handling of old
16132 mangling schemes.
16133 * linespec.c (find_methods): Likewise.
16134 * stabsread.c (read_member_functions): Likewise.
16135 * valops.c (search_struct_method): Likewise.
16136 (value_struct_elt_for_reference): Likewise.
16137 * NEWS: Mention this change.
16138
0e2a2133
AB
161392019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16140
16141 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16142 print_source_lines.
16143 * source.c (print_source_lines_base): Update line number check.
16144 (print_source_lines): New function.
16145 (source_lines_range::source_lines_range): New function.
16146 * source.h (class source_lines_range): New class.
16147 (print_source_lines): New declaration.
16148
1055a3b4
PW
161492019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16150
16151 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16152
cfeadda5
TT
161532019-01-08 Tom Tromey <tom@tromey.com>
16154 Simon Marchi <simon.marchi@ericsson.com>
16155
16156 PR gdb/24060
16157 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16158 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16159 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16160 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16161 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16162 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16163
583068ca
AB
161642019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16165
16166 * source.c (select_source_symtab): Move header comment to
16167 declaration in source.h.
16168 (forget_cached_source_info_for_objfile): Likewise.
16169 (forget_cached_source_info): Likewise.
16170 (identify_source_line): Likewise.
16171 * source.h (identify_source_line): Move declaration from symtab.h
16172 and add comment from source.c
16173 (print_source_lines): Likewise.
16174 (forget_cached_source_info_for_objfile): Likewise.
16175 (forget_cached_source_info): Likewise.
16176 (select_source_symtab): Likewise.
16177 (enum print_source_lines_flag): Move definition from symtab.h.
16178 * symtab.h (identify_source_line): Move declaration to source.h.
16179 (print_source_lines): Likewise.
16180 (forget_cached_source_info_for_objfile): Likewise.
16181 (forget_cached_source_info): Likewise.
16182 (select_source_symtab): Likewise.
16183 (enum print_source_lines_flag): Move definition to source.h.
16184 * tui/tui-hooks.c: Add 'source.h' include.
16185
ec98a4ad
AB
161862019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16187
16188 * source.c (print_source_lines_base): Handle requests to print
16189 reverse line number sequences, and guard against empty lines
16190 string.
16191
62ea19c1
AB
161922019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16193
16194 * source.c (print_source_lines_base): Fix skip of '\r' if next
16195 character is '\n'.
16196
9d30e1fd
TT
161972019-01-06 Tom Tromey <tom@tromey.com>
16198
16199 * c-exp.y (struct c_parse_state) <macro_original_text,
16200 expansion_obstack>: New member.
16201 (macro_original_text, expansion_obstack): Remove globals.
16202 (scan_macro_expansion, scanning_macro_expansion)
16203 (finished_macro_expansion): Update.
16204 (scan_macro_cleanup): Remove.
16205 (yylex, c_parse): Update.
16206
c65bac38
TT
162072019-01-06 Tom Tromey <tom@tromey.com>
16208
16209 * c-exp.y (struct c_parse_state) <strings>: New member.
16210 (operator_stoken): Update.
16211
02e12e38
TT
162122019-01-06 Tom Tromey <tom@tromey.com>
16213
16214 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16215 (union type_stack_elt) <typelist_val>: Now a pointer to
16216 std::vector.
16217 (type_stack_cleanup): Don't declare.
16218 (push_typelist): Update.
16219 * parse.c (pop_typelist): Return a std::vector.
16220 (push_typelist): Take a std::vector.
16221 (follow_types): Update. Do not free args.
16222 (type_stack_cleanup): Remove.
16223 * c-exp.y (struct c_parse_state): New.
16224 (cpstate): New global.
16225 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16226 (nonempty_typelist): Update.
16227 (func_mod): Create a new vector.
16228 (c_parse): Create a c_parse_state.
16229 (check_parameter_typelist): Do not delete params.
16230 (function_method): Update. Do not delete type_list.
16231
f097f5ad
TT
162322019-01-06 Tom Tromey <tom@tromey.com>
16233
16234 PR gdb/28155:
16235 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16236 check_typedef.
16237 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16238 (print_return_value): Likewise.
16239
d2adf9f1
TT
162402019-01-05 Tom Tromey <tom@tromey.com>
16241
16242 * contrib/cleanup_check.py: Remove.
16243 * contrib/gcc-with-excheck: Remove.
16244 * contrib/exsummary.py: Remove.
16245 * contrib/excheck.py: Remove.
16246
2eab46b1
JB
162472019-01-05 Joel Brobecker <brobecker@adacore.com>
16248
16249 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16250 NULL. Initialize tpprev to NULL instead of assigning it
16251 to NULL on the next statement.
16252 * windows-nat.c (windows_delete_thread): Remove check for
16253 main_thread_id before printing thread exit notifications.
16254 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16255 Remove thread ID check against main_thread_id.
16256 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16257 windows_delete_thread.
16258 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16259
48c5e7e2
TT
162602019-01-04 Tom Tromey <tom@tromey.com>
16261
16262 * compile/compile.c (_initialize_compile): Use upper case for
16263 metasyntactic variables.
16264 * symmisc.c (_initialize_symmisc): Use upper case for
16265 metasyntactic variables.
16266 * psymtab.c (_initialize_psymtab): Use upper case for
16267 metasyntactic variables.
16268 * demangle.c (demangle_command): Use upper case for metasyntactic
16269 variables.
16270 (_initialize_demangler): Likewise.
16271 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16272 variables.
16273
986041cd
TT
162742019-01-03 Tom Tromey <tom@tromey.com>
16275
16276 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16277
7c711119
TT
162782019-01-03 Tom Tromey <tom@tromey.com>
16279
16280 * python/py-symtab.c (salpy_str): Update.
16281 (struct salpy_sal_object) <symtab>: Now a PyObject.
16282 (salpy_dealloc): Update.
16283 (del_objfile_sal): Use gdbpy_ref.
16284
1b20edf0
TT
162852019-01-03 Tom Tromey <tom@tromey.com>
16286
16287 * python/py-type.c (convert_field): Use new_reference. Return
16288 gdbpy_ref.
16289 (make_fielditem): Return gdbpy_ref.
16290 (typy_fields): Update.
16291 (typy_getitem): Update.
16292 (field_name): Return gdbpy_ref. Use new_reference.
16293 (typy_iterator_iternext): Update.
16294
ea41325b
TT
162952019-01-03 Tom Tromey <tom@tromey.com>
16296
16297 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16298
2a3c71d6
TT
162992019-01-03 Tom Tromey <tom@tromey.com>
16300
16301 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16302 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16303 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16304 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16305 (pspy_set_type_printers): Likewise.
16306 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16307 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16308 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16309 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16310 (objfpy_set_type_printers): Likewise.
16311
5c329e6a
TT
163122019-01-03 Tom Tromey <tom@tromey.com>
16313
16314 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16315 (gdbpy_print_stack): Use gdbpy_err_fetch.
16316 * python/python-internal.h (class gdbpy_err_fetch): New class.
16317 (class gdbpy_enter) <m_error_type, m_error_value,
16318 m_error_traceback>: Remove.
16319 <m_error>: New member.
16320 (gdbpy_exception_to_string): Don't declare.
16321 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16322 * python/py-value.c (convert_value_from_python): Use
16323 gdbpy_err_fetch.
16324 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16325 gdbpy_exception_to_string.
16326 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16327 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16328 gdbpy_err_fetch.
16329
169bb27b
AB
163302019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16331
16332 * linux-nat.c (delete_lwp_cleanup): Delete.
16333 (struct lwp_deleter): New struct.
16334 (lwp_info_up): New typedef.
16335 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16336 lwp_info_up.
16337
a07c8880
AB
163382019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16339
16340 * linux-fork.c (class scoped_switch_fork_info): New class.
16341 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16342
26089c49
AB
163432019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16344
16345 * valops.c (find_overload_match): Remove use of null_cleanup, and
16346 calls to do_cleanups.
16347
06d3e5b0
AB
163482019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16349
16350 * compile/compile-cplus-types.c
16351 (compile_cplus_instance::decl_name): Handle changes to
16352 cp_func_name.
16353 * cp-support.c (cp_func_name): Update header comment, update
16354 return type.
16355 * cp-support.h (cp_func_name): Update return type in declaration.
16356 * valops.c (find_overload_match): Move temp_func local to top
16357 level of function and change its type. Use temp_func to hold and
16358 delete temporary string obtained from cp_func_name.
16359
66644cd3
AB
163602019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16361
16362 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16363 gdb::char_vector, remove cleanup, and update uses of `msg`.
16364
592d8c0a
JW
163652019-01-03 Jim Wilson <jimw@sifive.com>
16366
16367 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16368
c55d06ec
TT
163692019-01-02 Tom Tromey <tom@tromey.com>
16370
16371 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16372 (tdesc_parse_xml): Remove cleanups.
16373 * target-descriptions.h (make_cleanup_free_target_description):
16374 Don't declare.
16375 (target_desc_deleter): New struct.
16376 (target_desc_up): New typedef.
16377 * target-descriptions.c (target_desc_deleter::operator()): Rename
16378 from free_target_description.
16379 (make_cleanup_free_target_description): Remove.
16380
3a6ae42d
TT
163812019-01-02 Tom Tromey <tom@tromey.com>
16382
16383 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16384 constructor, destructor.
16385 (linespec_parser): Remove typedef.
16386 (~linespec_parser): Rename from linespec_parser_delete.
16387 (linespec_lex_to_end, linespec_complete_label)
16388 (linespec_complete): Update.
16389 (decode_line_full): Remove cleanups.
16390 (decode_line_1): Update.
16391
61fd3e73
TT
163922019-01-02 Tom Tromey <tom@tromey.com>
16393
16394 * python/python-internal.h (inferior_to_inferior_object): Change
16395 return type.
16396 * python/py-exitedevent.c (create_exited_event_object): Update.
16397 * python/py-inferior.c (inferior_to_inferior_object): Return
16398 gdbpy_ref.
16399 (python_new_inferior, python_inferior_deleted)
16400 (thread_to_thread_object, delete_thread_object)
16401 (build_inferior_list, gdbpy_selected_inferior): Update.
16402 * python/py-infthread.c (create_thread_object): Update. Also fail
16403 if inferior_to_inferior_object fails.
16404
d20172fc
SM
164052019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16406
16407 * inferior.h (class inferior) <displaced_step_state>: New field.
16408 * infrun.h (struct displaced_step_state): Move here from
16409 infrun.c. Initialize fields, add constructor.
16410 <inf>: Remove field.
16411 <reset>: New method.
16412 * infrun.c (struct displaced_step_inferior_state): Move to
16413 infrun.h.
16414 (displaced_step_inferior_states): Remove.
16415 (get_displaced_stepping_state): Adust.
16416 (displaced_step_in_progress_any_inferior): Adjust.
16417 (displaced_step_in_progress_thread): Adjust.
16418 (displaced_step_in_progress): Adjust.
16419 (add_displaced_stepping_state): Remove.
16420 (get_displaced_step_closure_by_addr): Adjust.
16421 (remove_displaced_stepping_state): Remove.
16422 (infrun_inferior_exit): Call displaced_step_state.reset.
16423 (use_displaced_stepping): Don't check for NULL.
16424 (displaced_step_prepare_throw): Call
16425 get_displaced_stepping_state.
16426 (displaced_step_fixup): Don't check for NULL.
16427 (prepare_for_detach): Don't check for NULL.
16428
e3319240
PW
164292019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16430
16431 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16432 in case of call that did not complete.
16433
5d36dfb9
AU
164342019-01-02 Andrey Utkin <autkin@undo.io>
16435
16436 * symfile.c (find_separate_debug_file): Fix search of debug files for
16437 remote debuggee.
16438
8833fbf0
TT
164392019-01-02 Tom Tromey <tom@tromey.com>
16440
16441 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16442 indentation.
16443 * python/py-frame.c (frapy_older): Remove cast.
16444 (frapy_newer): Likewise.
16445 * python/py-breakpoint.c (local_setattro): Remove cast.
16446 * python/py-arch.c (archpy_name): Remove local variable.
16447 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16448
4ada3dfd
JB
164492019-01-02 Joel Brobecker <brobecker@adacore.com>
16450
16451 * unittests/basic_string_view/element_access/char/empty.cc:
16452 Fix year range in copyright header.
16453
113b7b81
AB
164542019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16455
16456 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16457 Delete.
16458 <operator==>: Update with for removed field.
16459 <hash>: Likewise.
16460 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16461 <isa_features>: ...this.
16462 <abi_features>: New field.
16463 (riscv_isa_flen): Update comment.
16464 (riscv_abi_xlen): New declaration.
16465 (riscv_abi_flen): New declaration.
16466 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16467 isa_features.
16468 (riscv_abi_xlen): New function.
16469 (riscv_isa_flen): Update to get answer from isa_features.
16470 (riscv_abi_flen): New function.
16471 (riscv_has_fp_abi): Update to get answer from abi_features.
16472 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16473 xlen and flen.
16474 (riscv_call_info) <xlen, flen>: Update comment.
16475 (riscv_call_arg_struct): Remove invalid assertions
16476 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16477 is removed.
16478 (riscv_gdbarch_init): Gather isa features and abi features
16479 separately, ensure both match on the gdbarch when reusing an old
16480 gdbarch. Relax an error check to allow 32-bit abi float to run on
16481 a target with 64-bit float hardware.
16482
b18ca514
PW
164832019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16484
16485 * source.c (search_command_helper): Stop reverse search
16486 when line 1 has been searched.
16487
ec70d8db
PW
164882019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16489
16490 * record-full.c (record_full_base_target::close): Rewrite
16491 record_full_core_buf_list free logic.
16492
5b38f9c1
PW
164932019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16494
16495 * break-catch-syscall.c (print_one_catch_syscall): xfree
16496 the last text.
16497
66d91b39
JB
164982019-01-01 Joel Brobecker <brobecker@adacore.com>
16499
16500 * top.c (print_gdb_version): Update Copyright year in version
16501 message.
16502
42a4f53d
JB
165032019-01-01 Joel Brobecker <brobecker@adacore.com>
16504
16505 Update copyright year range in all GDB files.
16506
7e955d83 165072019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16508
5bbd631d 16509 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16510
5bbd631d 16511For older changes see ChangeLog-2018.
c906108c
SS
16512\f
16513Local Variables:
16514mode: change-log
16515left-margin: 8
16516fill-column: 74
16517version-control: never
57da7796 16518coding: utf-8
c906108c 16519End:
5bbd631d 16520
This page took 3.382887 seconds and 4 git commands to generate.