Copyright year range updates after running gdb/copyright.py
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
11bc5fe4
JB
12020-01-01 Joel Brobecker <brobecker@adacore.com>
2
3 Update copyright year range in all the GDB files automatically
4 handled by our copyright.py script.
5
8b371634
JB
62020-01-01 Joel Brobecker <brobecker@adacore.com>
7
8 * copyright.py: Convert to Python 3.
9
a292f79f
JB
102020-01-01 Joel Brobecker <brobecker@adacore.com>
11
12 * copyright.py: Adapt after move of gnulib directory from gdb
13 directory to toplevel directory.
14
1458b0f3
JB
152020-01-01 Joel Brobecker <brobecker@adacore.com>
16
17 * copyright.py (main): Exit if run from the wrong directory.
18
e9de78be
JB
192020-01-01 Joel Brobecker <brobecker@adacore.com>
20
21 * top.c (print_gdb_version): Change copyright year to 2020.
22
c0716f3e
CB
232019-12-26 Christian Biesinger <cbiesinger@google.com>
24
25 * configure: Regenerate.
26 * configure.ac: Quote variable arguments of test.
27 * gdbsupport/common.m4: Likewise.
28
527178f7
EZ
292019-12-21 Eli Zaretskii <eliz@gnu.org>
30
31 * top.c (print_gdb_configuration): Print "--with-xxhash" or
32 "--without-xxhash" according to HAVE_LIBXXHASH.
33
4ae7258e
TT
342019-12-18 Tom Tromey <tromey@adacore.com>
35
36 PR build/25268:
37 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
38 type on macOS. Add comment.
39
1c66314d
TT
402019-12-18 Tom Tromey <tromey@adacore.com>
41
42 PR build/25250:
43 * ui-out.c (ui_out::vmessage): Update.
44 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
45 Rename.
46 (string_field): Update.
47 (signed_field): Update.
48
be19b699
SM
492019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
50
51 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
52
3f434671
JB
532019-12-11 Joel Brobecker <brobecker@adacore.com>
54
55 * version.in: Set GDB version number to 9.0.90.DATE-git.
56
07d5aa38
JB
572019-12-11 Joel Brobecker <brobecker@adacore.com>
58
59 GDB 9.0.90 released.
60
b06b5486
JB
612019-12-11 Joel Brobecker <brobecker@adacore.com>
62
63 * version.in: Set GDB version number to 9.0.90.
64
41ec388b
JB
652019-12-11 Joel Brobecker <brobecker@adacore.com>
66
67 * NEWS: Change "Changes since GDB 8.3" into "Changes in GDB 9".
68
c87abc50
JB
692019-12-11 Joel Brobecker <brobecker@adacore.com>
70
71 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
72 * version.in: Bump version to 9.0.90.DATE-git.
73
2e744276
TT
742019-12-11 Tom Tromey <tromey@adacore.com>
75
76 PR build/25268:
77 * gdbsupport/thread-pool.c (set_thread_name): New function.
78 (thread_pool::set_thread_count): Don't call pthread_setname_np.
79 (thread_pool::thread_function): Call set_thread_name.
80
aac4760f
TT
812019-12-11 Tom Tromey <tromey@adacore.com>
82
83 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
84 bfd_get_signed_8.
85
d8edc8b7
PW
862019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
87
88 * NEWS: Document -raw-values option and the related setting commands.
89 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
90 only set it on when /r is given.
91 * valprint.c (value_print_option_defs): New element raw-values.
92 * Makefile.in: Add the new file.
93
cb511130
CB
942019-12-10 Christian Biesinger <cbiesinger@google.com>
95
96 * gdbsupport/safe-strerror.c: Supress the unused function warning
97 for select_strerror_r.
98
ab7d13f0
CB
992019-12-10 Christian Biesinger <cbiesinger@google.com>
100
101 * config.in: Regenerate.
102 * configure: Regenerate.
103 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
104 safe_strerror instead of strerror.
105 * gdbsupport/common.m4: Don't check for strerror.
106 * gdbsupport/safe-strerror.c: Support both the glibc version
107 of strerror_r and the XSI version.
108
6c71eb7d
TT
1092019-12-10 Tom Tromey <tromey@adacore.com>
110
111 * ada-typeprint.c (print_choices): Use a single "?".
112 (print_variant_part): Print "?" if the discriminant name
113 is not known.
114
bac7c5cf
GB
1152019-12-10 George Barrett <bob@bob131.so>
116
117 Fix scripted probe breakpoints.
118 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
119 declaration forward.
120 (breakpoint_ops_for_event_location_type)
121 (breakpoint_ops_for_event_location): Add function definitions.
122 (break_command_1, trace_command): Use
123 breakpoint_ops_for_event_location.
124 * breakpoint.h (breakpoint_ops_for_event_location): Add function
125 declarations.
126 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
127 breakpoint_ops_for_event_location.
128 * python/py-breakpoint.c (bppy_init): Use
129 breakpoint_ops_for_event_location.
130
330f1d38
TBA
1312019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
132
133 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
134 when ranking an lvalue argument for an rvalue parameter.
135
b1f0c0b9
WA
1362019-12-08 Wataru Ashihara <wataash@wataash.com>
137
138 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
139 template argument for scoped_restore_tmpl from bool to int.
140
aa2d5a42
KS
1412019-12-07 Keith Seitz <keiths@redhat.com>
142
143 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
144 (build_id_to_debug_bfd): Make static, rewriting to use
145 build_id_to_bfd_suffix.
146 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
147 adding `suffix' parameter. Append SUFFIX to file names
148 when searching for matching files.
149 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
150 (build_id_to_exec_bfd): Likewise.
151 * build-id.h (build_id_to_debug_bfd): Clarify that function
152 searches for BFD of debug info file.
153 (build_id_to_exec_bfd): Declare.
154 * corelow.c: Include build-id.h.
155 (locate_exec_from_corefile_build_id): New function.
156 (core_target_open): If no executable BFD is found,
157 search for a core file BFD using build-id.
158
dfb65191
CB
1592019-12-06 Christian Biesinger <cbiesinger@google.com>
160
161 * bcache.c: Put in namespace gdb.
162 * bcache.h: Likewise.
163 * gdbtypes.c (check_types_worklist): Update.
164 (types_deeply_equal): Update.
165 * macrotab.c (struct macro_table) <bcache>: Update.
166 (new_macro_table): Update.
167 * macrotab.h (struct bcache): Put this forward declaration
168 inside namespace gdb.
169 (new_macro_table): Update.
170 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
171 Update.
172 <macro_cache>: Update.
173 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
174
93e55f0a
TV
1752019-12-06 Tom de Vries <tdevries@suse.de>
176
177 PR symtab/24971
178 * block.c (best_symbol, better_symbol): New function.
179 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
180 decl.
181
06acc08f
TBA
1822019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
183
184 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
185 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
186 for ranking see-through reference cases.
187
e0fad1ea
PW
1882019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
189 * stack.c (faas_command): Check a command is provided.
190 * thread.c (taas_command, tfaas_command): Likewise.
191
908641f5
PW
1922019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
193 * inferior.c (prune_inferiors): Only call delete_inferior,
194 Do not modify the inferior list.
195
b858499d
SM
1962019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
197
198 * c-exp.y: Update calls to lookup_typename,
199 lookup_signed_typename and lookup_unsigned_typename.
200 * c-lang.c (evaluate_subexp_c): Likewise.
201 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
202 Likewise.
203 * eval.c (binop_promote): Likewise.
204 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
205 (lookup_unsigned_typename): Likewise.
206 (lookup_signed_typename): Likewise.
207 * gdbtypes.h (lookup_unsigned_typename): Likewise.
208 (lookup_signed_typename): Likewise.
209 (lookup_typename): Likewise.
210 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
211 lookup_typename, lookup_signed_typename,
212 lookup_unsigned_typename.
213 * m2-exp.y: Likewise.
214 * printcmd.c (printf_wide_c_string): Likewise.
215 (ui_printf): Likewise.
216 * python/py-type.c (typy_lookup_typename): Likewise.
217 * python/py-xmethods.c (python_xmethod_worker::invoke):
218 Likewise.
219 * rust-exp.y: Likewise.
220
3a8fa228
CB
2212019-12-04 Christian Biesinger <cbiesinger@google.com>
222
223 * configure.nat (obsd64): Add missing files x86-nat.o and
224 nat/x86-dregs.o.
225
2dbc041e
TT
2262019-12-04 Tom Tromey <tom@tromey.com>
227
228 * valprint.c (val_print_string): Use metadata_style.
229 * go-valprint.c (print_go_string): Use metadata style.
230 * p-valprint.c (pascal_object_print_static_field): Use metadata
231 style.
232 * cp-valprint.c (cp_print_static_field): Use metadata style.
233
36c8fb93
AB
2342019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
235 Chris January <chris.january@arm.com>
236
237 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
238 tokens.
239 (typebase): New patterns for complex, single/double precision, and
240 single/double complex.
241 (f77_keywords): Change token for complex keyword, and add single,
242 double, and precision keywords.
243
c6170c2c
SM
2442019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
245
246 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
247 "info io_registers".
248
894ecaf4
SM
2492019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * regcache.c (cooked_read_test): Initialize thread list of
252 mock_inferior.
253
be155ebb
SM
2542019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
255
256 * aarch64-linux-tdep.c: Remove includes.
257
c577cdd7
SM
2582019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
259
260 * aarch64-tdep.c: Remove includes.
261
610cfd61
SM
2622019-12-04 Simon Marchi <simon.marchi@efficios.com>
263
264 * filtered-iterator.h (filtered_iterator) <operator==,
265 operator!=>: Compare wrapped iterators, not wrapped pointers.
266 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
267 unittests/filtered_iterator-selftests.c.
268 * unittests/filtered_iterator-selftests.c: New file.
269
a05cf17a
TT
2702019-12-04 Tom Tromey <tromey@adacore.com>
271
272 * gdbtypes.c (create_range_type): Inherit endianity
273 from base type.
274
d5a22e77
TT
2752019-12-04 Tom Tromey <tromey@adacore.com>
276
277 * ada-lang.c (decode_constrained_packed_array)
278 (ada_value_assign, value_assign_to_component): Update.
279 * dwarf2loc.c (rw_pieced_value, access_memory)
280 (dwarf2_compile_expr_to_ax): Update.
281 * dwarf2read.c (dwarf2_add_field): Update.
282 * eval.c (evaluate_subexp_standard): Update.
283 * gdbarch.c, gdbarch.h: Rebuild.
284 * gdbarch.sh (bits_big_endian): Remove.
285 * gdbtypes.h (union field_location): Update comment.
286 * target-descriptions.c (make_gdb_type): Update.
287 * valarith.c (value_bit_index): Update.
288 * value.c (struct value) <bitpos>: Update comment.
289 (unpack_bits_as_long, modify_field): Update.
290 * value.h (value_bitpos): Update comment.
291
7ab4a236
TT
2922019-12-04 Tom Tromey <tromey@adacore.com>
293
294 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
295 endian-ness.
296
103a685e
TT
2972019-12-04 Tom Tromey <tromey@adacore.com>
298
299 * dwarf2read.c (dwarf2_init_float_type)
300 (dwarf2_init_complex_target_type): Add byte_order parameter.
301 (read_base_type): Compute byte order earlier.
302 * gdbtypes.c (init_float_type): Add byte_order parameter.
303 * gdbtypes.h (init_float_type): Add byte_order parameter.
304
7a9e9f9f
TT
3052019-12-04 Tom Tromey <tromey@adacore.com>
306
307 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
308
feee869b
TT
3092019-12-04 Tom Tromey <tromey@adacore.com>
310
311 * dwarf2read.c (process_structure_scope): Initialize
312 "discr_offset".
313
c2512106
AB
3142019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
315
316 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
317 add it into the search spec.
318 (parse_max_results_option): New function.
319 (mi_info_functions_or_variables): Parse -max-results flag and pass
320 it to mi_symbol_info.
321 (mi_cmd_symbol_info_modules): Likewise.
322 (mi_cmd_symbol_info_types): Likewise.
323 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
324 return type to bool, change result container into a set, and don't
325 add new results if we have enough already.
326 (global_symbol_searcher::add_matching_msymbols): Change return
327 type to bool, and don't add new results if we have enough already.
328 (sort_search_symbols_remove_dups): Delete.
329 (global_symbol_searcher::search): Early exit from search loop when
330 we have enough results. Use a std::set to collect the results
331 from calling add_matching_symbols.
332 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
333 member function.
334 (global_symbol_searcher) <m_max_search_results>: New member
335 variable.
336 (global_symbol_searcher) <add_matching_symbols>: Update header
337 comment and change return type to bool.
338 (global_symbol_searcher) <add_matching_msymbols>: Update header
339 comment and change return type to bool.
340
f97a63c5
AB
3412019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
342
343 * symtab.c (symbol_search::compare_search_syms): Update header
344 comment.
345 (global_symbol_searcher::is_suitable_msymbol): New function.
346 (global_symbol_searcher::expand_symtabs): New function.
347 (global_symbol_searcher::add_matching_symbols): New function.
348 (global_symbol_searcher::add_matching_msymbols): New function.
349 (global_symbol_searcher::search): Move most of the content
350 into the new functions above, and call them as needed.
351 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
352 function.
353 (global_symbol_searcher) <add_matching_symbols>: New member
354 function.
355 (global_symbol_searcher) <add_matching_msymbols>: New member
356 function.
357 (global_symbol_searcher) <is_suitable_msymbol>: New member
358 function.
359
293b38d6
AB
3602019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
361
362 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
363 -symbol-info-module-variables entries.
364 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
365 (mi_cmd_symbol_info_module_variables): Declare.
366 * mi/mi-symbol-cmds.c
367 (module_symbol_search_iterator): New typedef.
368 (output_module_symbols_in_single_module_and_file): New function.
369 (output_module_symbols_in_single_module): New function.
370 (mi_info_module_functions_or_variables): New function.
371 (mi_cmd_symbol_info_module_functions): New function.
372 (mi_cmd_symbol_info_module_variables): New function.
373 * NEWS: Mention new MI command.
374
4cbd39b2
CB
3752019-12-03 Christian Biesinger <cbiesinger@google.com>
376
377 * bcache.c (hash): Remove.
378 (hash_continue): Remove.
379 * bcache.h (hash): Remove.
380 (hash_continue): Remove.
381 (struct bcache) <ctor>: Update.
382 * psymtab.c (psymbol_hash): Update.
383 * stabsread.c (hashname): Update.
384 * utils.h (fast_hash): Add an argument for a start value,
385 defaulting to zero.
386
82f910ea
PW
3872019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
388 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
389 (destroy_block_symbol_cache): New function.
390 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
391 (resize_symbol_cache): Likewise.
392
de2396d0
TT
3932019-12-02 Tom Tromey <tom@tromey.com>
394
395 * unittests/tui-selftests.c (run_tests): Make conditional.
396 (_initialize_tui_selftest): Make conditional.
397
638d85bc
CB
3982019-12-02 Christian Biesinger <cbiesinger@google.com>
399
400 * aix-thread.c (debug_aix_thread): Change type to bool.
401
7532a164
LM
4022019-12-02 Luis Machado <luis.machado@linaro.org>
403
404 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
405
216a7e6b
AB
4062019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
407
408 * dwarf2read.c (read_tag_string_type): Read the fields required to
409 make a dynamic string, and possibly create a dynamic range for the
410 string.
411 (attr_to_dynamic_prop): Setup is_reference based on the type of
412 attribute being processed.
413 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
414 (resolve_dynamic_array): Rename to...
415 (resolve_dynamic_array_or_string): ...this, update header comment,
416 and accept TYPE_CODE_STRING.
417 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
418
11a8b164
AB
4192019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
420
421 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
422 of its implementation from...
423 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
424 the new function.
425
5bbd8269
AB
4262019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
427
428 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
429 create a range with stride where appropriate.
430 * f-valprint.c: Include 'gdbarch.h'.
431 (f77_print_array_1): Take the stride into account when walking the
432 array. Also convert the stride into addressable units.
433 * gdbtypes.c (create_range_type): Initialise the stride to
434 constant zero.
435 (create_range_type_with_stride): New function, initialise the
436 range as normal, and then setup the stride.
437 (has_static_range): Include the stride here. Also change the
438 return type to bool.
439 (create_array_type_with_stride): Consider the range stride if the
440 array isn't given its own stride.
441 (resolve_dynamic_range): Resolve the stride if needed.
442 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
443 (struct range_bounds) <flag_is_byte_stride>: New member variable.
444 (TYPE_BIT_STRIDE): Define.
445 (TYPE_ARRAY_BIT_STRIDE): Define.
446 (create_range_type_with_stride): Declare.
447 * valarith.c (value_subscripted_rvalue): Take range stride into
448 account when walking the array.
449
82e3b564
TT
4502019-12-01 Tom Tromey <tom@tromey.com>
451
452 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
453 specially.
454
517d261d
TT
4552019-12-01 Tom Tromey <tom@tromey.com>
456
457 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
458 \0.
459 * unittests/tui-selftests.c: New file.
460 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
461
484c9b64
TT
4622019-12-01 Tom Tromey <tom@tromey.com>
463
464 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
465
a2a7af0c
TT
4662019-12-01 Tom Tromey <tom@tromey.com>
467
468 * NEWS: Document new settings.
469 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
470 * tui/tui-win.c (_initialize_tui_win): Add border style
471 observers.
472 * tui/tui-io.h (tui_apply_style): Declare.
473 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
474 longer static.
475 (apply_ansi_escape, tui_set_reverse_mode): Update.
476 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
477 Add "skip_intensity" parameter.
478 <changed>: New member.
479 <do_set_value>: Declare.
480 (tui_border_style, tui_active_border_style): Declare.
481 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
482 globals.
483 (cli_style_option): Initialize "changed".
484 (cli_style_option::do_set_value): New function.
485 (cli_style_option::add_setshow_commands): Add "skip_intensity"
486 parameter. Update.
487 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
488 (_initialize_cli_style): Update. Create TUI border style
489 commands.
490
d1da6b01
TT
4912019-12-01 Tom Tromey <tom@tromey.com>
492
493 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
494 parameter.
495 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
496 parameter.
497 * tui/tui-win.h (compact_source): Declare.
498 * tui/tui-win.c (compact_source): New global.
499 (tui_set_compact_source, tui_show_compact_source): New functions.
500 (_initialize_tui_win): Add "compact-source" setting.
501 * tui/tui-source.c (tui_source_window::set_contents): Handle
502 compact_source setting.
503 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
504 * NEWS: Document new setting.
505
489dbda6
TT
5062019-11-30 Tom Tromey <tom@tromey.com>
507
508 * dwarf2read.c (dwarf2_add_field): Include field offset when
509 computing variant part length.
510
bf498525
PW
5112019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
512 * NEWS: Mention define-prefix. Tell that command names can now
513 contain a . character.
514
be09caf1
PW
5152019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
516
517 * command.h (valid_cmd_char_p): Declare.
518 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
519 the check of valid command char.
520 (find_command_name_length, valid_user_defined_cmd_name_p): Use
521 valid_cmd_char_p.
522 * cli/cli-script.c (validate_comname): Likewise.
523 * completer.c (gdb_completer_command_word_break_characters):
524 Do not remove . from the word break char, update comments.
525 (complete_line_internal_1): Use valid_cmd_char_p.
526 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
527 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
528
c6ac7fc9
PW
5292019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
530
531 * cli/cli-script.c (do_define_command): Ensure a redefined
532 prefix command is kept as a prefix command.
533 (define_prefix_command): New function.
534 (show_user_1): Report user defined prefixes.
535 (_initialize_cli_script): Create the new 'define-prefix' command.
536 Add completers for 'define' and 'document'.
537 * top.c (execute_command): If command is a user-defined prefix only
538 command, report the list of commands for this prefix command.
539
a992a3b0
TBA
5402019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
541
542 * valops.c (find_oload_champ): Improve debug output.
543
e9194a1a
TBA
5442019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
545
546 * valops.c (find_oload_champ): Print part of debug messages
547 before the badness vector is std::move'd.
548
53a008a6
TT
5492019-11-28 Tom Tromey <tom@tromey.com>
550
551 * value.c (creal_internal_fn): Fix comment.
552
bab05c83
TT
5532019-11-28 Tom Tromey <tom@tromey.com>
554
555 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
556 flag_bound_evaluated>: Now unsigned.
557
2522f049
TT
5582019-11-28 Tom Tromey <tom@tromey.com>
559
560 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
561 declare.
562
38b49e22
MS
5632019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
564
565 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
566 debug output.
567 * jit.c (jit_unregister_code): Add debug print to match
568 `jit_register_code`.
569
35125921
CB
5702019-11-27 Christian Biesinger <cbiesinger@google.com>
571
572 * NEWS: Mention the new multithreaded symbol loading.
573
62e77f56
CB
5742019-11-27 Christian Biesinger <cbiesinger@google.com>
575
576 * maint.c (n_worker_threads): Default to 0.
577 (worker_threads_disabled): New function.
578 * maint.h (worker_threads_disabled): New function.
579 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
580 here if worker_threads_disabled () is true.
581 (minimal_symbol_reader::install): Skip all threading if
582 worker_threads_disabled () is true.
583
f29d7f6b
CB
5842019-11-27 Christian Biesinger <cbiesinger@google.com>
585
586 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
587 hash code if possible.
588 (add_minsym_to_demangled_hash_table): Likewise.
589 (minimal_symbol_reader::install): Compute the hash codes for msymbol
590 on the background thread.
591 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
592 Add these fields.
593
e76b2246
CB
5942019-11-27 Christian Biesinger <cbiesinger@google.com>
595
596 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
597 of the mangled name on the background thread.
598 * symtab.c (symbol_set_names): Allow passing in the hash of the
599 linkage_name.
600 * symtab.h (symbol_set_names): Likewise.
601
8d9a2568
KB
6022019-11-27 Kevin Buettner <kevinb@redhat.com>
603
604 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
605 physnames are computed for inherited DIEs.
606
fad03f6e
TT
6072019-11-27 Tom Tromey <tromey@adacore.com>
608
609 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
610 backslashes.
611 * cp-support.c: Remove unnecessary backslashes.
612
43678b0a
CB
6132019-11-27 Christian Biesinger <cbiesinger@google.com>
614
615 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
616 with sym->set_linkage_name.
617 * coffread.c (coff_read_enum_type): Likewise.
618 * mdebugread.c (parse_symbol): Likewise.
619 * stabsread.c (patch_block_stabs): Likewise.
620 (define_symbol): Likewise.
621 (read_enum_type): Likewise.
622 (common_block_end): Likewise.
623 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
624 function.
625 (SYMBOL_SET_LINKAGE_NAME): Remove.
626 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
627 with sym->set_linkage_name.
628
db5960b4
AB
6292019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
630
631 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
632 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
633 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
634 * NEWS: Mention new MI command.
635
7dc42066
AB
6362019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
637
638 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
639 '-symbol-info-types', and '-symbol-info-variables'.
640 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
641 (mi_cmd_symbol_info_types): Declare.
642 (mi_cmd_symbol_info_variables): Declare.
643 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
644 (output_debug_symbol): New function.
645 (output_nondebug_symbol): New function.
646 (mi_symbol_info): New function.
647 (mi_info_functions_or_variables): New function.
648 (mi_cmd_symbol_info_functions): New function.
649 (mi_cmd_symbol_info_types): New function.
650 (mi_cmd_symbol_info_variables): New function.
651 * NEWS: Mention new commands.
652
5f512a7d
AB
6532019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
654
655 * symtab.c (symbol_to_info_string): New function, most content
656 moved from print_symbol_info, but updated to return a std::string.
657 (print_symbol_info): Update to use symbol_to_info_string and print
658 returned string.
659 * symtab.h (symbol_to_info_string): Declare new function.
660
470c0b1c
AB
6612019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
662
663 * python/python.c (gdbpy_rbreak): Convert to using
664 global_symbol_searcher.
665 * symtab.c (file_matches): Convert return type to bool, change
666 file list to std::vector, update header comment.
667 (search_symbols): Rename to...
668 (global_symbol_searcher::search): ...this and update now its
669 a member function of global_symbol_searcher. Take account of the
670 changes to file_matches.
671 (symtab_symbol_info): Convert to using global_symbol_searcher.
672 (rbreak_command): Likewise.
673 (search_module_symbols): Likewise.
674 * symtab.h (enum symbol_search): Update comment.
675 (search_symbols): Remove declaration.
676 (class global_symbol_searcher): New class.
677
57357d9d
TT
6782019-11-26 Tom Tromey <tromey@adacore.com>
679
680 * cp-support.c (_initialize_cp_support): Conditionally initialize
681 gdb_demangle_attempt_core_dump.
682
3ea16160
TT
6832019-11-26 Tom Tromey <tom@tromey.com>
684
685 * python/py-function.c (fnpy_init): Update.
686 * value.h (add_internal_function): Adjust declaration.
687 * value.c (function_destroyer): Remove.
688 (do_add_internal_function): Don't set destroyer or copy name.
689 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
690 Set name_allocated.
691 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
692 (cmdpy_init): Set name_allocated.
693 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
694 member.
695 (~cmd_list_element): Free "name" if needed.
696
1a6d41c6
TT
6972019-11-26 Tom Tromey <tom@tromey.com>
698
699 * value.h (add_internal_function): Add new overload. Move
700 documentation from value.h.
701 * value.c (do_add_internal_function): New function.
702 (add_internal_function): Use it. Add new overload.
703 (function_destroyer): Don't free doc.
704 * python/py-function.c (fnpy_init): Update.
705
8318f3c3
TT
7062019-11-26 Tom Tromey <tom@tromey.com>
707
708 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
709 (cmdpy_init): Set "doc_allocated".
710
4da8c3a8
TT
7112019-11-26 Tom Tromey <tom@tromey.com>
712
713 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
714 name of worker thread.
715 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
716 pthread_setname_np.
717 * configure, config.in: Rebuild.
718
971db5e2
TT
7192019-11-26 Tom Tromey <tom@tromey.com>
720
721 * python/python.c (class gdbpy_gil): New.
722 (struct gdbpy_event): Add constructor, destructor, operator().
723 (gdbpy_post_event): Use run_on_main_thread.
724 (gdbpy_initialize_events): Remove.
725 (do_start_initialization): Update.
726
22138db6
TT
7272019-11-26 Tom Tromey <tom@tromey.com>
728
729 * NEWS: Add entry.
730 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
731 commands. Call update_thread_pool_size.
732 (update_thread_pool_size, maintenance_set_worker_threads): New
733 functions.
734 (n_worker_threads): New global.
735
d55c9a68
TT
7362019-11-26 Christian Biesinger <cbiesinger@google.com>
737 Tom Tromey <tom@tromey.com>
738
739 * minsyms.c (minimal_symbol_reader::install): Use
740 parallel_for_each.
741 * gdbsupport/parallel-for.h: New file.
742 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
743
a0b57563
CB
7442019-11-26 Christian Biesinger <cbiesinger@google.com>
745 Tom Tromey <tom@tromey.com>
746
747 * gdbsupport/thread-pool.h: New file.
748 * gdbsupport/thread-pool.c: New file.
749 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
750 (HFILES_NO_SRCDIR): Add thread-pool.h.
751
3b3978bc
TT
7522019-11-26 Tom Tromey <tom@tromey.com>
753
754 * event-top.h (thread_local_segv_handler): Declare.
755 * event-top.c (thread_local_segv_handler): New global.
756 (install_handle_sigsegv, handle_sigsegv): New functions.
757 (async_init_signals): Install SIGSEGV handler.
758 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
759 thread-local.
760 (report_failed_demangle): New function.
761 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
762 handler-setting code, instead use segv_handler. Run warning code
763 on main thread.
764
9411c49e
TT
7652019-11-26 Tom Tromey <tom@tromey.com>
766
767 * run-on-main-thread.c: New file.
768 * run-on-main-thread.h: New file.
769 * unittests/main-thread-selftests.c: New file.
770 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
771 main-thread-selftests.c.
772 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
773 (COMMON_SFILES): Add run-on-main-thread.c.
774
c3efb965
TT
7752019-11-26 Tom Tromey <tom@tromey.com>
776
777 * main.c (setup_alternate_signal_stack): Remove.
778 (captured_main_1): Use gdb::alternate_signal_stack.
779 * gdbsupport/alt-stack.h: New file.
780
21987b9c
TT
7812019-11-26 Tom Tromey <tom@tromey.com>
782
783 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
784 Remove comment.
785 (save_original_signals_state, restore_original_signals_state): Use
786 gdb_sigmask.
787 * linux-nat.c (block_child_signals, restore_child_signals_mask)
788 (_initialize_linux_nat): Use gdb_sigmask.
789 * guile/guile.c (_initialize_guile): Use block_signals.
790 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
791 * gdbsupport/gdb-sigmask.h: New file.
792 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
793 * cp-support.c (gdb_demangle): Use gdb_sigmask.
794 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
795 pthread_sigmask.
796 * configure, config.in: Rebuild.
797 * gdbsupport/block-signals.h: New file.
798
5e030278
TT
7992019-11-26 Tom Tromey <tom@tromey.com>
800
801 * acinclude.m4: Include ax_pthread.m4.
802 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
803 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
804 (CLIBS): Use PTHREAD_LIBS.
805 (aclocal_m4_deps): Add ax_pthread.m4.
806 * config.in, configure: Rebuild.
807 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
808
5a79c107
TT
8092019-11-26 Tom Tromey <tom@tromey.com>
810
811 * symtab.h (struct minimal_symbol) <name_set>: New member.
812 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
813 Don't call symbol_set_names.
814 (minimal_symbol_reader::install): Call symbol_set_names.
815
aa369509
PW
8162019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
817
818 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
819 restore_active_ext_lang, as GIL is needed for (indirectly)
820 called PyOS_InterruptOccurred.
821
cadc9cb8
SM
8222019-11-26 Simon Marchi <simon.marchi@efficios.com>
823
824 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
825 definition.
826
d04afd58
SM
8272019-11-26 Simon Marchi <simon.marchi@efficios.com>
828
829 * remote-sim.c (simulator_command): Make static, remove
830 declaration.
831
dd694d77
SM
8322019-11-26 Simon Marchi <simon.marchi@efficios.com>
833
834 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
835 static.
836 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
837 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
838 (main): Likewise.
839 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
840 (main): Likewise.
841 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
842 (main): Likewise.
843 * unittests/basic_string_view/element_access/char/1.cc (test01):
844 Likewise.
845 (main): Likewise.
846 * unittests/basic_string_view/element_access/char/empty.cc (main):
847 Likewise.
848 * unittests/basic_string_view/element_access/char/front_back.cc
849 (test01): Likewise.
850 (main): Likewise.
851 * unittests/basic_string_view/inserters/char/2.cc (test05):
852 Likewise.
853 (main): Likewise.
854 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
855 (test01): Likewise.
856 (main): Likewise.
857 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
858 (test01): Likewise.
859 (main): Likewise.
860 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
861 Likewise.
862 * unittests/basic_string_view/operations/compare/char/1.cc
863 (test01): Likewise.
864 (main): Likewise.
865 * unittests/basic_string_view/operations/compare/char/13650.cc
866 (test01): Likewise.
867 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
868 Likewise.
869 (main): Likewise.
870 * unittests/basic_string_view/operations/data/char/1.cc (test01):
871 Likewise.
872 (main): Likewise.
873 * unittests/basic_string_view/operations/find/char/1.cc (test01):
874 Likewise.
875 (main): Likewise.
876 * unittests/basic_string_view/operations/find/char/2.cc (test02):
877 Likewise.
878 (main): Likewise.
879 * unittests/basic_string_view/operations/find/char/3.cc (test03):
880 Likewise.
881 (main): Likewise.
882 * unittests/basic_string_view/operations/find/char/4.cc (main):
883 Likewise.
884 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
885 Likewise.
886 (main): Likewise.
887 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
888 Likewise.
889 (main): Likewise.
890 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
891 Likewise.
892 (main): Likewise.
893 * unittests/basic_string_view/operations/substr/char/1.cc
894 (test01): Likewise.
895 (main): Likewise.
896 * unittests/basic_string_view/operators/char/2.cc (main):
897 Likewise.
898 * unittests/optional/assignment/1.cc (test): Likewise.
899 * unittests/optional/assignment/2.cc (test): Likewise.
900 * unittests/optional/assignment/3.cc (test): Likewise.
901 * unittests/optional/assignment/4.cc (test): Likewise.
902 * unittests/optional/assignment/5.cc (test): Likewise.
903 * unittests/optional/assignment/6.cc (test): Likewise.
904 * unittests/optional/assignment/7.cc (test): Likewise.
905 * unittests/optional/cons/copy.cc (test): Likewise.
906 * unittests/optional/cons/default.cc (test): Likewise.
907 * unittests/optional/cons/move.cc (test): Likewise.
908 * unittests/optional/cons/value.cc (test): Likewise.
909 * unittests/optional/in_place.cc (test): Likewise.
910 * unittests/optional/observers/1.cc (test): Likewise.
911 * unittests/optional/observers/2.cc (test): Likewise.
912
3b5c1d49
SM
9132019-11-26 Simon Marchi <simon.marchi@efficios.com>
914
915 * tui-win.h (tui_set_var_cmd): Remove.
916 * tui-win.c (tui_set_var_cmd): Make static.
917
adce99fe
SM
9182019-11-26 Simon Marchi <simon.marchi@efficios.com>
919
920 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
921 rbreak_command_wrapper): Remove.
922 * symtab.c (rbreak_command_wrapper): Remove.
923
fe3adccf
SM
9242019-11-26 Simon Marchi <simon.marchi@efficios.com>
925
926 * inferior.h (info_terminal_command): Remove declaration.
927 * inflow.c (info_terminal_command): Make static.
928
b926335f
SM
9292019-11-26 Simon Marchi <simon.marchi@efficios.com>
930
931 * inferior.c (exit_inferior_silent): Remove.
932
b62f6f54
SM
9332019-11-26 Simon Marchi <simon.marchi@efficios.com>
934
935 * dictionary.c (dict_empty, mdict_empty): Remove.
936 * dictionary.c (mdict_empty): Remove.
937
cb8c24b6
SM
9382019-11-26 Simon Marchi <simon.marchi@efficios.com>
939
940 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
941 (arc_insn_get_memory_offset): Likewise.
942 (arc_insn_dump): Likewise.
943 * cp-support.c (test_cp_symbol_name_matches): Likewise.
944 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
945 * dictionary.c (dict_iterator_next): Likewise.
946 (dict_iter_match_first): Likewise.
947 (dict_iter_match_next): Likewise.
948 * f-lang.c (evaluate_subexp_f): Likewise.
949 * hppa-tdep.c (hppa_read_pc): Likewise.
950 * i386-tdep.c (i386_floatformat_for_type): Likewise.
951 * parse.c (write_exp_elt_msym): Likewise.
952 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
953 * remote.c (remote_packet_size): Likewise.
954 (remote_notif_stop_parse): Likewise.
955 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
956 * s12z-tdep.c (s12z_disassemble_info): Likewise.
957 * source.c (prepare_path_for_appending): Likewise.
958 * sparc64-linux-tdep.c
959 (sparc64_linux_handle_segmentation_fault); Likewise.
960 * stack.c (frame_selection_by_function_completer): Likewise.
961
781597ff
SM
9622019-11-26 Simon Marchi <simon.marchi@efficios.com>
963
964 * completer.c (set_gdb_completion_word_break_characters):
965 Remove.
966
23baa4cc
SM
9672019-11-26 Simon Marchi <simon.marchi@efficios.com>
968
969 * dwarf-index-write.c: Include dwarf-index-write.h.
970 * mi/mi-interp.c: Include mi/mi-interp.h.
971
23767560
SM
9722019-11-26 Simon Marchi <simon.marchi@efficios.com>
973
974 * aarch32-tdep.c: Include aarch32-tdep.h.
975 * aarch32-tdep.h: Forward-declare struct target_desc.
976
6d91ce9a
CB
9772019-11-26 Christian Biesinger <cbiesinger@google.com>
978
979 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
980 strerror.
981 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
982 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
983
3cf2f237
TV
9842019-11-25 Tom de Vries <tdevries@suse.de>
985
986 * contrib/words.sh: Add -c option.
987
5b89c67a
CB
9882019-11-25 Christian Biesinger <cbiesinger@google.com>
989
990 * solib.c (solib_find_1): Change int to bool.
991 (exec_file_find): Change int to bool.
992 (solib_find): Change int to bool.
993 (solib_read_symbols): Change int to bool.
994 (solib_used): Change int to bool.
995 (solib_add): Change int to bool.
996 (info_sharedlibrary_command): Change int to bool.
997 (solib_contains_address_p): Change int to bool.
998 (solib_keep_data_in_core): Change int to bool.
999 (in_solib_dynsym_resolve_code): Change int to bool.
1000 (reload_shared_libraries_1): Change int to bool.
1001 (gdb_sysroot_changed): Change int to bool.
1002 * solib.h (solib_read_symbols): Change int to bool.
1003 (solib_contains_address_p): Change int to bool.
1004 (solib_keep_data_in_core): Change int to bool.
1005 (in_solib_dynsym_resolve_code): Change int to bool.
1006 (libpthread_name_p): Change int to bool.
1007
6cc8564b
LM
10082019-11-25 Luis Machado <luis.machado@linaro.org>
1009
1010 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1011 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1012 (remote_packet_max_chars): New static global.
1013 (show_remote_packet_max_chars): New function.
1014 (remote_target::putpkt_binary): Adjust to use new
1015 remote_packet_max_chars option.
1016 (remote_target::getpkt_or_notif_sane_1): Likewise.
1017 (_initialize_remote): Register new remote-packet-max-chars option.
1018
a7cdaa91
SM
10192019-11-24 Simon Marchi <simon.marchi@efficios.com>
1020
1021 * m68k-linux-nat.c: Include gdbarch.h.
1022
26abc753
TT
10232019-11-24 Tom Tromey <tom@tromey.com>
1024
1025 * symfile.c (read_symbols): Update.
1026 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1027 bool.
1028 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1029 (psym_lookup_symbol, psym_find_last_source_symtab)
1030 (psym_forget_cached_source_info, psym_print_stats)
1031 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1032 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1033 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1034 (psym_find_compunit_symtab_by_address)
1035 (maintenance_print_psymbols, maintenance_info_psymtabs)
1036 (maintenance_check_psymtabs): Update.
1037 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1038 bool.
1039
012fc909
TT
10402019-11-22 Tom Tromey <tom@tromey.com>
1041
1042 * observable.h: Update comments.
1043
c83d8d32
TT
10442019-11-22 Tom Tromey <tromey@adacore.com>
1045
1046 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1047 (print_ada_task_info): Don't try to fetch thread id if task is not
1048 alive.
1049
987012b8
CB
10502019-11-22 Christian Biesinger <cbiesinger@google.com>
1051
1052 * ada-exp.y: Update.
1053 * ada-lang.c (sort_choices): Update.
1054 (ada_print_symbol_signature): Update.
1055 (resolve_subexp): Update.
1056 (ada_parse_renaming): Update.
1057 (ada_read_renaming_var_value): Update.
1058 (lesseq_defined_than): Update.
1059 (remove_extra_symbols): Update.
1060 (remove_irrelevant_renamings): Update.
1061 (ada_add_block_symbols): Update.
1062 (ada_collect_symbol_completion_matches): Update.
1063 (ada_is_renaming_symbol): Update.
1064 (aggregate_assign_from_choices): Update.
1065 (ada_evaluate_subexp): Update.
1066 (ada_has_this_exception_support): Update.
1067 (ada_is_non_standard_exception_sym): Update.
1068 (ada_add_exceptions_from_frame): Update.
1069 (ada_add_global_exceptions): Update.
1070 (ada_print_subexp): Update.
1071 * ax-gdb.c (gen_var_ref): Update.
1072 (gen_maybe_namespace_elt): Update.
1073 (gen_expr_for_cast): Update.
1074 (gen_expr): Update.
1075 * block.h: Update.
1076 * blockframe.c (find_pc_partial_function): Update.
1077 * breakpoint.c (print_breakpoint_location): Update.
1078 (update_static_tracepoint): Update.
1079 * btrace.c (ftrace_print_function_name): Update.
1080 (ftrace_function_switched): Update.
1081 * buildsym.c (find_symbol_in_list): Update.
1082 * c-exp.y: Update.
1083 * c-typeprint.c (c_print_typedef): Update.
1084 (c_type_print_template_args): Update.
1085 * cli/cli-cmds.c (edit_command): Update.
1086 (list_command): Update.
1087 (print_sal_location): Update.
1088 * coffread.c (patch_opaque_types): Update.
1089 (process_coff_symbol): Update.
1090 (coff_read_enum_type): Update.
1091 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1092 (convert_one_symbol): Update.
1093 (hash_symname): Update.
1094 (eq_symname): Update.
1095 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1096 * compile/compile-cplus-types.c (debug_print_scope): Update.
1097 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1098 * compile/compile-object-load.c (get_out_value_type): Update.
1099 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1100 (search_symbol_list): Update.
1101 (cp_lookup_symbol_imports_or_template): Update.
1102 * cp-support.c (overload_list_add_symbol): Update.
1103 * ctfread.c (psymtab_to_symtab): Update.
1104 * dbxread.c (cp_set_block_scope): Update.
1105 * dictionary.c (iter_match_first_hashed): Update.
1106 (iter_match_next_hashed): Update.
1107 (insert_symbol_hashed): Update.
1108 (iter_match_next_linear): Update.
1109 * dictionary.h: Update.
1110 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1111 (locexpr_describe_location_piece): Update.
1112 (locexpr_describe_location_1): Update.
1113 (locexpr_generate_c_location): Update.
1114 (loclist_describe_location): Update.
1115 (loclist_generate_c_location): Update.
1116 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1117 (read_func_scope): Update.
1118 (process_enumeration_scope): Update.
1119 (new_symbol): Update.
1120 (dwarf2_const_value): Update.
1121 (dwarf2_symbol_mark_computed): Update.
1122 * eval.c (evaluate_funcall): Update.
1123 (evaluate_subexp_standard): Update.
1124 * expprint.c (print_subexp_standard): Update.
1125 (dump_subexp_body_standard): Update.
1126 * f-valprint.c (info_common_command_for_block): Update.
1127 * findvar.c (get_hosting_frame): Update.
1128 (default_read_var_value): Update.
1129 * go-lang.c (go_symbol_package_name): Update.
1130 * guile/scm-block.c (bkscm_print_block_smob): Update.
1131 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1132 (gdbscm_symbol_name): Update.
1133 (gdbscm_symbol_linkage_name): Update.
1134 (gdbscm_symbol_print_name): Update.
1135 * infcall.c (get_function_name): Update.
1136 * infcmd.c (jump_command): Update.
1137 (finish_command): Update.
1138 * infrun.c (insert_exception_resume_breakpoint): Update.
1139 * linespec.c (canonicalize_linespec): Update.
1140 (create_sals_line_offset): Update.
1141 (convert_linespec_to_sals): Update.
1142 (complete_label): Update.
1143 (find_label_symbols_in_block): Update.
1144 * m2-typeprint.c (m2_print_typedef): Update.
1145 * mdebugread.c (mdebug_reg_to_regnum): Update.
1146 (parse_symbol): Update.
1147 (mylookup_symbol): Update.
1148 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1149 (list_args_or_locals): Update.
1150 * objc-lang.c (compare_selectors): Update.
1151 (info_selectors_command): Update.
1152 (compare_classes): Update.
1153 (info_classes_command): Update.
1154 (find_imps): Update.
1155 * p-typeprint.c (pascal_print_typedef): Update.
1156 * printcmd.c (build_address_symbolic): Update.
1157 (info_address_command): Update.
1158 (print_variable_and_value): Update.
1159 * python/py-framefilter.c (extract_sym): Update.
1160 (py_print_single_arg): Update.
1161 * python/py-symbol.c (sympy_str): Update.
1162 (sympy_get_name): Update.
1163 (sympy_get_linkage_name): Update.
1164 * python/python.c (gdbpy_rbreak): Update.
1165 * record-btrace.c (btrace_get_bfun_name): Update.
1166 (btrace_call_history): Update.
1167 * rust-lang.c (rust_print_typedef): Update.
1168 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1169 * stabsread.c (stab_reg_to_regnum): Update.
1170 (define_symbol): Update.
1171 (read_enum_type): Update.
1172 (common_block_end): Update.
1173 (cleanup_undefined_types_1): Update.
1174 (scan_file_globals): Update.
1175 * stack.c (print_frame_arg): Update.
1176 (print_frame_args): Update.
1177 (find_frame_funname): Update.
1178 (info_frame_command_core): Update.
1179 (iterate_over_block_locals): Update.
1180 (print_block_frame_labels): Update.
1181 (do_print_variable_and_value): Update.
1182 (iterate_over_block_arg_vars): Update.
1183 (return_command): Update.
1184 * symmisc.c (dump_symtab_1): Update.
1185 (print_symbol): Update.
1186 * symtab.c (eq_symbol_entry): Update.
1187 (symbol_cache_dump): Update.
1188 (lookup_language_this): Update.
1189 (find_pc_sect_line): Update.
1190 (skip_prologue_sal): Update.
1191 (symbol_search::compare_search_syms): Update.
1192 (treg_matches_sym_type_name): Update.
1193 (search_symbols): Update.
1194 (print_symbol_info): Update.
1195 (rbreak_command): Update.
1196 (completion_list_add_symbol): Update.
1197 (find_gnu_ifunc): Update.
1198 (get_symbol_address): Update.
1199 (search_module_symbols): Update.
1200 (info_module_subcommand): Update.
1201 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1202 (SYMBOL_LINKAGE_NAME): Remove.
1203 (SYMBOL_DEMANGLED_NAME): Remove.
1204 (SYMBOL_PRINT_NAME): Remove.
1205 (SYMBOL_SEARCH_NAME): Remove.
1206 * tracepoint.c (set_traceframe_context): Update.
1207 (validate_actionline): Update.
1208 (collection_list::collect_symbol): Update.
1209 (encode_actions_1): Update.
1210 (info_scope_command): Update.
1211 (print_one_static_tracepoint_marker): Update.
1212 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1213 * valops.c (address_of_variable): Update.
1214 (find_overload_match): Update.
1215 (find_oload_champ): Update.
1216
c9d95fa3
CB
12172019-11-22 Christian Biesinger <cbiesinger@google.com>
1218
1219 * ada-lang.c (ada_lookup_simple_minsym): Update.
1220 (ada_collect_symbol_completion_matches): Update.
1221 * ada-tasks.c (read_atcb): Update.
1222 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1223 (amd64_windows_skip_trampoline_code): Update.
1224 * arm-tdep.c (skip_prologue_function): Update.
1225 (arm_skip_stack_protector): Update.
1226 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1227 (arm_wince_skip_main_prologue): Update.
1228 * ax-gdb.c (gen_expr): Update.
1229 * block.c (call_site_for_pc): Update.
1230 * blockframe.c (find_pc_partial_function): Update.
1231 * breakpoint.c (set_breakpoint_location_function): Update.
1232 * btrace.c (ftrace_print_function_name): Update.
1233 (ftrace_function_switched): Update.
1234 * c-valprint.c (print_unpacked_pointer): Update.
1235 * coffread.c (coff_symfile_read): Update.
1236 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1237 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1238 * dwarf-index-write.c (write_psymbols): Update.
1239 * dwarf2loc.c (call_site_to_target_addr): Update.
1240 (func_verify_no_selftailcall): Update.
1241 (tailcall_dump): Update.
1242 (call_site_find_chain_1): Update.
1243 (dwarf_expr_reg_to_entry_parameter): Update.
1244 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1245 * eval.c (evaluate_funcall): Update.
1246 (evaluate_subexp_standard): Update.
1247 (evaluate_subexp_for_sizeof): Update.
1248 * expprint.c (print_subexp_standard): Update.
1249 (dump_subexp_body_standard): Update.
1250 * frame.c (get_prev_frame_always_1): Update.
1251 * frv-tdep.c (frv_skip_main_prologue): Update.
1252 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1253 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1254 (gnuv3_get_typename_from_type_info): Update.
1255 (gnuv3_skip_trampoline): Update.
1256 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1257 * i386-tdep.c (i386_skip_main_prologue): Update.
1258 (i386_pe_skip_trampoline_code): Update.
1259 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1260 * infcall.c (get_function_name): Update.
1261 * linespec.c (minsym_found): Update.
1262 * linux-fork.c (info_checkpoints_command): Update.
1263 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1264 (m32c_m16c_pointer_to_address): Update.
1265 * maint.c (maintenance_translate_address): Update.
1266 * minsyms.c (add_minsym_to_hash_table): Update.
1267 (add_minsym_to_demangled_hash_table): Update.
1268 (lookup_minimal_symbol_mangled): Update.
1269 (lookup_minimal_symbol_demangled): Update.
1270 (lookup_minimal_symbol_linkage): Update.
1271 (lookup_minimal_symbol_text): Update.
1272 (lookup_minimal_symbol_by_pc_name): Update.
1273 (minimal_symbol_is_less_than): Update.
1274 (compact_minimal_symbols): Update.
1275 (build_minimal_symbol_hash_tables): Update.
1276 (find_solib_trampoline_target): Update.
1277 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1278 (mips_skip_pic_trampoline_code): Update.
1279 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1280 * objc-lang.c (info_selectors_command): Update.
1281 (info_classes_command): Update.
1282 (find_methods): Update.
1283 (find_imps): Update.
1284 * p-valprint.c (pascal_val_print): Update.
1285 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1286 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1287 * printcmd.c (build_address_symbolic): Update.
1288 (info_symbol_command): Update.
1289 * psymtab.c (psymbol_name_matches): Update.
1290 (match_partial_symbol): Update.
1291 (lookup_partial_symbol): Update.
1292 (print_partial_symbols): Update.
1293 (sort_pst_symbols): Update.
1294 (maintenance_check_psymtabs): Update.
1295 * python/py-framefilter.c (py_print_frame): Update.
1296 * python/python.c (gdbpy_rbreak): Update.
1297 * record-btrace.c (btrace_get_bfun_name): Update.
1298 (btrace_call_history): Update.
1299 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1300 (rs6000_skip_trampoline_code): Update.
1301 * sol-thread.c (info_cb): Update.
1302 * stabsread.c (scan_file_globals): Update.
1303 * stack.c (find_frame_funname): Update.
1304 (info_frame_command_core): Update.
1305 * symmisc.c (dump_msymbols): Update.
1306 * symtab.c (symbol_natural_name): Rename to..,
1307 (general_symbol_info::natural_name): ...this.
1308 (symbol_demangled_name): Rename to...
1309 (general_symbol_info::demangled_name): ...this.
1310 (symbol_search_name): Rename to...
1311 (general_symbol_info::search_name): ...this.
1312 (symbol_matches_search_name): Update.
1313 (find_pc_sect_line): Update.
1314 (skip_prologue_sal): Update.
1315 (search_symbols): Update.
1316 (print_msymbol_info): Update.
1317 (rbreak_command): Update.
1318 (completion_list_add_msymbol): Update.
1319 (completion_list_objc_symbol): Update.
1320 (get_msymbol_address): Update.
1321 * symtab.h (struct general_symbol_info): Add member functions
1322 natural_name (), linkage_name (), print_name (), demangled_name (),
1323 and search_name ().
1324 (SYMBOL_NATURAL_NAME): Update.
1325 (symbol_natural_name): Move to a member function on general_symbol_info.
1326 (SYMBOL_DEMANGLED_NAME): Update.
1327 (symbol_demangled_name): Move to a member function on
1328 general_symbol_info.
1329 (SYMBOL_SEARCH_NAME): Update.
1330 (symbol_search_name): Move to a member function on general_symbol_info.
1331 (MSYMBOL_NATURAL_NAME): Remove.
1332 (MSYMBOL_LINKAGE_NAME): Remove.
1333 (MSYMBOL_PRINT_NAME): Remove.
1334 (MSYMBOL_DEMANGLED_NAME): Remove.
1335 (MSYMBOL_SEARCH_NAME): Remove.
1336 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1337
f8bab2d6
CB
13382019-11-22 Christian Biesinger <cbiesinger@google.com>
1339
1340 * symtab.c (create_demangled_names_hash): Use per_bfd->
1341 minimal_symbol_count for computing the initial size, if greater
1342 than our default size.
1343
85e7588d
TV
13442019-11-22 Tom de Vries <tdevries@suse.de>
1345
1346 * contrib/words.sh: Improve words extraction.
1347
f6180073
TV
13482019-11-22 Tom de Vries <tdevries@suse.de>
1349
1350 * contrib/words.sh: Combine sed invocations.
1351
f10ffa41
CB
13522019-11-21 Christian Biesinger <cbiesinger@google.com>
1353
1354 * Makefile.in: Update.
1355 * demangle.c: Rename to...
1356 * gdb-demangle.c: ..this.
1357 (is_cplus_marker): Change return type to bool.
1358 (_initialize_demangler): Rename to...
1359 (_initialize_gdb_demangle): ...this.
1360 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1361 * symtab.h (demangle): Remove declaration; instead include
1362 gdb-demangle.h.
1363
6ba18521
TT
13642019-11-21 Tom Tromey <tromey@adacore.com>
1365
1366 * gdbsupport/format.c (format_pieces): Parse %I64d.
1367 * unittests/format_pieces-selftests.c (test_windows_formats): New
1368 function.
1369 (run_tests): Call it.
1370
34877895
PJ
13712019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1372
1373 Byte reverse display of variables with DW_END_big, DW_END_little
1374 (DW_AT_endianity) dwarf attributes if different than the native
1375 byte order.
1376 * ada-lang.c (ada_value_binop):
1377 Use type_byte_order instead of gdbarch_byte_order.
1378 * ada-valprint.c (printstr):
1379 (ada_val_print_string):
1380 * ada-lang.c (value_pointer):
1381 (ada_value_binop):
1382 Use type_byte_order instead of gdbarch_byte_order.
1383 * c-lang.c (c_get_string):
1384 Use type_byte_order instead of gdbarch_byte_order.
1385 * c-valprint.c (c_val_print_array):
1386 Use type_byte_order instead of gdbarch_byte_order.
1387 * cp-valprint.c (cp_print_class_member):
1388 Use type_byte_order instead of gdbarch_byte_order.
1389 * dwarf2loc.c (rw_pieced_value):
1390 Use type_byte_order instead of gdbarch_byte_order.
1391 * dwarf2read.c (read_base_type): Handle DW_END_big,
1392 DW_END_little
1393 * f-lang.c (f_get_encoding):
1394 Use type_byte_order instead of gdbarch_byte_order.
1395 * findvar.c (default_read_var_value):
1396 Use type_byte_order instead of gdbarch_byte_order.
1397 * gdbtypes.c (check_types_equal):
1398 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1399 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1400 and TYPE_ENDIANITY_LITTLE if set.
1401 (type_byte_order): new function.
1402 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1403 (struct main_type) <flag_endianity_not_default>:
1404 New field.
1405 (type_byte_order): New function.
1406 * infcmd.c (default_print_one_register_info):
1407 Use type_byte_order instead of gdbarch_byte_order.
1408 * p-lang.c (pascal_printstr):
1409 Use type_byte_order instead of gdbarch_byte_order.
1410 * p-valprint.c (pascal_val_print):
1411 Use type_byte_order instead of gdbarch_byte_order.
1412 * printcmd.c (print_scalar_formatted):
1413 Use type_byte_order instead of gdbarch_byte_order.
1414 * solib-darwin.c (darwin_current_sos):
1415 Use type_byte_order instead of gdbarch_byte_order.
1416 * solib-svr4.c (solib_svr4_r_ldsomap):
1417 Use type_byte_order instead of gdbarch_byte_order.
1418 * stap-probe.c (stap_modify_semaphore):
1419 Use type_byte_order instead of gdbarch_byte_order.
1420 * target-float.c (target_float_same_format_p):
1421 Use type_byte_order instead of gdbarch_byte_order.
1422 * valarith.c (scalar_binop):
1423 (value_bit_index):
1424 Use type_byte_order instead of gdbarch_byte_order.
1425 * valops.c (value_cast):
1426 Use type_byte_order instead of gdbarch_byte_order.
1427 * valprint.c (generic_emit_char):
1428 (generic_printstr):
1429 (val_print_string):
1430 Use type_byte_order instead of gdbarch_byte_order.
1431 * value.c (unpack_long):
1432 (unpack_bits_as_long):
1433 (unpack_value_bitfield):
1434 (modify_field):
1435 (pack_long):
1436 (pack_unsigned_long):
1437 Use type_byte_order instead of gdbarch_byte_order.
1438 * findvar.c (unsigned_pointer_to_address):
1439 (signed_pointer_to_address):
1440 (unsigned_address_to_pointer):
1441 (address_to_signed_pointer):
1442 (default_read_var_value):
1443 (default_value_from_register):
1444 Use type_byte_order instead of gdbarch_byte_order.
1445 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1446 Use type_byte_order instead of gdbarch_byte_order.
1447 * riscv-tdep.c (riscv_print_one_register_info):
1448 Use type_byte_order instead of gdbarch_byte_order.
1449
87fb00ea
SM
14502019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1451
1452 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1453 (current_ui_gdb_stdin_ptr): Likewise.
1454 (current_ui_gdb_stderr_ptr): Likewise.
1455 (current_ui_gdb_stdlog_ptr): Likewise.
1456 (current_ui_current_uiout_ptr): Likewise.
1457 (gen_ret_current_ui_field_ptr): Remove.
1458
65d1cd5f
TV
14592019-11-21 Tom de Vries <tdevries@suse.de>
1460
1461 PR gdb/24956
1462 * cli/cli-script.c (execute_control_command): Only switch to
1463 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1464
9f6ad286
TT
14652019-11-19 Tom Tromey <tom@tromey.com>
1466
1467 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1468 Now static. Change type of "name".
1469 (tui_set_win_height_command): Don't copy "arg".
1470 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1471 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1472
435d3d88
AT
14732019-11-19 Ali Tamur <tamur@google.com>
1474
1475 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1476 "if (attr != nullptr)".
1477 (dwarf2_find_base_address): Likewise.
1478 (dwarf2_build_include_psymtabs): Likewise.
1479 (read_cutu_die_from_dwo): Likewise.
1480 (read_func_scope): Likewise.
1481 (read_call_site_scope): Likewise.
1482 (dwarf2_get_pc_bounds): Likewise.
1483 (dwarf2_record_block_ranges): Likewise.
1484 (dwarf2_add_field): Likewise.
1485 (dwarf2_add_member_fn): Likewise.
1486 (read_structure_type): Likewise.
1487 (read_enumeration_type): Likewise.
1488 (read_array_type): Likewise.
1489 (read_array_order): Likewise.
1490 (read_set_type): Likewise.
1491 (read_common_block): Likewise.
1492 (read_tag_reference_type): Likewise.
1493 (read_tag_string_type): Likewise.
1494 (read_subroutine_type): Likewise.
1495 (read_base_type): Likewise.
1496 (read_subrange_type): Likewise.
1497 (new_symbol): Likewise.
1498 (prepare_one_comp_unit): Likewise.
1499
c9739b6a
TT
15002019-11-19 Tom Tromey <tromey@adacore.com>
1501
1502 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1503 result in error when DebugActiveProcess fails.
1504
494409bb
SDJ
15052019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1506 Pedro Alves <palves@redhat.com>
1507
1508 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1509 * target.c (target_stack::push): Call 'unpush' if there's a
1510 target on top of the stack.
1511
2e953aca
PW
15122019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1513
1514 * python/py-block.c (blpy_dealloc): Call tp_free.
1515 (blpy_block_syms_dealloc): Likewise.
1516 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1517 * python/py-inferior.c (infpy_dealloc): Likewise.
1518 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1519 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1520 * python/py-symbol.c (sympy_dealloc): Likewise.
1521 * python/py-symtab.c (stpy_dealloc): Likewise.
1522 * python/py-type.c (typy_iterator_dealloc): Likewise.
1523
6edc43ec
CB
15242019-11-18 Christian Biesinger <cbiesinger@google.com>
1525
1526 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1527 constructor instead of using a class initializer.
1528
cd850b40
CB
15292019-11-15 Christian Biesinger <cbiesinger@google.com>
1530
1531 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1532 * configure: Regenerate.
1533 * configure.ac: Don't source common.host.
1534 * gdbsupport/common.host: Remove.
1535 * gdbsupport/mingw-strerror.c: Remove.
1536 * gdbsupport/posix-strerror.c: Rename to...
1537 * gdbsupport/safe-strerror.c: ...this.
1538
53fea9c7
CB
15392019-11-15 Christian Biesinger <cbiesinger@google.com>
1540
1541 * maint.c (scoped_command_stats::print_time): Use localtime_r
1542 instead of localtime (provided through gnulib if necessary).
1543 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1544 of ctime.
1545
f8e27d88
CB
15462019-11-15 Christian Biesinger <cbiesinger@google.com>
1547
1548 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1549 avoid compile errors.
1550
5abebf3c
CB
15512019-11-15 Christian Biesinger <cbiesinger@google.com>
1552
1553 * config.in: Regenerate.
1554 * configure: Regenerate.
1555 * gdbsupport/common.m4: No longer check for strerror_r.
1556 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1557 POSIX version of strerror_r, now that gnulib provides it if
1558 necessary.
1559
9a351667
CB
15602019-11-14 Christian Biesinger <cbiesinger@google.com>
1561
1562 * README (`configure' options): Update.
1563
55708e99
TT
15642019-11-14 Tom Tromey <tromey@adacore.com>
1565
1566 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1567 expected type for the RHS if the LHS is a convenience variable.
1568
4b09bb2e
SM
15692019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1570
1571 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1572 Provide explicit default and copy constructor.
1573
bd454f8b
PW
15742019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1575
1576 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1577 only call Py_INCREF (newbp) in the bppy_pending_object case.
1578
d1aa3cf0
TT
15792019-11-13 Tom Tromey <tromey@adacore.com>
1580
1581 PR build/25182:
1582 * psympriv.h (partial_symbol): Remove static assert.
1583 * symtab.h (general_symbol_info, symbol): Remove static assert.
1584
e06f3d6e
AB
15852019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1586
1587 * gdbsupport/format.c (format_pieces::format_pieces): Support
1588 printf 'z' size modifier.
1589 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1590 * printcmd.c (ui_printf): Handle size_t_arg.
1591 * ui-out.c (ui_out::vmessage): Likewise.
1592 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1593 function.
1594 (run_tests): Call test_format_int_sizes.
1595
468c0cbb
CB
15962019-11-12 Christian Biesinger <cbiesinger@google.com>
1597
1598 * ada-exp.y (write_ambiguous_var): Update.
1599 * buildsym.c (add_symbol_to_list): Update.
1600 * dwarf2read.c (read_variable): Update.
1601 (new_symbol): Update.
1602 * jit.c (finalize_symtab): Update.
1603 * language.c (language_alloc_type_symbol): Update.
1604 * symtab.c (fixup_symbol_section): Update.
1605 (initialize_objfile_symbol_1): Move code to...
1606 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1607 (allocate_symbol): Update.
1608 (allocate_template_symbol): Update.
1609 (get_symbol_address): Update.
1610 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1611 of having as a field, and add a constructor.
1612 (SYMBOL_VALUE): Update.
1613 (SYMBOL_VALUE_ADDRESS): Update.
1614 (SET_SYMBOL_VALUE_ADDRESS): Update.
1615 (SYMBOL_VALUE_BYTES): Update.
1616 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1617 (SYMBOL_BLOCK_VALUE): Update.
1618 (SYMBOL_VALUE_CHAIN): Update.
1619 (SYMBOL_LANGUAGE): Update.
1620 (SYMBOL_SECTION): Update.
1621 (SYMBOL_OBJ_SECTION): Update.
1622 (SYMBOL_SET_LANGUAGE): Update.
1623 (SYMBOL_SET_LINKAGE_NAME): Update.
1624 (SYMBOL_SET_NAMES): Update.
1625 (SYMBOL_NATURAL_NAME): Update.
1626 (SYMBOL_LINKAGE_NAME): Update.
1627 (SYMBOL_DEMANGLED_NAME): Update.
1628 (SYMBOL_SEARCH_NAME): Update.
1629 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1630 (struct symbol): Update.
1631 (struct template_symbol): Update.
1632 (struct rust_vtable_symbol): Update.
1633 * xcoffread.c (SYMBOL_DUP): Update.
1634
ed2c82c3
TT
16352019-11-12 Tom Tromey <tom@tromey.com>
1636
1637 * tui/tui-layout.c (show_layout): Set current_layout.
1638 (show_source_disasm_command, show_data)
1639 (show_source_or_disasm_and_command): Don't set current_layout.
1640
d9fcefd5
TT
16412019-11-12 Tom Tromey <tom@tromey.com>
1642
1643 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1644
45e42163
TT
16452019-11-12 Tom Tromey <tom@tromey.com>
1646
1647 * tui/tui-win.c (resize_message): New global.
1648 (show_tui_resize_message): New function.
1649 (tui_async_resize_screen): Print message if requested.
1650 (_initialize_tui_win): Add tui-resize-message setting.
1651 * NEWS: Add entry for new commands.
1652
c86d74cc
TT
16532019-11-11 Tom Tromey <tom@tromey.com>
1654
1655 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1656 functions.
1657
7b7b9424
CB
16582019-11-11 Christian Biesinger <cbiesinger@google.com>
1659
1660 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1661
086baaf1
AB
16622019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1663
1664 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1665 function.
1666 * python/python-internal.h (gdbpy_lookup_static_symbols):
1667 Declare new function.
1668 * python/python.c (python_GdbMethods): Add
1669 gdb.lookup_static_symbols method.
1670 * NEWS: Mention gdb.lookup_static_symbols.
1671
09ff83af
AB
16722019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1675 static block of current object file first. Also fix typo in
1676 header comment.
1677
eb2dd8df
AB
16782019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1679
1680 * stack.c (set_last_displayed_sal): Delete.
1681 (last_displayed_sal_valid): Delete.
1682 (last_displayed_pspace): Delete.
1683 (last_displayed_addr): Delete.
1684 (last_displayed_symtab): Delete.
1685 (last_displayed_line): Delete.
1686 (class last_displayed_symtab_info_type): New.
1687 (last_displayed_symtab_info): New static global variable.
1688 (print_frame_info): Call methods on last_displayed_symtab_info.
1689 (clear_last_displayed_sal): Update header comment, and make use of
1690 last_displayed_symtab_info.
1691 (last_displayed_sal_is_valid): Likewise.
1692 (get_last_displayed_pspace): Likewise.
1693 (get_last_displayed_addr): Likewise.
1694 (get_last_displayed_symtab): Likewise.
1695 (get_last_displayed_line): Likewise.
1696 (get_last_displayed_sal): Likewise.
1697 * stack.h (clear_last_displayed_sal): Update header comment.
1698 (last_displayed_sal_is_valid): Likewise.
1699 (get_last_displayed_pspace): Likewise.
1700 (get_last_displayed_addr): Likewise.
1701 (get_last_displayed_symtab): Likewise.
1702 (get_last_displayed_line): Likewise.
1703 (get_last_displayed_sal): Likewise.
1704
62137775
AB
17052019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1706
1707 * stack.c (frame_show_address): Convert return type to bool.
1708 * stack.h (frame_show_address): Likewise, and update header
1709 comment.
1710
cf57ad6d
AB
17112019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1714 * unittests/vec-utils-selftests.c: New file.
1715 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1716
0b026263
TT
17172019-11-10 Tom Tromey <tom@tromey.com>
1718
1719 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1720 (tui_highlight_win): Likewise.
1721 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1722 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1723 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1724 Don't set can_highlight.
1725
b049ce2d
TT
17262019-11-10 Tom Tromey <tom@tromey.com>
1727
1728 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1729 Remove unused declaration.
1730
992a7040
TT
17312019-11-08 Tom Tromey <tromey@adacore.com>
1732
1733 * top.c (read_command_file): Update.
1734 (command_line_input): Make return type const.
1735 * python/py-gdb-readline.c: Update.
1736 * linespec.c (decode_line_2): Update.
1737 * defs.h (command_line_input): Make return type const.
1738 * cli/cli-script.c (read_next_line): Make return type const.
1739 * ada-lang.c (get_selections): Update.
1740
ca3a04f6
CB
17412019-11-06 Christian Biesinger <cbiesinger@google.com>
1742
1743 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1744 * mi/mi-main.c (output_cores): Likewise.
1745 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1746 (linux_xfer_osdata_modules): Likewise.
1747 * remote.c (register_remote_support_xml): Likewise.
1748 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1749 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1750
e0eac551
TT
17512019-11-06 Tom Tromey <tom@tromey.com>
1752
1753 * tui/tui-interp.c: Don't include readline.h.
1754 * tui/tui-hooks.c: Don't include readline.h.
1755 * symmisc.c: Include tilde.h, not readline.h.
1756 * symfile.c: Include tilde.h, not readline.h.
1757 * source.c: Include tilde.h, not readline.h.
1758 * solib.c: Include tilde.h, not readline.h.
1759 * psymtab.c: Include tilde.h, not readline.h.
1760 * exec.c: Include tilde.h, not readline.h.
1761 * corelow.c: Include tilde.h, not readline.h.
1762 * cli/cli-dump.c: Include tilde.h, not readline.h.
1763 * cli/cli-cmds.c: Don't include readline.h.
1764
825165c5
TT
17652019-11-05 Tom Tromey <tom@tromey.com>
1766
1767 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1768 (tui_disassemble): Set addr_size.
1769 (tui_disasm_window::set_contents): Use addr_size.
1770
91ae903f
TT
17712019-11-05 Tom Tromey <tom@tromey.com>
1772
1773 * rust-lang.c (rust_language_defn): Update.
1774 * python/py-value.c (valpy_string): Call c_get_string.
1775 * p-lang.c (pascal_language_defn): Update.
1776 * opencl-lang.c (opencl_language_defn): Update.
1777 * objc-lang.c (objc_language_defn): Update.
1778 * m2-lang.c (m2_language_defn): Update.
1779 * language.c (unknown_language_defn, auto_language_defn): Update.
1780 (default_get_string): Remove.
1781 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1782 * go-lang.c (go_language_defn): Update.
1783 * f-lang.c (f_language_defn): Update.
1784 * d-lang.c (d_language_defn): Update.
1785 * c-lang.c (c_language_defn, cplus_language_defn)
1786 (asm_language_defn, minimal_language_defn): Update.
1787 * ada-lang.c (ada_language_defn): Update.
1788 * language.h (struct language_defn) <la_get_string>: Remove.
1789 (LA_GET_STRING): Remove.
1790 (default_get_string): Don't declare.
1791
1df2f9ef
TT
17922019-11-05 Tom Tromey <tom@tromey.com>
1793
1794 * tui/tui-source.h (struct tui_source_window): Inline
1795 constructor. Remove destructor.
1796 <style_changed, m_observable>: Move to superclass.
1797 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1798 (struct tui_source_window_base): Move private members to end.
1799 <style_changed, m_observable>: Move from tui_source_window.
1800 * tui/tui-winsource.c (tui_copy_source_line): Move from
1801 tui-source.c. Rename from copy_source_line. Add special handling
1802 for negative line number.
1803 (tui_source_window_base::style_changed): Move from
1804 tui_source_window.
1805 (tui_source_window_base): Register observer.
1806 (~tui_source_window_base): New.
1807 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1808 rename.
1809 (tui_source_window::set_contents): Use tui_copy_source_line.
1810 (tui_source_window::tui_source_window): Move to tui-source.h.
1811 (tui_source_window::~tui_source_window): Remove.
1812 (tui_source_window::style_changed): Move to superclass.
1813 * tui/tui-disasm.c (tui_disassemble): Create string file with
1814 styling, when possible. Add "addr_size" parameter.
1815 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1816 Don't compute maximum size.
1817 (len_without_escapes): New function
1818
5d051055
TT
18192019-11-05 Tom Tromey <tom@tromey.com>
1820
1821 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1822 std::string.
1823 * tui/tui-winsource.c (tui_show_source_line): Update.
1824 * tui/tui-source.c (tui_source_window::set_contents): Update.
1825 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1826
ade7beea
CB
18272019-11-05 Christian Biesinger <cbiesinger@google.com>
1828
1829 * symtab.h (gdb_static_assert): Put && operator at the beginning
1830 of the line instead of the end.
1831
3573abe1
CB
18322019-11-04 Christian Biesinger <cbiesinger@google.com>
1833
1834 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1835 and sizeof (symbol).
1836 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1837
dae8b3eb
RO
18382019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1839
1840 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1841 * configure.host: Mark *-*-solaris2.10* obsolete.
1842 * configure.tgt: Mark Solaris < 11 obsolete.
1843 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1844 Update target triplet.
1845
5df96a4e
TT
18462019-11-01 Tom Tromey <tromey@adacore.com>
1847
1848 * utils.c (print_sys_errmsg): Simplify.
1849
b7481649
TT
18502019-11-01 Tom Tromey <tromey@adacore.com>
1851
1852 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1853
e48f6033
CB
18542019-11-01 Christian Biesinger <cbiesinger@google.com>
1855
1856 * configure: Regenerate.
1857 * configure.ac: Remove check for strerror_r.
1858 * gdbsupport/common.m4: Check for strerror_r.
1859
bd5766ec
LM
18602019-11-01 Luis Machado <luis.machado@linaro.org>
1861
1862 PR gdb/25124
1863
1864 * arm-tdep.c (arm_per_objfile): Rename to ...
1865 (arm_per_bfd): ... this.
1866 (arm_objfile_data_key): Rename to ...
1867 (arm_bfd_data_key): ... this.
1868 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1869 data.
1870 (arm_record_special_symbol): Likewise.
1871
e1709896
AB
18722019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1873
1874 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1875 end.
1876 * c-typeprint.c (c_print_typedef): Likewise.
1877 * f-typeprint.c (f_print_typedef): Likewise.
1878 * m2-typeprint.c (m2_print_typedef): Likewise.
1879 * p-typeprint.c (pascal_print_typedef): Likewise.
1880 * rust-lang.c (rust_print_typedef): Likewise.
1881 * symtab.c (print_symbol_info): Print a newline after calling
1882 typedef_print.
1883
165f8965
AB
18842019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1885
1886 * symtab.c (info_module_cmdlist): New variable.
1887 (info_module_command): New function.
1888 (search_module_symbols): New function.
1889 (info_module_subcommand): New function.
1890 (struct info_modules_var_func_options): New struct.
1891 (info_modules_var_func_options_defs): New variable.
1892 (make_info_modules_var_func_options_def_group): New function.
1893 (info_module_functions_command): New function.
1894 (info_module_variables_command): New function.
1895 (info_module_var_func_command_completer): New function.
1896 (_initialize_symtab): Register new 'info module functions' and
1897 'info module variables' commands.
1898 * symtab.h (typedef symbol_search_in_module): New typedef.
1899 (search_module_symbols): Declare new function.
1900 * NEWS: Mention new commands.
1901
59c35742
AB
19022019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1903
1904 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1905 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1906 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1907 MODULES_DOMAIN.
1908 (scan_partial_symbols): Only create partial module symbols for non
1909 declarations.
1910 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1911 and MODULES_DOMAIN.
1912 * symtab.c (search_domain_name): Likewise.
1913 (search_symbols): Likewise.
1914 (print_symbol_info): Likewise.
1915 (symtab_symbol_info): Likewise.
1916 (info_modules_command): New function.
1917 (_initialize_symtab): Register 'info modules' command.
1918 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1919 * NEWS: Mention new 'info modules' command.
1920
aed61d02
PW
19212019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1922
1923 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1924 and $_gdb_maint_setting_str.
1925
9ad9b77d
PW
19262019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1927
1928 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1929 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1930 (str_value_from_setting, gdb_setting_str_internal_fn)
1931 (gdb_maint_setting_str_internal_fn): New functions.
1932 (_initialize_cli_cmds): Define the new convenience functions.
1933 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1934 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1935
8d6efaa2
CB
19362019-10-31 Christian Biesinger <cbiesinger@google.com>
1937
1938 * agent.c (set_can_use_agent): When the setting is turned on,
1939 look up agent symbols if we don't have them yet.
1940 (agent_new_objfile): Don't look up agent symbols when the agent
1941 setting is off.
1942
33cb1647
CB
19432019-10-31 Christian Biesinger <cbiesinger@google.com>
1944
1945 * config.in: Regenerate.
1946
b231e86a
CB
19472019-10-31 Christian Biesinger <cbiesinger@google.com>
1948
1949 * configure: Regenerate.
1950 * configure.ac: Check for strerror_r.
1951 * gdbsupport/common-utils.h (safe_strerror): Change return value
1952 to const char * and document that this function is now threadsafe.
1953 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1954 thread_local and call strerror_r, if available.
1955 * utils.c (perror_string): Update.
1956 (print_sys_errmsg): Update.
1957
a2726d4f
LM
19582019-10-31 Luis Machado <luis.machado@linaro.org>
1959
1960 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1961 objfile_key.
1962 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1963 objfile to fetch per-bfd data.
1964 (arm_find_exidx_entry): Likewise.
1965
75cafaa6
CB
19662019-10-31 Christian Biesinger <cbiesinger@google.com>
1967
1968 * gdbsupport/agent.c (debug_agent): Change type to bool.
1969 (use_agent): Likewise.
1970 (all_agent_symbols_look_up): Likewise.
1971 (agent_loaded_p): Change return value to bool.
1972 (agent_look_up_symbols): Update.
1973 (agent_capability_check): Change return value to bool.
1974 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1975 (debug_agent): Change type to bool.
1976 (use_agent): Likewise.
1977 (agent_capability_check): Change return value to bool.
1978
808590ec
CB
19792019-10-30 Christian Biesinger <cbiesinger@google.com>
1980
1981 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1982 (build_minimal_symbol_hash_tables): Code to clear the table moved
1983 to clear_minimal_symbol_hash_tables.
1984 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1985 when needed.
1986
f18ad8a1
SM
19872019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1988
1989 * infcmd.c: Remove includes.
1990 * infrun.c: Remove includes.
1991
de93309a
SM
19922019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1993
1994 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1995 (grow_vect): Remove declaration.
1996 (ada_type_of_array): Remove declaration.
1997 (ada_update_initial_language): Remove declaration.
1998 (ada_fold_name): Remove declaration.
1999 (ada_fill_in_ada_prototype): Remove declaration.
2000 (user_select_syms): Remove declaration.
2001 (get_selections): Remove declaration.
2002 (ada_tag_type): Remove declaration.
2003 (ada_value_tag): Remove declaration.
2004 (ada_is_others_clause): Remove declaration.
2005 (ada_in_variant): Remove declaration.
2006 (ada_value_struct_elt): Remove declaration.
2007 (ada_attribute_name): Remove declaration.
2008 (ada_system_address_type): Remove declaration.
2009 * ada-lang.c (ada_watch_location_expression): Make static.
2010 (GROW_VECT): Move here from ada-lang.h.
2011 (grow_vect): Make static.
2012 (ada_update_initial_language): Make static.
2013 (ada_fold_name): Make static.
2014 (ada_type_of_array): Make static.
2015 (encoded_ordered_before): Move up.
2016 (sort_choices): Move up.
2017 (print_signatures): Move up.
2018 (ada_print_symbol_signature): Move up.
2019 (get_selections): Move up and make static.
2020 (user_select_syms): Move up and make static.
2021 (ada_value_struct_elt): Move up and make static.
2022 (ada_tag_type): Make static.
2023 (ada_value_tag): Make static.
2024 (ada_is_others_clause): Make static.
2025 (ada_in_variant): Make static.
2026 (ada_attribute_name): Make static.
2027
cdc46a9f
SM
20282019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2029
2030 * ada-lang.c: Remove includes.
2031 * ada-typeprint.c: Remove includes.
2032 * ada-valprint.c: Remove includes.
2033
90421c56
SM
20342019-10-29 Simon Marchi <simon.marchi@efficios.com>
2035
2036 * addrmap.c: Add static assertions of type size, moved from
2037 _initialize_addrmap.
2038 (_initialize_addrmap): Remove.
2039
31edb802
CB
20402019-10-29 Christian Biesinger <cbiesinger@google.com>
2041
2042 * coffread.c (record_minimal_symbol): Update.
2043 (process_coff_symbol): Update.
2044 * dbxread.c (read_dbx_symtab): Update.
2045 * dwarf2read.c (add_partial_symbol): Update.
2046 (fixup_go_packaging): Update.
2047 (load_partial_dies): Update.
2048 (new_symbol): Update.
2049 * elfread.c (record_minimal_symbol): Change signature to use
2050 gdb::string_view instead of name+len.
2051 (elf_symtab_read): Update.
2052 (elf_rel_plt_read): Update.
2053 * mdebugread.c (parse_partial_symbols): Update.
2054 (handle_psymbol_enumerators): Update.
2055 (new_symbol): Update.
2056 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2057 to use gdb::string_view instead of name+len.
2058 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2059 * psympriv.h (add_psymbol_to_list): Likewise.
2060 * psymtab.c (add_psymbol_to_bcache): Likewise.
2061 (add_psymbol_to_list): Likewise.
2062 * stabsread.c (define_symbol): Update.
2063 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2064 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2065 (symbol_set_names): Likewise.
2066 * xcoffread.c (scan_xcoff_symtab): Update.
2067
0c921b21
CB
20682019-10-29 Christian Biesinger <cbiesinger@google.com>
2069
2070 * symtab.h (symbol_set_names): Document that copy_name must be
2071 set to true for non-nullterminated strings.
2072 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2073 linkage_name if the entry was not found and we need to demangle.
2074
35e65c49
CB
20752019-10-29 Christian Biesinger <cbiesinger@google.com>
2076
2077 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2078 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2079 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2080 * gdbsupport/gdb_binary_search.h: New file.
2081
ed2a2229
CB
20822019-10-29 Christian Biesinger <cbiesinger@google.com>
2083
2084 * NEWS: Mention new --with-system-gdbinit-dir option.
2085 * config.in: Regenerate.
2086 * configure: Regenerate.
2087 * configure.ac: Add new option --with-system-gdbinit-dir.
2088 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2089 for a ".gdb" suffix.
2090 * main.c (get_init_files): Change system_gdbinit argument to
2091 a vector and return the files in SYSTEM_GDBINIT_DIR in
2092 addition to SYSTEM_GDBINIT.
2093 (captured_main_1): Update.
2094 (print_gdb_help): Update.
2095 * top.c (print_gdb_configuration): Also print the value of
2096 SYSTEM_GDBINIT_DIR.
2097
87f34879
CB
20982019-10-28 Christian Biesinger <cbiesinger@google.com>
2099
2100 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2101 that takes gdb::string_view arguments.
2102
30baf67b
TV
21032019-10-26 Tom de Vries <tdevries@suse.de>
2104
2105 * aarch64-linux-tdep.c: Fix typos in comments.
2106 * aarch64-tdep.c: Same.
2107 * ada-lang.c: Same.
2108 * amd64-nat.c: Same.
2109 * arc-tdep.c: Same.
2110 * arch/aarch64-insn.c: Same.
2111 * block.c: Same.
2112 * breakpoint.h: Same.
2113 * btrace.h: Same.
2114 * c-varobj.c: Same.
2115 * cli/cli-decode.c: Same.
2116 * cli/cli-script.c: Same.
2117 * cli/cli-utils.h: Same.
2118 * coff-pe-read.c: Same.
2119 * coffread.c: Same.
2120 * compile/compile-cplus-symbols.c: Same.
2121 * compile/compile-object-run.c: Same.
2122 * completer.c: Same.
2123 * corelow.c: Same.
2124 * cp-support.c: Same.
2125 * demangle.c: Same.
2126 * dwarf-index-write.c: Same.
2127 * dwarf2-frame.c: Same.
2128 * dwarf2-frame.h: Same.
2129 * eval.c: Same.
2130 * frame-base.h: Same.
2131 * frame.h: Same.
2132 * gdbcmd.h: Same.
2133 * gdbtypes.h: Same.
2134 * gnu-nat.c: Same.
2135 * guile/scm-objfile.c: Same.
2136 * i386-tdep.c: Same.
2137 * i386-tdep.h: Same.
2138 * infcall.c: Same.
2139 * infcall.h: Same.
2140 * linux-nat.c: Same.
2141 * m68k-tdep.c: Same.
2142 * macroexp.c: Same.
2143 * memattr.c: Same.
2144 * mi/mi-cmd-disas.c: Same.
2145 * mi/mi-getopt.h: Same.
2146 * mi/mi-main.c: Same.
2147 * minsyms.c: Same.
2148 * nat/aarch64-sve-linux-sigcontext.h: Same.
2149 * objfiles.h: Same.
2150 * ppc-linux-nat.c: Same.
2151 * ppc-linux-tdep.c: Same.
2152 * ppc-tdep.h: Same.
2153 * progspace.h: Same.
2154 * prologue-value.h: Same.
2155 * python/py-evtregistry.c: Same.
2156 * python/py-instruction.h: Same.
2157 * record-btrace.c: Same.
2158 * record-full.c: Same.
2159 * remote.c: Same.
2160 * rs6000-tdep.c: Same.
2161 * ser-tcp.c: Same.
2162 * sol-thread.c: Same.
2163 * sparc-sol2-tdep.c: Same.
2164 * sparc64-tdep.c: Same.
2165 * stabsread.c: Same.
2166 * symfile.c: Same.
2167 * symtab.h: Same.
2168 * target.c: Same.
2169 * tracepoint.c: Same.
2170 * tui/tui-data.h: Same.
2171 * tui/tui-io.c: Same.
2172 * tui/tui-win.c: Same.
2173 * tui/tui.c: Same.
2174 * unittests/rsp-low-selftests.c: Same.
2175 * user-regs.h: Same.
2176 * utils.c: Same.
2177 * utils.h: Same.
2178 * valarith.c: Same.
2179 * valops.c: Same.
2180 * valprint.c: Same.
2181 * valprint.h: Same.
2182 * value.c: Same.
2183 * value.h: Same.
2184 * varobj.c: Same.
2185 * x86-nat.h: Same.
2186 * xtensa-tdep.c: Same.
2187
1834d45f
AT
21882019-10-25 Ali Tamur <tamur@google.com>
2189
2190 * charset.c (find_charset_names): Reflect API change.
2191
5396ae17
CB
21922019-10-25 Christian Biesinger <cbiesinger@google.com>
2193
2194 * symtab.c (struct demangled_name_entry): Change demangled name
2195 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2196 part of the struct anymore.
2197 (symbol_set_names): No longer obstack allocate + copy the demangled
2198 name, just store the allocated name from bfd.
2199
93878f47
TT
22002019-10-25 Tom Tromey <tromey@adacore.com>
2201
2202 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2203 (bsearch_cie_cmp, add_cie): Remove.
2204 (find_cie): Reimplement.
2205 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2206 (dwarf2_build_frame_info): Update.
2207
7b71fc97
L
22082019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2209
2210 PR gdb/25126
2211 * symfile.c (reread_symbols): Call forget_cached_source_info to
2212 clear the stale source cache.
2213
cbb5a2ea
CB
22142019-10-24 Christian Biesinger <cbiesinger@google.com>
2215
2216 * configure: Regenerate.
2217 * configure.ac: Remove code that sets python_has_threads.
2218
71737c43
CB
22192019-10-24 Christian Biesinger <cbiesinger@google.com>
2220
2221 * config.in: Regenerate.
2222 * configure: Regenerate.
2223 * configure.ac: Remove the code that uses sed to get the python
2224 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2225
33d569b7
AB
22262019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2227
2228 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2229 error paths.
2230
f16f7b7c
TT
22312019-10-23 Tom Tromey <tom@tromey.com>
2232
2233 * arc-tdep.c: Remove ".." from include.
2234 * frv-tdep.c: Remove ".." from include.
2235 * lm32-tdep.c: Remove ".." from include.
2236 * microblaze-tdep.c: Remove ".." from include.
2237 * or1k-tdep.h: Remove ".." from include.
2238 * s12z-tdep.c: Remove ".." from include.
2239 * Makefile.in (OPCODES_CFLAGS): Add comment.
2240 (TOP_CFLAGS): New variable.
2241 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2242
6999161a
TT
22432019-10-23 Tom Tromey <tom@tromey.com>
2244
2245 * Makefile.in (READLINE_DIR): Update.
2246
12e7c35e
TBA
22472019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2248
2249 * infcall.c (call_function_by_hand_dummy): Fix the function
2250 comment. And extract out a code section into...
2251 (reserve_stack_space): ...this new function.
2252
37055cad
TBA
22532019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2254
2255 * infcall.c (value_arg_coerce): Remove an unused parameter.
2256 (call_function_by_hand_dummy): Update the call to
2257 'value_arg_coerce'.
2258
39bcc47c
TBA
22592019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2260
2261 * infcall.c (call_function_by_hand_dummy): Refactor.
2262
bd888c0f
TBA
22632019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2264
2265 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2266
c12d372d
TT
22672019-10-23 Tom Tromey <tom@tromey.com>
2268
2269 * configure: Rebuild.
2270 * configure.ac: Don't check for sigprocmask.
2271 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2272
4d0b984b
TT
22732019-10-23 Tom Tromey <tom@tromey.com>
2274
2275 * configure: Rebuild.
2276 * acinclude.m4: Use m4_include, not sinclude.
2277
7e785608
TV
22782019-10-23 Tom de Vries <tdevries@suse.de>
2279
2280 PR breakpoints/24687
2281 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2282
403772ef
CB
22832019-10-22 Christian Biesinger <cbiesinger@google.com>
2284
2285 * symtab.c (struct demangled_name_entry) <language>: Change from
2286 bitfield to regular variable.
2287
3a494279
CB
22882019-10-22 Christian Biesinger <cbiesinger@google.com>
2289
2290 * symtab.c (struct demangled_name_entry): Add a constructor.
2291 (free_demangled_name_entry): New function to call the destructor
2292 for demangled_name_entry.
2293 (create_demangled_names_hash): Pass free_demangled_name_entry to
2294 htab_create_alloc.
2295 (symbol_set_names): Call placement new for demangled_name_entry.
2296 * utils.c: No longer include xxhash.h here, now that fast_hash
2297 is inlined in the header.
2298 * utils.h: Instead, include it here.
2299
ccb1ba62
CB
23002019-10-22 Christian Biesinger <cbiesinger@google.com>
2301
2302 * Makefile.in: Link with libxxhash.
2303 * config.in: Regenerate.
2304 * configure: Regenerate.
2305 * configure.ac: Search for libxxhash.
2306 * utils.c (fast_hash): Use xxhash if present.
2307
1a6ff1a9
CB
23082019-10-22 Christian Biesinger <cbiesinger@google.com>
2309
2310 * utils.h (fast_hash): New function.
2311 * symtab.c (hash_demangled_name_entry): Call new function
2312 fast_hash.
2313
7bb43059
CB
23142019-10-22 Christian Biesinger <cbiesinger@google.com>
2315
2316 * symtab.c (struct demangled_name_entry): Change type of mangled
2317 to gdb::string_view. Also adds a constructor that takes the
2318 mangled name.
2319 (hash_demangled_name_entry): Update.
2320 (eq_demangled_name_entry): Update.
2321 (free_demangled_name_entry): New function to call the destructor
2322 now that this is not a POD anymore.
2323 (create_demangled_names_hash): Pass free_demangled_name_entry to
2324 htab_create_alloc.
2325 (symbol_set_names): Update.
2326
7ba99d21
AT
23272019-10-21 Ali Tamur <tamu@google.com>
2328
2329 * dwarf2read.c (dir_index): Change type.
2330 (file_name_index): Likewise.
2331 (line_header::include_dir_at): Change comment and implementation on
2332 whether it is DWARF 5.
2333 (line_header::is_valid_file_index): New function.
2334 (line_header::file_name_at): Change comment and implementation on
2335 whether it is DWARF 5.
2336 (line_header::file_names): Change to private field renamed as
2337 m_file_names and introduce a new accessor method.
2338 (line_header::file_names_size): New method.
2339 (line_header::include_dirs): Change to private field and rename as
2340 m_include_dirs.
2341 (dw2_get_file_names_reader): Define local var at a smaller scope and
2342 reflect API change.
2343 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2344 (process_structure_scope): Likewise.
2345 (line_header::add_include_dir): Change message and reflect renaming.
2346 (line_header::add_file_name): Likewise.
2347 (read_formatted_entries): Handle DW_FORM_data16.
2348 (dwarf_decode_line_header): Fix line header length calculation.
2349 (psymtab_include_file_name): Change comment and API.
2350 (lnp_state_machine::m_file): Update comment and reflect type change.
2351 (lnp_state_machine::record_line): Reflect type change.
2352 (dwarf_decode_lines): Reflect API change.
2353 (file_file_name): Likewise.
2354 (file_full_name): Likewise.
2355
45f47c3a
AB
23562019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2357
2358 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2359
e5f3c0e3
TT
23602019-10-21 Tom Tromey <tom@tromey.com>
2361
2362 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2363
a0a461e5
TT
23642019-10-21 Tom Tromey <tom@tromey.com>
2365
2366 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2367 NM_H. Use AC_CONFIG_LINKS.
2368 * configure: Rebuild.
2369 * Makefile.in (NM_H): New variable.
2370 (generated_files): Add NM_H. Remove gcore.
2371 (nm.h, stamp-nmh): New targets.
2372
54d83b8d
TT
23732019-10-20 Tom Tromey <tom@tromey.com>
2374
2375 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2376 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2377 obsolete comment.
2378 (put_objfile_before): Now static.
2379
23771117
SM
23802019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2381
2382 * gdbsupport/common-utils.h (startswith): Change return type to
2383 bool.
2384
39ef2f62
CB
23852019-10-19 Christian Biesinger <cbiesinger@google.com>
2386
2387 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2388 * breakpoint.c (bp_locations_compare): Rename to...
2389 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2390 (update_global_location_list): Use std::sort instead of qsort.
2391 * buildsym.c (compare_line_numbers): Rename to...
2392 (lte_is_less_than): ...this, and change to std::sort semantics.
2393 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2394 instead of qsort.
2395 * disasm.c (compare_lines): Rename to...
2396 (line_is_less_than): ...this, and change to std::sort semantics.
2397 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2398 of qsort.
2399 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2400 (fde_is_less_than): ...this, and change to std::sort semantics.
2401 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2402 * mdebugread.c (compare_blocks):
2403 (block_is_less_than): ...this, and change to std::sort semantics.
2404 (sort_blocks): Call std::sort instead of qsort.
2405 * objfiles.c (qsort_cmp): Rename to...
2406 (sort_cmp): ...this, and change to std::sort semantics.
2407 (update_section_map): Call std::sort instead of qsort.
2408 * remote.c (compare_pnums): Remove.
2409 (map_regcache_remote_table): Call std::sort instead of qsort.
2410 * utils.c (compare_positive_ints): Remove.
2411 * utils.h (compare_positive_ints): Remove.
2412 * xcoffread.c (compare_lte): Remove.
2413 (arrange_linetable): Call std::sort instead of qsort.
2414
f71433ee
SDJ
24152019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2416
2417 * symfile.c (init_entry_point_info): Fix typo.
2418 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2419
85102364
TV
24202019-10-18 Tom de Vries <tdevries@suse.de>
2421
2422 * aarch64-tdep.c: Fix typos in comments.
2423 * ada-lang.c: Same.
2424 * ada-tasks.c: Same.
2425 * alpha-tdep.c: Same.
2426 * alpha-tdep.h: Same.
2427 * amd64-nat.c: Same.
2428 * amd64-windows-tdep.c: Same.
2429 * arc-tdep.c: Same.
2430 * arc-tdep.h: Same.
2431 * arch-utils.c: Same.
2432 * arm-nbsd-tdep.c: Same.
2433 * arm-tdep.c: Same.
2434 * ax-gdb.c: Same.
2435 * blockframe.c: Same.
2436 * btrace.c: Same.
2437 * c-varobj.c: Same.
2438 * coff-pe-read.c: Same.
2439 * coffread.c: Same.
2440 * cris-tdep.c: Same.
2441 * darwin-nat.c: Same.
2442 * dbxread.c: Same.
2443 * dcache.c: Same.
2444 * disasm.c: Same.
2445 * dtrace-probe.c: Same.
2446 * dwarf-index-write.c: Same.
2447 * dwarf2-frame-tailcall.c: Same.
2448 * dwarf2-frame.c: Same.
2449 * dwarf2read.c: Same.
2450 * eval.c: Same.
2451 * exceptions.c: Same.
2452 * fbsd-tdep.c: Same.
2453 * findvar.c: Same.
2454 * frame.c: Same.
2455 * frv-tdep.c: Same.
2456 * gnu-v3-abi.c: Same.
2457 * go32-nat.c: Same.
2458 * h8300-tdep.c: Same.
2459 * hppa-tdep.c: Same.
2460 * i386-linux-tdep.c: Same.
2461 * i386-tdep.c: Same.
2462 * ia64-libunwind-tdep.c: Same.
2463 * ia64-tdep.c: Same.
2464 * infcmd.c: Same.
2465 * infrun.c: Same.
2466 * linespec.c: Same.
2467 * linux-nat.c: Same.
2468 * linux-thread-db.c: Same.
2469 * machoread.c: Same.
2470 * mdebugread.c: Same.
2471 * mep-tdep.c: Same.
2472 * mn10300-tdep.c: Same.
2473 * namespace.c: Same.
2474 * objfiles.c: Same.
2475 * opencl-lang.c: Same.
2476 * or1k-tdep.c: Same.
2477 * osabi.c: Same.
2478 * ppc-linux-nat.c: Same.
2479 * ppc-linux-tdep.c: Same.
2480 * ppc-sysv-tdep.c: Same.
2481 * printcmd.c: Same.
2482 * procfs.c: Same.
2483 * record-btrace.c: Same.
2484 * record-full.c: Same.
2485 * remote-fileio.c: Same.
2486 * remote.c: Same.
2487 * rs6000-tdep.c: Same.
2488 * s12z-tdep.c: Same.
2489 * score-tdep.c: Same.
2490 * ser-base.c: Same.
2491 * ser-go32.c: Same.
2492 * skip.c: Same.
2493 * sol-thread.c: Same.
2494 * solib-svr4.c: Same.
2495 * solib.c: Same.
2496 * source.c: Same.
2497 * sparc-nat.c: Same.
2498 * sparc-sol2-tdep.c: Same.
2499 * sparc-tdep.c: Same.
2500 * sparc64-tdep.c: Same.
2501 * stabsread.c: Same.
2502 * stack.c: Same.
2503 * symfile.c: Same.
2504 * symtab.c: Same.
2505 * target-descriptions.c: Same.
2506 * target-float.c: Same.
2507 * thread.c: Same.
2508 * utils.c: Same.
2509 * valops.c: Same.
2510 * valprint.c: Same.
2511 * value.c: Same.
2512 * varobj.c: Same.
2513 * windows-nat.c: Same.
2514 * xcoffread.c: Same.
2515 * xstormy16-tdep.c: Same.
2516 * xtensa-tdep.c: Same.
2517
c5adaa19
TT
25182019-10-17 Tom Tromey <tromey@adacore.com>
2519
2520 * configure: Rebuild.
2521 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2522 in AC_CONFIG_FILES invocation.
2523 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2524 new-style config.status invocation.
2525
405feb71
TV
25262019-10-17 Tom de Vries <tdevries@suse.de>
2527
2528 * arm-nbsd-nat.c: Fix typos in comments.
2529 * arm-tdep.c: Same.
2530 * darwin-nat-info.c: Same.
2531 * dwarf2read.c: Same.
2532 * elfread.c: Same.
2533 * event-top.c: Same.
2534 * findvar.c: Same.
2535 * gdbtypes.c: Same.
2536 * hppa-tdep.c: Same.
2537 * i386-tdep.c: Same.
2538 * jit.c: Same.
2539 * main.c: Same.
2540 * mdebugread.c: Same.
2541 * moxie-tdep.c: Same.
2542 * nto-procfs.c: Same.
2543 * osabi.c: Same.
2544 * ppc-linux-tdep.c: Same.
2545 * remote.c: Same.
2546 * riscv-tdep.c: Same.
2547 * s390-tdep.c: Same.
2548 * sh-tdep.c: Same.
2549 * sparc-linux-tdep.c: Same.
2550 * sparc-nat.c: Same.
2551 * stack.c: Same.
2552 * target-descriptions.c: Same.
2553 * top.c: Same.
2554 * varobj.c: Same.
2555
befcd486
TT
25562019-10-16 Tom Tromey <tom@tromey.com>
2557
2558 * objfiles.h (struct objfile) <original_name>: Now const.
2559
17bfe554
CB
25602019-10-16 Christian Biesinger <cbiesinger@google.com>
2561
2562 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2563 pass on to sigsetjmp's second argument.
2564 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2565
950b7495
KS
25662019-10-16 Keith Seitz <keiths@redhat.com>
2567
2568 PR gdb/23567
2569 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2570 sections whose size is greater than the file size.
2571
ff371ec9
JW
25722019-10-16 Jim Wilson <jimw@sifive.com>
2573
2574 * riscv-tdep.c (riscv_gcc_target_options): New.
2575 (riscv_gnu_triplet_regexp): New.
2576 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2577 set_gdbarch_gnu_triplet_regexp.
2578
fec4e896
CB
25792019-10-16 Christian Biesinger <cbiesinger@google.com>
2580
2581 * Makefile.in: Add xml-builtin.h.
2582 * features/feature_to_c.sh: Add an include for xml-builtin.h
2583 to ensure that the compiler checks that the types match.
2584 * xml-builtin.h: New file.
2585 * xml-support.c (fetch_xml_builtin): Add missing const.
2586 * xml-support.h: Remove declaration of xml_builtins.
2587
d10eccaa
TV
25882019-10-16 Tom de Vries <tdevries@suse.de>
2589
2590 PR tdep/25096
2591 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2592 (amd64_classify_aggregate): ... here.
2593 (amd64_classify_aggregate_field): Handled fiels of nested structs
2594 recursively.
2595
745ff14e
TV
25962019-10-16 Tom de Vries <tdevries@suse.de>
2597
2598 PR tdep/24104
2599 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2600 that handles 'theclass'.
2601
791b7405
AB
26022019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2603
2604 * linespec.c (decode_digits_ordinary): Update comment.
2605 * make-target-delegates: No longer need to handle VEC case.
2606 * memrange.c (normalize_mem_ranges): Update comment.
2607 * namespace.c (add_using_directive): Update comment.
2608 * objc-lang.c (uniquify_strings): Update comment.
2609 * ppc-linux-nat.c (struct thread_points): Update comment.
2610 * probe.h (find_probes_in_objfile): Update comment.
2611 * target.h (enum flash_preserve_mode): Update comment.
2612 * varobj.c (varobj_restrict_range): Update comment.
2613 * varobj.h (varobj_list_children): Update comment.
2614
0dc32745
AB
26152019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2616
2617 * Makefile.in: Remove references to vec.h and vec.c.
2618 * aarch64-tdep.c: No longer include vec.h.
2619 * ada-lang.c: Likewise.
2620 * ada-lang.h: Likewise.
2621 * arm-tdep.c: Likewise.
2622 * ax.h: Likewise.
2623 * breakpoint.h: Likewise.
2624 * charset.c: Likewise.
2625 * cp-support.h: Likewise.
2626 * dtrace-probe.c: Likewise.
2627 * dwarf2read.c: Likewise.
2628 * extension.h: Likewise.
2629 * gdb_bfd.c: Likewise.
2630 * gdbsupport/gdb_vecs.h: Likewise.
2631 * gdbsupport/vec.c: Remove.
2632 * gdbsupport/vec.h: Remove.
2633 * gdbthread.h: Likewise.
2634 * guile/scm-type.c: Likewise.
2635 * inline-frame.c: Likewise.
2636 * machoread.c: Likewise.
2637 * memattr.c: Likewise.
2638 * memrange.h: Likewise.
2639 * namespace.h: Likewise.
2640 * nat/linux-btrace.h: Likewise.
2641 * osdata.c: Likewise.
2642 * parser-defs.h: Likewise.
2643 * progspace.h: Likewise.
2644 * python/py-type.c: Likewise.
2645 * record-btrace.c: Likewise.
2646 * rust-exp.y: Likewise.
2647 * solib-target.c: Likewise.
2648 * stap-probe.c: Likewise.
2649 * target-descriptions.c: Likewise.
2650 * target-memory.c: Likewise.
2651 * target.h: Likewise.
2652 * varobj.c: Likewise.
2653 * varobj.h: Likewise.
2654 * xml-support.h: Likewise.
2655
ae640021
AB
26562019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2657
2658 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2659 Update for new std::vector based implementation.
2660 (process_psymtab_comp_unit_reader): Likewise.
2661 (scan_partial_symbols): Likewise.
2662 (recursively_compute_inclusions): Likewise.
2663 (compute_compunit_symtab_includes): Likewise.
2664 (process_imported_unit_die): Likewise.
2665 (queue_and_load_dwo_tu): Likewise.
2666 (follow_die_sig_1): Likewise.
2667 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2668 (typedef dwarf2_per_cu_ptr): Remove.
2669 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2670 function.
2671 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2672 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2673 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2674 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2675 std::vector.
2676
55dfc88f
TT
26772019-10-15 Tom Tromey <tromey@adacore.com>
2678
2679 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2680 TID.
2681
96b49c5e
TT
26822019-10-15 Tom Tromey <tromey@adacore.com>
2683
2684 * windows-nat.c (windows_nat_target::fetch_registers)
2685 (windows_nat_target::store_registers): Rename "pid" to "tid".
2686
953cff56
TT
26872019-10-15 Tom Tromey <tromey@adacore.com>
2688
2689 * gdbarch.h, gdbarch.c: Rebuild.
2690 * gdbarch.sh (gcc_target_options): Change return type to
2691 std::string.
2692 * compile/compile.c (get_args): Update.
2693 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2694 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2695 std::string.
2696 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2697 std::string.
2698 * arch-utils.c (default_gcc_target_options): Return std::string.
2699 * arch-utils.h (default_gcc_target_options): Return std::string.
2700 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2701
81e6b8eb
CB
27022019-10-15 Christian Biesinger <cbiesinger@google.com>
2703
2704 * breakpoint.c (breakpoint_chain): Make static.
2705 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2706 of accessing breakpoint_chain.
2707
95da600f
CB
27082019-10-15 Christian Biesinger <cbiesinger@google.com>
2709
2710 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2711 to a gdb::function_view and return value to bool.
2712 * breakpoint.h (iterate_over_breakpoints): Likewise.
2713 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2714 (pop_dummy_frame): Update.
2715 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2716 (gdbscm_breakpoints): Update.
2717 * python/py-breakpoint.c (build_bp_list): Update.
2718 (gdbpy_breakpoints): Update.
2719 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2720 Update.
2721 (bpfinishpy_handle_stop): Update.
2722 (bpfinishpy_handle_exit): Update.
2723 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2724 (svr4_update_solib_event_breakpoints): Update.
2725
ba18312d
AA
27262019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2727
2728 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2729 when unwrapping single-field structs.
2730
6acc1a0b
SM
27312019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2732
2733 * dwarf2read.c: Remove includes.
2734
284782de
SM
27352019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * ui-out.c (ui_out::call_do_message): Silence
2738 -Wformat-nonliteral warning.
2739
073bbbb0
SM
27402019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2741
2742 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2743 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2744 include: readline/tilde.h.
2745
7b9a15e1
CB
27462019-10-12 Christian Biesinger <cbiesinger@google.com>
2747
2748 * remote.c (remote_target::get_trace_status): Remove declaration of
2749 trace_regblock_size.
2750
cc8dee1f
CB
27512019-10-12 Christian Biesinger <cbiesinger@google.com>
2752
2753 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2754 (show_user): Remove declaration of cmdlist.
2755 * cli/cli-cmds.h (max_user_call_depth): Declare.
2756 * cli/cli-script.c (execute_user_command): Remove declaration
2757 of max_user_call_depth.
2758
a83d4ef6
JW
27592019-10-11 Jim Wilson <jimw@sifive.com>
2760
5f93c5a6
JW
2761 * gdbsupport/print-utils.h (pulongest): Fix comment.
2762 (plongest): Likewise.
2763 (phex): Add missing comment, mention leading zeros.
2764 (phex_nz): Add mention of no leading zeros to comment.
2765
a83d4ef6
JW
2766 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2767 plongest instead of unsigned long long cast.
2768
26344e0c
CB
27692019-10-10 Christian Biesinger <cbiesinger@google.com>
2770
2771 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2772 for external_editor_command and gdbtk_test.
2773
c2c440a9
CB
27742019-10-10 Christian Biesinger <cbiesinger@google.com>
2775
2776 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2777 * varobj.c (varobjdebug): Move comment to...
2778 * varobj.h (varobjdebug): ...here, and declare.
2779
a31bff9d
TT
27802019-10-09 Tom Tromey <tom@tromey.com>
2781
2782 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2783 erase_data_content.
2784
7523da63
TT
27852019-10-09 Tom Tromey <tom@tromey.com>
2786
2787 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2788 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2789 * tui/tui-command.c (tui_cmd_window::resize)
2790 (tui_refresh_cmd_win): Update.
2791 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2792 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2793 * tui/tui-data.c (~tui_gen_win_info): Remove.
2794 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2795 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2796 (tui_redisplay_readline, tui_mld_flush)
2797 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2798 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2799 (tui_data_window::erase_data_content)
2800 (tui_data_item_window::rerender)
2801 (tui_data_item_window::refresh_window): Update.
2802 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2803 (box_win, tui_gen_win_info::make_window)
2804 (tui_gen_win_info::make_visible): Update.
2805 (tui_delete_win): Remove.
2806 * tui/tui-winsource.c
2807 (tui_source_window_base::do_erase_source_content): Update.
2808 (tui_show_source_line, tui_source_window_base::update_tab_width)
2809 (tui_source_window_base::update_exec_info): Update.
2810 * tui/tui-data.h (struct curses_deleter): New.
2811 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2812 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2813
a7798e7f
TT
28142019-10-09 Tom Tromey <tom@tromey.com>
2815
2816 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2817
5c45899e
TT
28182019-10-09 Tom Tromey <tom@tromey.com>
2819
2820 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2821 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2822
6d7fd9aa
TT
28232019-10-09 Tom Tromey <tom@tromey.com>
2824
2825 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2826 window height directly.
2827 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2828 declare.
2829 * tui/tui-layout.c (tui_default_win_height): Remove.
2830 (tui_default_win_viewport_height): Remove.
2831
d2dd1084
TT
28322019-10-09 Tom Tromey <tom@tromey.com>
2833
2834 * tui/tui.h: Remove comments.
2835
cff32449
TV
28362019-10-09 Tom de Vries <tdevries@suse.de>
2837
2838 * python/lib/gdb/printer/bound_registers.py: Use
2839 '^builtin_type_bound128' as regexp argument for
2840 add_builtin_pretty_printer.
2841
6a25e8a2
CB
28422019-10-09 Christian Biesinger <cbiesinger@google.com>
2843
2844 * guile/guile.c (guile_extension_script_ops): Remove forward
2845 declaration and mark as static.
2846 (guile_script_ops): Likewise.
2847 (extension_language_guile): Move further down in the file so
2848 it can reference the definitions for guile_{extension_,}script_ops.
2849
6d9d6da4
AA
28502019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2851
2852 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2853 except SORTL, DFLTCC, and KDSA.
2854
3abea05d
TT
28552019-10-08 Tom Tromey <tromey@adacore.com>
2856
2857 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2858 (struct safe_symbol_file_add_args): Remove.
2859
dde996e2
TT
28602019-10-08 Tom Tromey <tromey@adacore.com>
2861
2862 * windows-nat.c: Don't include buildsym-legacy.h.
2863
cd6fdaa1
TT
28642019-10-08 Tom Tromey <tromey@adacore.com>
2865
2866 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2867
79bb1944
CB
28682019-10-08 Christian Biesinger <cbiesinger@google.com>
2869
2870 * gdbtypes.c (overload_debug): Move comment to header.
2871 * gdbtypes.h (overload_debug): Declare.
2872 * valops.c: Remove declaration of overload_debug, instead
2873 include gdbtypes.h.
2874
34916edc
CB
28752019-10-08 Christian Biesinger <cbiesinger@google.com>
2876
2877 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2878 through _().
2879 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2880 move comment...
2881 * language.h (lang_frame_mismatch_warn): ... here. Also add
2882 declaration.
2883 * top.c (lang_frame_mismatch_warn): Remove declaration.
2884 (check_frame_language_change): Pass lang_frame_mismatch_warn
2885 through _().
2886
bad5c026
CB
28872019-10-07 Christian Biesinger <cbiesinger@google.com>
2888
2889 * c-lang.h (vtbl_ptr_name): Declare.
2890 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2891 it from the header.
2892 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2893
51f1fdc3
CB
28942019-10-07 Christian Biesinger <cbiesinger@google.com>
2895
2896 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2897 gdb_static_assert.
2898
30d1f018
WP
28992019-10-07 Weimin Pan <weimin.pan@oracle.com>
2900
606813d5
WP
2901 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2902 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2903 * ctfread.c: New file.
2904 * ctfread.h: New file.
2905 * elfread.c: Include ctfread.h.
2906 (struct elfinfo text_p): New member ctfsect.
2907 (elf_locate_sections): Mark CTF section.
2908 (elf_symfile_read): Call elfctf_build_psymtabs.
2909 * Makefile.in (LIBCTF): Add.
2910 (CLIBS): Use it.
2911 (CDEPS): Likewise.
2912 (DIST): Add ctfread.c.
606813d5
WP
2913
29142019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2915
2916 * ctfread.c (struct nextfield): Renamed to ...
2917 (struct ctf_nextfield): ... this.
2918 (struct field_info): Renamed to ...
2919 (strut ctf_field_info): ... this.
2920 (attach_fields_to_type): Update for renamed structures.
2921 (ctf_add_member_cb): Likewise.
2922 (ctf_add_enum_member_cb): Likewise.
2923 (process_struct_members): Likewise.
2924 (process_enum_type): Likewise.
30d1f018 2925
518fe38c
WP
29262019-10-07 Weimin Pan <weimin.pan@oracle.com>
2927
2928 * tracectf.h: Rename, was ctf.h.
2929 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2930 * tracefile.c: Likewise.
2931 * tracepoint.c: Remove unused include ctf.h.
2932 * mi/mi-main.c: Likewise.
2933 * Makefile.in Replace ctf.c with tracectf.c.
2934
225f296a
JB
29352019-10-06 Joel Brobecker <brobecker@adacore.com>
2936
2937 * version.in: Change version number to "9.0.50.DATE-git".
2938
77c2dba3
TT
29392019-10-03 Tom Tromey <tom@tromey.com>
2940
2941 PR rust/24976:
2942 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2943
179aed7f
AB
29442019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2945
2946 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2947 cp_search_name_hash.
2948 * NEWS: Add entry about nested function support.
2949
0a4b0913
AB
29502019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2951 Andrew Burgess <andrew.burgess@embecosm.com>
2952
2953 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2954 for nested static variables when searchin VAR_DOMAIN.
2955 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2956 global scope, update comment.
2957 (add_partial_subprogram): Call add_partial_subprogram recursively
2958 for nested subroutines when processinng Fortran.
2959 (load_partial_dies): Process the child entities of a subprogram
2960 when processing Fortran.
2961 (partial_die_parent_scope): Handle building scope
2962 for Fortran nested functions.
2963 (process_die): Record that nested functions have a scope.
2964 (new_symbol): Always record Fortran subprograms on the global
2965 symbol list.
2966 (determine_prefix): How to build the prefix for Fortran
2967 subprograms.
2968
d8c06f22
AB
29692019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2972 have just sent the thread a SIGSTOP and are waiting for it to
2973 arrive.
2974
a8b3b8e9
AB
29752019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2976
2977 * btrace.c (btrace_add_pc): Remove whitespace before the template
2978 parameter in 'std::vector <...>'.
2979 (parse_xml_btrace_block): Likewise.
2980 (btrace_maint_decode_pt): Likewise.
2981 (btrace_maint_update_packets): Likewise.
2982 (btrace_maint_print_packets): Likewise.
2983 * btrace.h (struct btrace_maint_info): Likewise.
2984 * dwarf2read.c (struct type_unit_group): Likewise.
2985 (build_type_psymtabs_reader): Likewise.
2986 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2987 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2988 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2989
4d825eab
TV
29902019-10-03 Tom de Vries <tdevries@suse.de>
2991
2992 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2993 the first line of the help text for set/show style metadata.
2994
80fd2826
TT
29952019-10-02 Tom Tromey <tromey@adacore.com>
2996
2997 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
2998 * gdbsupport/common-inferior.c: New file.
2999 * infcmd.c (startup_with_shell): Don't define.
3000 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3001 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3002 * inferior.h (startup_with_shell): Don't declare.
3003
70054538
CB
30042019-10-02 Christian Biesinger <cbiesinger@google.com>
3005
3006 * gdbsupport/gdb_assert.h: Include errors.h.
3007 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3008
37f6a7f4
TT
30092019-10-02 Tom Tromey <tromey@adacore.com>
3010
3011 * NEWS: Add $_ada_exception entry.
3012 * ada-lang.c (struct ada_catchpoint): Add constructor.
3013 <m_kind>: New member.
3014 (allocate_location_exception, re_set_exception): Remove
3015 "ex" parameter.
3016 (should_stop_exception): Compute $_ada_exception.
3017 (check_status_exception, print_it_exception)
3018 (print_one_exception, print_mention_exception): Remove
3019 "ex" parameter.
3020 (allocate_location_catch_exception, re_set_catch_exception)
3021 (check_status_exception, print_it_catch_exception)
3022 (print_one_catch_exception, print_mention_catch_exception)
3023 (print_recreate_catch_exception)
3024 (allocate_location_catch_exception_unhandled)
3025 (re_set_catch_exception_unhandled)
3026 (check_status_exception, print_it_catch_exception_unhandled)
3027 (print_one_catch_exception_unhandled)
3028 (print_mention_catch_exception_unhandled)
3029 (print_recreate_catch_exception_unhandled)
3030 (allocate_location_catch_assert, re_set_catch_assert)
3031 (check_status_assert, print_it_catch_assert)
3032 (print_one_catch_assert, print_mention_catch_assert)
3033 (print_recreate_catch_assert)
3034 (allocate_location_catch_handlers, re_set_catch_handlers)
3035 (check_status_handlers, print_it_catch_handlers)
3036 (print_one_catch_handlers, print_mention_catch_handlers)
3037 (print_recreate_catch_handlers): Remove.
3038 (create_ada_exception_catchpoint): Update.
3039 (initialize_ada_catchpoint_ops): Update.
3040
fccf9de1
TT
30412019-10-02 Tom Tromey <tromey@adacore.com>
3042
3043 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3044 (create_excep_cond_exprs): Simplify exception string computation.
3045 (ada_exception_catchpoint_cond_string): Likewise.
3046
4b610737
TT
30472019-10-02 Tom Tromey <tromey@adacore.com>
3048
3049 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3050 * ada-lang.c (lesseq_defined_than): Handle
3051 LOC_STATIC.
3052 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3053 parameter.
3054 (dwarf2_has_info): Likewise.
3055 (new_symbol): Set maybe_copied on symbol when
3056 appropriate.
3057 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3058 parameter.
3059 <can_copy>: New member.
3060 * elfread.c (record_minimal_symbol): Set maybe_copied
3061 on symbol when appropriate.
3062 (elf_symfile_read): Update call to dwarf2_has_info.
3063 * minsyms.c (lookup_minimal_symbol_linkage): New
3064 function.
3065 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3066 * symtab.c (get_symbol_address, get_msymbol_address):
3067 New functions.
3068 * symtab.h (get_symbol_address, get_msymbol_address):
3069 Declare.
3070 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3071 maybe_copied.
3072 (struct symbol, struct minimal_symbol) <maybe_copied>:
3073 New member.
3074
1dd58850
TT
30752019-10-02 Tom Tromey <tromey@adacore.com>
3076
3077 * source.c (struct current_source_location): New.
3078 (current_source_key): New global.
3079 (current_source_symtab, current_source_line)
3080 (current_source_pspace): Remove.
3081 (get_source_location): New function.
3082 (get_current_source_symtab_and_line)
3083 (set_default_source_symtab_and_line)
3084 (set_current_source_symtab_and_line)
3085 (clear_current_source_symtab_and_line, select_source_symtab)
3086 (info_source_command, print_source_lines_base)
3087 (info_line_command, search_command_helper, _initialize_source):
3088 Update.
3089
5c281dbb
TT
30902019-10-02 Tom Tromey <tromey@adacore.com>
3091
3092 * source.c (select_source_symtab): Don't call
3093 decode_line_with_current_source.
3094
d3d32391
AB
30952019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3096
3097 * symtab.c (lookup_global_symbol): Search global block.
3098
38583298
TT
30992019-10-02 Tom Tromey <tromey@adacore.com>
3100
3101 * coffread.c (process_coff_symbol): Update.
3102 * dwarf2read.c (var_decode_location, new_symbol): Update.
3103 * mdebugread.c (parse_symbol): Update.
3104 * objfiles.c (relocate_one_symbol): Update.
3105 * stabsread.c (define_symbol, fix_common_block)
3106 (scan_file_globals): Update.
3107 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3108 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3109 * xcoffread.c (process_xcoff_symbol): Update.
3110
9344c18f
AA
31112019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3112
3113 * MAINTAINERS: Update my email address.
3114
df07e2c7
AB
31152019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3116
3117 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3118 std::vector.
3119 (build_type_psymtabs_reader): Update for std::vector.
3120 (build_type_psymtab_dependencies): Likewise.
3121 * dwarf2read.h: Remove use of DEF_VEC_P.
3122 (typedef sig_type_ptr): Delete.
3123
554ac434
AB
31242019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3125
3126 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3127 to std::vector.
3128 (btrace_maint_decode_pt): Likewise, and move allocation of the
3129 vector outside of the loop.
3130 (btrace_maint_update_packets): Update to handle change from VEC to
3131 std::vector.
3132 (btrace_maint_print_packets): Likewise.
3133 (maint_info_btrace_cmd): Likewise.
3134 * btrace.h: Remove use of DEF_VEC_O.
3135 (typedef btrace_pt_packet_s): Delete.
3136 (struct btrace_maint_info) <packets>: Change fromm VEC to
3137 std::vector.
3138 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3139
46f29a9a
AB
31402019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3141
3142 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3143 make accesses into the vector constant references.
3144 (btrace_add_pc): Update for std::vector.
3145 (btrace_stitch_bts): Likewise.
3146 (parse_xml_btrace_block): Likewise.
3147 (btrace_maint_update_packets): Likewise.
3148 (btrace_maint_print_packets): Likewise.
3149 (maint_info_btrace_cmd): Likewise.
3150 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3151 std::vector.
3152 (btrace_data::empty): Likewise.
3153 (btrace_data_append): Likewise.
3154 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3155 (typedef btrace_block_s): Delete.
3156 (struct btrace_block): Add constructor.
3157 (struct btrace_data_bts) <blocks>: Change to std::vector.
3158 * nat/linux-btrace.c (perf_event_read_bts): Update for
3159 std::vector.
3160 (linux_read_bts): Likewise.
3161
d770d56f
TT
31622019-10-01 Tom Tromey <tom@tromey.com>
3163
3164 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3165
9d636d67
TT
31662019-10-01 Tom Tromey <tom@tromey.com>
3167
3168 * stack.c (print_frame, info_frame_command_core): Use
3169 styled_string.
3170 * linux-thread-db.c (try_thread_db_load_1)
3171 (try_thread_db_load_from_pdir_1): Use styled_string.
3172 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3173 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3174 (maybe_print_unsupported_script_warning)
3175 (maybe_print_script_not_found_warning): Use styled_string.
3176 * ada-lang.c (user_select_syms): Use styled_string.
3177
7f6aba03
TT
31782019-10-01 Tom Tromey <tom@tromey.com>
3179
3180 * p-lang.c (pascal_printstr): Use metadata style.
3181 * value.c (show_convenience): Use metadata style.
3182 * valprint.c (valprint_check_validity, val_print_optimized_out)
3183 (val_print_not_saved, val_print_unavailable)
3184 (val_print_invalid_address, generic_val_print, val_print)
3185 (value_check_printable, val_print_array_elements): Use metadata
3186 style.
3187 * ui-out.h (class ui_out) <field_fmt>: New overload.
3188 <do_field_fmt>: Add style parameter.
3189 * ui-out.c (ui_out::field_fmt): New overload.
3190 * typeprint.c (type_print_unknown_return_type)
3191 (val_print_not_allocated, val_print_not_associated): Use metadata
3192 style.
3193 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3194 parameter.
3195 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3196 * tracepoint.c (tvariables_info_1): Use metadata style.
3197 * stack.c (print_frame_arg, print_frame_info, print_frame)
3198 (info_frame_command_core): Use metadata style.
3199 * skip.c (info_skip_command): Use metadata style.
3200 * rust-lang.c (rust_print_enum): Use metadata style.
3201 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3202 metadata style.
3203 * python/py-framefilter.c (py_print_single_arg): Use metadata
3204 style.
3205 * printcmd.c (do_one_display, print_variable_and_value): Use
3206 metadata style.
3207 * p-valprint.c (pascal_val_print)
3208 (pascal_object_print_value_fields): Use metadata style.
3209 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3210 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3211 parameter.
3212 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3213 * m2-valprint.c (m2_print_long_set): Use metadata style.
3214 * m2-typeprint.c (m2_print_type): Use metadata style.
3215 * infcmd.c (print_return_value_1): Use metadata style.
3216 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3217 * f-valprint.c (info_common_command_for_block): Use metadata
3218 style.
3219 * f-typeprint.c (f_type_print_base): Use metadata style.
3220 * expprint.c (print_subexp_standard): Use metadata style.
3221 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3222 * cli/cli-style.h (class cli_style_option): Add constructor.
3223 (metadata_style): Declare.
3224 * cli/cli-style.c (metadata_style): New global.
3225 (_initialize_cli_style): Register metadata style.
3226 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3227 parameter.
3228 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3229 * c-typeprint.c (c_type_print_base_struct_union)
3230 (c_type_print_base_1): Use metadata style.
3231 * breakpoint.c (watchpoint_value_print)
3232 (print_one_breakpoint_location): Use metadata style.
3233 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3234 style.
3235 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3236 style.
3237 * ada-valprint.c (val_print_packed_array_elements, printstr)
3238 (print_field_values, ada_val_print_ref, ada_val_print): Use
3239 metadata style.
3240 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3241 style.
3242 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3243 style.
3244 * ada-lang.c (user_select_syms): Use metadata style.
3245
14309bb6
TT
32462019-10-01 Tom Tromey <tom@tromey.com>
3247
3248 * cli/cli-cmds.c (pwd_command): Style output.
3249
6a831f06
PA
32502019-10-01 Pedro Alves <palves@redhat.com>
3251 Tom Tromey <tom@tromey.com>
3252
3253 * symtab.c (print_symbol_info): Use %ps.
3254 (print_msymbol_info): Use %ps.
3255 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3256 * printcmd.c (print_variable_and_value): Use %ps.
3257 * macrocmd.c (show_pp_source_pos): Use %ps.
3258 * infrun.c (print_exited_reason): Use ui_out::message.
3259 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3260 (describe_other_breakpoints): Use ui_out::message and new
3261 formats.
3262 (say_where): Use new formats.
3263 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3264 and new formats.
3265
2a3c1174
PA
32662019-10-01 Pedro Alves <palves@redhat.com>
3267 Tom Tromey <tom@tromey.com>
3268
3269 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3270 (test_gdb_formats): New function.
3271 (run_tests): Call it.
3272 (test_format_specifier): Update.
3273 * utils.h (fputs_filtered): Update comment.
3274 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3275 (fputs_styled_unfiltered): Declare.
3276 * utils.c (fputs_styled_unfiltered): New function.
3277 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3278 (vfprintf_filtered): Update.
3279 (vfprintf_unfiltered, vprintf_filtered): Update.
3280 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3281 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3282 disallow_ui_out_field>: New constants.
3283 (enum class field_kind): New.
3284 (struct base_field_s, struct signed_field_s): New.
3285 (signed_field): New function.
3286 (struct string_field_s): New.
3287 (string_field): New function.
3288 (struct styled_string_s): New.
3289 (styled_string): New function.
3290 (class ui_out) <message>: Add comment.
3291 <vmessage, call_do_message>: New methods.
3292 <do_message>: Add style parameter.
3293 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3294 methods.
3295 (ui_out::message): Rewrite.
3296 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3297 parameter.
3298 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3299 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3300 gdb_extensions parameter.
3301 (class format_piece): Add parameter to constructor.
3302 (n_int_args): New field.
3303 * gdbsupport/format.c (format_pieces::format_pieces): Add
3304 gdb_extensions parameter. Handle '*'.
3305 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3306 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3307 vfprintf_styled_no_gdbfmt.
3308 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3309 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3310 unfiltered output.
3311 * ui-style.h (struct ui_file_style) <ptr>: New method.
3312
0dfe5bfb
TT
33132019-10-01 Tom Tromey <tom@tromey.com>
3314
3315 * unittests/format_pieces-selftests.c: Update. Add final format.
3316 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3317 empty literal pieces.
3318
e43b10e1
TT
33192019-10-01 Tom Tromey <tom@tromey.com>
3320
3321 * ui-out.h (enum class ui_out_style_kind): Remove.
3322 (class ui_out) <field_string, field_stsream, do_field_string>:
3323 Change type of "style".
3324 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3325 (ui_out::field_string): Update.
3326 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3327 of "style".
3328 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3329 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3330 * stack.c (print_frame_arg, print_frame_info, print_frame):
3331 Update.
3332 * source.c (print_source_lines_base): Update.
3333 * solib.c (info_sharedlibrary_command): Update.
3334 * skip.c (info_skip_command): Update.
3335 * record-btrace.c (btrace_call_history_src_line)
3336 (btrace_call_history): Update.
3337 * python/py-framefilter.c (py_print_frame): Update.
3338 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3339 "style".
3340 * mi/mi-out.c (mi_ui_out::do_table_header)
3341 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3342 (mi_ui_out::do_field_string): Update.
3343 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3344 Update.
3345 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3346 "style".
3347 * cli-out.c (cli_ui_out::do_table_header)
3348 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3349 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3350 (cli_ui_out::do_field_fmt): Update.
3351 * breakpoint.c (print_breakpoint_location): Update.
3352 (update_static_tracepoint): Update.
3353
cd7c32c3
PW
33542019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3355
3356 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3357 conversion of gdb_datadir.
3358 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3359 remove not needed c_str ().
3360
8fe0f950
AT
33612019-09-30 Ali Tamur <tamur@google.com>
3362
3363 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3364 (dwarf2_string_attr): Likewise.
3365
5f48f8f3
AT
33662019-09-30 Ali Tamur <tamur@google.com>
3367
3368 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3369 (process_full_type_unit): Likewise.
3370 (dump_die_shallow): Likewise.
3371 (cu_debug_loc_section): Likewise.
3372
6fb08628
CB
33732019-09-28 Christian Biesinger <cbiesinger@google.com>
3374
3375 * minsyms.c (compare_minimal_symbols): Rename to...
3376 (minimal_symbol_is_less_than): ...this, and adjust to STL
3377 conventions (return bool, take arguments as references)
3378 (minimal_symbol_reader::install): Call std::sort instead
3379 of qsort.
3380
c7ee338a
CB
33812019-09-29 Christian Biesinger <cbiesinger@google.com>
3382
3383 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3384 hash and why.
3385 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3386 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3387
703a86c2
SM
33882019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3389
3390 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3391 * psympriv.h (add_psymbol_to_list): Move comment here and update
3392 it.
3393
0df0352a
TV
33942019-09-29 Tom de Vries <tdevries@suse.de>
3395
3396 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3397 Use $tmpdir/$(basename "$output_file").dwz instead of
3398 "${output_file}.dwz".
3399
ad75efa6
SM
34002019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3401
3402 PR gdb/25045
3403 * hppa-linux-nat.c: Include gdbarch.h.
3404
ececd218
CB
34052019-09-26 Christian Biesinger <cbiesinger@google.com>
3406
3407 * blockframe.c (find_pc_partial_function): Change return type to bool.
3408 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3409 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3410 (stub_gnu_ifunc_resolve_name): Likewise.
3411 * symtab.c (compare_filenames_for_search): Likewise.
3412 (compare_glob_filenames_for_search): Likewise.
3413 (matching_obj_sections): Likewise.
3414 (symbol_matches_domain): Likewise.
3415 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3416 (find_line_pc): Change return type to bool.
3417 (find_line_pc_range): Likewise.
3418 (producer_is_realview): Likewise.
3419 * symtab.h (symbol_matches_domain): Likewise.
3420 (find_pc_partial_function): Likewise.
3421 (find_pc_line_pc_range): Likewise.
3422 (in_gnu_ifunc_stub): Likewise.
3423 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3424 (find_line_pc): Likewise.
3425 (find_line_pc_range): Likewise.
3426 (matching_obj_sections): Likewise.
3427 (find_line_symtab): Change out parameter to bool.
3428 (producer_is_realview): Change return type to bool.
3429 (compare_filenames_for_search): Likewise.
3430 (compare_glob_filenames_for_search): Likewise.
3431
27a900b8
TT
34322019-09-26 Tom Tromey <tom@tromey.com>
3433
3434 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3435 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3436 * gdb_usleep.h: Remove.
3437 * gdb_usleep.c: Remove.
3438 * utils.c: Don't include gdb_usleep.h.
3439
5d63b30a
TT
34402019-09-26 Tom Tromey <tromey@adacore.com>
3441
3442 * python/py-type.c (type_to_type_object): Call check_typedef
3443 for stub types.
3444
12904d37
TT
34452019-09-26 Tom Tromey <tom@tromey.com>
3446
3447 * utils.h (initialize_utils): Don't declare.
3448 * top.c (gdb_init): Don't call initialize_utils.
3449 * utils.c (initialize_utils): Remove. Move contents...
3450 (_initialize_utils): ... here.
3451
858f25f0
TT
34522019-09-25 Tom Tromey <tom@tromey.com>
3453
3454 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3455 * utils.h (make_hex_string): Don't declare.
3456 * utils.c (make_hex_string): Remove.
3457
3d435220
TV
34582019-09-24 Tom de Vries <tdevries@suse.de>
3459
3460 PR gdb/23815
3461 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3462 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3463
ddd44b70
DD
34642019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3465
3466 * NEWS: Mention new simulator port for PRU.
3467
f945dedf
CB
34682019-09-23 Christian Biesinger <cbiesinger@google.com>
3469
3470 * ada-exp.y (write_object_remaining): Update.
3471 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3472 and eliminate the static buffer.
3473 (ada_decode_symbol): Update.
3474 (ada_la_decode): Update.
3475 (ada_sniff_from_mangled_name): Update.
3476 (is_valid_name_for_wild_match): Update.
3477 (ada_lookup_name_info::matches): Update and simplify.
3478 (name_matches_regex): Update.
3479 (ada_add_global_exceptions): Update.
3480 * ada-lang.h (ada_decode): Update signature.
3481 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3482 * dwarf-index-write.c (debug_names::insert): Update.
3483
7ab78ccb
SM
34842019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3485
3486 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3487 formatting.
3488
9252448b
SM
34892019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3490
3491 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3492 Change "nonzero" to "true" in documentation.
3493
626ca2c0
CB
34942019-09-20 Christian Biesinger <cbiesinger@google.com>
3495
3496 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3497 (_initialize_darwin_solib): Don't set
3498 darwin_so_ops.lookup_lib_global_symbol.
3499 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3500 set_gdbarch_iterate_over_objfiles_in_search_order.
3501 (elf_lookup_lib_symbol): Rename to...
3502 (svr4_iterate_over_objfiles_in_search_order): this, and update
3503 to iterate semantics.
3504 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3505 * solib.c (solib_global_lookup): Remove.
3506 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3507 (solib_global_lookup): Remove.
3508 * symtab.c (lookup_global_or_static_symbol): Remove call to
3509 solib_global_lookup.
3510
5a3a0d63
JB
35112019-09-20 Joel Brobecker <brobecker@adacore.com>
3512
3513 * NEWS: Move entries about default MI version now being
3514 version 3, and about the GDB/MI fix for multi-location
3515 breakpoints to the "since GDB 8.3" section.
3516
ffea1427
JB
35172019-09-20 Joel Brobecker <brobecker@adacore.com>
3518
3519 GDB 8.3.1 released.
3520
abf516c6
UW
35212019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3522
3523 * NEWS: Mention that Cell/B.E. debugging support was removed.
3524 * MAINTAINERS: Remove spu target.
3525
3526 * config/djgpp/fnchange.lst: Remove entries for removed files.
3527
3528 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3529 spu-multiarch.o, and spu-tdep.o.
3530 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3531 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3532 spu-multiarch.c, and spu-tdep.c.
3533 * spu-linux-nat.c: Remove file.
3534 * spu-multiarch.c: Remove file.
3535 * spu-tdep.c: Remove file.
3536 * spu-tdep.h: Remove file.
3537 * solib-spu.c: Remove file.
3538 * solib-spu.h: Remove file.
3539
3540 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3541 * configure.nat (spu-linux): Remove.
3542 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3543 solib-multiarch.o from gdb_target_obs.
3544 (spu*-*-*): Remove.
3545
3546 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3547 feature flag.
3548 (ppc_linux_no_features): Update.
3549 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3550 Cell/B.E. support.
3551 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3552 (tdesc_powerpc_cell64l): Likewise.
3553 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3554 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3555 Cell/B.E. support.
3556 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3557 Do not include "features/rs6000/powerpc-cell32l.c" or
3558 "features/rs6000/powerpc-cell64l.c".
3559 (ppc_linux_spu_section): Remove.
3560 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3561 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3562 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3563 (ppc_linux_spe_context_lookup): Remove.
3564 (ppc_linux_spe_context_inferior_created): Remove.
3565 (ppc_linux_spe_context_solib_loaded): Remove.
3566 (ppc_linux_spe_context_solib_unloaded): Remove.
3567 (ppc_linux_spe_context): Remove.
3568 (struct ppu2spu_cache): Remove.
3569 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3570 (struct ppu2spu_data): Remove.
3571 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3572 ppu2spu_unwind): Remove.
3573 (ppc_linux_init_abi): Remove Cell/B.E. support.
3574 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3575
3576 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3577 (rs6000/powerpc-cell64l-expedite): Likewise
3578 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3579 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3580 rs6000/powerpc-cell64l.xml.
3581 * features/rs6000/powerpc-cell32l.xml: Remove.
3582 * features/rs6000/powerpc-cell64l.xml: Likewise.
3583 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3584 * features/rs6000/powerpc-cell64l.c: Likewise.
3585 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3586 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3587 * regformats/reg-spu.dat: Remove.
3588
3589 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3590 * corelow.c (struct spuid_list): Remove.
3591 (add_to_spuid_list): Remove.
3592 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3593 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3594 (remote_protocol_features): Remove associated entries.
3595 (_initialize_remote): No longer initialize them.
3596 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3597 * linux-nat.c (SPUFS_MAGIC): Remove.
3598 (linux_proc_xfer_spu): Remove.
3599 (spu_enumerate_spu_ids): Remove.
3600 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3601 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3602 (linux_make_corefile_notes): No longer call it.
3603
3604 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3605 (cooked_write_test): Likewise.
3606
78e8cb91
TT
36072019-09-20 Tom Tromey <tom@tromey.com>
3608
3609 * NEWS: Mention case-sensitivity of TUI commands.
3610 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3611 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3612 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3613
f074b67e
TT
36142019-09-20 Tom Tromey <tom@tromey.com>
3615
3616 * tui/tui-source.c (tui_source_window::set_contents): Use
3617 make_unique_xstrdup.
3618 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3619 make_unique_xstrdup.
3620
63c4bf19
TT
36212019-09-20 Tom Tromey <tom@tromey.com>
3622
3623 * tui/tui-data.c: Remove separator comments.
3624 * tui/tui-layout.c: Remove separator comments.
3625 * tui/tui-win.c: Remove separator comments.
3626 * tui/tui-wingeneral.c: Remove separator comments.
3627
43df9b2f
TT
36282019-09-20 Tom Tromey <tom@tromey.com>
3629
3630 * tui/tui.h (strcat_to_buf): Don't declare.
3631 * tui/tui.c (strcat_to_buf): Remove.
3632
7226433c
TT
36332019-09-20 Tom Tromey <tom@tromey.com>
3634
3635 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3636 from "fullname".
3637 * tui/tui-source.c (tui_source_window::set_contents)
3638 (tui_source_window::location_matches_p)
3639 (tui_source_window::maybe_update): Update.
3640
80df3337
TT
36412019-09-20 Tom Tromey <tom@tromey.com>
3642
3643 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3644 Update.
3645 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3646 prefix.
3647 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3648 (tui_data_window::line_from_reg_element_no)
3649 (tui_data_window::first_reg_element_no_inline)
3650 (tui_data_window::show_registers)
3651 (tui_data_window::show_register_group)
3652 (tui_data_window::display_registers_from)
3653 (tui_data_window::display_registers_from_line)
3654 (tui_data_window::first_data_item_displayed)
3655 (tui_data_window::delete_data_content_windows)
3656 (tui_data_window::erase_data_content)
3657 (tui_data_window::do_scroll_vertical)
3658 (tui_data_window::refresh_window)
3659 (tui_data_window::check_register_values): Update.
3660
9923f347
TT
36612019-09-20 Tom Tromey <tom@tromey.com>
3662
3663 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3664 (struct tui_locator_window) <full_name, proc_name>: Now
3665 std::string.
3666 * tui/tui-stack.c (tui_locator_window::make_status_line)
3667 (tui_locator_window::set_locator_fullname)
3668 (tui_locator_window::set_locator_info): Update.
3669 * tui/tui-source.c (tui_source_window::set_contents)
3670 (tui_source_window::showing_source_p): Update.
3671
b76251ab
TT
36722019-09-20 Tom Tromey <tom@tromey.com>
3673
3674 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3675 Don't call tui_locator_win_info_ptr.
3676
0891be08
TT
36772019-09-20 Tom Tromey <tom@tromey.com>
3678
3679 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3680
1b935acf
TT
36812019-09-20 Tom Tromey <tom@tromey.com>
3682
3683 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3684 height for locator.
3685 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3686 * tui/tui-layout.c (show_source_disasm_command, show_data)
3687 (show_source_or_disasm_and_command): Use 1 as height for locator.
3688
9abd8a65
TT
36892019-09-20 Tom Tromey <tom@tromey.com>
3690
3691 * tui/tui.c (tui_enable): Update.
3692 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3693 Update.
3694 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3695 Update.
3696 * tui/tui-data.c (win_resized): Now bool.
3697 (tui_win_resized): Return bool.
3698 (tui_set_win_resized_to): Accept a bool.
3699
b5457826
TT
37002019-09-20 Tom Tromey <tom@tromey.com>
3701
3702 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3703 Change type of "refresh_values_only".
3704 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3705 type of "refresh_values_only".
3706
6b915f7d
TT
37072019-09-20 Tom Tromey <tom@tromey.com>
3708
3709 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3710 std::string.
3711 (tui_disassemble): Add "pos" parameter.
3712 (tui_disasm_window::set_contents): Simplify.
3713
2ad52f6f
TT
37142019-09-20 Tom Tromey <tom@tromey.com>
3715
3716 * tui/tui-winsource.h (struct tui_source_window_base)
3717 <show_source_content>: Now private.
3718 * tui/tui-winsource.c
3719 (tui_source_window_base::show_source_content): Don't handle empty
3720 content case.
3721
b3b1bde6
TT
37222019-09-20 Tom Tromey <tom@tromey.com>
3723
3724 * tui/tui-layout.c (show_source_disasm_command)
3725 (show_source_or_disasm_and_command): Don't call
3726 show_source_content.
3727
71a25ed2
TT
37282019-09-20 Tom Tromey <tom@tromey.com>
3729
3730 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3731 Declare.
3732 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3733 from tui_make_status_line.
3734 (tui_locator_window::rerender): Update.
3735
f8532154
TT
37362019-09-20 Tom Tromey <tom@tromey.com>
3737
3738 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3739 (tui_locator_window::rerender): Update.
3740
2d81b349
TT
37412019-09-20 Tom Tromey <tom@tromey.com>
3742
3743 * tui/tui-winsource.h (struct tui_source_window_base)
3744 <~tui_source_window_base>: Don't declare.
3745 <fullname>: Remove.
3746 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3747 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3748 member.
3749 * tui/tui-source.c (tui_source_window::set_contents): Update.
3750 (tui_source_window::location_matches_p)
3751 (tui_source_window::maybe_update): Update.
3752
f14bec58
TT
37532019-09-20 Tom Tromey <tom@tromey.com>
3754
3755 * tui/tui-winsource.h (~tui_source_element): Remove.
3756 (tui_source_element): Update.
3757 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3758 * tui/tui-winsource.c (tui_show_source_line): Update.
3759 * tui/tui-source.c (tui_source_window::set_contents): Update.
3760 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3761
78d5933a
TT
37622019-09-20 Tom Tromey <tom@tromey.com>
3763
3764 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3765 declare.
3766 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3767 tui_clear_source_windows_detail.
3768 * tui/tui-winsource.h (struct tui_source_window_base)
3769 <clear_detail>: Don't declare.
3770 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3771 Remove.
3772 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3773
d4207696
TT
37742019-09-20 Tom Tromey <tromey@adacore.com>
3775
3776 PR ada/24919:
3777 * block.c (contained_in): Fix final return value.
3778
00f93c44
AM
37792019-09-20 Alan Modra <amodra@gmail.com>
3780
3781 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3782 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3783 (read_indirect_string_from_dwz): Use bfd accessor.
3784 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3785 * machoread.c (macho_symfile_read_all_oso): Likewise.
3786 * solib.c (solib_bfd_open): Likewise.
3787
e4153ae6
CB
37882019-09-19 Christian Biesinger <cbiesinger@google.com>
3789
3790 * eval.c: Move declaration of overload_resolution to...
3791 * value.h: ...here.
3792
c7ae7675
CB
37932019-09-19 Christian Biesinger <cbiesinger@google.com>
3794
3795 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3796 * arm-linux-tdep.c: Likewise.
3797 * arm-nbsd-nat.c: Likewise.
3798 * arm-tdep.h: Declare arm_apcs_32.
3799 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3800
e86f08d2
CB
38012019-09-19 Christian Biesinger <cbiesinger@google.com>
3802
3803 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3804 * dwarf2read.h: Declare dwarf_always_disassemble.
3805
f64e2f40
TV
38062019-09-19 Tom de Vries <tdevries@suse.de>
3807
3808 PR gdb/25009
3809 * source-cache.c (source_cache::ensure): Catch exception thrown during
3810 construction of the highlighter.
3811
fd361982
AM
38122019-09-18 Alan Modra <amodra@gmail.com>
3813
3814 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3815 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3816 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3817 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3818 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3819 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3820 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3821 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3822 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3823 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3824 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3825 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3826 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3827 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3828 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3829 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3830 * mi/mi-interp.c: Update throughout for bfd section macro and
3831 function changes.
3832 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3833 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3834
11061048
TT
38352019-09-18 Tom Tromey <tom@tromey.com>
3836
3837 * NEWS: Add entry.
3838 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3839 call rl_initialize.
3840 (tui_enable): Do not call rl_initialize.
3841
7a27b85f
CG
38422019-09-18 Christian Groessler <chris@groessler.org>
3843
3844 * alpha-linux-nat.c: Include gdbarch.h.
3845
f64eea3a
SM
38462019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3847
3848 * ui-file.c: Include cli/cli-style.h.
3849 (term_cli_styling): Remove cli_styling declaration.
3850
e6f7f6d1
AM
38512019-09-18 Alan Modra <amodra@gmail.com>
3852
3853 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3854 to bfd_asymbol_section.
3855
1d38e9d1
AM
38562019-09-18 Alan Modra <amodra@gmail.com>
3857
3858 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3859 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3860 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3861
90d92a63
AM
38622019-09-18 Alan Modra <amodra@gmail.com>
3863
3864 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3865 * spu-linux-nat.c (spu_bfd_open): Likewise.
3866
a3d181d2
CB
38672019-09-18 Christian Biesinger <cbiesinger@google.com>
3868
3869 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3870 to bool to match definition in dwarf2read.c.
3871
491144b5
CB
38722019-09-17 Christian Biesinger <cbiesinger@google.com>
3873
3874 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3875 (print_signatures): Likewise.
3876 (trust_pad_over_xvs): Likewise.
3877 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3878 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3879 * arm-linux-nat.c (arm_apcs_32): Likewise.
3880 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3881 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3882 * arm-tdep.c (arm_debug): Likewise.
3883 (arm_apcs_32): Likewise.
3884 * auto-load.c (debug_auto_load): Likewise.
3885 (auto_load_gdb_scripts): Likewise.
3886 (global_auto_load): Likewise.
3887 (auto_load_local_gdbinit): Likewise.
3888 (auto_load_local_gdbinit_loaded): Likewise.
3889 * auto-load.h (global_auto_load): Likewise.
3890 (auto_load_local_gdbinit): Likewise.
3891 (auto_load_local_gdbinit_loaded): Likewise.
3892 * breakpoint.c (disconnected_dprintf): Likewise.
3893 (breakpoint_proceeded): Likewise.
3894 (automatic_hardware_breakpoints): Likewise.
3895 (always_inserted_mode): Likewise.
3896 (target_exact_watchpoints): Likewise.
3897 (_initialize_breakpoint): Update.
3898 * breakpoint.h (target_exact_watchpoints): Change to bool.
3899 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3900 * cli/cli-cmds.c (trace_commands): Likewise.
3901 * cli/cli-cmds.h (trace_commands): Likewise.
3902 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3903 to bool*.
3904 * cli/cli-logging.c (logging_overwrite): Change to bool.
3905 (logging_redirect): Likewise.
3906 (debug_redirect): Likewise.
3907 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3908 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3909 to bool.
3910 <boolean_option_def>: Update.
3911 (struct flag_option_def): Change default type of Context to bool
3912 from int.
3913 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3914 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3915 (get_setshow_command_value_string): Likewise.
3916 * cli/cli-style.c (cli_styling): Change to bool.
3917 (source_styling): Likewise.
3918 * cli/cli-style.h (source_styling): Likewise.
3919 (cli_styling): Likewise.
3920 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3921 to bool.
3922 * command.h (var_types): Update comment.
3923 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3924 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3925 bool.
3926 (debug_compile_cplus_scopes): Likewise.
3927 * compile/compile-internal.h (compile_debug): Likewise.
3928 * compile/compile.c (compile_debug): Likewise.
3929 (struct compile_options) <raw>: Likewise.
3930 * cp-support.c (catch_demangler_crashes): Likewise.
3931 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3932 (usr_cmd_cris_dwarf2_cfi): Likewise.
3933 * csky-tdep.c (csky_debug): Likewise.
3934 * darwin-nat.c (enable_mach_exceptions): Likewise.
3935 * dcache.c (dcache_enabled_p): Likewise.
3936 * defs.h (info_verbose): Likewise.
3937 * demangle.c (demangle): Likewise.
3938 (asm_demangle): Likewise.
3939 * dwarf-index-cache.c (debug_index_cache): Likewise.
3940 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3941 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3942 * dwarf2read.c (check_physname): Likewise.
3943 (use_deprecated_index_sections): Likewise.
3944 (dwarf_always_disassemble): Likewise.
3945 * eval.c (overload_resolution): Likewise.
3946 * event-top.c (set_editing_cmd_var): Likewise.
3947 (exec_done_display_p): Likewise.
3948 * event-top.h (set_editing_cmd_var): Likewise.
3949 (exec_done_display_p): Likewise.
3950 * exec.c (write_files): Likewise.
3951 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3952 (debug_fbsd_nat): Likewise.
3953 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3954 Likewise.
3955 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3956 <backtrace_past_entry> Likewise.
3957 * gdb-demangle.h (demangle): Likewise.
3958 (asm_demangle): Likewise.
3959 * gdb_bfd.c (bfd_sharing): Likewise.
3960 * gdbcore.h (write_files): Likewise.
3961 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3962 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3963 * gdbthread.h (print_thread_events): Likewise.
3964 * gdbtypes.c (opaque_type_resolution): Likewise.
3965 (strict_type_checking): Likewise.
3966 * gnu-nat.c (gnu_debug_flag): Likewise.
3967 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3968 * guile/scm-param.c (pascm_variable): Add boolval.
3969 (add_setshow_generic): Update.
3970 (pascm_param_value): Update.
3971 (pascm_set_param_value_x): Update.
3972 * hppa-tdep.c (hppa_debug): Change to bool..
3973 * infcall.c (may_call_functions_p): Likewise.
3974 (coerce_float_to_double_p): Likewise.
3975 (unwind_on_signal_p): Likewise.
3976 (unwind_on_terminating_exception_p): Likewise.
3977 * infcmd.c (startup_with_shell): Likewise.
3978 * inferior.c (print_inferior_events): Likewise.
3979 * inferior.h (startup_with_shell): Likewise.
3980 (print_inferior_events): Likewise.
3981 * infrun.c (step_stop_if_no_debug): Likewise.
3982 (detach_fork): Likewise.
3983 (debug_displaced): Likewise.
3984 (disable_randomization): Likewise.
3985 (non_stop): Likewise.
3986 (non_stop_1): Likewise.
3987 (observer_mode): Likewise.
3988 (observer_mode_1): Likewise.
3989 (set_observer_mode): Update.
3990 (sched_multi): Change to bool.
3991 * infrun.h (debug_displaced): Likewise.
3992 (sched_multi): Likewise.
3993 (step_stop_if_no_debug): Likewise.
3994 (non_stop): Likewise.
3995 (disable_randomization): Likewise.
3996 * linux-tdep.c (use_coredump_filter): Likewise.
3997 (dump_excluded_mappings): Likewise.
3998 * linux-thread-db.c (auto_load_thread_db): Likewise.
3999 (check_thread_db_on_load): Likewise.
4000 * main.c (captured_main_1): Update.
4001 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4002 xx2_opt, boolean_opt>: Change to bool.
4003 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4004 * maint.c (maintenance_profile_p): Likewise.
4005 (per_command_time): Likewise.
4006 (per_command_space): Likewise.
4007 (per_command_symtab): Likewise.
4008 * memattr.c (inaccessible_by_default): Likewise.
4009 * mi/mi-main.c (mi_async): Likewise.
4010 (mi_async_1): Likewise.
4011 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4012 * nat/fork-inferior.h (startup_with_shell): Likewise.
4013 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4014 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4015 * nios2-tdep.c (nios2_debug): Likewise.
4016 * or1k-tdep.c (or1k_debug): Likewise.
4017 * parse.c (parser_debug): Likewise.
4018 * parser-defs.h (parser_debug): Likewise.
4019 * printcmd.c (print_symbol_filename): Likewise.
4020 * proc-api.c (procfs_trace): Likewise.
4021 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4022 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4023 (set_parameter_value): Update.
4024 (add_setshow_generic): Update.
4025 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4026 to bool*.
4027 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4028 int*.
4029 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4030 * record-btrace.c (record_btrace_target::store_registers): Update.
4031 * record-full.c (record_full_memory_query): Change to bool.
4032 (record_full_stop_at_limit): Likewise.
4033 * record-full.h (record_full_memory_query): Likewise.
4034 * remote-notif.c (notif_debug): Likewise.
4035 * remote-notif.h (notif_debug): Likewise.
4036 * remote.c (use_range_stepping): Likewise.
4037 (interrupt_on_connect): Likewise.
4038 (remote_break): Likewise.
4039 * ser-tcp.c (tcp_auto_retry): Likewise.
4040 * ser-unix.c (serial_hwflow): Likewise.
4041 * skip.c (debug_skip): Likewise.
4042 * solib-aix.c (solib_aix_debug): Likewise.
4043 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4044 (spu_auto_flush_cache_p): Likewise.
4045 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4046 Likewise.
4047 (struct info_print_options) <quiet>: Likewise.
4048 * symfile-debug.c (debug_symfile): Likewise.
4049 * symfile.c (auto_solib_add): Likewise.
4050 (separate_debug_file_debug): Likewise.
4051 * symfile.h (auto_solib_add): Likewise.
4052 (separate_debug_file_debug): Likewise.
4053 * symtab.c (basenames_may_differ): Likewise.
4054 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4055 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4056 (struct info_types_options) <quiet>: Likewise.
4057 * symtab.h (demangle): Likewise.
4058 (basenames_may_differ): Likewise.
4059 * target-dcache.c (stack_cache_enabled_1): Likewise.
4060 (code_cache_enabled_1): Likewise.
4061 * target.c (trust_readonly): Likewise.
4062 (may_write_registers): Likewise.
4063 (may_write_memory): Likewise.
4064 (may_insert_breakpoints): Likewise.
4065 (may_insert_tracepoints): Likewise.
4066 (may_insert_fast_tracepoints): Likewise.
4067 (may_stop): Likewise.
4068 (auto_connect_native_target): Likewise.
4069 (target_stop_and_wait): Update.
4070 (target_async_permitted): Change to bool.
4071 (target_async_permitted_1): Likewise.
4072 (may_write_registers_1): Likewise.
4073 (may_write_memory_1): Likewise.
4074 (may_insert_breakpoints_1): Likewise.
4075 (may_insert_tracepoints_1): Likewise.
4076 (may_insert_fast_tracepoints_1): Likewise.
4077 (may_stop_1): Likewise.
4078 * target.h (target_async_permitted): Likewise.
4079 (may_write_registers): Likewise.
4080 (may_write_memory): Likewise.
4081 (may_insert_breakpoints): Likewise.
4082 (may_insert_tracepoints): Likewise.
4083 (may_insert_fast_tracepoints): Likewise.
4084 (may_stop): Likewise.
4085 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4086 (make_thread_apply_all_options_def_group): Change argument from int*
4087 to bool*.
4088 (thread_apply_all_command): Update.
4089 (print_thread_events): Change to bool.
4090 * top.c (confirm): Likewise.
4091 (command_editing_p): Likewise.
4092 (history_expansion_p): Likewise.
4093 (write_history_p): Likewise.
4094 (info_verbose): Likewise.
4095 * top.h (confirm): Likewise.
4096 (history_expansion_p): Likewise.
4097 * tracepoint.c (disconnected_tracing): Likewise.
4098 (circular_trace_buffer): Likewise.
4099 * typeprint.c (print_methods): Likewise.
4100 (print_typedefs): Likewise.
4101 * utils.c (debug_timestamp): Likewise.
4102 (sevenbit_strings): Likewise.
4103 (pagination_enabled): Likewise.
4104 * utils.h (sevenbit_strings): Likewise.
4105 (pagination_enabled): Likewise.
4106 * valops.c (overload_resolution): Likewise.
4107 * valprint.h (struct value_print_options) <prettyformat_arrays,
4108 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4109 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4110 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4111 Likewise.
4112 * windows-nat.c (new_console): Likewise.
4113 (cygwin_exceptions): Likewise.
4114 (new_group): Likewise.
4115 (debug_exec): Likewise.
4116 (debug_events): Likewise.
4117 (debug_memory): Likewise.
4118 (debug_exceptions): Likewise.
4119 (useshell): Likewise.
4120 * windows-tdep.c (maint_display_all_tib): Likewise.
4121 * xml-support.c (debug_xml): Likewise.
4122
f1b620e9
MG
41232019-09-17 Mike Gulick <mgulick@mathworks.com>
4124
4125 * source.c (prepare_path_for_appending): New function.
4126 (openp): Make use of new function.
4127 (find_and_open_source): Search for the compilation directory and
4128 source file as a relative path beneath the directory search path.
4129
67f3ed6a
AB
41302019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4131
4132 * source-cache.c (source_cache::get_line_charpos): Catch
4133 exceptions and return false, this matches the behaviour documented
4134 in the header file.
4135
74332189
JB
41362019-09-17 Joel Brobecker <brobecker@adacore.com>
4137
4138 * ada-tasks.c (info_task): Remove quoting of the task's name.
4139
f2f24aa9
CB
41402019-09-16 Christian Biesinger <cbiesinger@google.com>
4141
4142 * symfile.c (auto_solib_add): Replace comment with a reference
4143 to the header file.
4144
6a062a93
CB
41452019-09-14 Christian Biesinger <cbiesinger@google.com>
4146
4147 * NEWS: Mention that gdb can now be compiled with Python 3
4148 on Windows.
4149
ec6c8338
AB
41502019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4151
4152 * maint.c (maint_print_section_data::maint_print_section_data):
4153 Force use of 'float log10 (float)' by casting the argument to
4154 float.
4155
aa17805f
AB
41562019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4157
4158 * maint.c: Add 'cmath' include.
4159 (struct maint_print_section_data): New structure.
4160 (print_section_index): New function.
4161 (print_bfd_section_info): Add header comment, small whitespace
4162 cleanup, and update to call new print_section_index function.
4163 (print_objfile_section_info): Likewise.
4164 (maint_obj_section_from_bfd_section): New function.
4165 (print_bfd_section_info_maybe_relocated): New function.
4166 (maintenance_info_sections): Add header comment, always use
4167 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4168
3dd9bb46
AB
41692019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4170
4171 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4172 inner scope, add check that the objfile has psymtabs before
4173 checking psymtabs_addrmap.
4174 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4175
4993045d
PW
41762019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4177
4178 * NEWS: Announce that Ada task names are now shown at more places,
4179 and between quotes (except in info task output).
4180 * gdb/ada-tasks.c (task_to_str): New function.
4181 (display_current_task_id): Call task_to_str.
4182 (task_command_1): Likewise.
4183 (print_ada_task_info): In non-mi mode, Properly align headers and data
4184 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4185
7a289707
RO
41862019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4187
4188 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4189 prstatus.pr_lwp.pr_info instead of making it up.
4190
f2aec7f6
CB
41912019-09-11 Christian Biesinger <cbiesinger@google.com>
4192
4193 * auto-load.c (auto_load_expand_dir_vars): Update.
4194 * defs.h (gdb_datadir): Change to std::string.
4195 (python_libdir): Likewise.
4196 (relocate_gdb_directory): Change return type to std::string.
4197 * guile/guile.c (gdbscm_data_directory): Update.
4198 (initialize_scheme_side): Update.
4199 * jit.c (jit_reader_dir): Change to std::string.
4200 (jit_reader_load_command): Update.
4201 * main.c (gdb_datadir): Change to std::string.
4202 (python_libdir): Likewise.
4203 (set_gdb_data_directory): Update.
4204 (relocate_path): Change to return std::string.
4205 (relocate_gdb_directory): Change to return std::string.
4206 (relocate_gdbinit_path_maybe_in_datadir): Update.
4207 (captured_main_1): Update.
4208 * python/python.c (do_start_initialization): Update.
4209 * top.c (show_gdb_datadir): Update.
4210 * xml-syscall.c (xml_init_syscalls_info): Update.
4211 (init_syscalls_info): Update.
4212
9224a013
CB
42132019-09-11 Christian Biesinger <cbiesinger@google.com>
4214
4215 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4216 out of get_init_files.
4217 (get_init_files): Update.
4218
f48cd836
CB
42192019-09-11 Christian Biesinger <cbiesinger@google.com>
4220
4221 * main.c (get_init_files): Change to use std::string.
4222 (captured_main_1): Update.
4223 (print_gdb_help): Update.
4224
9cab7ecd
AT
42252019-09-11 Ali Tamur <tamur@google.com>
4226
4227 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4228 implementation.
4229
67547d89
CB
42302019-09-11 Christian Biesinger <cbiesinger@google.com>
4231
4232 * dbxread.c (read_dbx_symtab): Update.
4233 * dwarf2read.c (load_partial_dies): Update.
4234 * mdebugread.c (parse_partial_symbols): Update.
4235 (handle_psymbol_enumerators): Update.
4236 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4237 * psymtab.c (add_psymbol_to_bcache): Likewise.
4238 (add_psymbol_to_list): Likewise.
4239 * symtab.c (symbol_set_names): Likewise.
4240 * symtab.h (symbol_set_names): Likewise.
4241 * xcoffread.c (scan_xcoff_symtab): Update.
4242
64b2d4a0
TT
42432019-09-11 Tom Tromey <tom@tromey.com>
4244
4245 * symfile-mem.c (symbol_file_add_from_memory): Use
4246 bfd_set_filename.
4247 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4248 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4249
3b00ef10
TT
42502019-09-10 Tom Tromey <tromey@adacore.com>
4251
4252 * dwarf-index-write.c (write_psymbols): Extend error message.
4253 (debug_names::insert): Add Ada code.
4254 (debug_names::write_psymbols): Remove Ada check.
4255 (debug_names) <m_string_obstack>: New member.
4256 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4257 (gdb_index_symbol_name_matcher::matches): Remove.
4258 (mapped_index_base::find_name_components_bounds): Add "lang"
4259 parameter.
4260 (mapped_index_base::build_name_components): Also split names
4261 according to Ada syntax.
4262 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4263 type of "match_callback".
4264 (check_match, check_find_bounds_finds)
4265 (dw2_expand_symtabs_matching): Update.
4266 (dw2_debug_names_iterator): Add new constructor.
4267 (dw2_debug_names_map_matching_symbols): New function.
4268 (dw2_debug_names_expand_symtabs_matching): Update.
4269 (dwarf2_debug_names_functions): Use
4270 dw2_debug_names_map_matching_symbols.
4271
aa391654
TT
42722019-09-10 Tom Tromey <tromey@adacore.com>
4273
4274 * dwarf2read.c (dw2_get_file_names_reader): Add the
4275 CU's file name to the results.
4276
b054970d
TT
42772019-09-10 Tom Tromey <tromey@adacore.com>
4278
4279 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4280 map_matching_symbols. Update.
4281 * dwarf2read.c (dw2_map_matching_symbols): Update.
4282 * psymtab.c (match_partial_symbol): Change type; update.
4283 (psym_map_matching_symbols): Likewise.
4284 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4285 type; update.
4286 * symfile.h (struct quick_symbol_functions)
4287 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4288 Remove "match".
4289
6a3dbf1b
TT
42902019-09-10 Tom Tromey <tromey@adacore.com>
4291
4292 * psymtab.c (map_block): Remove.
4293 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4294 * symtab.c (iterate_over_symbols_terminated): New function.
4295 * symtab.c (iterate_over_symbols_terminated): Declare.
4296
6969f124
TT
42972019-09-10 Tom Tromey <tromey@adacore.com>
4298
4299 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4300 * language.h (struct language_defn) <la_iterate_over_symbols>:
4301 Return bool.
4302 * symtab.c (iterate_over_symbols): Return bool.
4303 * symtab.h (iterate_over_symbols): Return bool.
4304
199b4314
TT
43052019-09-10 Tom Tromey <tromey@adacore.com>
4306
4307 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4308 (add_nonlocal_symbols): Update.
4309 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4310 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4311 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4312 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4313 Change type of "callback". Remove "data".
4314
a084a2a6
AT
4315
43162019-09-09 Ali Tamur <tamur@google.com>
4317
4318 * dwarf2read.c (comp_unit_head): Update comment.
4319 (dwarf2_dwo_name): New function declaration.
4320 (dwarf_unit_type_name): New function declaration.
4321 (read_comp_unit_head): Add support for new compilation units,
4322 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4323 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4324 (currently named as "signature") in their header. Also clarify error
4325 messages.
4326 (lookup_dwo_id): New function. Returns the dwo id of the given
4327 compile unit.
4328 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4329 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4330 functions.
4331 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4332 (dwarf2_dwo_name): Get the dwo name if present.
4333 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4334 purposes.
4335
25a2915e
TT
43362019-09-09 Tom Tromey <tom@tromey.com>
4337
4338 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4339
e4df0874
PW
43402019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4341
4342 * python/python.c (do_start_initialization): Make progname_copy static,
4343 to avoid a leak report.
4344
8634b462
TT
43452019-09-08 Tom Tromey <tom@tromey.com>
4346
4347 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4348
c7f839cb
SM
43492019-09-07 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4352 Change type to gdb::optional<block_enum>.
4353 (dw2_symtab_iter_init): Change block_index parameter type
4354 to gdb::optional<block_enum>.
4355 (dw2_lookup_symbol): Change block_index parameter
4356 type to block_enum.c
4357 (dw2_debug_names_lookup_symbol): Likewise.
4358 * psymtab.c (psym_lookup_symbol): Likewise.
4359 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4360 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4361 Likewise.
4362
ead0e69a
CB
43632019-09-06 Christian Biesinger <cbiesinger@google.com>
4364
4365 * defs.h (relocate_gdb_directory): Change int to bool in
4366 signature and rename flag to relocatable.
4367 * main.c (relocate_path): Likewise.
4368 (relocate_gdb_directory): Likewise.
4369
b16c44de
AM
43702019-09-06 Alan Modra <amodra@gmail.com>
4371
4372 * coffread.c (coff_symfile_read): Constify filename variable.
4373 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4374 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4375 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4376 * solib.c (reload_shared_libraries_1): Likewise.
4377 * symfile.c (reread_symbols): Likewise.
4378 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4379 * solib-darwin.c (darwin_bfd_open): Likewise.
4380 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4381
06ff036e
AB
43822019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4383
4384 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4385 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4386
4e962e74
TT
43872019-09-03 Tom Tromey <tromey@adacore.com>
4388
4389 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4390 types.
4391 (has_negatives): Unbias a range type bound.
4392 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4393 * gdbtypes.c (operator==): Handle new field.
4394 (create_range_type): Add "bias" parameter.
4395 (create_static_range_type, resolve_dynamic_range): Update.
4396 * gdbtypes.h (struct range_bounds) <bias>: New member.
4397 (create_range_type): Add bias parameter.
4398 * printcmd.c (print_scalar_formatted): Unbias range types.
4399 * value.c (unpack_long): Unbias range types.
4400 (pack_long): Bias range types.
4401
d90b8f26
AH
44022019-09-02 Alan Hayward <alan.hayward@arm.com>
4403
4404 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4405 probe arguments.
4406
fe01123e
AH
44072019-09-02 Alan Hayward <alan.hayward@arm.com>
4408
4409 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4410 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4411 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4412 (compile_probe_arg): Likewise.
4413 * probe.h (get_argument_count): Likewise.
4414 * solib-svr4.c (solib_event_probe_action): Likewise.
4415 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4416
e661ef01
AH
44172019-09-02 Alan Hayward <alan.hayward@arm.com>
4418
4419 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4420 code to here...
4421 (svr4_create_solib_event_breakpoints): ...from here.
4422
47a536d9
SDJ
44232019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4424
4425 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4426 suffix from warning message.
4427
d6a00eba
TT
44282019-08-30 Tom Tromey <tom@tromey.com>
4429
4430 * tui/tui-winsource.h (struct tui_source_window_base)
4431 <refresh_all>: Don't declare.
4432 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4433 Remove.
4434 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4435 tui_show_locator_content.
4436 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4437 declare.
4438 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4439 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4440 declare.
4441
55b2657b
TT
44422019-08-30 Tom Tromey <tom@tromey.com>
4443
4444 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4445
12a8555a
TT
44462019-08-30 Tom Tromey <tom@tromey.com>
4447
4448 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4449 Remove unnecessary forward declarations.
4450
900ac242
TT
44512019-08-30 Tom Tromey <tom@tromey.com>
4452
4453 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4454 rerender.
4455 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4456 tui_show_locator_content.
4457
99ab33fb
TT
44582019-08-30 Tom Tromey <tom@tromey.com>
4459
4460 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4461 (tui_locator_window::rerender): Rewrite using body of previous
4462 tui_show_locator_content.
4463
e594a5d1
TT
44642019-08-30 Tom Tromey <tom@tromey.com>
4465
4466 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4467 set_locator_fullname>: New methods.
4468 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4469 Rename from tui_set_locator_fullname.
4470 (tui_locator_window::set_locator_info): Rename from
4471 tui_set_locator_info. Return bool.
4472 (tui_update_locator_fullname, tui_show_frame_info): Update.
4473
715bb467
TT
44742019-08-30 Tom Tromey <tom@tromey.com>
4475
4476 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4477
772f3f03
TT
44782019-08-30 Tom Tromey <tom@tromey.com>
4479
4480 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4481 call touchwin.
4482
108e13ab
TT
44832019-08-30 Tom Tromey <tom@tromey.com>
4484
4485 * tui/tui-wingeneral.c (box_win): Assume win_info and
4486 win_info->handle cannot be NULL.
4487
cdaa6eb4
TT
44882019-08-30 Tom Tromey <tom@tromey.com>
4489
4490 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4491 refresh_window>: Declare.
4492 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4493 resize.
4494 (tui_data_item_window::rerender): Rename from
4495 tui_display_register.
4496 (tui_data_item_window::refresh_window): New method.
4497 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4498 no-op.
4499
89df7f90
TT
45002019-08-30 Tom Tromey <tom@tromey.com>
4501
4502 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4503 regs_column_count, current_group>: Move later. Now private.
4504 <get_current_group>: New method.
4505 * tui/tui-regs.c (tui_reg_command): Update.
4506 * tui/tui-layout.c (tui_set_layout): Update.
4507
1bf2866a
TT
45082019-08-30 Tom Tromey <tom@tromey.com>
4509
4510 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4511 (tui_data_window::rerender): Don't call
4512 check_and_display_highlight_if_needed.
4513 (tui_data_window::refresh_all): Remove call to
4514 erase_data_content.
4515
0670413d
TT
45162019-08-30 Tom Tromey <tom@tromey.com>
4517
4518 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4519 (tui_data_window::display_registers_from)
4520 (tui_data_window::display_reg_element_at_line)
4521 (tui_data_window::display_registers_from_line): Remove checks of
4522 "empty".
4523
18bb55c7
TT
45242019-08-30 Tom Tromey <tom@tromey.com>
4525
4526 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4527 Don't declare.
4528 * tui/tui-regs.c (tui_data_window::show_registers): Call
4529 rerender.
4530 (tui_data_window::rerender): Rename from display_all_data.
4531 (tui_data_window::rerender): Remove old implementation.
4532
1f6d2f10
TT
45332019-08-30 Tom Tromey <tom@tromey.com>
4534
4535 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4536 text.
4537 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4538
16d01f9c
BW
45392019-08-29 Bernhard Wodok <barto@gmx.net>
4540 Sergio Durigan Junior <sergiodj@redhat.com>
4541
4542 PR win32/24284
4543 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4544
d8f27c60
AB
45452019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4546
4547 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4548 when searching for types.
4549
1f20c35e
AB
45502019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4551
4552 * f-lang.c (f_language_defn): Use f_print_typedef.
4553 * f-lang.h (f_print_typedef): Declare.
4554 * f-typeprint.c (f_print_typedef): Define.
4555
550105b7
CB
45562019-08-27 Christian Biesinger <cbiesinger@google.com>
4557
4558 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4559
4acfdd20
AB
45602019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4561
4562 * cli/cli-utils.c (info_print_options_defs): Delete.
4563 (make_info_print_options_def_group): Delete.
4564 (extract_info_print_options): Delete.
4565 (info_print_command_completer): Delete.
4566 (info_print_args_help): Add extra parameter, and optionally
4567 include text about -n flag.
4568 * cli/cli-utils.h (struct info_print_options): Delete.
4569 (extract_info_print_options): Delete declaration.
4570 (info_print_command_completer): Delete declaration.
4571 (info_print_args_help): Add extra parameter, extend header
4572 comment.
4573 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4574 search_symbols.
4575 * stack.c (struct info_print_options): New type.
4576 (info_print_options_defs): New file scoped variable.
4577 (make_info_print_options_def_group): New static function.
4578 (info_print_command_completer): New static function.
4579 (info_locals_command): Update to use new local functions.
4580 (info_args_command): Likewise.
4581 (_initialize_stack): Add extra parameter to calls to
4582 info_print_args_help.
4583 * symtab.c (search_symbols): Add extra parameter, use this to
4584 possibly excluse non-debug symbols.
4585 (symtab_symbol_info): Add extra parameter, which is passed on to
4586 search_symbols.
4587 (struct info_print_options): New type.
4588 (info_print_options_defs): New file scoped variable.
4589 (make_info_print_options_def_group): New static function.
4590 (info_print_command_completer): New static function.
4591 (info_variables_command): Update to use local functions, and pass
4592 extra parameter through to symtab_symbol_info.
4593 (info_functions_command): Likewise.
4594 (info_types_command): Pass additional argument through to
4595 symtab_symbol_info.
4596 (rbreak_command): Pass extra argument to search_symbols.
4597 (_initialize_symtab): Add extra arguments for calls to
4598 info_print_args_help, and update help text for 'info variables',
4599 'whereis', and 'info functions' commands.
4600 * symtab.h (search_symbols): Add extra argument to declaration.
4601 * NEWS: Mention new flags.
4602
9aa55206
CB
46032019-08-26 Christian Biesinger <cbiesinger@google.com>
4604
4605 * symtab.c (lookup_static_symbol): Call the new function (and move
4606 it down to be next to lookup_global_symbol).
4607 (struct global_sym_lookup_data): Add block_enum member and rename to...
4608 (struct global_or_static_sym_lookup_data): ...this.
4609 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4610 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4611 (lookup_symbol_global_or_static_iterator_cb): ...this.
4612 (lookup_global_or_static_symbol): New function.
4613 (lookup_global_symbol): Call new function.
4614
5c31b358
TV
46152019-08-26 Tom de Vries <tdevries@suse.de>
4616
4617 PR c++/24852
4618 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4619 when pc_probe.prob == NULL.
4620
23c13d42
SM
46212019-08-25 Simon Marchi <simon.marchi@efficios.com>
4622
4623 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4624 variable symbol_linkage to symbol_linkage_.
4625
beadd3e8
SM
46262019-08-25 Simon Marchi <simon.marchi@efficios.com>
4627
4628 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4629 represent whether the symbol is static, dynamic, or we don't
4630 know.
4631
e3ec872f
YS
46322019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4633
4634 * gdb/rx-tdep.c (rx_register_names): New.
4635 (rx_register_name): Delete.
4636 (rx_psw_type): Delete.
4637 (rx_fpsw_type): Delete.
4638 (rx_register_type): Delete.
4639 (rx_gdbarch_init): Convert target-descriptions.
4640 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4641 * gdb/features/Makefile: Add rx.xml.
4642 * gdb/features/rx.xml: New.
4643 * gdb/features/rx.c: Generated.
4644 * gdb/NEWS: Mention target description support.
4645
d0509ba4
CB
46462019-08-22 Christian Biesinger <cbiesinger@google.com>
4647
4648 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4649 *slot_ptr.
4650
2d41fa11
SDJ
46512019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4652
4653 * configure.ac: Don't check for 'dlfcn.h' (moved to
4654 gdbsupport/common.m4).
4655 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4656 'gdbsupport/'.
4657 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4658 * compile/compile-c-support.c: Include
4659 'gdbsupport/gdb-dlfcn.h'.
4660 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4661 * gdb-dlfcn.c: Move to...
4662 * gdbsupport/gdb-dlfcn.c: ... here.
4663 * gdb-dlfcn.h: Move to...
4664 * gdbsupport/gdb-dlfcn.h: ... here.
4665
de8af808
SL
46662019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4667
4668 * nios2-tdep.c (struct reg_value): Improve comments. Make
4669 the offset field signed.
4670
27204489
CB
46712019-08-22 Christian Biesinger <cbiesinger@google.com>
4672
4673 * python/lib/gdb/__init__.py (_execute_file): New function.
4674 * python/python.c (python_run_simple_file): Call gdb._execute_file
4675 on Windows.
4676
43771869
AB
46772019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4678
4679 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4680 all uses as this was never set to anything but a zero value.
4681
26c957f1
PA
46822019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4683
4684 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4685
c07aae6e
CB
46862019-08-21 Christian Biesinger <cbiesinger@google.com>
4687
4688 * tui/tui-data.h (tui_gen_win_info): Add an =default
4689 move constructor, required by some GCC versions.
4690
3960cb7a
JF
46912019-08-21 Jinke Fan <fanjinke51@yeah.net>
4692
4693 * go32-nat.c (go32_sysinfo): Add hygon_p.
4694
04c72a68
TT
46952019-08-20 Tom Tromey <tom@tromey.com>
4696
4697 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4698 line_from_reg_element_no, first_reg_element_no_inline,
4699 display_all_data, delete_data_content_windows,
4700 erase_data_content>: Now private.
4701
072272ce
TT
47022019-08-20 Tom Tromey <tom@tromey.com>
4703
4704 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4705 (tui_unhighlight_win, tui_highlight_win)
4706 (tui_win_info::make_window): Update.
4707 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4708
973961bd
TT
47092019-08-20 Tom Tromey <tom@tromey.com>
4710
4711 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4712 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4713 (MAX_PID_WIDTH): Move to tui-stack.c.
4714 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4715 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4716 (MAX_PID_WIDTH): Move from tui-data.h.
4717
ab0e1f1a
TT
47182019-08-20 Tom Tromey <tom@tromey.com>
4719
4720 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4721 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4722 (box_win): Update.
4723 (tui_gen_win_info::make_window): Rename from tui_make_window.
4724 (tui_win_info::make_window): New method.
4725 (tui_gen_win_info::make_visible): Update.
4726 * tui/tui-source.c (tui_source_window::set_contents): Update.
4727 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4728 (tui_data_window::display_registers_from): Update.
4729 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4730 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4731 Declare.
4732 <can_box>: Remove.
4733 <title>: Remove.
4734 (struct tui_win_info) <make_window>: Declare.
4735 <can_box>: Now virtual.
4736 <title>: New member.
4737 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4738 * tui/tui-command.c (tui_cmd_window::resize): Update.
4739
100c2bf3
TT
47402019-08-20 Tom Tromey <tom@tromey.com>
4741
4742 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4743 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4744 (tui_data_window::check_register_values): Update.
4745
fa4dc567
TT
47462019-08-20 Tom Tromey <tom@tromey.com>
4747
4748 * tui/tui-regs.h (struct tui_data_window): Use
4749 DISABLE_COPY_AND_ASSIGN.
4750 <regs_content>: Change type, removing unique_ptr.
4751 <tui_data_window>: Add move constructor.
4752 * tui/tui-regs.c (tui_data_window::show_registers)
4753 (tui_data_window::show_register_group)
4754 (tui_data_window::display_registers_from)
4755 (tui_data_window::display_registers_from)
4756 (tui_data_window::first_data_item_displayed)
4757 (tui_data_window::delete_data_content_windows)
4758 (tui_data_window::rerender, tui_data_window::refresh_window)
4759 (tui_data_window::check_register_values): Update.
4760
ca02d7c8
TT
47612019-08-20 Tom Tromey <tom@tromey.com>
4762
4763 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4764 show_register_group>: Declare.
4765 (tui_show_register_group): Don't declare.
4766 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4767 tui_show_registers.
4768 (tui_data_window::show_register_group): Rename from
4769 tui_show_register_group.
4770 (tui_data_window::check_register_values, tui_reg_command):
4771 Update.
4772 * tui/tui-layout.c (tui_set_layout): Update.
4773
63356bfd
TT
47742019-08-20 Tom Tromey <tom@tromey.com>
4775
4776 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4777 Declare.
4778 (tui_check_register_values): Don't declare.
4779 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4780 from tui_check_register_values.
4781 * tui/tui-hooks.c (tui_register_changed): Update.
4782
42cc14a7
TT
47832019-08-20 Tom Tromey <tom@tromey.com>
4784
4785 * tui/tui-regs.c (tui_reg_layout): Move later.
4786 (tui_show_registers): Don't enable TUI mode or change layout.
4787
b9ad3686
TT
47882019-08-20 Tom Tromey <tom@tromey.com>
4789
4790 * tui/tui-regs.h (struct tui_data_item_window)
4791 <~tui_data_item_window>: Remove.
4792 <content>: Now a unique_xmalloc_ptr.
4793 * tui/tui-regs.c (tui_register_format): Return a
4794 unique_xmalloc_ptr.
4795 (tui_get_register): Update.
4796 (~tui_data_item_window): Remove.
4797 (tui_data_window::display_registers_from, tui_display_register):
4798 Update.
4799 * tui/tui-io.h (tui_expand_tabs): Update.
4800 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4801 Remove "col" parameter.
4802
8e114aab
TT
48032019-08-20 Tom Tromey <tom@tromey.com>
4804
4805 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4806 field.
4807 * tui/tui-regs.c (~tui_data_item_window): Update.
4808
1a4f81dd
TT
48092019-08-20 Tom Tromey <tom@tromey.com>
4810
4811 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4812 earlier.
4813
0f8d8876
TT
48142019-08-20 Tom Tromey <tom@tromey.com>
4815
4816 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4817
605dc2c2
TT
48182019-08-20 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui-source.h (struct tui_source_window): Update.
4821 * tui/tui-regs.c (tui_show_registers): Update.
4822 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4823 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4824 (NO_REGS_STRING): Remove defines.
4825
aedbe3bb
CM
48262019-08-20 Conrad Meyer <cem@FreeBSD.org>
4827
4828 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4829 unnecessary thread walk if remote doesn't support the packet.
4830
7ce8f214
TT
48312019-08-19 Tom Tromey <tromey@adacore.com>
4832
4833 * python/py-value.c (value_has_field): Fix indentation.
4834
f21c2bd7
TT
48352019-08-19 Tom Tromey <tromey@adacore.com>
4836
4837 * printcmd.c (do_one_display, info_display_command): Update.
4838 * block.h (contained_in): Return bool. Add allow_nested
4839 parameter.
4840 * block.c (contained_in): Return bool. Add allow_nested
4841 parameter.
4842
d806ea2d
TT
48432019-08-19 Tom Tromey <tom@tromey.com>
4844
4845 * configure: Rebuild.
4846 * configure.ac: Disallow the combination of -static-libstdc++ and
4847 source highlight.
4848 * source-cache.c (get_language_name): Handle rust.
4849 (source_cache::get_source_lines): Ignore highlighting exceptions.
4850
398fdd60
TT
48512019-08-16 Tom Tromey <tom@tromey.com>
4852
4853 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4854 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4855 (struct tui_source_window_base) <make_visible, refresh_window,
4856 resize>: Remove methods.
4857 <execution_info>: Remove field.
4858 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4859 (tui_show_source_line, tui_source_window_base)
4860 (~tui_source_window_base): Update.
4861 (tui_source_window_base::resize)
4862 (tui_source_window_base::make_visible)
4863 (tui_source_window_base::refresh_window): Remove.
4864 (tui_source_window_base::update_exec_info): Update.
4865 * tui/tui-source.c (tui_source_window::set_contents): Update.
4866 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4867
e699d331
TT
48682019-08-16 Tom Tromey <tom@tromey.com>
4869
4870 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4871 deprecated_query_hook.
4872
bb01dbfc
TT
48732019-08-16 Tom Tromey <tom@tromey.com>
4874
4875 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4876 (tui_update_source_windows_with_line): Update.
4877 * tui/tui-source.h (struct tui_source_window)
4878 <show_symtab_source>: Declare.
4879 (tui_show_symtab_source): Don't declare.
4880 * tui/tui-source.c (tui_show_symtab_source): Rename from
4881 tui_show_symtab_source.
4882
81c82c4b
TT
48832019-08-16 Tom Tromey <tom@tromey.com>
4884
4885 * tui/tui-winsource.h (struct tui_source_window_base)
4886 <set_contents>: Declare.
4887 * tui/tui-winsource.c
4888 (tui_source_window_base::update_source_window_as_is): Update.
4889 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4890 Declare.
4891 (tui_set_source_content): Don't declare.
4892 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4893 tui_set_source_content.
4894 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4895 Declare.
4896 (tui_set_disassem_content): Don't declare.
4897 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4898 tui_set_disassem_content.
4899
2ddaf614
TT
49002019-08-16 Tom Tromey <tom@tromey.com>
4901
4902 * tui/tui-winsource.h (struct tui_source_window_base)
4903 <update_breakpoint_info>: Declare.
4904 (tui_update_breakpoint_info): Don't declare.
4905 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4906 (tui_update_all_breakpoint_info): Update.
4907 (tui_source_window_base::update_breakpoint_info): Rename from
4908 tui_update_breakpoint_info.
4909 (tui_source_window_base::update_exec_info): Update.
4910
017f9828
TT
49112019-08-16 Tom Tromey <tom@tromey.com>
4912
4913 * tui/tui-winsource.h (struct tui_source_window_base)
4914 <update_source_window>: Declare.
4915 (tui_update_source_window): Don't declare.
4916 * tui/tui-winsource.c
4917 (tui_source_window_base::update_source_window): Rename from
4918 tui_update_source_window.
4919 (tui_source_window_base::rerender): Update.
4920 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4921 * tui/tui-disasm.c (tui_show_disassem)
4922 (tui_show_disassem_and_update_source)
4923 (tui_disasm_window::maybe_update): Update.
4924
ed8358e9
TT
49252019-08-16 Tom Tromey <tom@tromey.com>
4926
4927 * tui/tui-winsource.h (struct tui_source_window_base)
4928 <update_source_window_as_is>: Declare.
4929 (tui_update_source_window_as_is): Don't declare.
4930 * tui/tui-winsource.c (tui_update_source_window): Update
4931 (tui_source_window_base::update_source_window_as_is): Rename from
4932 tui_update_source_window_as_is.
4933 (tui_source_window_base::refill): Update.
4934 * tui/tui-source.c (tui_show_symtab_source): Update.
4935 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4936 Update.
4937
20149b6b
TT
49382019-08-16 Tom Tromey <tom@tromey.com>
4939
4940 * tui/tui-winsource.h (tui_update_source_window)
4941 (tui_update_source_window_as_is): Remove "noerror" parameter.
4942 * tui/tui-winsource.c (tui_update_source_window)
4943 (tui_update_source_window_as_is): Remove "noerror" parameter.
4944 (tui_update_source_windows_with_addr)
4945 (tui_update_source_windows_with_line)
4946 (tui_source_window_base::rerender)
4947 (tui_source_window_base::refill): Update.
4948 * tui/tui-source.h (tui_set_source_content)
4949 (tui_show_symtab_source): Remove "noerror" parameter.
4950 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4951 parameter.
4952 (tui_show_symtab_source): Likewise.
4953 (tui_source_window::maybe_update): Update.
4954 * tui/tui-disasm.c (tui_show_disassem)
4955 (tui_show_disassem_and_update_source)
4956 (tui_disasm_window::do_scroll_vertical)
4957 (tui_disasm_window::maybe_update): Update.
4958
2d83e710
TT
49592019-08-16 Tom Tromey <tom@tromey.com>
4960
4961 * tui/tui.c (tui_is_window_visible): Update.
4962 * tui/tui-wingeneral.c (tui_make_window)
4963 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4964 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4965 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4966 (tui_set_win_height_command, parse_scrolling_args): Update.
4967 * tui/tui-source.c (tui_source_window::style_changed): Update.
4968 * tui/tui-regs.c (tui_show_registers)
4969 (tui_data_window::first_data_item_displayed)
4970 (tui_data_window::delete_data_content_windows)
4971 (tui_check_register_values, tui_reg_command): Update.
4972 * tui/tui-disasm.c (tui_show_disassem): Update.
4973 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4974 method.
4975 <is_visible>: Remove field.
4976 * tui/tui-data.c (tui_next_win, tui_prev_win)
4977 (tui_delete_invisible_windows): Update.
4978
d4ab829a
TT
49792019-08-16 Tom Tromey <tom@tromey.com>
4980
4981 * tui/tui-winsource.h (struct tui_source_window_base)
4982 <m_has_locator>: Remove.
4983 * tui/tui-layout.c (show_source_disasm_command, show_data)
4984 (show_source_or_disasm_and_command): Update.
4985
aa7ca1bb
AH
49862019-08-16 Alan Hayward <alan.hayward@arm.com>
4987
4988 * NEWS (Other MI changes): New subsection.
4989 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4990 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4991 * arch-utils.c (default_get_pc_address_flags): New function.
4992 * arch-utils.h (default_get_pc_address_flags): New declaration.
4993 * gdbarch.sh: Add get_pc_address_flags.
4994 * gdbarch.c: Regenerate.
4995 * gdbarch.h: Likewise.
4996 * stack.c (print_pc): New function.
4997 (print_frame_info) (print_frame): Call print_pc.
4998
6eac171f
TV
49992019-08-16 Tom de Vries <tdevries@suse.de>
5000
5001 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5002 print_objfile_section_info.
5003
3df505f6
TT
50042019-08-15 Tom Tromey <tom@tromey.com>
5005
5006 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5007 calling update_cmdwin_start_line.
5008 * tui/tui-winsource.h (struct tui_source_window_base)
5009 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5010 <rerender>: Declare.
5011 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5012 Call rerender.
5013 (tui_source_window_base::set_new_height): Remove.
5014 (tui_source_window_base::rerender): Rename from
5015 do_make_visible_with_new_height.
5016 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5017 resize method.
5018 (tui_win_info::make_invisible_and_set_new_height)
5019 (tui_win_info::make_visible_with_new_height): Remove.
5020 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5021 Declare.
5022 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5023 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5024 do_make_visible_with_new_height>: Don't declare.
5025 <rerender>: Declare.
5026 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5027 set_new_height.
5028 (tui_data_window::do_make_visible_with_new_height): Remove.
5029 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5030 call tui_show_locator_content.
5031 (tui_gen_win_info::resize): Call rerender.
5032 (show_source_or_disasm_and_command): Don't call
5033 tui_show_locator_content.
5034 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5035 method.
5036 (struct tui_win_info) <rerender>: Declare.
5037 <set_new_height, make_invisible_and_set_new_height,
5038 make_visible_with_new_height>: Don't declare.
5039 * tui/tui-data.c (tui_win_list::rerender): New method.
5040 * tui/tui-command.h (struct tui_cmd_window)
5041 <do_make_visible_with_new_height>: Don't declare.
5042 * tui/tui-command.c
5043 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5044
272560b5
TT
50452019-08-15 Tom Tromey <tromey@adacore.com>
5046
5047 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5048 * ada-lang.c (ada_enum_name): Likewise.
5049
08235187
CB
50502019-08-15 Christian Biesinger <cbiesinger@google.com>
5051
5052 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5053 leading underscore.
5054 (GdbOutputErrorFile): Likewise.
5055 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5056 accordingly.
5057 (execute_unwinders): Rename to have a leading underscore.
5058 (auto_load_packages): Likewise.
5059 (global scope): Adjust call to auto_load_packages accordingly.
5060 (GdbSetPythonDirectory): Likewise.
5061 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5062 instead of execute_unwinders.
5063
db502012
TT
50642019-08-15 Tom Tromey <tom@tromey.com>
5065
5066 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5067 (show_data): Don't change window visibility.
5068 (tui_gen_win_info::resize): Remove special case for command
5069 window. Use wresize, when available.
5070 (show_source_or_disasm_and_command): Don't change window
5071 visibility.
5072 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5073 <make_visible>: New method.
5074 * tui/tui-command.c (tui_cmd_window::resize): New method.
5075
3891b65e
TT
50762019-08-15 Tom Tromey <tom@tromey.com>
5077
5078 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5079 (struct tui_source_windows): New.
5080 * tui/tui-winsource.c (tui_display_main): Update.
5081 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5082 (new_height_ok, parse_scrolling_args): Update.
5083 * tui/tui-layout.c (show_layout, show_data): Update.
5084 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5085 (tui_add_to_source_windows): Don't declare.
5086 * tui/tui-data.c (source_windows, tui_source_windows)
5087 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5088
ee556432
TT
50892019-08-15 Tom Tromey <tom@tromey.com>
5090
5091 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5092 Rename from reset.
5093 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5094 * tui/tui-layout.c (show_source_disasm_command, show_data):
5095 Update.
5096 (tui_gen_win_info::resize): Rename.
5097 (show_source_or_disasm_and_command): Update.
5098 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5099 reset.
5100
46f438e3
TT
51012019-08-15 Tom Tromey <tom@tromey.com>
5102
5103 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5104 * tui/tui-interp.c (tui_interp::init): Don't call
5105 tui_initialize_static_data.
5106 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5107
f4ce562c
TT
51082019-08-15 Tom Tromey <tom@tromey.com>
5109
5110 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5111 examine tui_win_list.
5112
c398c3d0
TT
51132019-08-15 Tom Tromey <tom@tromey.com>
5114
5115 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5116 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5117 tui_clear_source_content.
5118 (tui_clear_source_content): Remove.
5119 (tui_source_window_base::do_erase_source_content): Hoist call to
5120 content.clear().
5121 * tui/tui-stack.c (tui_show_frame_info): Don't call
5122 tui_clear_source_content.
5123
e25d2004
TT
51242019-08-15 Tom Tromey <tom@tromey.com>
5125
5126 * tui/tui-winsource.h (struct tui_source_window_base)
5127 <do_erase_source_content>: New method.
5128 <erase_source_content>: New method.
5129 (tui_erase_source_content): Don't declare.
5130 * tui/tui-winsource.c (tui_clear_source_content): Update.
5131 (tui_source_window_base::do_erase_source_content): Rename from
5132 tui_erase_source_content.
5133 (tui_source_window_base::show_source_content): Update.
5134 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5135 * tui/tui-source.h (struct tui_source_window)
5136 <erase_source_content>: New method.
5137 * tui/tui-disasm.h (struct tui_disasm_window)
5138 <erase_source_content>: New method.
5139
002f15c2
TT
51402019-08-15 Tom Tromey <tom@tromey.com>
5141
5142 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5143 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5144 constructor.
5145 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5146 * tui/tui-source.c (tui_set_source_content): Update.
5147 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5148
c9033fe8
TT
51492019-08-15 Tom Tromey <tom@tromey.com>
5150
5151 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5152 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5153 tui-source.c.
5154 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5155 Declare.
5156 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5157 method.
5158 (tui_source_window::maybe_update): Update.
5159
088f37dd
TT
51602019-08-15 Tom Tromey <tom@tromey.com>
5161
5162 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5163 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5164 tui-disasm.c.
5165 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5166 Declare.
5167 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5168 method.
5169 (tui_disasm_window::maybe_update): Update.
5170
a54700c6
TT
51712019-08-15 Tom Tromey <tom@tromey.com>
5172
5173 * tui/tui-winsource.h (struct tui_source_window_base)
5174 <maybe_update>: Declare.
5175 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5176 method.
5177 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5178 Declare.
5179 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5180 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5181 Declare.
5182 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5183
e2a678a5
TT
51842019-08-15 Tom Tromey <tom@tromey.com>
5185
5186 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5187
f2dda477
TT
51882019-08-15 Tom Tromey <tom@tromey.com>
5189
5190 * tui/tui-wingeneral.c: Include tui-stack.h.
5191 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5192 (struct tui_locator_window): Move from tui-data.h.
5193 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5194 (tui_initialize_static_data): Move from tui-data.c.
5195 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5196 (struct tui_locator_window): Move to tui-stack.c.
5197 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5198 (tui_initialize_static_data): Move to tui-stack.c.
5199
ed4a1084
TT
52002019-08-15 Tom Tromey <tom@tromey.com>
5201
5202 * tui/tui-layout.c (show_source_disasm_command)
5203 (show_source_or_disasm_and_command): Use make_visible method, not
5204 tui_make_window.
5205 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5206 Remove.
5207
65962b20
TT
52082019-08-15 Tom Tromey <tom@tromey.com>
5209
5210 * tui/tui-wingeneral.h (tui_make_window): Update.
5211 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5212 parameter.
5213 (tui_gen_win_info::make_visible): Update.
5214 * tui/tui-regs.c (tui_data_window::display_registers_from):
5215 Update.
5216 * tui/tui-layout.c (show_source_disasm_command)
5217 (show_source_or_disasm_and_command): Update.
5218 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5219 (enum tui_box): Remove.
5220 (struct tui_win_info) <can_box>: New method.
5221 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5222 method.
5223
2208ee91
TV
52242019-08-15 Tom de Vries <tdevries@suse.de>
5225
5226 * linux-nat-trad.c: Include gdbarch.h.
5227
75faf5c4
AH
52282019-08-14 Alan Hayward <alan.hayward@arm.com>
5229
5230 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5231 register sizes.
5232
b1c896b3
TT
52332019-08-14 Tom Tromey <tromey@adacore.com>
5234
5235 * darwin-nat.c: Include gdbarch.h.
5236 * darwin-nat-info.c: Include gdbarch.h.
5237
6405cd73
TT
52382019-08-13 Tom Tromey <tom@tromey.com>
5239
5240 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5241 Remove.
5242 * tui/tui-data.c (tui_initialize_static_data): Update.
5243
5216580d
TT
52442019-08-13 Tom Tromey <tom@tromey.com>
5245
5246 * tui/tui-winsource.h (struct tui_exec_info_window)
5247 <~tui_exec_info_window, maybe_allocate_content, get_content,
5248 m_content>: Remove.
5249 (struct tui_source_window_base) <set_exec_info_content,
5250 show_exec_info_content>: Don't declare.
5251 * tui/tui-winsource.c
5252 (tui_exec_info_window::maybe_allocate_content): Remove.
5253 (tui_source_window_base::update_exec_info): Rename from
5254 set_exec_info_content.
5255 (tui_source_window_base::show_exec_info_content)
5256 (tui_source_window_base::update_exec_info): Remove.
5257
93858ad3
TT
52582019-08-13 Tom Tromey <tom@tromey.com>
5259
5260 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5261 declare.
5262 * tui/tui-winsource.c (tui_update_source_window_as_is)
5263 (tui_update_source_windows_with_addr, tui_erase_source_content):
5264 Update.
5265 (tui_clear_exec_info_content): Remove.
5266
e321e7ce
TT
52672019-08-13 Tom Tromey <tom@tromey.com>
5268
5269 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5270 declare.
5271 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5272 call tui_erase_exec_info_content.
5273 (tui_clear_exec_info_content): Rename from
5274 tui_erase_exec_info_content.
5275 (tui_clear_exec_info_content): Delete.
5276
8270ac62
TT
52772019-08-13 Tom Tromey <tom@tromey.com>
5278
5279 * tui/tui-winsource.h (struct tui_source_window_base)
5280 <show_exec_info_content>: Declare.
5281 (tui_show_exec_info_content): Don't declare.
5282 * tui/tui-winsource.c
5283 (tui_source_window_base::show_exec_info_content): Rename from
5284 tui_show_exec_info_content.
5285 (tui_source_window_base::update_exec_info): Update.
5286
7b56485d
TT
52872019-08-13 Tom Tromey <tom@tromey.com>
5288
5289 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5290 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5291 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5292 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5293 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5294 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5295 ... here.
5296
7ba913dc
TT
52972019-08-13 Tom Tromey <tom@tromey.com>
5298
5299 * tui/tui-winsource.h (struct tui_source_window_base)
5300 <update_exec_info>: Declare.
5301 (tui_update_exec_info): Don't declare.
5302 * tui/tui-winsource.c (tui_update_source_window_as_is)
5303 (tui_source_window_base::refresh_all)
5304 (tui_update_all_breakpoint_info): Update.
5305 (tui_source_window_base::update_exec_info): Rename from
5306 tui_update_exec_info.
5307 * tui/tui-stack.c (tui_show_frame_info): Update.
5308
37a4a131
TT
53092019-08-13 Tom Tromey <tom@tromey.com>
5310
5311 * tui/tui-winsource.h (struct tui_source_window_base)
5312 <set_exec_info_content>: Declare.
5313 (tui_set_exec_info_content): Don't declare.
5314 * tui/tui-winsource.c
5315 (tui_source_window_base::set_exec_info_content): Rename from
5316 tui_set_exec_info_content.
5317 (tui_update_exec_info): Update.
5318
0bd27e07
TT
53192019-08-13 Tom Tromey <tom@tromey.com>
5320
5321 * tui/tui-winsource.h (struct tui_source_window_base)
5322 <show_source_content>: Declare.
5323 (tui_show_source_content): Don't declare.
5324 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5325 (tui_source_window_base::show_source_content): Rename from
5326 tui_show_source_content.
5327 (tui_source_window_base::refresh_all): Update.
5328 * tui/tui-layout.c (show_source_disasm_command)
5329 (show_source_or_disasm_and_command): Update.
5330
b4ef5aeb
TT
53312019-08-13 Tom Tromey <tom@tromey.com>
5332
5333 * tui/tui-winsource.c (tui_erase_source_content)
5334 (tui_show_source_content, tui_source_window_base::refresh_all):
5335 Update.
5336 * tui/tui-wingeneral.h
5337 (tui_check_and_display_highlight_if_needed): Don't declare.
5338 * tui/tui-wingeneral.c
5339 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5340 check_and_display_highlight_if_needed.
5341 * tui/tui-win.c (tui_rehighlight_all)
5342 (tui_win_info::make_visible_with_new_height): Update.
5343 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5344 (tui_data_window::erase_data_content)
5345 (tui_data_window::display_all_data): Update.
5346 * tui/tui-data.h (struct tui_win_info)
5347 <check_and_display_highlight_if_needed>: Declare.
5348
fede5273
TT
53492019-08-13 Tom Tromey <tom@tromey.com>
5350
5351 * tui/tui-win.c (tui_resize_all): Call
5352 tui_delete_invisible_windows.
5353 * tui/tui-layout.c (show_layout): Call
5354 tui_delete_invisible_windows.
5355 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5356 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5357
22c3f490
TT
53582019-08-13 Tom Tromey <tom@tromey.com>
5359
5360 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5361 tui_add_win_to_layout.
5362
16cb7910
TT
53632019-08-13 Tom Tromey <tom@tromey.com>
5364
5365 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5366 * tui/tui-layout.c (tui_default_win_height): Now static.
5367
cc0c3ffb
TT
53682019-08-13 Tom Tromey <tom@tromey.com>
5369
5370 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5371 single switch.
5372 (show_source_disasm_command, show_source_or_disasm_and_command):
5373 Don't check current layout.
5374
3f3ffe54
TT
53752019-08-13 Tom Tromey <tom@tromey.com>
5376
5377 * tui/tui-wingeneral.c (make_all_visible): Remove.
5378 (tui_make_all_invisible): Simplify.
5379 * tui/tui-layout.c (tui_make_all_invisible): Move from
5380 tui-wingeneral.c; simplify.
5381 (show_layout): Hoist call to tui_make_all_invisible.
5382 (show_data): Don't call tui_make_all_invisible.
5383
69258091
TT
53842019-08-13 Tom Tromey <tom@tromey.com>
5385
5386 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5387 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5388
62cf57fe
TT
53892019-08-13 Tom Tromey <tom@tromey.com>
5390
5391 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5392 tui-data.c.
5393 (show_source_disasm_command, show_data)
5394 (show_source_or_disasm_and_command): Don't use
5395 tui_set_current_layout_to.
5396 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5397 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5398 tui-layout.c.
5399 (tui_set_current_layout_to): Remove.
5400
2afade5d
TT
54012019-08-13 Tom Tromey <tom@tromey.com>
5402
5403 * tui/tui-layout.c (tui_set_layout): Update.
5404 * tui/tui-data.h (struct tui_layout_def): Remove.
5405 (tui_layout_def): Don't declare.
5406 * tui/tui-data.c (layout_def): Remove.
5407 (tui_layout_def): Remove.
5408
a3504e96
TT
54092019-08-13 Tom Tromey <tom@tromey.com>
5410
5411 * tui/tui-winsource.h (struct tui_source_window_base)
5412 <clear_detail>: No longer "override".
5413 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5414 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5415 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5416 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5417 Remove.
5418 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5419
29c92911
TT
54202019-08-13 Tom Tromey <tromey@adacore.com>
5421
5422 * tracepoint.c: Don't include readline.h or history.h.
5423
86c6b807
TT
54242019-08-12 Tom Tromey <tom@tromey.com>
5425
5426 * configure: Rebuild.
5427 * configure.ac: Check for readline 7.
5428 * NEWS: Mention readline 7 requirement.
5429 * README: Update.
5430
5db2718c
TT
54312019-08-12 Tom Tromey <tom@tromey.com>
5432
5433 * mingw-hdep.c (gdb_select): Remove readline hack.
5434
dac36daf
PFC
54352019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5436
5437 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5438 when the function fails.
5439
1022c627
AA
54402019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5441
5442 * s390-tdep.c (s390_type_align): New function.
5443 (s390_gdbarch_init): Set it as type_align gdbarch method.
5444
eba4caf2
TV
54452019-08-09 Tom de Vries <tdevries@suse.de>
5446
5447 PR gdb/24591
5448 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5449 pc_low with relocation offset.
5450
123cd851
TT
54512019-08-07 Tom Tromey <tromey@adacore.com>
5452
5453 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5454 (print_frame_args): Update.
5455 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5456 Update.
5457 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5458 * frame.h (struct frame_arg): Add initializers.
5459 <error>: Now a unique_xmalloc_ptr.
5460
3d31bc39
AH
54612019-08-07 Alan Hayward <alan.hayward@arm.com>
5462
5463 * NEWS: Expand the Pointer Authentication entry.
5464 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5465 (aarch64_frame_unmask_lr): ... to this.
5466 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5467 Call aarch64_frame_unmask_lr.
5468 * frame.c (struct frame_info): Add "masked" variable.
5469 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5470 (fprint_frame): Check for masked pc.
5471 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5472 declarations.
5473 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5474 * stack.c (print_frame): Check for masked pc.
5475
0cf9feb9
TT
54762019-08-06 Tom Tromey <tom@tromey.com>
5477
5478 * stabsread.c (patch_block_stabs, read_one_struct_field)
5479 (read_enum_type): Use obstack_strndup.
5480 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5481 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5482 * dwarf2read.c (guess_full_die_structure_name)
5483 (anonymous_struct_prefix): Use obstack_strndup.
5484 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5485 * c-exp.y (yylex): Use obstack_strndup.
5486 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5487 (write_var_or_type): Use obstack_strndup.
5488
efba19b0
TT
54892019-08-06 Tom Tromey <tom@tromey.com>
5490
5491 * symfile.c (reread_symbols): Use obstack_strdup.
5492 * stabsread.c (read_type): Use obstack_strdup.
5493 * gdb_obstack.h (obstack_strdup): New overload.
5494 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5495 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5496 (dwarf2_canonicalize_name): Use obstack_strdup.
5497 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5498 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5499 Use obstack_strdup.
5500
f25102f7
TT
55012019-08-06 Tom Tromey <tom@tromey.com>
5502
5503 * gdb_obstack.h (obstack_strdup): Define.
5504 * gdb_obstack.c (obstack_strdup): Don't define.
5505
021887d8
TT
55062019-08-06 Tom Tromey <tom@tromey.com>
5507
5508 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5509 obstack_strdup.
5510 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5511 obstack_strdup.
5512 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5513 * stabsread.c (common_block_start): Use obstack_strdup.
5514 * objfiles.c (set_objfile_main_name, objfile): Use
5515 obstack_strdup.
5516 * namespace.c (add_using_directive): Use obstack_strdup.
5517 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5518 * jit.c (finalize_symtab): Use obstack_strdup.
5519 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5520 (guess_partial_die_structure_name, partial_die_info::fixup)
5521 (dwarf2_name): Use obstack_strdup.
5522 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5523 obstack_strdup.
5524 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5525 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5526 obstack_strdup.
5527 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5528
d2834edc
PW
55292019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5530
5531 * unittests/help-doc-selftests.c: New file.
5532 * Makefile.in: Add the new file.
5533
590042fc
PW
55342019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5535
5536 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5537 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5538 the full first line, except when FOR_VALUE_PREFIX. In this case,
5539 the trailing '.' is not output, and the first character is uppercased.
5540 (print_help_for_command): Update call to print_doc_line.
5541 (print_doc_of_command): Likewise.
5542 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5543 * cli/cli-option.c (append_indented_doc): Do not append newline.
5544 (build_help_option): Append newline after first appended_indented_doc
5545 only if a second call is done.
5546 (build_help): Append 2 new lines before each option, except the first
5547 one.
5548 * compile/compile.c (_initialize_compile): Add new lines after
5549 %OPTIONS%, when not at the end of the help.
5550 Change help doc or code
5551 producing the help doc to respect the invariants.
5552 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5553 Also removed the new line after 'Options:', as all other commands
5554 do not put an empty line between 'Options:' and the first option.
5555 * printcmd.c (_initialize_printcmd): Likewise.
5556 * stack.c (_initialize_stack): Likewise.
5557 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5558 incorrectly telling COMMAND is optional.
5559 * ada-lang.c (_initialize_ada_language): Change help doc or code
5560 producing the help doc to respect the invariants.
5561 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5562 * breakpoint.c (_initialize_breakpoint): Likewise.
5563 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5564 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5565 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5566 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5567 _initialize_cli_style): Likewise.
5568 * corelow.c (core_target_info): Likewise.
5569 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5570 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5571 * filesystem.c (_initialize_filesystem): Likewise.
5572 * frame.c (_initialize_frame): Likewise.
5573 * gnu-nat.c (add_task_commands): Likewise.
5574 * infcall.c (_initialize_infcall): Likewise.
5575 * infcmd.c (_initialize_infcmd): Likewise.
5576 * interps.c (_initialize_interpreter): Likewise.
5577 * language.c (_initialize_language): Likewise.
5578 * linux-fork.c (_initialize_linux_fork): Likewise.
5579 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5580 * maint.c (_initialize_maint_cmds): Likewise.
5581 * memattr.c (_initialize_mem): Likewise.
5582 * printcmd.c (_initialize_printcmd): Likewise.
5583 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5584 _RegEx): Likewise.
5585 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5586 * record-btrace.c (_initialize_record_btrace): Likewise.
5587 * record-full.c (_initialize_record_full): Likewise.
5588 * record.c (_initialize_record): Likewise.
5589 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5590 * regcache.c (_initialize_regcache): Likewise.
5591 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5592 _initialize_remote): Likewise.
5593 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5594 * serial.c (_initialize_serial): Likewise.
5595 * skip.c (_initialize_step_skip): Likewise.
5596 * source.c (_initialize_source): Likewise.
5597 * stack.c (_initialize_stack): Likewise.
5598 * symfile.c (_initialize_symfile): Likewise.
5599 * symtab.c (_initialize_symtab): Likewise.
5600 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5601 * top.c (init_main): Likewise.
5602 * tracefile-tfile.c (tfile_target_info): Likewise.
5603 * tracepoint.c (_initialize_tracepoint): Likewise.
5604 * tui/tui-win.c (_initialize_tui_win): Likewise.
5605 * utils.c (add_internal_problem_command): Likewise.
5606 * valprint.c (value_print_option_defs): Likewise.
5607
404f2902
FCE
56082019-08-06 Frank Ch. Eigler <fche@redhat.com>
5609
5610 PR build/24886
5611 * configure.ac: Drop enable-libmcheck support.
5612 * configure, config.in: Rebuild.
5613 * libmcheck.m4: Remove.
5614 * acinclude.m4: Don't include it.
5615 * Makefile.in: Don't distribute it.
5616 * top.c (print_gdb_configuration): Don't mention it.
5617
046bebe1
TT
56182019-08-06 Tom Tromey <tom@tromey.com>
5619
5620 * utils.c (set_output_style): Sometimes pass stream to
5621 emit_style_escape.
5622 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5623 * record-btrace.c (btrace_insn_history): Update.
5624 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5625 method.
5626 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5627 Update initializers.
5628 <m_uiout>: New field.
5629 <m_di>: Move lower.
5630 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5631 Remove "uiout" parameter.
5632 (dump_insns): Update.
5633 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5634 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5635
ddbcedf5
CB
56362019-08-06 Christian Biesinger <cbiesinger@google.com>
5637
5638 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5639 (error_in_psymtab_expansion): Likewise.
5640 (lookup_symbol_via_quick_fns): Likewise.
5641 (basic_lookup_transparent_type_quick): Likewise.
5642 (basic_lookup_transparent_type_1): Likewise.
5643
b08b16c8
TT
56442019-08-06 Tom Tromey <tromey@adacore.com>
5645
5646 * source.c (last_source_error): Now bool.
5647 (print_source_lines_base): Make "noprint" bool. Only open
5648 source file when last_source_visited changes.
5649
cb44333d
TT
56502019-08-06 Tom Tromey <tromey@adacore.com>
5651
5652 * annotate.c (annotate_source_line): Use g_source_cache.
5653 * source-cache.c (source_cache::get_plain_source_lines): Change
5654 parameters. Populate m_offset_cache.
5655 (source_cache::ensure): New method.
5656 (source_cache::get_line_charpos): New method.
5657 (extract_lines): Move lower. Change parameters.
5658 (source_cache::get_source_lines): Move lower.
5659 * source-cache.h (class source_cache): Update comment.
5660 <get_line_charpos>: New method.
5661 <get_source_lines>: Update comment.
5662 <clear>: Clear m_offset_cache.
5663 <get_plain_source_lines>: Change parameters.
5664 <ensure>: New method
5665 <m_offset_cache>: New member.
5666 * source.c (forget_cached_source_info_for_objfile): Update.
5667 (info_source_command): Use g_source_cache.
5668 (find_source_lines, open_source_file_with_line_charpos): Remove.
5669 (print_source_lines_base, search_command_helper): Use g_source_cache.
5670 * source.h (open_source_file_with_line_charpos): Don't declare.
5671 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5672 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5673 Use g_source_cache.
5674
872dceaa
TT
56752019-08-06 Tom Tromey <tromey@adacore.com>
5676
5677 * source-cache.c (source_cache::get_plain_source_lines):
5678 Remove "first_line" and "last_line" parameters.
5679 (source_cache::get_source_lines): Cache plain text.
5680 * source-cache.h (class source_cache)
5681 <get_plain_source_lines>: Update.
5682
269249d9
TT
56832019-08-06 Tom Tromey <tromey@adacore.com>
5684
5685 * source-cache.c (extract_lines): No longer a method.
5686 Changed type of parameter. Include final newline.
5687 (selftests::extract_lines_test): New function.
5688 (_initialize_source_cache): Likewise.
5689 * source-cache.h (class source_cache)
5690 <extract_lines>: Don't declare.
5691
c0e8dcd8
TT
56922019-08-06 Tom Tromey <tromey@adacore.com>
5693
5694 * breakpoint.c (init_breakpoint_sal): Update.
5695 (breakpoint): Update.
5696 * breakpoint.h (struct breakpoint) <filter>: Now a
5697 unique_xmalloc_ptr.
5698
0b27c27d
CB
56992019-08-05 Christian Biesinger <cbiesinger@google.com>
5700
5701 * NEWS: Mention dictionary access on blocks.
5702 * python/py-block.c (blpy_getitem): New function.
5703 (block_object_as_mapping): New struct.
5704 (block_object_type): Use new struct for tp_as_mapping field.
5705
4ee94178
CB
57062019-08-05 Christian Biesinger <cbiesinger@google.com>
5707
5708 * objfiles.h (objfile): Add a comment describing partial symbols.
5709
8abfcabc
TT
57102019-08-05 Tom Tromey <tromey@adacore.com>
5711
5712 * compile/compile.c (_initialize_compile): Use _(), not N_().
5713 * thread.c (_initialize_thread): Use _(), not N_().
5714 * stack.c (_initialize_stack): Use _(), not N_().
5715 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5716
2b79f376
SM
57172019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5718
5719 * dwarf2read.c (struct dw2_symtab_iterator):
5720 <want_specific_block>: Remove.
5721 <block_index>: Change type to gdb::optional.
5722 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5723 change type of BLOCK_INDEX parameter to gdb::optional.
5724 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5725 (dw2_lookup_symbol): Don't pass argument for
5726 WANT_SPECIFIC_BLOCK.
5727 (dw2_expand_symtabs_for_function): Don't pass argument for
5728 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5729 (class dw2_debug_names_iterator)
5730 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5731 parameter, change BLOCK_INDEX type to gdb::optional.
5732 <m_want_specific_block>: Remove.
5733 <m_block_index>: Change type to gdb::optional.
5734 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5735 gdb::optional. Re-write in function of gdb::optional.
5736 (dw2_debug_names_lookup_symbol): Don't pass argument for
5737 WANT_SPECIFIC_BLOCK.
5738 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5739 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5740 BLOCK_INDEX.
5741
ae60f04e
PW
57422019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5743
5744 * NEWS: Mention changes to "info sources" command.
5745
28cd9371
PW
57462019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5747
5748 * symtab.c (filename_partial_match_opts): New struct type.
5749 (struct output_source_filename_data): New members
5750 regexp, c_regexp, partial_match.
5751 (output_source_filename): Use new members to decide to print file.
5752 (info_sources_option_defs): New variable.
5753 (make_info_sources_options_def_group, print_info_sources_header,
5754 info_sources_command_completer):
5755 New functions.
5756 (info_sources_command): Read new optional arguments.
5757 (_initialize_symtab): Update info sources help.
5758
ca683e3a
AO
57592019-08-02 Alexandre Oliva <oliva@adacore.com>
5760
5761 * ada-lang.c (exception_support_info_v0): Renamed from...
5762 (default_exception_support_info): ... this. Create new
5763 definition for v1.
5764 (ada_has_this_exception_support): Look up catch_handlers_sym.
5765 (ada_exception_support_info_sniffer): Try v0 after default.
5766
f1264162
TT
57672019-08-01 Tom Tromey <tromey@adacore.com>
5768
5769 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5770 gdbarch.h.
5771
0a7b2485
CB
57722019-08-01 Christian Biesinger <cbiesinger@google.com>
5773
5774 * s12z-tdep.c: Fix include path for s12z-opc.h.
5775
c6bdbeb7
AH
57762019-08-01 Alan Hayward <alan.hayward@arm.com>
5777
5778 * NEWS: Require GNU make 3.82.
5779
a2bd7b82
TT
57802019-07-16 Tom Tromey <tom@tromey.com>
5781
5782 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5783 declare.
5784
aa3b6533
TT
57852019-07-30 Tom Tromey <tromey@adacore.com>
5786
5787 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5788
a1530dc7
KB
57892019-07-30 Kevin Buettner <kevinb@redhat.com>
5790
5791 * printcmd.c (print_address_symbolic): Print negative offsets.
5792 (build_address_symbolic): Force signed arithmetic when computing
5793 offset.
5794
2906593f
CB
57952019-07-30 Christian Biesinger <cbiesinger@google.com>
5796
5797 PR/24474: Add a function to lookup static variables.
5798 * NEWS: Mention this new function.
5799 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5800 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5801 * python/python.c (python_GdbMethods): Add new function.
5802
c620ed88
CB
58032019-07-29 Christian Biesinger <cbiesinger@google.com>
5804
5805 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5806 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5807 (objfpy_lookup_static_symbol): New function.
5808 (objfile_object_methods): Add new functions.
5809
bc4268a5
PW
58102019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5811
5812 * NEWS: Mention 'set|show print frame-info'. Mention new
5813 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5814 backtrace argument. Mention that python frame filtering code
5815 is now consistent with what 'backtrace' command prints.
5816
4b5e8d19
PW
58172019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5818
5819 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5820 comments.
5821 (print_frame_info_auto, print_frame_info_source_line,
5822 print_frame_info_location, print_frame_info_source_and_location,
5823 print_frame_info_location_and_address, print_frame_info_short_location):
5824 New declarations.
5825 (struct frame_print_options): New member print_frame_info.
5826 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5827 * stack.h (get_user_print_what_frame_info): New declaration.
5828 (frame_show_address): New declaration.
5829 * stack.c (print_frame_arguments_choices): New value 'presence'.
5830 (print_frame_info_auto, print_frame_info_source_line,
5831 print_frame_info_location, print_frame_info_source_and_location,
5832 print_frame_info_location_and_address, print_frame_info_short_location,
5833 print_frame_info_choices, print_frame_info_print_what): New definitions.
5834 (print_frame_args): Only print dots for args if print frame-arguments
5835 is 'presence'.
5836 (frame_print_option_defs): New element for "frame-info".
5837 (get_user_print_what_frame_info): New function.
5838 (frame_show_address): Make non static. Move comment to stack.h.
5839 (print_frame_info_to_print_what): New function.
5840 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5841 to decide what to print.
5842 (backtrace_command_1): Handle the new print_frame_arguments_presence
5843 value.
5844 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5845 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5846 (py_print_frame): In non-mi mode, use LOCATION as default for
5847 print_what, similarly to frame information printed directly by
5848 backtrace command. Handle frame-info user option in non MI mode.
5849
6bdfee81
KB
58502019-07-27 Kevin Buettner <kevinb@redhat.com>
5851
5852 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5853 Add case for debugging 32-bit target on 64-bit host. Revise
5854 comment.
5855
98a617f8
KB
58562019-07-27 Kevin Buettner <kevinb@redhat.com>
5857
5858 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5859 instead of find_function_entry_range_from_pc.
5860
567238c9
KB
58612019-07-27 Kevin Buettner <kevinb@redhat.com>
5862
5863 * stack.c (find_frame_funname): Remove code which preferred
5864 minsym over symtab sym in "certain pathological cases".
5865
2dc80cf8
KB
5866 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5867 parameter. Change type of "do_demangle" to bool.
5868 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5869 Pass suitable "prefer_sym_over_minsym" flag to
5870 build_address_symbolic(). Don't output "+" for negative offsets.
5871 * printcmd.c (print_address_symbolic): Update invocation of
5872 build_address_symbolic to include a "prefer_sym_over_minsym"
5873 flag.
5874 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5875 Restrict cases in which use of minimal symbol is preferred to that
5876 of a found symbol. Update comments.
5877
1aff7173
KB
5878 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5879 for entry pc when entry pc is out of range for that FDE.
5880
89b085ac
BC
58812019-07-26 Brian Callahan <bcallah@openbsd.org>
5882
5883 PR gdb/24839:
5884 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5885 type.
5886
f32feb4a
CB
58872019-07-25 Christian Biesinger <cbiesinger@google.com>
5888
5889 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5890 this function's Python signature.
5891
5892
58932019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5894
5895 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5896 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5897 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5898 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5899 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5900
5901
c54e4253
YS
59022019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5903
5904 * h8300-tdep.c (h8300_register_name_common): New.
5905 h8300_register_name): Use h8300_register_name_common.
5906 (h8300s_register_name): Likewise.
5907 (h8300sx_register_name): Likewise.
5908 (h8300h_register_nam): New.
5909 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5910
5911
40eadf04
SP
59122019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5913
5914 * arm-tdep.c (arm_skip_cmse_entry): New function.
5915 (arm_is_sgstubs_section): New function.
5916 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5917
bfa2a36d
TT
59182019-07-22 Tom Tromey <tom@tromey.com>
5919
5920 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5921 Don't self-assign.
5922
a8e9d247
AB
59232019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5924
5925 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5926 type_print.
5927
eb86c5e2
AB
59282019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5929
5930 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5931 so that GDB doesn't match any msymbols when searching in the
5932 TYPES_DOMAIN.
5933 (print_symbol_info): Print using typedef_print or type_print based
5934 on the type of the symbol. Add updated FIXME comment moved from...
5935 (_initialize_symtab): ... move and update FIXME comment to above.
5936
a8eab7c6
AB
59372019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5938
5939 * NEWS: Mention adding -q option to "info types".
5940 * symtab.c (struct info_types_options): New struct.
5941 (info_types_options_defs): New variable.
5942 (make_info_types_options_def_group): New function.
5943 (info_types_command): Use gdb::option framework to parse options.
5944 (info_types_command_completer): New function.
5945 (_initialize_symtab): Extend the help text on "info types" and
5946 register command completer.
5947
b4603c34
CB
59482019-07-21 Christian Biesinger <cbiesinger@google.com>
5949
5950 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5951 (lookup_symbol_in_objfile): Change int to block_enum and add a
5952 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5953
c8cdc1e0
CB
59542019-07-20 Christian Biesinger <cbiesinger@google.com>
5955
5956 * MAINTAINERS (Write After Approval): Add self.
5957
01e175fe
AB
59582019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5959
5960 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5961 instruction to the dummy code region.
5962
56f79b63
TT
59632019-07-19 Tom Tromey <tromey@adacore.com>
5964
5965 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5966 (ARGSUSED, PARAMS, __func__): Remove rules.
5967
4c5aa8e0
AH
59682019-07-19 Alan Hayward <alan.hayward@arm.com>
5969
5970 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5971 * features/arm/arm-with-iwmmxt.c: Remove.
5972 * features/arm/arm-with-iwmmxt.xml: Remove.
5973 * features/arm/arm-with-m-fpa-layout.c: Remove.
5974 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5975 * features/arm/arm-with-m-vfp-d16.c: Remove.
5976 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5977 * features/arm/arm-with-m.c: Remove.
5978 * features/arm/arm-with-m.xml: Remove.
5979 * features/arm/arm-with-neon.c: Remove.
5980 * features/arm/arm-with-neon.xml: Remove.
5981 * features/arm/arm-with-vfpv2.c: Remove.
5982 * features/arm/arm-with-vfpv2.xml: Remove.
5983 * features/arm/arm-with-vfpv3.c: Remove.
5984 * features/arm/arm-with-vfpv3.xml: Remove.
5985
f42b2617
AH
59862019-07-19 Alan Hayward <alan.hayward@arm.com>
5987
5988 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5989
f29ec966
AH
59902019-07-19 Alan Hayward <alan.hayward@arm.com>
5991
5992 * arch/aarch32.c (aarch32_create_target_description): Create
5993 target descriptions using features.
5994 * arch/arm.c (arm_create_target_description)
5995 (arm_create_mprofile_target_description): Likewise.
5996 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
5997
d105cce5
AH
59982019-07-19 Alan Hayward <alan.hayward@arm.com>
5999
6000 * Makefile.in: Add new files.
6001 * aarch32-tdep.c: New file.
6002 * aarch32-tdep.h: New file.
6003 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6004 Call aarch32_read_description.
6005 * arch/aarch32.c: New file.
6006 * arch/aarch32.h: New file.
6007 * arch/arm.c (arm_create_target_description)
6008 (arm_create_mprofile_target_description): New function.
6009 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6010 (arm_create_target_description)
6011 (arm_create_mprofile_target_description): New declaration.
6012 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6013 read_description functions.
6014 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6015 Likewise.
6016 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6017 * arm-tdep.c (tdesc_arm_list): New variable.
6018 (arm_register_g_packet_guesses): Call create description functions.
6019 (arm_read_description) (arm_read_mprofile_description): New
6020 function.
6021 * arm-tdep.h (arm_read_description)
6022 (arm_read_mprofile_description): Add declaration.
6023 * configure.tgt: Add new files.
6024
afe09f0b
GL
60252019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6026
6027 * top.c (new_ui_command): Open specified terminal just once.
6028
cd215b2e
TT
60292019-07-18 Tom Tromey <tromey@adacore.com>
6030
6031 * symtab.c (main_name): Constify return type.
6032 * symfile.c (set_initial_language): Update.
6033 * symtab.h (main_name): Constify return type.
6034
d8f68fcb
TT
60352019-07-17 Tom Tromey <tom@tromey.com>
6036
6037 * tui/tui-winsource.c (tui_update_source_window)
6038 (tui_update_source_window_as_is)
6039 (tui_update_source_windows_with_line): Remove return.
6040 * tui/tui-disasm.c (tui_show_disassem)
6041 (tui_show_disassem_and_update_source): Remove return.
6042 * tui/tui.c (tui_reset): Remove return.
6043 * tui/tui-wingeneral.c
6044 (tui_check_and_display_highlight_if_needed): Remove return.
6045
ca5af91e
TT
60462019-07-17 Tom Tromey <tom@tromey.com>
6047
6048 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6049
5104fe36
TT
60502019-07-17 Tom Tromey <tom@tromey.com>
6051
6052 * tui/tui-winsource.h (struct tui_exec_info_window)
6053 (struct tui_source_window_base): Move from tui-data.h.
6054 * tui/tui-winsource.c: Move many method definitions from
6055 elsewhere. Remove "structuring" comments.
6056 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6057 (tui_source_window_base::refresh_window): Move to
6058 tui-winsource.c.
6059 * tui/tui-win.c (tui_source_window_base::refresh_all)
6060 (tui_source_window_base::update_tab_width)
6061 (tui_source_window_base::set_new_height)
6062 (tui_source_window_base::do_make_visible_with_new_height): Move to
6063 tui-winsource.c.
6064 * tui/tui-source.h: Update.
6065 * tui/tui-source.c (tui_source_window_base::reset): Move to
6066 tui-winsource.c.
6067 * tui/tui-disasm.h: Update.
6068 * tui/tui-data.h (struct tui_exec_info_window): Move to
6069 tui-winsource.h.
6070 (struct tui_source_window_base): Likewise.
6071 * tui/tui-data.c (tui_source_window_base::clear_detail)
6072 (tui_source_window_base, ~tui_source_window_base): Move to
6073 tui-winsource.c.
6074
daa15dde
TT
60752019-07-17 Tom Tromey <tom@tromey.com>
6076
6077 * tui/tui-win.c (tui_resize_all)
6078 (tui_source_window_base::update_tab_width)
6079 (tui_adjust_win_heights): Update.
6080 (tui_win_info::make_invisible_and_set_new_height): Rename from
6081 make_invisible_and_set_new_height.
6082 * tui/tui-data.h (struct tui_win_info)
6083 <make_invisible_and_set_new_height>: New method.
6084
bfad4537
TT
60852019-07-17 Tom Tromey <tom@tromey.com>
6086
6087 * tui/tui.c: Update.
6088 * tui/tui-source.h (struct tui_source_window): Move from
6089 tui-data.h.
6090 * tui/tui-layout.c: Update.
6091 * tui/tui-disasm.c: Update.
6092 * tui/tui-data.h (struct tui_source_window): Move to
6093 tui-source.h.
6094
88f7e873
TT
60952019-07-17 Tom Tromey <tom@tromey.com>
6096
6097 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6098 tui-data.h.
6099 * tui/tui-data.h (struct tui_disasm_window): Move to
6100 tui-disasm.h.
6101
96bd6233
TT
61022019-07-17 Tom Tromey <tom@tromey.com>
6103
6104 * tui/tui-regs.h (struct tui_data_item_window): Move from
6105 tui-data.h.
6106 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6107 * tui/tui-data.h (struct tui_data_item_window): Move to
6108 tui-regs.h.
6109 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6110
ce38393b
TT
61112019-07-17 Tom Tromey <tom@tromey.com>
6112
6113 * tui/tui.c: Update.
6114 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6115 (tui_cmd_window::max_height): Move to tui-command.c.
6116 * tui/tui-layout.c: Update.
6117 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6118 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6119 tui-command.c.
6120 * tui/tui-command.h (struct tui_cmd_window): Move from
6121 tui-data.h.
6122 * tui/tui-command.c: Remove "structuring" comments.
6123 (tui_cmd_window::clear_detail)
6124 (tui_cmd_window::do_make_visible_with_new_height)
6125 (tui_cmd_window::max_height): Move from elsewhere.
6126
2d8b51cb
TT
61272019-07-17 Tom Tromey <tom@tromey.com>
6128
6129 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6130 Now static.
6131 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6132 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6133
18ab23af
TT
61342019-07-17 Tom Tromey <tom@tromey.com>
6135
6136 * tui/tui.c: Update.
6137 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6138 tui-regs.c.
6139 * tui/tui-windata.h: Remove file.
6140 * tui/tui-windata.c: Remove file.
6141 * tui/tui-win.c (tui_data_window::set_new_height)
6142 (tui_data_window::do_make_visible_with_new_height): Move to
6143 tui-regs.c.
6144 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6145 * tui/tui-regs.c: Remove "structuring" comments.
6146 (tui_data_window::first_data_item_displayed)
6147 (tui_data_window::delete_data_content_windows)
6148 (tui_data_window::erase_data_content)
6149 (tui_data_window::display_all_data)
6150 (tui_data_window::refresh_all)
6151 (tui_data_window::do_scroll_vertical)
6152 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6153 (tui_data_window::do_make_visible_with_new_height)
6154 (tui_data_window::refresh_window): Move from elsewhere.
6155 (_initialize_tui_regs): Move to end of file.
6156 * tui/tui-layout.c: Update.
6157 * tui/tui-hooks.c: Update.
6158 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6159 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6160 tui-regs.c.
6161 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6162
88b7e7cc
TT
61632019-07-17 Tom Tromey <tom@tromey.com>
6164
6165 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6166 seen.
6167
0fcd3711
TT
61682019-07-17 Tom Tromey <tom@tromey.com>
6169
6170 * tui/tui-win.c (tui_source_window_base::set_new_height)
6171 (tui_source_window_base::do_make_visible_with_new_height): Use
6172 m_has_locator field directly.
6173 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6174 method.
6175 (struct tui_source_window_base) <has_locator>: Likewise.
6176
4a38112d
TT
61772019-07-17 Tom Tromey <tom@tromey.com>
6178
6179 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6180 Don't declare.
6181 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6182 Remove.
6183 * tui/tui-win.c (tui_source_window_base::set_new_height)
6184 (tui_source_window_base::set_new_height)
6185 (make_invisible_and_set_new_height)
6186 (tui_source_window_base::do_make_visible_with_new_height)
6187 (tui_source_window_base::do_make_visible_with_new_height):
6188 Update.
6189 * tui/tui-layout.c (show_source_disasm_command, show_data)
6190 (show_source_or_disasm_and_command): Update.
6191 * tui/tui-layout.c (show_layout): Update.
6192
09129226
TT
61932019-07-17 Tom Tromey <tom@tromey.com>
6194
6195 * tui/tui-layout.c (make_data_window): Remove.
6196 (show_data): Unify creation and re-initialization cases.
6197
4a8a5e84
TT
61982019-07-17 Tom Tromey <tom@tromey.com>
6199
6200 * tui/tui-layout.c (make_source_window, make_disasm_window):
6201 Remove.
6202 (show_data): Unify creation and re-initialization cases.
6203
76d2be8e
TT
62042019-07-17 Tom Tromey <tom@tromey.com>
6205
6206 * tui/tui-layout.c (make_command_window): Remove.
6207 (show_source_disasm_command, show_source_or_disasm_and_command):
6208 Unify creation and re-initialization cases.
6209
890b8bde
TT
62102019-07-17 Tom Tromey <tom@tromey.com>
6211
6212 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6213 creation and re-initialization cases.
6214
2cdfa113
TT
62152019-07-17 Tom Tromey <tom@tromey.com>
6216
6217 * tui/tui-regs.c (tui_get_register): Return void.
6218
8e3cfd09
TT
62192019-07-17 Tom Tromey <tom@tromey.com>
6220
6221 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6222 Simplify.
6223
f4e04977
TT
62242019-07-17 Tom Tromey <tom@tromey.com>
6225
6226 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6227 resetting.
6228
0379b883
TT
62292019-07-17 Tom Tromey <tom@tromey.com>
6230
6231 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6232 * tui/tui-regs.c (tui_reg_layout): New function.
6233 (tui_show_registers, tui_reg_command): Use it.
6234 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6235 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6236 parameters.
6237 (tui_layout_command): Remove.
6238
b7fbad91
TT
62392019-07-17 Tom Tromey <tom@tromey.com>
6240
6241 * tui/tui-layout.h (tui/tui-layout): Return void.
6242 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6243
4e1e56b9
TT
62442019-07-17 Tom Tromey <tom@tromey.com>
6245
6246 * tui/tui-layout.c (show_source_disasm_command, show_data):
6247 Update.
6248 (reset_locator): Remove.
6249 (show_source_or_disasm_and_command): Update.
6250
1e0c09ba
TT
62512019-07-17 Tom Tromey <tom@tromey.com>
6252
6253 * tui/tui-source.c (tui_source_window_base::reset): Remove
6254 win_type parameter.
6255 * tui/tui-layout.c (make_command_window, make_source_window)
6256 (make_disasm_window, make_data_window)
6257 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6258 (reset_locator, show_source_or_disasm_and_command): Update.
6259 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6260 win_type parameter.
6261 (struct tui_source_window_base) <reset>: Likewise.
6262
1bf605de
TT
62632019-07-17 Tom Tromey <tom@tromey.com>
6264
6265 * tui/tui-layout.c (show_source_disasm_command): Use
6266 reset_locator.
6267 (reset_locator): New function.
6268 (init_and_make_win): Remove.
6269 (show_source_or_disasm_and_command): Use reset_locator.
6270
098f9ed4
TT
62712019-07-17 Tom Tromey <tom@tromey.com>
6272
6273 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6274 condition.
6275 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6276 Remove condition.
6277 * tui/tui-source.c (tui_source_window_base::reset): New method.
6278 * tui/tui-layout.c (make_command_window): Don't call
6279 init_and_make_win.
6280 (make_source_window, make_disasm_window): Don't call
6281 make_source_or_disasm_window.
6282 (make_data_window): Don't call init_and_make_win. Change calling
6283 convention.
6284 (show_source_disasm_command, show_data): Simplify.
6285 (make_source_or_disasm_window): Remove.
6286 (show_source_or_disasm_and_command): Simplify.
6287 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6288 (struct tui_source_window_base) <reset>: Likewise.
6289 <execution_info>: Remove initializer.
6290 * tui/tui-data.c (tui_source_window_base): Initialize
6291 execution_info.
6292
80110957
TT
62932019-07-17 Tom Tromey <tom@tromey.com>
6294
6295 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6296 variable.
6297
cf82af05
TT
62982019-07-17 Tom Tromey <tom@tromey.com>
6299
6300 * tui/tui.c (tui_rl_other_window): Update.
6301 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6302 superclass method first. Always iterate over regs_content.
6303 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6304 method.
6305 * tui/tui-win.c (tui_set_focus_command): Update.
6306
01aeb396
TT
63072019-07-17 Tom Tromey <tom@tromey.com>
6308
6309 * tui/tui-win.c (tui_set_focus_command): Rename from
6310 tui_set_focus. Call tui_enable.
6311 (tui_set_focus_command): Remove.
6312
fd6c75ee
TT
63132019-07-17 Tom Tromey <tom@tromey.com>
6314
6315 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6316 refresh_window.
6317 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6318 touchwin.
6319 (tui_data_window::refresh_window): Call refresh_window on data
6320 items. Always call superclass refresh_window.
6321 (tui_win_info::refresh): Remove.
6322 (tui_source_window_base::refresh_window): Update.
6323 (tui_refresh_all): Update.
6324 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6325 refresh_window.
6326 (show_source_or_disasm_and_command): Likewise.
6327 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6328 (struct tui_source_window_base) <refresh>: Likewise.
6329
f6cc34a9
TT
63302019-07-17 Tom Tromey <tom@tromey.com>
6331
6332 * tui/tui-winsource.c (tui_clear_source_content)
6333 (tui_show_source_content): Update.
6334 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6335 whether content is empty.
6336 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6337 Remove.
6338
f31ec9af
TT
63392019-07-17 Tom Tromey <tom@tromey.com>
6340
6341 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6342 window's contents.
6343 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6344 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6345
d1b6f1e5
TT
63462019-07-17 Tom Tromey <tom@tromey.com>
6347
6348 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6349 (struct tui_data_item_window): Update.
6350
d9743a13
TT
63512019-07-17 Tom Tromey <tom@tromey.com>
6352
6353 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6354 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6355 defines.
6356
caf0bc4e
TT
63572019-07-17 Tom Tromey <tom@tromey.com>
6358
6359 * tui/tui-winsource.h (tui_erase_source_content)
6360 (tui_clear_source_content): Remove "display_prompt" parameter.
6361 * tui/tui-winsource.c (tui_update_source_window_as_is)
6362 (tui_update_source_windows_with_addr): Update.
6363 (tui_clear_source_content): Remove "display_prompt" parameter.
6364 (tui_erase_source_content): Likewise. Simplify.
6365 (tui_show_source_content): Update.
6366 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6367 * tui/tui-stack.c (tui_show_frame_info): Update.
6368 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6369 Remove defines.
6370
9d391078
TT
63712019-07-17 Tom Tromey <tom@tromey.com>
6372
6373 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6374 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6375 parameter.
6376 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6377 parameter.
6378
a38da35d
TT
63792019-07-17 Tom Tromey <tom@tromey.com>
6380
6381 * tui/tui-winsource.c (tui_clear_source_content)
6382 (tui_show_source_content, tui_show_exec_info_content)
6383 (tui_clear_exec_info_content): Update.
6384 * tui/tui-stack.c (tui_show_locator_content): Update.
6385 (tui_show_frame_info): Update.
6386 * tui/tui-source.h (tui_source_window): Don't declare.
6387 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6388 from tui_source_is_displayed.
6389 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6390 Remove field.
6391 (struct tui_source_window_base) <content_in_use>: New field. Now
6392 bool.
6393 (struct tui_source_window) <showing_source_p>: New method.
6394 (TUI_SRC_WIN): Change cast.
6395 * tui/tui-data.c (tui_initialize_static_data): Update.
6396
c2cd8994
TT
63972019-07-17 Tom Tromey <tom@tromey.com>
6398
6399 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6400 location_matches_p.
6401 * tui/tui-source.c (tui_source_window::location_matches_p): New
6402 method.
6403 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6404 method.
6405 * tui/tui-data.h (struct tui_source_window_base)
6406 <location_matches_p>: New method.
6407 (struct tui_source_window, struct tui_disasm_window)
6408 <location_matches_p>: Likewise.
6409
4dde7b34
TT
64102019-07-17 Tom Tromey <tom@tromey.com>
6411
6412 * tui/tui-win.c (tui_set_win_height_command): Rename from
6413 tui_set_win_height.
6414 (tui_set_win_height_command): Remove.
6415
b73dd877
TT
64162019-07-17 Tom Tromey <tom@tromey.com>
6417
6418 * tui/tui-source.c (tui_source_window): New constructor. Add
6419 observer.
6420 (~tui_source_window): New destructor.
6421 (tui_source_window::style_changed): New method.
6422 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6423 (tui_attach_detach_observers): Update.
6424 * tui/tui-data.h (struct tui_source_window): Make constructor not
6425 inline. Add destructor.
6426 (struct tui_source_window) <style_changed>: New method.
6427 <m_observable>: New member.
6428
ae2b5380
TT
64292019-07-17 Tom Tromey <tom@tromey.com>
6430
6431 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6432 * tui/tui-win.c (tui_resize_all): Fix typo.
6433
1ce3e844
TT
64342019-07-17 Tom Tromey <tom@tromey.com>
6435
6436 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6437 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6438 (tui_refresh_all): Remove "list" parameter. Use foreach.
6439 * tui/tui-win.c (window_name_completer): Use foreach.
6440 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6441 (update_tab_width): Likewise.
6442 * tui/tui-layout.c (show_layout): Update.
6443 * tui/tui-data.h (class tui_window_iterator): New.
6444 (struct all_tui_windows): New.
6445 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6446
fe3eaf1c
TT
64472019-07-17 Tom Tromey <tom@tromey.com>
6448
6449 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6450 parameter. Don't reference globals.
6451 (tui_reg_command): Update.
6452
368c1354
TT
64532019-07-17 Tom Tromey <tom@tromey.com>
6454
6455 * tui/tui-regs.c (tui_show_registers): Simplify.
6456
e80cd204
TT
64572019-07-17 Tom Tromey <tom@tromey.com>
6458
6459 * tui/tui-regs.c (tui_show_registers): Update.
6460 (tui_show_register_group): Add win_info parameter.
6461
aca2dd16
TT
64622019-07-17 Tom Tromey <tom@tromey.com>
6463
6464 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6465 Rename from tui_display_reg_element_at_line.
6466 (tui_data_window::display_registers_from_line): Update.
6467 * tui/tui-data.h (struct tui_data_window)
6468 <display_reg_element_at_line>: New method.
6469
517e9505
TT
64702019-07-17 Tom Tromey <tom@tromey.com>
6471
6472 * tui/tui-regs.h (tui_display_registers_from)
6473 (tui_display_registers_from_line): Don't declare.
6474 * tui/tui-windata.c (tui_data_window::display_all_data)
6475 (tui_data_window::refresh_all)
6476 (tui_data_window::do_scroll_vertical): Update.
6477 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6478 from tui_display_registers_from.
6479 (tui_display_reg_element_at_line): Update.
6480 (tui_data_window::display_registers_from_line): Rename from
6481 tui_display_registers_from_line.
6482 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6483 display_registers_from_line>: New methods.
6484
f76d8b19
TT
64852019-07-17 Tom Tromey <tom@tromey.com>
6486
6487 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6488 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6489 from tui_erase_data_content.
6490 (tui_data_window::display_all_data)
6491 (tui_data_window::refresh_all)
6492 (tui_data_window::do_scroll_vertical): Update.
6493 * tui/tui-regs.c (tui_show_registers): Update.
6494 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6495 New method.
6496
b4094625
TT
64972019-07-17 Tom Tromey <tom@tromey.com>
6498
6499 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6500 declare.
6501 * tui/tui-windata.c
6502 (tui_data_window::delete_data_content_windows): Rename from
6503 tui_delete_data_content_windows.
6504 (tui_data_window::display_all_data)
6505 (tui_data_window::do_scroll_vertical): Update.
6506 * tui/tui-data.h (struct tui_data_window)
6507 <delete_data_content_windows>: New method.
6508
c223a729
TT
65092019-07-17 Tom Tromey <tom@tromey.com>
6510
6511 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6512 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6513
50daf268
TT
65142019-07-17 Tom Tromey <tom@tromey.com>
6515
6516 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6517 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6518 from tui_display_all_data.
6519 * tui/tui-win.c
6520 (tui_data_window::do_make_visible_with_new_height): Update.
6521 * tui/tui-regs.c (tui_show_registers): Update.
6522 * tui/tui-layout.c (tui_set_layout): Update.
6523 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6524 method.
6525
df5f8cab
TT
65262019-07-17 Tom Tromey <tom@tromey.com>
6527
6528 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6529 * tui/tui-windata.c (tui_display_data_from): Remove.
6530 (tui_data_window::refresh_all): Update.
6531
80cb6c27
TT
65322019-07-17 Tom Tromey <tom@tromey.com>
6533
6534 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6535 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6536 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6537 tui_display_registers_from_line.
6538 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6539 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6540 "force_display" parameter.
6541
baff0c28
TT
65422019-07-17 Tom Tromey <tom@tromey.com>
6543
6544 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6545 declare.
6546 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6547 Rename from tui_first_reg_element_no_inline.
6548 (tui_display_reg_element_at_line)
6549 (tui_display_registers_from_line): Update.
6550 * tui/tui-data.h (struct tui_data_window)
6551 <first_reg_element_no_inline>: New method.
6552
3b23c5f2
TT
65532019-07-17 Tom Tromey <tom@tromey.com>
6554
6555 * tui/tui-windata.c (tui_display_data_from)
6556 (tui_data_window::do_scroll_vertical): Update.
6557 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6558 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6559 Rename from tui_line_from_reg_element_no.
6560 (tui_display_registers_from_line): Update.
6561 * tui/tui-data.h (struct tui_data_window)
6562 <line_from_reg_element_no>: New method.
6563
0b5ec218
TT
65642019-07-17 Tom Tromey <tom@tromey.com>
6565
6566 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6567 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6568 tui_last_regs_line_no.
6569 (tui_display_reg_element_at_line)
6570 (tui_display_registers_from_line): Update.
6571 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6572 method.
6573
0807ab7b
TT
65742019-07-17 Tom Tromey <tom@tromey.com>
6575
6576 PR tui/24722:
6577 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6578 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6579 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6580 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6581 (tui_update_breakpoint_info): Likewise.
6582 * tui/tui-hooks.c (tui_event_create_breakpoint)
6583 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6584 Update.
6585
9ad7fdef
TT
65862019-07-17 Tom Tromey <tom@tromey.com>
6587
6588 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6589
5813316f
TT
65902019-07-17 Tom Tromey <tom@tromey.com>
6591
6592 * tui/tui-winsource.c (tui_update_source_window_as_is)
6593 (tui_update_source_windows_with_addr): Update.
6594 * tui/tui-source.h (tui_set_source_content)
6595 (tui_show_symtab_source): Add "win_info" parameter.
6596 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6597 parameter.
6598 (tui_show_symtab_source): Likewise.
6599
00e264e7
TT
66002019-07-17 Tom Tromey <tom@tromey.com>
6601
6602 * tui/tui-wingeneral.c
6603 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6604
06210ce4
TT
66052019-07-17 Tom Tromey <tom@tromey.com>
6606
6607 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6608 (struct tui_cmd_window) <can_scroll>: New method.
6609 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6610 method.
6611
381befee
TT
66122019-07-17 Tom Tromey <tromey@adacore.com>
6613
6614 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6615 do_field_signed>: Rename. Change type of "value".
6616 * ui-out.c (ui_out::field_signed): Rename from field_int.
6617 Change type of "value".
6618 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6619 type of "value".
6620 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6621 do_field_int. Change type of "value".
6622 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6623 do_field_int. Change type of "value".
6624 * tracepoint.c (trace_status_mi, tfind_1)
6625 (print_one_static_tracepoint_marker): Update.
6626 * thread.c (print_thread_info_1, print_selected_thread_frame):
6627 Update.
6628 * stack.c (print_frame, print_frame_info): Update.
6629 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6630 Update.
6631 * source.c (print_source_lines_base): Update.
6632 * skip.c (info_skip_command): Update.
6633 * record-btrace.c (btrace_ui_out_decode_error)
6634 (btrace_call_history_src_line): Update.
6635 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6636 Update.
6637 * progspace.c (print_program_space): Update.
6638 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6639 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6640 do_field_int. Change type of "value".
6641 * mi/mi-out.c (mi_ui_out::do_table_begin)
6642 (mi_ui_out::do_table_header): Update.
6643 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6644 type of "value".
6645 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6646 (mi_cmd_data_list_changed_registers, output_register)
6647 (mi_cmd_data_read_memory, mi_load_progress)
6648 (mi_cmd_trace_frame_collected): Update.
6649 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6650 Update.
6651 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6652 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6653 (mi_cmd_var_list_children, varobj_update_one): Update.
6654 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6655 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6656 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6657 * inferior.c (print_inferior): Update.
6658 * gdb_bfd.c (print_one_bfd): Update.
6659 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6660 Update.
6661 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6662 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6663 do_field_int. Change type of "value".
6664 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6665 do_field_int. Change type of "value".
6666 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6667 (print_one_breakpoint_location, print_it_catch_fork)
6668 (print_one_catch_fork, print_it_catch_vfork)
6669 (print_one_catch_vfork, print_it_catch_solib)
6670 (print_it_catch_exec, print_it_ranged_breakpoint)
6671 (print_mention_watchpoint, print_mention_masked_watchpoint)
6672 (bkpt_print_it, update_static_tracepoint): Update.
6673 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6674 * break-catch-syscall.c (print_it_catch_syscall): Update.
6675 * ada-tasks.c (print_ada_task_info): Update.
6676 * ada-lang.c (print_it_exception, print_mention_exception):
6677 Update.
6678
6b78c3f8
AB
66792019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6680
6681 PR breakpoints/24541
6682 * gdbarch.c: Regenerate.
6683 * gdbarch.h: Regenerate.
6684 * gdbarch.sh: Adjust return type and parameter types for
6685 'stap_adjust_register'.
6686 (i386_stap_adjust_register): Adjust signature and return new
6687 register name.
6688 * stap-probe.c (stap_parse_register_operand): Adjust use of
6689 'gdbarch_stap_adjust_register'.
6690
d72a9b85
TT
66912019-07-17 Tom Tromey <tromey@adacore.com>
6692
6693 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6694 declare VEC.
6695 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6696 std::vector.
6697 (struct s390_process_info): Add initializers.
6698 (s390_add_process): Use new.
6699 (s390_linux_nat_target::low_forget_process): Use delete.
6700 (s390_linux_nat_target::low_new_fork)
6701 (s390_linux_nat_target::stopped_by_watchpoint)
6702 (s390_linux_nat_target::low_prepare_to_resume)
6703 (s390_linux_nat_target::insert_watchpoint)
6704 (s390_linux_nat_target::insert_hw_breakpoint)
6705 (s390_linux_nat_target::remove_watchpoint)
6706 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6707
206e6c58
JB
67082019-07-16 John Baldwin <jhb@FreeBSD.org>
6709
6710 * aarch64-fbsd-nat.c: Include regcache.h.
6711 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6712 argument.
6713 (aarch64_fbsd_nat_target::fetch_registers)
6714 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6715 variable.
6716 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6717
cbde90f2
JB
67182019-07-16 John Baldwin <jhb@FreeBSD.org>
6719
6720 * fbsd-nat.c: Include gdbarch.h.
6721
07128006
TT
67222019-07-15 Tom Tromey <tromey@adacore.com>
6723
6724 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6725
1f77b012
TT
67262019-07-15 Tom Tromey <tromey@adacore.com>
6727
6728 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6729 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6730 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6731 * cli-out.c (cli_ui_out::do_field_int): New method.
6732 * ui-out.c (ui_out::field_unsigned): New method.
6733 * symfile.c (generic_load): Use field_unsigned.
6734 (print_transfer_performance): Likewise.
6735 * record-btrace.c (ui_out_field_uint): Remove.
6736 (btrace_call_history_insn_range, btrace_call_history): Use
6737 field_unsigned.
6738 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6739 field_unsigned.
6740 * ui-out.h (class ui_out) <field_unsigned>: New method.
6741 <do_field_unsigned>: Likewise.
6742
33eca680
TT
67432019-07-15 Tom Tromey <tromey@adacore.com>
6744
6745 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6746 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6747 * target.c (flash_erase_command): Use field_string.
6748 * infrun.c (print_signal_received_reason): Use field_string.
6749 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6750 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6751 field_string.
6752 * ada-tasks.c (print_ada_task_info): Use field_string.
6753
ca8d69be
TT
67542019-07-15 Tom Tromey <tromey@adacore.com>
6755
6756 * target.c (flash_erase_command): Use field_core_addr.
6757 * symfile.c (generic_load): Use field_core_addr.
6758 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6759 Use field_core_addr.
6760 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6761 field_core_addr.
6762
0d4e84ed
AB
67632019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6764
6765 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6766 value if its desired type is smaller than a CORE_ADDR and signed.
6767
9a49df9d
AB
67682019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6769
6770 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6771 of changes to field names, and use new is_reference field to
6772 decide if a property is a reference or not.
6773 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6774 field.
6775 (struct dwarf2_property_baton): Update header comment, rename
6776 'referenced_type' to 'property_type' and update comments.
6777 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6778 default property type, store in property baton, update to take
6779 accound of renamed field.
6780 (read_func_scope): Update call to attr_to_dynamic_prop.
6781 (read_array_type): Likewise.
6782 (dwarf2_per_cu_addr_sized_int_type): New function.
6783 (read_subrange_index_type): Move type finding code to
6784 dwarf2_per_cu_addr_sized_int_type.
6785 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6786 (dwarf2_per_cu_addr_type): New function.
6787 (set_die_type): Update calls to attr_to_dynamic_prop.
6788
b86352cf
AB
67892019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6790
6791 * dwarf2read.c (read_subrange_index_type): New function.
6792 (read_subrange_type): Move code into new function and call it.
6793 * gdbtypes.c (create_range_type): Add some asserts.
6794
603490bf
AB
67952019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6796
6797 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6798 update return statements.
6799 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6800 declaration, and update comment to match.
6801 * gdbtypes.c (resolve_dynamic_array): Update call to
6802 dwarf2_evaluate_property to match new return type.
6803
592f9d27
AB
68042019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6805
6806 * valarith.c (value_subscripted_rvalue): Change lowerbound
6807 parameter type from int to LONGEST.
6808 * value.h (value_subscripted_rvalue): Likewise in declaration.
6809
60cfcb20
AB
68102019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6811
6812 * cli/cli-utils.c (info_print_command_completer): New function.
6813 * cli/cli-utils.h: Add 'completer.h' include, and forward
6814 declaration for 'struct cmd_list_element'.
6815 (info_print_command_completer): Declare.
6816 * stack.c (_initialize_stack): Add completer for 'info locals' and
6817 'info args'.
6818 * symtab.c (_initialize_symtab): Add completer for 'info
6819 variables' and 'info functions'.
6820 * NEWS: Mention completion for additional info commands.
6821
b16507e0
AB
68222019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6823
6824 * cli/cli-utils.c (extract_info_print_args): Delete.
6825 (extract_arg_maybe_quoted): Delete.
6826 (info_print_options_defs): New variable.
6827 (make_info_print_options_def_group): New function.
6828 (extract_info_print_options): Define new function.
6829 * cli/cli-utils.h (extract_info_print_args): Delete.
6830 (struct info_print_options): New structure.
6831 (extract_info_print_options): Declare new function.
6832 * stack.c (info_locals_command): Update to use new
6833 extract_info_print_options, also add a header comment.
6834 (info_args_command): Likewise.
6835 * symtab.c (info_variables_command): Likewise.
6836 (info_functions_command): Likewise.
6837
021d8588
AB
68382019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6839
6840 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6841 to extract string arguments.
6842 * common/common-utils.c (extract_string_maybe_quoted): New function.
6843 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6844
b777eb6d
TT
68452019-07-11 Tom Tromey <tromey@adacore.com>
6846
6847 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6848 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6849 * top.h (gdbinit): Don't declare.
6850 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6851 into...
6852 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6853 * top.c (gdb_init): Don't call init_cli_cmds.
6854 (gdbinit): Remove.
6855 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6856
72ee03ff
TT
68572019-07-11 Tom Tromey <tromey@adacore.com>
6858
6859 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6860 after it has been moved.
6861
00db9531
SM
68622019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6863
6864 * valops.c (value_must_coerce_to_target): Change return type to
6865 bool.
6866 * value.h (value_must_coerce_to_target): Likewise.
6867
f2478a7e
SM
68682019-07-10 Simon Marchi <simon.marchi@efficios.com>
6869
6870 * breakpoint.c (is_hardware_watchpoint): Remove
6871 forward-declaration.
6872 (is_masked_watchpoint): Change return type to bool.
6873 (is_tracepoint): Likewise.
6874 (is_breakpoint): Likewise.
6875 (is_hardware_watchpoint): Likewise.
6876 (is_watchpoint): Likewise.
6877 (is_no_memory_software_watchpoint): Likewise.
6878 (is_catchpoint): Likewise.
6879 (breakpoint_1): Make FILTER parameter's return type bool.
6880 is_masked_watchpoint): Change return type to bool.
6881 (save_breakpoints): Make FILTER parameter's return type bool.
6882 * breakpoint.h (is_breakpoint): Change return type to bool.
6883 (is_watchpoint): Likewise.
6884 (is_catchpoint): Likewise.
6885 (is_tracepoint): Likewise.
6886
0d12e84c
TT
68872019-07-10 Tom Tromey <tom@tromey.com>
6888
6889 * defs.h: Don't include gdbarch.h.
6890 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6891 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6892 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6893 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6894 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6895 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6896 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6897 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6898 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6899 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6900 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6901 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6902 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6903 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6904 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6905 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6906 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6907 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6908 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6909 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6910 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6911 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6912 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6913 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6914 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6915 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6916 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6917
f06f1252
TT
69182019-07-10 Tom Tromey <tromey@adacore.com>
6919
6920 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6921 * breakpoint.c (init_ada_exception_breakpoint): Register as
6922 bp_catchpoint.
6923 (print_one_breakpoint_location, print_one_breakpoint): Use
6924 is_ada_exception_catchpoint.
6925 * ada-lang.c (class ada_catchpoint_location): Pass
6926 bp_loc_software_breakpoint to bp_location constructor.
6927 (is_ada_exception_catchpoint): New function.
6928
7a5d944b
TT
69292019-07-10 Tom Tromey <tromey@adacore.com>
6930
6931 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6932 VEC.
6933 (struct arm_exidx_entry): New method operator<.
6934 (struct arm_exidx_data) <section_maps>: Change type.
6935 (arm_exidx_data_free): Remove.
6936 (arm_exidx_data_key): Change type. Move lower.
6937 (arm_exidx_new_objfile): Update.
6938 (arm_compare_exidx_entries): Remove.
6939 (arm_find_exidx_entry, _initialize_arm_tdep)
6940
48c66e1d
TT
69412019-07-10 Tom Tromey <tromey@adacore.com>
6942
6943 * solib-spu.c (ocl_program_data_key): Change type.
6944 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6945 Update.
6946
a269fbf1
TT
69472019-07-10 Tom Tromey <tromey@adacore.com>
6948
6949 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6950 (struct solib_aix_inferior_data) <library_list>: Change type.
6951 (solib_aix_inferior_data_handle): Change type.
6952 (get_solib_aix_inferior_data): Update.
6953 (solib_aix_free_library_list): Remove.
6954 (library_list_start_library): Update.
6955 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6956 return type.
6957 (solib_aix_get_library_list)
6958 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6959 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6960
c294730c
TT
69612019-07-10 Tom Tromey <tromey@adacore.com>
6962
6963 * solib-dsbt.c (struct dsbt_info): Add initializers.
6964 (solib_dsbt_pspace_data): Change type.
6965 (dsbt_pspace_data_cleanup): Remove.
6966 (get_dsbt_info, _initialize_dsbt_solib): Update.
6967
9d52077d
TT
69682019-07-10 Tom Tromey <tromey@adacore.com>
6969
6970 * spu-tdep.c (spu_overlay_data): Change type.
6971 (spu_get_overlay_table, spu_overlay_new_objfile)
6972 (_initialize_spu_tdep): Update.
6973
22a20dca
TT
69742019-07-10 Tom Tromey <tromey@adacore.com>
6975
6976 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6977 destructor.
6978 (dbx_objfile_data_key): Change type and declare later.
6979 (DBX_SYMFILE_INFO): Rewrite.
6980 * dbxread.c (dbx_objfile_data_key): Change type.
6981 (dbx_symfile_init): Update.
6982 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6983 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6984 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6985
cb60f420
TT
69862019-07-10 Tom Tromey <tromey@adacore.com>
6987
6988 * jit.c (jit_program_space_key): Change type. Move lower.
6989 (get_jit_program_space_data): Update.
6990 (jit_program_space_data_cleanup): Remove.
6991 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6992 Update.
6993 (struct jit_program_space_data): Add initializers.
6994
51df2ae3
TT
69952019-07-10 Tom Tromey <tromey@adacore.com>
6996
6997 * solib-darwin.c (struct darwin_info): Add initializers.
6998 (solib_darwin_pspace_data): Change type.
6999 (darwin_pspace_data_cleanup): Remove.
7000 (get_darwin_info, _initialize_darwin_solib): Update.
7001
18101a35
TT
70022019-07-10 Tom Tromey <tromey@adacore.com>
7003
7004 * remote-sim.c (struct sim_inferior_data): Add initializers,
7005 constructor, and destructor.
7006 (sim_inferior_data_key): Change type. Move lower.
7007 (check_for_duplicate_sim_descriptor): Update.
7008 (get_sim_inferior_data): Use new. Update.
7009 (~sim_inferior_data_cleanup): Rename from
7010 sim_inferior_data_cleanup. Simplify.
7011 (gdbsim_close_inferior, simulator_command)
7012 (sim_command_completer, _initialize_remote_sim): Update.
7013 (next_pid, INITIAL_PID): Move earlier.
7014
05b08ac1
TT
70152019-07-10 Tom Tromey <tromey@adacore.com>
7016
7017 * python/python-internal.h (create_thread_object): Return
7018 gdbpy_ref.
7019 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7020 * python/py-inferior.c (struct threadlist_entry): Add
7021 constructor.
7022 <thread_obj>: Now a gdbpy_ref.
7023 (thread_to_thread_object): Update.
7024 (add_thread_object): Use new.
7025 (delete_thread_object): Use delete.
7026 (infpy_threads): Update.
7027 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7028 GIL.
7029
32372d80
TT
70302019-07-10 Tom Tromey <tromey@adacore.com>
7031
7032 * valops.c (value_cast): Specialize error message for Ada.
7033
5c458ae8
SM
70342019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7035
7036 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7037
4c462cb0
SM
70382019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7039
7040 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7041 bpstat_should_step): Return bool, adjust comments.
7042 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7043 bpstat_should_step): Likewise.
7044
89abbcc2
AH
70452019-07-10 Alan Hayward <alan.hayward@arm.com>
7046
7047 * features/Makefile: Use feature target descriptions for Arm.
7048 * features/arm/arm-core.c: Generate new file.
7049 * features/arm/arm-fpa.c: Likewise.
7050 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7051 * features/arm/arm-m-profile.c: Likewise.
7052 * features/arm/arm-vfpv2.c: Likewise.
7053 * features/arm/arm-vfpv3.c: Likewise.
7054 * features/arm/xscale-iwmmxt.c: Likewise.
7055 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7056
166a82be
AH
70572019-07-10 Alan Hayward <alan.hayward@arm.com>
7058
7059 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7060 ptrace earlier.
7061
9fb4c7e9
AH
70622019-07-10 Alan Hayward <alan.hayward@arm.com>
7063
7064 * features/aarch64-pauth.c: Regenerate.
7065
e2d0f980
SM
70662019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7067
7068 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7069 bool.
7070 (bpstat_what): Use false instead of 0.
7071
a38118e5
PA
70722019-07-09 Pedro Alves <palves@redhat.com>
7073
7074 * break-catch-throw.c (is_exception_catchpoint): New.
7075 * breakpoint.c (print_one_breakpoint_location): New parameter
7076 'raw_loc'. Handle it. Use
7077 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7078 looking at the breakpoint's type.
7079 (print_one_breakpoint): If handling "maint info breakpoints", also
7080 print locations of exception catchpoints.
7081 * breakpoint.h (is_exception_catchpoint): Declare.
7082
cb1e4e32
PA
70832019-07-09 Pedro Alves <palves@redhat.com>
7084
7085 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7086 "addr" field.
7087 (allocate_location_exception_catchpoint): New.
7088 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7089 (initialize_throw_catchpoint_ops): Install
7090 allocate_location_exception_catchpoint as allocate_location
7091 method.
7092 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7093 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7094 bp_loc_other.
7095 (breakpoint_address_is_meaningful): Delete.
7096 (bl_address_is_meaningful): New.
7097 (breakpoint_locations_match): Adjust comment.
7098 (bp_location_from_bp_type): New, factored out of...
7099 (bp_location::bp_location(breakpoint *)): ... this.
7100 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7101 factored out of...
7102 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7103 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7104 breakpoint_address_is_meaningful.
7105 (bp_locations_compare): Adjust comment.
7106 (update_global_location_list): Use bl_address_is_meaningful
7107 instead of breakpoint_address_is_meaningful.
7108 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7109 explicit.
7110 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7111 * python/py-breakpoint.c (bppy_get_location): No longer check
7112 whether location is null.
7113
b58a68fe
PA
71142019-07-09 Pedro Alves <palves@redhat.com>
7115
7116 PR c++/15468
7117 * breakpoint.c (print_one_breakpoint_location): Remove
7118 single-location assert.
7119
268a13a5
TT
71202019-07-09 Tom Tromey <tom@tromey.com>
7121
7122 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7123 * configure: Rebuild.
7124 * configure.ac: Change common to gdbsupport.
7125 * gdbsupport: Rename from common.
7126 * acinclude.m4: Change common to gdbsupport.
7127 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7128 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7129 gdbsupport.
7130 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7131 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7132 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7133 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7134 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7135 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7136 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7137 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7138 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7139 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7140 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7141 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7142 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7143 coff-pe-read.c, command.h, compile/compile-c-support.c,
7144 compile/compile-c.h, compile/compile-cplus-symbols.c,
7145 compile/compile-cplus-types.c, compile/compile-cplus.h,
7146 compile/compile-loc2c.c, compile/compile.c, completer.c,
7147 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7148 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7149 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7150 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7151 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7152 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7153 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7154 features/aarch64-core.c, features/aarch64-fpu.c,
7155 features/aarch64-pauth.c, features/aarch64-sve.c,
7156 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7157 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7158 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7159 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7160 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7161 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7162 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7163 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7164 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7165 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7166 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7167 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7168 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7169 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7170 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7171 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7172 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7173 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7174 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7175 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7176 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7177 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7178 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7179 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7180 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7181 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7182 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7183 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7184 minsyms.c, mips-linux-tdep.c, namespace.h,
7185 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7186 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7187 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7188 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7189 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7190 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7191 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7192 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7193 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7194 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7195 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7196 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7197 procfs.c, producer.c, progspace.h, psymtab.h,
7198 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7199 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7200 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7201 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7202 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7203 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7204 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7205 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7206 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7207 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7208 target-memory.c, target.c, target.h, target/waitstatus.c,
7209 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7210 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7211 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7212 unittests/array-view-selftests.c,
7213 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7214 unittests/common-utils-selftests.c,
7215 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7216 unittests/format_pieces-selftests.c,
7217 unittests/function-view-selftests.c,
7218 unittests/lookup_name_info-selftests.c,
7219 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7220 unittests/mkdir-recursive-selftests.c,
7221 unittests/observable-selftests.c,
7222 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7223 unittests/parse-connection-spec-selftests.c,
7224 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7225 unittests/scoped_fd-selftests.c,
7226 unittests/scoped_mmap-selftests.c,
7227 unittests/scoped_restore-selftests.c,
7228 unittests/string_view-selftests.c, unittests/style-selftests.c,
7229 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7230 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7231 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7232 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7233 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7234 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7235
5b0e2db4
AB
72362019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7237
7238 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7239 bool value.
7240 (decode_digits_ordinary): Set explicit_line field in sal.
7241 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7242 symtab_and_line that was set on an explicit line number in
7243 assembler code. Do always update the recorded symtab and line if
7244 we do skip the prologue.
7245
0ba852ab
AB
72462019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7247
7248 * breakpoint.c (set_breakpoint_location_function): Remove
7249 explicit_loc parameter.
7250 (momentary_breakpoint_from_master): Update call to
7251 set_breakpoint_location_function.
7252 (add_location_to_breakpoint): Likewise.
7253
b3a7d171
AB
72542019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7255
7256 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7257 required features based on default bfd type when no specific bfd
7258 is present.
7259
1f6f6e21
PW
72602019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7261
7262 * NEWS: Mention that GDB printf and eval commands can now print
7263 C-style and Ada-style convenience var strings without
7264 calling the inferior.
7265 * printcmd.c (printf_c_string): Locally print GDB internal var
7266 instead of transiting via the inferior.
7267 (printf_wide_c_string): Likewise.
7268
72692019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7270
5862c886 7271 PR breakpoints/25011
ea142fbf
AH
7272 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7273
0598af48
TT
72742019-07-04 Tom Tromey <tom@tromey.com>
7275
7276 PR tui/24724:
7277 * tui/tui-winsource.c (tui_clear_source_content): Update.
7278 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7279 (tui_update_breakpoint_info): Update.
7280 (tui_set_exec_info_content): Update.
7281 * tui/tui-source.c (tui_set_source_content_nil): Update.
7282 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7283 has_break.
7284 * tui/tui-data.h (enum tui_bp_flag): New.
7285 (tui_bp_flags): New enum flags type.
7286 (struct tui_source_element) <break_mode>: Change type. Rename
7287 from has_break.
7288 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7289 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7290 constants.
7291 * tui/tui-winsource.h: Fix comment.
7292
350fab54
AH
72932019-07-04 Alan Hayward <alan.hayward@arm.com>
7294
7295 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7296 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7297 (store_fpregs_to_thread)
7298 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7299 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7300 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7301 (IWMMXT_REGS_SIZE): Add define.
7302 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7303 (fetch_vfp_regs, store_vfp_regs)
7304 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7305 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7306
f0452268
AH
73072019-07-04 Alan Hayward <alan.hayward@arm.com>
7308
7309 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7310 defines.
7311 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7312 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7313 (ARM_INT_REGISTER_SIZE): ...to this.
7314 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7315 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7316 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7317 (arm_linux_collect_gregset, supply_nwfpe_register)
7318 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7319 defines.
7320 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7321 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7322 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7323 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7324 (arm_return_in_memory, arm_store_return_value)
7325 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7326 (arm_record_ld_st_multiple): Likewise.
7327 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7328 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7329
e935475c
AH
73302019-07-04 Alan Hayward <alan.hayward@arm.com>
7331
7332 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7333 AARCH64_DISPLACED_MODIFIED_INSNS.
7334 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7335 (aarch64_displaced_step_copy_insn): Likewise.
7336 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7337 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7338 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7339 ARM_DISPLACED_MODIFIED_INSNS.
7340 * arm-tdep.c (arm_gdbarch_init): Likewise.
7341 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7342 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7343 (struct arm_displaced_step_closure): Use
7344 ARM_DISPLACED_MODIFIED_INSNS.
7345
df0bb381
AH
73462019-07-04 Alan Hayward <alan.hayward@arm.com>
7347
7348 * features/Makefile: Remove unused xml files.
7349 * features/aarch64.xml: Remove.
7350 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7351 * features/i386/amd64-avx-avx512.xml: Remove.
7352 * features/i386/amd64-avx-linux.xml: Remove.
7353 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7354 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7355 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7356 * features/i386/amd64-avx-mpx.xml: Remove.
7357 * features/i386/amd64-avx.xml: Remove.
7358 * features/i386/amd64-linux.xml: Remove.
7359 * features/i386/amd64-mpx-linux.xml: Remove.
7360 * features/i386/amd64-mpx.xml: Remove.
7361 * features/i386/amd64.xml: Remove.
7362 * features/i386/i386-avx-avx512-linux.xml: Remove.
7363 * features/i386/i386-avx-avx512.xml: Remove.
7364 * features/i386/i386-avx-linux.xml: Remove.
7365 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7366 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7367 * features/i386/i386-avx-mpx-linux.xml: Remove.
7368 * features/i386/i386-avx-mpx.xml: Remove.
7369 * features/i386/i386-avx.xml: Remove.
7370 * features/i386/i386-linux.xml: Remove.
7371 * features/i386/i386-mmx-linux.xml: Remove.
7372 * features/i386/i386-mmx.xml: Remove.
7373 * features/i386/i386-mpx-linux.xml: Remove.
7374 * features/i386/i386-mpx.xml: Remove.
7375 * features/i386/i386.xml: Remove.
7376 * features/i386/x32-avx-avx512-linux.xml: Remove.
7377 * features/i386/x32-avx-linux.xml: Remove.
7378 * features/i386/x32-linux.xml: Remove.
7379
edd6266a
AH
73802019-07-04 Alan Hayward <alan.hayward@arm.com>
7381
7382 * regformats/aarch64.dat: Remove.
7383 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7384 * regformats/i386/amd64-avx-linux.dat: Remove.
7385 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7386 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7387 * regformats/i386/amd64-linux.dat: Remove.
7388 * regformats/i386/amd64-mpx-linux.dat: Remove.
7389 * regformats/i386/amd64.dat: Remove.
7390 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7391 * regformats/i386/i386-avx-linux.dat: Remove.
7392 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7393 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7394 * regformats/i386/i386-linux.dat: Remove.
7395 * regformats/i386/i386-mmx-linux.dat: Remove.
7396 * regformats/i386/i386-mpx-linux.dat: Remove.
7397 * regformats/i386/i386.dat: Remove.
7398 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7399 * regformats/i386/x32-avx-linux.dat: Remove.
7400 * regformats/i386/x32-linux.dat: Remove.
7401
2b40fda7
AH
74022019-07-04 Alan Hayward <alan.hayward@arm.com>
7403
7404 * aarch64-tdep.c: Remove xml self tests.
7405 * amd64-linux-tdep.c: Likewise.
7406 * amd64-tdep.c: Likewise.
7407 * i386-linux-tdep.c: Likewise.
7408 * i386-tdep.c: Likewise.
7409
5f4ba3e7
PA
74102019-07-03 Pedro Alves <palves@redhat.com>
7411
7412 PR cli/24732
7413 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7414 (pipe_cmd_option_defs): New.
7415 (make_pipe_cmd_options_def_group): New.
7416 (pipe_command): Use gdb::option::process_options.
7417 (pipe_command_completer): New function.
7418 (_initialize_cli_cmds): Install completer for "pipe" command.
7419
3d9be6f5
PA
74202019-07-03 Pedro Alves <palves@redhat.com>
7421
7422 * cli/cli-option.c (union option_value) <string>: New field.
7423 (struct option_def_and_value): Add ctor, move ctor, dtor and
7424 use DISABLE_COPY_AND_ASSIGN.
7425 (option_def_and_value::clear_value): New.
7426 (parse_option, save_option_value_in_ctx, get_val_type_str)
7427 (add_setshow_cmds_for_options): Handle var_string.
7428 * cli-option.h (union option_def::var_address) <string>: New
7429 field.
7430 (struct string_option_def): New.
7431 * maint-test-options.c (struct test_options_opts): Add default
7432 ctor and use DISABLE_COPY_AND_ASSIGN.
7433 <string_opt>: New field.
7434 (test_options_opts::~test_options_opts): New.
7435 (test_options_opts::dump): Also dump "-string".
7436 (test_options_option_defs): Install "string.
7437
41fc454c
PA
74382019-07-03 Pedro Alves <palves@redhat.com>
7439
7440 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7441 option_value with a null enumeration.
7442 (complete_options): Save the option values in the context.
7443 (save_option_value_in_ctx): New, factored out from ...
7444 (process_options): ... here.
7445 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7446 of the function.
7447 * maint-test-options.c (test_options_opts::dump): New, factored
7448 out from ...
7449 (maintenance_test_options_command_mode): ... here.
7450 (maintenance_test_options_command_completion_result): Delete.
7451 (maintenance_test_options_command_completion_text): Update
7452 comment.
7453 (maintenance_show_test_options_completion_result): Change
7454 prototype. Just print
7455 maintenance_test_options_command_completion_text.
7456 (save_completion_result): New.
7457 (maintenance_test_options_completer_mode): Pass options context to
7458 complete_options, and then save a dump.
7459 (_initialize_maint_test_options): Use add_cmd to install "maint
7460 show test-options-completion-result".
7461
fdbc9870
PA
74622019-07-03 Pedro Alves <palves@redhat.com>
7463
7464 * NEWS (New commands): Mention "with" and "maint with".
7465 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7466 (with_command, with_command_completer): New.
7467 (pipe_command): Adjust to new repeat_previous
7468 interface.
7469 (_initialize_cli_cmds): Install the "with" command and its "w"
7470 alias.
7471 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7472 declarations.
7473 * cli/cli-setshow.c (parse_cli_var_uinteger)
7474 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7475 argument strings for all var_types.
7476 (get_setshow_command_value_string): New, factored out from ...
7477 (do_show_command): ... this.
7478 * cli/cli-setshow.h: Include <string>.
7479 (get_setshow_command_value_string): Declare.
7480 * command.h (repeat_previous): Now returns const char *. Adjust
7481 comment.
7482 * maint.c: Include "cli/cli-cmds.h".
7483 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7484 (_initialize_maint_cmds): Register the "maintenance with" command.
7485 * top.c (repeat_previous): Move bits from pipe_command here:
7486 Return the saved command line, if any; error out if there's no
7487 command to relaunch.
7488
c6ac8931
PA
74892019-07-03 Pedro Alves <palves@redhat.com>
7490
7491 * NEWS (New commands): Mention "maint set/show test-settings"
7492 instead of "maint test-settings".
7493 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7494 (maintenance_test_settings_set_list): Rename to ...
7495 (maintenance_set_test_settings_list): ... this.
7496 (maintenance_test_settings_show_list): Rename to ...
7497 (maintenance_show_test_settings_list): ... this.
7498 (maintenance_test_settings_cmd): Delete.
7499 (maintenance_test_settings_set_cmd): ...
7500 (maintenance_set_test_settings_cmd): ... this.
7501 (maintenance_test_settings_show_cmd): ...
7502 (maintenance_show_test_settings_cmd): ... this.
7503 (maintenance_test_settings_show_value_cmd):
7504 (maintenance_show_test_settings_value_cmd): ... this.
7505 (_initialize_maint_test_settings): No longer install the "maint
7506 test-settings" prefix command. Rename "maint test-settings set"
7507 to "maint set test-settings", and "maint test-settings show" to
7508 "maint show test-settings". Adjust all subcommands.
7509
d1fcf2fd
PA
75102019-07-03 Pedro Alves <palves@redhat.com>
7511
7512 * maint-test-settings.c: Fix file's intro comment. Replace all
7513 references to "test-options" with references to "test-settings",
7514 in comments.
7515
970f9d09
PA
75162019-07-03 Pedro Alves <palves@redhat.com>
7517
7518 * maint-test-settings.c (maintenance_test_settings_xxx)
7519 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7520 New.
7521 (maintenance_test_settings_enums): Use them.
7522 (maintenance_test_settings_enum): Default to
7523 maintenance_test_settings_xxx.
7524 (_initialize_maint_test_settings): Initialize
7525 MAINTENANCE_TEST_SETTINGS_FILENAME.
7526
f3869b1a
SM
75272019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7528
7529 * breakpoint.h (remove_breakpoints_inf): Change return type to
7530 void, move function documentation here.
7531 * breakpoint.c (remove_breakpoints_inf): Change return type to
7532 void, move function documentation to header.
7533
54d66006
PA
75342019-07-02 Pedro Alves <palves@redhat.com>
7535
7536 * NEWS (Completion improvements): Mention "info threads".
7537 * thread.c (struct info_threads_opts, info_threads_option_defs)
7538 (make_info_threads_options_def_group): New.
7539 (info_threads_command): Use gdb::option::process_options.
7540 (info_threads_command_completer): New.
7541 (_initialize_thread): Use gdb::option::build_help to build the
7542 help text for "info threads".
7543
854f6088
SM
75442019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7545
7546 * defs.h (generic_load): Move from here...
7547 * symfile.h (generic_load): ... to here. Rename name parameter
7548 to args.
7549 * symfile.c (generic_load): Add comment.
7550
54ee4252
TT
75512019-07-01 Tom Tromey <tromey@adacore.com>
7552
7553 * dwarf2read.c
7554 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7555 declaration of without_params. Fix formatting.
7556
65392b3e
TT
75572019-07-01 Tom Tromey <tromey@adacore.com>
7558
7559 * ada-exp.y (find_primitive_type): Update.
7560 * ada-lang.h (ada_lookup_symbol): Update.
7561 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7562 parameter.
7563 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7564
7d7571f0
SDJ
75652019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7566
7567 PR breakpoints/24541
7568 * gdbarch.c: Regenerate.
7569 * gdbarch.h: Regenerate.
7570 * gdbarch.sh: Add 'stap_adjust_register'.
7571 * i386-tdep.c: Include '<unordered_set>'.
7572 (i386_stap_adjust_register): New function.
7573 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7574 * stap-probe.c (stap_parse_register_operand): Call
7575 'gdbarch_stap_adjust_register'.
7576
5af5392a
SDJ
75772019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7578
7579 PR python/24742
7580 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7581 * python/python.c (do_start_initialization): Use 'xmalloc'
7582 instead of 'PyMem_Malloc'.
7583
10d06d82
TT
75842019-06-28 Tom Tromey <tromey@adacore.com>
7585
7586 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7587 for Ada.
7588
1b7f24cd
TT
75892019-06-27 Tom Tromey <tromey@adacore.com>
7590
7591 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7592 objfile_key.
7593 (arm_find_mapping_symbol, arm_record_special_symbol)
7594 (_initialize_arm_tdep): Update.
7595 (arm_objfile_data_free): Remove.
7596
3d507ff2
TT
75972019-06-27 Tom Tromey <tromey@adacore.com>
7598
7599 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7600 to cp_print_static_field.
7601
762c164d
TT
76022019-06-26 Tom Tromey <tromey@adacore.com>
7603
7604 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7605 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7606 declare.
7607
aa2f9bcf
AH
76082019-06-26 Alan Hayward <alan.hayward@arm.com>
7609
7610 * features/aarch64-core.c (create_feature_aarch64_core):
7611 Regenerate.
7612 * features/aarch64-core.xml: Add cpsr flags.
7613
3426ae57
AH
76142019-06-26 Alan Hayward <alan.hayward@arm.com>
7615
7616 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7617 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7618
4838e44c
SM
76192019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7620
7621 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7622 field.
7623 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7624 use.
7625 (arm_record_special_symbol): Don't insert new symbol in sorted
7626 position, push it at the end.
7627
54cc7474
SM
76282019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7629
7630 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7631 (arm_mapping_symbol_s): Remove.
7632 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7633 (arm_mapping_symbol_vec): New typedef.
7634 (struct arm_per_objfile): Add constructor.
7635 <section_maps>: Change type to
7636 std::unique_ptr<arm_mapping_symbol_vec[]>.
7637 (arm_compare_mapping_symbols): Remove.
7638 (arm_find_mapping_symbol): Adjust to section_maps type change.
7639 (arm_objfile_data_free): Call delete on arm_per_objfile.
7640 (arm_record_special_symbol): Adjust to section_maps type change.
7641 Allocate arm_per_objfile with new.
7642
b65b566c
PW
76432019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7644
7645 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7646 with the command prefix.
7647
c2fc64f5
TT
76482019-06-25 Tom Tromey <tom@tromey.com>
7649
7650 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7651 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7652
fb54fa76
TT
76532019-06-25 Tom Tromey <tom@tromey.com>
7654
7655 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7656 type.
7657 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7658 protected.
7659
f7952c57
TT
76602019-06-25 Tom Tromey <tom@tromey.com>
7661
7662 * tui/tui-winsource.c
7663 (tui_source_window_base::set_is_exec_point_at): Add check against
7664 LOA_ADDRESS.
7665
17568d78
TT
76662019-06-25 Tom Tromey <tom@tromey.com>
7667
7668 * tui/tui-source.c (tui_set_source_content): Don't check before
7669 xfree.
7670 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7671
53e7cdba
TT
76722019-06-25 Tom Tromey <tom@tromey.com>
7673
7674 * tui/tui-winsource.h (tui_update_source_window_as_is)
7675 (tui_alloc_source_buffer, tui_line_is_displayed)
7676 (tui_addr_is_displayed): Change type of win_info.
7677 * tui/tui-winsource.c (tui_update_source_window_as_is)
7678 (tui_clear_source_content, tui_show_source_line)
7679 (tui_show_source_content, tui_source_window_base::refill)
7680 (tui_source_window_base::set_is_exec_point_at)
7681 (tui_source_window_base::set_is_exec_point_at)
7682 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7683 (tui_alloc_source_buffer, tui_line_is_displayed)
7684 (tui_addr_is_displayed): Change type of win_info. Update.
7685 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7686 (tui_source_window_base::do_make_visible_with_new_height):
7687 Update.
7688 * tui/tui-source.c (tui_set_source_content)
7689 (tui_set_source_content_nil)
7690 (tui_source_window::do_scroll_vertical): Update.
7691 * tui/tui-layout.c (show_layout): Update.
7692 * tui/tui-disasm.c (tui_set_disassem_content)
7693 (tui_disasm_window::do_scroll_vertical): Update.
7694 * tui/tui-data.h (tui_win_content): Remove.
7695 (struct tui_gen_win_info) <content, content_size>: Remove.
7696 (struct tui_source_element): Add initializers and destructor.
7697 (union tui_which_element, struct tui_win_element): Remove.
7698 (struct tui_source_window_base) <content>: New field.
7699 (struct tui_data_window): Remove destructor.
7700 (tui_alloc_content, tui_free_win_content)
7701 (tui_free_all_source_wins_content): Don't declare.
7702 * tui/tui-data.c (tui_initialize_static_data): Update.
7703 (init_content_element, tui_alloc_content): Remove.
7704 (~tui_gen_win_info): Update.
7705 (~tui_data_window, tui_free_all_source_wins_content)
7706 (tui_free_win_content, free_content, free_content_elements):
7707 Remove.
7708
7908abbf
TT
77092019-06-25 Tom Tromey <tom@tromey.com>
7710
7711 * tui/tui-winsource.h (tui_clear_source_content)
7712 (tui_erase_source_content, tui_show_source_content): Change type
7713 of win_info.
7714 * tui/tui-winsource.c (tui_clear_source_content)
7715 (tui_erase_source_content, tui_show_source_content): Change type
7716 of win_info.
7717 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7718 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7719 win_info.
7720 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7721 win_info.
7722 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7723
02c28df0
TT
77242019-06-25 Tom Tromey <tom@tromey.com>
7725
7726 * tui/tui-winsource.c (tui_clear_source_content)
7727 (tui_source_window_base::set_is_exec_point_at): Update.
7728 * tui/tui-source.c (tui_set_source_content_nil): Update.
7729 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7730 a bool.
7731 * tui/tui-data.c (init_content_element): Update.
7732
6658b1bf
TT
77332019-06-25 Tom Tromey <tom@tromey.com>
7734
7735 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7736 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7737 * tui/tui-layout.c (init_and_make_win): Update.
7738 * tui/tui.h (enum tui_win_type): Update.
7739 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7740 tui_win_is_auxillary.
7741 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7742 tui_win_is_auxillary.
7743
21e1c91e
TT
77442019-06-25 Tom Tromey <tom@tromey.com>
7745
7746 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7747 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7748 (tui_delete_data_content_windows, tui_display_all_data)
7749 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7750 Update.
7751 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7752 * tui/tui-regs.c (tui_last_regs_line_no)
7753 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7754 (tui_show_registers): Update.
7755 (tui_show_register_group): Return void. Update.
7756 (tui_display_registers_from, tui_display_reg_element_at_line)
7757 (tui_display_registers_from_line, tui_check_register_values):
7758 Update.
7759 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7760 member.
7761 (struct tui_data_window) <regs_content>: Now a std::vector.
7762 <regs_content_count>: Remove.
7763 (tui_add_content_elements, tui_free_data_content): Don't declare.
7764 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7765 (init_content_element): Remove DATA_WIN case. Add assert.
7766 (tui_add_content_elements): Remove.
7767 (tui_data_window): Update.
7768 (tui_free_data_content): Remove.
7769 (free_content_elements): Remove DATA_WIN case.
7770
115ac53b
TT
77712019-06-25 Tom Tromey <tom@tromey.com>
7772
7773 * tui/tui-data.c (tui_data_item_window): Update.
7774 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7775 * tui/tui-windata.c (tui_display_all_data)
7776 (tui_display_data_from_line): Update.
7777 (tui_check_data_values): Remove.
7778 * tui/tui-regs.c (tui_show_register_group)
7779 (tui_display_reg_element_at_line): Update.
7780 * tui/tui-hooks.c (tui_register_changed)
7781 (tui_refresh_frame_and_register_information): Call
7782 tui_check_register_values.
7783 * tui/tui-data.h (struct tui_data_window) <data_content,
7784 data_content_count, data_type>: Remove.
7785 (enum tui_data_type): Remove.
7786
7787 * tui/tui-data.c (tui_data_window::clear_detail)
7788 (~tui_data_window): Update.
7789
eaf9738b
TT
77902019-06-25 Tom Tromey <tom@tromey.com>
7791
7792 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7793 declare.
7794 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7795 Rename from tui_first_data_item_displayed. Update.
7796 (tui_data_window::refresh_all)
7797 (tui_data_window::do_scroll_vertical): Update.
7798 * tui/tui-data.h (struct tui_data_window)
7799 <first_data_item_displayed>: Declare new method.
7800
31ca4723
TT
78012019-06-25 Tom Tromey <tom@tromey.com>
7802
7803 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7804 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7805 contents...
7806 (tui_initialize_static_data): ...here.
7807
41bcff7f
TT
78082019-06-25 Tom Tromey <tom@tromey.com>
7809
7810 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7811 (tui_display_registers_from, tui_check_register_values): Update.
7812 (tui_display_register): Remove win_info parameter; update.
7813 (tui_get_register): Change type of parameters.
7814 * tui/tui-data.h (struct tui_data_element): Remove.
7815 (union tui_which_element) <data>: Remove.
7816 <data_window>: Change type.
7817 (struct tui_data_item_window): New.
7818 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7819 case. Add assert.
7820 (~tui_data_item_window): New destructor.
7821 (free_content_elements): Remove DATA_ITEM_WIN case.
7822
d2802c33
TT
78232019-06-25 Tom Tromey <tom@tromey.com>
7824
7825 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7826 Remove.
7827
dd835f8b
TT
78282019-06-25 Tom Tromey <tom@tromey.com>
7829
7830 * tui/tui-data.h (struct tui_command_element): Remove.
7831 (union tui_which_element) <command>: Remove.
7832 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7833 assert.
7834 (free_content_elements): Remove CMD_WIN case.
7835
bd7db367
TT
78362019-06-25 Tom Tromey <tom@tromey.com>
7837
7838 * tui/tui-layout.c (tui_set_layout): Update.
7839 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7840 * tui/tui-data.c (layout_def): Update.
7841
3add462f
TT
78422019-06-25 Tom Tromey <tom@tromey.com>
7843
7844 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7845 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7846 (tui_source_window_base::set_new_height): Update.
7847 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7848 Update.
7849 (tui_set_locator_fullname, tui_set_locator_info)
7850 (tui_show_frame_info): Update.
7851 * tui/tui-source.c (tui_set_source_content)
7852 (tui_source_is_displayed): Update.
7853 * tui/tui-layout.c (show_source_disasm_command, show_data)
7854 (show_source_or_disasm_and_command): Update.
7855 * tui/tui-disasm.c (tui_set_disassem_content)
7856 (tui_get_begin_asm_address): Update.
7857 * tui/tui-data.h (struct tui_locator_element): Remove.
7858 (union tui_which_element) <locator>: Remove.
7859 (struct tui_locator_window): New.
7860 (tui_locator_win_info_ptr): Change return type.
7861 * tui/tui-data.c (_locator): Change type.
7862 (tui_locator_win_info_ptr): Change return type.
7863 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7864 (tui_alloc_content): Add assert.
7865
489e9d8b
TT
78662019-06-25 Tom Tromey <tom@tromey.com>
7867
7868 * tui/tui-winsource.c
7869 (tui_exec_info_window::maybe_allocate_content): New method.
7870 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7871 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7872 (make_source_or_disasm_window): Add cast.
7873 * tui/tui-data.h (union tui_which_element) <simple_string>:
7874 Remove.
7875 (struct tui_source_info): New.
7876 (struct tui_source_window_base) <execution_info>: Change type.
7877 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7878 case, and add assert.
7879 (tui_alloc_content): Add assert.
7880
c3fabb7d
TT
78812019-06-25 Tom Tromey <tom@tromey.com>
7882
7883 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7884 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7885 * tui/tui-data.c (tui_alloc_win_info): Remove.
7886
bbc228ee
TT
78872019-06-25 Tom Tromey <tom@tromey.com>
7888
7889 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7890 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7891 can_highlight.
7892
5fcee43a
TT
78932019-06-25 Tom Tromey <tom@tromey.com>
7894
7895 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7896 make_visible_with_new_height method.
7897 (tui_win_info::make_visible_with_new_height): New method.
7898 (tui_source_window_base::do_make_visible_with_new_height)
7899 (tui_data_window::do_make_visible_with_new_height)
7900 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7901 (make_visible_with_new_height): Remove.
7902 (tui_resize_all, tui_adjust_win_heights): Use
7903 make_visible_with_new_height method.
7904 * tui/tui-data.h (struct tui_win_info)
7905 <do_make_visible_with_new_height, make_visible_with_new_height>:
7906 New methods.
7907 (struct tui_source_window_base, struct tui_data_window)
7908 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7909 methods.
7910
d83f1fe6
TT
79112019-06-25 Tom Tromey <tom@tromey.com>
7912
7913 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7914 method.
7915 (update_tab_width): Call update_tab_width method.
7916 * tui/tui-data.h (struct tui_win_info)
7917 (struct tui_source_window_base) <update_tab_width>: New methods.
7918
17374de4
TT
79192019-06-25 Tom Tromey <tom@tromey.com>
7920
7921 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7922 parameter.
7923 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7924 parameter.
7925 (tui_gen_win_info::make_visible): Update.
7926 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7927 parameter.
7928 * tui/tui-data.h (enum tui_box): New enum.
7929 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7930
f936bca2
TT
79312019-06-25 Tom Tromey <tom@tromey.com>
7932
7933 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7934 init_and_make_win for EXEC_INFO_WIN.
7935 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7936 longer inline.
7937 (struct tui_win_info) <~tui_win_info>: Inline.
7938 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7939 Don't declare.
7940 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7941 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7942 Remove.
7943 (tui_initialize_static_data): Update.
7944 (~tui_gen_win_info): Handle more cleanup here.
7945 (~tui_source_window_base): Delete "execution_info".
7946 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7947
d6ba6a11
TT
79482019-06-25 Tom Tromey <tom@tromey.com>
7949
7950 * tui/tui-layout.c (make_command_window): Don't set
7951 can_highlight.
7952 (show_source_disasm_command): Call the reset method.
7953 (show_data): Don't set can_highlight. Call the reset method.
7954 (tui_gen_win_info::reset): Rename from init_gen_win_info
7955 (init_and_make_win): Simplify. Return tui_gen_win_info.
7956 (show_source_or_disasm_and_command): Call the reset method.
7957 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7958 (struct tui_cmd_window): Set can_highlight.
7959
48a3bd16
TT
79602019-06-25 Tom Tromey <tom@tromey.com>
7961
7962 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7963 from make_visible.
7964 (tui_make_visible, tui_make_invisible): Rewrite.
7965 (tui_win_info::make_visible): Remove.
7966 (tui_source_window_base::make_visible): Update.
7967 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7968 method. Moved from...
7969 (struct tui_win_info) <make_visible>: ...here.
7970
c3bd716f
TT
79712019-06-25 Tom Tromey <tom@tromey.com>
7972
7973 * tui/tui-winsource.c
7974 (tui_source_window_base::do_scroll_horizontal): Remove direction
7975 parameter.
7976 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7977 direction parameter.
7978 * tui/tui-win.c (tui_win_info::forward_scroll)
7979 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7980 (tui_win_info::right_scroll): Update.
7981 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7982 direction parameter.
7983 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7984 direction parameter.
7985 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7986 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7987 Remove direction parameter.
7988 (struct tui_source_window_base, struct tui_source_window)
7989 (struct tui_disasm_window, struct tui_data_window)
7990 (struct tui_cmd_window): Update.
7991
21c32dca
TT
79922019-06-25 Tom Tromey <tom@tromey.com>
7993
7994 * tui/tui-winsource.h (tui_set_exec_info_content)
7995 (tui_show_exec_info_content, tui_erase_exec_info_content)
7996 (tui_clear_exec_info_content, tui_update_exec_info): Change
7997 argument to tui_source_window_base.
7998 * tui/tui-winsource.c (tui_set_exec_info_content)
7999 (tui_show_exec_info_content, tui_erase_exec_info_content)
8000 (tui_clear_exec_info_content, tui_update_exec_info): Change
8001 argument to tui_source_window_base.
8002
73fbdc65
TT
80032019-06-25 Tom Tromey <tom@tromey.com>
8004
8005 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8006 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8007
33325343
TT
80082019-06-25 Tom Tromey <tom@tromey.com>
8009
8010 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8011 check.
8012
29d2c474
TT
80132019-06-25 Tom Tromey <tom@tromey.com>
8014
8015 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8016 type to void.
8017 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8018 type to void.
8019 * tui/tui-source.c (tui_set_source_content): Update.
8020 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8021
152f3f4b
TT
80222019-06-25 Tom Tromey <tom@tromey.com>
8023
8024 * tui/tui-win.c (window_name_completer, tui_set_focus)
8025 (tui_all_windows_info): Use name method.
8026 * tui/tui-data.h (struct tui_gen_win_info)
8027 (struct tui_source_window, struct tui_disasm_window)
8028 (struct tui_data_window, struct tui_cmd_window) <name>: New
8029 method.
8030 (tui_win_name): Don't declare.
8031 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8032 (tui_win_name): Remove.
8033
be4da588
TT
80342019-06-25 Tom Tromey <tom@tromey.com>
8035
8036 * tui/tui-winsource.h (tui_update_source_window)
8037 (tui_update_source_window_as_is): Change parameter type.
8038 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8039 to be a tui_source_window_base.
8040 (tui_update_source_window_as_is): Likewise.
8041 * tui/tui-win.c (make_visible_with_new_height): Update.
8042
5b81daba
TT
80432019-06-25 Tom Tromey <tom@tromey.com>
8044
8045 * tui/tui-winsource.c (tui_erase_source_content)
8046 (tui_show_source_content, tui_show_exec_info_content)
8047 (tui_erase_exec_info_content): Use refresh_window method.
8048 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8049 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8050 from tui_refresh_win.
8051 (tui_data_window::refresh_window): New method.
8052 (tui_win_info::refresh, tui_source_window_base::refresh)
8053 (tui_refresh_all): Use refresh_window method.
8054 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8055 method.
8056 * tui/tui-regs.c (tui_display_register): Call refresh_window
8057 method.
8058 * tui/tui-layout.c (show_source_disasm_command)
8059 (show_source_or_disasm_and_command): Call refresh_window method.
8060 * tui/tui-data.h (struct tui_gen_win_info)
8061 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8062 New method.
8063
cb2ce893
TT
80642019-06-25 Tom Tromey <tom@tromey.com>
8065
8066 * tui/tui.c (tui_rl_other_window, tui_enable)
8067 (tui_is_window_visible, tui_get_command_dimension): Update.
8068 * tui/tui-winsource.c (tui_update_source_window_as_is)
8069 (tui_clear_source_content, tui_erase_source_content)
8070 (tui_show_source_line, tui_source_window_base::refill)
8071 (tui_source_window_base::do_scroll_horizontal)
8072 (tui_source_window_base::set_is_exec_point_at)
8073 (tui_update_breakpoint_info, tui_set_exec_info_content)
8074 (tui_alloc_source_buffer, tui_line_is_displayed)
8075 (tui_addr_is_displayed): Update.
8076 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8077 (tui_check_and_display_highlight_if_needed)
8078 (tui_win_info::make_visible, tui_win_info::refresh)
8079 (tui_refresh_all): Update.
8080 * tui/tui-windata.c (tui_first_data_item_displayed)
8081 (tui_delete_data_content_windows, tui_erase_data_content)
8082 (tui_display_all_data, tui_data_window::refresh_all)
8083 (tui_check_data_values): Update.
8084 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8085 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8086 (tui_win_info::backward_scroll, tui_refresh_all_win)
8087 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8088 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8089 (tui_source_window_base::set_new_height)
8090 (tui_data_window::set_new_height)
8091 (make_invisible_and_set_new_height)
8092 (make_visible_with_new_height, new_height_ok)
8093 (parse_scrolling_args): Update.
8094 * tui/tui-stack.c (tui_show_frame_info): Update.
8095 * tui/tui-source.c (tui_set_source_content)
8096 (tui_set_source_content_nil, tui_source_is_displayed)
8097 (tui_source_window::do_scroll_vertical): Update.
8098 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8099 (tui_display_registers_from, tui_display_reg_element_at_line)
8100 (tui_check_register_values, tui_reg_command): Update.
8101 * tui/tui-layout.c (tui_default_win_height)
8102 (show_source_disasm_command, show_data, init_and_make_win)
8103 (show_source_or_disasm_and_command): Update.
8104 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8105 (tui_redisplay_readline, tui_mld_flush)
8106 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8107 (tui_getc): Update.
8108 * tui/tui-disasm.c (tui_set_disassem_content)
8109 (tui_disasm_window::do_scroll_vertical): Update.
8110 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8111 Now virtual.
8112 (struct tui_win_info): Derive from tui_gen_win_info.
8113 <~tui_win_info>: Mark as override.
8114 <generic>: Remove member.
8115 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8116 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8117 (~tui_data_window, ~tui_win_info)
8118 (tui_free_all_source_wins_content): Update.
8119 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8120
ab313b35
TT
81212019-06-25 Tom Tromey <tom@tromey.com>
8122
8123 * tui/tui-layout.c (init_and_make_win): Use new.
8124 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8125 destructor, initializers.
8126 (tui_alloc_generic_win_info): Don't declare.
8127 * tui/tui-data.c (_locator): Add argument to constructor.
8128 (source_win, disasm_win): New globals.
8129 (exec_info): Remove.
8130 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8131 Update.
8132 (tui_alloc_generic_win_info): Remove.
8133 (init_content_element): Use new.
8134 (tui_win_info::tui_win_info): Update.
8135 (free_content_elements) <case DATA_WIN>: Use delete.
8136
dc2c33e4
TT
81372019-06-25 Tom Tromey <tom@tromey.com>
8138
8139 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8140 * tui/tui-windata.c (tui_first_data_item_displayed)
8141 (tui_delete_data_content_windows): Update.
8142 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8143 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8144 (tui_display_registers_from, tui_check_register_values): Update.
8145 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8146 pointer.
8147 * tui/tui-data.c (init_content_element): Update. Allocate the new
8148 window.
8149 (tui_free_data_content): Update.
8150 (free_content_elements) <case DATA_WIN>: Free the window.
8151
214a5cbe
TT
81522019-06-25 Tom Tromey <tom@tromey.com>
8153
8154 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8155 Update.
8156 * tui/tui-layout.c (make_command_window)
8157 (show_source_disasm_command, show_data, init_and_make_win)
8158 (show_source_or_disasm_and_command): Update.
8159 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8160 method.
8161 <can_highight, is_highlighted>: Now bool.
8162 (tui_set_win_highlight): Don't declare.
8163 * tui/tui-data.c (tui_set_win_highlight): Remove.
8164
8e2daf15
TT
81652019-06-25 Tom Tromey <tom@tromey.com>
8166
8167 * tui/tui-wingeneral.c (make_visible): Remove check of window
8168 type.
8169
8903bd8a
TT
81702019-06-25 Tom Tromey <tom@tromey.com>
8171
8172 * tui/tui-win.c (tui_win_info::max_height)
8173 (tui_cmd_window::max_height): New methods.
8174 (new_height_ok): Call max_height.
8175 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8176 <max_height>: New method.
8177
3f02ce1e
TT
81782019-06-25 Tom Tromey <tom@tromey.com>
8179
8180 * tui/tui-win.c (tui_source_window_base::set_new_height)
8181 (tui_data_window::set_new_height): New methods.
8182 (make_invisible_and_set_new_height): Call set_new_height method.
8183 * tui/tui-data.h (struct tui_win_info)
8184 (struct tui_source_window_base, struct tui_data_window)
8185 <set_new_height>: New method.
8186
1825f487
TT
81872019-06-25 Tom Tromey <tom@tromey.com>
8188
8189 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8190 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8191 tui_refresh_data_win.
8192 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8193 method.
8194 (tui_refresh_all_win): Call the refresh_all method.
8195 (tui_set_focus): Likewise.
8196 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8197 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8198 Likewise.
8199
ad54d15b
TT
82002019-06-25 Tom Tromey <tom@tromey.com>
8201
8202 * tui/tui-winsource.h (tui_refill_source_window)
8203 (tui_set_is_exec_point_at): Don't declare.
8204 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8205 (tui_source_window_base::refill): Rename from
8206 tui_refill_source_window.
8207 (tui_source_window_base::do_scroll_horizontal): Update.
8208 (tui_source_window_base::set_is_exec_point_at): Rename from
8209 tui_set_is_exec_point_at.
8210 (tui_update_all_breakpoint_info): Update.
8211 * tui/tui-stack.c (tui_show_frame_info): Update.
8212 * tui/tui-layout.c (show_data): Add cast.
8213 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8214 * tui/tui-data.h (struct tui_source_window_base) <refill,
8215 set_is_exec_point_at>: New methods.
8216 (tui_source_windows, tui_add_to_source_windows): Update types.
8217 (tui_add_to_source_windows): Remove redundant declaration.
8218 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8219 (tui_source_windows): Change return type.
8220 (tui_clear_source_windows_detail): Update.
8221 (tui_add_to_source_windows): Change type of parameter.
8222 (tui_free_all_source_wins_content): Update.
8223
2042b506
TT
82242019-06-25 Tom Tromey <tom@tromey.com>
8225
8226 * tui/tui-wingeneral.c (tui_win_info::refresh)
8227 (tui_source_window_base::refresh): New methods.
8228 (tui_refresh_all): Call the refresh method.
8229 * tui/tui-data.h (struct tui_win_info)
8230 (struct tui_source_window_base) <refresh>: New method.
8231
56122977
TT
82322019-06-25 Tom Tromey <tom@tromey.com>
8233
8234 * tui/tui.h (tui_is_window_visible): Return bool.
8235 * tui/tui.c (tui_is_window_visible): Return bool.
8236 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8237 (tui_make_visible, tui_make_invisible)
8238 (tui_win_info::make_visible)
8239 (tui_source_window_base::make_visible, make_all_visible)
8240 (tui_make_all_visible, tui_make_all_invisible): Update.
8241 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8242 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8243 bool.
8244 (struct tui_win_info, struct tui_source_window_base)
8245 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8246 * tui/tui-data.c (tui_init_generic_part): Update.
8247
cda37efb
TT
82482019-06-25 Tom Tromey <tom@tromey.com>
8249
8250 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8251 (tui_source_window_base::make_visible): New methods.
8252 (make_all_visible): Make method call.
8253 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8254 (struct tui_source_window_base, struct tui_cmd_window): Override
8255 make_visible.
8256 (tui_win_is_source_type): Don't declare.
8257 * tui/tui-data.c (tui_win_is_source_type): Remove.
8258
6a0ee02c
TT
82592019-06-25 Tom Tromey <tom@tromey.com>
8260
8261 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8262 NULL check.
8263
63901aec
TT
82642019-06-25 Tom Tromey <tom@tromey.com>
8265
8266 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8267 Inline constructor. Add initializers for members.
8268 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8269 constructors; now inline in class.
8270
ceb13a13
TT
82712019-06-25 Tom Tromey <tom@tromey.com>
8272
8273 * tui/tui-regs.c (tui_show_registers): Update.
8274 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8275 bool.
8276 * tui/tui-data.c (tui_data_window::clear_detail)
8277 (tui_data_window): Update.
8278
238eb706
TT
82792019-06-25 Tom Tromey <tom@tromey.com>
8280
8281 * tui/tui-windata.c (tui_display_all_data)
8282 (tui_display_data_from_line, tui_display_data_from)
8283 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8284 Update.
8285 * tui/tui-regs.c (tui_last_regs_line_no)
8286 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8287 (tui_show_registers, tui_show_register_group)
8288 (tui_display_registers_from, tui_display_reg_element_at_line)
8289 (tui_display_registers_from_line, tui_check_register_values)
8290 (tui_reg_next, tui_reg_prev): Update.
8291 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8292 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8293 tui_data_window.
8294 (struct tui_win_info) <detail>: Remove. Add new fields from
8295 tui_data_info.
8296 (TUI_DATA_WIN): Add cast.
8297 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8298 (~tui_data_window): Simplify.
8299
81491aa0
TT
83002019-06-25 Tom Tromey <tom@tromey.com>
8301
8302 * tui/tui-layout.c (show_source_disasm_command)
8303 (show_source_or_disasm_and_command): Update.
8304 * tui/tui-io.c (update_cmdwin_start_line)
8305 (tui_redisplay_readline): Update.
8306 * tui/tui-data.h (struct tui_command_info): Remove.
8307 (struct tui_win_info) <detail>: Remove command_info member.
8308 (struct tui_data_window) <start_line>: New member, from
8309 tui_command_info.
8310 (TUI_CMD_WIN): Add casts.
8311
e6e41501
TT
83122019-06-25 Tom Tromey <tom@tromey.com>
8313
8314 * tui/tui-winsource.c (tui_update_source_window)
8315 (tui_refill_source_window)
8316 (tui_source_window_base::do_scroll_horizontal)
8317 (tui_update_breakpoint_info, tui_set_exec_info_content)
8318 (tui_show_exec_info_content, tui_erase_exec_info_content)
8319 (tui_clear_exec_info_content): Update.
8320 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8321 Update.
8322 * tui/tui-win.c (make_invisible_and_set_new_height)
8323 (make_visible_with_new_height): Update.
8324 * tui/tui-source.c (tui_set_source_content)
8325 (tui_show_symtab_source): Update.
8326 * tui/tui-layout.c (extract_display_start_addr)
8327 (show_source_disasm_command, show_data)
8328 (make_source_or_disasm_window)
8329 (show_source_or_disasm_and_command): Update.
8330 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8331 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8332 "gdbarch".
8333 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8334 to tui_source_window_base.
8335 (struct tui_win_info) <detail>: Remove source_info member.
8336 (struct tui_source_window_base) <has_locator>: Inline.
8337 Move contents from tui_source_info; rename has_locator member to
8338 m_has_locator.
8339 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8340 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8341 header file.
8342 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8343 Simplify.
8344 (tui_free_all_source_wins_content): Cast to
8345 tui_source_window_base.
8346
44f0e208
TT
83472019-06-25 Tom Tromey <tom@tromey.com>
8348
8349 * tui/tui-win.c (make_invisible_and_set_new_height)
8350 (make_visible_with_new_height): Call has_locator method.
8351 * tui/tui-layout.c (show_source_disasm_command, show_data)
8352 (show_source_or_disasm_and_command): Update for bool change.
8353 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8354 (tui_win_info) <has_locator>: New method.
8355 (struct tui_source_window_base) <has_locator>: New method.
8356 (tui_win_has_locator): Don't declare.
8357 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8358 from tui_win_has_locator.
8359 (tui_source_window_base): Use false, not FALSE.
8360
7778b912
TT
83612019-06-25 Tom Tromey <tom@tromey.com>
8362
8363 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8364 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8365 clear_detail method directly.
8366 (tui_clear_win_detail): Remove.
8367
f83d391c
TT
83682019-06-25 Tom Tromey <tom@tromey.com>
8369
8370 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8371 "this", not TUI_DISASM_WIN.
8372
13446e05
TT
83732019-06-25 Tom Tromey <tom@tromey.com>
8374
8375 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8376 declare.
8377 * tui/tui-winsource.c
8378 (tui_source_window_base::do_scroll_horizontal): Rename from
8379 tui_horizontal_source_scroll.
8380 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8381 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8382 from tui_vertical_data_scroll.
8383 * tui/tui-win.h (tui_scroll): Don't declare.
8384 * tui/tui-win.c (tui_win_info::forward_scroll)
8385 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8386 (tui_win_info::right_scroll): Rename and update.
8387 (tui_scroll_forward_command, tui_scroll_backward_command)
8388 (tui_scroll_left_command, tui_scroll_right_command): Update.
8389 (tui_scroll): Remove.
8390 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8391 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8392 from tui_vertical_source_scroll.
8393 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8394 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8395 from tui_vertical_disassem_scroll.
8396 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8397 do_scroll_horizontal>: New methods.
8398 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8399 Likewise.
8400 (struct tui_source_window_base): Add do_scroll_horizontal.
8401 (struct tui_source_window, struct tui_disasm_window): Add
8402 do_scroll_vertical.
8403 (struct tui_data_window, struct tui_cmd_window): Add
8404 do_scroll_horizontal and do_scroll_vertical.
8405 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8406
5cf82909
TT
84072019-06-25 Tom Tromey <tom@tromey.com>
8408
8409 * tui/tui-data.h (struct tui_source_window_base): New struct.
8410 (struct tui_source_window): Derive from tui_source_window_base.
8411 (struct tui_disasm_window): New struct.
8412 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8413 from tui_source_window::clear_detail.
8414 (tui_source_window_base): Rename from tui_source_window.
8415 (~tui_source_window_base): Rename from ~tui_source_window.
8416 (tui_alloc_win_info): Create a tui_disasm_window.
8417
ee1d42d6
TT
84182019-06-25 Tom Tromey <tom@tromey.com>
8419
8420 * tui/tui-data.h (struct tui_source_window)
8421 (struct tui_data_window): Declare destructors.
8422 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8423 destructors.
8424 (tui_win_info): Simplify.
8425
b4eb2452
TT
84262019-06-25 Tom Tromey <tom@tromey.com>
8427
8428 * tui/tui-winsource.c (tui_display_main)
8429 (tui_update_source_windows_with_addr)
8430 (tui_update_all_breakpoint_info): Update.
8431 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8432 (new_height_ok, parse_scrolling_args): Update.
8433 * tui/tui-stack.c (tui_show_frame_info): Update.
8434 * tui/tui-data.h (struct tui_list): Remove.
8435 (tui_source_windows): Return a reference to a std::vector.
8436 * tui/tui-data.c (source_windows): Now a std::vector.
8437 (tui_source_windows): Change return type.
8438 (tui_clear_source_windows): Rewrite.
8439 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8440 (tui_free_all_source_wins_content): Rewrite.
8441
8761a91b
TT
84422019-06-25 Tom Tromey <tom@tromey.com>
8443
8444 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8445 (struct tui_data_window, struct tui_cmd_window): Declare
8446 clear_detail method.
8447 * tui/tui-data.c (tui_source_window::clear_detail)
8448 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8449 methods.
8450 (tui_clear_win_detail): Simplify.
8451
0ed69eda
TT
84522019-06-25 Tom Tromey <tom@tromey.com>
8453
8454 * tui/tui-layout.c (make_source_window, make_disasm_window)
8455 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8456 Return the new window.
8457 (show_source_disasm_command, show_data)
8458 (show_source_or_disasm_and_command): Update.
8459
82432e10
TT
84602019-06-25 Tom Tromey <tom@tromey.com>
8461
8462 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8463 parameter. Return the new window.
8464 (show_source_disasm_command): Update and remove NULL check.
8465 (show_source_or_disasm_and_command): Update.
8466
ec328aa5
TT
84672019-06-25 Tom Tromey <tom@tromey.com>
8468
8469 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8470
33b906ab
TT
84712019-06-25 Tom Tromey <tom@tromey.com>
8472
8473 * tui/tui-data.h (struct tui_win_info): Make constructor
8474 protected. Make destructor virtual. Add initializers.
8475 (tui_source_window, tui_data_window, tui_cmd_window): New
8476 classes.
8477 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8478 constructor. Add "type" parameter.
8479 (tui_source_window, tui_data_window, tui_cmd_window): New
8480 constructors.
8481 (tui_alloc_win_info): Instantiate the appropriate subclass.
8482
e7e11af4
TT
84832019-06-25 Tom Tromey <tom@tromey.com>
8484
8485 * tui/tui-win.c (tui_resize_all): Use delete.
8486 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8487 destructor.
8488 (tui_free_window): Don't declare.
8489 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8490 Update.
8491
6792b55e
TT
84922019-06-25 Tom Tromey <tom@tromey.com>
8493
8494 * tui/tui-data.h (struct tui_win_info): Add constructor.
8495 * tui/tui-data.c (tui_alloc_win_info): Use new.
8496 (tui_free_window): Use delete.
8497
f95675e1
TT
84982019-06-22 Tom Tromey <tom@tromey.com>
8499
8500 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8501 declare.
8502 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8503
5bff081c
TT
85042019-06-22 Tom Tromey <tom@tromey.com>
8505
8506 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8507 declare.
8508 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8509
47e3f474
TV
85102019-06-22 Tom de Vries <tdevries@suse.de>
8511
8512 * dwarf2read.c (create_addrmap_from_aranges)
8513 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8514 instead of '%zu'.
8515
fd5866f6
SM
85162019-06-21 Simon Marchi <simon.marchi@efficios.com>
8517
8518 * dwarf2read.h (dwarf2_section_info_def): Remove.
8519 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8520 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8521 std::vector<dwarf2_section_info>.
8522 (struct dwo_file) <~dwo_file>: Remove.
8523 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8524 types field.
8525 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8526 (dwarf2_read_debug_names): Likewise.
8527 (create_debug_types_hash_table): Change parameter type to
8528 array_view, adjust code accordingly.
8529 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8530 (partial_die_info::fixup): Likewise.
8531 (determine_prefix): Likewise.
8532 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8533
fb1eb2f9
SM
85342019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8535
8536 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8537 gdb_bfd_ref_ptr.
8538 <~dwo_file>: Remove call to gdb_bfd_unref.
8539 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8540 gdb_bfd_ref_ptr::get.
8541
51ac9db5
SM
85422019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8543
8544 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8545 type to htab_up.
8546 * dwarf2read.c (struct dwo_file): Initialize fields.
8547 <~dwo_file>: New.
8548 (free_dwo_file): Remove, move content to ~dwo_file.
8549 (struct dwo_file_deleter): Remove.
8550 (dwo_file_up>: Remove custom deleter.
8551 (free_dwo_files): Remove.
8552 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8553 dwo_files.
8554 (process_skeletonless_type_units): Call unique_ptr::get.
8555 (allocate_dwo_file_hash_table): Add deleter to created hash
8556 table. Change return type to htab_up.
8557 (lookup_dwo_file_slot): Don't memset dwo_file, call
8558 unique_ptr::get.
8559 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8560 (create_dwo_unit_in_dwp_v2): Likewise.
8561 (open_and_init_dwo_file): Likewise.
8562 (free_dwo_file_from_slot): Remove.
8563
dc4ccb6f
SM
85642019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8565
8566 * dwarf2read.h (struct dwarf2_section_info) <readin,
8567 is_virtual>: Change type to bool.
8568 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8569 true instead of 1.
8570
e6a1c5cb
TT
85712019-06-19 Tom Tromey <tom@tromey.com>
8572
8573 * tui/tui-data.h (tui_init_content_element): Don't declare.
8574
6f6ffbeb
TT
85752019-06-19 Tom Tromey <tom@tromey.com>
8576
8577 * tui/tui-data.h (tui_init_win_info): Don't declare.
8578
f23f598e
TV
85792019-06-19 Tom de Vries <tdevries@suse.de>
8580
8581 * dwarf2read.h (abstract_to_concrete): Change type to
8582 std::unordered_map<sect_offset, std::vector<sect_offset>,
8583 gdb::hash_enum<sect_offset>>.
8584
680e1bee
TT
85852019-06-19 Tom Tromey <tromey@adacore.com>
8586
8587 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8588 EVAL_AVOID_SIDE_EFFECTS specially.
8589
dcf37923
TT
85902019-06-19 Tom Tromey <tromey@adacore.com>
8591
8592 * source-cache.c (highlighter): New global.
8593 (source_cache::get_source_lines): Create a highlighter on demand.
8594
494986d5
AB
85952019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8596
8597 * defs.h (deprecated_interactive_hook): Delete declaration.
8598 * interps.c (clear_interpreter_hooks): Remove use of
8599 deprecated_interactive_hook.
8600 * top.c (deprecated_interactive_hook): Delete definition.
8601 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8602
3360b6e7
TV
86032019-06-18 Tom de Vries <tdevries@suse.de>
8604
8605 PR gdb/24515
8606 * dwarf2read.h (abstract_to_concrete): Change type from
8607 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8608 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8609 * dwarf2read.c (read_variable): Update.
8610 (dwarf2_fetch_die_loc_sect_off): Update.
8611
310b3441
TV
86122019-06-17 Tom de Vries <tdevries@suse.de>
8613
8614 PR gdb/24617
8615 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8616 accessing parent[parent_len - 1].
8617
ba9777be
PP
86182019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8619
8620 PR gdb/24364
8621 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8622 call dtrace_process_dof with NULL dof.
8623
2b9f6e89
TV
86242019-06-16 Tom de Vries <tdevries@suse.de>
8625
8626 PR gdb/24445
8627 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8628
431b3ead
TT
86292019-06-16 Tom Tromey <tom@tromey.com>
8630
8631 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8632 (make_all_visible): Use address of member.
8633
d04b44a1
TT
86342019-06-16 Tom Tromey <tom@tromey.com>
8635
8636 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8637 (tui_free_window, free_content, free_content_elements): Remove
8638 unnecessary cast.
8639 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8640 cast.
8641 * tui/tui-regs.c (tui_show_register_group)
8642 (tui_display_registers_from, tui_display_reg_element_at_line):
8643 Remove unnecessary cast.
8644
bf5142e7
AB
86452019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8646
8647 * linux-nat.c (normal_mask): Delete.
8648 (_initialize_linux_nat): Don't initialise normal_mask.
8649
c4973306
SM
86502019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8651
8652 PR gdb/24445
8653 * dwarf-index-write.h (write_psymtabs_to_index): Add
8654 dwz_basename parameter.
8655 * dwarf-index-write.c (write_gdbindex): Move file writing to
8656 write_gdbindex_1. Change return type void.
8657 (assert_file_size): Move up, remove filename parameter.
8658 (write_gdbindex_1): New function.
8659 (write_debug_names): Change return type to void, call
8660 assert_file_size.
8661 (struct index_wip_file): New struct.
8662 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8663 file logic to index_wip_file. Write index for dwz file if
8664 needed.
8665 (save_gdb_index_command): Pass basename of dwz file, if present.
8666 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8667 build-id of dwz file, if present.
8668 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8669 (dwarf2_get_dwz_file): Likewise.
8670 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8671 (dwarf2_get_dwz_file): Likewise.
8672
395f9c91
TT
86732019-06-16 Tom Tromey <tom@tromey.com>
8674
8675 * coffread.c (process_coff_symbol): Use xstrdup.
8676 * value.c (create_internalvar): Use xstrdup.
8677
cafb3438
TT
86782019-06-16 Tom Tromey <tom@tromey.com>
8679
8680 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8681 * breakpoint.c (stopin_command, stopat_command)
8682 (until_break_command, decode_location_default): Remove unnecessary
8683 cast.
8684 * utils.c (subset_compare): Remove unnecessary cast.
8685 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8686 cast.
8687 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8688 cast.
8689 * infcmd.c (path_command): Remove unnecessary cast.
8690 * coffread.c (decode_type): Remove unnecessary cast.
8691 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8692 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8693 * tui/tui-stack.c (tui_show_locator_content)
8694 (tui_show_frame_info): Remove unnecessary cast.
8695 * tui/tui-win.c (tui_scroll_forward_command)
8696 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8697 (parse_scrolling_args): Remove unnecessary cast.
8698 * tui/tui-data.c (init_win_info, tui_del_window)
8699 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8700 (free_content_elements): Remove unnecessary cast.
8701 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8702 unnecessary cast.
8703 * tui/tui-source.c (tui_set_source_content)
8704 (tui_vertical_source_scroll): Remove unnecessary cast.
8705 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8706 cast.
8707 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8708 * tui/tui-regs.c (tui_display_registers_from)
8709 (tui_display_register): Remove unnecessary cast.
8710 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8711 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8712 (make_visible): Remove unnecessary cast.
8713 * tui/tui-winsource.c (tui_erase_source_content)
8714 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8715 unnecessary cast.
8716 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8717 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8718 * stabsread.c (read_type, read_array_type, read_range_type):
8719 Remove unnecessary cast.
8720 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8721 (parse_symbol, parse_type, upgrade_type, parse_external)
8722 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8723 unnecessary cast.
8724 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8725
730ead81
TT
87262019-06-16 Tom Tromey <tom@tromey.com>
8727
8728 * tui/tui-data.c (tui_alloc_generic_win_info)
8729 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8730 checks.
8731
584a927c
AB
87322019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8733 Andrew Burgess <andrew.burgess@embecosm.com>
8734
8735 * f-typeprint.c (f_print_type): Don't return early for not
8736 associated or not allocated types.
8737 (f_type_print_varspec_suffix): Add print_rank parameter and print
8738 ranks of array types in case they dangling.
8739 (f_type_print_base): Add print_rank parameter.
8740
30056ea0
AB
87412019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8742
8743 * NEWS: Mention new MI commands.
8744 * break-catch-throw.c (enum exception_event_kind): Move to
8745 breakpoint.h.
8746 (print_mention_exception_catchpoint): Output text as a single
8747 message.
8748 (catch_exception_command_1): Rename to...
8749 (catch_exception_event): ...this, make non-static, update header
8750 command, and change some parameter types.
8751 (catch_catch_command): Update for changes to
8752 catch_exception_command_1.
8753 (catch_throw_command): Likewise.
8754 (catch_rethrow_command): Likewise.
8755 * breakpoint.c (enum exception_event_kind): Delete.
8756 * breakpoint.h (enum exception_event_kind): Moved here from
8757 break-catch-throw.c.
8758 (catch_exception_event): Declare.
8759 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8760 (mi_cmd_catch_throw): New function.
8761 (mi_cmd_catch_rethrow): New function.
8762 (mi_cmd_catch_catch): New function.
8763 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8764 'catch-catch' entries.
8765 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8766 (mi_cmd_catch_rethrow): Declare.
8767 (mi_cmd_catch_catch): Declare.
8768
ec8e2b6d
AB
87692019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8770
8771 * annotate.c (annotate_source_line): Change return type to void,
8772 update implementation to match.
8773 * annotate.h (annotate_source_line): Change return type to void,
8774 update header comment.
8775 * stack.c (print_frame_info): Don't change what frame information
8776 is printed based on whether annotations are on or not.
8777
0d3abd8c
AB
87782019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8779
8780 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8781 (annotate_source): Make static.
8782 (annotate_source_line): Moved from source.c and renamed from
8783 identify_source_line. Update the return type.
8784 * annotate.h (annotate_source): Delete declaration.
8785 (annotate_source_line): Declaration moved from source.h, and
8786 renamed from identify_source_line. Return type updated.
8787 * source.c (identify_source_line): Moved to annotate.c and renamed
8788 to annotate_source_line.
8789 (info_line_command): Remove check of annotation_level.
8790 * source.h (identify_source_line): Move declaration to annotate.h
8791 and rename to annotate_source_line.
8792 * stack.c: Add 'annotate.h' include.
8793 (print_frame_info): Remove check of annotation_level before
8794 calling annotate_source_line.
8795
00df30ae
AB
87962019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8797
8798 * source-cache.c (source_cache::get_plain_source_lines): Use
8799 open_source_file_with_line_charpos instead of just
8800 open_source_file, remove call to find_source_lines.
8801 (source_cache::get_source_lines): Likewise.
8802 * source.c (find_source_lines): Make static.
8803 (get_filename_and_charpos): Renamed into...
8804 (open_source_file_with_line_charpos): ..this along with changes to
8805 return a scoped_fd, and some other minor clean ups.
8806 (identify_source_line): Use open_source_file_with_line_charpos.
8807 (search_command_helper): Use open_source_file_with_line_charpos
8808 instead of just open_source_file, remove call to
8809 find_source_lines.
8810 * source.h (open_source_file_with_line_charpos): Declare new
8811 function.
8812 (find_source_lines): Delete declaration.
8813
afda45a2
AB
88142019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8815
8816 * source.c (get_filename_and_charpos): Remove fullname
8817 parameter.
8818 (identify_source_line): Update call to get_filename_and_charpos.
8819
0735b091
TT
88202019-06-14 Tom Tromey <tromey@adacore.com>
8821
8822 PR gdb/24502:
8823 * ui-style.h (skip_ansi_escape): Update comment.
8824 * ui-file.h (class no_terminal_escape_file): New class.
8825 * ui-file.c (no_terminal_escape_file::write)
8826 (no_terminal_escape_file::puts): New methods.
8827 * cli/cli-logging.c (handle_redirections): Use
8828 no_terminal_escape_file.
8829
52ce35e2
TT
88302019-06-14 Tom Tromey <tromey@adacore.com>
8831
8832 * NEWS: Move convenience variable news above Python news.
8833
73cc7272
TT
88342019-06-14 Tom Tromey <tom@tromey.com>
8835
8836 * gnulib: Move directory to top-level.
8837 * configure.ac: Don't configure gnulib.
8838 * configure: Rebuild.
8839 * common/common-defs.h: Use new path to gnulib.
8840 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8841 (GNULIB_H): Remove.
8842 (INCGNU): Look in new gnulib location.
8843 (HFILES_NO_SRCDIR): Remove gnulib files.
8844 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8845 (generated_files): Remove GNULIB_H.
8846 ($(LIBGNU), all-lib): Remove targets.
8847 (distclean): Don't mention GNULIB_BUILDDIR.
8848 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8849
f5686554
TT
88502019-06-14 Tom Tromey <tromey@adacore.com>
8851
8852 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8853 Warn if symbol file does not provide any symbols.
8854
a0c1ffed
TT
88552019-06-14 Tom Tromey <tromey@adacore.com>
8856
8857 * source.c (find_and_open_source): Respect basenames_may_differ.
8858
7c39e397
AB
88592019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8860
8861 * annotate.c (annotate_breakpoints_invalid): Make use of
8862 scoped_restore_terminal_state.
8863 (annotate_frames_invalid): Likewise.
8864
f411722c
TT
88652019-06-14 Tom Tromey <tromey@adacore.com>
8866
8867 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8868 allow assignment to an internalvar.
8869
4268ec18
TT
88702019-06-14 Tom Tromey <tromey@adacore.com>
8871
8872 * ada-lex.l: Allow "_" in attribute names.
8873
abdb711e
TT
88742019-06-14 Tom Tromey <tromey@adacore.com>
8875
8876 PR gdb/24653:
8877 * regcache.c (registers_changed): Don't call alloca.
8878 * top.c (execute_command): Don't call alloca.
8879
4c048731
PA
88802019-06-13 Pedro Alves <palves@redhat.com>
8881
8882 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8883 'expression'. When parsing an expression, error out if there's
8884 junk after "unlimited".
8885 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8886 (do_set_command): Adjust calls to is_unlimited_literal.
8887
66eb1ed3
PA
88882019-06-13 Pedro Alves <palves@redhat.com>
8889
8890 * compile/compile.c (make_compile_options_def_group): Add braces
8891 around array_view initializer.
8892 * thread.c (make_thread_apply_all_options_def_group)
8893 (make_thread_apply_all_options_def_group): Likewise.
8894
3345721a
PA
88952019-06-13 Pedro Alves <palves@redhat.com>
8896
8897 * NEWS (New commands): Mention "maint test-options
8898 require-delimiter", "maint test-options unknown-is-error", "maint
8899 test-options unknown-is-operand" and "maint show
8900 test-options-completion-result".
8901 (New command options, command completion): New section.
8902 (Completion improvements): New section.
8903 Mention that you can abbreviate "unlimited".
8904
6206060d
PA
89052019-06-13 Pedro Alves <palves@redhat.com>
8906
8907 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8908 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8909 * unittests/cli-utils-selftests.c (test_parse_flags)
8910 (test_parse_flags_qcs): Delete.
8911 (test_cli_utils): Don't call deleted functions.
8912
6665660a
PA
89132019-06-13 Pedro Alves <palves@redhat.com>
8914
8915 * thread.c: Include "cli/cli-option.h".
8916 (tp_array_compar_ascending): Global.
8917 (tp_array_compar): Delete function.
8918 (tp_array_compar_ascending, tp_array_compar_descending): New
8919 functions.
8920 (ascending_option_def, qcs_flag_option_def)
8921 (thr_qcs_flags_option_defs)
8922 (make_thread_apply_all_options_def_group)
8923 (make_thread_apply_options_def_group): New.
8924 (thread_apply_all_command): Use gdb::option::process_options.
8925 (thread_apply_command_completer)
8926 (thread_apply_all_command_completer): New.
8927 (thread_apply_command): Use gdb::option::process_options.
8928 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8929 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8930 to generate help text of "thread apply". Adjust "taas"'s help.
8931 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8932 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8933
f7e13587
PA
89342019-06-13 Pedro Alves <palves@redhat.com>
8935
8936 * thread.c (thread_apply_command): Check for invalid TID with
8937 isdigit instead of !isalpha.
8938
5d707134
PA
89392019-06-13 Pedro Alves <palves@redhat.com>
8940
8941 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8942 (validate_flags_qcs): New.
8943 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8944 (validate_flags_qcs): Declare.
8945 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8946 (make_frame_apply_options_def_group): New.
8947 (frame_apply_command_count): Process options with
8948 gdb::option::process_options.
8949 (frame_apply_completer): New.
8950 (frame_apply_level_completer, frame_apply_all_completer)
8951 (frame_apply_completer): New.
8952 (_initialize_stack): Update help of "frame apply", "frame apply
8953 level", "frame apply all" and "faas" to mention supported options
8954 and install command completers.
8955 * stack.h (frame_apply_all_completer): Declare.
8956 * thread.c: Include "stack.h".
8957 (tfaas_command): Add "--".
8958 (_initialize_thread): Update help "tfaas" to mention supported
8959 options and install command completer.
8960
272d4594
PA
89612019-06-13 Pedro Alves <palves@redhat.com>
8962
8963 * completer.c (complete_nested_command_line): New.
8964 (gdb_completion_word_break_characters_throw): Add assertion.
8965 * completer.h (complete_nested_command_line): Declare.
8966
90a1ef87
PA
89672019-06-13 Pedro Alves <palves@redhat.com>
8968
8969 * stack.c (parse_backtrace_qualifiers): New.
8970 (backtrace_command): Use it.
8971 (backtrace_command_completer): Complete on qualifiers.
8972
d4c16835
PA
89732019-06-13 Pedro Alves <palves@redhat.com>
8974
8975 * frame.c: Include "cli/cli-option.h.
8976 (user_set_backtrace_options): New.
8977 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8978 Delete.
8979 (get_prev_frame): Adjust.
8980 (boolean_option_def, uinteger_option_def)
8981 (set_backtrace_option_defs): New.
8982 (_initialize_frame): Adjust and use
8983 gdb::option::add_setshow_cmds_for_options to install "set
8984 backtrace past-main" and "set backtrace past-entry".
8985 * frame.h: Include "cli/cli-option.h".
8986 (struct frame_print_options): Forward declare.
8987 (print_frame_arguments_all, print_frame_arguments_scalars)
8988 (print_frame_arguments_none): Declare.
8989 (print_entry_values): Delete declaration.
8990 (struct frame_print_options, user_frame_print_options): New.
8991 (struct set_backtrace_options): New.
8992 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8993 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8994 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8995 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8996 (list_args_or_locals): Add frame_print_options parameter.
8997 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
8998 * python/py-framefilter.c (enumerate_args): Pass down
8999 USER_FRAME_PRINT_OPTIONS.
9000 * stack.c: Include "cli/cli-option.h".
9001 (print_frame_arguments_all, print_frame_arguments_scalars)
9002 (print_frame_arguments_none): Declare.
9003 (print_raw_frame_arguments, print_entry_values): Delete.
9004 (user_frame_print_options): New.
9005 (boolean_option_def, enum_option_def, frame_print_option_defs):
9006 New.
9007 (struct backtrace_cmd_options): New.
9008 (bt_flag_option_def): New.
9009 (backtrace_command_option_defs): New.
9010 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9011 (print_frame_arg, read_frame_arg, print_frame_args)
9012 (print_frame_info, print_frame): Add frame_print_options parameter
9013 and use it.
9014 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9015 (backtrace_command_1): Add frame_print_options and
9016 backtrace_cmd_options parameters and use them.
9017 (make_backtrace_options_def_group): New.
9018 (backtrace_command): Process command options with
9019 gdb::option::process_options.
9020 (backtrace_command_completer): New.
9021 (_initialize_stack): Extend "backtrace"'s help to mention
9022 supported options. Install completer for "backtrace".
9023 Install some settings commands with add_setshow_cmds_for_options.
9024
2daf894e
PA
90252019-06-13 Pedro Alves <palves@redhat.com>
9026
9027 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9028 and that "set/show print raw frame-arguments" are now deprecated.
9029
9030 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9031 command.
9032 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9033 * stack.c (_initialize_stack): Install "set/show print
9034 raw-frame-arguments", and deprecate "set/show print raw
9035 frame-arguments".
9036 * valprint.c (_initialize_valprint): Deprecate "set/show print
9037 raw".
9038
e6ed716c
PA
90392019-06-13 Pedro Alves <palves@redhat.com>
9040
9041 * compile/compile.c (struct compile_options): New.
9042 (compile_flag_option_def, compile_command_option_defs)
9043 (make_compile_options_def_group): New.
9044 (compile_file_command): Handle options with
9045 gdb::option::process_options.
9046 (compile_file_command_completer): New function.
9047 (compile_code_command): Handle options with
9048 gdb::option::process_options.
9049 (compile_code_command_completer): New function.
9050 (_initialize_compiler): Install completers for "compile code" and
9051 "compile file". Mention available options in "compile code" and
9052 "compile code"'s help.
9053 * completer.c (advance_to_completion_word): New, factored out from
9054 ...
9055 (advance_to_expression_complete_word_point): ... this.
9056 (advance_to_filename_complete_word_point): New.
9057 * completer.h (advance_to_filename_complete_word_point): New
9058 declaration.
9059
7d8062de
PA
90602019-06-13 Pedro Alves <palves@redhat.com>
9061
9062 * compile/compile.c: Include "cli/cli-option.h".
9063 (compile_print_value): Scope data pointer is now a
9064 value_print_options pointer; adjust.
9065 (compile_print_command): Process options. Scope data pointer is
9066 now a value_print_options pointer; adjust.
9067 (_initialize_compile): Update "compile print"'s help to include
9068 supported options. Install a completer for "compile print".
9069 * cp-valprint.c (show_vtblprint, show_objectprint)
9070 (show_static_field_print): Delete.
9071 (_initialize_cp_valprint): Don't install "set print
9072 static-members", "set print vtbl", "set print object" here.
9073 * printcmd.c: Include "cli/cli-option.h" and
9074 "common/gdb_optional.h".
9075 (print_command_parse_format): Rework to fill in a
9076 value_print_options instead of a format_data.
9077 (print_value): Change parameter type from format_data pointer to
9078 value_print_options reference. Adjust.
9079 (print_command_1): Process options. Adjust to pass down a
9080 value_print_options.
9081 (print_command_completer): New.
9082 (_initialize_printcmd): Install print_command_completer as
9083 handle_brkchars completer for the "print" command. Update
9084 "print"'s help to include supported options.
9085 * valprint.c: Include "cli/cli-option.h".
9086 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9087 here from cp-valprint.c.
9088 (boolean_option_def, uinteger_option_def)
9089 (value_print_option_defs, make_value_print_options_def_group):
9090 New. Use gdb::option::add_setshow_cmds_for_options to install
9091 "set print elements", "set print null-stop", "set print repeats",
9092 "set print pretty", "set print union", "set print array", "set
9093 print address", "set print symbol", "set print array-indexes".
9094 * valprint.h: Include <string> and "cli/cli-option.h".
9095 (make_value_print_options_def_group): Declare.
9096 (print_value): Change parameter type from format_data pointer to
9097 value_print_options reference.
9098 (print_command_completer): Declare.
9099
9d0faba9
PA
91002019-06-13 Pedro Alves <palves@redhat.com>
9101
9102 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9103 (COMMON_SFILES): Add maint-test-settings.c.
9104 * cli/cli-decode.c (boolean_enums): New global, factored out from
9105 ...
9106 (add_setshow_boolean_cmd): ... here.
9107 * cli/cli-decode.h (boolean_enums): Declare.
9108 * cli/cli-option.c: New file.
9109 * cli/cli-option.h: New file.
9110 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9111 factored out from ...
9112 (parse_cli_boolean_value(const char *)): ... this.
9113 (is_unlimited_literal): Change parameter type to pointer to
9114 pointer. Adjust and advance ARG pointer.
9115 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9116 (parse_cli_var_enum): New, factored out from ...
9117 (do_set_command): ... this. Adjust.
9118 * cli/cli-setshow.h (parse_cli_boolean_value)
9119 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9120 (parse_cli_var_enum): Declare.
9121 * cli/cli-utils.c: Include "cli/cli-option.h".
9122 (get_ulongest): New.
9123 * cli/cli-utils.h (get_ulongest): Declare.
9124 (check_for_argument): New overloads.
9125 * maint-test-options.c: New file.
9126
2c722807
PA
91272019-06-13 Pedro Alves <palves@redhat.com>
9128
9129 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9130 parse a range if "-" is at the end of the string.
9131
dee7b4c8
PA
91322019-06-13 Pedro Alves <palves@redhat.com>
9133
9134 * cli/cli-setshow.c (parse_auto_binary_operation)
9135 (parse_cli_boolean_value): Don't allow "o".
9136
dca0f6c0
PA
91372019-06-13 Pedro Alves <palves@redhat.com>
9138
9139 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9140 * NEWS: Mention maint test-settings KIND.
9141 * maint-test-settings.c: New file.
9142
597bf39d
PA
91432019-06-13 Pedro Alves <palves@redhat.com>
9144
9145 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9146 completer.
9147 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9148 "set" completers.
9149
48c410fb
PA
91502019-06-13 Pedro Alves <palves@redhat.com>
9151
9152 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9153 after item.
9154
93bcb043
PA
91552019-06-13 Pedro Alves <palves@redhat.com>
9156
9157 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9158
cbba3ecd
PA
91592019-06-13 Pedro Alves <palves@redhat.com>
9160
9161 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9162 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9163 call.
9164 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9165 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9166 calls.
9167 (check_for_argument): Skip spaces after argument.
9168
b9a3f842
PA
91692019-06-13 Pedro Alves <palves@redhat.com>
9170
9171 * thread.c (thread_apply_command): Adjust TID parsing.
9172 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9173 detected before end of string.
9174 (tid_is_in_list): Error out if LIST is invalid.
9175
3844e605
PA
91762019-06-13 Pedro Alves <palves@redhat.com>
9177
9178 * completer.c (complete_line_internal_1): Rewind completion word
9179 point.
9180 (completion_tracker::advance_custom_word_point_by): Change
9181 parameter type to int.
9182 * completer.h (completion_tracker::advance_custom_word_point_by):
9183 Likewise.
9184
00b56dbe
PA
91852019-06-13 Pedro Alves <palves@redhat.com>
9186
9187 * completer.c (advance_to_completion_word): Handle delimiters.
9188
d106773e
PA
91892019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9190
9191 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9192
08f10e02
TT
91932019-06-11 Tom Tromey <tom@tromey.com>
9194
9195 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9196 (xmalloc_failed): Move to alloc.c.
9197 * alloc.c: New file.
9198 * Makefile.in (COMMON_SFILES): Add alloc.c.
9199
1c7fe951
TT
92002019-06-11 Tom Tromey <tom@tromey.com>
9201
9202 * nat/linux-waitpid.c: Don't include server.h.
9203 (linux_debug): Remove.
9204 (my_waitpid): Update.
9205
89549d7f
TT
92062019-06-11 Tom Tromey <tromey@adacore.com>
9207
9208 * infcall.c (_initialize_infcall): Remove trailing newline from
9209 help.
9210 * user-regs.c (_initialize_user_regs): Remove trailing newline
9211 from help.
9212 * typeprint.c (_initialize_typeprint): Remove trailing newline
9213 from help.
9214 * reverse.c (_initialize_reverse): Remove trailing newlines from
9215 help.
9216 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9217 from help.
9218 * language.c (add_set_language_command): Remove trailing newline
9219 from help.
9220 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9221 help.
9222 * disasm.c (_initialize_disasm): Remove trailing newline from
9223 help.
9224 * top.c (init_main): Remove trailing newline from help.
9225 * interps.c (_initialize_interpreter): Remove trailing newline
9226 from help.
9227 * btrace.c (_initialize_btrace): Remove trailing newlines from
9228 help.
9229 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9230 from help.
9231 * python/python.c (_initialize_python): Remove trailing newline
9232 from help.
9233 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9234 help.
9235 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9236 from help. Reformat some text.
9237 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9238 from help.
9239 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9240 newline from help.
9241
86108c13
TT
92422019-06-11 Tom Tromey <tromey@adacore.com>
9243
9244 * darwin-nat.c (darwin_decode_exception_message)
9245 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9246
a7067863
AB
92472019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9248
9249 * valops.c (value_slice): Check for not allocated or not
9250 associated values.
9251
9ab08412
TV
92522019-06-10 Tom de Vries <tdevries@suse.de>
9253
9254 PR gdb/24618
9255 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9256 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9257 invalid.
9258
f19e22e9
TV
92592019-06-10 Tom de Vries <tdevries@suse.de>
9260
9261 PR gdb/24611
9262 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9263 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9264
e99f9db0
TV
92652019-06-10 Tom de Vries <tdevries@suse.de>
9266
9267 PR symtab/24545
9268 * symtab.c (struct demangled_name_entry): Add language field.
9269 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9270 static minimal symbol". Set and use language field.
9271
9bf7038b
TT
92722019-06-10 Tom Tromey <tromey@adacore.com>
9273
9274 * ada-lang.c (_initialize_ada_language): Update help text.
9275
422186a9
TT
92762019-06-10 Tom Tromey <tromey@adacore.com>
9277
9278 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9279 with a newline.
9280 * guile/guile.c (handle_boot_error): Don't end warning with a
9281 newline.
9282 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9283 warning with a newline.
9284 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9285 newline.
9286 (s12z_frame_cache): Likewise.
9287 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9288 a newline.
9289 * solib-svr4.c (disable_probes_interface): Don't end warning with
9290 a newline.
9291 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9292 newline.
9293 * python/python.c (do_finish_initialization): Don't end warning
9294 with a newline.
9295
25ce02ee
TT
92962019-06-10 Tom Tromey <tom@tromey.com>
9297
9298 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9299 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9300 gdbpy_enter.
9301
caa429d8
TT
93022019-06-10 Tom Tromey <tromey@adacore.com>
9303
9304 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9305 data.
9306 (elf_new_init): Don't call stabsread_new_init.
9307 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9308 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9309 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9310
81873cc8
TV
93112019-06-10 Tom de Vries <tdevries@suse.de>
9312
9313 PR symtab/16264
9314 PR symtab/24517
9315 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9316
4fa0265e
РИ
93172019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9318
9319 * source.c (find_and_open_source): Also rewrite relative file
9320 names.
9321
1a3da2cd
AB
93222019-04-26 Amos Bird <amosbird@gmail.com>
9323
9324 * annotate.c (annotate_thread_exited): Add "thread-exited"
9325 annotation.
9326
3847a7bf
TT
93272019-06-06 Tom Tromey <tromey@adacore.com>
9328
9329 * maint.h (class scoped_command_stats): Use
9330 DISABLE_COPY_AND_ASSIGN.
9331 <print_time>: New method.
9332 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9333 print_time.
9334 (scoped_command_stats::print_time): New method.
9335
312617a3
AB
93362019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9337
9338 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9339 instructions of lengths 6 or 8 bytes.
9340
b02f78f9
PA
93412019-06-04 Pedro Alves <palves@redhat.com>
9342
9343 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9344
9345 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9346 * breakpoint.c (condition_completer): Likewise.
9347 * cli/cli-dump.c (scan_expression): Likewise.
9348 * common/filestuff.c (mkdir_recursive): Likewise.
9349 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9350 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9351 (gdb_abspath): Likewise.
9352 * compile/compile-cplus-types.c
9353 (compile_cplus_instance::decl_name): Likewise.
9354 * completer.c (complete_explicit_location):
9355 (signal_completer, reg_or_group_completer_1): Likewise.
9356 * cp-support.c (cp_remove_params_if_any): Likewise.
9357 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9358 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9359 * infcmd.c (strip_bg_char): Likewise.
9360 * linespec.c (copy_token_string): Likewise.
9361 * mi/mi-main.c (output_cores): Likewise.
9362 * psymtab.c (psymtab_search_name):
9363 * symfile.c (test_set_ext_lang_command): Likewise.
9364 * target.c (target_fileio_read_stralloc): Likewise.
9365 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9366 * value.c (complete_internalvar): Likewise.
9367
e1f2e1a2
CB
93682019-06-04 Christian Biesinger <cbiesinger@google.com>
9369
9370 Add objfile property to gdb.Type.
d3238f7d
PA
9371 * NEWS: Mention Python API addition.
9372 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9373
e664d728
PW
93742019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9375
9376 * NEWS: Mention the new set|show style [title|highlight].
9377 Mention changes to "show style", "help" and "apropos".
9378
66d8c862
PW
93792019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9380
9381 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9382 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9383 instead of print_help_for_command.
9384 (print_doc_of_command): New function.
9385 (help_list): Add 'apropos -v word' suggestion.
9386 (print_help_for_command): Style the command name using title style.
9387 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9388 (_initialize_cli_cmds): Describe -v in apropos_command help.
9389
9303eb2f
PW
93902019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9391
9392 * cli/cli-style.h (cli_style_option): Add name in constructor,
9393 add m_name class member, add constructor with intensity,
9394 add name class function.
9395 (cli_style_option::add_setshow_commands): Remove name argument.
9396 (highlight_style, title_style): New styles.
9397 * cli/cli-style.c (do_show): New function that shows a style
9398 characteristic styling the style name with itself.
9399 (set_style_name): New function.
9400 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9401 Update all callers according to the changes in cli/cli-style.h.
9402 * utils.h (fputs_highlighted): New function.
9403 * utils.c (fputs_highlighted): Likewise.
9404
e2c52041
PW
94052019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9406
9407 * NEWS: Mention new pipe command and new convenience variables.
9408
947d3946
PW
94092019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9410
9411 * cli/cli-cmds.c (pipe_command): New function.
9412 (_initialize_cli_cmds): Call add_com for pipe_command.
9413 Define | as an alias for pipe.
9414 (exit_status_set_internal_vars): New function.
9415 (shell_escape): Call exit_status_set_internal_vars.
9416 cli/cli-decode.c (find_command_name_length): Recognize | as
9417 a single character command.
9418
b8fd0918
PW
94192019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9420
9421 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9422 top.c (execute_command_to_ui_file): New function, mostly a copy
9423 of execute_command_to_string.
9424 (execute_command_to_string): Implement by calling
9425 execute_command_to_ui_file.
9426
68bb5386
PW
94272019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9428
9429 * top.h (saved_command_line): Remove declaration.
9430 * top.c (previous_saved_command_line, previous_repeat_arguments):
9431 New variables.
9432 (saved_command_line): Make static, define together with other
9433 'repeat variables'.
9434 (dont_repeat): Clear repeat_arguments.
9435 (repeat_previous, get_saved_command_line, save_command_line):
9436 New functions.
9437 (gdb_init): Initialize saved_command_line
9438 and previous_saved_command_line.
9439 * main.c (captured_main_1): Remove saved_command_line initialization.
9440 * event-top.c (handle_line_of_input): Update to use
9441 the new 'repeat' related functions instead of direct access to
9442 saved_command_line.
9443 * command.h (repeat_previous, get_saved_command_line,
9444 save_command_line): New declarations.
9445 (dont_repeat): Add comment.
9446
bfcdb852
TT
94472019-05-30 Tom Tromey <tromey@adacore.com>
9448
9449 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9450 Fix comment.
9451 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9452
0ef209f2
JV
94532019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9454
9455 PR cli/24587
9456 * completer.c (complete): Initialize variable word.
9457
955b06fa
SDJ
94582019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9459
9460 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9461 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9462 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9463 'body' is NULL to the outter 'if', protecting the '!is_define'
9464 situation as well.
9465
fa9c3fa0
TT
94662019-05-29 Tom Tromey <tromey@adacore.com>
9467
9468 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9469 (dwarf_unknown): New function.
9470 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9471 (dwarf_type_encoding_name): Use dwarf_unknown.
9472
4330d61d
TT
94732019-05-29 Tom Tromey <tromey@adacore.com>
9474
9475 PR c++/20020:
9476 * cp-valprint.c (cp_print_value_fields): Call
9477 cp_print_static_field inside "try".
9478
33a6bc35
TT
94792019-05-29 Tom Tromey <tromey@adacore.com>
9480
9481 * inflow.c (struct terminal_info): Add default operator=.
9482 * configure: Rebuild.
9483 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9484 -Wdeprecated-copy-dtor, -Wredundant-move.
9485
000439d5
TT
94862019-05-29 Tom Tromey <tromey@adacore.com>
9487
9488 * NEWS: Add entry.
9489 * infcmd.c (print_return_value_1): Handle finish_print
9490 option.
9491 (show_print_finish): New function.
9492 (_initialize_infcmd): Add "set/show print finish" commands.
9493 * valprint.c (user_print_options): Initialize new member.
9494 * valprint.h (struct value_print_options) <finish_print>: New
9495 member.
9496
c0e70c62
TT
94972019-05-28 Tom Tromey <tromey@adacore.com>
9498
9499 * ada-lang.c (ada_remove_Xbn_suffix)
9500 (find_old_style_renaming_symbol)
9501 (parse_old_style_renaming): Remove.
9502 (ada_find_renaming_symbol): Don't call
9503 find_old_style_renaming_symbol.
9504 (ada_is_renaming_symbol): Rename from
9505 ada_find_renaming_symbol. Remove "block" parameter. Return
9506 bool. Now static.
9507 (ada_read_var_value): Update and simplify.
9508 * ada-exp.y (write_var_or_type): Remove old code.
9509
766f8836
AH
95102019-05-28 Alan Hayward <alan.hayward@arm.com>
9511
68255adc 9512 PR gdb/25010
766f8836
AH
9513 * event-top.c: Remove include comment.
9514 * inflow.c (class scoped_ignore_sigttou): Move from here...
9515 * inflow.h (class scoped_ignore_sigttou): ...to here.
9516 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9517 * top.c: Remove include comment.
9518
eb41253a
TT
95192019-05-27 Tom Tromey <tom@tromey.com>
9520
9521 * NEWS: Fix typo.
9522
4ca51187
TT
95232019-05-22 Tom Tromey <tromey@adacore.com>
9524
9525 * target.c (target_follow_exec): Constify parameter.
9526 * target-delegates.c: Rebuild.
9527 * remote.c (remote_target::follow_exec): Constify parameter.
9528 * infrun.c (follow_exec): Constify parameter.
9529 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9530 (target_follow_exec): Likewise.
9531
8fca4da0
AH
95322019-05-22 Alan Hayward <alan.hayward@arm.com>
9533
9534 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9535 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9536
b7060614
AH
95372019-05-22 Alan Hayward <alan.hayward@arm.com>
9538
9539 * NEWS: Add debugredirect and testsuite sections.
9540
0a5954bd
SC
95412019-05-22 Simon Cook <simon.cook@embecosm.com>
9542
9543 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9544 target descriptions using exclusively floating point register name
9545 aliases.
9546
dc42e902
AB
95472019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9548
9549 PR gdb/18644:
9550 * f-lang.c (build_fortran_types): Handle the case where
9551 gdbarch_floatformat_for_type returns a nullptr.
9552
fb7806c7
TV
95532019-05-21 Tom de Vries <tdevries@suse.de>
9554
9555 PR cli/24587
9556 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9557
34d11c68
AB
95582019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9559
9560 PR gdb/18644:
9561 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9562 16-byte floats.
9563 * i386-tdep.c (i386_floatformat_for_type): Use
9564 floatformats_ia64_quad for the 16-byte floating point component
9565 within a fortran 32-byte complex number.
9566
122cf0f2
AB
95672019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9568
9569 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9570 delete default constructor.
9571 (find_partial_die): Update to return const struct.
9572 (partial_die_parent_scope): Move variable declaration into scope
9573 of its use and change its type to auto.
9574 (guess_partial_die_structure_name): Likewise.
9575 (partial_die_info::fixup): Likewise.
9576
33d0e35a
TT
95772019-05-17 Tom Tromey <tromey@adacore.com>
9578
9579 * source.c (find_and_open_source): Remove cast.
9580
a45575b0
TT
95812019-05-17 Tom Tromey <tromey@adacore.com>
9582
9583 * annotate.c (annotate_source): Make "filename" const.
9584 * annotate.h (annotate_source): Use const.
9585
81f47ac2
AH
95862019-05-17 Alan Hayward <alan.hayward@arm.com>
9587
9588 * disasm.c (set_disassembler_options): Send errors to stderr.
9589
ca1285d1
AH
95902019-05-17 Alan Hayward <alan.hayward@arm.com>
9591
9592 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9593 (cli_interp_base::set_logging): Check debug_redirect.
9594 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9595 * cli/cli-logging.c (debug_redirect): Add static variable.
9596 (pop_output_files): Add default param.
9597 (handle_redirections): Print debug setting.
9598 (show_logging_command): Likewise.
9599 (_initialize_cli_logging): Add debugredirect command.
9600 * interps.c (current_interp_set_logging): Add debug_redirect
9601 parameter.
9602 * interps.h (set_logging): Add debug_redirect parameter.
9603 (current_interp_set_logging): Likewise.
9604 * mi/mi-common.h: Likewise.
9605 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9606
96072019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9608 Tom Tromey <tromey@adacore.com>
9609
9610 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9611 directly.
9612 * cli/cli-interp.h (make_logging_output): Remove declaration.
9613 * cli/cli-logging.c (make_logging_output): Remove function.
9614 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9615 directly.
9616 * ui-file.c (tee_file::tee_file): Remove bools.
9617 (tee_file::~tee_file): Remove deletes.
9618 * ui-file.h (tee_file): Remove bools.
9619
26648588
JV
96202019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9621
9622 * mi/mi-cmds.h (mi_cmd_complete): New function.
9623 * mi/mi-main.c (mi_cmd_complete): Likewise.
9624 * mi/mi-cmds.c: Define new MI command -complete.
9625 * NEWS: Mention new -complete command.
9626
6e035501
JV
96272019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9628
9629 * completer.h (complete): New function.
9630 * completer.c (complete): Likewise.
9631 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9632 function defined in completer.h.
9633
7d0e2ece
JV
96342019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9635
e79be6e5 9636 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9637
fb816e8b
TV
96382019-05-17 Tom de Vries <tdevries@suse.de>
9639
9640 PR gdb/24094
9641 * dwarf2read.c (struct cu_partial_die_info): New struct.
9642 (find_partial_die): Return cu_partial_die_info.
9643 (partial_die_parent_scope, guess_partial_die_structure_name)
9644 (partial_die_info::fixup): Handle new return type of find_partial_die.
9645
677052f2
SDJ
96462019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9647
a1726c38 9648 PR breakpoints/24541
677052f2
SDJ
9649 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9650 "std::string", simplifying the algorithm.
9651
f3da9116
SDJ
96522019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9653
9654 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9655 (stap_static_probe_ops::get_probes): Likewise.
9656
f1bb75ab
SDJ
96572019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9658
9659 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9660 '-')" and "else if".
9661 (stap_parse_single_operand): Join checks for
9662 "gdbarch_stap_parse_special_token_p" and
9663 "gdbarch_stap_parse_special_token" in the same "if" statement.
9664 Invert check when verifying for operation on register
9665 displacement.
9666
3ca58cde
SDJ
96672019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9668
9669 * stap-probe.c (stap_get_opcode): Update comment.
9670 (stap_get_expected_argument_type): Likewise.
9671 (handle_stap_probe): Likewise.
9672
af2d9bee
SDJ
96732019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9674
9675 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9676 return type to 'bool'. Adjust comment. Use 'bool' when
9677 appropriate.
9678 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9679 * stap-probe.c (stap_parse_argument_1): Likewise.
9680 (stap_is_operator): Likewise.
9681 (stap_is_generic_prefix): Likewise.
9682 (stap_is_register_prefix): Likewise.
9683 (stap_is_register_indirection_prefix): Likewise.
9684 (stap_is_integer_prefix): Likewise.
9685 (stap_generic_check_suffix): Likewise.
9686 (stap_check_integer_suffix): Likewise.
9687 (stap_check_register_suffix): Likewise.
9688 (stap_check_register_indirection_suffix): Likewise.
9689 (stap_parse_register_operand): Likewise.
9690 (stap_parse_single_operand): Likewise.
9691 (stap_parse_argument_1): Likewise.
9692 (stap_probe::get_argument_count): Likewise.
9693 (stap_is_operator): Likewise.
9694
61c9c421
TT
96952019-05-16 Tom Tromey <tromey@adacore.com>
9696
9697 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9698 keyword to foreach.
9699
9ddc1af1
SM
97002019-05-15 Simon Marchi <simon.marchi@efficios.com>
9701
9702 * linux-thread-db.c (try_thread_db_load_1): Change return type
9703 to bool.
9704 (try_thread_db_load): Likewise.
9705 (try_thread_db_load_from_pdir_1): Likewise.
9706 (try_thread_db_load_from_pdir): Likewise.
9707 (try_thread_db_load_from_sdir): Likewise.
9708 (try_thread_db_load_from_dir): Likewise.
9709 (thread_db_load_search): Likewise.
9710 (has_libpthread): Likewise.
9711 (thread_db_load): Likewise.
9712
7bede828
SDJ
97132019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9714
9715 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9716 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9717 NULL, and complain/return if that's the case.
9718
c5358db4
JD
97192019-05-15 John Darrington <john@darrington.wattle.id.au>
9720
9721 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9722 (advance, posn, abstract_read_memory): New functions.
9723 [struct mem_read_abstraction]: New struct.
9724 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9725
c408a94f
TT
97262019-05-14 Tom Tromey <tromey@adacore.com>
9727
9728 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9729 value is not lval_memory.
9730
e7bd7fba
TT
97312019-05-14 Tom Tromey <tromey@adacore.com>
9732
9733 * solib.c (info_sharedlibrary_command): Style the file name.
9734
a6d0f249
AH
97352019-05-14 Alan Hayward <alan.hayward@arm.com>
9736
9737 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9738 (aarch64_vnv_type): Likewise.
9739 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9740 * common/tdesc.c: Likewise.
9741 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9742 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9743 * features/aarch64-fpu.xml: Add ieee half view.
9744 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9745 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9746 * gdbtypes.h (struct builtin_type): Likewise.
9747 (struct objfile_type): Likewise.
9748
66b8bb74
SM
97492019-05-12 Paul Naert <paul.naert@polymtl.ca>
9750
9751 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9752 typo.
9753 * location.h (string_to_event_location): Likewise.
9754
21c219fd
JB
97552019-05-11 Joel Brobecker <brobecker@adacore.com>
9756
9757 GDB 8.3 released.
9758
13674803
SM
97592019-05-10 Simon Marchi <simon.marchi@efficios.com>
9760
9761 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9762 New variable declaration.
9763 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9764 New variable.
9765 (print_one_breakpoint): Use ui_out::test_flags and new global
9766 variable to compute use_fixed_output.
9767 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9768 Remove.
9769 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9770 (mi_multi_location_breakpoint_output_fixed): Remove.
9771 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9772 new variable.
9773 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9774 fix_multi_location_breakpoint_output flag if version >= 3.
9775 * ui-out.h (enum ui_out_flag)
9776 <fix_multi_location_breakpoint_output>: New enumerator.
9777
a9eac7f9
SM
97782019-05-10 Simon Marchi <simon.marchi@efficios.com>
9779
9780 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9781
71bed2db
TT
97822019-05-10 Tom Tromey <tromey@adacore.com>
9783
9784 * ada-lang.c (catch_ada_completer): New function.
9785 (_initialize_ada_language): Use it.
9786
24c54127
TT
97872019-05-10 Tom Tromey <tromey@adacore.com>
9788
9789 * thread.c (print_thread_info): Make "requested_threads" const.
9790 * gdbthread.h (print_thread_info): Make "requested_threads"
9791 const.
9792 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9793 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9794
7a102139
TT
97952019-05-08 Tom Tromey <tom@tromey.com>
9796
9797 * gdbtypes.c (objfile_type_data): Change type.
9798 (objfile_type, _initialize_gdbtypes): Update.
9799
924d79e2
TT
98002019-05-08 Tom Tromey <tom@tromey.com>
9801
9802 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9803 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9804 (_initialize_dwarf2_frame): Update.
9805
4c58e337
TT
98062019-05-08 Tom Tromey <tom@tromey.com>
9807
9808 * objc-lang.c (objc_objfile_data): Change type.
9809 (find_methods): Update.
9810 (_initialize_objc_lang): Remove.
9811
d772d2ab
TT
98122019-05-08 Tom Tromey <tom@tromey.com>
9813
9814 * stabsread.c (rs6000_builtin_type_data): Change type.
9815 (rs6000_builtin_type, _initialize_stabsread): Update.
9816
d11d83f4
TT
98172019-05-08 Tom Tromey <tom@tromey.com>
9818
9819 * mips-tdep.c (mips_pdr_data): Remove.
9820 (_initialize_mips_tdep): Update.
9821
9a73f0ad
TT
98222019-05-08 Tom Tromey <tom@tromey.com>
9823
9824 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9825 (hppa_init_objfile_priv_data, read_unwind_info)
9826 (find_unwind_entry, _initialize_hppa_tdep): Update.
9827
8127a2fa
TT
98282019-05-08 Tom Tromey <tom@tromey.com>
9829
9830 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9831 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9832 on obstack.
9833 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9834
91d3055d
TT
98352019-05-08 Tom Tromey <tom@tromey.com>
9836
9837 * mdebugread.c (basic_type_data): Change type.
9838 (basic_type, _initialize_mdebugread): Update.
9839
31930bd3
TT
98402019-05-08 Tom Tromey <tom@tromey.com>
9841
9842 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9843
bdb3ed9e
TT
98442019-05-08 Tom Tromey <tom@tromey.com>
9845
9846 * nto-tdep.c (nto_inferior_data_reg): Change type.
9847 (nto_inferior_data): Update.
9848 (nto_inferior_data_cleanup, nto_new_inferior_data)
9849 (_initialize_nto_tdep): Remove.
9850 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9851
f37b313d
TT
98522019-05-08 Tom Tromey <tom@tromey.com>
9853
9854 * ada-lang.c (struct ada_inferior_data): Add initializers.
9855 (ada_inferior_data): Change type.
9856 (ada_inferior_data_cleanup): Remove.
9857 (get_ada_inferior_data, ada_inferior_exit)
9858 (struct ada_pspace_data): Add initializers, destructor.
9859 (ada_pspace_data_handle): Change type.
9860 (get_ada_pspace_data): Update.
9861 (ada_pspace_data_cleanup): Remove.
9862
24699405
TT
98632019-05-08 Tom Tromey <tom@tromey.com>
9864
9865 * coffread.c (struct coff_symfile_info): Add initializers.
9866 (coff_objfile_data_key): Move lower. Change type.
9867 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9868 Update.
9869 (coff_free_info): Remove.
9870
d4e05d2f
TT
98712019-05-08 Tom Tromey <tom@tromey.com>
9872
9873 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9874 (fbsd_pspace_data_handle): Move lower. Change type.
9875 (get_fbsd_pspace_data): Update.
9876 (fbsd_pspace_data_cleanup): Remove.
9877 (_initialize_fbsd_tdep): Update.
9878
14ef6690
TT
98792019-05-08 Tom Tromey <tom@tromey.com>
9880
9881 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9882 (get_ada_tasks_pspace_data): Update.
9883 (ada_tasks_pspace_data_cleanup): Remove.
9884 (_initialize_tasks): Update.
9885 (ada_tasks_inferior_data_handle): Change type.
9886 (get_ada_tasks_inferior_data): Update.
9887 (ada_tasks_inferior_data_cleanup): Remove.
9888 (struct ada_tasks_pspace_data): Add initializers.
9889
814cf43a
TT
98902019-05-08 Tom Tromey <tom@tromey.com>
9891
9892 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9893 * symfile-debug.c (debug_sym_get_probes): Change type.
9894 * stap-probe.c (handle_stap_probe):
9895 (stap_static_probe_ops::get_probes): Change type.
9896 * probe.h (class static_probe_ops) <get_probes>: Change type.
9897 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9898 (parse_probes_in_pspace): Update.
9899 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9900 Update.
9901 (any_static_probe_ops::get_probes): Change type.
9902 * elfread.c (elfread_data): New typedef.
9903 (probe_key): Change type.
9904 (elf_get_probes): Likewise. Update.
9905 (probe_key_free): Remove.
9906 (_initialize_elfread): Update.
9907 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9908 Change type.
9909 (dtrace_process_dof_probe, dtrace_process_dof)
9910 (dtrace_static_probe_ops::get_probe): Change type.
9911
02dc647e
TT
99122019-05-08 Tom Tromey <tom@tromey.com>
9913
9914 * xcoffread.c (struct xcoff_symfile_info): Rename from
9915 coff_symfile_info. Add initializers.
9916 (xcoff_objfile_data_key): Move lower. Change type.
9917 (XCOFF_DATA): Rewrite.
9918 (xcoff_free_info): Remove.
9919 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9920 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9921 (xcoff_initial_scan): Update.
9922
09232438
TT
99232019-05-08 Tom Tromey <tom@tromey.com>
9924
9925 * solib-svr4.c (struct svr4_info): Add initializers and
9926 destructor.
9927 <probes_table>: Now an htab_up.
9928 (solib_svr4_pspace_data): Change type.
9929 (free_probes_table): Simplify.
9930 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9931 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9932 (probes_table_remove_objfile_probes, register_solib_event_probe)
9933 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9934 (_initialize_svr4_solib): Update.
9935
7b4a314f
TT
99362019-05-08 Tom Tromey <tom@tromey.com>
9937
9938 * remote.c (remote_pspace_data): Change type.
9939 (remote_pspace_data_cleanup): Remove.
9940 (get_remote_exec_file, set_pspace_remote_exec_file)
9941 (_initialize_remote): Update.
9942
51d3063a
TT
99432019-05-08 Tom Tromey <tom@tromey.com>
9944
9945 * breakpoint.c (breakpoint_objfile_key): Change type.
9946 (get_breakpoint_objfile_data): Update.
9947 (free_breakpoint_objfile_data): Remove.
9948 (_initialize_breakpoint): Update.
9949
89fb8848
TT
99502019-05-08 Tom Tromey <tom@tromey.com>
9951
9952 * linux-tdep.c (struct linux_info): Add initializers.
9953 (linux_inferior_data): Move. Change type.
9954 (invalidate_linux_cache_inf): Update.
9955 (linux_inferior_data_cleanup): Remove.
9956 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9957
e9b89e2d
TT
99582019-05-08 Tom Tromey <tom@tromey.com>
9959
9960 * auxv.c (auxv_inferior_data): Move. Change type.
9961 (auxv_inferior_data_cleanup): Remove.
9962 (invalidate_auxv_cache_inf): Rewrite.
9963 (get_auxv_inferior_data, _initialize_auxv): Update.
9964
8c42777c
TT
99652019-05-08 Tom Tromey <tom@tromey.com>
9966
9967 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9968 (symfile_debug_objfile_data_key): Change type.
9969 (symfile_debug_installed, debug_qf_has_symbols)
9970 (debug_qf_find_last_source_symtab)
9971 (debug_qf_forget_cached_source_info)
9972 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9973 (debug_qf_print_stats, debug_qf_dump)
9974 (debug_qf_expand_symtabs_for_function)
9975 (debug_qf_expand_all_symtabs)
9976 (debug_qf_expand_symtabs_with_fullname)
9977 (debug_qf_map_matching_symbols)
9978 (debug_qf_expand_symtabs_matching)
9979 (debug_qf_find_pc_sect_compunit_symtab)
9980 (debug_qf_map_symbol_filenames)
9981 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9982 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9983 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9984 (debug_sym_read_linetable, debug_sym_relocate): Update.
9985 (symfile_debug_free_objfile): Remove.
9986 (install_symfile_debug_logging, _initialize_symfile_debug):
9987 Update.
9988
5bfd760d
TT
99892019-05-08 Tom Tromey <tom@tromey.com>
9990
9991 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9992 allocate_on_obstack.
9993 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9994 (get_dwarf2_per_objfile): Update.
9995 (set_dwarf2_per_objfile): Remove.
9996 (dwarf2_has_info, dwarf2_get_section_info): Update.
9997 (dwarf2_free_objfile): Remove.
9998 (_initialize_dwarf2_read): Update.
9999
e85e19b4
TT
100002019-05-08 Tom Tromey <tom@tromey.com>
10001
10002 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10003 initializers.
10004 <unsupported_script_warning_printed,
10005 script_not_found_warning_printed>: Now bool.
10006 (auto_load_pspace_data): Change type.
10007 (~auto_load_pspace_info): Rename from
10008 auto_load_pspace_data_cleanup.
10009 (get_auto_load_pspace_data, init_loaded_scripts_info)
10010 (clear_section_scripts, maybe_print_unsupported_script_warning)
10011 (maybe_print_script_not_found_warning, _initialize_auto_load):
10012 Update.
10013
f6aa7436
TT
100142019-05-08 Tom Tromey <tom@tromey.com>
10015
10016 * objfiles.c (objfile_pspace_info): Add destructor and
10017 initializers.
10018 (objfiles_pspace_data): Change type.
10019 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10020 (get_objfile_pspace_data): Update.
10021 (objfiles_bfd_data): Change type.
10022 (get_objfile_bfd_data): Update.
10023 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10024
6ae614f6
TT
100252019-05-08 Tom Tromey <tom@tromey.com>
10026
10027 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10028 Change type.
10029 (get_catch_syscall_inferior_data): Update.
10030 (catch_syscall_inferior_data_cleanup): Remove.
10031 (_initialize_break_catch_syscall): Update.
10032
6509b8eb
TT
100332019-05-08 Tom Tromey <tom@tromey.com>
10034
10035 * inflow.c (struct terminal_info): Add destructor and
10036 initializers.
10037 (inflow_inferior_data): Change type.
10038 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10039 (get_inflow_inferior_data, inflow_inferior_exit)
10040 (swap_terminal_info, _initialize_inflow): Update.
10041
35632941
TT
100422019-05-08 Tom Tromey <tom@tromey.com>
10043
10044 * target-dcache.c (target_dcache_cleanup): Remove.
10045 (target_dcache_aspace_key): Change type.
10046 (target_dcache_init_p, target_dcache_invalidate)
10047 (target_dcache_get, target_dcache_get_or_init)
10048 (_initialize_target_dcache): Update.
10049 * dcache.h (struct dcache_deleter): New.
10050
3017b94d
TT
100512019-05-08 Tom Tromey <tom@tromey.com>
10052
10053 * symtab.c (struct symbol_cache): Add destructor and
10054 initializers.
10055 (symbol_cache_key): Move. Change type.
10056 (make_symbol_cache, free_symbol_cache): Remove.
10057 (get_symbol_cache): Update.
10058 (symbol_cache_cleanup): Remove.
10059 (ALL_PSPACES, symbol_cache_flush)
10060 (maintenance_print_symbol_cache)
10061 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10062 Update.
10063
a32ad8c5
TT
100642019-05-08 Tom Tromey <tom@tromey.com>
10065
10066 * symtab.c (struct main_info): Add destructor and initializers.
10067 (main_progspace_key): Move. Change type.
10068 (get_main_info): Update.
10069 (main_info_cleanup): Remove.
10070 (_initialize_symtab): Update.
10071
5f6e90a0
TT
100722019-05-08 Tom Tromey <tom@tromey.com>
10073
10074 * registry.h (DECLARE_REGISTRY): Define the _key class.
10075
1bd0c6e4
AB
100762019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10077
10078 * NEWS: Merge two 'New commands' sections.
10079
2228ef77
XR
100802019-05-08 Joel Brobecker <brobecker@adacore.com>
10081
10082 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10083 parameter and use Ada language definition instead.
10084 (ada_val_print_ptr): Remove unused language parameter.
10085 (ada_val_print_num): Remove language parameter and use Ada language
10086 definition instead.
10087 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10088 parameter.
10089 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10090 parameter and use Ada language definition instead.
10091 (ada_val_print_1): Update all ada_val_print_xxx calls.
10092 Remove language parameter.
10093 (ada_val_print): Update ada_val_print_1 call.
10094
60fcc1c3
TT
100952019-05-08 Tom Tromey <tromey@adacore.com>
10096
10097 * remote.c (remote_hw_watchpoint_limit)
10098 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10099 Now static.
10100
ed2b7c17
TT
101012019-05-08 Tom Tromey <tromey@adacore.com>
10102
10103 * maint.c (_initialize_maint_cmds): Move initialization code to
10104 remote.c.
10105 (watchdog, show_watchdog): Move to remote.c.
10106 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10107 "watchdog" static.
10108 (_initialize_remote): Move initialization code from maint.c.
10109 * defs.h (watchdog): Don't declare.
10110
b0be6c91
TT
101112019-05-08 Tom Tromey <tromey@adacore.com>
10112
10113 * tui/tui-interp.c: Include main.h.
10114 * interps.c: Include main.h.
10115 * main.h (interpreter_p): Declare.
10116 * defs.h (interpreter_p): Don't declare.
10117
587ee17b
TT
101182019-05-08 Tom Tromey <tromey@adacore.com>
10119
10120 * dwarf2loc.c: Include dwarf2read.h.
10121 * defs.h (read_unsigned_leb128): Don't declare.
10122 * dwarf2read.h (read_unsigned_leb128): Declare.
10123
ca1df239
TT
101242019-05-08 Tom Tromey <tromey@adacore.com>
10125
10126 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10127 method.
10128
99f20f08
TT
101292019-05-08 Tom Tromey <tromey@adacore.com>
10130
10131 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10132 when no wrap column is set.
10133
80e55b13
TT
101342019-05-08 Tom Tromey <tromey@adacore.com>
10135
10136 * c-lang.c (c_get_string): Handle non-C-style arrays.
10137
9d3421af
TT
101382019-05-08 Tom Tromey <tromey@adacore.com>
10139
10140 * typeprint.c (print_offset_data::update): Print the bit offset,
10141 not the number of bits remaining.
10142
844333e2
TT
101432019-05-08 Tom Tromey <tromey@adacore.com>
10144
10145 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10146 padding at end of comment.
10147
988915ee
TT
101482019-05-08 Tom Tromey <tromey@adacore.com>
10149
10150 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10151 Compare main types.
10152
26bfd823
TT
101532019-05-06 Tom Tromey <tom@tromey.com>
10154
10155 * common/scoped_mmap.c: Include common-defs.h.
10156 * common/scoped_mmap.h: Don't include config.h.
10157
89055eaa
TT
101582019-05-04 Tom Tromey <tom@tromey.com>
10159
10160 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10161 (struct aarch64_call_info): Add initializers.
10162 <si>: Now a std::vector.
10163 (pass_on_stack, aarch64_push_dummy_call): Update.
10164
5da01df5
TT
101652019-05-04 Simon Marchi <simon.marchi@efficios.com>
10166 Tom Tromey <tom@tromey.com>
10167
10168 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10169 (ppc_threads): Now a std::vector. Now static.
10170 (hwdebug_find_thread_points_by_tid)
10171 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10172 Update.
10173
fbdf05a1
TT
101742019-05-04 Tom Tromey <tom@tromey.com>
10175
10176 * arc-tdep.c (arc_tdesc_init): Return bool.
10177
06d16ec9
TT
101782019-05-04 Tom Tromey <tom@tromey.com>
10179
10180 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10181 Use gdb_assert_not_reached.
10182
9c056022
TT
101832019-05-04 Tom Tromey <tom@tromey.com>
10184
10185 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10186 "false".
10187
fa9c2a59
TT
101882019-05-04 Tom Tromey <tom@tromey.com>
10189
10190 * arc-tdep.c (arc_tdesc_init): Use bool.
10191
e2eb806a
TT
101922019-05-04 Tom Tromey <tom@tromey.com>
10193
10194 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10195
6fe87677
TT
101962019-05-04 Tom Tromey <tom@tromey.com>
10197
10198 * cli/cli-cmds.c (valid_command_p): Return bool.
10199
7f008c9e
TT
102002019-05-04 Tom Tromey <tom@tromey.com>
10201
10202 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10203 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10204
b6484282
RT
102052019-05-04 Raul Tambre <raul@tambre.ee>
10206
10207 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10208 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10209 operator for comparison.
10210
af97b416
TT
102112019-05-04 Tom Tromey <tom@tromey.com>
10212
10213 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10214 (lookup_partial_symbol, print_partial_symbols)
10215 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10216 (psymbol_compare): Update.
10217 (add_psymbol_to_bcache): Clear the entire psymbol.
10218 (maintenance_check_psymtabs): Update.
10219 * psympriv.h (struct partial_symbol): Don't derive from
10220 general_symbol_info.
10221 <obj_section, unrelocated_address, address,
10222 set_unrelocated_address>: Update.
10223 <ginfo>: New member.
10224 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10225 (debug_names::write_psymbols): Update.
10226
9d6d4be8
TV
102272019-05-04 Tom de Vries <tdevries@suse.de>
10228
10229 * contrib/cc-with-tweaks.sh: Support -n arg.
10230
66452beb
PW
102312019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10232
10233 * corelow.c (core_target::detach): Ensure frame cache and
10234 register caches are cleared.
10235 inferior.c (exit_inferior_1): Likewise.
10236
bde09ab7
TT
102372019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10238 Tom Tromey <tom@tromey.com>
10239
10240 * dictionary.c (collate_pending_symbols_by_language): Remove
10241 "struct" from foreach.
10242 * symtab.c (lookup_global_symbol_from_objfile)
10243 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10244 foreach.
10245 * ser-tcp.c (net_open): Remove "struct" from foreach.
10246 * objfiles.c (objfile_relocate, objfile_rebase)
10247 (objfile_has_symbols): Remove "struct" from foreach.
10248 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10249 from foreach.
10250 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10251 foreach.
10252 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10253 "struct" from foreach.
10254 * ada-lang.c (create_excep_cond_exprs)
10255 (ada_exception_catchpoint_cond_string): Remove "struct" from
10256 foreach.
10257
222a8d25
TT
102582019-05-03 Tom Tromey <tromey@adacore.com>
10259
10260 * ada-exp.y (convert_char_literal): Check suffix of each
10261 enumerator.
10262
fcd60b84
DP
102632019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10264
10265 PR ada/21406:
10266 * ada-exp.y (yywrap): Don't define.
10267 * ada-lex.l (%option): Add noyywrap
10268 (yywrap): Remove.
10269
5f2459c2
EZ
102702019-05-03 Eli Zaretskii <eliz@gnu.org>
10271
353ea2d1
EZ
10272 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10273 _WIN32_WINNT to the XP level, unless already defined to a higher
10274 level.
10275
10276 * unittests/parse-connection-spec-selftests.c:
10277 * ser-tcp.c:
10278 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10279 override.
10280
5f2459c2
EZ
10281 * symfile.c (find_separate_debug_file): Remove colon from the
10282 drive spec of DOS/Windows file names of the target, so that the
10283 file name produced from DEBUGDIR and the target's directory will
10284 be valid on DOS/Windows systems.
10285
80062eb9
AB
102862019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10287
10288 * rust-lang.c (val_print_struct): Handle printing structures
10289 containing strings.
10290
b8c05e85
TT
102912019-05-02 Tom Tromey <tromey@adacore.com>
10292
10293 * valarith.c (_initialize_valarith): Remove.
10294
4504bbde
TT
102952019-05-01 Tom Tromey <tromey@adacore.com>
10296
10297 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10298 bitfields.
10299
d48e62f4
TT
103002019-05-01 Tom Tromey <tromey@adacore.com>
10301
10302 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10303 for big-endian copies.
10304
15f18d14
AT
103052019-04-30 Ali Tamur <tamur@google.com>
10306 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10307 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10308 (read_3_bytes): New function.
10309
ab4ee614
JB
103102019-04-30 Joel Brobecker <brobecker@adacore.com>
10311
10312 * windows-nat.c (main_thread_id): Delete.
10313 (handle_output_debug_string): Replace main_thread_id by
10314 current_event.dwThreadId.
10315 (fake_create_process): Likewise.
10316 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10317 Do not set main_thread_id.
10318 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10319 current_event.dwThreadId.
10320 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10321
8ed5b76e
JB
103222019-04-30 Joel Brobecker <brobecker@adacore.com>
10323
10324 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10325 Use current_event.dwThreadId instead of main_thread_id.
10326
2ff0a947
TT
103272019-04-30 Tom Tromey <tromey@adacore.com>
10328
10329 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10330 (create_excep_cond_exprs): Iterate over program spaces.
10331 (ada_exception_catchpoint_cond_string): Examine all minimal
10332 symbols for exception types.
10333
a776957c
TT
103342019-04-30 Tom Tromey <tromey@adacore.com>
10335
10336 PR c++/24470:
10337 * dwarf2read.c (process_structure_scope): Handle case where type
10338 has template parameters but no symbol was created.
10339
bc68014d
AB
103402019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10341 Chris January <chris.january@arm.com>
10342
10343 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10344 qualifier.
10345 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10346
f1fdc960
AB
103472019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10348
10349 * f-typeprint.c (f_print_type): Update rules for printing
10350 whitespace.
10351 (f_type_print_varspec_suffix): Likewise.
10352
bf7a4de1
AB
103532019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10354 Chris January <chris.january@arm.com>
10355
10356 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10357 function arguments.
10358
bbe75b9d
AB
103592019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10360
10361 * f-lang.c (build_fortran_types): Change name of void type to
10362 lower case.
10363 * f-typeprint.c (f_type_print_base): Print the name of the void
10364 type, rather than a fixed string.
10365 * f-valprint.c (f_decorations): Use lower case void string.
10366
1db455a7
AB
103672019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10368 Chris January <chris.january@arm.com>
10369
10370 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10371 types for Fortran.
10372
b6d03bb2
AB
103732019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10374 Chris January <chris.january@arm.com>
10375 David Lecomber <david.lecomber@arm.com>
10376
10377 * f-exp.y (BINOP_INTRINSIC): New token.
10378 (exp): New parser rule handling BINOP_INTRINSIC.
10379 (f77_keywords): Add new builtin procedures.
10380 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10381 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10382 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10383 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10384 (print_unop_subexp_f): New function.
10385 (print_binop_subexp_f): New function.
10386 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10387 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10388 (dump_subexp_body_f): Likewise.
10389 (operator_check_f): Likewise.
10390 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10391 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10392
83228e93
AB
103932019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10394
10395 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10396 UNOP_KIND.
10397 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10398 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10399 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10400 (operator_length_f): New fuction.
10401 (print_subexp_f): New function.
10402 (op_name_f): New function.
10403 (dump_subexp_body_f): New function.
10404 (operator_check_f): New function.
10405 (exp_descriptor_f): Replace standard expression handling functions
10406 with new functions.
10407 * gdb/fortran-operator.def: New file.
10408 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10409 * gdb/std-operator.def: Remove UNOP_KIND.
10410
6fdcd7cc
AB
104112019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10412
10413 * std-operator.def: Remove unbalanced, stray double quote
10414 character.
10415
2e62ab40
AB
104162019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10417 Chris January <chris.january@arm.com>
10418 Daniel Everett <daniel.everett@arm.com>
10419 Nick Forrington <nick.forrington@arm.com>
10420 Richard Bunt <richard.bunt@arm.com>
10421
10422 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10423 of depth when printing anonymous structs or unions.
10424 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10425 Don't print either the top-level value, or the children if the
10426 max-depth is exceeded.
10427 (ppscm_print_children): When printing the key of a map, allow one
10428 extra level of depth.
10429 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10430 print either the top-level value, or the children if the max-depth
10431 is exceeded.
10432 (print_children): When printing the key of a map, allow one extra
10433 level of depth.
10434 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10435 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10436 (user_print_options): Initialise max_depth field.
10437 (val_print_scalar_or_string_type_p): New function.
10438 (val_print): Check to see if the max depth has been reached.
10439 (val_print_check_max_depth): Define new function.
10440 (show_print_max_depth): New function.
10441 (_initialize_valprint): Add 'print max-depth' option.
10442 * valprint.h (struct value_print_options) <max_depth>: New field.
10443 (val_print_check_max_depth): Declare new function.
10444 * NEWS: Document new feature.
10445
4be290b2
AB
104462019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10447
10448 * ada-lang.c (ada_language_defn): Initialise new field.
10449 * c-lang.c (c_is_string_type_p): New function.
10450 (c_language_defn): Initialise new field.
10451 (cplus_language_defn): Initialise new field.
10452 (asm_language_defn): Initialise new field.
10453 (minimal_language_defn): Initialise new field.
10454 * c-lang.h (c_is_string_type_p): Declare new function.
10455 * d-lang.c (d_language_defn): Initialise new field.
10456 * f-lang.c (f_is_string_type_p): New function.
10457 (f_language_defn): Initialise new field.
10458 * go-lang.c (go_is_string_type_p): New function.
10459 (go_language_defn): Initialise new field.
10460 * language.c (default_is_string_type_p): New function.
10461 (unknown_language_defn): Initialise new field.
10462 (auto_language_defn): Initialise new field.
10463 * language.h (struct language_defn) <la_is_string_type_p>: New
10464 member variable.
10465 (default_is_string_type_p): Declare new function.
10466 * m2-lang.c (m2_language_defn): Initialise new field.
10467 * objc-lang.c (objc_language_defn): Initialise new field.
10468 * opencl-lang.c (opencl_language_defn): Initialise new field.
10469 * p-lang.c (pascal_is_string_type_p): New function.
10470 (pascal_language_defn): Initialise new field.
10471 * rust-lang.c (rust_is_string_type_p): New function.
10472 (rust_language_defn): Initialise new field.
10473
721b08c6
AB
104742019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10475
10476 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10477 New field.
10478 * ada-lang.c (ada_language_defn): Initialise new field.
10479 * c-lang.c (c_language_defn): Likewise.
10480 (cplus_language_defn): Likewise.
10481 (asm_language_defn): Likewise.
10482 (minimal_language_defn): Likewise.
10483 * d-lang.c (d_language_defn): Likewise.
10484 * f-lang.c (f_language_defn): Likewise.
10485 * go-lang.c (go_language_defn): Likewise.
10486 * language.c (unknown_language_defn): Likewise.
10487 (auto_language_defn): Likewise.
10488 * m2-lang.c (m2_language_defn): Likewise.
10489 * objc-lang.c (objc_language_defn): Likewise.
10490 * opencl-lang.c (opencl_language_defn): Likewise.
10491 * p-lang.c (pascal_language_defn): Likewise.
10492 * rust-lang.c (rust_language_defn): Likewise.
10493
fc913e53
AB
104942019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10495
10496 * ada-lang.c (ada_is_character_type): Change return type to bool.
10497 (ada_is_string_type): Likewise.
10498 * ada-lang.h (ada_is_character_type): Update declaration
10499 (ada_is_string_type): Likewise.
10500
fa731fa0
PW
105012019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10502
10503 Support style in 'frame|thread apply'
10504
10505 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10506 * record.c (record_start, record_stop): Update callers of
10507 execute_command_to_string with false.
10508 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10509 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10510 methods.
10511 (class string_file): New constructor with term_out parameter.
10512 Override methods term_out and can_emit_style_escape. New member
10513 term_out.
10514 (class stdio_file): Override can_emit_style_escape.
10515 (class tee_file): Override term_out and can_emit_style_escape.
10516 * utils.h (can_emit_style_escape): Remove.
10517 * utils.c (can_emit_style_escape): Likewise.
10518 Update all callers of can_emit_style_escape (SOMESTREAM) to
10519 SOMESTREAM->can_emit_style_escape.
10520 * source-cache.c (source_cache::get_source_lines): Likewise.
10521 * stack.c (frame_apply_command_count): Call execute_command_to_string
10522 passing the term_out characteristic of the current gdb_stdout.
10523 * thread.c (thr_try_catch_cmd): Likewise.
10524 * top.c (execute_command_to_string): pass term_out parameter
10525 to construct the string_file for the command output.
10526 * ui-file.c (term_cli_styling): New function (most code moved
10527 from utils.c can_emit_style_escape).
10528 (string_file::string_file, string_file::can_emit_style_escape,
10529 stdio_file::can_emit_style_escape, tee_file::term_out,
10530 tee_file::can_emit_style_escape): New functions.
10531
136afab8
PW
105322019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10533
10534 * NEWS: Mention the new set|show may-call-functions.
10535 * infcall.c (may_call_functions_p): New variable.
10536 (show_may_call_functions_p): New function.
10537 (call_function_by_hand_dummy): Throws an error if not
10538 may-call-functions.
10539 (_initialize_infcall): Call add_setshow_boolean_cmd for
10540 may-call-functions.
10541
725cbb63
KS
105422019-04-25 Keith Seitz <keiths@redhat.com>
10543
10544 PR c++/24367
10545 * cp-support.c (inspect_type): Don't attempt substitutions
10546 of symbol with the same name.
10547
3d1cbb78
TT
105482019-04-25 Tom Tromey <tromey@adacore.com>
10549
10550 PR gdb/24475:
10551 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10552 static.
10553
94aeb44b
TT
105542019-04-25 Tom Tromey <tromey@adacore.com>
10555
10556 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10557 rvalue reference.
10558 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10559 (gdb_xml_parser::parse): Use std::move.
10560 * python/python-internal.h (gdbpy_convert_exception): Take a const
10561 reference.
10562 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10563 std::move.
10564 * python/py-utils.c (gdbpy_convert_exception): Take a const
10565 reference.
10566 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10567 Use std::move.
10568 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10569 Use std::move.
10570 * mi/mi-main.c (mi_print_exception): Take a const reference.
10571 * main.c (handle_command_errors): Take a const reference.
10572 * linespec.c (parse_linespec): Use std::move.
10573 * infcall.c (run_inferior_call): Use std::move.
10574 (call_function_by_hand_dummy): Use std::move.
10575 * exec.c (try_open_exec_file): Use std::move.
10576 * exceptions.h (exception_print, exception_fprintf)
10577 (exception_print_same): Update.
10578 * exceptions.c (print_exception, exception_print)
10579 (exception_fprintf, exception_print_same): Change parameters to
10580 const reference.
10581 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10582 * common/new-op.c: Use std::move.
10583 * common/common-exceptions.h (struct gdb_exception): Add move
10584 constructor.
10585 (struct gdb_exception_error, struct gdb_exception_quit, struct
10586 gdb_quit_bad_alloc): Change constructor to move constructor.
10587 (throw_exception): Change parameter to rvalue reference.
10588 * common/common-exceptions.c (throw_exception): Take rvalue
10589 reference.
10590 * cli/cli-interp.c (safe_execute_command): Use std::move.
10591 * breakpoint.c (insert_bp_location, location_to_sals): Use
10592 std::move.
10593
680d7fd5
TT
105942019-04-25 Tom Tromey <tromey@adacore.com>
10595
10596 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10597 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10598 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10599 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10600 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10601 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10602 guile/scm-value.c: Use unpack.
10603 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10604 gdbscm_gdb_exception.
10605 (gdbscm_throw_gdb_exception): Likewise.
10606 (struct gdbscm_gdb_exception): New.
10607 (unpack): New function.
10608 (gdbscm_wrap): Use unpack.
10609
c6fdd8b2
TT
106102019-04-25 Tom Tromey <tromey@adacore.com>
10611
10612 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10613 (gdb_rl_callback_handler): Use std::move.
10614 * common/common-exceptions.h (struct gdb_exception): Add move
10615 assignment operator.
10616 (throw_exception_sjlj): Change "exception" to const reference.
10617 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10618 (throw_exception_sjlj): Change "exception" to const reference.
10619
cc06b668
TT
106202019-04-25 Tom Tromey <tromey@adacore.com>
10621
10622 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10623 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10624 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10625 Update.
10626 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10627 Update.
10628 * mi/mi-interp.c (mi_interp::exec): Update.
10629 * linespec.c (parse_linespec): Update.
10630 * infcall.c (run_inferior_call): Update.
10631 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10632 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10633 (gdbscm_lookup_global_symbol): Update.
10634 * guile/scm-param.c (gdbscm_parameter_value): Update.
10635 * guile/scm-frame.c (gdbscm_frame_read_register)
10636 (gdbscm_frame_read_var): Update.
10637 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10638 * exec.c (try_open_exec_file): Update.
10639 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10640 (gdb_rl_callback_handler): Update.
10641 * common/common-exceptions.h (exception_none): Don't declare.
10642 * common/common-exceptions.c (exception_none): Don't define.
10643 (struct catcher) <exception>: Update.
10644 * cli/cli-interp.c (safe_execute_command): Update.
10645 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10646
cf532bd1
AT
106472019-04-25 Ali Tamur <tamur@google.com>
10648
10649 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10650 (read_attribute_value): Likewise.
10651 (dwarf2_read_addr_index): Update comment.
10652 (read_str_index): Add DW_FORM_strx.
10653 (dwarf2_string_attr): Likewise.
10654 (dwarf2_const_value_attr): Likewise.
10655 (dump_die_shallow): Likewise.
10656 (dwarf2_fetch_constant_bytes): Likewise.
10657 (skip_form_bytes): Likewise.
10658 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10659
82433e3e
SDJ
106602019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10661
10662 PR corefiles/11608
10663 PR corefiles/18187
10664 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10665 OFFSET. Verify if current mapping contains an ELF header.
10666 (linux_find_memory_regions_full): Adjust call to
10667 dump_mapping_p.
10668
723adb65
SL
106692019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10670 Kang Li <kanglictf@gmail.com>
10671
10672 PR gdb/21600
10673
10674 * dwarf2-frame.c (read_initial_length): Be consistent about using
10675 unsigned representation of length.
10676 (decode_frame_entry_1): Likewise. Check for wraparound of
10677 end pointer as well as buffer overflow.
10678
596179f7
SDJ
106792019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10680
10681 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10682 "vq".
10683
a59240a4
TT
106842019-04-24 Tom Tromey <tromey@adacore.com>
10685
10686 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10687
f872fdbb
AB
106882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10689
10690 * s12z-tdep.c (s12z_unwind_pc): Delete.
10691 (s12z_unwind_sp): Delete.
10692 (s12z_gdbarch_init): Don't register deleted functions with
10693 gdbarch.
10694
b614e6f3
AB
106952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10696
10697 * rl78-tdep.c (rl78_unwind_sp): Delete.
10698 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10699
14faed38
AB
107002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10701
10702 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10703 (xstormy16_unwind_pc): Delete.
10704 (xstormy16_dummy_id): Delete.
10705 (xstormy16_gdbarch_init): Don't register deleted functions with
10706 gdbarch.
10707
541aad8a
AB
107082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10709
10710 * vax-tdep.c (vax_unwind_pc): Delete.
10711 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10712
29222070
AB
107132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10714
10715 * v850-tdep.c (v850_unwind_sp): Delete.
10716 (v850_unwind_pc): Delete.
10717 (v850_dummy_id): Delete.
10718 (v850_gdbarch_init): Don't register deleted functions with
10719 gdbarch.
10720
0f534d76
AB
107212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10722
10723 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10724 (tilegx_unwind_pc): Delete.
10725 (tilegx_unwind_dummy_id): Delete.
10726 (tilegx_gdbarch_init): Don't register deleted functions with
10727 gdbarch.
10728
1ba7b7f9
AB
107292019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10730
10731 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10732 (tic6x_dummy_id): Delete.
10733 (tic6x_gdbarch_init): Don't register deleted functions with
10734 gdbarch.
10735
d31f262c
AB
107362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10737
10738 * sparc-tdep.c (sparc_unwind_pc): Delete.
10739 (sparc32_gdbarch_init): Don't register deleted function with
10740 gdbarch.
10741
6d14d64d
AB
107422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10743
10744 * sh-tdep.c (sh_unwind_sp): Delete.
10745 (sh_unwind_pc): Delete.
10746 (sh_dummy_id): Delete.
10747 (sh_gdbarch_init): Don't register deleted functions with
10748 gdbarch.
10749
a40dde9d
AB
107502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10751
10752 * score-tdep.c (score_unwind_sp): Delete.
10753 (score_unwind_pc): Delete.
10754 (score_dummy_id): Delete.
10755 (score_gdbarch_init): Don't register deleted functions with
10756 gdbarch.
10757
47c47d69
AB
107582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10759
10760 * rx-tdep.c (rx_unwind_pc): Delete.
10761 (rx_unwind_sp): Delete.
10762 (rx_dummy_id): Delete.
10763 (rx_gdbarch_init): Don't register deleted functions with
10764 gdbarch. Update comment.
10765
833a4480
AB
107662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10767
10768 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10769 (rs6000_dummy_id): Delete.
10770 (rs6000_gdbarch_init): Don't register deleted functions with
10771 gdbarch.
10772
3f2cef49
AB
107732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10774
10775 * or1k-tdep.c (or1k_dummy_id): Delete.
10776 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10777
96acf884
AB
107782019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10779
10780 * nios2-tdep.c (nios2_dummy_id): Delete.
10781 (nios2_unwind_sp): Delete.
10782 (nios2_gdbarch_init): Don't register deleted functions with
10783 gdbarch.
10784
ca0ab0aa
AB
107852019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10786
10787 * nds32-tdep.c (nds32_dummy_id): Delete.
10788 (nds32_unwind_pc): Delete.
10789 (nds32_unwind_sp): Delete.
10790 (nds32_gdbarch_init): Don't register deleted functions with
10791 gdbarch.
10792
c8259044
AB
107932019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10794
10795 * msp430-tdep.c (msp430_unwind_pc): Delete.
10796 (msp430_unwind_sp): Delete.
10797 (msp430_dummy_id): Delete.
10798 (msp430_gdbarch_init): Don't register deleted functions with
10799 gdbarch.
10800
27f113c8
AB
108012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10802
10803 * moxie-tdep.c (moxie_unwind_sp): Delete.
10804 (moxie_unwind_pc): Delete.
10805 (moxie_dummy_id): Delete.
10806 (moxie_gdbarch_init): Don't register deleted functions with
10807 gdbarch.
10808
aee6c3cd
AB
108092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10810
10811 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10812 (mn10300_unwind_pc): Delete.
10813 (mn10300_unwind_sp): Delete.
10814 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10815 mn10300_unwind_sp.
10816 (mn10300_frame_unwind_init): Don't register deleted functions with
10817 gdbarch.
10818
8e2b5aea
AB
108192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10820
10821 * mep-tdep.c (mep_unwind_pc): Delete.
10822 (mep_unwind_sp): Delete.
10823 (mep_dummy_id): Delete.
10824 (mep_gdbarch_init): Don't register deleted functions with
10825 gdbarch.
10826
43cf3ede
AB
108272019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10828
10829 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10830 (m68hc11_unwind_sp): Delete.
10831 (m68hc11_gdbarch_init): Don't register deleted functions with
10832 gdbarch.
10833
5e79b7bb
AB
108342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10835
10836 * m32r-tdep.c (m32r_unwind_sp): Delete.
10837 (m32r_unwind_pc): Delete.
10838 (m32r_dummy_id): Delete.
10839 (m32r_gdbarch_init): Don't register deleted functions with
10840 gdbarch.
10841
89b268d8
AB
108422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10843
10844 * m32c-tdep.c (m32c_unwind_pc): Delete.
10845 (m32c_unwind_sp): Delete.
10846 (m32c_dummy_id): Delete.
10847 (m32c_gdbarch_init): Don't register deleted functions with
10848 gdbarch.
10849
946c28d2
AB
108502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10851
10852 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10853 (lm32_unwind_pc): Delete.
10854 (lm32_dummy_id): Delete.
10855 (lm32_gdbarch_init): Don't register deleted functions with
10856 gdbarch.
10857
bf12844a
AB
108582019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10859
10860 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10861 (iq2000_unwind_pc): Delete.
10862 (iq2000_dummy_id): Delete.
10863 (iq2000_gdbarch_init): Don't register deleted functions with
10864 gdbarch.
10865
ecbc06d2
AB
108662019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10867
10868 * nds32-tdep.c (nds32_type_align): Delete.
10869 (nds32_push_dummy_call): Use type_align instead.
10870
030197b4
AB
108712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10872
10873 * arm-tdep.c (arm_type_align): Only handle vector override case.
10874 (arm_push_dummy_call): Use type_align.
10875 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10876
b907456c
AB
108772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10878
10879 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10880 case.
10881 (pass_on_stack): Use type_align.
10882 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10883 function.
10884
9e97ba43
TT
108852019-04-23 Tom Tromey <tromey@adacore.com>
10886
10887 * dwarf2read.c (line_header::file_name_at): Remove unused
10888 overload.
10889
6892f601
TV
108902019-04-23 Tom de Vries <tdevries@suse.de>
10891
10892 PR gdb/24438
10893 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10894 invocation.
10895
336d760d
AT
10896
108972019-03-27 Ali Tamur <tamur@google.com>
10898
10899 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10900 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10901 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10902 (dwarf_expr_context::get_addr_index): Likewise
10903 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10904 (symbol_needs_eval_context::get_addr_index): Likewise
10905 (disassemble_dwarf_expression): Add DW_OP_addrx
10906 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10907 (read_cutu_die_from_dwo): Update comment
10908 (skip_one_die): Add DW_FORM_addrx
10909 (read_attribute_value): Likewise
10910 (var_decode_location): Add DW_OP_addrx
10911 (dwarf2_const_value_attr): Add DW_FORM_addrx
10912 (dump_die_shallow): Likewise
10913 (dwarf2_fetch_constant_bytes): Likewise
10914 (decode_locdesc): Add DW_OP_addrx
10915 (skip_form_bytes): Add DW_FORM_addrx
10916
ad9d13f8
AT
109172019-04-22 Ali Tamur <tamur@google.com>
10918
10919 * MAINTAINERS (Write After Approval): Add self.
10920
d70cc3ba
SM
109212019-04-22 Simon Marchi <simon.marchi@efficios.com>
10922
10923 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10924 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10925 (open_symbol_file_object): Likewise.
10926 (svr4_default_sos): Add info parameter.
10927 (svr4_read_so_list): Likewise.
10928 (svr4_current_sos_direct): Adjust functions calls to pass down
10929 info.
10930 (svr4_current_sos_1): Add info parameter.
10931 (svr4_current_sos): Call get_svr4_info, pass info down to
10932 svr4_current_sos_1.
10933 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10934 get_svr4_info.
10935 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10936 get_svr4_info.
10937 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10938 to get_svr4_info.
10939 (probes_table_remove_objfile_probes): Likewise.
10940 (register_solib_event_probe): Add info parameter.
10941 (solist_update_incremental): Pass info parameter down to
10942 svr4_read_so_list.
10943 (disable_probes_interface): Add info parameter.
10944 (svr4_handle_solib_event): Pass current_program_space to
10945 get_svr4_info. Adjust disable_probes_interface cleanup.
10946 (svr4_create_probe_breakpoints): Add info parameter, pass it
10947 down to register_solib_event_probe.
10948 (svr4_create_solib_event_breakpoints): Add info parameter,
10949 pass it down to svr4_create_probe_breakpoints.
10950 (enable_break): Pass info down to
10951 svr4_create_solib_event_breakpoints.
10952 (svr4_solib_create_inferior_hook): Pass current_program_space to
10953 get_svr4_info.
10954 (svr4_clear_solib): Likewise.
10955
7905fc35
PA
109562019-04-22 Pedro Alves <palves@redhat.com>
10957
10958 * solib-svr4.c (svr4_free_objfile_observer): New.
10959 (probe_and_action::objfile): New field.
10960 (probes_table_htab_remove_objfile_probes)
10961 (probes_table_remove_objfile_probes): New functions.
10962 (register_solib_event_probe): Add 'objfile' parameter. Store it
10963 in the new probe_and_action. Don't store the probe in 'lookup'.
10964 (svr4_create_probe_breakpoints): Pass objfile to
10965 register_solib_event_probe.
10966 (_initialize_svr4_solib): Register a free_objfile observer.
10967
fb881986
TT
109682019-04-19 Tom Tromey <tom@tromey.com>
10969
10970 * common/queue.h: Remove.
10971
8732db6c
TT
109722019-04-19 Tom Tromey <tom@tromey.com>
10973
10974 * event-loop.c: Don't include "common/queue.h".
10975
97dfbadd
TT
109762019-04-19 Tom Tromey <tom@tromey.com>
10977
10978 * remote.c (remote_target): Use delete.
10979 * remote-notif.h: Include <list>, not "common/queue.h".
10980 (notif_client_p): Remove typedef.
10981 (remote_notif_state): Add constructor, destructor, initializer.
10982 <notif_queue>: Now a std::list.
10983 (remote_notif_state_xfree): Don't declare.
10984 * remote-notif.c (remote_notif_process, handle_notification)
10985 (remote_notif_state_allocate): Update.
10986 (~remote_notif_state): Rename from remote_notif_state_xfree.
10987
cf250e36
TT
109882019-04-19 Tom Tromey <tom@tromey.com>
10989
10990 * symfile.c (reread_symbols): Update.
10991 * objfiles.c (objfile_register_static_link)
10992 (objfile_lookup_static_link): Update
10993 (~objfile) Don't delete static_links.
10994 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10995
61f4b350
TT
109962019-04-19 Tom Tromey <tom@tromey.com>
10997
10998 * type-stack.h (struct type_stack) <insert>: Constify string.
10999 * type-stack.c (type_stack::insert): Constify string.
11000 * gdbtypes.h (lookup_template_type): Update.
11001 (address_space_name_to_int): Update.
11002 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11003 const.
11004 (lookup_template_type): Make name const.
11005 * c-exp.y: Update rules.
11006 (lex_one_token, classify_name, classify_inner_name)
11007 (c_print_token): Update.
11008 * p-exp.y: Update rules.
11009 (yylex): Update.
11010 * f-exp.y: Update rules.
11011 (yylex): Update.
11012 * d-exp.y: Update rules.
11013 (lex_one_token, classify_name, classify_inner_name): Update.
11014 * parse.c (write_dollar_variable, copy_name): Return std::string.
11015 * parser-defs.h (copy_name): Change return type.
11016 * m2-exp.y: Update rules.
11017 (yylex): Update.
11018 * go-exp.y (lex_one_token): Update.
11019 Update rules.
11020 (classify_unsafe_function, classify_packaged_name)
11021 (classify_name, yylex): Update.
11022
189b8c2e
ST
110232019-04-19 Sergei Trofimovich <siarheit@google.com>
11024
11025 * configure.ac: add --enable-source-highlight switch.
11026 * configure: Regenerate.
11027 * top.c (print_gdb_version): plumb --enable-source-highlight
11028 status to "show configuration".
11029
8ecb59f8
TT
110302019-04-19 Tom Tromey <tromey@adacore.com>
11031
11032 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11033 Check ADA_TYPE_P.
11034 (empty_record, ada_template_to_fixed_record_type_1)
11035 (template_to_static_fixed_type)
11036 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11037 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11038 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11039 macros.
11040
62160ec9
TT
110412019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11042
11043 PR symtab/24423:
11044 * source.c (print_source_lines_base): Advance "iter" when a
11045 control character is seen.
11046
f2ae8bc8
PW
110472019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11048
11049 * inferior.h (struct infcall_suspend_state_deleter):
11050 Catch exception in destructor to avoid crash.
11051
d563b953
PW
110522019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11053
11054 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11055 close to the add_com "shell".
11056
dc34c897
TT
110572019-04-18 Tom Tromey <tromey@adacore.com>
11058
11059 * process-stratum-target.h (class process_stratum_target)
11060 <stratum>: Add "final".
11061
a12e5744
TT
110622019-04-17 Tom Tromey <tromey@adacore.com>
11063
11064 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11065 against nullptr before use.
11066
a7e559cc
AH
110672019-04-17 Alan Hayward <alan.hayward@arm.com>
11068
11069 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11070
c01660c6
AB
110712019-04-17 Jim Wilson <jimw@sifive.com>
11072 Andrew Burgess <andrew.burgess@embecosm.com>
11073
11074 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11075 code read might fail, assume 4-byte breakpoint in that case.
11076
4aa866af
LS
110772019-04-15 Leszek Swirski <leszeks@google.com>
11078
11079 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11080 rather than a hand-rolled POD check when checking for forced MEMORY
11081 classification.
11082
48574d91
AH
110832019-04-15 Alan Hayward <alan.hayward@arm.com>
11084
11085 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11086 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11087 function.
11088 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11089 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11090 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11091 declaration.
11092
4da037ef
AH
110932019-04-15 Alan Hayward <alan.hayward@arm.com>
11094
11095 * aarch64-linux-nat.c
11096 (aarch64_linux_nat_target::thread_architecture): Add override.
11097 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11098 each VQ.
11099
ccb8d7e8
AH
111002019-04-15 Alan Hayward <alan.hayward@arm.com>
11101
11102 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11103
35add35e
AB
111042019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11105
11106 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11107 target types of size 96-bits, add some additional comments, and
11108 check that the builtin type we found was the correct size.
11109
51196bbc
EZ
111102019-04-12 Eli Zaretskii <eliz@gnu.org>
11111
11112 * utils.c (prompt_for_continue): Don't restore the styling at the
11113 end, as applied_style has the wrong value. This fixes styling in
11114 long lists of file names that are interrupted by the "Continue?"
11115 prompt.
11116
62253a61
AB
111172019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11118
11119 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11120 * c-lang.c (c_language_defn): Likewise.
11121 (cplus_language_defn): Likewise.
11122 (asm_language_defn): Likewise.
11123 (minimal_language_defn): Likewise.
11124 * d-lang.c (d_language_defn): Likewise.
11125 * f-lang.c (f_language_defn): Likewise.
11126 * go-lang.c (go_language_defn): Likewise.
11127 * language.c (unknown_language_defn): Likewise.
11128 (auto_language_defn): Likewise.
11129 * language.h (struct language_defn): Remove la_magic field.
11130 (LANG_MAGIC): Delete.
11131 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11132 * objc-lang.c (objc_language_defn): Likewise.
11133 * opencl-lang.c (opencl_language_defn): Likewise.
11134 * p-lang.c (pascal_language_defn): Likewise.
11135 * rust-lang.c (rust_language_defn): Likewise.
11136
a9158a86
AB
111372019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11138
11139 * riscv-tdep.c (riscv_type_align): New function.
11140 (riscv_type_alignment): Delete.
11141 (riscv_arg_location): Use 'type_align'.
11142 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11143
41077b66
AB
111442019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11145
11146 * gdbtypes.c (type_align): A struct with no non-static fields also
11147 has alignment of 1.
11148
9f0272f8
AB
111492019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11150
11151 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11152 component to 0.
11153 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11154 member.
11155 (riscv_struct_info::analyse): New implementation using new
11156 analyse_inner member function.
11157 (riscv_struct_info::field_offset): New member function.
11158 (riscv_struct_info::m_offsets): New member variable.
11159 (riscv_struct_info::analyse_inner): New private member function,
11160 takes the old implementation of riscv_struct_info::analyse but
11161 extended to track field offsets.
11162 (riscv_call_arg_struct): Update the struct folding special cases
11163 to handle cases where empty C++ structs, which are non-zero
11164 length, are found.
11165 (riscv_arg_location): Initialise the length of each location, a
11166 non-zero length now indicates the location is in use.
11167 (riscv_push_dummy_call): Allow for the first location having a
11168 non-zero offset when setting up arguments.
11169 (riscv_return_value): Likewise, but for return values.
11170
02cf60c7
TT
111712019-04-11 Tom Tromey <tromey@adacore.com>
11172
11173 * utils.c (internal_vproblem): Make "msg" const.
11174
68811f8f
AH
111752019-04-11 Alan Hayward <alan.hayward@arm.com>
11176
11177 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11178 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11179 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11180 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11181
3f52fdbc
KB
111822019-04-10 Kevin Buettner <kevinb@redhat.com>
11183
11184 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11185 function.
11186 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11187 of amd64_collect_native_gregset.
11188 (amd64_linux_nat_target::store_registers): Likewise.
11189
e9ad22ee
TT
111902019-04-10 Tom Tromey <tom@tromey.com>
11191
11192 * symtab.c (lookup_global_symbol_from_objfile)
11193 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11194 * objfiles.h (class separate_debug_iterator): New.
11195 (class separate_debug_range): New.
11196 (struct objfile) <separate_debug_objfiles>: New method.
11197 (objfile_separate_debug_iterate): Don't declare.
11198 * objfiles.c (separate_debug_iterator::operator++): Rename from
11199 objfile_separate_debug_iterate.
11200 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11201 iterator.
11202 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11203 iterator.
11204
ee371134
TT
112052019-04-10 Tom Tromey <tom@tromey.com>
11206
11207 * symfile.c (reread_symbols): Remove old comment.
11208 * objfiles.c (free_all_objfiles): Fix a typo.
11209
bf227d61
TT
112102019-04-10 Tom Tromey <tom@tromey.com>
11211
11212 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11213 * minsyms.c (lookup_minimal_symbol): Use foreach.
11214 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11215 (lookup_minimal_symbol_solib_trampoline): Likewise.
11216 * symfile.c (reread_symbols): Use foreach.
11217
8dc433a0
TT
112182019-04-09 Ivan Begert <ivanbegert@gmail.com>
11219 Tom Tromey <tromey@adacore.com>
11220
11221 PR rust/24414:
11222 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11223 (rust_lex_int_test): Change "value" to be LONGEST.
11224 (rust_lex_tests): Add test for long integer literal.
11225
9ab8741a
TT
112262019-04-09 Tom Tromey <tromey@adacore.com>
11227
11228 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11229 to bool.
11230 (extended_remote_target::attach): Update.
11231 (remote_target::remote_notice_new_inferior): Update.
11232 (remote_target::add_current_inferior_and_thread): Update.
11233 * inferior.c (exit_inferior_1): Use "false".
11234 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11235
e242fd12
SM
112362019-04-09 Simon Marchi <simon.marchi@efficios.com>
11237
9ca1957f 11238 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11239 the "start" command.
11240
2b0c8b01
KB
112412019-04-08 Kevin Buettner <kevinb@redhat.com>
11242
11243 * python/py-inferior.c (infpy_thread_from_thread_handle):
11244 Adjust comments to reflect renaming of thread_from_thread_handle
11245 to thread_from_handle. Adjust keywords. Fix type error message.
11246 (inferior_object_methods): Add thread_from_handle. Retain
11247 thread_from_thread_handle, but mark it as deprecated.
11248
50a82723
KB
112492019-04-08 Kevin Buettner <kevinb@redhat.com>
11250
11251 * gdbthread.h (find_thread_by_handle): Revise declaration.
11252 * thread.c (find_thread_by_handle): Likewise. Adjust
11253 implementation too.
11254 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11255 support for buffer objects as handles.
11256
cf63b016
KB
112572019-04-08 Kevin Buettner <kevinb@redhat.com>
11258
11259 * python/py-infthread.c (thpy_thread_handle): New function.
11260 (thread_object_methods): Register thpy_thread_handle.
11261
3d6c6204
KB
112622019-04-08 Kevin Buettner <kevinb@redhat.com>
11263
11264 * gdbthread.h (thread_to_thread_handle): Declare.
11265 * thread.c (gdbtypes.h): Include.
11266 (thread_to_thread_handle): New function.
11267
11268 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11269 (target_thread_info_to_thread_handle): Declare.
11270 * target.c (target_thread_info_to_thread_handle): New function.
11271 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11272 * target-delegates.c: Regenerate.
11273
11274 * linux-thread-db.c (class thread_db_target): Add method
11275 thread_info_to_thread_handle.
11276 (thread_db_target::thread_info_to_thread_handle): Define.
11277 * remote.c (class remote_target): Add new method
11278 thread_info_to_thread_handle.
11279 (remote_target::thread_info_to_thread_handle): Define.
11280
56be6ea8
PA
112812019-04-08 Pedro Alves <palves@redhat.com>
11282
11283 * common/common-exceptions.c (throw_exception): Don't create
11284 named object to throw; throw directly.
11285 (throw_it): Likewise. Don't initialize gdb_exception::message
11286 here, with new; pass FMT and AP to the ctor instead.
11287 * common/common-exceptions.h: Include <string>.
11288 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11289 const char *, va_list)): New ctor. Use std::make_shared.
11290 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11291 errors)): Delete.
11292 (gdb_exception_error::gdb_exception_error(enum errors, const char
11293 *, va_list)): New.
11294 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11295 Add assertion.
11296 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11297 errors)): Delete.
11298 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11299 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11300 Add assertion.
11301
eedc3f4f
TT
113022019-04-08 Tom Tromey <tom@tromey.com>
11303
11304 * valops.c (value_rtti_indirect_type): Replace throw_exception
11305 with throw.
11306 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11307 with throw.
11308 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11309 throw.
11310 * target.c (target_translate_tls_address): Replace throw_exception
11311 with throw.
11312 * stack.c (frame_apply_command_count): Replace throw_exception
11313 with throw.
11314 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11315 throw.
11316 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11317 with throw.
11318 * rs6000-tdep.c (rs6000_frame_cache)
11319 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11320 * remote.c: Replace throw_exception with throw.
11321 * record-full.c (record_full_message, record_full_wait_1)
11322 (record_full_restore): Replace throw_exception with throw.
11323 * record-btrace.c:
11324 (get_thread_current_frame_id, record_btrace_start_replaying)
11325 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11326 (cmd_record_btrace_start): Replace throw_exception with throw.
11327 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11328 throw.
11329 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11330 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11331 * linespec.c:
11332 (find_linespec_symbols): Replace throw_exception with throw.
11333 * infrun.c (displaced_step_prepare, resume): Replace
11334 throw_exception with throw.
11335 * infcmd.c (post_create_inferior): Replace throw_exception with
11336 throw.
11337 * inf-loop.c (inferior_event_handler): Replace throw_exception
11338 with throw.
11339 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11340 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11341 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11342 (get_prev_frame_always, get_frame_pc_if_available)
11343 (get_frame_address_in_block_if_available, get_frame_language):
11344 Replace throw_exception with throw.
11345 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11346 throw_exception with throw.
11347 * eval.c (fetch_subexp_value, evaluate_var_value)
11348 (evaluate_funcall, evaluate_subexp_standard): Replace
11349 throw_exception with throw.
11350 * dwarf2loc.c (call_site_find_chain)
11351 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11352 Replace throw_exception with throw.
11353 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11354 with throw.
11355 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11356 throw.
11357 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11358 * completer.c (complete_line_internal): Replace throw_exception
11359 with throw.
11360 * compile/compile-object-run.c (compile_object_run): Replace
11361 throw_exception with throw.
11362 * cli/cli-script.c (process_next_line): Replace throw_exception
11363 with throw.
11364 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11365 (btrace_enable, btrace_maint_update_pt_packets): Replace
11366 throw_exception with throw.
11367 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11368 throw_exception with throw.
11369 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11370 throw_exception with throw.
11371 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11372 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11373 * aarch64-tdep.c (aarch64_make_prologue_cache)
11374 (aarch64_make_stub_cache): Replace throw_exception with throw.
11375
26003a20
TT
113762019-04-08 Tom Tromey <tom@tromey.com>
11377
11378 * common/common-exceptions.c (throw_exception): Rename from
11379 throw_exception_cxx. Remove old copy. Make argument const.
11380 (throw_it): Create and throw exception objects directly.
11381 * common/common-exceptions.h (throw_exception): Make argument
11382 const.
11383 (struct gdb_exception_error): Add constructor.
11384 (struct gdb_exception_quit): Add constructor.
11385
d272eb37
TT
113862019-04-08 Tom Tromey <tom@tromey.com>
11387
11388 * common/common-exceptions.h (exception_rethrow): Don't declare.
11389 (TRY_SJLJ): Update comment.
11390 (TRY, CATCH, END_CATCH): Remove.
11391 * common/common-exceptions.c (exception_rethrow): Remove.
11392
230d2906
TT
113932019-04-08 Tom Tromey <tom@tromey.com>
11394
11395 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11396 Remove.
11397 (gdb_exception_error): Rename from
11398 gdb_exception_RETURN_MASK_ERROR.
11399 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11400 (gdb_quit_bad_alloc): Update.
11401 * aarch64-tdep.c: Update.
11402 * ada-lang.c: Update.
11403 * ada-typeprint.c: Update.
11404 * ada-valprint.c: Update.
11405 * amd64-tdep.c: Update.
11406 * arch-utils.c: Update.
11407 * break-catch-throw.c: Update.
11408 * breakpoint.c: Update.
11409 * btrace.c: Update.
11410 * c-varobj.c: Update.
11411 * cli/cli-cmds.c: Update.
11412 * cli/cli-interp.c: Update.
11413 * cli/cli-script.c: Update.
11414 * common/common-exceptions.c: Update.
11415 * common/new-op.c: Update.
11416 * common/selftest.c: Update.
11417 * compile/compile-c-symbols.c: Update.
11418 * compile/compile-cplus-symbols.c: Update.
11419 * compile/compile-object-load.c: Update.
11420 * compile/compile-object-run.c: Update.
11421 * completer.c: Update.
11422 * corelow.c: Update.
11423 * cp-abi.c: Update.
11424 * cp-support.c: Update.
11425 * cp-valprint.c: Update.
11426 * darwin-nat.c: Update.
11427 * disasm-selftests.c: Update.
11428 * dtrace-probe.c: Update.
11429 * dwarf-index-cache.c: Update.
11430 * dwarf-index-write.c: Update.
11431 * dwarf2-frame-tailcall.c: Update.
11432 * dwarf2-frame.c: Update.
11433 * dwarf2loc.c: Update.
11434 * dwarf2read.c: Update.
11435 * eval.c: Update.
11436 * event-loop.c: Update.
11437 * event-top.c: Update.
11438 * exec.c: Update.
11439 * f-valprint.c: Update.
11440 * fbsd-tdep.c: Update.
11441 * frame-unwind.c: Update.
11442 * frame.c: Update.
11443 * gdbtypes.c: Update.
11444 * gnu-v3-abi.c: Update.
11445 * guile/guile-internal.h: Update.
11446 * guile/scm-block.c: Update.
11447 * guile/scm-breakpoint.c: Update.
11448 * guile/scm-cmd.c: Update.
11449 * guile/scm-disasm.c: Update.
11450 * guile/scm-frame.c: Update.
11451 * guile/scm-lazy-string.c: Update.
11452 * guile/scm-math.c: Update.
11453 * guile/scm-param.c: Update.
11454 * guile/scm-ports.c: Update.
11455 * guile/scm-pretty-print.c: Update.
11456 * guile/scm-symbol.c: Update.
11457 * guile/scm-symtab.c: Update.
11458 * guile/scm-type.c: Update.
11459 * guile/scm-value.c: Update.
11460 * i386-linux-tdep.c: Update.
11461 * i386-tdep.c: Update.
11462 * inf-loop.c: Update.
11463 * infcall.c: Update.
11464 * infcmd.c: Update.
11465 * infrun.c: Update.
11466 * jit.c: Update.
11467 * language.c: Update.
11468 * linespec.c: Update.
11469 * linux-fork.c: Update.
11470 * linux-nat.c: Update.
11471 * linux-tdep.c: Update.
11472 * linux-thread-db.c: Update.
11473 * main.c: Update.
11474 * mi/mi-cmd-break.c: Update.
11475 * mi/mi-cmd-stack.c: Update.
11476 * mi/mi-interp.c: Update.
11477 * mi/mi-main.c: Update.
11478 * objc-lang.c: Update.
11479 * p-valprint.c: Update.
11480 * parse.c: Update.
11481 * ppc-linux-tdep.c: Update.
11482 * printcmd.c: Update.
11483 * python/py-arch.c: Update.
11484 * python/py-breakpoint.c: Update.
11485 * python/py-cmd.c: Update.
11486 * python/py-finishbreakpoint.c: Update.
11487 * python/py-frame.c: Update.
11488 * python/py-framefilter.c: Update.
11489 * python/py-gdb-readline.c: Update.
11490 * python/py-inferior.c: Update.
11491 * python/py-infthread.c: Update.
11492 * python/py-lazy-string.c: Update.
11493 * python/py-linetable.c: Update.
11494 * python/py-objfile.c: Update.
11495 * python/py-param.c: Update.
11496 * python/py-prettyprint.c: Update.
11497 * python/py-progspace.c: Update.
11498 * python/py-record-btrace.c: Update.
11499 * python/py-record.c: Update.
11500 * python/py-symbol.c: Update.
11501 * python/py-type.c: Update.
11502 * python/py-unwind.c: Update.
11503 * python/py-utils.c: Update.
11504 * python/py-value.c: Update.
11505 * python/python.c: Update.
11506 * record-btrace.c: Update.
11507 * record-full.c: Update.
11508 * remote-fileio.c: Update.
11509 * remote.c: Update.
11510 * riscv-tdep.c: Update.
11511 * rs6000-aix-tdep.c: Update.
11512 * rs6000-tdep.c: Update.
11513 * rust-exp.y: Update.
11514 * rust-lang.c: Update.
11515 * s390-tdep.c: Update.
11516 * selftest-arch.c: Update.
11517 * solib-dsbt.c: Update.
11518 * solib-frv.c: Update.
11519 * solib-spu.c: Update.
11520 * solib-svr4.c: Update.
11521 * solib.c: Update.
11522 * sparc64-linux-tdep.c: Update.
11523 * stack.c: Update.
11524 * symfile-mem.c: Update.
11525 * symmisc.c: Update.
11526 * target.c: Update.
11527 * thread.c: Update.
11528 * top.c: Update.
11529 * tracefile-tfile.c: Update.
11530 * tui/tui.c: Update.
11531 * typeprint.c: Update.
11532 * unittests/cli-utils-selftests.c: Update.
11533 * unittests/parse-connection-spec-selftests.c: Update.
11534 * valops.c: Update.
11535 * valprint.c: Update.
11536 * value.c: Update.
11537 * varobj.c: Update.
11538 * windows-nat.c: Update.
11539 * x86-linux-nat.c: Update.
11540 * xml-support.c: Update.
11541
a70b8144
TT
115422019-04-08 Tom Tromey <tom@tromey.com>
11543
11544 * xml-support.c: Use C++ exception handling.
11545 * x86-linux-nat.c: Use C++ exception handling.
11546 * windows-nat.c: Use C++ exception handling.
11547 * varobj.c: Use C++ exception handling.
11548 * value.c: Use C++ exception handling.
11549 * valprint.c: Use C++ exception handling.
11550 * valops.c: Use C++ exception handling.
11551 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11552 handling.
11553 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11554 * typeprint.c: Use C++ exception handling.
11555 * tui/tui.c: Use C++ exception handling.
11556 * tracefile-tfile.c: Use C++ exception handling.
11557 * top.c: Use C++ exception handling.
11558 * thread.c: Use C++ exception handling.
11559 * target.c: Use C++ exception handling.
11560 * symmisc.c: Use C++ exception handling.
11561 * symfile-mem.c: Use C++ exception handling.
11562 * stack.c: Use C++ exception handling.
11563 * sparc64-linux-tdep.c: Use C++ exception handling.
11564 * solib.c: Use C++ exception handling.
11565 * solib-svr4.c: Use C++ exception handling.
11566 * solib-spu.c: Use C++ exception handling.
11567 * solib-frv.c: Use C++ exception handling.
11568 * solib-dsbt.c: Use C++ exception handling.
11569 * selftest-arch.c: Use C++ exception handling.
11570 * s390-tdep.c: Use C++ exception handling.
11571 * rust-lang.c: Use C++ exception handling.
11572 * rust-exp.y: Use C++ exception handling.
11573 * rs6000-tdep.c: Use C++ exception handling.
11574 * rs6000-aix-tdep.c: Use C++ exception handling.
11575 * riscv-tdep.c: Use C++ exception handling.
11576 * remote.c: Use C++ exception handling.
11577 * remote-fileio.c: Use C++ exception handling.
11578 * record-full.c: Use C++ exception handling.
11579 * record-btrace.c: Use C++ exception handling.
11580 * python/python.c: Use C++ exception handling.
11581 * python/py-value.c: Use C++ exception handling.
11582 * python/py-utils.c: Use C++ exception handling.
11583 * python/py-unwind.c: Use C++ exception handling.
11584 * python/py-type.c: Use C++ exception handling.
11585 * python/py-symbol.c: Use C++ exception handling.
11586 * python/py-record.c: Use C++ exception handling.
11587 * python/py-record-btrace.c: Use C++ exception handling.
11588 * python/py-progspace.c: Use C++ exception handling.
11589 * python/py-prettyprint.c: Use C++ exception handling.
11590 * python/py-param.c: Use C++ exception handling.
11591 * python/py-objfile.c: Use C++ exception handling.
11592 * python/py-linetable.c: Use C++ exception handling.
11593 * python/py-lazy-string.c: Use C++ exception handling.
11594 * python/py-infthread.c: Use C++ exception handling.
11595 * python/py-inferior.c: Use C++ exception handling.
11596 * python/py-gdb-readline.c: Use C++ exception handling.
11597 * python/py-framefilter.c: Use C++ exception handling.
11598 * python/py-frame.c: Use C++ exception handling.
11599 * python/py-finishbreakpoint.c: Use C++ exception handling.
11600 * python/py-cmd.c: Use C++ exception handling.
11601 * python/py-breakpoint.c: Use C++ exception handling.
11602 * python/py-arch.c: Use C++ exception handling.
11603 * printcmd.c: Use C++ exception handling.
11604 * ppc-linux-tdep.c: Use C++ exception handling.
11605 * parse.c: Use C++ exception handling.
11606 * p-valprint.c: Use C++ exception handling.
11607 * objc-lang.c: Use C++ exception handling.
11608 * mi/mi-main.c: Use C++ exception handling.
11609 * mi/mi-interp.c: Use C++ exception handling.
11610 * mi/mi-cmd-stack.c: Use C++ exception handling.
11611 * mi/mi-cmd-break.c: Use C++ exception handling.
11612 * main.c: Use C++ exception handling.
11613 * linux-thread-db.c: Use C++ exception handling.
11614 * linux-tdep.c: Use C++ exception handling.
11615 * linux-nat.c: Use C++ exception handling.
11616 * linux-fork.c: Use C++ exception handling.
11617 * linespec.c: Use C++ exception handling.
11618 * language.c: Use C++ exception handling.
11619 * jit.c: Use C++ exception handling.
11620 * infrun.c: Use C++ exception handling.
11621 * infcmd.c: Use C++ exception handling.
11622 * infcall.c: Use C++ exception handling.
11623 * inf-loop.c: Use C++ exception handling.
11624 * i386-tdep.c: Use C++ exception handling.
11625 * i386-linux-tdep.c: Use C++ exception handling.
11626 * guile/scm-value.c: Use C++ exception handling.
11627 * guile/scm-type.c: Use C++ exception handling.
11628 * guile/scm-symtab.c: Use C++ exception handling.
11629 * guile/scm-symbol.c: Use C++ exception handling.
11630 * guile/scm-pretty-print.c: Use C++ exception handling.
11631 * guile/scm-ports.c: Use C++ exception handling.
11632 * guile/scm-param.c: Use C++ exception handling.
11633 * guile/scm-math.c: Use C++ exception handling.
11634 * guile/scm-lazy-string.c: Use C++ exception handling.
11635 * guile/scm-frame.c: Use C++ exception handling.
11636 * guile/scm-disasm.c: Use C++ exception handling.
11637 * guile/scm-cmd.c: Use C++ exception handling.
11638 * guile/scm-breakpoint.c: Use C++ exception handling.
11639 * guile/scm-block.c: Use C++ exception handling.
11640 * guile/guile-internal.h: Use C++ exception handling.
11641 * gnu-v3-abi.c: Use C++ exception handling.
11642 * gdbtypes.c: Use C++ exception handling.
11643 * frame.c: Use C++ exception handling.
11644 * frame-unwind.c: Use C++ exception handling.
11645 * fbsd-tdep.c: Use C++ exception handling.
11646 * f-valprint.c: Use C++ exception handling.
11647 * exec.c: Use C++ exception handling.
11648 * event-top.c: Use C++ exception handling.
11649 * event-loop.c: Use C++ exception handling.
11650 * eval.c: Use C++ exception handling.
11651 * dwarf2read.c: Use C++ exception handling.
11652 * dwarf2loc.c: Use C++ exception handling.
11653 * dwarf2-frame.c: Use C++ exception handling.
11654 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11655 * dwarf-index-write.c: Use C++ exception handling.
11656 * dwarf-index-cache.c: Use C++ exception handling.
11657 * dtrace-probe.c: Use C++ exception handling.
11658 * disasm-selftests.c: Use C++ exception handling.
11659 * darwin-nat.c: Use C++ exception handling.
11660 * cp-valprint.c: Use C++ exception handling.
11661 * cp-support.c: Use C++ exception handling.
11662 * cp-abi.c: Use C++ exception handling.
11663 * corelow.c: Use C++ exception handling.
11664 * completer.c: Use C++ exception handling.
11665 * compile/compile-object-run.c: Use C++ exception handling.
11666 * compile/compile-object-load.c: Use C++ exception handling.
11667 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11668 * compile/compile-c-symbols.c: Use C++ exception handling.
11669 * common/selftest.c: Use C++ exception handling.
11670 * common/new-op.c: Use C++ exception handling.
11671 * cli/cli-script.c: Use C++ exception handling.
11672 * cli/cli-interp.c: Use C++ exception handling.
11673 * cli/cli-cmds.c: Use C++ exception handling.
11674 * c-varobj.c: Use C++ exception handling.
11675 * btrace.c: Use C++ exception handling.
11676 * breakpoint.c: Use C++ exception handling.
11677 * break-catch-throw.c: Use C++ exception handling.
11678 * arch-utils.c: Use C++ exception handling.
11679 * amd64-tdep.c: Use C++ exception handling.
11680 * ada-valprint.c: Use C++ exception handling.
11681 * ada-typeprint.c: Use C++ exception handling.
11682 * ada-lang.c: Use C++ exception handling.
11683 * aarch64-tdep.c: Use C++ exception handling.
11684
3d6e9d23
TT
116852019-04-08 Tom Tromey <tom@tromey.com>
11686
11687 * xml-support.c (gdb_xml_parser::parse): Update.
11688 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11689 * value.c (show_convenience): Update.
11690 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11691 (test_parse_flags_qcs): Update.
11692 * thread.c (thr_try_catch_cmd): Update.
11693 * target.c (target_translate_tls_address): Update.
11694 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11695 (info_frame_command_core, frame_apply_command_count): Update.
11696 * rust-exp.y (rust_lex_exception_test): Update.
11697 * riscv-tdep.c (riscv_print_one_register_info): Update.
11698 * remote.c (remote_target::enable_btrace): Update.
11699 * record-btrace.c (record_btrace_enable_warn): Update.
11700 * python/py-utils.c (gdbpy_convert_exception): Update.
11701 * printcmd.c (do_one_display, print_variable_and_value): Update.
11702 * mi/mi-main.c (mi_print_exception): Update.
11703 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11704 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11705 * linux-nat.c (linux_nat_target::attach): Update.
11706 * linux-fork.c (class scoped_switch_fork_info): Update.
11707 * infrun.c (displaced_step_prepare): Update.
11708 * infcall.c (call_function_by_hand_dummy): Update.
11709 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11710 * gnu-v3-abi.c (print_one_vtable): Update.
11711 * frame.c (get_prev_frame_always): Update.
11712 * f-valprint.c (info_common_command_for_block): Update.
11713 * exec.c (try_open_exec_file): Update.
11714 * exceptions.c (print_exception, exception_print)
11715 (exception_fprintf, exception_print_same): Update.
11716 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11717 * dwarf-index-cache.c (index_cache::store)
11718 (index_cache::lookup_gdb_index): Update.
11719 * darwin-nat.c (maybe_cache_shell): Update.
11720 * cp-valprint.c (cp_print_value_fields): Update.
11721 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11722 (gcc_cplus_symbol_address): Update.
11723 * compile/compile-c-symbols.c (gcc_convert_symbol)
11724 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11725 * common/selftest.c: Update.
11726 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11727 a std::string.
11728 (exception_try_scope_entry, exception_try_scope_exit): Don't
11729 declare.
11730 (struct exception_try_scope): Remove.
11731 (TRY): Don't use exception_try_scope.
11732 (struct gdb_exception): Add constructor, operator=.
11733 <what>: New method.
11734 (struct gdb_exception_RETURN_MASK_ALL)
11735 (struct gdb_exception_RETURN_MASK_ERROR)
11736 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11737 (struct gdb_quit_bad_alloc): Update.
11738 * common/common-exceptions.c (exception_none): Change
11739 initializer.
11740 (struct catcher) <state, exception>: Initialize inline.
11741 <prev>: Remove member.
11742 (current_catcher): Remove.
11743 (catchers): New global.
11744 (exceptions_state_mc_init): Simplify.
11745 (catcher_pop): Remove.
11746 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11747 (try_scope_depth, exception_try_scope_entry)
11748 (exception_try_scope_exit): Remove.
11749 (throw_exception_sjlj): Update.
11750 (exception_messages, exception_messages_size): Remove.
11751 (throw_it): Simplify.
11752 (gdb_exception_sliced_copy): Remove.
11753 (throw_exception_cxx): Update.
11754 * cli/cli-script.c (script_from_file): Update.
11755 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11756 Update.
11757 * ada-valprint.c (ada_val_print): Update.
11758 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11759 (create_excep_cond_exprs): Update.
11760
c5c10118
TT
117612019-04-08 Tom Tromey <tom@tromey.com>
11762
11763 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11764 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11765 (TRY, CATCH, END_CATCH): Remove some definitions.
11766 * common/common-exceptions.c: Don't use GDB_XCPT.
11767 (catcher_list_size): Remove.
11768 (throw_exception, throw_it): Simplify.
11769
4de283e4
TT
117702019-04-05 Tom Tromey <tom@tromey.com>
11771
11772 Revert the header-sorting patch.
11773 * ft32-tdep.c: Revert.
11774 * frv-tdep.c: Revert.
11775 * frv-linux-tdep.c: Revert.
11776 * frame.c: Revert.
11777 * frame-unwind.c: Revert.
11778 * frame-base.c: Revert.
11779 * fork-child.c: Revert.
11780 * findvar.c: Revert.
11781 * findcmd.c: Revert.
11782 * filesystem.c: Revert.
11783 * filename-seen-cache.h: Revert.
11784 * filename-seen-cache.c: Revert.
11785 * fbsd-tdep.c: Revert.
11786 * fbsd-nat.h: Revert.
11787 * fbsd-nat.c: Revert.
11788 * f-valprint.c: Revert.
11789 * f-typeprint.c: Revert.
11790 * f-lang.c: Revert.
11791 * extension.h: Revert.
11792 * extension.c: Revert.
11793 * extension-priv.h: Revert.
11794 * expprint.c: Revert.
11795 * exec.h: Revert.
11796 * exec.c: Revert.
11797 * exceptions.c: Revert.
11798 * event-top.c: Revert.
11799 * event-loop.c: Revert.
11800 * eval.c: Revert.
11801 * elfread.c: Revert.
11802 * dwarf2read.h: Revert.
11803 * dwarf2read.c: Revert.
11804 * dwarf2loc.c: Revert.
11805 * dwarf2expr.h: Revert.
11806 * dwarf2expr.c: Revert.
11807 * dwarf2-frame.c: Revert.
11808 * dwarf2-frame-tailcall.c: Revert.
11809 * dwarf-index-write.h: Revert.
11810 * dwarf-index-write.c: Revert.
11811 * dwarf-index-common.c: Revert.
11812 * dwarf-index-cache.h: Revert.
11813 * dwarf-index-cache.c: Revert.
11814 * dummy-frame.c: Revert.
11815 * dtrace-probe.c: Revert.
11816 * disasm.h: Revert.
11817 * disasm.c: Revert.
11818 * disasm-selftests.c: Revert.
11819 * dictionary.c: Revert.
11820 * dicos-tdep.c: Revert.
11821 * demangle.c: Revert.
11822 * dcache.h: Revert.
11823 * dcache.c: Revert.
11824 * darwin-nat.h: Revert.
11825 * darwin-nat.c: Revert.
11826 * darwin-nat-info.c: Revert.
11827 * d-valprint.c: Revert.
11828 * d-namespace.c: Revert.
11829 * d-lang.c: Revert.
11830 * ctf.c: Revert.
11831 * csky-tdep.c: Revert.
11832 * csky-linux-tdep.c: Revert.
11833 * cris-tdep.c: Revert.
11834 * cris-linux-tdep.c: Revert.
11835 * cp-valprint.c: Revert.
11836 * cp-support.c: Revert.
11837 * cp-namespace.c: Revert.
11838 * cp-abi.c: Revert.
11839 * corelow.c: Revert.
11840 * corefile.c: Revert.
11841 * continuations.c: Revert.
11842 * completer.h: Revert.
11843 * completer.c: Revert.
11844 * complaints.c: Revert.
11845 * coffread.c: Revert.
11846 * coff-pe-read.c: Revert.
11847 * cli-out.h: Revert.
11848 * cli-out.c: Revert.
11849 * charset.c: Revert.
11850 * c-varobj.c: Revert.
11851 * c-valprint.c: Revert.
11852 * c-typeprint.c: Revert.
11853 * c-lang.c: Revert.
11854 * buildsym.c: Revert.
11855 * buildsym-legacy.c: Revert.
11856 * build-id.h: Revert.
11857 * build-id.c: Revert.
11858 * btrace.c: Revert.
11859 * bsd-uthread.c: Revert.
11860 * breakpoint.h: Revert.
11861 * breakpoint.c: Revert.
11862 * break-catch-throw.c: Revert.
11863 * break-catch-syscall.c: Revert.
11864 * break-catch-sig.c: Revert.
11865 * blockframe.c: Revert.
11866 * block.c: Revert.
11867 * bfin-tdep.c: Revert.
11868 * bfin-linux-tdep.c: Revert.
11869 * bfd-target.c: Revert.
11870 * bcache.c: Revert.
11871 * ax-general.c: Revert.
11872 * ax-gdb.h: Revert.
11873 * ax-gdb.c: Revert.
11874 * avr-tdep.c: Revert.
11875 * auxv.c: Revert.
11876 * auto-load.c: Revert.
11877 * arm-wince-tdep.c: Revert.
11878 * arm-tdep.c: Revert.
11879 * arm-symbian-tdep.c: Revert.
11880 * arm-pikeos-tdep.c: Revert.
11881 * arm-obsd-tdep.c: Revert.
11882 * arm-nbsd-tdep.c: Revert.
11883 * arm-nbsd-nat.c: Revert.
11884 * arm-linux-tdep.c: Revert.
11885 * arm-linux-nat.c: Revert.
11886 * arm-fbsd-tdep.c: Revert.
11887 * arm-fbsd-nat.c: Revert.
11888 * arm-bsd-tdep.c: Revert.
11889 * arch-utils.c: Revert.
11890 * arc-tdep.c: Revert.
11891 * arc-newlib-tdep.c: Revert.
11892 * annotate.h: Revert.
11893 * annotate.c: Revert.
11894 * amd64-windows-tdep.c: Revert.
11895 * amd64-windows-nat.c: Revert.
11896 * amd64-tdep.c: Revert.
11897 * amd64-sol2-tdep.c: Revert.
11898 * amd64-obsd-tdep.c: Revert.
11899 * amd64-obsd-nat.c: Revert.
11900 * amd64-nbsd-tdep.c: Revert.
11901 * amd64-nbsd-nat.c: Revert.
11902 * amd64-nat.c: Revert.
11903 * amd64-linux-tdep.c: Revert.
11904 * amd64-linux-nat.c: Revert.
11905 * amd64-fbsd-tdep.c: Revert.
11906 * amd64-fbsd-nat.c: Revert.
11907 * amd64-dicos-tdep.c: Revert.
11908 * amd64-darwin-tdep.c: Revert.
11909 * amd64-bsd-nat.c: Revert.
11910 * alpha-tdep.c: Revert.
11911 * alpha-obsd-tdep.c: Revert.
11912 * alpha-nbsd-tdep.c: Revert.
11913 * alpha-mdebug-tdep.c: Revert.
11914 * alpha-linux-tdep.c: Revert.
11915 * alpha-linux-nat.c: Revert.
11916 * alpha-bsd-tdep.c: Revert.
11917 * alpha-bsd-nat.c: Revert.
11918 * aix-thread.c: Revert.
11919 * agent.c: Revert.
11920 * addrmap.c: Revert.
11921 * ada-varobj.c: Revert.
11922 * ada-valprint.c: Revert.
11923 * ada-typeprint.c: Revert.
11924 * ada-tasks.c: Revert.
11925 * ada-lang.c: Revert.
11926 * aarch64-tdep.c: Revert.
11927 * aarch64-ravenscar-thread.c: Revert.
11928 * aarch64-newlib-tdep.c: Revert.
11929 * aarch64-linux-tdep.c: Revert.
11930 * aarch64-linux-nat.c: Revert.
11931 * aarch64-fbsd-tdep.c: Revert.
11932 * aarch64-fbsd-nat.c: Revert.
11933 * aarch32-linux-nat.c: Revert.
11934
d55e5aa6
TT
119352019-04-05 Tom Tromey <tom@tromey.com>
11936
11937 * ft32-tdep.c: Sort headers.
11938 * frv-tdep.c: Sort headers.
11939 * frv-linux-tdep.c: Sort headers.
11940 * frame.c: Sort headers.
11941 * frame-unwind.c: Sort headers.
11942 * frame-base.c: Sort headers.
11943 * fork-child.c: Sort headers.
11944 * findvar.c: Sort headers.
11945 * findcmd.c: Sort headers.
11946 * filesystem.c: Sort headers.
11947 * filename-seen-cache.h: Sort headers.
11948 * filename-seen-cache.c: Sort headers.
11949 * fbsd-tdep.c: Sort headers.
11950 * fbsd-nat.h: Sort headers.
11951 * fbsd-nat.c: Sort headers.
11952 * f-valprint.c: Sort headers.
11953 * f-typeprint.c: Sort headers.
11954 * f-lang.c: Sort headers.
11955 * extension.h: Sort headers.
11956 * extension.c: Sort headers.
11957 * extension-priv.h: Sort headers.
11958 * expprint.c: Sort headers.
11959 * exec.h: Sort headers.
11960 * exec.c: Sort headers.
11961 * exceptions.c: Sort headers.
11962 * event-top.c: Sort headers.
11963 * event-loop.c: Sort headers.
11964 * eval.c: Sort headers.
11965 * elfread.c: Sort headers.
11966 * dwarf2read.h: Sort headers.
11967 * dwarf2read.c: Sort headers.
11968 * dwarf2loc.c: Sort headers.
11969 * dwarf2expr.h: Sort headers.
11970 * dwarf2expr.c: Sort headers.
11971 * dwarf2-frame.c: Sort headers.
11972 * dwarf2-frame-tailcall.c: Sort headers.
11973 * dwarf-index-write.h: Sort headers.
11974 * dwarf-index-write.c: Sort headers.
11975 * dwarf-index-common.c: Sort headers.
11976 * dwarf-index-cache.h: Sort headers.
11977 * dwarf-index-cache.c: Sort headers.
11978 * dummy-frame.c: Sort headers.
11979 * dtrace-probe.c: Sort headers.
11980 * disasm.h: Sort headers.
11981 * disasm.c: Sort headers.
11982 * disasm-selftests.c: Sort headers.
11983 * dictionary.c: Sort headers.
11984 * dicos-tdep.c: Sort headers.
11985 * demangle.c: Sort headers.
11986 * dcache.h: Sort headers.
11987 * dcache.c: Sort headers.
11988 * darwin-nat.h: Sort headers.
11989 * darwin-nat.c: Sort headers.
11990 * darwin-nat-info.c: Sort headers.
11991 * d-valprint.c: Sort headers.
11992 * d-namespace.c: Sort headers.
11993 * d-lang.c: Sort headers.
11994 * ctf.c: Sort headers.
11995 * csky-tdep.c: Sort headers.
11996 * csky-linux-tdep.c: Sort headers.
11997 * cris-tdep.c: Sort headers.
11998 * cris-linux-tdep.c: Sort headers.
11999 * cp-valprint.c: Sort headers.
12000 * cp-support.c: Sort headers.
12001 * cp-namespace.c: Sort headers.
12002 * cp-abi.c: Sort headers.
12003 * corelow.c: Sort headers.
12004 * corefile.c: Sort headers.
12005 * continuations.c: Sort headers.
12006 * completer.h: Sort headers.
12007 * completer.c: Sort headers.
12008 * complaints.c: Sort headers.
12009 * coffread.c: Sort headers.
12010 * coff-pe-read.c: Sort headers.
12011 * cli-out.h: Sort headers.
12012 * cli-out.c: Sort headers.
12013 * charset.c: Sort headers.
12014 * c-varobj.c: Sort headers.
12015 * c-valprint.c: Sort headers.
12016 * c-typeprint.c: Sort headers.
12017 * c-lang.c: Sort headers.
12018 * buildsym.c: Sort headers.
12019 * buildsym-legacy.c: Sort headers.
12020 * build-id.h: Sort headers.
12021 * build-id.c: Sort headers.
12022 * btrace.c: Sort headers.
12023 * bsd-uthread.c: Sort headers.
12024 * breakpoint.h: Sort headers.
12025 * breakpoint.c: Sort headers.
12026 * break-catch-throw.c: Sort headers.
12027 * break-catch-syscall.c: Sort headers.
12028 * break-catch-sig.c: Sort headers.
12029 * blockframe.c: Sort headers.
12030 * block.c: Sort headers.
12031 * bfin-tdep.c: Sort headers.
12032 * bfin-linux-tdep.c: Sort headers.
12033 * bfd-target.c: Sort headers.
12034 * bcache.c: Sort headers.
12035 * ax-general.c: Sort headers.
12036 * ax-gdb.h: Sort headers.
12037 * ax-gdb.c: Sort headers.
12038 * avr-tdep.c: Sort headers.
12039 * auxv.c: Sort headers.
12040 * auto-load.c: Sort headers.
12041 * arm-wince-tdep.c: Sort headers.
12042 * arm-tdep.c: Sort headers.
12043 * arm-symbian-tdep.c: Sort headers.
12044 * arm-pikeos-tdep.c: Sort headers.
12045 * arm-obsd-tdep.c: Sort headers.
12046 * arm-nbsd-tdep.c: Sort headers.
12047 * arm-nbsd-nat.c: Sort headers.
12048 * arm-linux-tdep.c: Sort headers.
12049 * arm-linux-nat.c: Sort headers.
12050 * arm-fbsd-tdep.c: Sort headers.
12051 * arm-fbsd-nat.c: Sort headers.
12052 * arm-bsd-tdep.c: Sort headers.
12053 * arch-utils.c: Sort headers.
12054 * arc-tdep.c: Sort headers.
12055 * arc-newlib-tdep.c: Sort headers.
12056 * annotate.h: Sort headers.
12057 * annotate.c: Sort headers.
12058 * amd64-windows-tdep.c: Sort headers.
12059 * amd64-windows-nat.c: Sort headers.
12060 * amd64-tdep.c: Sort headers.
12061 * amd64-sol2-tdep.c: Sort headers.
12062 * amd64-obsd-tdep.c: Sort headers.
12063 * amd64-obsd-nat.c: Sort headers.
12064 * amd64-nbsd-tdep.c: Sort headers.
12065 * amd64-nbsd-nat.c: Sort headers.
12066 * amd64-nat.c: Sort headers.
12067 * amd64-linux-tdep.c: Sort headers.
12068 * amd64-linux-nat.c: Sort headers.
12069 * amd64-fbsd-tdep.c: Sort headers.
12070 * amd64-fbsd-nat.c: Sort headers.
12071 * amd64-dicos-tdep.c: Sort headers.
12072 * amd64-darwin-tdep.c: Sort headers.
12073 * amd64-bsd-nat.c: Sort headers.
12074 * alpha-tdep.c: Sort headers.
12075 * alpha-obsd-tdep.c: Sort headers.
12076 * alpha-nbsd-tdep.c: Sort headers.
12077 * alpha-mdebug-tdep.c: Sort headers.
12078 * alpha-linux-tdep.c: Sort headers.
12079 * alpha-linux-nat.c: Sort headers.
12080 * alpha-bsd-tdep.c: Sort headers.
12081 * alpha-bsd-nat.c: Sort headers.
12082 * aix-thread.c: Sort headers.
12083 * agent.c: Sort headers.
12084 * addrmap.c: Sort headers.
12085 * ada-varobj.c: Sort headers.
12086 * ada-valprint.c: Sort headers.
12087 * ada-typeprint.c: Sort headers.
12088 * ada-tasks.c: Sort headers.
12089 * ada-lang.c: Sort headers.
12090 * aarch64-tdep.c: Sort headers.
12091 * aarch64-ravenscar-thread.c: Sort headers.
12092 * aarch64-newlib-tdep.c: Sort headers.
12093 * aarch64-linux-tdep.c: Sort headers.
12094 * aarch64-linux-nat.c: Sort headers.
12095 * aarch64-fbsd-tdep.c: Sort headers.
12096 * aarch64-fbsd-nat.c: Sort headers.
12097 * aarch32-linux-nat.c: Sort headers.
12098
699bd4cf
TT
120992019-04-04 Tom Tromey <tom@tromey.com>
12100
12101 * varobj.c (varobj_create): Update.
12102 * rust-exp.y (struct rust_parser) <update_innermost_block,
12103 lookup_symbol>: New methods.
12104 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12105 Rename.
12106 (rust_parser::rust_lookup_type)
12107 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12108 * printcmd.c (display_command, do_one_display): Update.
12109 * parser-defs.h (struct parser_state) <parser_state>: Add
12110 "tracker" parameter.
12111 (block_tracker): New member.
12112 (class innermost_block_tracker) <innermost_block_tracker>: Add
12113 "types" parameter.
12114 <reset>: Remove method.
12115 (innermost_block): Don't declare.
12116 (null_post_parser): Update.
12117 * parse.c (innermost_block): Remove global.
12118 (write_dollar_variable): Update.
12119 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12120 Remove "tracker_types" parameter.
12121 (parse_expression): Add "tracker" parameter.
12122 (parse_expression_for_completion): Update.
12123 (null_post_parser): Add "tracker" parameter.
12124 * p-exp.y: Update rules.
12125 * m2-exp.y: Update rules.
12126 * language.h (struct language_defn) <la_post_parser>: Add
12127 "tracker" parameter.
12128 * go-exp.y: Update rules.
12129 * f-exp.y: Update rules.
12130 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12131 parameter.
12132 * d-exp.y: Update rules.
12133 * c-exp.y: Update rules.
12134 * breakpoint.c (set_breakpoint_condition): Create an
12135 innermost_block_tracker.
12136 (watch_command_1): Likewise.
12137 * ada-lang.c (resolve): Add "tracker" parameter.
12138 (resolve_subexp): Likewise.
12139 * ada-exp.y (write_var_from_sym): Update.
12140
dac43e32
TT
121412019-04-04 Tom Tromey <tom@tromey.com>
12142
12143 * type-stack.h: New file.
12144 * type-stack.c: New file.
12145 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12146 type-stack.h.
12147 (insert_into_type_stack, insert_type, push_type, push_type_int)
12148 (insert_type_address_space, pop_type, pop_type_int)
12149 (pop_typelist, pop_type_stack, append_type_stack)
12150 (push_type_stack, get_type_stack, push_typelist)
12151 (follow_type_instance_flags, follow_types): Don't declare.
12152 * parse.c (type_stack): Remove global.
12153 (parse_exp_in_context): Update.
12154 (insert_into_type_stack, insert_type, push_type, push_type_int)
12155 (insert_type_address_space, pop_type, pop_type_int)
12156 (pop_typelist, pop_type_stack, append_type_stack)
12157 (push_type_stack, get_type_stack, push_typelist)
12158 (follow_type_instance_flags, follow_types): Remove (moved to
12159 type-stack.c).
12160 * f-exp.y (type_stack): New global.
12161 Update rules.
12162 (push_kind_type, f_parse): Update.
12163 * d-exp.y (type_stack): New global.
12164 Update rules.
12165 (d_parse): Update.
12166 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12167 Update rules.
12168 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12169 (HFILES_NO_SRCDIR): Add type-stack.h.
12170
2a612529
TT
121712019-04-04 Tom Tromey <tom@tromey.com>
12172
12173 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12174 (rust_parser::convert_ast_to_expression, rust_parse)
12175 (rust_lex_test_completion, rust_lex_tests): Update.
12176 * parser-defs.h (struct expr_completion_state): New.
12177 (struct parser_state) <parser_state>: Add completion parameter.
12178 <mark_struct_expression, mark_completion_tag>: New methods.
12179 <parse_completion, m_completion_state>: New members.
12180 (prefixify_expression, null_post_parser): Update.
12181 (mark_struct_expression, mark_completion_tag): Don't declare.
12182 * parse.c (parse_completion, expout_last_struct)
12183 (expout_tag_completion_type, expout_completion_name): Remove
12184 globals.
12185 (parser_state::mark_struct_expression)
12186 (parser_state::mark_completion_tag): Now methods.
12187 (prefixify_expression): Add last_struct parameter.
12188 (prefixify_subexp): Likewise.
12189 (parse_exp_1): Update.
12190 (parse_exp_in_context): Add cstate parameter. Update.
12191 (parse_expression_for_completion): Create an
12192 expr_completion_state.
12193 (null_post_parser): Add "completion" parameter.
12194 * p-exp.y: Update rules.
12195 (yylex): Update.
12196 * language.h (struct language_defn) <la_post_parser>: Add
12197 "completing" parameter.
12198 * go-exp.y: Update rules.
12199 (lex_one_token): Update.
12200 * expression.h (parse_completion): Don't declare.
12201 * d-exp.y: Update rules.
12202 (lex_one_token): Update rules.
12203 * c-exp.y: Update rules.
12204 (lex_one_token): Update.
12205 * ada-lang.c (resolve): Add "parse_completion" parameter.
12206 (resolve_subexp): Likewise.
12207 (ada_resolve_function): Likewise.
12208
43476f0b
TT
122092019-04-04 Tom Tromey <tom@tromey.com>
12210
12211 * parser-defs.h (struct parser_state) <start_arglist,
12212 end_arglist>: New methods.
12213 <arglist_len, m_funcall_chain>: New members.
12214 (arglist_len, start_arglist, end_arglist): Don't declare.
12215 * parse.c (arglist_len, funcall_chain): Remove global.
12216 (start_arglist, end_arglist): Remove functions.
12217 (parse_exp_in_context): Update.
12218 * p-exp.y: Update rules.
12219 * m2-exp.y: Update rules.
12220 * go-exp.y: Update rules.
12221 * f-exp.y: Update rules.
12222 * d-exp.y: Update rules.
12223 * c-exp.y: Update rules.
12224
5776fca3
TT
122252019-04-04 Tom Tromey <tom@tromey.com>
12226
12227 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12228 lex_operator, push_back>: New methods.
12229 Update all rules.
12230 (rust_parser::lex_hex, lex_escape): Rename and update.
12231 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12232 (rust_parser::lex_operator): Rename and update.
12233 (rust_parser::lex_number, rustyylex, rustyyerror)
12234 (rust_lex_test_init, rust_lex_test_sequence)
12235 (rust_lex_test_push_back, rust_lex_tests): Update.
12236 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12237 parameter.
12238 <lexptr, prev_lexptr>: New members.
12239 (lexptr, prev_lexptr): Don't declare.
12240 * parse.c (lexptr, prev_lexptr): Remove globals.
12241 (parse_exp_in_context): Update.
12242 * p-exp.y (yylex, yyerror): Update.
12243 * m2-exp.y (parse_number, yylex, yyerror): Update.
12244 * go-exp.y (lex_one_token, yyerror): Update.
12245 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12246 * d-exp.y (lex_one_token, yyerror): Update.
12247 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12248 (lex_one_token, yyerror): Update.
12249 * ada-lex.l (YY_INPUT): Update.
12250 (rewind_to_char): Update.
12251 * ada-exp.y (yyerror): Update.
12252
8621b685
TT
122532019-04-04 Tom Tromey <tom@tromey.com>
12254
12255 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12256 * parser-defs.h (struct parser_state) <parser_state>: Add new
12257 parameter.
12258 <comma_terminates>: New member.
12259 (comma_terminates): Don't declare global.
12260 * parse.c (comma_terminates): Remove global.
12261 (parse_exp_in_context): Update.
12262 * p-exp.y (yylex): Update.
12263 * m2-exp.y (yylex): Update.
12264 * go-exp.y (lex_one_token): Update.
12265 * f-exp.y (yylex): Update.
12266 * d-exp.y (lex_one_token): Update.
12267 * c-exp.y (lex_one_token): Update.
12268 * ada-lex.l: Update.
12269
28aaf3fd
TT
122702019-04-04 Tom Tromey <tom@tromey.com>
12271
12272 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12273 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12274 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12275 * parser-defs.h (paren_depth): Don't declare.
12276 * parse.c (paren_depth): Remove global.
12277 (parse_exp_in_context): Update.
12278 * p-exp.y (paren_depth): New global.
12279 (pascal_parse): Initialize it.
12280 * m2-exp.y (paren_depth): New global.
12281 (m2_parse): Initialize it.
12282 * go-exp.y (paren_depth): New global.
12283 (go_parse): Initialize it.
12284 * f-exp.y (paren_depth): New global.
12285 (f_parse): Initialize it.
12286 * d-exp.y (paren_depth): New global.
12287 (d_parse): Initialize it.
12288 * c-exp.y (paren_depth): New global.
12289 (c_parse): Initialize it.
12290 * ada-lex.l (paren_depth): New global.
12291 (lexer_init): Initialize it.
12292
1e58a4a4
TT
122932019-04-04 Tom Tromey <tom@tromey.com>
12294
12295 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12296 (rust_parser::convert_ast_to_type)
12297 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12298 * parser-defs.h (struct parser_state) <parser_state>: Add
12299 parameters. Initialize new members.
12300 <expression_context_block, expression_context_pc>: New members.
12301 * parse.c (expression_context_block, expression_context_pc):
12302 Remove globals.
12303 (parse_exp_in_context): Update.
12304 * p-exp.y: Update all rules.
12305 (yylex): Update.
12306 * m2-exp.y: Update all rules.
12307 (yylex): Update.
12308 * go-exp.y (yylex): Update.
12309 * f-exp.y (yylex): Update.
12310 * d-exp.y: Update all rules.
12311 (yylex): Update.
12312 * c-exp.y: Update all rules.
12313 (lex_one_token, classify_name, yylex, c_parse): Update.
12314 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12315
37eedb39
TT
123162019-04-04 Tom Tromey <tom@tromey.com>
12317
12318 * gdbarch.h, gdbarch.c: Rebuild.
12319 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12320 * stap-probe.h:
12321 (struct stap_parse_info): Replace "parser_state" with
12322 "expr_builder".
12323 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12324 (parser_state): New class.
12325 * parse.c (expr_builder): Rename.
12326 (expr_builder::release): Rename.
12327 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12328 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12329 (write_exp_elt_longcst, write_exp_elt_floatcst)
12330 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12331 (write_exp_string_vector, write_exp_bitstring)
12332 (write_exp_msymbol, mark_struct_expression)
12333 (write_dollar_variable)
12334 (insert_type_address_space, increase_expout_size): Replace
12335 "parser_state" with "expr_builder".
12336 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12337 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12338 "parser_state" with "expr_builder".
12339
73923d7e
TT
123402019-04-04 Tom Tromey <tom@tromey.com>
12341
12342 * rust-exp.y: Replace "parse_language" with method call.
12343 * p-exp.y:
12344 (yylex): Replace "parse_language" with method call.
12345 * m2-exp.y:
12346 (yylex): Replace "parse_language" with method call.
12347 * go-exp.y (classify_name): Replace "parse_language" with method
12348 call.
12349 * f-exp.y (yylex): Replace "parse_language" with method call.
12350 * d-exp.y (lex_one_token): Replace "parse_language" with method
12351 call.
12352 * c-exp.y:
12353 (lex_one_token, classify_name, yylex): Replace "parse_language"
12354 with method call.
12355 * ada-exp.y (find_primitive_type, type_char)
12356 (type_system_address): Replace "parse_language" with method call.
12357
fa9f5be6
TT
123582019-04-04 Tom Tromey <tom@tromey.com>
12359
12360 * rust-exp.y: Replace "parse_gdbarch" with method call.
12361 * parse.c (write_dollar_variable, insert_type_address_space):
12362 Replace "parse_gdbarch" with method call.
12363 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12364 call.
12365 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12366 call.
12367 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12368 "parse_gdbarch" with method call.
12369 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12370 with method call.
12371 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12372 "parse_gdbarch" with method call.
12373 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12374 "parse_gdbarch" with method call.
12375 * c-exp.y (parse_type, parse_number, classify_name): Replace
12376 "parse_gdbarch" with method call.
12377 * ada-lex.l: Replace "parse_gdbarch" with method call.
12378 * ada-exp.y (parse_type, find_primitive_type, type_char)
12379 (type_system_address): Replace "parse_gdbarch" with method call.
12380
1201a264
TT
123812019-04-04 Tom Tromey <tom@tromey.com>
12382
12383 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12384 * stap-probe.c (stap_parse_argument): Update.
12385 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12386 initial_size parameter.
12387 * rust-exp.y (rust_lex_tests): Update.
12388 * parse.c (parser_state): Update.
12389 (parse_exp_in_context): Update.
12390 * parser-defs.h (struct parser_state) <parser_state>: Remove
12391 "initial_size" parameter.
12392
e3980ce2
TT
123932019-04-04 Tom Tromey <tom@tromey.com>
12394
12395 * parser-defs.h (increase_expout_size): Don't declare.
12396 * parse.c (increase_expout_size): Now static.
12397
e9f8e3f1
TS
123982019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12399
12400 * gnu-nat.c (gnu_nat_target::wait): Fix
12401 target_waitstatus_to_string call.
12402
d7df6549
AB
124032019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12404
12405 * eval.c (evaluate_subexp_standard): Handle internal functions
12406 during Fortran function call handling.
12407
8bdc1658
AB
124082019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12409
12410 * NEWS: Mention new internal functions.
12411 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12412 (read_base_type): Use dwarf2_init_complex_target_type.
12413 * value.c (creal_internal_fn): New function.
12414 (cimag_internal_fn): New function.
12415 (_initialize_values): Register new internal functions.
12416
c29705b7
PW
124172019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12418
12419 * infrun.c (stop_all_threads): If debug_infrun, always
12420 trace the wait status after wait_one, using
12421 target_waitstatus_to_string and target_pid_to_str.
12422 (handle_inferior_event): Replace various trace of
12423 wait status kind by a single trace.
12424 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12425 wait status kind image by target_waitstatus_to_string.
12426 * target/waitstatus.c (target_waitstatus_to_string): Fix
12427 obsolete comment.
12428
05caa1d2
TT
124292019-04-01 Tom Tromey <tromey@adacore.com>
12430
12431 PR symtab/23331:
12432 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12433
9d1447e0
SDJ
124342019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12435 Pedro Alves <palves@redhat.com>
12436
12437 * top.c (quit_force): Call 'finalize_values'.
12438 * value.c (finalize_values): New function.
12439 * value.h (finalize_values): Declare.
12440
7734102d
EZ
124412019-03-30 Eli Zaretskii <eliz@gnu.org>
12442
12443 * NEWS: Announce $_gdb_major and $_gdb_minor.
12444
12445 * top.c (init_gdb_version_vars): New function.
12446 (gdb_init): Call init_gdb_version_vars.
12447
188e1fa9
TT
124482019-03-29 Tom Tromey <tromey@adacore.com>
12449
12450 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12451 help text. Remove dead code.
12452
2880242d
KS
124532019-03-29 Keith Seitz <keiths@redhat.com>
12454
12455 From Siddhesh Poyarekar:
12456 * f-lang.h (f77_get_upperbound): Return LONGEST.
12457 (f77_get_lowerbound): Likewise.
12458 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12459 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12460 print them.
12461 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12462 plongest to format print it.
12463 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12464 (f77_get_upperbound): Likewise.
12465 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12466 LOWER_BOUND to LONGEST.
12467 (f77_create_arrayprint_offset_tbl): Likewise.
12468
cc1defb1
KS
124692019-03-29 Keith Seitz <keiths@redhat.com>
12470
12471 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12472 %s/pulongest for TYPE_LENGTH instead of %d in format
12473 strings.
12474 * ada-typerint.c (ada_print_type): Likewise.
12475 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12476 * compile/compile-c-support.c (generate_register_struct): Likewise.
12477 * gdbtypes.c (recursive_dump_type): Likewise.
12478 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12479 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12480 instead of %d in format strings.
12481 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12482 to std::min to ULONGEST.
12483 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12484 instead of %d in format strings.
12485 * tracepoint.c (info_scope_command): Likewise.
12486 * typeprint.c (print_offset_data::update)
12487 (print_offset_data::finish): Likewise.
12488 * xtensa-tdep.c (xtensa_store_return_value)
12489 (xtensa_push_dummy_call): Likewise.
12490
e432ccf1
JT
124912019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12492
12493 * windows-nat.c (display_selector): Fixed format specifications
12494 for 64-bit Cygwin.
12495
65d2b333
PW
124962019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12497
12498 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12499
f489207e
SL
125002019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12501
12502 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12503 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12504 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12505 (nios2_linux_init_abi): Install it.
12506
bffa1015
AH
125072019-03-28 Alan Hayward <alan.hayward@arm.com>
12508
12509 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12510
fc96163a
AH
125112019-03-28 Alan Hayward <alan.hayward@arm.com>
12512
12513 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12514
20dc7e9b
PW
125152019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12516 Tom Tromey <tromey@adacore.com>
12517
12518 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12519
7f5331a8
JB
125202019-03-26 Joel Brobecker <brobecker@adacore.com>
12521
12522 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12523 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12524 method to compute the bounds of range types. Also print "[evaluated]"
12525 if the bounds' values come from a dynamic evaluation.
12526
18c77628
AB
125272019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12528
12529 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12530 whitespace when pretty printing is on.
12531
53c973f2
AH
125322019-03-26 Alan Hayward <alan.hayward@arm.com>
12533
e79be6e5 12534 * ppc-linux-nat.c: Add include.
53c973f2 12535
d851aa71
AH
125362019-03-26 Alan Hayward <alan.hayward@arm.com>
12537
e79be6e5 12538 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12539
2fe7bab7
AH
125402019-03-26 Alan Hayward <alan.hayward@arm.com>
12541
e79be6e5 12542 * arm-linux-nat.c: Add include.
2fe7bab7 12543
068ef30e
SM
125442019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12545
12546 * source-cache.c (source_cache::get_source_lines): Re-read
12547 fullname after calling open_source_file.
12548
81a24d04
JB
125492019-03-25 John Baldwin <jhb@FreeBSD.org>
12550
12551 * NEWS: Mention TLS support for FreeBSD.
12552
79e7ae11
TT
125532019-03-25 Tom Tromey <tromey@adacore.com>
12554
12555 * minsyms.c (BUNCH_SIZE): Update comment.
12556 (~minimal_symbol_reader): Remove old comment.
12557 (compact_minimal_symbols): Update comment.
12558 (minimal_symbol_reader::install): Remove old comment. Update
12559 other comments.
12560
d45963c2
AH
125612019-03-25 Alan Hayward <alan.hayward@arm.com>
12562
12563 * s390-linux-nat.c: Add include.
12564
0f83012e
AH
125652019-03-25 Alan Hayward <alan.hayward@arm.com>
12566
12567 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12568 Call linux_get_hwcap.
12569 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12570 Likewise.
12571 (aarch64_linux_get_hwcap): Remove function.
12572 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12573 declaration.
12574 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12575 linux_get_hwcap.
12576 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12577 * linux-tdep.c (linux_get_hwcap): Add function.
12578 (linux_get_hwcap2): Likewise.
12579 * linux-tdep.h (linux_get_hwcap): Add declaration.
12580 (linux_get_hwcap2): Likewise.
12581 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12582 (ppc_linux_get_hwcap2): Likewise.
12583 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12584 linux_get_hwcap.
12585 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12586 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12587 (ppc_linux_nat_target::read_description): Likewise.
12588 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12589 * s390-linux-nat.c: Likewise.
12590 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12591
6640a367
TT
125922019-03-24 Tom Tromey <tom@tromey.com>
12593
12594 * ada-lang.c (standard_lookup): Simplify initialization.
12595 (ada_lookup_symbol_nonlocal): Simplify return.
12596 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12597 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12598 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12599 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12600 initialization.
12601 * solib.c (solib_global_lookup): Simplify.
12602 * symtab.c (null_block_symbol): Remove.
12603 (symbol_cache_lookup): Simplify returns.
12604 (lookup_language_this): Simplify returns.
12605 (lookup_symbol_aux): Simplify return.
12606 (lookup_local_symbol): Simplify returns.
12607 (lookup_global_symbol_from_objfile): Simplify return.
12608 (lookup_symbol_in_objfile_symtabs)
12609 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12610 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12611 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12612 * cp-namespace.c (cp_lookup_bare_symbol)
12613 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12614 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12615 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12616 (cp_lookup_symbol_via_imports): Simplify initialization.
12617 (find_symbol_in_baseclass): Likewise.
12618 * symtab.h (null_block_symbol): Remove.
12619 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12620 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12621 (d_lookup_symbol_module): Likewise.
12622 (find_symbol_in_baseclass): Simplify initialization.
12623
a930ebcd
TT
126242019-03-24 Tom Tromey <tom@tromey.com>
12625
12626 * expression.h: Don't include symtab.h.
12627 (struct block): Forward declare.
12628
582942f4
TT
126292019-03-24 Tom Tromey <tom@tromey.com>
12630
12631 * c-exp.y (typebase): Remove casts.
12632 * gdbtypes.c (lookup_unsigned_typename, )
12633 (lookup_signed_typename): Remove cast.
12634 * eval.c (parse_to_comma_and_eval): Remove cast.
12635 * parse.c (write_dollar_variable): Remove cast.
12636 * block.h (struct block) <superblock>: Now const.
12637 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12638 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12639 (map_block): Make "block" const.
12640 * symfile.h (struct quick_symbol_functions)
12641 <map_matching_symbols>: Constify block argument to "callback".
12642 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12643 const.
12644 (find_pc_sect_compunit_symtab): Make "b" const.
12645 (find_symbol_at_address): Likewise.
12646 (search_symbols): Likewise.
12647 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12648 (dw2_debug_names_lookup_symbol): Likewise.
12649 (dw2_map_matching_symbols): Update.
12650 * p-valprint.c (pascal_val_print): Remove "block".
12651 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12652 (aux_add_nonlocal_symbols): Make "block" const.
12653 (resolve_subexp): Remove cast.
12654 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12655 const.
12656 (iterate_over_file_blocks): Likewise.
12657 * f-exp.y (%union) <bval>: Remove.
12658 * coffread.c (patch_opaque_types): Make "b" const.
12659 * spu-tdep.c (spu_catch_start): Make "block" const.
12660 * c-valprint.c (print_unpacked_pointer): Remove "block".
12661 * symmisc.c (dump_symtab_1): Make "b" const.
12662 (block_depth): Make "block" const.
12663 * d-exp.y (%union) <bval>: Remove.
12664 * cp-support.h (cp_lookup_rtti_type): Update.
12665 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12666 * psymtab.c (psym_lookup_symbol): Make "block" const.
12667 (maintenance_check_psymtabs): Make "b" const.
12668 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12669 (enumerate_locals, enumerate_args): Update.
12670 * python/py-symtab.c (stpy_global_block): Make "block" const.
12671 (stpy_static_block): Likewise.
12672 * inline-frame.c (block_starting_point_at): Make "new_block"
12673 const.
12674 * block.c (find_block_in_blockvector): Make return type const.
12675 (blockvector_for_pc_sect): Make "b" const.
12676 (find_block_in_blockvector): Make "b" const.
12677
7ad417dd
TT
126782019-03-23 Tom Tromey <tom@tromey.com>
12679
12680 * varobj.c (varobj_create): Update.
12681 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12682 * printcmd.c (display_command, do_one_display): Don't reset
12683 innermost_block.
12684 * parser-defs.h (enum innermost_block_tracker_type): Move to
12685 expression.h.
12686 (innermost_block): Update comment.
12687 * parse.c (parse_exp_1): Add tracker_types parameter.
12688 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12689 tracker_types parameter. Reset innermost_block.
12690 (parse_exp_in_context): Remove.
12691 (parse_expression_for_completion): Update.
12692 * objfiles.c (~objfile): Don't reset expression_context_block or
12693 innermost_block.
12694 * expression.h (enum innermost_block_tracker_type): Move from
12695 parser-defs.h.
12696 (parse_exp_1): Add tracker_types parameter.
12697 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12698 reset innermost_block.
12699
b366c208
TT
127002019-03-23 Tom Tromey <tom@tromey.com>
12701
12702 * objfiles.h: Include bcache.h.
12703
9bb9b2f9
TT
127042019-03-23 Tom Tromey <tom@tromey.com>
12705
12706 * linespec.c (get_current_search_block): Use
12707 scoped_restore_current_language.
12708 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12709
59c28372
AH
127102019-03-22 Alan Hayward <alan.hayward@arm.com>
12711 Jiong Wang <jiong.wang@arm.com>
12712
12713 * aarch64-linux-tdep.c
12714 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12715 section.
12716 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12717
17e116a7
AH
127182019-03-22 Alan Hayward <alan.hayward@arm.com>
12719 Jiong Wang <jiong.wang@arm.com>
12720
12721 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12722 instructions.
12723 (aarch64_analyze_prologue_test): Add PACIASP test.
12724 (aarch64_prologue_prev_register): Unmask PC value.
12725
11e1b75f
AH
127262019-03-22 Alan Hayward <alan.hayward@arm.com>
12727 Jiong Wang <jiong.wang@arm.com>
12728
12729 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12730 (aarch64_dwarf2_prev_register): Unmask PC value.
12731 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12732 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12733 DW_CFA_AARCH64_negate_ra_state.
12734 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12735
34dcc7cf
AH
127362019-03-22 Alan Hayward <alan.hayward@arm.com>
12737 Jiong Wang <jiong.wang@arm.com>
12738
12739 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12740 registers.
12741 (aarch64_pseudo_register_name): Likewise.
12742 (aarch64_pseudo_register_type): Likewise.
12743 (aarch64_pseudo_register_reggroup_p): Likewise.
12744 (aarch64_gdbarch_init): Add pauth registers.
12745 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12746 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12747 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12748 (struct gdbarch_tdep): Add regnum for ra_state.
12749
1ef53e6b
AH
127502019-03-22 Alan Hayward <alan.hayward@arm.com>
12751 Jiong Wang <jiong.wang@arm.com>
12752
12753 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12754
76bed0fd
AH
127552019-03-22 Alan Hayward <alan.hayward@arm.com>
12756 Jiong Wang <jiong.wang@arm.com>
12757
12758 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12759 function.
12760 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12761 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12762 (aarch64_gdbarch_init): Add puth registers.
12763 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12764 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12765 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12766
ee4fbcfa
AH
127672019-03-22 Alan Hayward <alan.hayward@arm.com>
12768 Jiong Wang <jiong.wang@arm.com>
12769
12770 * aarch64-linux-nat.c
12771 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12772 * aarch64-linux-tdep.c
12773 (aarch64_linux_core_read_description): Likewise.
12774 (aarch64_linux_get_hwcap): New function.
12775 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12776 (aarch64_linux_get_hwcap): New declaration.
12777
6dc0ebde
AH
127782019-03-22 Alan Hayward <alan.hayward@arm.com>
12779 Jiong Wang <jiong.wang@arm.com>
12780
12781 * aarch64-linux-nat.c
12782 (aarch64_linux_nat_target::read_description): Add pauth param.
12783 * aarch64-linux-tdep.c
12784 (aarch64_linux_core_read_description): Likewise.
12785 * aarch64-tdep.c (struct target_desc): Add in pauth.
12786 (aarch64_read_description): Add pauth param.
12787 (aarch64_gdbarch_init): Likewise.
12788 * aarch64-tdep.h (aarch64_read_description): Likewise.
12789 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12790 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12791 * features/Makefile: Add new files.
12792 * features/aarch64-pauth.c: New file.
12793 * features/aarch64-pauth.xml: New file.
12794
595915c1
TT
127952019-03-20 Tom Tromey <tromey@adacore.com>
12796
12797 * infrun.c (handle_inferior_event): Rename from
12798 handle_inferior_event_1. Create a scoped_value_mark.
12799 (handle_inferior_event): Remove.
12800
4c7d57e7
TT
128012019-03-19 Tom Tromey <tromey@adacore.com>
12802
12803 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12804 * infrun.h (print_stop_event): Add "displays" parameter.
12805 * infrun.c (print_stop_event): Add "displays" parameter.
12806
cb246234
PA
128072019-03-19 Pedro Alves <palves@redhat.com>
12808
12809 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12810 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12811 to -1. Fix TABs vs spaces.
12812 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12813 * tui/tui-out.h (tui_ui_out) Add intro comments.
12814 <m_line, m_start_of_line>: In-class initialize, and add describing
12815 comment.
12816
3a0e45b2
AH
128172019-03-18 Alan Hayward <alan.hayward@arm.com>
12818
12819 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12820 variable names.
12821 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12822
5371b850
PA
128232019-03-18 Pedro Alves <palves@redhat.com>
12824 Eli Zaretskii <eliz@gnu.org>
12825
12826 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12827 m_line and m_start_of_line.
12828
b17c4cd0
EZ
128292019-03-18 Eli Zaretskii <eliz@gnu.org>
12830
12831 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12832 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12833 it returns a newline. This fixes a regression in TU mode, whereby
12834 the next line is output on the same screen line as the user input.
12835
4bd56d18
TT
128362019-03-18 Tom Tromey <tromey@adacore.com>
12837
12838 * minsyms.c (minimal_symbol_reader::install): Remove call to
12839 obstack_blank.
12840
55c10aca
PA
128412019-03-18 Pedro Alves <palves@redhat.com>
12842
12843 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12844 New globals.
12845 (apply_style): New, factored out from ...
12846 (apply_ansi_escape): ... this. Handle reverse video mode.
12847 (tui_set_reverse_mode): New function.
12848 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12849 * tui/tui-winsource.c (tui_show_source_line): Use
12850 tui_set_reverse_mode instead of setting A_STANDOUT.
12851 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12852 New setter methods.
12853
647bb750
HD
128542019-03-18 Hannes Domani <ssbssa@yahoo.de>
12855
12856 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12857 Handle tabs.
12858
bff8c71f
TT
128592019-03-18 Tom Tromey <tromey@adacore.com>
12860
12861 * ada-lang.c (empty_array): Add "high" parameter.
12862 (ada_evaluate_subexp): Update.
12863
58785d98
ST
128642019-03-17 Sergei Trofimovich <siarheit@google.com>
12865
12866 * unittests/string_view-selftests.c: Define
12867 _initialize_string_view_selftests unconditionally.
12868
d4cbef22
ВМ
128692019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12870
12871 PR gdb/24350
12872 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12873
fce4c071
ВМ
128742019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12875
12876 PR gdb/24351
12877 * windows-nat.c (display_selector): Fix format specifiers.
12878
f7f0a123
EZ
128792019-03-17 Eli Zaretskii <eliz@gnu.org>
12880
12881 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12882 tui_refill_source_window instead of tui_refresh_win, to update the
12883 current execution line. This fixes redisplay of the current line
12884 when stepping through the code with "next" or "step".
12885
ab42892f
EZ
128862019-03-16 Eli Zaretskii <eliz@gnu.org>
12887
12888 * source-cache.c (source_cache::get_source_lines): Call
12889 find_source_lines to initialize s->nlines. This fixes vertical
12890 scrolling of TUI source window when the DOWN arrow is pressed.
12891
8d8c087f
PW
128922019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12893
12894 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12895 linux-thread-db.c (_initialize_thread_db): Likewise.
12896
798e1c30
EZ
128972019-03-16 Eli Zaretskii <eliz@gnu.org>
12898
12899 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12900 wclrtoeol in tui_show_source_line". This reverts changes made in
12901 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12902
eefba3da
TT
129032019-03-15 Tom Tromey <tom@tromey.com>
12904
12905 * symtab.h (struct minimal_symbol): Derive from
12906 general_symbol_info.
12907 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12908 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12909 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12910 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12911 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12912 (MSYMBOL_SEARCH_NAME): Update.
12913 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12914 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12915 * minsyms.c (minimal_symbol_reader::record_full): Update.
12916
0de2420c
TT
129172019-03-15 Tom Tromey <tom@tromey.com>
12918
12919 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12920
042d75e4
TT
129212019-03-15 Tom Tromey <tom@tromey.com>
12922
12923 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12924 unique_xmalloc_ptr.
12925 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12926 Update.
12927 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12928 (build_minimal_symbol_hash_tables)
12929 (minimal_symbol_reader::install): Update.
12930
db92718b
TT
129312019-03-15 Tom Tromey <tom@tromey.com>
12932
12933 * symtab.c (create_demangled_names_hash): Update.
12934 (symbol_set_names): Update.
12935 * objfiles.h (struct objfile_per_bfd_storage)
12936 <demangled_names_hash>: Now an htab_up.
12937 * objfiles.c (objfile_per_bfd_storage): Simplify.
12938
d6797f46
TT
129392019-03-15 Tom Tromey <tom@tromey.com>
12940
12941 * objfiles.h (struct objfile_per_bfd_storage): Declare
12942 destructor.
12943 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12944 New.
12945 (get_objfile_bfd_data): Use new. Don't initialize
12946 language_of_main.
12947 (free_objfile_per_bfd_storage): Remove.
12948 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12949
741d7538
TT
129502019-03-15 Tom Tromey <tom@tromey.com>
12951
12952 * symfile.c (reread_symbols): Update.
12953 * objfiles.c (objfile::objfile): Update.
12954 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12955 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12956 comment.
12957 (minimal_symbol_reader::install): Update.
12958 (terminate_minimal_symbol_table): Remove.
12959 * jit.c (jit_object_close_impl): Update.
12960
788c80d1
TT
129612019-03-15 Tom Tromey <tom@tromey.com>
12962
12963 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12964 initializations.
12965
1b7a07cb
TT
129662019-03-15 Tom Tromey <tom@tromey.com>
12967
12968 * objfiles.h (struct objfile_per_bfd_storage)
12969 <demangled_hash_languages>: Now a bitset.
12970 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12971 (lookup_minimal_symbol): Update.
12972
3db066bc
TT
129732019-03-15 Tom Tromey <tom@tromey.com>
12974
12975 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12976 Don't return the symbol.
12977 * coffread.c (record_minimal_symbol): Use record_full.
12978
3fff2c37
EZ
129792019-03-14 Eli Zaretskii <eliz@gnu.org>
12980
12981 The MS-Windows port of ncurses fails to switch to a color pair if
12982 one or both of the colors are the implicit default colors. This
12983 change records the default colors when TUI is initialized, and
12984 then specifies them explicitly when a color pair uses the default
12985 colors. This allows color styling in TUI mode on MS-Windows.
12986
12987 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12988 ncurses_norm_attr.
12989 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12990 colors in ncurses_norm_attr.
12991 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12992 "none", replace it with the default color recorded in
12993 ncurses_norm_attr.
12994
3b336828
TT
129952019-03-14 Tom Tromey <tromey@adacore.com>
12996
12997 * source-cache.h (class source_cache) <get_source_lines>: Return
12998 std::string.
12999 * source-cache.c (source_cache::extract_lines): Handle case where
13000 first_pos==npos. Return std::string.
13001 (source_cache::get_source_lines): Update.
13002
d085f989
TT
130032019-03-14 Tom Tromey <tromey@adacore.com>
13004
13005 * NEWS: Add item for "style sources" commands.
13006 * source-cache.c (source_cache::get_source_lines): Check
13007 source_styling.
13008 * cli/cli-style.c (source_styling): New global.
13009 (_initialize_cli_style): Add "style sources" commands.
13010 (show_style_sources): New function.
13011 * cli/cli-style.h (source_styling): Declare.
13012
6f11e682
TT
130132019-03-14 Pedro Alves <palves@redhat.com>
13014 Tom Tromey <tromey@adacore.com>
13015
13016 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13017 * tui/tui-winsource.c (tui_refill_source_window): New function,
13018 from...
13019 (tui_horizontal_source_scroll): ... here. Move some logic.
13020 * cli/cli-style.c (set_style_enabled): Notify new observable.
13021 * tui/tui-hooks.c (tui_redisplay_source): New function.
13022 (tui_attach_detach_observers): Attach or detach
13023 tui_redisplay_source.
13024 * observable.h (source_styling_changed): New observable.
13025 * observable.c: Define source_styling_changed observable.
13026
a068643d
TT
130272019-03-13 Tom Tromey <tromey@adacore.com>
13028
13029 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13030 (i386_gnu_nat_target::store_registers): Update.
13031 * target-debug.h (target_debug_print_std_string): New macro.
13032 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13033 * windows-tdep.c (display_one_tib): Update.
13034 * tui/tui-stack.c (tui_make_status_line): Update.
13035 * top.c (print_inferior_quit_action): Update.
13036 * thread.c (thr_try_catch_cmd): Update.
13037 (add_thread_with_info): Update.
13038 (thread_target_id_str): Update.
13039 (thr_try_catch_cmd): Update.
13040 (thread_command): Update.
13041 (thread_find_command): Update.
13042 * record-btrace.c (record_btrace_target::info_record)
13043 (record_btrace_resume_thread, record_btrace_target::resume)
13044 (record_btrace_cancel_resume, record_btrace_step_thread)
13045 (record_btrace_target::wait, record_btrace_target::wait)
13046 (record_btrace_target::wait, record_btrace_target::stop): Update.
13047 * progspace.c (print_program_space): Update.
13048 * process-stratum-target.c
13049 (process_stratum_target::thread_address_space): Update.
13050 * linux-fork.c (linux_fork_mourn_inferior)
13051 (detach_checkpoint_command, info_checkpoints_command)
13052 (linux_fork_context): Update.
13053 (linux_fork_detach): Update.
13054 (class scoped_switch_fork_info): Update.
13055 (delete_checkpoint_command): Update.
13056 * infrun.c (follow_fork_inferior): Update.
13057 (follow_fork_inferior): Update.
13058 (proceed_after_vfork_done): Update.
13059 (handle_vfork_child_exec_or_exit): Update.
13060 (follow_exec): Update.
13061 (displaced_step_prepare_throw): Update.
13062 (displaced_step_restore): Update.
13063 (start_step_over): Update.
13064 (resume_1): Update.
13065 (clear_proceed_status_thread): Update.
13066 (proceed): Update.
13067 (print_target_wait_results): Update.
13068 (do_target_wait): Update.
13069 (context_switch): Update.
13070 (stop_all_threads): Update.
13071 (restart_threads): Update.
13072 (finish_step_over): Update.
13073 (handle_signal_stop): Update.
13074 (switch_back_to_stepped_thread): Update.
13075 (keep_going_pass_signal): Update.
13076 (print_exited_reason): Update.
13077 (normal_stop): Update.
13078 * inferior.c (inferior_pid_to_str): Change return type.
13079 (print_selected_inferior): Update.
13080 (add_inferior): Update.
13081 (detach_inferior): Update.
13082 * dummy-frame.c (fprint_dummy_frames): Update.
13083 * dcache.c (dcache_info_1): Update.
13084 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13085 (btrace_fetch, btrace_clear): Update.
13086 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13087 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13088 type.
13089 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13090 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13091 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13092 * gdbarch.c, gdbarch.h: Rebuild.
13093 * gdbarch.sh (core_pid_to_str): Change return type.
13094 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13095 return type.
13096 (windows_nat_target::pid_to_str): Change return type.
13097 (windows_delete_thread): Update.
13098 (windows_nat_target::attach): Update.
13099 (windows_nat_target::files_info): Update.
13100 * target-delegates.c: Rebuild.
13101 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13102 return type.
13103 (sol_thread_target::pid_to_str): Change return type.
13104 * remote.c (class remote_target) <pid_to_str>: Change return
13105 type.
13106 (remote_target::pid_to_str): Change return type.
13107 (extended_remote_target::attach, remote_target::remote_stop_ns)
13108 (remote_target::remote_notif_remove_queued_reply)
13109 (remote_target::push_stop_reply, remote_target::disable_btrace):
13110 Update.
13111 (extended_remote_target::attach): Update.
13112 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13113 type.
13114 (gdbsim_target::pid_to_str): Change return type.
13115 * ravenscar-thread.c (struct ravenscar_thread_target)
13116 <pid_to_str>: Change return type.
13117 (ravenscar_thread_target::pid_to_str): Change return type.
13118 * procfs.c (class procfs_target) <pid_to_str>: Change return
13119 type.
13120 (procfs_target::pid_to_str): Change return type.
13121 (procfs_target::attach): Update.
13122 (procfs_target::detach): Update.
13123 (procfs_target::fetch_registers): Update.
13124 (procfs_target::store_registers): Update.
13125 (procfs_target::wait): Update.
13126 (procfs_target::files_info): Update.
13127 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13128 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13129 return type.
13130 (nto_procfs_target::pid_to_str): Change return type.
13131 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13132 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13133 return type.
13134 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13135 (exit_lwp): Update.
13136 (attach_proc_task_lwp_callback, get_detach_signal)
13137 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13138 (linux_nat_target::resume, wait_lwp, stop_callback)
13139 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13140 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13141 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13142 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13143 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13144 type.
13145 (inf_ptrace_target::attach): Update.
13146 (inf_ptrace_target::files_info): Update.
13147 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13148 type.
13149 (go32_nat_target::pid_to_str): Change return type.
13150 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13151 (gnu_nat_target::wait): Update.
13152 (gnu_nat_target::wait): Update.
13153 (gnu_nat_target::resume): Update.
13154 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13155 (fbsd_nat_target::wait): Update.
13156 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13157 type.
13158 (darwin_nat_target::attach): Update.
13159 * corelow.c (class core_target) <pid_to_str>: Change return type.
13160 (core_target::pid_to_str): Change return type.
13161 * target.c (normal_pid_to_str): Change return type.
13162 (default_pid_to_str): Likewise.
13163 (target_pid_to_str): Change return type.
13164 (target_translate_tls_address): Update.
13165 (target_announce_detach): Update.
13166 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13167 return type.
13168 (bsd_uthread_target::pid_to_str): Change return type.
13169 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13170 type.
13171 (bsd_kvm_target::pid_to_str): Change return type.
13172 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13173 return type.
13174 (aix_thread_target::pid_to_str): Change return type.
13175 * target.h (struct target_ops) <pid_to_str>: Change return type.
13176 (target_pid_to_str, normal_pid_to_str): Likewise.
13177 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13178 type.
13179 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13180 type.
13181 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13182 return type.
13183 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13184 type.
13185 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13186 type.
13187 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13188 return type.
13189
b4be1b06
SM
131902019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13191
13192 * NEWS: Mention that the new default MI version is 3. Mention
13193 changes to the output of commands and events that deal with
13194 multi-location breakpoints.
13195 * breakpoint.c: Include "mi/mi-out.h".
13196 (print_one_breakpoint): Change output syntax if using MI version
13197 >= 3.
13198 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13199 New.
13200 (mi_multi_location_breakpoint_output_fixed): New.
13201 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13202 (mi_cmd_fix_multi_location_breakpoint_output): New.
13203 (mi_multi_location_breakpoint_output_fixed): New.
13204 * mi/mi-cmds.c (mi_cmds): Register command
13205 -fix-multi-location-breakpoint-output.
13206 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13207 interpreter "mi".
13208
8e5e5494
SM
132092019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13210
13211 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13212 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13213 instantiate mi_ui_out based on interpreter name.
13214 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13215 * mi/mi-main.c (mi_load_progress): Likewise.
13216
197df35e
JB
132172019-03-12 John Baldwin <jhb@FreeBSD.org>
13218
13219 * NEWS: Combine separate "New targets" sections for 8.3.
13220
8399425f
JB
132212019-03-12 John Baldwin <jhb@FreeBSD.org>
13222
13223 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13224 (ppcfbsd_init_abi): Install gdbarch
13225 "fetch_tls_load_module_address" and "get_thread_local_address"
13226 methods.
13227
b0f87ed0
JB
132282019-03-12 John Baldwin <jhb@FreeBSD.org>
13229
13230 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13231 (riscv_fbsd_init_abi): Install gdbarch
13232 "fetch_tls_load_module_address" and "get_thread_local_address"
13233 methods.
13234
ce25aa57
JB
132352019-03-12 John Baldwin <jhb@FreeBSD.org>
13236
13237 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13238 (i386fbsd_init_abi): Install gdbarch
13239 "fetch_tls_load_module_address" and "get_thread_local_address"
13240 methods.
13241
f5424cfa
JB
132422019-03-12 John Baldwin <jhb@FreeBSD.org>
13243
13244 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13245 (amd64fbsd_init_abi): Install gdbarch
13246 "fetch_tls_load_module_address" and "get_thread_local_address"
13247 methods.
13248
945f3901
JB
132492019-03-12 John Baldwin <jhb@FreeBSD.org>
13250
13251 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13252 (struct fbsd_pspace_data): New type.
13253 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13254 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13255 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13256 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13257 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13258
ef0bd204
JB
132592019-03-12 John Baldwin <jhb@FreeBSD.org>
13260
13261 * gdbtypes.c (lookup_struct_elt): New function.
13262 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13263 * gdbtypes.h (struct struct_elt): New type.
13264 (lookup_struct_elt): New prototype.
13265
36c53a02
JB
132662019-03-12 John Baldwin <jhb@FreeBSD.org>
13267
13268 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13269 remove disabled code block.
13270
6e056c81
JB
132712019-03-12 John Baldwin <jhb@FreeBSD.org>
13272
13273 * gdbarch.sh (get_thread_local_address): New method.
13274 * gdbarch.h, gdbarch.c: Regenerate.
13275 * target.c (target_translate_tls_address): Use
13276 gdbarch_get_thread_local_address if present instead of
13277 target::get_thread_local_address.
13278
cd250a18
JB
132792019-03-12 John Baldwin <jhb@FreeBSD.org>
13280
13281 * target.h (target::get_thread_local_address): Update comment.
13282
df22c1e5
JB
132832019-03-12 John Baldwin <jhb@FreeBSD.org>
13284
13285 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13286 objfile->separate_debug_objfile_backlink if not NULL.
13287
dd6876c9
JB
132882019-03-12 John Baldwin <jhb@FreeBSD.org>
13289
13290 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13291 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13292 (amd64bsd_store_inferior_registers): Likewise.
13293 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13294 Enable segment base registers.
13295 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13296 PT_GETFSBASE and PT_GETGSBASE.
13297 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13298 PT_SETGSBASE.
13299 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13300 segment base registers.
13301 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13302
1163a4b7
JB
133032019-03-12 John Baldwin <jhb@FreeBSD.org>
13304
13305 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13306 Update calls to i386_target_description to add 'segments'
13307 parameter.
13308 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13309 add segment base registers.
13310 * arch/i386.c (i386_create_target_description): Add 'segments'
13311 parameter to enable segment base registers.
13312 * arch/i386.h (i386_create_target_description): Likewise.
13313 * features/i386/32bit-segments.xml: New file.
13314 * features/i386/32bit-segments.c: Generate.
13315 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13316 call to i386_target_description to add 'segments' parameter.
13317 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13318 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13319 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13320 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13321 if feature is present.
13322 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13323 Add 'segments' parameter to call to i386_target_description.
13324 (i386_target_description): Add 'segments' parameter to enable
13325 segment base registers.
13326 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13327 to call to i386_target_description.
13328 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13329 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13330 Define I386_NUM_REGS.
13331 (i386_target_description): Add 'segments' parameter to enable
13332 segment base registers.
13333
3a350822
EZ
133342019-03-12 Eli Zaretskii <eliz@gnu.org>
13335
13336 PR/24325
13337 * source-cache.c: #undef open and close, to avoid unresolved
13338 externals during linking.
13339
ffdd69cf
TT
133402019-03-12 Tom Tromey <tromey@adacore.com>
13341
13342 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13343 const. Add initializers.
13344 (_initialize_remote): Don't initialize ptid globals.
13345
ec148c57
PA
133462019-03-12 Pedro Alves <palves@redhat.com>
13347
13348 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13349
32764270
PA
133502019-03-12 Pedro Alves <palves@redhat.com>
13351
13352 * cp-name-parser.y (main): Remove unused 'len' variable.
13353
17547186
TT
133542019-03-12 Tom Tromey <tromey@adacore.com>
13355
13356 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13357 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13358
d3a70e03
TT
133592019-03-12 Tom Tromey <tromey@adacore.com>
13360
13361 * linux-nat.c (iterate_over_lwps): Update.
13362 (stop_callback): Remove parameter.
13363 (stop_wait_callback, detach_callback, resume_set_callback)
13364 (select_singlestep_lwp_callback, set_ignore_sigint)
13365 (status_callback, resumed_callback, resume_clear_callback)
13366 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13367 data parameter.
13368 (linux_nat_target::detach, linux_nat_target::resume)
13369 (linux_stop_and_wait_all_lwps, select_event_lwp)
13370 (linux_nat_filter_event, linux_nat_wait_1)
13371 (linux_nat_target::kill, linux_nat_target::stop)
13372 (linux_nat_target::stop): Update.
13373 (linux_nat_resume_callback): Change type.
13374 (resume_stopped_resumed_lwps, count_events_callback)
13375 (select_event_lwp_callback): Likewise.
13376 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13377 * arm-linux-nat.c (struct update_registers_data): Remove.
13378 (update_registers_callback): Change type.
13379 (arm_linux_insert_hw_breakpoint1): Update.
13380 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13381 parameter.
13382 (x86_linux_dr_set_addr): Update.
13383 (x86_linux_dr_set_control): Update.
13384 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13385 (iterate_over_lwps): Use gdb::function_view.
13386 * nat/aarch64-linux-hw-point.c (struct
13387 aarch64_dr_update_callback_param): Remove.
13388 (debug_reg_change_callback): Change type.
13389 (aarch64_notify_debug_reg_change): Update.
13390 * s390-linux-nat.c (s390_refresh_per_info): Update.
13391
82cb27ff
TT
133922019-03-11 Tom Tromey <tromey@adacore.com>
13393
13394 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13395 redundant assignment to "this_cu".
13396
568c0683
SM
133972019-03-08 Simon Marchi <simon.marchi@efficios.com>
13398
13399 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13400
f09ce22d
SM
134012019-03-08 Simon Marchi <simon.marchi@efficios.com>
13402
13403 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13404 from...
13405 (rank_one_type): ... this.
13406
595f96a9
SM
134072019-03-08 Simon Marchi <simon.marchi@efficios.com>
13408
13409 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13410 from...
13411 (rank_one_type): ... this.
13412
2598a94b
SM
134132019-03-08 Simon Marchi <simon.marchi@efficios.com>
13414
13415 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13416 from...
13417 (rank_one_type): ... this.
13418
7f17b20d
SM
134192019-03-08 Simon Marchi <simon.marchi@efficios.com>
13420
13421 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13422 from...
13423 (rank_one_type): ... this.
13424
2c509035
SM
134252019-03-08 Simon Marchi <simon.marchi@efficios.com>
13426
13427 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13428 from...
13429 (rank_one_type): ... this.
13430
0dd322dc
SM
134312019-03-08 Simon Marchi <simon.marchi@efficios.com>
13432
13433 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13434 from...
13435 (rank_one_type): ... this.
13436
41ea4728
SM
134372019-03-08 Simon Marchi <simon.marchi@efficios.com>
13438
13439 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13440 from...
13441 (rank_one_type): ... this.
13442
793cd1d2
SM
134432019-03-08 Simon Marchi <simon.marchi@efficios.com>
13444
13445 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13446 from...
13447 (rank_one_type): ... this.
13448
34910087
SM
134492019-03-08 Simon Marchi <simon.marchi@efficios.com>
13450
13451 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13452 from...
13453 (rank_one_type): ... this.
13454
f1f832d6
SM
134552019-03-08 Simon Marchi <simon.marchi@efficios.com>
13456
13457 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13458 from...
13459 (rank_one_type): ... this.
13460
b9f4512f
SM
134612019-03-08 Simon Marchi <simon.marchi@efficios.com>
13462
13463 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13464 from...
13465 (rank_one_type): ... this.
13466
9293fc63
SM
134672019-03-08 Simon Marchi <simon.marchi@efficios.com>
13468
13469 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13470 from...
13471 (rank_one_type): ... this.
13472
e3abbe7e
PW
134732019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13474
13475 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13476 inferior-events' shows the example events.
13477
e4adb939
EZ
134782019-03-08 Eli Zaretskii <eliz@gnu.org>
13479
13480 Support styling on native MS-Windows console
13481
13482 PR/24315
13483 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13484 on MS-Windows if $TERM is not defined.
13485
13486 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13487
13488 * posix-hdep.c (gdb_console_fputs):
13489 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13490 functions.
13491 * ui-file.h (gdb_console_fputs): Add prototype.
13492
13493 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13494 back to fputs only if the former returns zero.
13495
25629dfd
TT
134962019-03-07 Tom Tromey <tom@tromey.com>
13497
13498 * symmisc.c (print_symbol_bcache_statistics): Update.
13499 (print_objfile_statistics): Update.
13500 * symfile.c (allocate_symtab): Update.
13501 * stabsread.c: Don't include bcache.h.
13502 * psymtab.h (struct psymbol_bcache): Don't declare.
13503 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13504 (psymbol_bcache_init, psymbol_bcache_free)
13505 (psymbol_bcache_get_bcache): Don't declare.
13506 * psymtab.c (struct psymbol_bcache): Remove.
13507 (psymtab_storage::psymtab_storage): Update.
13508 (psymtab_storage::~psymtab_storage): Update.
13509 (psymbol_bcache_init, psymbol_bcache_free)
13510 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13511 (add_psymbol_to_bcache): Update.
13512 (allocate_psymtab): Update.
13513 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13514 macro_cache>: No longer pointers.
13515 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13516 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13517 * macrotab.c (macro_bcache): Update.
13518 * macroexp.c: Don't include bcache.h.
13519 * gdbtypes.c (check_types_worklist): Update.
13520 (types_deeply_equal): Remove TRY/CATCH. Update.
13521 * elfread.c (elf_symtab_read): Update.
13522 * dwarf2read.c: Don't include bcache.h.
13523 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13524 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13525 (print_bcache_statistics, bcache_memory_used): Don't declare.
13526 (struct bcache): Move from bcache.c. Add constructor, destructor,
13527 methods. Rename all data members.
13528 * bcache.c (struct bcache): Move to bcache.h.
13529 (bcache::expand_hash_table): Rename from expand_hash_table.
13530 (bcache): Remove.
13531 (bcache::insert): Rename from bcache_full.
13532 (bcache::compare): Rename from bcache_compare.
13533 (bcache_xmalloc): Remove.
13534 (bcache::~bcache): Rename from bcache_xfree.
13535 (bcache::print_statistics): Rename from print_bcache_statistics.
13536 (bcache::memory_used): Rename from bcache_memory_used.
13537
fe726667
PA
135382019-03-07 Pedro Alves <palves@redhat.com>
13539
13540 * infrun.c (normal_stop): Also check for
13541 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13542
7584bb30
AB
135432019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13544
13545 * f-lang.c (value_from_host_double): Moved to...
13546 * value.c (value_from_host_double): ...here.
13547 * value.h (value_from_host_double): Declare.
13548 * guile/scm-math.c (vlscm_convert_typed_number): Use
13549 value_from_host_double.
13550 (vlscm_convert_number): Likewise.
13551 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13552 * python/py-value.c (convert_value_from_python): Likewise.
13553
a7b1986e
TT
135542019-03-06 Tom Tromey <tom@tromey.com>
13555
13556 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13557
0ccf4211
TT
135582019-03-06 Tom Tromey <tom@tromey.com>
13559
13560 * utils.h (free_current_contents): Don't declare.
13561 * utils.c (free_current_contents): Remove.
13562
fe7b42e5
TT
135632019-03-06 Tom Tromey <tom@tromey.com>
13564
13565 * top.c (quit_force): Update.
13566 * main.c (captured_command_loop): Update.
13567 * common/new-op.c (operator new): Update.
13568 * common/common-exceptions.c (struct catcher)
13569 <save_cleanup_chain>: Remove member.
13570 (exceptions_state_mc_init): Update.
13571 (exception_try_scope_entry): Return nullptr.
13572 (exception_try_scope_exit, exception_rethrow)
13573 (throw_exception_sjlj, throw_exception_cxx): Update.
13574 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13575 (all_cleanups, do_cleanups, discard_cleanups)
13576 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13577 (restore_cleanups, restore_final_cleanups): Don't declare.
13578 (do_final_cleanups): Remove parameter.
13579 * common/cleanups.c (cleanup_chain, make_cleanup)
13580 (make_cleanup_dtor, all_cleanups, do_cleanups)
13581 (discard_my_cleanups, discard_cleanups)
13582 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13583 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13584 (null_cleanup): Remove.
13585 (do_final_cleanups): Remove parameter.
13586
c6321f19
TT
135872019-03-06 Tom Tromey <tom@tromey.com>
13588
13589 * remote.c (remote_target::remote_parse_stop_reply): Use
13590 unique_xmalloc_ptr.
13591
61b30099
TT
135922019-03-06 Tom Tromey <tom@tromey.com>
13593
13594 * stabsread.c (struct stabs_field_info): Rename from field_info.
13595 <list, fnlist>: Add initializers.
13596 <obstack>: New member.
13597 (read_member_functions, read_struct_fields, read_baseclasses):
13598 Allocate on obstack. Don't use cleanups.
13599 (read_one_struct_field, read_member_functions, read_struct_fields)
13600 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13601 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13602 (read_struct_type): Update.
13603
6cceac94
TT
136042019-03-06 Tom Tromey <tom@tromey.com>
13605
13606 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13607 * common/filestuff.h (make_cleanup_close): Don't declare.
13608 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13609 Remove.
13610
72412762
TT
136112019-03-06 Tom Tromey <tom@tromey.com>
13612
13613 * solib-aix.c: Use make_scope_exit.
13614
2b6ff1c0
TT
136152019-03-06 Tom Tromey <tom@tromey.com>
13616
13617 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13618 Use make_scope_exit.
13619
d01c5877
TT
136202019-03-06 Tom Tromey <tom@tromey.com>
13621
13622 * solib-svr4.c (disable_probes_interface): Remove parameter.
13623 (svr4_handle_solib_event): Use make_scope_exit.
13624
32603266
TT
136252019-03-06 Tom Tromey <tom@tromey.com>
13626
13627 * remote.c (struct stop_reply_deleter): Remove.
13628 (stop_reply_up): Update.
13629 (struct stop_reply): Derive from notif_event. Don't typedef.
13630 <regcache>: Now a std::vector.
13631 (stop_reply_xfree): Remove.
13632 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13633 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13634 (remote_target::discard_pending_stop_replies): Use delete.
13635 (remote_target::remote_parse_stop_reply): Update.
13636 (remote_target::process_stop_reply): Update.
13637 * remote-notif.h (struct notif_event): Add virtual destructor.
13638 Remove "dtr" member.
13639 (struct notif_client) <alloc_event>: Return a unique_ptr.
13640 (notif_event_xfree): Don't declare.
13641 (notif_event_up): New typedef.
13642 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13643 (notif_event_xfree, do_notif_event_xfree): Remove.
13644 (remote_notif_state_xfree): Update.
13645
9799571e
TT
136462019-03-06 Tom Tromey <tom@tromey.com>
13647
13648 * infrun.c (displaced_step_clear_cleanup): Now a
13649 forward_scope_exit type.
13650 (displaced_step_prepare_throw): Update.
13651 (displaced_step_fixup): Update.
13652
09e3c4ca
TT
136532019-03-06 Tom Tromey <tom@tromey.com>
13654
13655 * inferior.h (class inferior): Update comment.
13656 * gdbthread.h (class thread_info): Update comment.
13657
e2a03548
TT
136582019-03-06 Joel Brobecker <brobecker@adacore.com>
13659 Tom Tromey <tom@tromey.com>
13660
13661 * stabsread.h (struct stab_section_list): Remove.
13662 (coffstab_build_psymtabs): Update.
13663 * dbxread.c (symbuf_sections): Now a std::vector.
13664 (sect_idx): New global.
13665 (fill_symbuf): Update.
13666 (coffstab_build_psymtabs): Change type of stabsects parameter.
13667 Update.
13668 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13669 std::vector.
13670 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13671 (coff_locate_sections): Update.
13672 (coff_symfile_read): Remove cleanups. Update.
13673 (init_stringtab): Add storage parameter.
13674 (free_stringtab, free_stringtab_cleanup): Remove.
13675 (init_lineno): Add storage parameter.
13676 (free_linetab, free_linetab_cleanup): Remove.
13677
b7e60d85
PA
136782019-03-06 Pedro Alves <palves@redhat.com>
13679
13680 * linux-fork.c (fork_info::clobber_regs): Delete.
13681 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13682 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13683 comment. Adjust.
13684 (scoped_switch_fork_info::scoped_switch_fork_info)
13685 (checkpoint_command, linux_fork_context): Adjust
13686 fork_save_infrun_state calls.
13687
e52c971f
PA
136882019-03-06 Pedro Alves <palves@redhat.com>
13689
13690 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13691 (inf_has_multiple_threads): Return 'bool' and rewrite using
13692 inferior_info::threads().
13693
06974e6c
PA
136942019-03-06 Pedro Alves <palves@redhat.com>
13695
13696 * linux-fork.c: Include <list>.
13697 (fork_list): Now a std::list instance.
13698 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13699 (forks_exist_p, find_last_fork): Adjust.
13700 (new_fork): Delete.
13701 (one_fork_p): New.
13702 (add_fork): Adjust.
13703 (free_fork): Delete, folded into fork_info::~fork_info().
13704 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13705 Adjust.
13706 (init_fork_list): Delete.
13707 (linux_fork_killall, linux_fork_mourn_inferior)
13708 (linux_fork_detach, info_checkpoints_command): Adjust.
13709 (_initialize_linux_fork): No longer call init_fork_list.
13710
72f31aea
PA
137112019-03-06 Pedro Alves <palves@redhat.com>
13712
13713 * linux-fork.c (new_fork): New, split out of ...
13714 (add_fork): ... this. Return void. Move "first fork" special
13715 case from here, to ...
13716 (checkpoint_command): ... here.
13717 * linux-linux.h (add_fork): Return void.
13718
efbecbc1
AB
137192019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13720
13721 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13722
0841c79a
AB
137232019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13724 Chris January <chris.january@arm.com>
13725 David Lecomber <david.lecomber@arm.com>
13726
13727 * f-exp.y: New token, UNOP_INTRINSIC.
13728 (exp): New pattern using UNOP_INTRINSIC token.
13729 (f77_keywords): Add 'abs' keyword.
13730 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13731 (value_from_host_double): New function.
13732 (evaluate_subexp_f): Support UNOP_ABS.
13733
4a270568
AB
137342019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13735
13736 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13737 types.
13738
067630bd
AB
137392019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13740
13741 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13742 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13743 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13744
3be47f7a
AB
137452019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13746
13747 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13748
4d00f5d8
AB
137492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13750 Chris January <chris.january@arm.com>
13751
13752 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13753 * f-exp.y: Define 'KIND' token.
13754 (exp): New pattern for KIND expressions.
13755 (ptype): Handle types with a kind extension.
13756 (direct_abs_decl): Extend to spot kind extensions.
13757 (f77_keywords): Add 'kind' to the list.
13758 (push_kind_type): New function.
13759 (convert_to_kind_type): New function.
13760 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13761 * parse.c (operator_length_standard): Likewise.
13762 * parser-defs.h (enum type_pieces): Add tp_kind.
13763 * std-operator.def: Add UNOP_KIND.
13764
e454224f
AB
137652019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13766
13767 * f-exp.y (f_parse): Set yydebug.
13768
9dad4a58
AB
137692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13770
13771 * f-lang.c (evaluate_subexp_f): New function.
13772 (exp_descriptor_f): New global.
13773 (f_language_defn): Use exp_descriptor_f instead of
13774 exp_descriptor_standard.
13775
c8f91604
AB
137762019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13777
13778 * f-exp.y (struct token): Add comments.
13779 (dot_ops): Remove uppercase versions and the end marker.
13780 (f77_keywords): Likewise.
13781 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13782 entries in the dot_ops array are case insensitive, and use
13783 strncasecmp to compare strings. Also some whitespace cleanup in
13784 this area. Similar for the f77_keywords array, except entries in
13785 this list might be case sensitive.
13786
dd9f2c76
AB
137872019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13788
13789 * f-exp.y (struct f77_boolean_val): Add comments.
13790 (boolean_values): Remove uppercase versions, and end marker.
13791 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13792 and use strncasecmp to achieve case insensitivity. Additionally,
13793 perform whitespace cleanup around this code.
13794
67a3048c
TT
137952019-03-06 Tom Tromey <tromey@adacore.com>
13796
13797 * remote-sim.c (gdbsim_target_open): Use result of
13798 gdb_argv::release.
13799
aa3cfbda
RB
138002019-03-06 Richard Bunt <richard.bunt@arm.com>
13801 Dirk Schubert <dirk.schubert@arm.com>
13802 Chris January <chris.january@arm.com>
13803
13804 * eval.c (evaluate_subexp_standard): Call Fortran argument
13805 wrapping logic.
13806 * f-lang.c (struct value): A value which can be passed into a
13807 Fortran function call.
13808 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13809 where appropriate.
13810 (struct type): Value ready for a Fortran function call.
13811 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13812 is needed.
13813 * f-lang.h (fortran_argument_convert): Declaration.
13814 (fortran_preserve_arg_pointer): Declaration.
13815 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13816
ea38e5df
TT
138172019-03-05 Tom Tromey <tromey@adacore.com>
13818
13819 * python/py-prettyprint.c (print_string_repr): Remove #if.
13820 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13821
06b5b831
TT
138222019-03-05 Tom Tromey <tromey@adacore.com>
13823
13824 * target.c (the_dummy_target): Move later. Change type to
13825 "dummy_target".
13826 (initialize_targets): Don't initialize the_dummy_target.
13827
edbd9e45
TT
138282019-03-05 Tom Tromey <tromey@adacore.com>
13829
13830 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13831 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13832
c119e040
TT
138332019-03-05 Tom Tromey <tromey@adacore.com>
13834
13835 * windows-nat.c (windows_nat_target::attach)
13836 (windows_nat_target::detach): Don't call gdb_flush.
13837 * valprint.c (generic_val_print, val_print, val_print_string):
13838 Don't call gdb_flush.
13839 * utils.c (defaulted_query): Don't call gdb_flush.
13840 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13841 * target.c (target_announce_detach): Don't call gdb_flush.
13842 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13843 * remote.c (extended_remote_target::attach): Don't call
13844 gdb_flush.
13845 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13846 * printcmd.c (do_examine): Don't call gdb_flush.
13847 (info_display_command): Don't call gdb_flush.
13848 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13849 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13850 * memattr.c (info_mem_command): Don't call gdb_flush.
13851 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13852 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13853 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13854 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13855 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13856 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13857 (gnu_nat_target::detach): Don't call gdb_flush.
13858 * f-valprint.c (f_val_print): Don't call gdb_flush.
13859 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13860 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13861 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13862 gdb_flush.
13863 * c-valprint.c (c_val_print): Don't call gdb_flush.
13864 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13865
895dafa6
TT
138662019-03-05 Tom Tromey <tromey@adacore.com>
13867
13868 * varobj.c (update_dynamic_varobj_children): Update.
13869 (install_default_visualizer): Use reset, not release.
13870 * value.c (set_internalvar): Update.
13871 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13872 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13873 ATTRIBUTE_UNUSED_RESULT.
13874
88a774b9
TT
138752019-03-05 Tom Tromey <tromey@adacore.com>
13876
13877 * remote.c (class scoped_remote_fd) <release>: Add
13878 ATTRIBUTE_UNUSED_RESULT.
13879
4e4a8b93
TT
138802019-03-05 Tom Tromey <tromey@adacore.com>
13881
13882 * macroexp.c (struct macro_buffer) <release>: Add
13883 ATTRIBUTE_UNUSED_RESULT.
13884
083eef1f
TT
138852019-03-05 Tom Tromey <tromey@adacore.com>
13886
13887 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13888 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13889 ATTRIBUTE_UNUSED_RESULT.
13890
3cabd438
TT
138912019-03-05 Tom Tromey <tromey@adacore.com>
13892
13893 * common/scoped_fd.h (class scoped_fd) <release>: Add
13894 ATTRIBUTE_UNUSED_RESULT.
13895
41e3300a
TT
138962019-03-05 Tom Tromey <tromey@adacore.com>
13897
13898 * parser-defs.h (struct parser_state) <release>: Add
13899 ATTRIBUTE_UNUSED_RESULT.
13900
18cb7c9f
TT
139012019-03-05 Tom Tromey <tromey@adacore.com>
13902
13903 * utils.h (class gdb_argv) <release>: Add
13904 ATTRIBUTE_UNUSED_RESULT.
13905 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13906
41fa577f
EZ
139072019-03-02 Eli Zaretskii <eliz@gnu.org>
13908
a6a4b2c6
EZ
13909 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13910 for-loop range, to avoid compiler warnings.
13911
13912 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13913 avoid compiler warnings about unused variables.
13914
742a7df5
EZ
13915 * NEWS: Mention end of support for native debugging on MS-Windows
13916 before XP.
13917
41fa577f
EZ
13918 PR gdb/24292
13919 * common/netstuff.c:
13920 * gdbserver/gdbreplay.c
13921 * gdbserver/remote-utils.c:
13922 * ser-tcp.c:
13923 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13924 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13925 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13926 'getaddrinfo' and 'freeaddrinfo' were not available before
13927 Windows XP, and mingw.org's MinGW headers by default define
13928 _WIN32_WINNT to 0x500.
13929
827f438f
GB
139302019-03-01 Gary Benson <gbenson@redhat.com>
13931
13932 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13933
92137da0
RO
139342019-02-28 Brian Vandenberg <phantall@gmail.com>
13935 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13936
13937 PR gdb/8527
13938 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13939 set_sigint_trap, clear_sigint_trap.
13940
799efbe8
PW
139412019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13942
13943 * target.c (target_detach): Clear the regcache and the
13944 frame cache.
13945
8ed25214
PA
139462019-02-27 Pedro Alves <palves@redhat.com>
13947
13948 * utils.c (set_screen_size): When we cap the height/width sizes,
13949 tweak the corresponding command variable to show "unlimited":
13950
23031e31
SJ
139512019-02-27 Saagar Jha <saagar@saagarjha.com>
13952 Pedro Alves <palves@redhat.com>
13953
13954 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13955 before calling rl_set_screen_size.
13956
6c28e44a
TT
139572019-02-27 Tom Tromey <tromey@adacore.com>
13958
13959 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13960 define.
13961 * python/py-value.c: Remove Python 2.4 workaround.
13962 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13963 workaround.
13964 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13965 Python 2.4 workaround.
13966 * python/python-internal.h: Remove Python 2.4 comment.
13967 (Py_ssize_t): Don't define.
13968 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13969 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13970 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13971 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13972 * python/python.c (do_start_initialization): Remove Python 2.4
13973 workaround.
13974 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13975 (print_children): Remove Python 2.4 workaround.
13976 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13977 workaround.
13978 (CHARBUFFERPROC_NAME): Remove.
13979 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13980 Python 2.4 workaround.
13981
2c3fc25d 139822019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13983
2c3fc25d
KB
13984 * NEWS: Note minimum Python version.
13985
6ca62222
KB
139862019-02-27 Kevin Buettner <kevinb@redhat.com>
13987
13988 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13989 code from these functions. Remove corresponding ifdefs. Use
13990 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13991 Remove gotos and target of gotos.
13992 (infpy_search_memory): Likewise.
13993
f4bc7d2c
AB
139942019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13995
13996 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
13997 (hppa_gdbarch_init): Don't register deleted functions with
13998 gdbarch.
13999
9734a586
AB
140002019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14001
14002 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14003 (h8300_unwind_sp): Delete.
14004 (h8300_dummy_id): Delete.
14005 (h8300_gdbarch_init): Don't register deleted functions with
14006 gdbarch.
14007
68b867f3
AB
140082019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14009
14010 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14011 (ft32_unwind_pc): Delete.
14012 (ft32_unwind_sp): Delete.
14013 (ft32_gdbarch_init): Don't register deleted functions with
14014 gdbarch.
14015
2fbe7ad0
AB
140162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14017
14018 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14019 (frv_unwind_pc): Delete.
14020 (frv_unwind_sp): Delete.
14021 (frv_gdbarch_init): Don't register deleted functions with
14022 gdbarch.
14023
76055cbe
AB
140242019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14025
14026 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14027 (riscv_unwind_pc): Delete.
14028 (riscv_unwind_sp): Delete.
14029 (riscv_gdbarch_init): Don't register deleted functions with
14030 gdbarch.
14031
4133e5a1
AB
140322019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14033
14034 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14035 (csky_unwind_pc): Delete.
14036 (csky_unwind_sp): Delete.
14037 (csky_gdbarch_init): Don't register deleted functions with
14038 gdbarch.
14039
8010f576
AB
140402019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14041
14042 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14043 (cris_unwind_pc): Delete.
14044 (cris_unwind_sp): Delete.
14045 (cris_gdbarch_init): Don't register deleted functions with
14046 gdbarch.
14047
b56bf084
AB
140482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14049
14050 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14051 (bfin_unwind_pc): Delete.
14052 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14053
a19a650f
AB
140542019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14055
14056 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14057 (arm_unwind_pc): Delete.
14058 (arm_unwind_sp): Delete.
14059 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14060
f8278c3c
AB
140612019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14062
14063 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14064 (arc_unwind_pc): Delete.
14065 (arc_unwind_sp): Delete.
14066 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14067
480e46cf
AB
140682019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14069
14070 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14071 (alpha_unwind_pc): Delete.
14072 (alpha_gdbarch_init): Don't register deleted functions with
14073 gdbarch.
14074
7a995095
AB
140752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14076
14077 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14078 (aarch64_unwind_pc): Delete.
14079 (aarch64_unwind_sp): Delete.
14080 (aarch64_gdbarch_init): Don't register deleted functions with
14081 gdbarch.
14082
bf9a735e
AB
140832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14084
14085 * gdbtypes.c (type_align): Don't consider static members when
14086 computing structure alignment.
14087
5561fc30
AB
140882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14089
14090 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14091 return 0 for other types.
14092 * arch-utils.c (default_type_align): Always return 0.
14093 * gdbarch.h: Regenerate.
14094 * gdbarch.sh (type_align): Extend comment.
14095 * gdbtypes.c (type_align): Add additional comments, always call
14096 gdbarch_type_align before applying the default rules.
14097 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14098 generic code will then apply a suitable default.
14099 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14100 types, return 0 for other types.
14101
9335e75a
JB
141022019-02-27 Joel Brobecker <brobecker@adacore.com>
14103
14104 * NEWS: Create a new section for the next release branch.
14105 Rename the section of the current branch, now that it has
14106 been cut.
14107
3d34d8de
JB
141082019-02-27 Joel Brobecker <brobecker@adacore.com>
14109
14110 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14111 * version.in: Bump version to 8.3.50.DATE-git.
14112
143420fb
SM
141132019-02-26 Simon Marchi <simon.marchi@efficios.com>
14114
14115 * aix-thread.c (ptid_cmp): Remove unused variable.
14116 (get_signaled_thread): Likewise.
14117 (store_regs_user_thread): Likewise.
14118 (store_regs_kernel_thread): Likewise.
14119 (fetch_regs_kernel_thread): Remove shadowed variable.
14120
172fb711
AB
141212019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14122
14123 * features/riscv/32bit-cpu.xml: Add register numbers.
14124 * features/riscv/32bit-fpu.c: Regenerate.
14125 * features/riscv/32bit-fpu.xml: Add register numbers.
14126 * features/riscv/64bit-cpu.xml: Add register numbers.
14127 * features/riscv/64bit-fpu.c: Regenerate.
14128 * features/riscv/64bit-fpu.xml: Add register numbers.
14129
26c89782
KB
141302019-02-26 Kevin Buettner <kevinb@redhat.com>
14131
af54ade9 14132 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14133 * python/py-value.c (convert_buffer_and_type_to_value): New
14134 function.
14135 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14136 Add support for handling an optional second argument. Call
14137 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14138 * python/python-internal.h (Py_buffer_deleter): New struct.
14139 (Py_buffer_up): New typedef.
14140
0f58c9e8
JB
141412019-02-25 John Baldwin <jhb@FreeBSD.org>
14142
14143 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14144 instead of releasing ownership.
14145
0a0f4c01
JR
141462019-02-25 Jordan Rupprecht <rupprecht@google.com>
14147
14148 * dwarf2read.c (open_and_init_dwp_file): Call
14149 elf_numsections instead of bfd_count_sections to initialize
14150 dwp_file->num_sections.
14151
cd5a152c
TT
141522019-02-25 Tom Tromey <tromey@adacore.com>
14153
14154 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14155
8a6a8513
SDJ
141562019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14157
14158 * gcore.in: Add '--readnever' option when invoking GDB.
14159
04dcda9c
SM
141602019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14161
14162 * MAINTAINERS: Update my email address.
14163
07bc701d
SM
141642019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14165
14166 * build-id.c (build_id_to_debug_bfd_1): New function.
14167 (build_id_to_debug_bfd): Look for separate debug file in
14168 sysroot.
14169
c6f4a5d0
AB
141702019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14171
14172 * gdbarch.sh: Update the copyright year range that is placed into
14173 generated files.
14174
9600246d
KS
141752019-02-22 Keith Seitz <keiths@redhat.com>
14176
14177 PR symtab/23853
14178 * linespec.c (create_sals_line_offset): Search for the default
14179 symtab's filename instead of its fullname.
14180
7557a514
AH
141812019-02-21 Alan Hayward <alan.hayward@arm.com>
14182
14183 * NEWS: Update style defaults.
14184
ee2bcb0c
AH
141852019-02-21 Alan Hayward <alan.hayward@arm.com>
14186
14187 * main.c (captured_main_1): Disable styling in batch mode.
14188
0c95f9ed
TT
141892019-02-20 Tom Tromey <tom@tromey.com>
14190
14191 * symtab.c (symtab_symbol_info): Fix typos.
14192
c763b894
TT
141932019-02-20 Tom Tromey <tromey@adacore.com>
14194
14195 * findcmd.c (_initialize_mem_search): Use upper case for
14196 metasyntactic variables.
14197
0ef8a082
AH
141982019-02-20 Alan Hayward <alan.hayward@arm.com>
14199
14200 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14201 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14202
6caa91b6
SM
142032019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14204
14205 * top.h (source_file_name): Change to std::string.
14206 * top.c (source_file_name): Likewise.
14207 (command_line_input): Adjust.
14208 * cli/cli-script.c (script_from_file): Adjust.
14209
98814c6c
TT
142102019-02-19 Tom Tromey <tromey@adacore.com>
14211
14212 * ravenscar-thread.c
14213 (ravenscar_thread_target::update_thread_list): Don't call
14214 ada_build_task_list.
14215 * ada-lang.h (ada_build_task_list): Don't declare.
14216 * ada-tasks.c (struct ada_tasks_inferior_data)
14217 <task_list_valid_p>: Now bool.
14218 (read_known_tasks, ada_task_list_changed)
14219 (ada_tasks_invalidate_inferior_data): Update.
14220 (read_known_tasks_array): Return bool.
14221 (read_known_tasks_list): Likewise.
14222 (read_known_tasks): Return void.
14223 (ada_build_task_list): Now static.
14224
70cd633e
AB
142252019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14226
14227 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14228 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14229
040b3e95
PW
142302019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14231
14232 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14233 variant for ada_tasks_pspace_data_handle and
14234 ada_tasks_inferior_data_handle.
14235 (ada_tasks_pspace_data_cleanup): New function.
14236 (ada_tasks_inferior_data_cleanup): New function.
14237
9409233b
TT
142382019-02-17 Tom Tromey <tom@tromey.com>
14239
14240 * macrotab.h (macro_source_fullname): Return a std::string.
14241 * macrotab.c (macro_include, check_for_redefinition)
14242 (macro_undef, macro_lookup_definition, foreach_macro)
14243 (foreach_macro_in_scope): Update.
14244 (macro_source_fullname): Return a std::string.
14245 * macrocmd.c (show_pp_source_pos): Update.
14246
6506371f
TT
142472019-02-17 Tom Tromey <tom@tromey.com>
14248
14249 * macrocmd.c (show_pp_source_pos): Style the file names.
14250
0c820d67
TT
142512019-02-17 Tom Tromey <tom@tromey.com>
14252
14253 PR tui/24197:
14254 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14255
a0087920
TT
142562019-02-17 Tom Tromey <tom@tromey.com>
14257
14258 * ada-lang.c (user_select_syms): Use filtered printing.
14259 * utils.c (wrap_style): New global.
14260 (desired_style): Remove.
14261 (emit_style_escape): Add stream parameter.
14262 (set_output_style, reset_terminal_style, prompt_for_continue):
14263 Update.
14264 (flush_wrap_buffer): Only flush gdb_stdout.
14265 (wrap_here): Set wrap_style.
14266 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14267 treat escape sequences as a character. Change when wrap buffer is
14268 flushed.
14269 (fputs_styled): Do not set the output style when the default is
14270 requested.
14271 * ui-style.h (struct ui_file_style) <is_default>: New method.
14272 * source.c (print_source_lines_base): Emit escape sequences in one
14273 piece.
14274
75ba10dc
JB
142752019-02-17 Joel Brobecker <brobecker@adacore.com>
14276
14277 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14278 integers and enumeration types.
14279
a2cd4f14
JB
142802019-02-17 Joel Brobecker <brobecker@adacore.com>
14281
14282 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14283 instead of lookup_symbol_in_language
14284 (do_exact_match): New function.
14285 (ada_get_symbol_name_matcher): Return do_exact_match when
14286 doing a verbatim match.
14287
485b851b
TT
142882019-02-15 Tom Tromey <tromey@adacore.com>
14289
14290 * ravenscar-thread.c (ravenscar_thread_target::resume)
14291 (ravenscar_thread_target::wait): Special case wildcard requests.
14292
0b790b1e
TT
142932019-02-15 Tom Tromey <tromey@adacore.com>
14294
14295 * ravenscar-thread.c (base_ptid): Remove.
14296 (struct ravenscar_thread_target) <close>: New method.
14297 <m_base_ptid>: New member.
14298 <update_inferior_ptid, active_task, task_is_currently_active,
14299 runtime_initialized>: Declare methods.
14300 <ravenscar_thread_target>: Add constructor.
14301 (ravenscar_thread_target::task_is_currently_active)
14302 (ravenscar_thread_target::update_inferior_ptid)
14303 (ravenscar_runtime_initialized): Rename. Now methods.
14304 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14305 (ravenscar_thread_target::update_thread_list): Update.
14306 (ravenscar_thread_target::active_task): Now method.
14307 (ravenscar_thread_target::store_registers)
14308 (ravenscar_thread_target::prepare_to_store)
14309 (ravenscar_thread_target::prepare_to_store)
14310 (ravenscar_thread_target::mourn_inferior): Update.
14311 (ravenscar_inferior_created): Use "new" to create target.
14312 (ravenscar_thread_target::get_ada_task_ptid): Update.
14313 (_initialize_ravenscar): Don't initialize base_ptid.
14314 (ravenscar_ops): Remove global.
14315
dea57a62
TT
143162019-02-15 Tom Tromey <tromey@adacore.com>
14317
14318 * target.h (push_target): Declare new overload.
14319 * target.c (push_target): New overload, taking an rvalue reference.
14320 * remote.c (remote_target::open_1): Use push_target overload.
14321 * corelow.c (core_target_open): Use push_target overload.
14322
989f3c58
TT
143232019-02-15 Tom Tromey <tromey@adacore.com>
14324
14325 * ravenscar-thread.c (is_ravenscar_task)
14326 (ravenscar_task_is_currently_active): Return bool.
14327 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14328 (_initialize_ravenscar): Remove "(void)".
14329 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14330 Return bool.
14331
6cbcc006
TT
143322019-02-15 Tom Tromey <tromey@adacore.com>
14333
14334 * ravenscar-thread.c (ravenscar_runtime_initializer)
14335 (has_ravenscar_runtime, get_running_thread_id)
14336 (ravenscar_thread_target::resume): Fix indentation.
14337
7657f14d
TT
143382019-02-15 Tom Tromey <tromey@adacore.com>
14339
14340 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14341 from ravenscar_arch_ops.
14342 (sparc_ravenscar_ops::fetch_registers)
14343 (sparc_ravenscar_ops::store_registers): Now methods.
14344 (sparc_ravenscar_prepare_to_store): Remove.
14345 (sparc_ravenscar_ops): Redefine.
14346 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14347 methods and destructor. Remove members.
14348 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14349 (ravenscar_thread_target::store_registers)
14350 (ravenscar_thread_target::prepare_to_store): Update.
14351 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14352 Remove.
14353 (struct ppc_ravenscar_powerpc_ops): Derive from
14354 ravenscar_arch_ops.
14355 (ppc_ravenscar_powerpc_ops::fetch_registers)
14356 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14357 (ppc_ravenscar_powerpc_ops): Redefine.
14358 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14359 (ppc_ravenscar_e500_ops::fetch_registers)
14360 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14361 (ppc_ravenscar_e500_ops): Redefine.
14362 * aarch64-ravenscar-thread.c
14363 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14364 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14365 (aarch64_ravenscar_fetch_registers)
14366 (aarch64_ravenscar_store_registers): Now methods.
14367 (aarch64_ravenscar_ops): Redefine.
14368
5b6ea500
TT
143692019-02-15 Tom Tromey <tromey@adacore.com>
14370
14371 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14372 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14373 (ravenscar_thread_target::stopped_by_watchpoint)
14374 (ravenscar_thread_target::stopped_data_address)
14375 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14376
e397fd39
TT
143772019-02-15 Tom Tromey <tromey@adacore.com>
14378
14379 * ravenscar-thread.c: Fix some typos.
14380
cc12f4a8
TT
143812019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14382 Tom Tromey <tromey@adacore.com>
14383
14384 * ada-lang.c (ada_exception_sal): Change addr_string to a
14385 std::string.
14386 (create_ada_exception_catchpoint): Update.
14387
5f486660
TT
143882019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14389 Tom Tromey <tromey@adacore.com>
14390
14391 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14392 (bp_location_ops): Remove.
14393 (base_breakpoint_allocate_location): Update.
14394 (free_bp_location): Update.
14395 * ada-lang.c (class ada_catchpoint_location)
14396 <ada_catchpoint_location>: Remove ops parameter.
14397 (ada_catchpoint_location_dtor): Remove.
14398 (ada_catchpoint_location_ops): Remove.
14399 (allocate_location_exception): Update.
14400 * breakpoint.h (struct bp_location_ops): Remove.
14401 (class bp_location) <bp_location>: Remove bp_location_ops
14402 parameter.
14403 <~bp_location>: Add destructor.
14404 <ops>: Remove.
14405
b671c7fb
TS
144062019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14407 Pedro Alves <palves@redhat.com>
14408
14409 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14410 'PATH_MAX'.
14411
8071c5ce
DM
144122019-02-14 David Michael <fedora.dm0@gmail.com>
14413 Samuel Thibault <samuel.thibault@gnu.org>
14414 Thomas Schwinge <thomas@codesourcery.com>
14415
14416 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14417 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14418
b1041ae0
TS
144192019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14420
924514e1
TS
14421 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14422 (check_empty): Use "const char *".
14423
c29ee8d4
TS
14424 * gnu-nat.c (gnu_nat_target::detach): Instead of
14425 'detach_inferior (pid)' call
14426 'detach_inferior (find_inferior_pid (pid))'.
14427
6c6ef69f
TS
14428 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14429 'nat/fork-inferior.o'.
14430 * gnu-nat.c: #include "nat/fork-inferior.h".
14431
2d0a338c
TS
14432 * gnu-nat.c (gnu_nat_target::detach): Instead of
14433 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14434 * gnu-nat.h: #include "inf-child.h".
14435 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14436 'i386_gnu_nat_target::fetch_registers'.
14437 (gnu_store_registers): Rename/move to
14438 'i386_gnu_nat_target::store_registers'.
14439
cabb5f06
TS
14440 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14441 * gnu-nat.h (mach_thread_info): New function.
14442 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14443
b1041ae0
TS
14444 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14445
2988d01e
KF
144462019-02-14 Frederic Konrad <konrad@adacore.com>
14447
14448 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14449
c559d709
JB
144502019-02-14 Joel Brobecker <brobecker@adacore.com>
14451
14452 * windows-nat.c (windows_add_thread): Add new parameter
14453 "main_thread_p" with default value set to false. Update
14454 function documentation as well as all callers.
14455 (windows_delete_thread): Likewise.
14456 (fake_create_process): Update call to windows_add_thread.
14457 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14458 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14459 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14460 call to windows_delete_thread.
14461
007024cc
SM
144622019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14463
14464 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14465
f62318e9
JB
144662019-02-12 John Baldwin <jhb@FreeBSD.org>
14467
14468 * symfile.c (find_separate_debug_file): Use canonical path of
14469 sysroot with child_path instead of gdb_sysroot if it is valid.
14470
cd4b7848
JB
144712019-02-12 John Baldwin <jhb@FreeBSD.org>
14472
14473 * symfile.c (find_separate_debug_file): Use child_path to
14474 determine if an object file is under a sysroot.
14475
efac4bfe
JB
144762019-02-12 John Baldwin <jhb@FreeBSD.org>
14477
14478 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14479 unittests/child-path-selftests.c.
14480 * common/pathstuff.c (child_path): New function.
14481 * common/pathstuff.h (child_path): New prototype.
14482 * unittests/child-path-selftests.c: New file.
14483
402d2bfe
JB
144842019-02-12 John Baldwin <jhb@FreeBSD.org>
14485
14486 * symfile.c (find_separate_debug_file): Look for separate debug
14487 files in debug directories under the sysroot.
14488
1ed9f74e
PW
144892019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14490
14491 * symtab.h (struct minimal_symbol data_p): New const method.
14492 (struct minimal_symbol text_p): Likewise.
14493 * symtab.c (output_source_filename): Use file name style
14494 to print file name.
14495 (print_symbol_info): Likewise.
14496 (print_msymbol_info): Use address style to print addresses.
14497 Use function name style to print executable text symbols.
14498 (expand_symtab_containing_pc): Use data_p.
14499 (find_pc_sect_compunit_symtab): Likewise.
14500
2636d81d
PW
145012019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14502
14503 * breakpoint.c (describe_other_breakpoints): Use address style
14504 to print addresses.
14505 (say_where): Likewise.
14506
ac8c53cc
PW
145072019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14508
14509 * ada-typeprint.c (print_func_type): Print function name
14510 style to print function name.
14511 * c-typeprint.c (c_print_type_1): Likewise.
14512
ea638c43
AH
145132019-02-11 Alan Hayward <alan.hayward@arm.com>
14514
14515 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14516 for execve.
14517
ab759ca8
PW
145182019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14519
14520 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14521 type_stack.
14522
aff29d1c
JB
145232019-02-10 Joel Brobecker <brobecker@adacore.com>
14524
14525 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14526 TYPE_CODE_REF types.
14527
617126bc
JW
145282019-02-08 Jim Wilson <jimw@sifive.com>
14529
14530 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14531 (riscv_linux_fregset): New.
14532 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14533
46e3ed7f
TT
145342019-02-07 Tom Tromey <tom@tromey.com>
14535
14536 * thread.c (thread_cancel_execution_command): Update.
14537 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14538 methods.
14539 (struct thread_fsm_ops): Remove.
14540 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14541 (thread_fsm_should_stop, thread_fsm_return_value)
14542 (thread_fsm_set_finished, thread_fsm_finished_p)
14543 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14544 Don't declare.
14545 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14546 * infrun.c (clear_proceed_status_thread)
14547 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14548 (print_stop_event): Update.
14549 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14550 Add constructor.
14551 (step_command_fsm_ops): Remove.
14552 (new_step_command_fsm): Remove.
14553 (step_1): Update.
14554 (step_command_fsm::should_stop): Rename from
14555 step_command_fsm_should_stop.
14556 (step_command_fsm::clean_up): Rename from
14557 step_command_fsm_clean_up.
14558 (step_command_fsm::do_async_reply_reason): Rename from
14559 step_command_fsm_async_reply_reason.
14560 (struct until_next_fsm): Inherit from thread_fsm. Add
14561 constructor.
14562 (until_next_fsm_ops): Remove.
14563 (new_until_next_fsm): Remove.
14564 (until_next_fsm::should_stop): Rename from
14565 until_next_fsm_should_stop.
14566 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14567 (until_next_fsm::do_async_reply_reason): Rename from
14568 until_next_fsm_async_reply_reason.
14569 (struct finish_command_fsm): Inherit from thread_fsm. Add
14570 constructor. Change type of breakpoint.
14571 (finish_command_fsm_ops): Remove.
14572 (new_finish_command_fsm): Remove.
14573 (finish_command_fsm::should_stop): Rename from
14574 finish_command_fsm_should_stop.
14575 (finish_command_fsm::clean_up): Rename from
14576 finish_command_fsm_clean_up.
14577 (finish_command_fsm::return_value): Rename from
14578 finish_command_fsm_return_value.
14579 (finish_command_fsm::do_async_reply_reason): Rename from
14580 finish_command_fsm_async_reply_reason.
14581 (finish_command): Update.
14582 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14583 Add constructor.
14584 (call_thread_fsm_ops): Remove.
14585 (call_thread_fsm::call_thread_fsm): Rename from
14586 new_call_thread_fsm.
14587 (call_thread_fsm::should_stop): Rename from
14588 call_thread_fsm_should_stop.
14589 (call_thread_fsm::should_notify_stop): Rename from
14590 call_thread_fsm_should_notify_stop.
14591 (run_inferior_call, call_function_by_hand_dummy): Update.
14592 * cli/cli-interp.c (should_print_stop_to_console): Update.
14593 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14594 Add constructor. Change type of location_breakpoint,
14595 caller_breakpoint.
14596 (until_break_fsm_ops): Remove.
14597 (new_until_break_fsm): Remove.
14598 (until_break_fsm::should_stop): Rename from
14599 until_break_fsm_should_stop.
14600 (until_break_fsm::clean_up): Rename from
14601 until_break_fsm_clean_up.
14602 (until_break_fsm::do_async_reply_reason): Rename from
14603 until_break_fsm_async_reply_reason.
14604 (until_break_command): Update.
14605 * thread-fsm.c: Remove.
14606 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14607
1a5c2598
TT
146082019-02-07 Tom Tromey <tom@tromey.com>
14609
14610 * yy-remap.h: Add include guard.
14611 * xtensa-tdep.h: Add include guard.
14612 * xcoffread.h: Rename include guard.
14613 * varobj-iter.h: Add include guard.
14614 * tui/tui.h: Rename include guard.
14615 * tui/tui-winsource.h: Rename include guard.
14616 * tui/tui-wingeneral.h: Rename include guard.
14617 * tui/tui-windata.h: Rename include guard.
14618 * tui/tui-win.h: Rename include guard.
14619 * tui/tui-stack.h: Rename include guard.
14620 * tui/tui-source.h: Rename include guard.
14621 * tui/tui-regs.h: Rename include guard.
14622 * tui/tui-out.h: Rename include guard.
14623 * tui/tui-layout.h: Rename include guard.
14624 * tui/tui-io.h: Rename include guard.
14625 * tui/tui-hooks.h: Rename include guard.
14626 * tui/tui-file.h: Rename include guard.
14627 * tui/tui-disasm.h: Rename include guard.
14628 * tui/tui-data.h: Rename include guard.
14629 * tui/tui-command.h: Rename include guard.
14630 * tic6x-tdep.h: Add include guard.
14631 * target/waitstatus.h: Rename include guard.
14632 * target/wait.h: Rename include guard.
14633 * target/target.h: Rename include guard.
14634 * target/resume.h: Rename include guard.
14635 * target-float.h: Rename include guard.
14636 * stabsread.h: Add include guard.
14637 * rs6000-tdep.h: Add include guard.
14638 * riscv-fbsd-tdep.h: Add include guard.
14639 * regformats/regdef.h: Rename include guard.
14640 * record.h: Rename include guard.
14641 * python/python.h: Rename include guard.
14642 * python/python-internal.h: Rename include guard.
14643 * python/py-stopevent.h: Rename include guard.
14644 * python/py-ref.h: Rename include guard.
14645 * python/py-record.h: Rename include guard.
14646 * python/py-record-full.h: Rename include guard.
14647 * python/py-record-btrace.h: Rename include guard.
14648 * python/py-instruction.h: Rename include guard.
14649 * python/py-events.h: Rename include guard.
14650 * python/py-event.h: Rename include guard.
14651 * procfs.h: Add include guard.
14652 * proc-utils.h: Add include guard.
14653 * p-lang.h: Add include guard.
14654 * or1k-tdep.h: Rename include guard.
14655 * observable.h: Rename include guard.
14656 * nto-tdep.h: Rename include guard.
14657 * nat/x86-linux.h: Rename include guard.
14658 * nat/x86-linux-dregs.h: Rename include guard.
14659 * nat/x86-gcc-cpuid.h: Add include guard.
14660 * nat/x86-dregs.h: Rename include guard.
14661 * nat/x86-cpuid.h: Rename include guard.
14662 * nat/ppc-linux.h: Rename include guard.
14663 * nat/mips-linux-watch.h: Rename include guard.
14664 * nat/linux-waitpid.h: Rename include guard.
14665 * nat/linux-ptrace.h: Rename include guard.
14666 * nat/linux-procfs.h: Rename include guard.
14667 * nat/linux-osdata.h: Rename include guard.
14668 * nat/linux-nat.h: Rename include guard.
14669 * nat/linux-namespaces.h: Rename include guard.
14670 * nat/linux-btrace.h: Rename include guard.
14671 * nat/glibc_thread_db.h: Rename include guard.
14672 * nat/gdb_thread_db.h: Rename include guard.
14673 * nat/gdb_ptrace.h: Rename include guard.
14674 * nat/fork-inferior.h: Rename include guard.
14675 * nat/amd64-linux-siginfo.h: Rename include guard.
14676 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14677 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14678 * nat/aarch64-linux.h: Rename include guard.
14679 * nat/aarch64-linux-hw-point.h: Rename include guard.
14680 * mn10300-tdep.h: Add include guard.
14681 * mips-linux-tdep.h: Add include guard.
14682 * mi/mi-parse.h: Rename include guard.
14683 * mi/mi-out.h: Rename include guard.
14684 * mi/mi-main.h: Rename include guard.
14685 * mi/mi-interp.h: Rename include guard.
14686 * mi/mi-getopt.h: Rename include guard.
14687 * mi/mi-console.h: Rename include guard.
14688 * mi/mi-common.h: Rename include guard.
14689 * mi/mi-cmds.h: Rename include guard.
14690 * mi/mi-cmd-break.h: Rename include guard.
14691 * m2-lang.h: Add include guard.
14692 * location.h: Rename include guard.
14693 * linux-record.h: Rename include guard.
14694 * linux-nat.h: Add include guard.
14695 * linux-fork.h: Add include guard.
14696 * i386-darwin-tdep.h: Rename include guard.
14697 * hppa-linux-offsets.h: Add include guard.
14698 * guile/guile.h: Rename include guard.
14699 * guile/guile-internal.h: Rename include guard.
14700 * gnu-nat.h: Rename include guard.
14701 * gdb-stabs.h: Rename include guard.
14702 * frv-tdep.h: Add include guard.
14703 * f-lang.h: Add include guard.
14704 * event-loop.h: Add include guard.
14705 * darwin-nat.h: Rename include guard.
14706 * cp-abi.h: Rename include guard.
14707 * config/sparc/nm-sol2.h: Rename include guard.
14708 * config/nm-nto.h: Rename include guard.
14709 * config/nm-linux.h: Add include guard.
14710 * config/i386/nm-i386gnu.h: Rename include guard.
14711 * config/djgpp/nl_types.h: Rename include guard.
14712 * config/djgpp/langinfo.h: Rename include guard.
14713 * compile/gcc-cp-plugin.h: Add include guard.
14714 * compile/gcc-c-plugin.h: Add include guard.
14715 * compile/compile.h: Rename include guard.
14716 * compile/compile-object-run.h: Rename include guard.
14717 * compile/compile-object-load.h: Rename include guard.
14718 * compile/compile-internal.h: Rename include guard.
14719 * compile/compile-cplus.h: Rename include guard.
14720 * compile/compile-c.h: Rename include guard.
14721 * common/xml-utils.h: Rename include guard.
14722 * common/x86-xstate.h: Rename include guard.
14723 * common/version.h: Rename include guard.
14724 * common/vec.h: Rename include guard.
14725 * common/tdesc.h: Rename include guard.
14726 * common/selftest.h: Rename include guard.
14727 * common/scoped_restore.h: Rename include guard.
14728 * common/scoped_mmap.h: Rename include guard.
14729 * common/scoped_fd.h: Rename include guard.
14730 * common/safe-iterator.h: Rename include guard.
14731 * common/run-time-clock.h: Rename include guard.
14732 * common/refcounted-object.h: Rename include guard.
14733 * common/queue.h: Rename include guard.
14734 * common/ptid.h: Rename include guard.
14735 * common/print-utils.h: Rename include guard.
14736 * common/preprocessor.h: Rename include guard.
14737 * common/pathstuff.h: Rename include guard.
14738 * common/observable.h: Rename include guard.
14739 * common/netstuff.h: Rename include guard.
14740 * common/job-control.h: Rename include guard.
14741 * common/host-defs.h: Rename include guard.
14742 * common/gdb_wait.h: Rename include guard.
14743 * common/gdb_vecs.h: Rename include guard.
14744 * common/gdb_unlinker.h: Rename include guard.
14745 * common/gdb_unique_ptr.h: Rename include guard.
14746 * common/gdb_tilde_expand.h: Rename include guard.
14747 * common/gdb_sys_time.h: Rename include guard.
14748 * common/gdb_string_view.h: Rename include guard.
14749 * common/gdb_splay_tree.h: Rename include guard.
14750 * common/gdb_setjmp.h: Rename include guard.
14751 * common/gdb_ref_ptr.h: Rename include guard.
14752 * common/gdb_optional.h: Rename include guard.
14753 * common/gdb_locale.h: Rename include guard.
14754 * common/gdb_assert.h: Rename include guard.
14755 * common/filtered-iterator.h: Rename include guard.
14756 * common/filestuff.h: Rename include guard.
14757 * common/fileio.h: Rename include guard.
14758 * common/environ.h: Rename include guard.
14759 * common/common-utils.h: Rename include guard.
14760 * common/common-types.h: Rename include guard.
14761 * common/common-regcache.h: Rename include guard.
14762 * common/common-inferior.h: Rename include guard.
14763 * common/common-gdbthread.h: Rename include guard.
14764 * common/common-exceptions.h: Rename include guard.
14765 * common/common-defs.h: Rename include guard.
14766 * common/common-debug.h: Rename include guard.
14767 * common/cleanups.h: Rename include guard.
14768 * common/buffer.h: Rename include guard.
14769 * common/btrace-common.h: Rename include guard.
14770 * common/break-common.h: Rename include guard.
14771 * cli/cli-utils.h: Rename include guard.
14772 * cli/cli-style.h: Rename include guard.
14773 * cli/cli-setshow.h: Rename include guard.
14774 * cli/cli-script.h: Rename include guard.
14775 * cli/cli-interp.h: Rename include guard.
14776 * cli/cli-decode.h: Rename include guard.
14777 * cli/cli-cmds.h: Rename include guard.
14778 * charset-list.h: Add include guard.
14779 * buildsym-legacy.h: Rename include guard.
14780 * bfin-tdep.h: Add include guard.
14781 * ax.h: Rename include guard.
14782 * arm-linux-tdep.h: Add include guard.
14783 * arm-fbsd-tdep.h: Add include guard.
14784 * arch/xtensa.h: Rename include guard.
14785 * arch/tic6x.h: Add include guard.
14786 * arch/i386.h: Add include guard.
14787 * arch/arm.h: Rename include guard.
14788 * arch/arm-linux.h: Rename include guard.
14789 * arch/arm-get-next-pcs.h: Rename include guard.
14790 * arch/amd64.h: Add include guard.
14791 * arch/aarch64-insn.h: Rename include guard.
14792 * arch-utils.h: Rename include guard.
14793 * annotate.h: Add include guard.
14794 * amd64-darwin-tdep.h: Rename include guard.
14795 * aarch64-linux-tdep.h: Add include guard.
14796 * aarch64-fbsd-tdep.h: Add include guard.
14797 * aarch32-linux-nat.h: Add include guard.
14798
ab9268d2
PW
147992019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14800
14801 * macrotab.c (macro_define_internal): New function that
14802 factorizes macro_define_object_internal and macro_define_function
14803 code.
14804 (macro_define_object_internal): Use macro_define_internal.
14805 (macro_define_function): Likewise.
14806
bb0da2b4
PW
148072019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14808
14809 * macrocmd.c (extract_identifier): Return
14810 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14811 callers.
14812
424eb552
JB
148132019-02-06 John Baldwin <jhb@FreeBSD.org>
14814
14815 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14816
1688cb29
TT
148172019-02-05 Tom Tromey <tom@tromey.com>
14818
14819 * target.c (target_stack::unpush): Move assertion earlier.
14820
b5eba2d8
TT
148212019-01-30 Tom Tromey <tom@tromey.com>
14822
14823 PR python/23615:
14824 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14825 (gdbpy_parse_and_eval): Likewise.
14826 * python/python-internal.h (gdbpy_allow_threads): New class.
14827
7054e2ff
JB
148282019-01-28 John Baldwin <jhb@FreeBSD.org>
14829
14830 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14831 (aarch64_fbsd_fpregmap): Move earlier.
14832 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14833 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14834 instead of individual calls to trad_frame_set_reg_addr.
14835 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14836 earlier.
14837 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14838 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14839 instead of individual calls to trad_frame_set_reg_addr.
14840
36c25ffa
AH
148412019-01-28 Alan Hayward <alan.hayward@arm.com>
14842
14843 * CONTRIBUTE: Replace contribution list with wiki link.
14844
a0707f3c
TT
148452019-01-25 Tom Tromey <tom@tromey.com>
14846
14847 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14848
0747795c
TT
148492019-01-25 Tom Tromey <tom@tromey.com>
14850
14851 * xtensa-linux-nat.c: Fix common/ includes.
14852 * xml-support.h: Fix common/ includes.
14853 * xml-support.c: Fix common/ includes.
14854 * x86-linux-nat.c: Fix common/ includes.
14855 * windows-nat.c: Fix common/ includes.
14856 * varobj.h: Fix common/ includes.
14857 * varobj.c: Fix common/ includes.
14858 * value.c: Fix common/ includes.
14859 * valops.c: Fix common/ includes.
14860 * utils.c: Fix common/ includes.
14861 * unittests/xml-utils-selftests.c: Fix common/ includes.
14862 * unittests/utils-selftests.c: Fix common/ includes.
14863 * unittests/unpack-selftests.c: Fix common/ includes.
14864 * unittests/tracepoint-selftests.c: Fix common/ includes.
14865 * unittests/style-selftests.c: Fix common/ includes.
14866 * unittests/string_view-selftests.c: Fix common/ includes.
14867 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14868 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14869 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14870 * unittests/rsp-low-selftests.c: Fix common/ includes.
14871 * unittests/parse-connection-spec-selftests.c: Fix common/
14872 includes.
14873 * unittests/optional-selftests.c: Fix common/ includes.
14874 * unittests/offset-type-selftests.c: Fix common/ includes.
14875 * unittests/observable-selftests.c: Fix common/ includes.
14876 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14877 * unittests/memrange-selftests.c: Fix common/ includes.
14878 * unittests/memory-map-selftests.c: Fix common/ includes.
14879 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14880 * unittests/function-view-selftests.c: Fix common/ includes.
14881 * unittests/environ-selftests.c: Fix common/ includes.
14882 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14883 * unittests/common-utils-selftests.c: Fix common/ includes.
14884 * unittests/cli-utils-selftests.c: Fix common/ includes.
14885 * unittests/array-view-selftests.c: Fix common/ includes.
14886 * ui-file.c: Fix common/ includes.
14887 * tui/tui-io.c: Fix common/ includes.
14888 * tracepoint.h: Fix common/ includes.
14889 * tracepoint.c: Fix common/ includes.
14890 * tracefile-tfile.c: Fix common/ includes.
14891 * top.h: Fix common/ includes.
14892 * top.c: Fix common/ includes.
14893 * thread.c: Fix common/ includes.
14894 * target/waitstatus.h: Fix common/ includes.
14895 * target/waitstatus.c: Fix common/ includes.
14896 * target.h: Fix common/ includes.
14897 * target.c: Fix common/ includes.
14898 * target-memory.c: Fix common/ includes.
14899 * target-descriptions.c: Fix common/ includes.
14900 * symtab.h: Fix common/ includes.
14901 * symfile.c: Fix common/ includes.
14902 * stap-probe.c: Fix common/ includes.
14903 * spu-linux-nat.c: Fix common/ includes.
14904 * sparc-nat.c: Fix common/ includes.
14905 * source.c: Fix common/ includes.
14906 * solib.c: Fix common/ includes.
14907 * solib-target.c: Fix common/ includes.
14908 * ser-unix.c: Fix common/ includes.
14909 * ser-tcp.c: Fix common/ includes.
14910 * ser-pipe.c: Fix common/ includes.
14911 * ser-base.c: Fix common/ includes.
14912 * selftest-arch.c: Fix common/ includes.
14913 * s12z-tdep.c: Fix common/ includes.
14914 * rust-exp.y: Fix common/ includes.
14915 * rs6000-aix-tdep.c: Fix common/ includes.
14916 * riscv-tdep.c: Fix common/ includes.
14917 * remote.c: Fix common/ includes.
14918 * remote-notif.h: Fix common/ includes.
14919 * remote-fileio.h: Fix common/ includes.
14920 * remote-fileio.c: Fix common/ includes.
14921 * regcache.h: Fix common/ includes.
14922 * regcache.c: Fix common/ includes.
14923 * record-btrace.c: Fix common/ includes.
14924 * python/python.c: Fix common/ includes.
14925 * python/py-type.c: Fix common/ includes.
14926 * python/py-inferior.c: Fix common/ includes.
14927 * progspace.h: Fix common/ includes.
14928 * producer.c: Fix common/ includes.
14929 * procfs.c: Fix common/ includes.
14930 * proc-api.c: Fix common/ includes.
14931 * printcmd.c: Fix common/ includes.
14932 * ppc-linux-nat.c: Fix common/ includes.
14933 * parser-defs.h: Fix common/ includes.
14934 * osdata.c: Fix common/ includes.
14935 * obsd-nat.c: Fix common/ includes.
14936 * nat/x86-linux.c: Fix common/ includes.
14937 * nat/x86-linux-dregs.c: Fix common/ includes.
14938 * nat/x86-dregs.h: Fix common/ includes.
14939 * nat/x86-dregs.c: Fix common/ includes.
14940 * nat/ppc-linux.c: Fix common/ includes.
14941 * nat/mips-linux-watch.h: Fix common/ includes.
14942 * nat/mips-linux-watch.c: Fix common/ includes.
14943 * nat/linux-waitpid.c: Fix common/ includes.
14944 * nat/linux-ptrace.h: Fix common/ includes.
14945 * nat/linux-ptrace.c: Fix common/ includes.
14946 * nat/linux-procfs.c: Fix common/ includes.
14947 * nat/linux-personality.c: Fix common/ includes.
14948 * nat/linux-osdata.c: Fix common/ includes.
14949 * nat/linux-namespaces.c: Fix common/ includes.
14950 * nat/linux-btrace.h: Fix common/ includes.
14951 * nat/linux-btrace.c: Fix common/ includes.
14952 * nat/fork-inferior.c: Fix common/ includes.
14953 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14954 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14955 * nat/aarch64-linux.c: Fix common/ includes.
14956 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14957 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14958 * namespace.h: Fix common/ includes.
14959 * mips-linux-tdep.c: Fix common/ includes.
14960 * minsyms.c: Fix common/ includes.
14961 * mi/mi-parse.h: Fix common/ includes.
14962 * mi/mi-main.c: Fix common/ includes.
14963 * mi/mi-cmd-env.c: Fix common/ includes.
14964 * memrange.h: Fix common/ includes.
14965 * memattr.c: Fix common/ includes.
14966 * maint.h: Fix common/ includes.
14967 * maint.c: Fix common/ includes.
14968 * main.c: Fix common/ includes.
14969 * machoread.c: Fix common/ includes.
14970 * location.c: Fix common/ includes.
14971 * linux-thread-db.c: Fix common/ includes.
14972 * linux-nat.c: Fix common/ includes.
14973 * linux-fork.c: Fix common/ includes.
14974 * inline-frame.c: Fix common/ includes.
14975 * infrun.c: Fix common/ includes.
14976 * inflow.c: Fix common/ includes.
14977 * inferior.h: Fix common/ includes.
14978 * inferior.c: Fix common/ includes.
14979 * infcmd.c: Fix common/ includes.
14980 * inf-ptrace.c: Fix common/ includes.
14981 * inf-child.c: Fix common/ includes.
14982 * ia64-linux-nat.c: Fix common/ includes.
14983 * i387-tdep.c: Fix common/ includes.
14984 * i386-tdep.c: Fix common/ includes.
14985 * i386-linux-tdep.c: Fix common/ includes.
14986 * i386-linux-nat.c: Fix common/ includes.
14987 * i386-go32-tdep.c: Fix common/ includes.
14988 * i386-fbsd-tdep.c: Fix common/ includes.
14989 * i386-fbsd-nat.c: Fix common/ includes.
14990 * guile/scm-type.c: Fix common/ includes.
14991 * guile/guile.c: Fix common/ includes.
14992 * go32-nat.c: Fix common/ includes.
14993 * gnu-nat.c: Fix common/ includes.
14994 * gdbthread.h: Fix common/ includes.
14995 * gdbarch-selftests.c: Fix common/ includes.
14996 * gdb_usleep.c: Fix common/ includes.
14997 * gdb_select.h: Fix common/ includes.
14998 * gdb_bfd.c: Fix common/ includes.
14999 * gcore.c: Fix common/ includes.
15000 * fork-child.c: Fix common/ includes.
15001 * findvar.c: Fix common/ includes.
15002 * fbsd-nat.c: Fix common/ includes.
15003 * event-top.c: Fix common/ includes.
15004 * event-loop.c: Fix common/ includes.
15005 * dwarf2read.c: Fix common/ includes.
15006 * dwarf2loc.c: Fix common/ includes.
15007 * dwarf2-frame.c: Fix common/ includes.
15008 * dwarf-index-cache.c: Fix common/ includes.
15009 * dtrace-probe.c: Fix common/ includes.
15010 * disasm-selftests.c: Fix common/ includes.
15011 * defs.h: Fix common/ includes.
15012 * csky-tdep.c: Fix common/ includes.
15013 * cp-valprint.c: Fix common/ includes.
15014 * cp-support.h: Fix common/ includes.
15015 * cp-support.c: Fix common/ includes.
15016 * corelow.c: Fix common/ includes.
15017 * completer.h: Fix common/ includes.
15018 * completer.c: Fix common/ includes.
15019 * compile/compile.c: Fix common/ includes.
15020 * compile/compile-loc2c.c: Fix common/ includes.
15021 * compile/compile-cplus-types.c: Fix common/ includes.
15022 * compile/compile-cplus-symbols.c: Fix common/ includes.
15023 * command.h: Fix common/ includes.
15024 * cli/cli-dump.c: Fix common/ includes.
15025 * cli/cli-cmds.c: Fix common/ includes.
15026 * charset.c: Fix common/ includes.
15027 * build-id.c: Fix common/ includes.
15028 * btrace.h: Fix common/ includes.
15029 * btrace.c: Fix common/ includes.
15030 * breakpoint.h: Fix common/ includes.
15031 * breakpoint.c: Fix common/ includes.
15032 * ax.h:
15033 (enum agent_op): Fix common/ includes.
15034 * ax-general.c (struct aop_map): Fix common/ includes.
15035 * ax-gdb.c: Fix common/ includes.
15036 * auxv.c: Fix common/ includes.
15037 * auto-load.c: Fix common/ includes.
15038 * arm-tdep.c: Fix common/ includes.
15039 * arch/riscv.c: Fix common/ includes.
15040 * arch/ppc-linux-common.c: Fix common/ includes.
15041 * arch/i386.c: Fix common/ includes.
15042 * arch/arm.c: Fix common/ includes.
15043 * arch/arm-linux.c: Fix common/ includes.
15044 * arch/arm-get-next-pcs.c: Fix common/ includes.
15045 * arch/amd64.c: Fix common/ includes.
15046 * arch/aarch64.c: Fix common/ includes.
15047 * arch/aarch64-insn.c: Fix common/ includes.
15048 * arch-utils.c: Fix common/ includes.
15049 * amd64-windows-tdep.c: Fix common/ includes.
15050 * amd64-tdep.c: Fix common/ includes.
15051 * amd64-sol2-tdep.c: Fix common/ includes.
15052 * amd64-obsd-tdep.c: Fix common/ includes.
15053 * amd64-nbsd-tdep.c: Fix common/ includes.
15054 * amd64-linux-tdep.c: Fix common/ includes.
15055 * amd64-linux-nat.c: Fix common/ includes.
15056 * amd64-fbsd-tdep.c: Fix common/ includes.
15057 * amd64-fbsd-nat.c: Fix common/ includes.
15058 * amd64-dicos-tdep.c: Fix common/ includes.
15059 * amd64-darwin-tdep.c: Fix common/ includes.
15060 * agent.c: Fix common/ includes.
15061 * ada-lang.h: Fix common/ includes.
15062 * ada-lang.c: Fix common/ includes.
15063 * aarch64-tdep.c: Fix common/ includes.
15064
2f5c153e
TT
150652019-01-25 Tom Tromey <tom@tromey.com>
15066
15067 * common/create-version.sh: Use common/version.h.
15068
adc6a863
PA
150692019-01-24 Pedro Alves <palves@redhat.com>
15070
15071 * infrun.c (signal_stop, signal_print, signal_program)
15072 (signal_catch, signal_pass): Now arrays instead of pointers.
15073 (update_signals_program_target, do_target_resume)
15074 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15075 * linux-nat.c (linux_nat_target::pass_signals)
15076 (linux_nat_target::create_inferior, linux_nat_target::attach):
15077 Adjust.
15078 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15079 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15080 * procfs.c (procfs_target::pass_signals): Adjust.
15081 * record-full.c (record_full_target::resume): Adjust.
15082 * remote.c (remote_target::pass_signals)
15083 (remote_target::program_signals): Adjust.
15084 * target-debug.h (target_debug_print_signals): Now takes a
15085 gdb::array_view as parameter. Adjust.
15086 * target.h (target_ops) <pass_signals, program_signals>: Replace
15087 pointer and length parameters with gdb::array_view.
15088 (target_pass_signals, target_program_signals): Likewise.
15089 * target-delegates.c: Regenerate.
15090
3046d67a
PA
150912019-01-24 Pedro Alves <palves@redhat.com>
15092
15093 * common/forward-scope-exit.h
15094 (forward_scope_exit::forward_scope_exit): Pass arguments to
15095 m_bind_function directly, instead of creating a std::bind and
15096 copying that.
15097
353229bf
AH
150982019-01-24 Alan Hayward <alan.hayward@arm.com>
15099
15100 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15101 for static members.
15102 (pass_in_v_vfp_candidate): Likewise.
15103
311dc83a
TT
151042019-01-23 Tom Tromey <tom@tromey.com>
15105 Pedro Alves <palves@redhat.com>
15106
15107 * regcache.c (class regcache_invalidator): Remove.
15108 (regcache::raw_write): Use make_scope_exit.
15109
296bd123
TT
151102019-01-23 Tom Tromey <tom@tromey.com>
15111
15112 * ui-out.h (class ui_out_emit_type): Update comment.
15113
979a0d13
TT
151142019-01-23 Tom Tromey <tom@tromey.com>
15115
15116 * infrun.c (fetch_inferior_event): Update comment.
15117
d238133d
TT
151182019-01-23 Tom Tromey <tom@tromey.com>
15119 Pedro Alves <palves@redhat.com>
15120
15121 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15122 parameter.
15123 (fetch_inferior_event): Use SCOPE_EXIT.
15124
15125
9885e6bb
TT
151262019-01-23 Tom Tromey <tom@tromey.com>
15127 Pedro Alves <palves@redhat.com>
15128
15129 * infrun.c (disable_thread_events): Delete.
15130 (stop_all_threads): Use SCOPE_EXIT.
15131
286526c1
TT
151322019-01-23 Tom Tromey <tom@tromey.com>
15133 Pedro Alves <palves@redhat.com>
15134
15135 * symfile.c: Include forward-scope-exit.h.
15136 (clear_symtab_users_cleanup): Replace forward declaration with
15137 a FORWARD_SCOPE_EXIT.
15138 (syms_from_objfile_1): Use the forward_scope_exit and
15139 gdb::optional instead of cleanup_function.
15140 (reread_symbols): Use the forward_scope_exit instead of
15141 cleanup_function.
15142 (clear_symtab_users_cleanup): Remove function.
15143
1db93f14
TT
151442019-01-23 Tom Tromey <tom@tromey.com>
15145 Pedro Alves <palves@redhat.com>
15146
15147 * linux-nat.c: Include scope-exit.h.
15148 (cleanup_target_stop): Remove.
15149 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15150 SCOPE_EXIT.
15151
2cc83d1e
TT
151522019-01-23 Tom Tromey <tom@tromey.com>
15153 Pedro Alves <palves@redhat.com>
15154
15155 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15156 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15157
694c6bf5
TT
151582019-01-23 Tom Tromey <tom@tromey.com>
15159 Andrew Burgess <andrew.burgess@embecosm.com>
15160 Pedro Alves <palves@redhat.com>
15161
15162 * infrun.c (fetch_inferior_event): Use scope_exit.
15163 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15164 * top.c (execute_command): Use scope_exit.
15165 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15166 * utils.c (do_bpstat_clear_actions_cleanup)
15167 (make_bpstat_clear_actions_cleanup): Remove.
15168
4c41382a
TT
151692019-01-23 Tom Tromey <tom@tromey.com>
15170 Pedro Alves <palves@redhat.com>
15171
15172 * infrun.c: Include "common/scope-exit.h"
15173 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15174 (wait_for_inferior): Use SCOPE_EXIT.
15175 (fetch_inferior_event): Use scope_exit.
15176
89f8fb50
TT
151772019-01-23 Tom Tromey <tom@tromey.com>
15178 Pedro Alves <palves@redhat.com>
15179
15180 * breakpoint.c (create_breakpoint): Remove cleanup.
15181
5419bdae
TT
151822019-01-23 Tom Tromey <tom@tromey.com>
15183 Andrew Burgess <andrew.burgess@embecosm.com>
15184 Pedro Alves <palves@redhat.com>
15185
e587ef42
PA
151862019-01-23 Pedro Alves <palves@redhat.com>
15187
15188 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15189
77f0e74c
PA
151902019-01-23 Pedro Alves <palves@redhat.com>
15191 Andrew Burgess <andrew.burgess@embecosm.com>
15192
15193 * gdbthread.h: Include "common/forward-scope-exit.h".
15194 (scoped_finish_thread_state): Redefine custom class in terms of
15195 forward_scope_exit.
15196
5b9b3e53
PA
151972019-01-23 Pedro Alves <palves@redhat.com>
15198 Andrew Burgess <andrew.burgess@embecosm.com>
15199
15200 * common/forward-scope-exit.h: New file.
15201
54b65c9b
PA
152022019-01-23 Pedro Alves <palves@redhat.com>
15203 Andrew Burgess <andrew.burgess@embecosm.com>
15204 Tom Tromey <tom@tromey.com>
15205
15206 * common/scope-exit.h: New file.
15207
cf08fb29
PA
152082019-01-23 Pedro Alves <palves@redhat.com>
15209
15210 * common/preprocessor.h (ESC): Rename to ...
15211 (ESC_PARENS): ... this.
15212 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15213 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15214
ae73e2e2
TT
152152019-01-23 Tom Tromey <tom@tromey.com>
15216
15217 * language.h (class scoped_switch_to_sym_language_if_auto):
15218 Initialize m_lang in both cases.
15219
6594e122
AH
152202019-01-23 Alan Hayward <alan.hayward@arm.com>
15221
15222 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15223 with XCNEW.
15224
a7c9855d
TT
152252019-01-22 Tom Tromey <tom@tromey.com>
15226
15227 * corelow.c: Do not include sys/file.h.
15228
93cc1d53
TT
152292019-01-22 Tom Tromey <tom@tromey.com>
15230
15231 * tui/tui-wingeneral.h: Include gdb_curses.h.
15232
38561778
TT
152332019-01-22 Tom Tromey <tom@tromey.com>
15234
15235 * source-cache.h (class source_cache) <get_source_lines,
15236 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15237
37b3ab5b
TT
152382019-01-22 Tom Tromey <tom@tromey.com>
15239
15240 * remote-fileio.h (struct remote_target): Declare.
15241
3fabc016
TT
152422019-01-22 Tom Tromey <tom@tromey.com>
15243
15244 * python/py-arch.c: Do not include py-ref.h.
15245 * python/py-bpevent.c: Do not include py-ref.h.
15246 * python/py-cmd.c: Do not include py-ref.h.
15247 * python/py-continueevent.c: Do not include py-ref.h.
15248 * python/py-event.h: Do not include py-ref.h.
15249 * python/py-evtregistry.c: Do not include py-ref.h.
15250 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15251 * python/py-frame.c: Do not include py-ref.h.
15252 * python/py-framefilter.c: Do not include py-ref.h.
15253 * python/py-function.c: Do not include py-ref.h.
15254 * python/py-infevents.c: Do not include py-ref.h.
15255 * python/py-linetable.c: Do not include py-ref.h.
15256 * python/py-objfile.c: Do not include py-ref.h.
15257 * python/py-param.c: Do not include py-ref.h.
15258 * python/py-prettyprint.c: Do not include py-ref.h.
15259 * python/py-progspace.c: Do not include py-ref.h.
15260 * python/py-symbol.c: Do not include py-ref.h.
15261 * python/py-symtab.c: Do not include py-ref.h.
15262 * python/py-type.c: Do not include py-ref.h.
15263 * python/py-unwind.c: Do not include py-ref.h.
15264 * python/py-utils.c: Do not include py-ref.h.
15265 * python/py-value.c: Do not include py-ref.h.
15266 * python/py-varobj.c: Do not include py-ref.h.
15267 * python/py-xmethods.c: Do not include py-ref.h.
15268 * python/python.c: Do not include py-ref.h.
15269 * varobj.c: Do not include py-ref.h.
15270
6b4d7774
TT
152712019-01-22 Tom Tromey <tom@tromey.com>
15272
15273 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15274 keyword for bcache.
15275
7af7e9b5
TT
152762019-01-22 Tom Tromey <tom@tromey.com>
15277
15278 * compile/compile-cplus-types.c: Remove a comment by #include.
15279
951d1049
TT
152802019-01-22 Tom Tromey <tom@tromey.com>
15281
15282 * compile/gcc-c-plugin.h: Include compile-internal.h.
15283
d65d5705
TT
152842019-01-22 Tom Tromey <tom@tromey.com>
15285
15286 * stabsread.c (EXTERN): Do not define.
15287 (symnum, next_symbol_text_func, processing_gcc_compilation)
15288 (within_function, global_sym_chain, global_stabs)
15289 (previous_stab_code, this_object_header_files)
15290 (n_this_object_header_files)
15291 (n_allocated_this_object_header_files): Define.
15292 * stabsread.h (EXTERN): Never define. Use "extern".
15293
b6fb1ee5
PW
152942019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15295
15296 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15297 history_value.
15298
be6d4f74
TT
152992019-01-21 Tom Tromey <tom@tromey.com>
15300
15301 * ui-out.c: Fix includes.
15302 * tui/tui-source.c: Fix includes.
15303 * target.c: Fix includes.
15304 * remote.c: Fix includes.
15305 * regcache.c: Fix includes.
15306 * python/py-block.c: Fix includes.
15307 * printcmd.c: Fix includes.
15308 * or1k-tdep.c: Fix includes.
15309 * mi/mi-main.c: Fix includes.
15310 * m32r-tdep.c: Fix includes.
15311 * csky-tdep.c: Fix includes.
15312 * compile/compile-cplus-types.c: Fix includes.
15313 * cli/cli-interp.c: Fix includes.
15314
73021deb
AH
153152019-01-21 Alan Hayward <alan.hayward@arm.com>
15316
15317 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15318 for padding.
15319
7932255d
TT
153202019-01-16 Tom Tromey <tom@tromey.com>
15321
15322 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15323 earlier.
15324 (struct objfile) <msymbols_range>: Move from top level.
15325 <msymbols>: New method.
15326 (class objfile_msymbols): Remove.
15327 * symtab.c (default_collect_symbol_completion_matches_break_on):
15328 Update.
15329 * symmisc.c (dump_msymbols): Update.
15330 * stabsread.c (scan_file_globals): Update.
15331 * objc-lang.c (info_selectors_command, info_classes_command)
15332 (find_methods): Update.
15333 * minsyms.c (find_solib_trampoline_target): Update.
15334 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15335 * coffread.c (coff_symfile_read): Update.
15336 * ada-lang.c (ada_lookup_simple_minsym)
15337 (ada_collect_symbol_completion_matches): Update.
15338
604b1bfb
TT
153392019-01-16 Tom Tromey <tom@tromey.com>
15340
15341 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15342 type. Remove no-argument constructor.
15343 <iterator::operator++>: Simplify.
15344 <begin>: Update.
15345 <end>: Use minimal_symbol_count.
15346
f252c6d5
TT
153472019-01-16 Tom Tromey <tom@tromey.com>
15348
15349 * objfiles.h (struct objfile) <psymtabs>: New method.
15350 (class objfile_psymtabs): Remove.
15351 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15352 typedef.
15353 <range>: New method.
15354 (require_partial_symbols): Change return type.
15355 * psymtab.c (require_partial_symbols)
15356 (psym_expand_symtabs_matching): Update.
15357 * mdebugread.c (parse_partial_symbols): Update.
15358 * dbxread.c (dbx_end_psymtab): Update.
15359
b669c953
TT
153602019-01-15 Tom Tromey <tom@tromey.com>
15361
15362 * symtab.c (lookup_objfile_from_block)
15363 (lookup_symbol_in_objfile_symtabs)
15364 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15365 (find_line_symtab, info_sources_command)
15366 (default_collect_symbol_completion_matches_break_on)
15367 (make_source_files_completion_list): Update.
15368 * symmisc.c (print_objfile_statistics, dump_objfile)
15369 (maintenance_print_symbols, maintenance_info_symtabs)
15370 (maintenance_check_symtabs, maintenance_info_line_tables):
15371 Update.
15372 * source.c (select_source_symtab)
15373 (forget_cached_source_info_for_objfile): Update.
15374 * objfiles.h (class objfile_compunits): Remove.
15375 (struct objfile) <compunits_range>: New typedef.
15376 (compunits): New method.
15377 * objfiles.c (objfile_relocate1): Update.
15378 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15379 * maint.c (count_symtabs_and_blocks): Update.
15380 * linespec.c (iterate_over_all_matching_symtabs): Update.
15381 * cp-support.c (add_symbol_overload_list_qualified): Update.
15382 * coffread.c (coff_symtab_read): Update.
15383 * ada-lang.c (add_nonlocal_symbols)
15384 (ada_collect_symbol_completion_matches)
15385 (ada_add_global_exceptions): Update.
15386
7e955d83
TT
153872019-01-15 Tom Tromey <tom@tromey.com>
15388
15389 * progspace.h (program_space) <objfiles_safe_range>: New
15390 typedef.
15391 <objfiles_safe>: New method.
15392 * objfiles.h (class all_objfiles_safe): Remove.
15393 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15394 * jit.c (jit_inferior_exit_hook): Update.
15395
2030c079
TT
153962019-01-17 Tom Tromey <tom@tromey.com>
15397
15398 * progspace.h (program_space) <objfiles_range>: New typedef.
15399 <objfiles>: New method.
15400 <objfiles_head>: Rename from objfiles.
15401 (object_files): Update.
15402 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15403 * guile/scm-pretty-print.c
15404 (ppscm_find_pretty_printer_from_objfiles): Update.
15405 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15406 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15407 Update.
15408 * python/py-progspace.c (pspy_get_objfiles): Update.
15409 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15410 Update.
15411 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15412 (objfpy_lookup_objfile_by_build_id): Update.
15413 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15414 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15415 Update.
15416 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15417 (expand_symtab_containing_pc, lookup_objfile_from_block)
15418 (lookup_static_symbol, basic_lookup_transparent_type)
15419 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15420 (find_line_symtab, info_sources_command)
15421 (default_collect_symbol_completion_matches_break_on)
15422 (make_source_files_completion_list, find_main_name): Update.
15423 * symmisc.c (print_symbol_bcache_statistics)
15424 (print_objfile_statistics, maintenance_print_symbols)
15425 (maintenance_print_msymbols, maintenance_print_objfiles)
15426 (maintenance_info_symtabs, maintenance_check_symtabs)
15427 (maintenance_expand_symtabs, maintenance_info_line_tables):
15428 Update.
15429 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15430 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15431 (map_overlay_command, unmap_overlay_command)
15432 (simple_overlay_update, expand_symtabs_matching)
15433 (map_symbol_filenames): Update.
15434 * symfile-debug.c (set_debug_symfile): Update.
15435 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15436 Update.
15437 * source.c (select_source_symtab, forget_cached_source_info):
15438 Update.
15439 * solib.c (solib_read_symbols): Update.
15440 * solib-spu.c (append_ocl_sos): Update.
15441 * psymtab.c (maintenance_print_psymbols)
15442 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15443 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15444 * printcmd.c (info_symbol_command): Update.
15445 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15446 Update.
15447 * objfiles.h (class all_objfiles): Remove.
15448 * objfiles.c (have_partial_symbols, have_full_symbols)
15449 (have_minimal_symbols, qsort_cmp, update_section_map)
15450 (shared_objfile_contains_address_p)
15451 (default_iterate_over_objfiles_in_search_order): Update.
15452 * objc-lang.c (info_selectors_command, info_classes_command)
15453 (find_methods): Update.
15454 * minsyms.c (find_solib_trampoline_target): Update.
15455 * maint.c (maintenance_info_sections)
15456 (maintenance_translate_address, count_symtabs_and_blocks):
15457 Update.
15458 * main.c (captured_main_1): Update.
15459 * linux-thread-db.c (try_thread_db_load_from_pdir)
15460 (has_libpthread): Update.
15461 * linespec.c (iterate_over_all_matching_symtabs)
15462 (search_minsyms_for_name): Update.
15463 * jit.c (jit_find_objf_with_entry_addr): Update.
15464 * hppa-tdep.c (find_unwind_entry)
15465 (hppa_lookup_stub_minimal_symbol): Update.
15466 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15467 Update.
15468 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15469 (elf_gnu_ifunc_resolve_by_got): Update.
15470 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15471 * dwarf-index-write.c (save_gdb_index_command): Update.
15472 * cp-support.c (add_symbol_overload_list_qualified): Update.
15473 * breakpoint.c (create_overlay_event_breakpoint)
15474 (create_longjmp_master_breakpoint)
15475 (create_std_terminate_master_breakpoint)
15476 (create_exception_master_breakpoint): Update.
15477 * blockframe.c (find_pc_partial_function): Update.
15478 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15479 (ada_collect_symbol_completion_matches)
15480 (ada_add_global_exceptions): Update.
15481
776489e0
TT
154822019-01-17 Tom Tromey <tom@tromey.com>
15483
15484 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15485 declare VEC.
15486 (solib_target_parse_libraries): Change return type.
15487 (library_list_start_segment, library_list_start_section)
15488 (library_list_end_library, library_list_start_library); Update.
15489 (solib_target_free_library_list): Remove.
15490 (solib_target_parse_libraries): Remove cleanup. Change return
15491 type.
15492 (solib_target_current_sos): Update.
15493
6471e7d2
TT
154942019-01-17 Tom Tromey <tromey@bapiya>
15495
15496 * valprint.c: Replace "the the" with "the".
15497 * symtab.c: Replace "the the" with "the".
15498 * solib.c: Replace "the the" with "the".
15499 * solib-dsbt.c: Replace "the the" with "the".
15500 * linespec.c: Replace "the the" with "the".
15501 * dwarf2loc.h: Replace "the the" with "the".
15502 * amd64-windows-tdep.c: Replace "the the" with "the".
15503 * aarch64-tdep.c: Replace "the the" with "the".
15504
c24bdb02
KS
155052019-01-16 Keith Seitz <keiths@redhat.com>
15506
15507 PR gdb/23773
15508 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15509 <builder>: Rename to ..
15510 <m_builder>: ... this and make private.
15511 (dwarf2_cu::get_builder): New method. Change all users of
15512 `builder' to use this method.
15513 (dwarf2_start_symtab): Move to ...
15514 (dwarf2_cu::start_symtab): ... here. Update all callers
15515 (setup_type_unit_groups): Move to ...
15516 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15517 callers.
15518 (dwarf2_cu::reset_builder): New method.
15519 (process_full_compunit, process_full_type_unit): Use
15520 dwarf2_cu::reset_builder.
15521 (follow_die_offset): Record the ancestor CU if it is different
15522 from the followed DIE's CU.
15523 (follow_die_sig_1): Likewise.
15524
8d64371b
TT
155252019-01-15 Tom Tromey <tom@tromey.com>
15526
15527 * remote.c (class remote_state) <buf>: Now a char_vector.
15528 <buf_size>: Remove.
15529 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15530 parameter.
15531 (remote_target::getpkt_or_notif_sane_1)
15532 (remote_target::getpkt_sane)
15533 (remote_target::getpkt_or_notif_sane): Likewise.
15534 (class remote_target) <putpkt>: New overload.
15535 (remote_target::read_frame): Change type of "buf_p". Remove
15536 sizeof_p parameter.
15537 (packet_ok): New overload.
15538 (packet_check_result): New overload.
15539 Update all uses.
15540
bb277751
TT
155412019-01-14 Tom Tromey <tom@tromey.com>
15542
15543 * remote-notif.c (handle_notification, remote_notif_ack)
15544 (remote_notif_parse): Make "buf" const.
15545 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15546 const.
15547 (remote_notif_parse, remote_notif_ack, handle_notification):
15548 Likewise.
15549 * remote.c (remote_notif_stop_parse): Make "buf" const.
15550 (remote_target::remote_parse_stop_reply): Make "buf" const.
15551 (remote_notif_stop_ack): Make "buf" const.
15552
05be00a8
TT
155532019-01-14 Tom Tromey <tom@tromey.com>
15554
15555 * remote.c (remote_console_output): Make parameter const.
15556
491adeca
TT
155572019-01-14 Tom Tromey <tom@tromey.com>
15558
15559 * target-debug.h (target_debug_print_signals): Constify.
15560 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15561 * procfs.c (procfs_target::pass_signals): Update.
15562 * linux-nat.c (linux_nat_target::pass_signals): Update.
15563 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15564 * target-delegates.c: Rebuild.
15565 * remote.c (remote_target::program_signals): Update.
15566 (remote_target::pass_signals): Update.
15567 * target.c (target_pass_signals): Constify argument.
15568 (target_program_signals): Likewise.
15569 * target.h (struct target_ops) <pass_signals, program_signals>:
15570 Constify argument.
15571 (target_pass_signals, target_program_signals): Constify argument.
15572
bbd94648
TT
155732019-01-14 Tom Tromey <tom@tromey.com>
15574
15575 PR tui/28819:
15576 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15577
6f072a10
PFC
155782019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15579
15580 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15581 field.
15582 * rs6000-tdep.c: Include reggroups.h.
15583 (IS_V_ALIAS_PSEUDOREG): Define.
15584 (rs6000_register_name): Return names for the "vX" aliases.
15585 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15586 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15587 aliases. Call default_register_reggroup_p for all other
15588 pseudo-registers.
15589 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15590 New functions.
15591 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15592 Handle "vX" aliases.
15593 (v_alias_pseudo_register_collect): New function.
15594 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15595 (rs6000_gdbarch_init): Initialize "vX" aliases as
15596 pseudo-registers. Restore registration of
15597 rs6000_pseudo_register_reggroup_p with
15598 set_tdesc_pseudo_register_reggroup_p.
15599
1a782351
MF
156002019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15601
15602 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15603 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15604 set_gdbarch_num_pseudo_regs.
15605
d73cff18
PW
156062019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15607
15608 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15609 Remove arg prefixname, add do_set and do_show.
15610 Add member functions set_list and show_list.
15611 * cli/cli-style.c (class cli_style_option): Update accordingly.
15612 (style_set_list): Move to file scope.
15613 (style_show_list): Likewise.
15614 (set_style): Call help_list.
15615 (show_style): Call cmd_show_list.
15616 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15617 Update to use the new macro.
15618
60a90376
JB
156192019-10-12 Joel Brobecker <brobecker@adacore.com>
15620
15621 * ada-lang.c (_initialize_ada_language): Expand the help text
15622 for the "catch exception" command.
15623
9d7c67bf
PW
156242019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15625
15626 * symtab.c (matching_obj_sections): Initialize obj,
15627 declare it closer to its usage.
15628
7cf47dc4
TT
156292019-01-10 Tom Tromey <tom@tromey.com>
15630
15631 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15632 (basic_inf_threads_range): Remove.
15633 (inf_threads_range, inf_non_exited_threads_range)
15634 (safe_inf_threads_range): Use next_adapter.
15635
d3cb6808
KS
156362019-01-10 Keith Seitz <keiths@redhat.com>
15637
15638 PR gdb/23712
15639 PR symtab/23010
15640 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15641 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15642
63a20375
KS
156432019-01-10 Keith Seitz <keiths@redhat.com>
15644
15645 PR gdb/23712
15646 PR symtab/23010
15647 * dictionary.c (pending_to_vector): Remove.
15648 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15649 Remove _1 suffix, replacing functions of the same name. Update
15650 all callers.
15651 (dict_create_hashed, dict_create_hashed_expandable)
15652 (dict_create_linear, dict_create_linear_expandable, dict_free)
15653 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15654 Make functions static.
15655
b026f593
KS
156562019-01-10 Keith Seitz <keiths@redhat.com>
15657
15658 PR gdb/23712
15659 PR symtab/23010
15660 * dictionary.h (struct dictionary): Replace declaration with
15661 multidictionary.
15662 (dict_create_hashed, dict_create_hashed_expandable)
15663 (dict_create_linear, dict_create_linear_expandable)
15664 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15665 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15666 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15667 taking multidictionary argument.
15668 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15669 * block.h (struct block) <dict>: Change to multidictionary
15670 and rename `multidict'.
15671 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15672 symmisc.c: Update all dictionary references to multidictionary.
15673
c7748ee9
KS
156742019-01-10 Keith Seitz <keiths@redhat.com>
15675
15676 PR gdb/23712
15677 PR symtab/23010
15678 * dictionary.c: Include unordered_map.
15679 (pending_to_vector): New function.
15680 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15681 Rewrite the non-"_1" functions to take vector instead
15682 of linked list.
15683 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15684 "new" _1 versions of the same name.
15685 (multidictionary): Define.
15686 (std::hash<enum language): New definition.
15687 (collate_pending_symbols_by_language, mdict_create_hashed)
15688 (mdict_create_hashed_expandable, mdict_create_linear)
15689 (mdict_create_linear_expandable, mdict_free)
15690 (find_language_dictionary, create_new_language_dictionary)
15691 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15692 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15693 (mdict_size, mdict_empty): New functions.
15694 * dictionary.h (mdict_iterator): Define.
15695
67aa1f3c
PA
156962019-01-10 Pedro Alves <palves@redhat.com>
15697
15698 * breakpoint.c (read_uploaded_action)
15699 (create_tracepoint_from_upload): Adjust to use
15700 gdb::unique_xmalloc_ptr.
15701 * ctf.c (ctf_write_uploaded_tp):
15702 (SET_ARRAY_FIELD): Use emplace_back.
15703 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15704 * tracefile-tfile.c (tfile_write_uploaded_tp):
15705 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15706 gdb::unique_xmalloc_ptr.
15707 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15708 at_string, cond_string, cmd_strings>: Replace char pointers
15709 with gdb::unique_xmalloc_ptr.
15710
2f667667
PA
157112019-01-10 Pedro Alves <palves@redhat.com>
15712
15713 * solib-target.c (library_list_start_library): Don't xstrdup name.
15714
36cb7237
PA
157152019-01-10 Pedro Alves <palves@redhat.com>
15716
15717 * mdebugread.c (parse_partial_symbols): Use
15718 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15719
da584958
AB
157202019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15721
15722 * linux-fork.c (scoped_switch_fork_info)
15723 <~scoped_switch_fork_info>: Fix incorrect variable name.
15724
1ef8573c
AB
157252019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15726
15727 * linux-fork.c (scoped_switch_fork_info)
15728 <scoped_switch_fork_info>: Make explicit.
15729 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15730
8d7bcccb
TT
157312019-01-10 Tom Tromey <tom@tromey.com>
15732
15733 * objfiles.h (objfile::reset_psymtabs): Update.
15734 * objfiles.c (objfile::objfile): Update.
15735 * psymtab.h (psymtab_storage::obstack): Update.
15736 (psymtab_storage::m_obstack): Use gdb::optional.
15737 (class psymtab_storage): Update comment. Remove objfile
15738 parameter.
15739 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15740
b596a3c7
TT
157412019-01-10 Tom Tromey <tom@tromey.com>
15742
15743 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15744 <free_psymtabs>: Now private.
15745 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15746 (allocate_psymtab): Use new method.
15747
a9342b62
TT
157482019-01-10 Tom Tromey <tom@tromey.com>
15749
15750 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15751 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15752 * mdebugread.c (parse_partial_symbols): Use
15753 allocate_dependencies.
15754 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15755 allocate_dependencies.
15756 (process_psymtab_comp_unit_reader)
15757 (build_type_psymtab_dependencies): Likewise.
15758 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15759
5af70966
TT
157602019-01-10 Tom Tromey <tom@tromey.com>
15761
15762 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15763 PSYMBOL_SET_LANGUAGE.
15764 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15765
5923a04c
TT
157662019-01-10 Tom Tromey <tom@tromey.com>
15767
15768 * psymtab.h (psymtab_storage::obstack): New method.
15769 <m_obstack>: Rename from obstack; now private.
15770 * psymtab.c (psymtab_storage): Update.
15771 * dwarf2read.c (create_addrmap_from_index)
15772 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15773 Update.
15774
6d6a12bf
TT
157752019-01-10 Tom Tromey <tom@tromey.com>
15776
15777 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15778 * objfiles.h (objfile::reset_psymtabs): New method.
15779
d320c2b5
TT
157802019-01-10 Tom Tromey <tom@tromey.com>
15781
15782 * symmisc.c (print_symbol_bcache_statistics): Update.
15783 (print_objfile_statistics): Update.
15784 * symfile.c (reread_symbols): Update.
15785 * psymtab.h (class psymtab_storage): New.
15786 * psymtab.c (psymtab_storage): New constructor.
15787 (~psymtab_storage): New destructor.
15788 (require_partial_symbols): Update.
15789 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15790 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15791 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15792 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15793 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15794 (start_psymtab_common, end_psymtab_common)
15795 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15796 (allocate_psymtab): Update.
15797 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15798 Update.
15799 (dump_psymtab_addrmap, maintenance_print_psymbols)
15800 (maintenance_check_psymtabs): Update.
15801 (class objfile_psymtabs): Move to objfiles.h.
15802 * psympriv.h (discard_psymtab): Now inline.
15803 (psymtab_discarder::psymtab_discarder): Update.
15804 (psymtab_discarder::~psymtab_discarder): Update.
15805 (ALL_OBJFILE_PSYMTABS): Rewrite.
15806 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15807 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15808 Remove fields.
15809 <partial_symtabs>: New field.
15810 (class objfile_psymtabs): Move from psymtab.h. Update.
15811 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15812 psymbol_cache.
15813 (objfile::~objfile): Don't destroy psymbol_cache.
15814 * mdebugread.c (parse_partial_symbols): Update.
15815 * dwarf2read.c (create_addrmap_from_index)
15816 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15817 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15818 (add_partial_subprogram, dwarf2_ranges_read): Update.
15819 * dwarf-index-write.c (write_address_map)
15820 (write_one_signatured_type, recursively_write_psymbols)
15821 (class debug_names, class debug_names, write_psymtabs_to_index):
15822 Update.
15823
1d94a5a3
TT
158242019-01-10 Tom Tromey <tom@tromey.com>
15825
15826 * symtab.h (SYMBOL_SET_NAMES): Update.
15827 (symbol_set_names): Update.
15828 (MSYMBOL_SET_NAMES): Update.
15829 * symtab.c (symbol_set_names): Change argument to be an
15830 objfile_per_bfd_storage.
15831 * psymtab.c (add_psymbol_to_bcache): Update.
15832 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15833
0f14768a
TT
158342019-01-10 Tom Tromey <tom@tromey.com>
15835
15836 * symtab.c (create_demangled_names_hash): Change argument to be an
15837 objfile_per_bfd_storage.
15838 (symbol_set_names): Update.
15839
6eee24ce
TT
158402019-01-10 Tom Tromey <tom@tromey.com>
15841
15842 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15843 init_psymbol_list.
15844 * psymtab.c (init_psymbol_list): Do nothing if already called.
15845 * psympriv.h (init_psymbol_list): Add comment.
15846 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15847 init_psymbol_list.
15848 * dbxread.c (dbx_symfile_read): Unconditionally call
15849 init_psymbol_list.
15850
75aedd27
TT
158512019-01-10 Tom Tromey <tom@tromey.com>
15852
15853 * xcoffread.c (scan_xcoff_symtab): Update.
15854 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15855 "where".
15856 * mdebugread.c (parse_partial_symbols)
15857 (handle_psymbol_enumerators): Update.
15858 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15859 * dbxread.c (read_dbx_symtab): Update.
15860 * psympriv.h (psymbol_placement): New enum.
15861 (add_psymbol_to_list): Update.
15862
939652a5
TT
158632019-01-10 Tom Tromey <tom@tromey.com>
15864
15865 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15866 static_psymbols parameters.
15867 (scan_xcoff_symtab): Update.
15868 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15869 static_psymbols parameters.
15870 * psympriv.h (start_psymtab_common): Update.
15871 * mdebugread.c (parse_partial_symbols): Update.
15872 * dwarf2read.c (create_partial_symtab): Update.
15873 * dbxread.c (read_dbx_symtab): Update.
15874 (start_psymtab): Remove global_psymbols and static_psymbols
15875 parameters.
15876
baa62830
TT
158772019-01-10 Tom Tromey <tom@tromey.com>
15878
15879 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15880 * psymtab.c (allocate_psymtab): Add comment.
15881 * psympriv.h (allocate_psymtab): Add comment.
15882 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15883 initializations.
15884 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15885
0e8f53ba
TT
158862019-01-10 Tom Tromey <tom@tromey.com>
15887
15888 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15889 Don't declare.
15890 * mipsread.c: Include mdebugread.h.
15891 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15892 Declare.
15893 * elfread.c: Include mdebugread.h.
15894
b22a7c6a
TT
158952019-01-09 Tom Tromey <tom@tromey.com>
15896
15897 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15898 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15899 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15900 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15901 (psym_lookup_symbol, psym_find_last_source_symtab)
15902 (psym_forget_cached_source_info, psym_print_stats)
15903 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15904 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15905 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15906 (psym_find_compunit_symtab_by_address)
15907 (maintenance_print_psymbols, maintenance_info_psymtabs)
15908 (maintenance_check_psymtabs): Use ranged for.
15909 * psymtab.h (class objfile_psymtabs): New.
15910 (require_partial_symbols): Return objfile_psymtabs.
15911 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15912
3b9d3ac2
TT
159132019-01-09 Tom Tromey <tom@tromey.com>
15914
15915 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15916 (find_pc_mapped_section, list_overlays_command)
15917 (map_overlay_command, unmap_overlay_command)
15918 (simple_overlay_update): Use all_objfiles.
15919 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15920 * printcmd.c (info_symbol_command): Use all_objfiles.
15921 * objfiles.h (ALL_OBJSECTIONS): Remove.
15922 * maint.c (maintenance_translate_address): Use all_objfiles.
15923 * gcore.c (gcore_create_callback): Use all_objfiles.
15924 (objfile_find_memory_regions): Likewise.
15925
8b31193a
TT
159262019-01-09 Tom Tromey <tom@tromey.com>
15927
15928 * symtab.c (find_line_symtab, info_sources_command)
15929 (make_source_files_completion_list): Use objfile_compunits.
15930 * source.c (select_source_symtab): Use objfile_compunits.
15931 * objfiles.h (struct objfile): Update comment.
15932 (ALL_OBJFILES): Remove.
15933 (ALL_FILETABS): Remove.
15934 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15935 objfile_compunits.
15936
d5da8b3c
TT
159372019-01-09 Tom Tromey <tom@tromey.com>
15938
15939 * symmisc.c (print_objfile_statistics, dump_objfile)
15940 (maintenance_print_symbols): Use compunit_filetabs.
15941 * source.c (forget_cached_source_info_for_objfile): Use
15942 compunit_filetabs.
15943 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15944 (ALL_FILETABS): Use compunit_filetabs.
15945 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15946 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15947
5accd1a0
TT
159482019-01-09 Tom Tromey <tom@tromey.com>
15949
15950 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15951 (compunit_filetabs): New.
15952 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15953 compunit_filetabs.
15954 (info_sources_command, make_source_files_completion_list): Remove
15955 declaration.
15956 * symmisc.c (print_objfile_statistics, dump_objfile)
15957 (maintenance_print_symbols): Remove declaration.
15958 (maintenance_info_symtabs): Use compunit_filetabs.
15959 (maintenance_info_line_tables): Likewise.
15960 * source.c (select_source_symtab): Change local variable name.
15961 (forget_cached_source_info_for_objfile): Remove declaration.
15962 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15963 * objfiles.c (objfile_relocate1): Remove declaration.
15964 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15965 declaration.
15966 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15967 * coffread.c (coff_symtab_read): Remove declaration.
15968 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15969 compunit_filetabs.
15970
d8aeb77f
TT
159712019-01-09 Tom Tromey <tom@tromey.com>
15972
15973 * symtab.c (lookup_objfile_from_block)
15974 (find_pc_sect_compunit_symtab, search_symbols)
15975 (default_collect_symbol_completion_matches_break_on): Use
15976 objfile_compunits.
15977 * objfiles.h (ALL_COMPUNITS): Remove.
15978 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15979 * cp-support.c (add_symbol_overload_list_qualified): Use
15980 objfile_compunits.
15981 * ada-lang.c (ada_collect_symbol_completion_matches)
15982 (ada_add_global_exceptions): Use objfile_compunits.
15983
592553c4
TT
159842019-01-09 Tom Tromey <tom@tromey.com>
15985
15986 * source.c (select_source_symtab)
15987 (forget_cached_source_info_for_objfile): Remove declaration.
15988 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15989 declaration.
15990 * maint.c (count_symtabs_and_blocks): Remove declaration.
15991 * cp-support.c (add_symbol_overload_list_qualified): Remove
15992 declaration.
15993 * coffread.c (coff_symtab_read): Remove declaration.
15994 * symtab.c (lookup_symbol_in_objfile_symtabs)
15995 (basic_lookup_transparent_type_1): Use objfile_compunits.
15996 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
15997 (info_sources_command, search_symbols)
15998 (default_collect_symbol_completion_matches_break_on)
15999 (make_source_files_completion_list): Remove declaration.
16000 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16001 (ada_collect_symbol_completion_matches)
16002 (ada_add_global_exceptions): Remove declaration.
16003 * linespec.c (iterate_over_all_matching_symtabs): Use
16004 objfile_compunits.
16005 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16006 (class objfile_compunits): New.
16007 (ALL_COMPUNITS): Use objfile_compunits.
16008 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16009 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16010 objfile_compunits.
16011 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16012
5325b9bf
TT
160132019-01-09 Tom Tromey <tom@tromey.com>
16014
16015 * symtab.c (search_symbols)
16016 (default_collect_symbol_completion_matches_break_on): Use
16017 objfile_msymbols.
16018 * ada-lang.c (ada_lookup_simple_minsym)
16019 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16020 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16021 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16022 objfile_msymbols.
16023 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16024 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16025 * objc-lang.c (find_methods): Use objfile_msymbols.
16026 (info_selectors_command, info_classes_command): Likewise.
16027 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16028 * objfiles.h (class objfile_msymbols): New.
16029 (ALL_OBJFILE_MSYMBOLS): Remove.
16030 (ALL_MSYMBOLS): Remove.
16031
cac85af2
TT
160322019-01-09 Tom Tromey <tom@tromey.com>
16033
16034 * common/next-iterator.h (next_adapter): Add Iterator template
16035 parameter.
16036 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16037 (class all_objfiles_safe): New.
16038 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16039 * objfiles.c (put_objfile_before): Update comment.
16040 (add_separate_debug_objfile): Likewise.
16041 (free_all_objfiles): Use all_objfiles_safe.
16042 (objfile_purge_solibs): Likewise.
16043
aed57c53
TT
160442019-01-09 Tom Tromey <tom@tromey.com>
16045
16046 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16047 (expand_symtab_containing_pc, lookup_static_symbol)
16048 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16049 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16050 all_objfiles.
16051 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16052 * breakpoint.c (create_overlay_event_breakpoint)
16053 (create_longjmp_master_breakpoint)
16054 (create_std_terminate_master_breakpoint)
16055 (create_exception_master_breakpoint): Use all_objfiles.
16056 * linux-thread-db.c (try_thread_db_load_from_pdir)
16057 (has_libpthread): Use all_objfiles.
16058 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16059 * linespec.c (iterate_over_all_matching_symtabs)
16060 (search_minsyms_for_name): Use all_objfiles.
16061 * maint.c (maintenance_info_sections): Use all_objfiles.
16062 * main.c (captured_main_1): Use all_objfiles.
16063 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16064 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16065 * guile/scm-pretty-print.c
16066 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16067 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16068 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16069 (maintenance_print_msymbols): Use all_objfiles.
16070 * source.c (select_source_symtab): Use all_objfiles.
16071 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16072 * symfile.c (remove_symbol_file_command)
16073 (expand_symtabs_matching, map_symbol_filenames): Use
16074 all_objfiles.
16075 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16076 all_objfiles.
16077 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16078 * objc-lang.c (find_methods): Use all_objfiles.
16079 * objfiles.c (have_partial_symbols, have_full_symbols)
16080 (have_minimal_symbols, qsort_cmp)
16081 (default_iterate_over_objfiles_in_search_order): Use
16082 all_objfiles.
16083 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16084 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16085 (maintenance_check_psymtabs): Use all_objfiles.
16086 (ALL_PSYMTABS): Remove.
16087 * compile/compile-object-run.c (do_module_cleanup): Use
16088 all_objfiles.
16089 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16090 * cp-support.c (add_symbol_overload_list_qualified): Use
16091 all_objfiles.
16092 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16093 Use all_objfiles.
16094 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16095 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16096 all_objfiles.
16097 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16098 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16099 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16100 Uses all_objfiles.
16101 * solib.c (solib_read_symbols): Use all_objfiles
16102
99d89cde
TT
161032019-01-09 Tom Tromey <tom@tromey.com>
16104
16105 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16106 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16107 all_objfiles.
16108 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16109 * symmisc.c (print_symbol_bcache_statistics)
16110 (print_objfile_statistics, maintenance_print_objfiles)
16111 (maintenance_info_symtabs, maintenance_check_symtabs)
16112 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16113 all_objfiles.
16114 * source.c (forget_cached_source_info): Use all_objfiles.
16115 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16116 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16117 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16118 * objfiles.c (update_section_map): Use all_objfiles.
16119 (shared_objfile_contains_address_p): Likewise.
16120 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16121 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16122
21708325
TT
161232019-01-09 Tom Tromey <tom@tromey.com>
16124
16125 * common/next-iterator.h: New file.
16126 * objfiles.h (class all_objfiles): New.
16127 (struct objfile_iterator): New.
16128
669e09f6
PW
161292019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16130
16131 * NEWS: Move the description of the changed "frame", "select-frame",
16132 and "info frame" commands to the Changed commands section.
16133
041be526
SM
161342019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16135
16136 * gdbtypes.c (check_stub_method_group): Remove handling of old
16137 mangling schemes.
16138 * linespec.c (find_methods): Likewise.
16139 * stabsread.c (read_member_functions): Likewise.
16140 * valops.c (search_struct_method): Likewise.
16141 (value_struct_elt_for_reference): Likewise.
16142 * NEWS: Mention this change.
16143
0e2a2133
AB
161442019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16145
16146 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16147 print_source_lines.
16148 * source.c (print_source_lines_base): Update line number check.
16149 (print_source_lines): New function.
16150 (source_lines_range::source_lines_range): New function.
16151 * source.h (class source_lines_range): New class.
16152 (print_source_lines): New declaration.
16153
1055a3b4
PW
161542019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16155
16156 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16157
cfeadda5
TT
161582019-01-08 Tom Tromey <tom@tromey.com>
16159 Simon Marchi <simon.marchi@ericsson.com>
16160
16161 PR gdb/24060
16162 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16163 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16164 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16165 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16166 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16167 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16168
583068ca
AB
161692019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16170
16171 * source.c (select_source_symtab): Move header comment to
16172 declaration in source.h.
16173 (forget_cached_source_info_for_objfile): Likewise.
16174 (forget_cached_source_info): Likewise.
16175 (identify_source_line): Likewise.
16176 * source.h (identify_source_line): Move declaration from symtab.h
16177 and add comment from source.c
16178 (print_source_lines): Likewise.
16179 (forget_cached_source_info_for_objfile): Likewise.
16180 (forget_cached_source_info): Likewise.
16181 (select_source_symtab): Likewise.
16182 (enum print_source_lines_flag): Move definition from symtab.h.
16183 * symtab.h (identify_source_line): Move declaration to source.h.
16184 (print_source_lines): Likewise.
16185 (forget_cached_source_info_for_objfile): Likewise.
16186 (forget_cached_source_info): Likewise.
16187 (select_source_symtab): Likewise.
16188 (enum print_source_lines_flag): Move definition to source.h.
16189 * tui/tui-hooks.c: Add 'source.h' include.
16190
ec98a4ad
AB
161912019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16192
16193 * source.c (print_source_lines_base): Handle requests to print
16194 reverse line number sequences, and guard against empty lines
16195 string.
16196
62ea19c1
AB
161972019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16198
16199 * source.c (print_source_lines_base): Fix skip of '\r' if next
16200 character is '\n'.
16201
9d30e1fd
TT
162022019-01-06 Tom Tromey <tom@tromey.com>
16203
16204 * c-exp.y (struct c_parse_state) <macro_original_text,
16205 expansion_obstack>: New member.
16206 (macro_original_text, expansion_obstack): Remove globals.
16207 (scan_macro_expansion, scanning_macro_expansion)
16208 (finished_macro_expansion): Update.
16209 (scan_macro_cleanup): Remove.
16210 (yylex, c_parse): Update.
16211
c65bac38
TT
162122019-01-06 Tom Tromey <tom@tromey.com>
16213
16214 * c-exp.y (struct c_parse_state) <strings>: New member.
16215 (operator_stoken): Update.
16216
02e12e38
TT
162172019-01-06 Tom Tromey <tom@tromey.com>
16218
16219 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16220 (union type_stack_elt) <typelist_val>: Now a pointer to
16221 std::vector.
16222 (type_stack_cleanup): Don't declare.
16223 (push_typelist): Update.
16224 * parse.c (pop_typelist): Return a std::vector.
16225 (push_typelist): Take a std::vector.
16226 (follow_types): Update. Do not free args.
16227 (type_stack_cleanup): Remove.
16228 * c-exp.y (struct c_parse_state): New.
16229 (cpstate): New global.
16230 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16231 (nonempty_typelist): Update.
16232 (func_mod): Create a new vector.
16233 (c_parse): Create a c_parse_state.
16234 (check_parameter_typelist): Do not delete params.
16235 (function_method): Update. Do not delete type_list.
16236
f097f5ad
TT
162372019-01-06 Tom Tromey <tom@tromey.com>
16238
16239 PR gdb/28155:
16240 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16241 check_typedef.
16242 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16243 (print_return_value): Likewise.
16244
d2adf9f1
TT
162452019-01-05 Tom Tromey <tom@tromey.com>
16246
16247 * contrib/cleanup_check.py: Remove.
16248 * contrib/gcc-with-excheck: Remove.
16249 * contrib/exsummary.py: Remove.
16250 * contrib/excheck.py: Remove.
16251
2eab46b1
JB
162522019-01-05 Joel Brobecker <brobecker@adacore.com>
16253
16254 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16255 NULL. Initialize tpprev to NULL instead of assigning it
16256 to NULL on the next statement.
16257 * windows-nat.c (windows_delete_thread): Remove check for
16258 main_thread_id before printing thread exit notifications.
16259 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16260 Remove thread ID check against main_thread_id.
16261 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16262 windows_delete_thread.
16263 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16264
48c5e7e2
TT
162652019-01-04 Tom Tromey <tom@tromey.com>
16266
16267 * compile/compile.c (_initialize_compile): Use upper case for
16268 metasyntactic variables.
16269 * symmisc.c (_initialize_symmisc): Use upper case for
16270 metasyntactic variables.
16271 * psymtab.c (_initialize_psymtab): Use upper case for
16272 metasyntactic variables.
16273 * demangle.c (demangle_command): Use upper case for metasyntactic
16274 variables.
16275 (_initialize_demangler): Likewise.
16276 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16277 variables.
16278
986041cd
TT
162792019-01-03 Tom Tromey <tom@tromey.com>
16280
16281 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16282
7c711119
TT
162832019-01-03 Tom Tromey <tom@tromey.com>
16284
16285 * python/py-symtab.c (salpy_str): Update.
16286 (struct salpy_sal_object) <symtab>: Now a PyObject.
16287 (salpy_dealloc): Update.
16288 (del_objfile_sal): Use gdbpy_ref.
16289
1b20edf0
TT
162902019-01-03 Tom Tromey <tom@tromey.com>
16291
16292 * python/py-type.c (convert_field): Use new_reference. Return
16293 gdbpy_ref.
16294 (make_fielditem): Return gdbpy_ref.
16295 (typy_fields): Update.
16296 (typy_getitem): Update.
16297 (field_name): Return gdbpy_ref. Use new_reference.
16298 (typy_iterator_iternext): Update.
16299
ea41325b
TT
163002019-01-03 Tom Tromey <tom@tromey.com>
16301
16302 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16303
2a3c71d6
TT
163042019-01-03 Tom Tromey <tom@tromey.com>
16305
16306 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16307 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16308 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16309 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16310 (pspy_set_type_printers): Likewise.
16311 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16312 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16313 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16314 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16315 (objfpy_set_type_printers): Likewise.
16316
5c329e6a
TT
163172019-01-03 Tom Tromey <tom@tromey.com>
16318
16319 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16320 (gdbpy_print_stack): Use gdbpy_err_fetch.
16321 * python/python-internal.h (class gdbpy_err_fetch): New class.
16322 (class gdbpy_enter) <m_error_type, m_error_value,
16323 m_error_traceback>: Remove.
16324 <m_error>: New member.
16325 (gdbpy_exception_to_string): Don't declare.
16326 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16327 * python/py-value.c (convert_value_from_python): Use
16328 gdbpy_err_fetch.
16329 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16330 gdbpy_exception_to_string.
16331 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16332 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16333 gdbpy_err_fetch.
16334
169bb27b
AB
163352019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16336
16337 * linux-nat.c (delete_lwp_cleanup): Delete.
16338 (struct lwp_deleter): New struct.
16339 (lwp_info_up): New typedef.
16340 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16341 lwp_info_up.
16342
a07c8880
AB
163432019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16344
16345 * linux-fork.c (class scoped_switch_fork_info): New class.
16346 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16347
26089c49
AB
163482019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16349
16350 * valops.c (find_overload_match): Remove use of null_cleanup, and
16351 calls to do_cleanups.
16352
06d3e5b0
AB
163532019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16354
16355 * compile/compile-cplus-types.c
16356 (compile_cplus_instance::decl_name): Handle changes to
16357 cp_func_name.
16358 * cp-support.c (cp_func_name): Update header comment, update
16359 return type.
16360 * cp-support.h (cp_func_name): Update return type in declaration.
16361 * valops.c (find_overload_match): Move temp_func local to top
16362 level of function and change its type. Use temp_func to hold and
16363 delete temporary string obtained from cp_func_name.
16364
66644cd3
AB
163652019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16366
16367 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16368 gdb::char_vector, remove cleanup, and update uses of `msg`.
16369
592d8c0a
JW
163702019-01-03 Jim Wilson <jimw@sifive.com>
16371
16372 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16373
c55d06ec
TT
163742019-01-02 Tom Tromey <tom@tromey.com>
16375
16376 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16377 (tdesc_parse_xml): Remove cleanups.
16378 * target-descriptions.h (make_cleanup_free_target_description):
16379 Don't declare.
16380 (target_desc_deleter): New struct.
16381 (target_desc_up): New typedef.
16382 * target-descriptions.c (target_desc_deleter::operator()): Rename
16383 from free_target_description.
16384 (make_cleanup_free_target_description): Remove.
16385
3a6ae42d
TT
163862019-01-02 Tom Tromey <tom@tromey.com>
16387
16388 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16389 constructor, destructor.
16390 (linespec_parser): Remove typedef.
16391 (~linespec_parser): Rename from linespec_parser_delete.
16392 (linespec_lex_to_end, linespec_complete_label)
16393 (linespec_complete): Update.
16394 (decode_line_full): Remove cleanups.
16395 (decode_line_1): Update.
16396
61fd3e73
TT
163972019-01-02 Tom Tromey <tom@tromey.com>
16398
16399 * python/python-internal.h (inferior_to_inferior_object): Change
16400 return type.
16401 * python/py-exitedevent.c (create_exited_event_object): Update.
16402 * python/py-inferior.c (inferior_to_inferior_object): Return
16403 gdbpy_ref.
16404 (python_new_inferior, python_inferior_deleted)
16405 (thread_to_thread_object, delete_thread_object)
16406 (build_inferior_list, gdbpy_selected_inferior): Update.
16407 * python/py-infthread.c (create_thread_object): Update. Also fail
16408 if inferior_to_inferior_object fails.
16409
d20172fc
SM
164102019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16411
16412 * inferior.h (class inferior) <displaced_step_state>: New field.
16413 * infrun.h (struct displaced_step_state): Move here from
16414 infrun.c. Initialize fields, add constructor.
16415 <inf>: Remove field.
16416 <reset>: New method.
16417 * infrun.c (struct displaced_step_inferior_state): Move to
16418 infrun.h.
16419 (displaced_step_inferior_states): Remove.
16420 (get_displaced_stepping_state): Adust.
16421 (displaced_step_in_progress_any_inferior): Adjust.
16422 (displaced_step_in_progress_thread): Adjust.
16423 (displaced_step_in_progress): Adjust.
16424 (add_displaced_stepping_state): Remove.
16425 (get_displaced_step_closure_by_addr): Adjust.
16426 (remove_displaced_stepping_state): Remove.
16427 (infrun_inferior_exit): Call displaced_step_state.reset.
16428 (use_displaced_stepping): Don't check for NULL.
16429 (displaced_step_prepare_throw): Call
16430 get_displaced_stepping_state.
16431 (displaced_step_fixup): Don't check for NULL.
16432 (prepare_for_detach): Don't check for NULL.
16433
e3319240
PW
164342019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16435
16436 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16437 in case of call that did not complete.
16438
5d36dfb9
AU
164392019-01-02 Andrey Utkin <autkin@undo.io>
16440
16441 * symfile.c (find_separate_debug_file): Fix search of debug files for
16442 remote debuggee.
16443
8833fbf0
TT
164442019-01-02 Tom Tromey <tom@tromey.com>
16445
16446 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16447 indentation.
16448 * python/py-frame.c (frapy_older): Remove cast.
16449 (frapy_newer): Likewise.
16450 * python/py-breakpoint.c (local_setattro): Remove cast.
16451 * python/py-arch.c (archpy_name): Remove local variable.
16452 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16453
4ada3dfd
JB
164542019-01-02 Joel Brobecker <brobecker@adacore.com>
16455
16456 * unittests/basic_string_view/element_access/char/empty.cc:
16457 Fix year range in copyright header.
16458
113b7b81
AB
164592019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16460
16461 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16462 Delete.
16463 <operator==>: Update with for removed field.
16464 <hash>: Likewise.
16465 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16466 <isa_features>: ...this.
16467 <abi_features>: New field.
16468 (riscv_isa_flen): Update comment.
16469 (riscv_abi_xlen): New declaration.
16470 (riscv_abi_flen): New declaration.
16471 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16472 isa_features.
16473 (riscv_abi_xlen): New function.
16474 (riscv_isa_flen): Update to get answer from isa_features.
16475 (riscv_abi_flen): New function.
16476 (riscv_has_fp_abi): Update to get answer from abi_features.
16477 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16478 xlen and flen.
16479 (riscv_call_info) <xlen, flen>: Update comment.
16480 (riscv_call_arg_struct): Remove invalid assertions
16481 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16482 is removed.
16483 (riscv_gdbarch_init): Gather isa features and abi features
16484 separately, ensure both match on the gdbarch when reusing an old
16485 gdbarch. Relax an error check to allow 32-bit abi float to run on
16486 a target with 64-bit float hardware.
16487
b18ca514
PW
164882019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16489
16490 * source.c (search_command_helper): Stop reverse search
16491 when line 1 has been searched.
16492
ec70d8db
PW
164932019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16494
16495 * record-full.c (record_full_base_target::close): Rewrite
16496 record_full_core_buf_list free logic.
16497
5b38f9c1
PW
164982019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16499
16500 * break-catch-syscall.c (print_one_catch_syscall): xfree
16501 the last text.
16502
66d91b39
JB
165032019-01-01 Joel Brobecker <brobecker@adacore.com>
16504
16505 * top.c (print_gdb_version): Update Copyright year in version
16506 message.
16507
42a4f53d
JB
165082019-01-01 Joel Brobecker <brobecker@adacore.com>
16509
16510 Update copyright year range in all GDB files.
16511
7e955d83 165122019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16513
5bbd631d 16514 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16515
5bbd631d 16516For older changes see ChangeLog-2018.
c906108c
SS
16517\f
16518Local Variables:
16519mode: change-log
16520left-margin: 8
16521fill-column: 74
16522version-control: never
57da7796 16523coding: utf-8
c906108c 16524End:
5bbd631d 16525
This page took 2.947498 seconds and 4 git commands to generate.