Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b8e46eb9
JB
12020-01-01 Joel Brobecker <brobecker@adacore.com>
2
3 * gdbarch.sh: Update copyright year range of generated files.
4
11bc5fe4
JB
52020-01-01 Joel Brobecker <brobecker@adacore.com>
6
7 Update copyright year range in all the GDB files automatically
8 handled by our copyright.py script.
9
8b371634
JB
102020-01-01 Joel Brobecker <brobecker@adacore.com>
11
12 * copyright.py: Convert to Python 3.
13
a292f79f
JB
142020-01-01 Joel Brobecker <brobecker@adacore.com>
15
16 * copyright.py: Adapt after move of gnulib directory from gdb
17 directory to toplevel directory.
18
1458b0f3
JB
192020-01-01 Joel Brobecker <brobecker@adacore.com>
20
21 * copyright.py (main): Exit if run from the wrong directory.
22
e9de78be
JB
232020-01-01 Joel Brobecker <brobecker@adacore.com>
24
25 * top.c (print_gdb_version): Change copyright year to 2020.
26
c0716f3e
CB
272019-12-26 Christian Biesinger <cbiesinger@google.com>
28
29 * configure: Regenerate.
30 * configure.ac: Quote variable arguments of test.
31 * gdbsupport/common.m4: Likewise.
32
527178f7
EZ
332019-12-21 Eli Zaretskii <eliz@gnu.org>
34
35 * top.c (print_gdb_configuration): Print "--with-xxhash" or
36 "--without-xxhash" according to HAVE_LIBXXHASH.
37
4ae7258e
TT
382019-12-18 Tom Tromey <tromey@adacore.com>
39
40 PR build/25268:
41 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
42 type on macOS. Add comment.
43
1c66314d
TT
442019-12-18 Tom Tromey <tromey@adacore.com>
45
46 PR build/25250:
47 * ui-out.c (ui_out::vmessage): Update.
48 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
49 Rename.
50 (string_field): Update.
51 (signed_field): Update.
52
be19b699
SM
532019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
54
55 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
56
3f434671
JB
572019-12-11 Joel Brobecker <brobecker@adacore.com>
58
59 * version.in: Set GDB version number to 9.0.90.DATE-git.
60
07d5aa38
JB
612019-12-11 Joel Brobecker <brobecker@adacore.com>
62
63 GDB 9.0.90 released.
64
b06b5486
JB
652019-12-11 Joel Brobecker <brobecker@adacore.com>
66
67 * version.in: Set GDB version number to 9.0.90.
68
41ec388b
JB
692019-12-11 Joel Brobecker <brobecker@adacore.com>
70
71 * NEWS: Change "Changes since GDB 8.3" into "Changes in GDB 9".
72
c87abc50
JB
732019-12-11 Joel Brobecker <brobecker@adacore.com>
74
75 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
76 * version.in: Bump version to 9.0.90.DATE-git.
77
2e744276
TT
782019-12-11 Tom Tromey <tromey@adacore.com>
79
80 PR build/25268:
81 * gdbsupport/thread-pool.c (set_thread_name): New function.
82 (thread_pool::set_thread_count): Don't call pthread_setname_np.
83 (thread_pool::thread_function): Call set_thread_name.
84
aac4760f
TT
852019-12-11 Tom Tromey <tromey@adacore.com>
86
87 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
88 bfd_get_signed_8.
89
d8edc8b7
PW
902019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
91
92 * NEWS: Document -raw-values option and the related setting commands.
93 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
94 only set it on when /r is given.
95 * valprint.c (value_print_option_defs): New element raw-values.
96 * Makefile.in: Add the new file.
97
cb511130
CB
982019-12-10 Christian Biesinger <cbiesinger@google.com>
99
100 * gdbsupport/safe-strerror.c: Supress the unused function warning
101 for select_strerror_r.
102
ab7d13f0
CB
1032019-12-10 Christian Biesinger <cbiesinger@google.com>
104
105 * config.in: Regenerate.
106 * configure: Regenerate.
107 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
108 safe_strerror instead of strerror.
109 * gdbsupport/common.m4: Don't check for strerror.
110 * gdbsupport/safe-strerror.c: Support both the glibc version
111 of strerror_r and the XSI version.
112
6c71eb7d
TT
1132019-12-10 Tom Tromey <tromey@adacore.com>
114
115 * ada-typeprint.c (print_choices): Use a single "?".
116 (print_variant_part): Print "?" if the discriminant name
117 is not known.
118
bac7c5cf
GB
1192019-12-10 George Barrett <bob@bob131.so>
120
121 Fix scripted probe breakpoints.
122 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
123 declaration forward.
124 (breakpoint_ops_for_event_location_type)
125 (breakpoint_ops_for_event_location): Add function definitions.
126 (break_command_1, trace_command): Use
127 breakpoint_ops_for_event_location.
128 * breakpoint.h (breakpoint_ops_for_event_location): Add function
129 declarations.
130 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
131 breakpoint_ops_for_event_location.
132 * python/py-breakpoint.c (bppy_init): Use
133 breakpoint_ops_for_event_location.
134
330f1d38
TBA
1352019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
136
137 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
138 when ranking an lvalue argument for an rvalue parameter.
139
b1f0c0b9
WA
1402019-12-08 Wataru Ashihara <wataash@wataash.com>
141
142 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
143 template argument for scoped_restore_tmpl from bool to int.
144
aa2d5a42
KS
1452019-12-07 Keith Seitz <keiths@redhat.com>
146
147 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
148 (build_id_to_debug_bfd): Make static, rewriting to use
149 build_id_to_bfd_suffix.
150 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
151 adding `suffix' parameter. Append SUFFIX to file names
152 when searching for matching files.
153 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
154 (build_id_to_exec_bfd): Likewise.
155 * build-id.h (build_id_to_debug_bfd): Clarify that function
156 searches for BFD of debug info file.
157 (build_id_to_exec_bfd): Declare.
158 * corelow.c: Include build-id.h.
159 (locate_exec_from_corefile_build_id): New function.
160 (core_target_open): If no executable BFD is found,
161 search for a core file BFD using build-id.
162
dfb65191
CB
1632019-12-06 Christian Biesinger <cbiesinger@google.com>
164
165 * bcache.c: Put in namespace gdb.
166 * bcache.h: Likewise.
167 * gdbtypes.c (check_types_worklist): Update.
168 (types_deeply_equal): Update.
169 * macrotab.c (struct macro_table) <bcache>: Update.
170 (new_macro_table): Update.
171 * macrotab.h (struct bcache): Put this forward declaration
172 inside namespace gdb.
173 (new_macro_table): Update.
174 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
175 Update.
176 <macro_cache>: Update.
177 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
178
93e55f0a
TV
1792019-12-06 Tom de Vries <tdevries@suse.de>
180
181 PR symtab/24971
182 * block.c (best_symbol, better_symbol): New function.
183 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
184 decl.
185
06acc08f
TBA
1862019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
187
188 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
189 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
190 for ranking see-through reference cases.
191
e0fad1ea
PW
1922019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
193 * stack.c (faas_command): Check a command is provided.
194 * thread.c (taas_command, tfaas_command): Likewise.
195
908641f5
PW
1962019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
197 * inferior.c (prune_inferiors): Only call delete_inferior,
198 Do not modify the inferior list.
199
b858499d
SM
2002019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
201
202 * c-exp.y: Update calls to lookup_typename,
203 lookup_signed_typename and lookup_unsigned_typename.
204 * c-lang.c (evaluate_subexp_c): Likewise.
205 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
206 Likewise.
207 * eval.c (binop_promote): Likewise.
208 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
209 (lookup_unsigned_typename): Likewise.
210 (lookup_signed_typename): Likewise.
211 * gdbtypes.h (lookup_unsigned_typename): Likewise.
212 (lookup_signed_typename): Likewise.
213 (lookup_typename): Likewise.
214 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
215 lookup_typename, lookup_signed_typename,
216 lookup_unsigned_typename.
217 * m2-exp.y: Likewise.
218 * printcmd.c (printf_wide_c_string): Likewise.
219 (ui_printf): Likewise.
220 * python/py-type.c (typy_lookup_typename): Likewise.
221 * python/py-xmethods.c (python_xmethod_worker::invoke):
222 Likewise.
223 * rust-exp.y: Likewise.
224
3a8fa228
CB
2252019-12-04 Christian Biesinger <cbiesinger@google.com>
226
227 * configure.nat (obsd64): Add missing files x86-nat.o and
228 nat/x86-dregs.o.
229
2dbc041e
TT
2302019-12-04 Tom Tromey <tom@tromey.com>
231
232 * valprint.c (val_print_string): Use metadata_style.
233 * go-valprint.c (print_go_string): Use metadata style.
234 * p-valprint.c (pascal_object_print_static_field): Use metadata
235 style.
236 * cp-valprint.c (cp_print_static_field): Use metadata style.
237
36c8fb93
AB
2382019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
239 Chris January <chris.january@arm.com>
240
241 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
242 tokens.
243 (typebase): New patterns for complex, single/double precision, and
244 single/double complex.
245 (f77_keywords): Change token for complex keyword, and add single,
246 double, and precision keywords.
247
c6170c2c
SM
2482019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
249
250 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
251 "info io_registers".
252
894ecaf4
SM
2532019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
254
255 * regcache.c (cooked_read_test): Initialize thread list of
256 mock_inferior.
257
be155ebb
SM
2582019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
259
260 * aarch64-linux-tdep.c: Remove includes.
261
c577cdd7
SM
2622019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
263
264 * aarch64-tdep.c: Remove includes.
265
610cfd61
SM
2662019-12-04 Simon Marchi <simon.marchi@efficios.com>
267
268 * filtered-iterator.h (filtered_iterator) <operator==,
269 operator!=>: Compare wrapped iterators, not wrapped pointers.
270 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
271 unittests/filtered_iterator-selftests.c.
272 * unittests/filtered_iterator-selftests.c: New file.
273
a05cf17a
TT
2742019-12-04 Tom Tromey <tromey@adacore.com>
275
276 * gdbtypes.c (create_range_type): Inherit endianity
277 from base type.
278
d5a22e77
TT
2792019-12-04 Tom Tromey <tromey@adacore.com>
280
281 * ada-lang.c (decode_constrained_packed_array)
282 (ada_value_assign, value_assign_to_component): Update.
283 * dwarf2loc.c (rw_pieced_value, access_memory)
284 (dwarf2_compile_expr_to_ax): Update.
285 * dwarf2read.c (dwarf2_add_field): Update.
286 * eval.c (evaluate_subexp_standard): Update.
287 * gdbarch.c, gdbarch.h: Rebuild.
288 * gdbarch.sh (bits_big_endian): Remove.
289 * gdbtypes.h (union field_location): Update comment.
290 * target-descriptions.c (make_gdb_type): Update.
291 * valarith.c (value_bit_index): Update.
292 * value.c (struct value) <bitpos>: Update comment.
293 (unpack_bits_as_long, modify_field): Update.
294 * value.h (value_bitpos): Update comment.
295
7ab4a236
TT
2962019-12-04 Tom Tromey <tromey@adacore.com>
297
298 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
299 endian-ness.
300
103a685e
TT
3012019-12-04 Tom Tromey <tromey@adacore.com>
302
303 * dwarf2read.c (dwarf2_init_float_type)
304 (dwarf2_init_complex_target_type): Add byte_order parameter.
305 (read_base_type): Compute byte order earlier.
306 * gdbtypes.c (init_float_type): Add byte_order parameter.
307 * gdbtypes.h (init_float_type): Add byte_order parameter.
308
7a9e9f9f
TT
3092019-12-04 Tom Tromey <tromey@adacore.com>
310
311 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
312
feee869b
TT
3132019-12-04 Tom Tromey <tromey@adacore.com>
314
315 * dwarf2read.c (process_structure_scope): Initialize
316 "discr_offset".
317
c2512106
AB
3182019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
319
320 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
321 add it into the search spec.
322 (parse_max_results_option): New function.
323 (mi_info_functions_or_variables): Parse -max-results flag and pass
324 it to mi_symbol_info.
325 (mi_cmd_symbol_info_modules): Likewise.
326 (mi_cmd_symbol_info_types): Likewise.
327 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
328 return type to bool, change result container into a set, and don't
329 add new results if we have enough already.
330 (global_symbol_searcher::add_matching_msymbols): Change return
331 type to bool, and don't add new results if we have enough already.
332 (sort_search_symbols_remove_dups): Delete.
333 (global_symbol_searcher::search): Early exit from search loop when
334 we have enough results. Use a std::set to collect the results
335 from calling add_matching_symbols.
336 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
337 member function.
338 (global_symbol_searcher) <m_max_search_results>: New member
339 variable.
340 (global_symbol_searcher) <add_matching_symbols>: Update header
341 comment and change return type to bool.
342 (global_symbol_searcher) <add_matching_msymbols>: Update header
343 comment and change return type to bool.
344
f97a63c5
AB
3452019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
346
347 * symtab.c (symbol_search::compare_search_syms): Update header
348 comment.
349 (global_symbol_searcher::is_suitable_msymbol): New function.
350 (global_symbol_searcher::expand_symtabs): New function.
351 (global_symbol_searcher::add_matching_symbols): New function.
352 (global_symbol_searcher::add_matching_msymbols): New function.
353 (global_symbol_searcher::search): Move most of the content
354 into the new functions above, and call them as needed.
355 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
356 function.
357 (global_symbol_searcher) <add_matching_symbols>: New member
358 function.
359 (global_symbol_searcher) <add_matching_msymbols>: New member
360 function.
361 (global_symbol_searcher) <is_suitable_msymbol>: New member
362 function.
363
293b38d6
AB
3642019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
365
366 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
367 -symbol-info-module-variables entries.
368 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
369 (mi_cmd_symbol_info_module_variables): Declare.
370 * mi/mi-symbol-cmds.c
371 (module_symbol_search_iterator): New typedef.
372 (output_module_symbols_in_single_module_and_file): New function.
373 (output_module_symbols_in_single_module): New function.
374 (mi_info_module_functions_or_variables): New function.
375 (mi_cmd_symbol_info_module_functions): New function.
376 (mi_cmd_symbol_info_module_variables): New function.
377 * NEWS: Mention new MI command.
378
4cbd39b2
CB
3792019-12-03 Christian Biesinger <cbiesinger@google.com>
380
381 * bcache.c (hash): Remove.
382 (hash_continue): Remove.
383 * bcache.h (hash): Remove.
384 (hash_continue): Remove.
385 (struct bcache) <ctor>: Update.
386 * psymtab.c (psymbol_hash): Update.
387 * stabsread.c (hashname): Update.
388 * utils.h (fast_hash): Add an argument for a start value,
389 defaulting to zero.
390
82f910ea
PW
3912019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
392 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
393 (destroy_block_symbol_cache): New function.
394 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
395 (resize_symbol_cache): Likewise.
396
de2396d0
TT
3972019-12-02 Tom Tromey <tom@tromey.com>
398
399 * unittests/tui-selftests.c (run_tests): Make conditional.
400 (_initialize_tui_selftest): Make conditional.
401
638d85bc
CB
4022019-12-02 Christian Biesinger <cbiesinger@google.com>
403
404 * aix-thread.c (debug_aix_thread): Change type to bool.
405
7532a164
LM
4062019-12-02 Luis Machado <luis.machado@linaro.org>
407
408 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
409
216a7e6b
AB
4102019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
411
412 * dwarf2read.c (read_tag_string_type): Read the fields required to
413 make a dynamic string, and possibly create a dynamic range for the
414 string.
415 (attr_to_dynamic_prop): Setup is_reference based on the type of
416 attribute being processed.
417 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
418 (resolve_dynamic_array): Rename to...
419 (resolve_dynamic_array_or_string): ...this, update header comment,
420 and accept TYPE_CODE_STRING.
421 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
422
11a8b164
AB
4232019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
424
425 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
426 of its implementation from...
427 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
428 the new function.
429
5bbd8269
AB
4302019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
431
432 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
433 create a range with stride where appropriate.
434 * f-valprint.c: Include 'gdbarch.h'.
435 (f77_print_array_1): Take the stride into account when walking the
436 array. Also convert the stride into addressable units.
437 * gdbtypes.c (create_range_type): Initialise the stride to
438 constant zero.
439 (create_range_type_with_stride): New function, initialise the
440 range as normal, and then setup the stride.
441 (has_static_range): Include the stride here. Also change the
442 return type to bool.
443 (create_array_type_with_stride): Consider the range stride if the
444 array isn't given its own stride.
445 (resolve_dynamic_range): Resolve the stride if needed.
446 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
447 (struct range_bounds) <flag_is_byte_stride>: New member variable.
448 (TYPE_BIT_STRIDE): Define.
449 (TYPE_ARRAY_BIT_STRIDE): Define.
450 (create_range_type_with_stride): Declare.
451 * valarith.c (value_subscripted_rvalue): Take range stride into
452 account when walking the array.
453
82e3b564
TT
4542019-12-01 Tom Tromey <tom@tromey.com>
455
456 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
457 specially.
458
517d261d
TT
4592019-12-01 Tom Tromey <tom@tromey.com>
460
461 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
462 \0.
463 * unittests/tui-selftests.c: New file.
464 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
465
484c9b64
TT
4662019-12-01 Tom Tromey <tom@tromey.com>
467
468 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
469
a2a7af0c
TT
4702019-12-01 Tom Tromey <tom@tromey.com>
471
472 * NEWS: Document new settings.
473 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
474 * tui/tui-win.c (_initialize_tui_win): Add border style
475 observers.
476 * tui/tui-io.h (tui_apply_style): Declare.
477 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
478 longer static.
479 (apply_ansi_escape, tui_set_reverse_mode): Update.
480 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
481 Add "skip_intensity" parameter.
482 <changed>: New member.
483 <do_set_value>: Declare.
484 (tui_border_style, tui_active_border_style): Declare.
485 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
486 globals.
487 (cli_style_option): Initialize "changed".
488 (cli_style_option::do_set_value): New function.
489 (cli_style_option::add_setshow_commands): Add "skip_intensity"
490 parameter. Update.
491 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
492 (_initialize_cli_style): Update. Create TUI border style
493 commands.
494
d1da6b01
TT
4952019-12-01 Tom Tromey <tom@tromey.com>
496
497 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
498 parameter.
499 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
500 parameter.
501 * tui/tui-win.h (compact_source): Declare.
502 * tui/tui-win.c (compact_source): New global.
503 (tui_set_compact_source, tui_show_compact_source): New functions.
504 (_initialize_tui_win): Add "compact-source" setting.
505 * tui/tui-source.c (tui_source_window::set_contents): Handle
506 compact_source setting.
507 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
508 * NEWS: Document new setting.
509
489dbda6
TT
5102019-11-30 Tom Tromey <tom@tromey.com>
511
512 * dwarf2read.c (dwarf2_add_field): Include field offset when
513 computing variant part length.
514
bf498525
PW
5152019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
516 * NEWS: Mention define-prefix. Tell that command names can now
517 contain a . character.
518
be09caf1
PW
5192019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
520
521 * command.h (valid_cmd_char_p): Declare.
522 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
523 the check of valid command char.
524 (find_command_name_length, valid_user_defined_cmd_name_p): Use
525 valid_cmd_char_p.
526 * cli/cli-script.c (validate_comname): Likewise.
527 * completer.c (gdb_completer_command_word_break_characters):
528 Do not remove . from the word break char, update comments.
529 (complete_line_internal_1): Use valid_cmd_char_p.
530 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
531 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
532
c6ac7fc9
PW
5332019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
534
535 * cli/cli-script.c (do_define_command): Ensure a redefined
536 prefix command is kept as a prefix command.
537 (define_prefix_command): New function.
538 (show_user_1): Report user defined prefixes.
539 (_initialize_cli_script): Create the new 'define-prefix' command.
540 Add completers for 'define' and 'document'.
541 * top.c (execute_command): If command is a user-defined prefix only
542 command, report the list of commands for this prefix command.
543
a992a3b0
TBA
5442019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
545
546 * valops.c (find_oload_champ): Improve debug output.
547
e9194a1a
TBA
5482019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
549
550 * valops.c (find_oload_champ): Print part of debug messages
551 before the badness vector is std::move'd.
552
53a008a6
TT
5532019-11-28 Tom Tromey <tom@tromey.com>
554
555 * value.c (creal_internal_fn): Fix comment.
556
bab05c83
TT
5572019-11-28 Tom Tromey <tom@tromey.com>
558
559 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
560 flag_bound_evaluated>: Now unsigned.
561
2522f049
TT
5622019-11-28 Tom Tromey <tom@tromey.com>
563
564 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
565 declare.
566
38b49e22
MS
5672019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
568
569 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
570 debug output.
571 * jit.c (jit_unregister_code): Add debug print to match
572 `jit_register_code`.
573
35125921
CB
5742019-11-27 Christian Biesinger <cbiesinger@google.com>
575
576 * NEWS: Mention the new multithreaded symbol loading.
577
62e77f56
CB
5782019-11-27 Christian Biesinger <cbiesinger@google.com>
579
580 * maint.c (n_worker_threads): Default to 0.
581 (worker_threads_disabled): New function.
582 * maint.h (worker_threads_disabled): New function.
583 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
584 here if worker_threads_disabled () is true.
585 (minimal_symbol_reader::install): Skip all threading if
586 worker_threads_disabled () is true.
587
f29d7f6b
CB
5882019-11-27 Christian Biesinger <cbiesinger@google.com>
589
590 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
591 hash code if possible.
592 (add_minsym_to_demangled_hash_table): Likewise.
593 (minimal_symbol_reader::install): Compute the hash codes for msymbol
594 on the background thread.
595 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
596 Add these fields.
597
e76b2246
CB
5982019-11-27 Christian Biesinger <cbiesinger@google.com>
599
600 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
601 of the mangled name on the background thread.
602 * symtab.c (symbol_set_names): Allow passing in the hash of the
603 linkage_name.
604 * symtab.h (symbol_set_names): Likewise.
605
8d9a2568
KB
6062019-11-27 Kevin Buettner <kevinb@redhat.com>
607
608 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
609 physnames are computed for inherited DIEs.
610
fad03f6e
TT
6112019-11-27 Tom Tromey <tromey@adacore.com>
612
613 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
614 backslashes.
615 * cp-support.c: Remove unnecessary backslashes.
616
43678b0a
CB
6172019-11-27 Christian Biesinger <cbiesinger@google.com>
618
619 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
620 with sym->set_linkage_name.
621 * coffread.c (coff_read_enum_type): Likewise.
622 * mdebugread.c (parse_symbol): Likewise.
623 * stabsread.c (patch_block_stabs): Likewise.
624 (define_symbol): Likewise.
625 (read_enum_type): Likewise.
626 (common_block_end): Likewise.
627 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
628 function.
629 (SYMBOL_SET_LINKAGE_NAME): Remove.
630 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
631 with sym->set_linkage_name.
632
db5960b4
AB
6332019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
634
635 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
636 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
637 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
638 * NEWS: Mention new MI command.
639
7dc42066
AB
6402019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
641
642 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
643 '-symbol-info-types', and '-symbol-info-variables'.
644 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
645 (mi_cmd_symbol_info_types): Declare.
646 (mi_cmd_symbol_info_variables): Declare.
647 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
648 (output_debug_symbol): New function.
649 (output_nondebug_symbol): New function.
650 (mi_symbol_info): New function.
651 (mi_info_functions_or_variables): New function.
652 (mi_cmd_symbol_info_functions): New function.
653 (mi_cmd_symbol_info_types): New function.
654 (mi_cmd_symbol_info_variables): New function.
655 * NEWS: Mention new commands.
656
5f512a7d
AB
6572019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
658
659 * symtab.c (symbol_to_info_string): New function, most content
660 moved from print_symbol_info, but updated to return a std::string.
661 (print_symbol_info): Update to use symbol_to_info_string and print
662 returned string.
663 * symtab.h (symbol_to_info_string): Declare new function.
664
470c0b1c
AB
6652019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
666
667 * python/python.c (gdbpy_rbreak): Convert to using
668 global_symbol_searcher.
669 * symtab.c (file_matches): Convert return type to bool, change
670 file list to std::vector, update header comment.
671 (search_symbols): Rename to...
672 (global_symbol_searcher::search): ...this and update now its
673 a member function of global_symbol_searcher. Take account of the
674 changes to file_matches.
675 (symtab_symbol_info): Convert to using global_symbol_searcher.
676 (rbreak_command): Likewise.
677 (search_module_symbols): Likewise.
678 * symtab.h (enum symbol_search): Update comment.
679 (search_symbols): Remove declaration.
680 (class global_symbol_searcher): New class.
681
57357d9d
TT
6822019-11-26 Tom Tromey <tromey@adacore.com>
683
684 * cp-support.c (_initialize_cp_support): Conditionally initialize
685 gdb_demangle_attempt_core_dump.
686
3ea16160
TT
6872019-11-26 Tom Tromey <tom@tromey.com>
688
689 * python/py-function.c (fnpy_init): Update.
690 * value.h (add_internal_function): Adjust declaration.
691 * value.c (function_destroyer): Remove.
692 (do_add_internal_function): Don't set destroyer or copy name.
693 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
694 Set name_allocated.
695 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
696 (cmdpy_init): Set name_allocated.
697 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
698 member.
699 (~cmd_list_element): Free "name" if needed.
700
1a6d41c6
TT
7012019-11-26 Tom Tromey <tom@tromey.com>
702
703 * value.h (add_internal_function): Add new overload. Move
704 documentation from value.h.
705 * value.c (do_add_internal_function): New function.
706 (add_internal_function): Use it. Add new overload.
707 (function_destroyer): Don't free doc.
708 * python/py-function.c (fnpy_init): Update.
709
8318f3c3
TT
7102019-11-26 Tom Tromey <tom@tromey.com>
711
712 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
713 (cmdpy_init): Set "doc_allocated".
714
4da8c3a8
TT
7152019-11-26 Tom Tromey <tom@tromey.com>
716
717 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
718 name of worker thread.
719 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
720 pthread_setname_np.
721 * configure, config.in: Rebuild.
722
971db5e2
TT
7232019-11-26 Tom Tromey <tom@tromey.com>
724
725 * python/python.c (class gdbpy_gil): New.
726 (struct gdbpy_event): Add constructor, destructor, operator().
727 (gdbpy_post_event): Use run_on_main_thread.
728 (gdbpy_initialize_events): Remove.
729 (do_start_initialization): Update.
730
22138db6
TT
7312019-11-26 Tom Tromey <tom@tromey.com>
732
733 * NEWS: Add entry.
734 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
735 commands. Call update_thread_pool_size.
736 (update_thread_pool_size, maintenance_set_worker_threads): New
737 functions.
738 (n_worker_threads): New global.
739
d55c9a68
TT
7402019-11-26 Christian Biesinger <cbiesinger@google.com>
741 Tom Tromey <tom@tromey.com>
742
743 * minsyms.c (minimal_symbol_reader::install): Use
744 parallel_for_each.
745 * gdbsupport/parallel-for.h: New file.
746 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
747
a0b57563
CB
7482019-11-26 Christian Biesinger <cbiesinger@google.com>
749 Tom Tromey <tom@tromey.com>
750
751 * gdbsupport/thread-pool.h: New file.
752 * gdbsupport/thread-pool.c: New file.
753 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
754 (HFILES_NO_SRCDIR): Add thread-pool.h.
755
3b3978bc
TT
7562019-11-26 Tom Tromey <tom@tromey.com>
757
758 * event-top.h (thread_local_segv_handler): Declare.
759 * event-top.c (thread_local_segv_handler): New global.
760 (install_handle_sigsegv, handle_sigsegv): New functions.
761 (async_init_signals): Install SIGSEGV handler.
762 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
763 thread-local.
764 (report_failed_demangle): New function.
765 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
766 handler-setting code, instead use segv_handler. Run warning code
767 on main thread.
768
9411c49e
TT
7692019-11-26 Tom Tromey <tom@tromey.com>
770
771 * run-on-main-thread.c: New file.
772 * run-on-main-thread.h: New file.
773 * unittests/main-thread-selftests.c: New file.
774 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
775 main-thread-selftests.c.
776 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
777 (COMMON_SFILES): Add run-on-main-thread.c.
778
c3efb965
TT
7792019-11-26 Tom Tromey <tom@tromey.com>
780
781 * main.c (setup_alternate_signal_stack): Remove.
782 (captured_main_1): Use gdb::alternate_signal_stack.
783 * gdbsupport/alt-stack.h: New file.
784
21987b9c
TT
7852019-11-26 Tom Tromey <tom@tromey.com>
786
787 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
788 Remove comment.
789 (save_original_signals_state, restore_original_signals_state): Use
790 gdb_sigmask.
791 * linux-nat.c (block_child_signals, restore_child_signals_mask)
792 (_initialize_linux_nat): Use gdb_sigmask.
793 * guile/guile.c (_initialize_guile): Use block_signals.
794 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
795 * gdbsupport/gdb-sigmask.h: New file.
796 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
797 * cp-support.c (gdb_demangle): Use gdb_sigmask.
798 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
799 pthread_sigmask.
800 * configure, config.in: Rebuild.
801 * gdbsupport/block-signals.h: New file.
802
5e030278
TT
8032019-11-26 Tom Tromey <tom@tromey.com>
804
805 * acinclude.m4: Include ax_pthread.m4.
806 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
807 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
808 (CLIBS): Use PTHREAD_LIBS.
809 (aclocal_m4_deps): Add ax_pthread.m4.
810 * config.in, configure: Rebuild.
811 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
812
5a79c107
TT
8132019-11-26 Tom Tromey <tom@tromey.com>
814
815 * symtab.h (struct minimal_symbol) <name_set>: New member.
816 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
817 Don't call symbol_set_names.
818 (minimal_symbol_reader::install): Call symbol_set_names.
819
aa369509
PW
8202019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
821
822 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
823 restore_active_ext_lang, as GIL is needed for (indirectly)
824 called PyOS_InterruptOccurred.
825
cadc9cb8
SM
8262019-11-26 Simon Marchi <simon.marchi@efficios.com>
827
828 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
829 definition.
830
d04afd58
SM
8312019-11-26 Simon Marchi <simon.marchi@efficios.com>
832
833 * remote-sim.c (simulator_command): Make static, remove
834 declaration.
835
dd694d77
SM
8362019-11-26 Simon Marchi <simon.marchi@efficios.com>
837
838 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
839 static.
840 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
841 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
842 (main): Likewise.
843 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
844 (main): Likewise.
845 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
846 (main): Likewise.
847 * unittests/basic_string_view/element_access/char/1.cc (test01):
848 Likewise.
849 (main): Likewise.
850 * unittests/basic_string_view/element_access/char/empty.cc (main):
851 Likewise.
852 * unittests/basic_string_view/element_access/char/front_back.cc
853 (test01): Likewise.
854 (main): Likewise.
855 * unittests/basic_string_view/inserters/char/2.cc (test05):
856 Likewise.
857 (main): Likewise.
858 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
859 (test01): Likewise.
860 (main): Likewise.
861 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
862 (test01): Likewise.
863 (main): Likewise.
864 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
865 Likewise.
866 * unittests/basic_string_view/operations/compare/char/1.cc
867 (test01): Likewise.
868 (main): Likewise.
869 * unittests/basic_string_view/operations/compare/char/13650.cc
870 (test01): Likewise.
871 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
872 Likewise.
873 (main): Likewise.
874 * unittests/basic_string_view/operations/data/char/1.cc (test01):
875 Likewise.
876 (main): Likewise.
877 * unittests/basic_string_view/operations/find/char/1.cc (test01):
878 Likewise.
879 (main): Likewise.
880 * unittests/basic_string_view/operations/find/char/2.cc (test02):
881 Likewise.
882 (main): Likewise.
883 * unittests/basic_string_view/operations/find/char/3.cc (test03):
884 Likewise.
885 (main): Likewise.
886 * unittests/basic_string_view/operations/find/char/4.cc (main):
887 Likewise.
888 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
889 Likewise.
890 (main): Likewise.
891 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
892 Likewise.
893 (main): Likewise.
894 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
895 Likewise.
896 (main): Likewise.
897 * unittests/basic_string_view/operations/substr/char/1.cc
898 (test01): Likewise.
899 (main): Likewise.
900 * unittests/basic_string_view/operators/char/2.cc (main):
901 Likewise.
902 * unittests/optional/assignment/1.cc (test): Likewise.
903 * unittests/optional/assignment/2.cc (test): Likewise.
904 * unittests/optional/assignment/3.cc (test): Likewise.
905 * unittests/optional/assignment/4.cc (test): Likewise.
906 * unittests/optional/assignment/5.cc (test): Likewise.
907 * unittests/optional/assignment/6.cc (test): Likewise.
908 * unittests/optional/assignment/7.cc (test): Likewise.
909 * unittests/optional/cons/copy.cc (test): Likewise.
910 * unittests/optional/cons/default.cc (test): Likewise.
911 * unittests/optional/cons/move.cc (test): Likewise.
912 * unittests/optional/cons/value.cc (test): Likewise.
913 * unittests/optional/in_place.cc (test): Likewise.
914 * unittests/optional/observers/1.cc (test): Likewise.
915 * unittests/optional/observers/2.cc (test): Likewise.
916
3b5c1d49
SM
9172019-11-26 Simon Marchi <simon.marchi@efficios.com>
918
919 * tui-win.h (tui_set_var_cmd): Remove.
920 * tui-win.c (tui_set_var_cmd): Make static.
921
adce99fe
SM
9222019-11-26 Simon Marchi <simon.marchi@efficios.com>
923
924 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
925 rbreak_command_wrapper): Remove.
926 * symtab.c (rbreak_command_wrapper): Remove.
927
fe3adccf
SM
9282019-11-26 Simon Marchi <simon.marchi@efficios.com>
929
930 * inferior.h (info_terminal_command): Remove declaration.
931 * inflow.c (info_terminal_command): Make static.
932
b926335f
SM
9332019-11-26 Simon Marchi <simon.marchi@efficios.com>
934
935 * inferior.c (exit_inferior_silent): Remove.
936
b62f6f54
SM
9372019-11-26 Simon Marchi <simon.marchi@efficios.com>
938
939 * dictionary.c (dict_empty, mdict_empty): Remove.
940 * dictionary.c (mdict_empty): Remove.
941
cb8c24b6
SM
9422019-11-26 Simon Marchi <simon.marchi@efficios.com>
943
944 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
945 (arc_insn_get_memory_offset): Likewise.
946 (arc_insn_dump): Likewise.
947 * cp-support.c (test_cp_symbol_name_matches): Likewise.
948 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
949 * dictionary.c (dict_iterator_next): Likewise.
950 (dict_iter_match_first): Likewise.
951 (dict_iter_match_next): Likewise.
952 * f-lang.c (evaluate_subexp_f): Likewise.
953 * hppa-tdep.c (hppa_read_pc): Likewise.
954 * i386-tdep.c (i386_floatformat_for_type): Likewise.
955 * parse.c (write_exp_elt_msym): Likewise.
956 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
957 * remote.c (remote_packet_size): Likewise.
958 (remote_notif_stop_parse): Likewise.
959 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
960 * s12z-tdep.c (s12z_disassemble_info): Likewise.
961 * source.c (prepare_path_for_appending): Likewise.
962 * sparc64-linux-tdep.c
963 (sparc64_linux_handle_segmentation_fault); Likewise.
964 * stack.c (frame_selection_by_function_completer): Likewise.
965
781597ff
SM
9662019-11-26 Simon Marchi <simon.marchi@efficios.com>
967
968 * completer.c (set_gdb_completion_word_break_characters):
969 Remove.
970
23baa4cc
SM
9712019-11-26 Simon Marchi <simon.marchi@efficios.com>
972
973 * dwarf-index-write.c: Include dwarf-index-write.h.
974 * mi/mi-interp.c: Include mi/mi-interp.h.
975
23767560
SM
9762019-11-26 Simon Marchi <simon.marchi@efficios.com>
977
978 * aarch32-tdep.c: Include aarch32-tdep.h.
979 * aarch32-tdep.h: Forward-declare struct target_desc.
980
6d91ce9a
CB
9812019-11-26 Christian Biesinger <cbiesinger@google.com>
982
983 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
984 strerror.
985 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
986 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
987
3cf2f237
TV
9882019-11-25 Tom de Vries <tdevries@suse.de>
989
990 * contrib/words.sh: Add -c option.
991
5b89c67a
CB
9922019-11-25 Christian Biesinger <cbiesinger@google.com>
993
994 * solib.c (solib_find_1): Change int to bool.
995 (exec_file_find): Change int to bool.
996 (solib_find): Change int to bool.
997 (solib_read_symbols): Change int to bool.
998 (solib_used): Change int to bool.
999 (solib_add): Change int to bool.
1000 (info_sharedlibrary_command): Change int to bool.
1001 (solib_contains_address_p): Change int to bool.
1002 (solib_keep_data_in_core): Change int to bool.
1003 (in_solib_dynsym_resolve_code): Change int to bool.
1004 (reload_shared_libraries_1): Change int to bool.
1005 (gdb_sysroot_changed): Change int to bool.
1006 * solib.h (solib_read_symbols): Change int to bool.
1007 (solib_contains_address_p): Change int to bool.
1008 (solib_keep_data_in_core): Change int to bool.
1009 (in_solib_dynsym_resolve_code): Change int to bool.
1010 (libpthread_name_p): Change int to bool.
1011
6cc8564b
LM
10122019-11-25 Luis Machado <luis.machado@linaro.org>
1013
1014 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1015 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1016 (remote_packet_max_chars): New static global.
1017 (show_remote_packet_max_chars): New function.
1018 (remote_target::putpkt_binary): Adjust to use new
1019 remote_packet_max_chars option.
1020 (remote_target::getpkt_or_notif_sane_1): Likewise.
1021 (_initialize_remote): Register new remote-packet-max-chars option.
1022
a7cdaa91
SM
10232019-11-24 Simon Marchi <simon.marchi@efficios.com>
1024
1025 * m68k-linux-nat.c: Include gdbarch.h.
1026
26abc753
TT
10272019-11-24 Tom Tromey <tom@tromey.com>
1028
1029 * symfile.c (read_symbols): Update.
1030 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1031 bool.
1032 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1033 (psym_lookup_symbol, psym_find_last_source_symtab)
1034 (psym_forget_cached_source_info, psym_print_stats)
1035 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1036 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1037 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1038 (psym_find_compunit_symtab_by_address)
1039 (maintenance_print_psymbols, maintenance_info_psymtabs)
1040 (maintenance_check_psymtabs): Update.
1041 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1042 bool.
1043
012fc909
TT
10442019-11-22 Tom Tromey <tom@tromey.com>
1045
1046 * observable.h: Update comments.
1047
c83d8d32
TT
10482019-11-22 Tom Tromey <tromey@adacore.com>
1049
1050 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1051 (print_ada_task_info): Don't try to fetch thread id if task is not
1052 alive.
1053
987012b8
CB
10542019-11-22 Christian Biesinger <cbiesinger@google.com>
1055
1056 * ada-exp.y: Update.
1057 * ada-lang.c (sort_choices): Update.
1058 (ada_print_symbol_signature): Update.
1059 (resolve_subexp): Update.
1060 (ada_parse_renaming): Update.
1061 (ada_read_renaming_var_value): Update.
1062 (lesseq_defined_than): Update.
1063 (remove_extra_symbols): Update.
1064 (remove_irrelevant_renamings): Update.
1065 (ada_add_block_symbols): Update.
1066 (ada_collect_symbol_completion_matches): Update.
1067 (ada_is_renaming_symbol): Update.
1068 (aggregate_assign_from_choices): Update.
1069 (ada_evaluate_subexp): Update.
1070 (ada_has_this_exception_support): Update.
1071 (ada_is_non_standard_exception_sym): Update.
1072 (ada_add_exceptions_from_frame): Update.
1073 (ada_add_global_exceptions): Update.
1074 (ada_print_subexp): Update.
1075 * ax-gdb.c (gen_var_ref): Update.
1076 (gen_maybe_namespace_elt): Update.
1077 (gen_expr_for_cast): Update.
1078 (gen_expr): Update.
1079 * block.h: Update.
1080 * blockframe.c (find_pc_partial_function): Update.
1081 * breakpoint.c (print_breakpoint_location): Update.
1082 (update_static_tracepoint): Update.
1083 * btrace.c (ftrace_print_function_name): Update.
1084 (ftrace_function_switched): Update.
1085 * buildsym.c (find_symbol_in_list): Update.
1086 * c-exp.y: Update.
1087 * c-typeprint.c (c_print_typedef): Update.
1088 (c_type_print_template_args): Update.
1089 * cli/cli-cmds.c (edit_command): Update.
1090 (list_command): Update.
1091 (print_sal_location): Update.
1092 * coffread.c (patch_opaque_types): Update.
1093 (process_coff_symbol): Update.
1094 (coff_read_enum_type): Update.
1095 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1096 (convert_one_symbol): Update.
1097 (hash_symname): Update.
1098 (eq_symname): Update.
1099 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1100 * compile/compile-cplus-types.c (debug_print_scope): Update.
1101 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1102 * compile/compile-object-load.c (get_out_value_type): Update.
1103 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1104 (search_symbol_list): Update.
1105 (cp_lookup_symbol_imports_or_template): Update.
1106 * cp-support.c (overload_list_add_symbol): Update.
1107 * ctfread.c (psymtab_to_symtab): Update.
1108 * dbxread.c (cp_set_block_scope): Update.
1109 * dictionary.c (iter_match_first_hashed): Update.
1110 (iter_match_next_hashed): Update.
1111 (insert_symbol_hashed): Update.
1112 (iter_match_next_linear): Update.
1113 * dictionary.h: Update.
1114 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1115 (locexpr_describe_location_piece): Update.
1116 (locexpr_describe_location_1): Update.
1117 (locexpr_generate_c_location): Update.
1118 (loclist_describe_location): Update.
1119 (loclist_generate_c_location): Update.
1120 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1121 (read_func_scope): Update.
1122 (process_enumeration_scope): Update.
1123 (new_symbol): Update.
1124 (dwarf2_const_value): Update.
1125 (dwarf2_symbol_mark_computed): Update.
1126 * eval.c (evaluate_funcall): Update.
1127 (evaluate_subexp_standard): Update.
1128 * expprint.c (print_subexp_standard): Update.
1129 (dump_subexp_body_standard): Update.
1130 * f-valprint.c (info_common_command_for_block): Update.
1131 * findvar.c (get_hosting_frame): Update.
1132 (default_read_var_value): Update.
1133 * go-lang.c (go_symbol_package_name): Update.
1134 * guile/scm-block.c (bkscm_print_block_smob): Update.
1135 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1136 (gdbscm_symbol_name): Update.
1137 (gdbscm_symbol_linkage_name): Update.
1138 (gdbscm_symbol_print_name): Update.
1139 * infcall.c (get_function_name): Update.
1140 * infcmd.c (jump_command): Update.
1141 (finish_command): Update.
1142 * infrun.c (insert_exception_resume_breakpoint): Update.
1143 * linespec.c (canonicalize_linespec): Update.
1144 (create_sals_line_offset): Update.
1145 (convert_linespec_to_sals): Update.
1146 (complete_label): Update.
1147 (find_label_symbols_in_block): Update.
1148 * m2-typeprint.c (m2_print_typedef): Update.
1149 * mdebugread.c (mdebug_reg_to_regnum): Update.
1150 (parse_symbol): Update.
1151 (mylookup_symbol): Update.
1152 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1153 (list_args_or_locals): Update.
1154 * objc-lang.c (compare_selectors): Update.
1155 (info_selectors_command): Update.
1156 (compare_classes): Update.
1157 (info_classes_command): Update.
1158 (find_imps): Update.
1159 * p-typeprint.c (pascal_print_typedef): Update.
1160 * printcmd.c (build_address_symbolic): Update.
1161 (info_address_command): Update.
1162 (print_variable_and_value): Update.
1163 * python/py-framefilter.c (extract_sym): Update.
1164 (py_print_single_arg): Update.
1165 * python/py-symbol.c (sympy_str): Update.
1166 (sympy_get_name): Update.
1167 (sympy_get_linkage_name): Update.
1168 * python/python.c (gdbpy_rbreak): Update.
1169 * record-btrace.c (btrace_get_bfun_name): Update.
1170 (btrace_call_history): Update.
1171 * rust-lang.c (rust_print_typedef): Update.
1172 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1173 * stabsread.c (stab_reg_to_regnum): Update.
1174 (define_symbol): Update.
1175 (read_enum_type): Update.
1176 (common_block_end): Update.
1177 (cleanup_undefined_types_1): Update.
1178 (scan_file_globals): Update.
1179 * stack.c (print_frame_arg): Update.
1180 (print_frame_args): Update.
1181 (find_frame_funname): Update.
1182 (info_frame_command_core): Update.
1183 (iterate_over_block_locals): Update.
1184 (print_block_frame_labels): Update.
1185 (do_print_variable_and_value): Update.
1186 (iterate_over_block_arg_vars): Update.
1187 (return_command): Update.
1188 * symmisc.c (dump_symtab_1): Update.
1189 (print_symbol): Update.
1190 * symtab.c (eq_symbol_entry): Update.
1191 (symbol_cache_dump): Update.
1192 (lookup_language_this): Update.
1193 (find_pc_sect_line): Update.
1194 (skip_prologue_sal): Update.
1195 (symbol_search::compare_search_syms): Update.
1196 (treg_matches_sym_type_name): Update.
1197 (search_symbols): Update.
1198 (print_symbol_info): Update.
1199 (rbreak_command): Update.
1200 (completion_list_add_symbol): Update.
1201 (find_gnu_ifunc): Update.
1202 (get_symbol_address): Update.
1203 (search_module_symbols): Update.
1204 (info_module_subcommand): Update.
1205 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1206 (SYMBOL_LINKAGE_NAME): Remove.
1207 (SYMBOL_DEMANGLED_NAME): Remove.
1208 (SYMBOL_PRINT_NAME): Remove.
1209 (SYMBOL_SEARCH_NAME): Remove.
1210 * tracepoint.c (set_traceframe_context): Update.
1211 (validate_actionline): Update.
1212 (collection_list::collect_symbol): Update.
1213 (encode_actions_1): Update.
1214 (info_scope_command): Update.
1215 (print_one_static_tracepoint_marker): Update.
1216 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1217 * valops.c (address_of_variable): Update.
1218 (find_overload_match): Update.
1219 (find_oload_champ): Update.
1220
c9d95fa3
CB
12212019-11-22 Christian Biesinger <cbiesinger@google.com>
1222
1223 * ada-lang.c (ada_lookup_simple_minsym): Update.
1224 (ada_collect_symbol_completion_matches): Update.
1225 * ada-tasks.c (read_atcb): Update.
1226 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1227 (amd64_windows_skip_trampoline_code): Update.
1228 * arm-tdep.c (skip_prologue_function): Update.
1229 (arm_skip_stack_protector): Update.
1230 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1231 (arm_wince_skip_main_prologue): Update.
1232 * ax-gdb.c (gen_expr): Update.
1233 * block.c (call_site_for_pc): Update.
1234 * blockframe.c (find_pc_partial_function): Update.
1235 * breakpoint.c (set_breakpoint_location_function): Update.
1236 * btrace.c (ftrace_print_function_name): Update.
1237 (ftrace_function_switched): Update.
1238 * c-valprint.c (print_unpacked_pointer): Update.
1239 * coffread.c (coff_symfile_read): Update.
1240 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1241 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1242 * dwarf-index-write.c (write_psymbols): Update.
1243 * dwarf2loc.c (call_site_to_target_addr): Update.
1244 (func_verify_no_selftailcall): Update.
1245 (tailcall_dump): Update.
1246 (call_site_find_chain_1): Update.
1247 (dwarf_expr_reg_to_entry_parameter): Update.
1248 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1249 * eval.c (evaluate_funcall): Update.
1250 (evaluate_subexp_standard): Update.
1251 (evaluate_subexp_for_sizeof): Update.
1252 * expprint.c (print_subexp_standard): Update.
1253 (dump_subexp_body_standard): Update.
1254 * frame.c (get_prev_frame_always_1): Update.
1255 * frv-tdep.c (frv_skip_main_prologue): Update.
1256 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1257 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1258 (gnuv3_get_typename_from_type_info): Update.
1259 (gnuv3_skip_trampoline): Update.
1260 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1261 * i386-tdep.c (i386_skip_main_prologue): Update.
1262 (i386_pe_skip_trampoline_code): Update.
1263 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1264 * infcall.c (get_function_name): Update.
1265 * linespec.c (minsym_found): Update.
1266 * linux-fork.c (info_checkpoints_command): Update.
1267 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1268 (m32c_m16c_pointer_to_address): Update.
1269 * maint.c (maintenance_translate_address): Update.
1270 * minsyms.c (add_minsym_to_hash_table): Update.
1271 (add_minsym_to_demangled_hash_table): Update.
1272 (lookup_minimal_symbol_mangled): Update.
1273 (lookup_minimal_symbol_demangled): Update.
1274 (lookup_minimal_symbol_linkage): Update.
1275 (lookup_minimal_symbol_text): Update.
1276 (lookup_minimal_symbol_by_pc_name): Update.
1277 (minimal_symbol_is_less_than): Update.
1278 (compact_minimal_symbols): Update.
1279 (build_minimal_symbol_hash_tables): Update.
1280 (find_solib_trampoline_target): Update.
1281 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1282 (mips_skip_pic_trampoline_code): Update.
1283 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1284 * objc-lang.c (info_selectors_command): Update.
1285 (info_classes_command): Update.
1286 (find_methods): Update.
1287 (find_imps): Update.
1288 * p-valprint.c (pascal_val_print): Update.
1289 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1290 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1291 * printcmd.c (build_address_symbolic): Update.
1292 (info_symbol_command): Update.
1293 * psymtab.c (psymbol_name_matches): Update.
1294 (match_partial_symbol): Update.
1295 (lookup_partial_symbol): Update.
1296 (print_partial_symbols): Update.
1297 (sort_pst_symbols): Update.
1298 (maintenance_check_psymtabs): Update.
1299 * python/py-framefilter.c (py_print_frame): Update.
1300 * python/python.c (gdbpy_rbreak): Update.
1301 * record-btrace.c (btrace_get_bfun_name): Update.
1302 (btrace_call_history): Update.
1303 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1304 (rs6000_skip_trampoline_code): Update.
1305 * sol-thread.c (info_cb): Update.
1306 * stabsread.c (scan_file_globals): Update.
1307 * stack.c (find_frame_funname): Update.
1308 (info_frame_command_core): Update.
1309 * symmisc.c (dump_msymbols): Update.
1310 * symtab.c (symbol_natural_name): Rename to..,
1311 (general_symbol_info::natural_name): ...this.
1312 (symbol_demangled_name): Rename to...
1313 (general_symbol_info::demangled_name): ...this.
1314 (symbol_search_name): Rename to...
1315 (general_symbol_info::search_name): ...this.
1316 (symbol_matches_search_name): Update.
1317 (find_pc_sect_line): Update.
1318 (skip_prologue_sal): Update.
1319 (search_symbols): Update.
1320 (print_msymbol_info): Update.
1321 (rbreak_command): Update.
1322 (completion_list_add_msymbol): Update.
1323 (completion_list_objc_symbol): Update.
1324 (get_msymbol_address): Update.
1325 * symtab.h (struct general_symbol_info): Add member functions
1326 natural_name (), linkage_name (), print_name (), demangled_name (),
1327 and search_name ().
1328 (SYMBOL_NATURAL_NAME): Update.
1329 (symbol_natural_name): Move to a member function on general_symbol_info.
1330 (SYMBOL_DEMANGLED_NAME): Update.
1331 (symbol_demangled_name): Move to a member function on
1332 general_symbol_info.
1333 (SYMBOL_SEARCH_NAME): Update.
1334 (symbol_search_name): Move to a member function on general_symbol_info.
1335 (MSYMBOL_NATURAL_NAME): Remove.
1336 (MSYMBOL_LINKAGE_NAME): Remove.
1337 (MSYMBOL_PRINT_NAME): Remove.
1338 (MSYMBOL_DEMANGLED_NAME): Remove.
1339 (MSYMBOL_SEARCH_NAME): Remove.
1340 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1341
f8bab2d6
CB
13422019-11-22 Christian Biesinger <cbiesinger@google.com>
1343
1344 * symtab.c (create_demangled_names_hash): Use per_bfd->
1345 minimal_symbol_count for computing the initial size, if greater
1346 than our default size.
1347
85e7588d
TV
13482019-11-22 Tom de Vries <tdevries@suse.de>
1349
1350 * contrib/words.sh: Improve words extraction.
1351
f6180073
TV
13522019-11-22 Tom de Vries <tdevries@suse.de>
1353
1354 * contrib/words.sh: Combine sed invocations.
1355
f10ffa41
CB
13562019-11-21 Christian Biesinger <cbiesinger@google.com>
1357
1358 * Makefile.in: Update.
1359 * demangle.c: Rename to...
1360 * gdb-demangle.c: ..this.
1361 (is_cplus_marker): Change return type to bool.
1362 (_initialize_demangler): Rename to...
1363 (_initialize_gdb_demangle): ...this.
1364 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1365 * symtab.h (demangle): Remove declaration; instead include
1366 gdb-demangle.h.
1367
6ba18521
TT
13682019-11-21 Tom Tromey <tromey@adacore.com>
1369
1370 * gdbsupport/format.c (format_pieces): Parse %I64d.
1371 * unittests/format_pieces-selftests.c (test_windows_formats): New
1372 function.
1373 (run_tests): Call it.
1374
34877895
PJ
13752019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1376
1377 Byte reverse display of variables with DW_END_big, DW_END_little
1378 (DW_AT_endianity) dwarf attributes if different than the native
1379 byte order.
1380 * ada-lang.c (ada_value_binop):
1381 Use type_byte_order instead of gdbarch_byte_order.
1382 * ada-valprint.c (printstr):
1383 (ada_val_print_string):
1384 * ada-lang.c (value_pointer):
1385 (ada_value_binop):
1386 Use type_byte_order instead of gdbarch_byte_order.
1387 * c-lang.c (c_get_string):
1388 Use type_byte_order instead of gdbarch_byte_order.
1389 * c-valprint.c (c_val_print_array):
1390 Use type_byte_order instead of gdbarch_byte_order.
1391 * cp-valprint.c (cp_print_class_member):
1392 Use type_byte_order instead of gdbarch_byte_order.
1393 * dwarf2loc.c (rw_pieced_value):
1394 Use type_byte_order instead of gdbarch_byte_order.
1395 * dwarf2read.c (read_base_type): Handle DW_END_big,
1396 DW_END_little
1397 * f-lang.c (f_get_encoding):
1398 Use type_byte_order instead of gdbarch_byte_order.
1399 * findvar.c (default_read_var_value):
1400 Use type_byte_order instead of gdbarch_byte_order.
1401 * gdbtypes.c (check_types_equal):
1402 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1403 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1404 and TYPE_ENDIANITY_LITTLE if set.
1405 (type_byte_order): new function.
1406 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1407 (struct main_type) <flag_endianity_not_default>:
1408 New field.
1409 (type_byte_order): New function.
1410 * infcmd.c (default_print_one_register_info):
1411 Use type_byte_order instead of gdbarch_byte_order.
1412 * p-lang.c (pascal_printstr):
1413 Use type_byte_order instead of gdbarch_byte_order.
1414 * p-valprint.c (pascal_val_print):
1415 Use type_byte_order instead of gdbarch_byte_order.
1416 * printcmd.c (print_scalar_formatted):
1417 Use type_byte_order instead of gdbarch_byte_order.
1418 * solib-darwin.c (darwin_current_sos):
1419 Use type_byte_order instead of gdbarch_byte_order.
1420 * solib-svr4.c (solib_svr4_r_ldsomap):
1421 Use type_byte_order instead of gdbarch_byte_order.
1422 * stap-probe.c (stap_modify_semaphore):
1423 Use type_byte_order instead of gdbarch_byte_order.
1424 * target-float.c (target_float_same_format_p):
1425 Use type_byte_order instead of gdbarch_byte_order.
1426 * valarith.c (scalar_binop):
1427 (value_bit_index):
1428 Use type_byte_order instead of gdbarch_byte_order.
1429 * valops.c (value_cast):
1430 Use type_byte_order instead of gdbarch_byte_order.
1431 * valprint.c (generic_emit_char):
1432 (generic_printstr):
1433 (val_print_string):
1434 Use type_byte_order instead of gdbarch_byte_order.
1435 * value.c (unpack_long):
1436 (unpack_bits_as_long):
1437 (unpack_value_bitfield):
1438 (modify_field):
1439 (pack_long):
1440 (pack_unsigned_long):
1441 Use type_byte_order instead of gdbarch_byte_order.
1442 * findvar.c (unsigned_pointer_to_address):
1443 (signed_pointer_to_address):
1444 (unsigned_address_to_pointer):
1445 (address_to_signed_pointer):
1446 (default_read_var_value):
1447 (default_value_from_register):
1448 Use type_byte_order instead of gdbarch_byte_order.
1449 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1450 Use type_byte_order instead of gdbarch_byte_order.
1451 * riscv-tdep.c (riscv_print_one_register_info):
1452 Use type_byte_order instead of gdbarch_byte_order.
1453
87fb00ea
SM
14542019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1455
1456 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1457 (current_ui_gdb_stdin_ptr): Likewise.
1458 (current_ui_gdb_stderr_ptr): Likewise.
1459 (current_ui_gdb_stdlog_ptr): Likewise.
1460 (current_ui_current_uiout_ptr): Likewise.
1461 (gen_ret_current_ui_field_ptr): Remove.
1462
65d1cd5f
TV
14632019-11-21 Tom de Vries <tdevries@suse.de>
1464
1465 PR gdb/24956
1466 * cli/cli-script.c (execute_control_command): Only switch to
1467 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1468
9f6ad286
TT
14692019-11-19 Tom Tromey <tom@tromey.com>
1470
1471 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1472 Now static. Change type of "name".
1473 (tui_set_win_height_command): Don't copy "arg".
1474 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1475 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1476
435d3d88
AT
14772019-11-19 Ali Tamur <tamur@google.com>
1478
1479 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1480 "if (attr != nullptr)".
1481 (dwarf2_find_base_address): Likewise.
1482 (dwarf2_build_include_psymtabs): Likewise.
1483 (read_cutu_die_from_dwo): Likewise.
1484 (read_func_scope): Likewise.
1485 (read_call_site_scope): Likewise.
1486 (dwarf2_get_pc_bounds): Likewise.
1487 (dwarf2_record_block_ranges): Likewise.
1488 (dwarf2_add_field): Likewise.
1489 (dwarf2_add_member_fn): Likewise.
1490 (read_structure_type): Likewise.
1491 (read_enumeration_type): Likewise.
1492 (read_array_type): Likewise.
1493 (read_array_order): Likewise.
1494 (read_set_type): Likewise.
1495 (read_common_block): Likewise.
1496 (read_tag_reference_type): Likewise.
1497 (read_tag_string_type): Likewise.
1498 (read_subroutine_type): Likewise.
1499 (read_base_type): Likewise.
1500 (read_subrange_type): Likewise.
1501 (new_symbol): Likewise.
1502 (prepare_one_comp_unit): Likewise.
1503
c9739b6a
TT
15042019-11-19 Tom Tromey <tromey@adacore.com>
1505
1506 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1507 result in error when DebugActiveProcess fails.
1508
494409bb
SDJ
15092019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1510 Pedro Alves <palves@redhat.com>
1511
1512 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1513 * target.c (target_stack::push): Call 'unpush' if there's a
1514 target on top of the stack.
1515
2e953aca
PW
15162019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1517
1518 * python/py-block.c (blpy_dealloc): Call tp_free.
1519 (blpy_block_syms_dealloc): Likewise.
1520 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1521 * python/py-inferior.c (infpy_dealloc): Likewise.
1522 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1523 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1524 * python/py-symbol.c (sympy_dealloc): Likewise.
1525 * python/py-symtab.c (stpy_dealloc): Likewise.
1526 * python/py-type.c (typy_iterator_dealloc): Likewise.
1527
6edc43ec
CB
15282019-11-18 Christian Biesinger <cbiesinger@google.com>
1529
1530 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1531 constructor instead of using a class initializer.
1532
cd850b40
CB
15332019-11-15 Christian Biesinger <cbiesinger@google.com>
1534
1535 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1536 * configure: Regenerate.
1537 * configure.ac: Don't source common.host.
1538 * gdbsupport/common.host: Remove.
1539 * gdbsupport/mingw-strerror.c: Remove.
1540 * gdbsupport/posix-strerror.c: Rename to...
1541 * gdbsupport/safe-strerror.c: ...this.
1542
53fea9c7
CB
15432019-11-15 Christian Biesinger <cbiesinger@google.com>
1544
1545 * maint.c (scoped_command_stats::print_time): Use localtime_r
1546 instead of localtime (provided through gnulib if necessary).
1547 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1548 of ctime.
1549
f8e27d88
CB
15502019-11-15 Christian Biesinger <cbiesinger@google.com>
1551
1552 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1553 avoid compile errors.
1554
5abebf3c
CB
15552019-11-15 Christian Biesinger <cbiesinger@google.com>
1556
1557 * config.in: Regenerate.
1558 * configure: Regenerate.
1559 * gdbsupport/common.m4: No longer check for strerror_r.
1560 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1561 POSIX version of strerror_r, now that gnulib provides it if
1562 necessary.
1563
9a351667
CB
15642019-11-14 Christian Biesinger <cbiesinger@google.com>
1565
1566 * README (`configure' options): Update.
1567
55708e99
TT
15682019-11-14 Tom Tromey <tromey@adacore.com>
1569
1570 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1571 expected type for the RHS if the LHS is a convenience variable.
1572
4b09bb2e
SM
15732019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1574
1575 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1576 Provide explicit default and copy constructor.
1577
bd454f8b
PW
15782019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1579
1580 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1581 only call Py_INCREF (newbp) in the bppy_pending_object case.
1582
d1aa3cf0
TT
15832019-11-13 Tom Tromey <tromey@adacore.com>
1584
1585 PR build/25182:
1586 * psympriv.h (partial_symbol): Remove static assert.
1587 * symtab.h (general_symbol_info, symbol): Remove static assert.
1588
e06f3d6e
AB
15892019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * gdbsupport/format.c (format_pieces::format_pieces): Support
1592 printf 'z' size modifier.
1593 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1594 * printcmd.c (ui_printf): Handle size_t_arg.
1595 * ui-out.c (ui_out::vmessage): Likewise.
1596 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1597 function.
1598 (run_tests): Call test_format_int_sizes.
1599
468c0cbb
CB
16002019-11-12 Christian Biesinger <cbiesinger@google.com>
1601
1602 * ada-exp.y (write_ambiguous_var): Update.
1603 * buildsym.c (add_symbol_to_list): Update.
1604 * dwarf2read.c (read_variable): Update.
1605 (new_symbol): Update.
1606 * jit.c (finalize_symtab): Update.
1607 * language.c (language_alloc_type_symbol): Update.
1608 * symtab.c (fixup_symbol_section): Update.
1609 (initialize_objfile_symbol_1): Move code to...
1610 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1611 (allocate_symbol): Update.
1612 (allocate_template_symbol): Update.
1613 (get_symbol_address): Update.
1614 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1615 of having as a field, and add a constructor.
1616 (SYMBOL_VALUE): Update.
1617 (SYMBOL_VALUE_ADDRESS): Update.
1618 (SET_SYMBOL_VALUE_ADDRESS): Update.
1619 (SYMBOL_VALUE_BYTES): Update.
1620 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1621 (SYMBOL_BLOCK_VALUE): Update.
1622 (SYMBOL_VALUE_CHAIN): Update.
1623 (SYMBOL_LANGUAGE): Update.
1624 (SYMBOL_SECTION): Update.
1625 (SYMBOL_OBJ_SECTION): Update.
1626 (SYMBOL_SET_LANGUAGE): Update.
1627 (SYMBOL_SET_LINKAGE_NAME): Update.
1628 (SYMBOL_SET_NAMES): Update.
1629 (SYMBOL_NATURAL_NAME): Update.
1630 (SYMBOL_LINKAGE_NAME): Update.
1631 (SYMBOL_DEMANGLED_NAME): Update.
1632 (SYMBOL_SEARCH_NAME): Update.
1633 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1634 (struct symbol): Update.
1635 (struct template_symbol): Update.
1636 (struct rust_vtable_symbol): Update.
1637 * xcoffread.c (SYMBOL_DUP): Update.
1638
ed2c82c3
TT
16392019-11-12 Tom Tromey <tom@tromey.com>
1640
1641 * tui/tui-layout.c (show_layout): Set current_layout.
1642 (show_source_disasm_command, show_data)
1643 (show_source_or_disasm_and_command): Don't set current_layout.
1644
d9fcefd5
TT
16452019-11-12 Tom Tromey <tom@tromey.com>
1646
1647 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1648
45e42163
TT
16492019-11-12 Tom Tromey <tom@tromey.com>
1650
1651 * tui/tui-win.c (resize_message): New global.
1652 (show_tui_resize_message): New function.
1653 (tui_async_resize_screen): Print message if requested.
1654 (_initialize_tui_win): Add tui-resize-message setting.
1655 * NEWS: Add entry for new commands.
1656
c86d74cc
TT
16572019-11-11 Tom Tromey <tom@tromey.com>
1658
1659 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1660 functions.
1661
7b7b9424
CB
16622019-11-11 Christian Biesinger <cbiesinger@google.com>
1663
1664 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1665
086baaf1
AB
16662019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1667
1668 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1669 function.
1670 * python/python-internal.h (gdbpy_lookup_static_symbols):
1671 Declare new function.
1672 * python/python.c (python_GdbMethods): Add
1673 gdb.lookup_static_symbols method.
1674 * NEWS: Mention gdb.lookup_static_symbols.
1675
09ff83af
AB
16762019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1677
1678 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1679 static block of current object file first. Also fix typo in
1680 header comment.
1681
eb2dd8df
AB
16822019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1683
1684 * stack.c (set_last_displayed_sal): Delete.
1685 (last_displayed_sal_valid): Delete.
1686 (last_displayed_pspace): Delete.
1687 (last_displayed_addr): Delete.
1688 (last_displayed_symtab): Delete.
1689 (last_displayed_line): Delete.
1690 (class last_displayed_symtab_info_type): New.
1691 (last_displayed_symtab_info): New static global variable.
1692 (print_frame_info): Call methods on last_displayed_symtab_info.
1693 (clear_last_displayed_sal): Update header comment, and make use of
1694 last_displayed_symtab_info.
1695 (last_displayed_sal_is_valid): Likewise.
1696 (get_last_displayed_pspace): Likewise.
1697 (get_last_displayed_addr): Likewise.
1698 (get_last_displayed_symtab): Likewise.
1699 (get_last_displayed_line): Likewise.
1700 (get_last_displayed_sal): Likewise.
1701 * stack.h (clear_last_displayed_sal): Update header comment.
1702 (last_displayed_sal_is_valid): Likewise.
1703 (get_last_displayed_pspace): Likewise.
1704 (get_last_displayed_addr): Likewise.
1705 (get_last_displayed_symtab): Likewise.
1706 (get_last_displayed_line): Likewise.
1707 (get_last_displayed_sal): Likewise.
1708
62137775
AB
17092019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1710
1711 * stack.c (frame_show_address): Convert return type to bool.
1712 * stack.h (frame_show_address): Likewise, and update header
1713 comment.
1714
cf57ad6d
AB
17152019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1716
1717 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1718 * unittests/vec-utils-selftests.c: New file.
1719 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1720
0b026263
TT
17212019-11-10 Tom Tromey <tom@tromey.com>
1722
1723 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1724 (tui_highlight_win): Likewise.
1725 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1726 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1727 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1728 Don't set can_highlight.
1729
b049ce2d
TT
17302019-11-10 Tom Tromey <tom@tromey.com>
1731
1732 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1733 Remove unused declaration.
1734
992a7040
TT
17352019-11-08 Tom Tromey <tromey@adacore.com>
1736
1737 * top.c (read_command_file): Update.
1738 (command_line_input): Make return type const.
1739 * python/py-gdb-readline.c: Update.
1740 * linespec.c (decode_line_2): Update.
1741 * defs.h (command_line_input): Make return type const.
1742 * cli/cli-script.c (read_next_line): Make return type const.
1743 * ada-lang.c (get_selections): Update.
1744
ca3a04f6
CB
17452019-11-06 Christian Biesinger <cbiesinger@google.com>
1746
1747 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1748 * mi/mi-main.c (output_cores): Likewise.
1749 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1750 (linux_xfer_osdata_modules): Likewise.
1751 * remote.c (register_remote_support_xml): Likewise.
1752 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1753 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1754
e0eac551
TT
17552019-11-06 Tom Tromey <tom@tromey.com>
1756
1757 * tui/tui-interp.c: Don't include readline.h.
1758 * tui/tui-hooks.c: Don't include readline.h.
1759 * symmisc.c: Include tilde.h, not readline.h.
1760 * symfile.c: Include tilde.h, not readline.h.
1761 * source.c: Include tilde.h, not readline.h.
1762 * solib.c: Include tilde.h, not readline.h.
1763 * psymtab.c: Include tilde.h, not readline.h.
1764 * exec.c: Include tilde.h, not readline.h.
1765 * corelow.c: Include tilde.h, not readline.h.
1766 * cli/cli-dump.c: Include tilde.h, not readline.h.
1767 * cli/cli-cmds.c: Don't include readline.h.
1768
825165c5
TT
17692019-11-05 Tom Tromey <tom@tromey.com>
1770
1771 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1772 (tui_disassemble): Set addr_size.
1773 (tui_disasm_window::set_contents): Use addr_size.
1774
91ae903f
TT
17752019-11-05 Tom Tromey <tom@tromey.com>
1776
1777 * rust-lang.c (rust_language_defn): Update.
1778 * python/py-value.c (valpy_string): Call c_get_string.
1779 * p-lang.c (pascal_language_defn): Update.
1780 * opencl-lang.c (opencl_language_defn): Update.
1781 * objc-lang.c (objc_language_defn): Update.
1782 * m2-lang.c (m2_language_defn): Update.
1783 * language.c (unknown_language_defn, auto_language_defn): Update.
1784 (default_get_string): Remove.
1785 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1786 * go-lang.c (go_language_defn): Update.
1787 * f-lang.c (f_language_defn): Update.
1788 * d-lang.c (d_language_defn): Update.
1789 * c-lang.c (c_language_defn, cplus_language_defn)
1790 (asm_language_defn, minimal_language_defn): Update.
1791 * ada-lang.c (ada_language_defn): Update.
1792 * language.h (struct language_defn) <la_get_string>: Remove.
1793 (LA_GET_STRING): Remove.
1794 (default_get_string): Don't declare.
1795
1df2f9ef
TT
17962019-11-05 Tom Tromey <tom@tromey.com>
1797
1798 * tui/tui-source.h (struct tui_source_window): Inline
1799 constructor. Remove destructor.
1800 <style_changed, m_observable>: Move to superclass.
1801 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1802 (struct tui_source_window_base): Move private members to end.
1803 <style_changed, m_observable>: Move from tui_source_window.
1804 * tui/tui-winsource.c (tui_copy_source_line): Move from
1805 tui-source.c. Rename from copy_source_line. Add special handling
1806 for negative line number.
1807 (tui_source_window_base::style_changed): Move from
1808 tui_source_window.
1809 (tui_source_window_base): Register observer.
1810 (~tui_source_window_base): New.
1811 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1812 rename.
1813 (tui_source_window::set_contents): Use tui_copy_source_line.
1814 (tui_source_window::tui_source_window): Move to tui-source.h.
1815 (tui_source_window::~tui_source_window): Remove.
1816 (tui_source_window::style_changed): Move to superclass.
1817 * tui/tui-disasm.c (tui_disassemble): Create string file with
1818 styling, when possible. Add "addr_size" parameter.
1819 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1820 Don't compute maximum size.
1821 (len_without_escapes): New function
1822
5d051055
TT
18232019-11-05 Tom Tromey <tom@tromey.com>
1824
1825 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1826 std::string.
1827 * tui/tui-winsource.c (tui_show_source_line): Update.
1828 * tui/tui-source.c (tui_source_window::set_contents): Update.
1829 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1830
ade7beea
CB
18312019-11-05 Christian Biesinger <cbiesinger@google.com>
1832
1833 * symtab.h (gdb_static_assert): Put && operator at the beginning
1834 of the line instead of the end.
1835
3573abe1
CB
18362019-11-04 Christian Biesinger <cbiesinger@google.com>
1837
1838 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1839 and sizeof (symbol).
1840 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1841
dae8b3eb
RO
18422019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1843
1844 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1845 * configure.host: Mark *-*-solaris2.10* obsolete.
1846 * configure.tgt: Mark Solaris < 11 obsolete.
1847 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1848 Update target triplet.
1849
5df96a4e
TT
18502019-11-01 Tom Tromey <tromey@adacore.com>
1851
1852 * utils.c (print_sys_errmsg): Simplify.
1853
b7481649
TT
18542019-11-01 Tom Tromey <tromey@adacore.com>
1855
1856 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1857
e48f6033
CB
18582019-11-01 Christian Biesinger <cbiesinger@google.com>
1859
1860 * configure: Regenerate.
1861 * configure.ac: Remove check for strerror_r.
1862 * gdbsupport/common.m4: Check for strerror_r.
1863
bd5766ec
LM
18642019-11-01 Luis Machado <luis.machado@linaro.org>
1865
1866 PR gdb/25124
1867
1868 * arm-tdep.c (arm_per_objfile): Rename to ...
1869 (arm_per_bfd): ... this.
1870 (arm_objfile_data_key): Rename to ...
1871 (arm_bfd_data_key): ... this.
1872 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1873 data.
1874 (arm_record_special_symbol): Likewise.
1875
e1709896
AB
18762019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1877
1878 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1879 end.
1880 * c-typeprint.c (c_print_typedef): Likewise.
1881 * f-typeprint.c (f_print_typedef): Likewise.
1882 * m2-typeprint.c (m2_print_typedef): Likewise.
1883 * p-typeprint.c (pascal_print_typedef): Likewise.
1884 * rust-lang.c (rust_print_typedef): Likewise.
1885 * symtab.c (print_symbol_info): Print a newline after calling
1886 typedef_print.
1887
165f8965
AB
18882019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1889
1890 * symtab.c (info_module_cmdlist): New variable.
1891 (info_module_command): New function.
1892 (search_module_symbols): New function.
1893 (info_module_subcommand): New function.
1894 (struct info_modules_var_func_options): New struct.
1895 (info_modules_var_func_options_defs): New variable.
1896 (make_info_modules_var_func_options_def_group): New function.
1897 (info_module_functions_command): New function.
1898 (info_module_variables_command): New function.
1899 (info_module_var_func_command_completer): New function.
1900 (_initialize_symtab): Register new 'info module functions' and
1901 'info module variables' commands.
1902 * symtab.h (typedef symbol_search_in_module): New typedef.
1903 (search_module_symbols): Declare new function.
1904 * NEWS: Mention new commands.
1905
59c35742
AB
19062019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1907
1908 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1909 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1910 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1911 MODULES_DOMAIN.
1912 (scan_partial_symbols): Only create partial module symbols for non
1913 declarations.
1914 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1915 and MODULES_DOMAIN.
1916 * symtab.c (search_domain_name): Likewise.
1917 (search_symbols): Likewise.
1918 (print_symbol_info): Likewise.
1919 (symtab_symbol_info): Likewise.
1920 (info_modules_command): New function.
1921 (_initialize_symtab): Register 'info modules' command.
1922 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1923 * NEWS: Mention new 'info modules' command.
1924
aed61d02
PW
19252019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1926
1927 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1928 and $_gdb_maint_setting_str.
1929
9ad9b77d
PW
19302019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1931
1932 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1933 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1934 (str_value_from_setting, gdb_setting_str_internal_fn)
1935 (gdb_maint_setting_str_internal_fn): New functions.
1936 (_initialize_cli_cmds): Define the new convenience functions.
1937 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1938 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1939
8d6efaa2
CB
19402019-10-31 Christian Biesinger <cbiesinger@google.com>
1941
1942 * agent.c (set_can_use_agent): When the setting is turned on,
1943 look up agent symbols if we don't have them yet.
1944 (agent_new_objfile): Don't look up agent symbols when the agent
1945 setting is off.
1946
33cb1647
CB
19472019-10-31 Christian Biesinger <cbiesinger@google.com>
1948
1949 * config.in: Regenerate.
1950
b231e86a
CB
19512019-10-31 Christian Biesinger <cbiesinger@google.com>
1952
1953 * configure: Regenerate.
1954 * configure.ac: Check for strerror_r.
1955 * gdbsupport/common-utils.h (safe_strerror): Change return value
1956 to const char * and document that this function is now threadsafe.
1957 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1958 thread_local and call strerror_r, if available.
1959 * utils.c (perror_string): Update.
1960 (print_sys_errmsg): Update.
1961
a2726d4f
LM
19622019-10-31 Luis Machado <luis.machado@linaro.org>
1963
1964 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1965 objfile_key.
1966 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1967 objfile to fetch per-bfd data.
1968 (arm_find_exidx_entry): Likewise.
1969
75cafaa6
CB
19702019-10-31 Christian Biesinger <cbiesinger@google.com>
1971
1972 * gdbsupport/agent.c (debug_agent): Change type to bool.
1973 (use_agent): Likewise.
1974 (all_agent_symbols_look_up): Likewise.
1975 (agent_loaded_p): Change return value to bool.
1976 (agent_look_up_symbols): Update.
1977 (agent_capability_check): Change return value to bool.
1978 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1979 (debug_agent): Change type to bool.
1980 (use_agent): Likewise.
1981 (agent_capability_check): Change return value to bool.
1982
808590ec
CB
19832019-10-30 Christian Biesinger <cbiesinger@google.com>
1984
1985 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1986 (build_minimal_symbol_hash_tables): Code to clear the table moved
1987 to clear_minimal_symbol_hash_tables.
1988 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1989 when needed.
1990
f18ad8a1
SM
19912019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1992
1993 * infcmd.c: Remove includes.
1994 * infrun.c: Remove includes.
1995
de93309a
SM
19962019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1997
1998 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1999 (grow_vect): Remove declaration.
2000 (ada_type_of_array): Remove declaration.
2001 (ada_update_initial_language): Remove declaration.
2002 (ada_fold_name): Remove declaration.
2003 (ada_fill_in_ada_prototype): Remove declaration.
2004 (user_select_syms): Remove declaration.
2005 (get_selections): Remove declaration.
2006 (ada_tag_type): Remove declaration.
2007 (ada_value_tag): Remove declaration.
2008 (ada_is_others_clause): Remove declaration.
2009 (ada_in_variant): Remove declaration.
2010 (ada_value_struct_elt): Remove declaration.
2011 (ada_attribute_name): Remove declaration.
2012 (ada_system_address_type): Remove declaration.
2013 * ada-lang.c (ada_watch_location_expression): Make static.
2014 (GROW_VECT): Move here from ada-lang.h.
2015 (grow_vect): Make static.
2016 (ada_update_initial_language): Make static.
2017 (ada_fold_name): Make static.
2018 (ada_type_of_array): Make static.
2019 (encoded_ordered_before): Move up.
2020 (sort_choices): Move up.
2021 (print_signatures): Move up.
2022 (ada_print_symbol_signature): Move up.
2023 (get_selections): Move up and make static.
2024 (user_select_syms): Move up and make static.
2025 (ada_value_struct_elt): Move up and make static.
2026 (ada_tag_type): Make static.
2027 (ada_value_tag): Make static.
2028 (ada_is_others_clause): Make static.
2029 (ada_in_variant): Make static.
2030 (ada_attribute_name): Make static.
2031
cdc46a9f
SM
20322019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2033
2034 * ada-lang.c: Remove includes.
2035 * ada-typeprint.c: Remove includes.
2036 * ada-valprint.c: Remove includes.
2037
90421c56
SM
20382019-10-29 Simon Marchi <simon.marchi@efficios.com>
2039
2040 * addrmap.c: Add static assertions of type size, moved from
2041 _initialize_addrmap.
2042 (_initialize_addrmap): Remove.
2043
31edb802
CB
20442019-10-29 Christian Biesinger <cbiesinger@google.com>
2045
2046 * coffread.c (record_minimal_symbol): Update.
2047 (process_coff_symbol): Update.
2048 * dbxread.c (read_dbx_symtab): Update.
2049 * dwarf2read.c (add_partial_symbol): Update.
2050 (fixup_go_packaging): Update.
2051 (load_partial_dies): Update.
2052 (new_symbol): Update.
2053 * elfread.c (record_minimal_symbol): Change signature to use
2054 gdb::string_view instead of name+len.
2055 (elf_symtab_read): Update.
2056 (elf_rel_plt_read): Update.
2057 * mdebugread.c (parse_partial_symbols): Update.
2058 (handle_psymbol_enumerators): Update.
2059 (new_symbol): Update.
2060 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2061 to use gdb::string_view instead of name+len.
2062 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2063 * psympriv.h (add_psymbol_to_list): Likewise.
2064 * psymtab.c (add_psymbol_to_bcache): Likewise.
2065 (add_psymbol_to_list): Likewise.
2066 * stabsread.c (define_symbol): Update.
2067 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2068 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2069 (symbol_set_names): Likewise.
2070 * xcoffread.c (scan_xcoff_symtab): Update.
2071
0c921b21
CB
20722019-10-29 Christian Biesinger <cbiesinger@google.com>
2073
2074 * symtab.h (symbol_set_names): Document that copy_name must be
2075 set to true for non-nullterminated strings.
2076 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2077 linkage_name if the entry was not found and we need to demangle.
2078
35e65c49
CB
20792019-10-29 Christian Biesinger <cbiesinger@google.com>
2080
2081 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2082 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2083 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2084 * gdbsupport/gdb_binary_search.h: New file.
2085
ed2a2229
CB
20862019-10-29 Christian Biesinger <cbiesinger@google.com>
2087
2088 * NEWS: Mention new --with-system-gdbinit-dir option.
2089 * config.in: Regenerate.
2090 * configure: Regenerate.
2091 * configure.ac: Add new option --with-system-gdbinit-dir.
2092 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2093 for a ".gdb" suffix.
2094 * main.c (get_init_files): Change system_gdbinit argument to
2095 a vector and return the files in SYSTEM_GDBINIT_DIR in
2096 addition to SYSTEM_GDBINIT.
2097 (captured_main_1): Update.
2098 (print_gdb_help): Update.
2099 * top.c (print_gdb_configuration): Also print the value of
2100 SYSTEM_GDBINIT_DIR.
2101
87f34879
CB
21022019-10-28 Christian Biesinger <cbiesinger@google.com>
2103
2104 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2105 that takes gdb::string_view arguments.
2106
30baf67b
TV
21072019-10-26 Tom de Vries <tdevries@suse.de>
2108
2109 * aarch64-linux-tdep.c: Fix typos in comments.
2110 * aarch64-tdep.c: Same.
2111 * ada-lang.c: Same.
2112 * amd64-nat.c: Same.
2113 * arc-tdep.c: Same.
2114 * arch/aarch64-insn.c: Same.
2115 * block.c: Same.
2116 * breakpoint.h: Same.
2117 * btrace.h: Same.
2118 * c-varobj.c: Same.
2119 * cli/cli-decode.c: Same.
2120 * cli/cli-script.c: Same.
2121 * cli/cli-utils.h: Same.
2122 * coff-pe-read.c: Same.
2123 * coffread.c: Same.
2124 * compile/compile-cplus-symbols.c: Same.
2125 * compile/compile-object-run.c: Same.
2126 * completer.c: Same.
2127 * corelow.c: Same.
2128 * cp-support.c: Same.
2129 * demangle.c: Same.
2130 * dwarf-index-write.c: Same.
2131 * dwarf2-frame.c: Same.
2132 * dwarf2-frame.h: Same.
2133 * eval.c: Same.
2134 * frame-base.h: Same.
2135 * frame.h: Same.
2136 * gdbcmd.h: Same.
2137 * gdbtypes.h: Same.
2138 * gnu-nat.c: Same.
2139 * guile/scm-objfile.c: Same.
2140 * i386-tdep.c: Same.
2141 * i386-tdep.h: Same.
2142 * infcall.c: Same.
2143 * infcall.h: Same.
2144 * linux-nat.c: Same.
2145 * m68k-tdep.c: Same.
2146 * macroexp.c: Same.
2147 * memattr.c: Same.
2148 * mi/mi-cmd-disas.c: Same.
2149 * mi/mi-getopt.h: Same.
2150 * mi/mi-main.c: Same.
2151 * minsyms.c: Same.
2152 * nat/aarch64-sve-linux-sigcontext.h: Same.
2153 * objfiles.h: Same.
2154 * ppc-linux-nat.c: Same.
2155 * ppc-linux-tdep.c: Same.
2156 * ppc-tdep.h: Same.
2157 * progspace.h: Same.
2158 * prologue-value.h: Same.
2159 * python/py-evtregistry.c: Same.
2160 * python/py-instruction.h: Same.
2161 * record-btrace.c: Same.
2162 * record-full.c: Same.
2163 * remote.c: Same.
2164 * rs6000-tdep.c: Same.
2165 * ser-tcp.c: Same.
2166 * sol-thread.c: Same.
2167 * sparc-sol2-tdep.c: Same.
2168 * sparc64-tdep.c: Same.
2169 * stabsread.c: Same.
2170 * symfile.c: Same.
2171 * symtab.h: Same.
2172 * target.c: Same.
2173 * tracepoint.c: Same.
2174 * tui/tui-data.h: Same.
2175 * tui/tui-io.c: Same.
2176 * tui/tui-win.c: Same.
2177 * tui/tui.c: Same.
2178 * unittests/rsp-low-selftests.c: Same.
2179 * user-regs.h: Same.
2180 * utils.c: Same.
2181 * utils.h: Same.
2182 * valarith.c: Same.
2183 * valops.c: Same.
2184 * valprint.c: Same.
2185 * valprint.h: Same.
2186 * value.c: Same.
2187 * value.h: Same.
2188 * varobj.c: Same.
2189 * x86-nat.h: Same.
2190 * xtensa-tdep.c: Same.
2191
1834d45f
AT
21922019-10-25 Ali Tamur <tamur@google.com>
2193
2194 * charset.c (find_charset_names): Reflect API change.
2195
5396ae17
CB
21962019-10-25 Christian Biesinger <cbiesinger@google.com>
2197
2198 * symtab.c (struct demangled_name_entry): Change demangled name
2199 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2200 part of the struct anymore.
2201 (symbol_set_names): No longer obstack allocate + copy the demangled
2202 name, just store the allocated name from bfd.
2203
93878f47
TT
22042019-10-25 Tom Tromey <tromey@adacore.com>
2205
2206 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2207 (bsearch_cie_cmp, add_cie): Remove.
2208 (find_cie): Reimplement.
2209 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2210 (dwarf2_build_frame_info): Update.
2211
7b71fc97
L
22122019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2213
2214 PR gdb/25126
2215 * symfile.c (reread_symbols): Call forget_cached_source_info to
2216 clear the stale source cache.
2217
cbb5a2ea
CB
22182019-10-24 Christian Biesinger <cbiesinger@google.com>
2219
2220 * configure: Regenerate.
2221 * configure.ac: Remove code that sets python_has_threads.
2222
71737c43
CB
22232019-10-24 Christian Biesinger <cbiesinger@google.com>
2224
2225 * config.in: Regenerate.
2226 * configure: Regenerate.
2227 * configure.ac: Remove the code that uses sed to get the python
2228 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2229
33d569b7
AB
22302019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2231
2232 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2233 error paths.
2234
f16f7b7c
TT
22352019-10-23 Tom Tromey <tom@tromey.com>
2236
2237 * arc-tdep.c: Remove ".." from include.
2238 * frv-tdep.c: Remove ".." from include.
2239 * lm32-tdep.c: Remove ".." from include.
2240 * microblaze-tdep.c: Remove ".." from include.
2241 * or1k-tdep.h: Remove ".." from include.
2242 * s12z-tdep.c: Remove ".." from include.
2243 * Makefile.in (OPCODES_CFLAGS): Add comment.
2244 (TOP_CFLAGS): New variable.
2245 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2246
6999161a
TT
22472019-10-23 Tom Tromey <tom@tromey.com>
2248
2249 * Makefile.in (READLINE_DIR): Update.
2250
12e7c35e
TBA
22512019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2252
2253 * infcall.c (call_function_by_hand_dummy): Fix the function
2254 comment. And extract out a code section into...
2255 (reserve_stack_space): ...this new function.
2256
37055cad
TBA
22572019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2258
2259 * infcall.c (value_arg_coerce): Remove an unused parameter.
2260 (call_function_by_hand_dummy): Update the call to
2261 'value_arg_coerce'.
2262
39bcc47c
TBA
22632019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2264
2265 * infcall.c (call_function_by_hand_dummy): Refactor.
2266
bd888c0f
TBA
22672019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2268
2269 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2270
c12d372d
TT
22712019-10-23 Tom Tromey <tom@tromey.com>
2272
2273 * configure: Rebuild.
2274 * configure.ac: Don't check for sigprocmask.
2275 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2276
4d0b984b
TT
22772019-10-23 Tom Tromey <tom@tromey.com>
2278
2279 * configure: Rebuild.
2280 * acinclude.m4: Use m4_include, not sinclude.
2281
7e785608
TV
22822019-10-23 Tom de Vries <tdevries@suse.de>
2283
2284 PR breakpoints/24687
2285 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2286
403772ef
CB
22872019-10-22 Christian Biesinger <cbiesinger@google.com>
2288
2289 * symtab.c (struct demangled_name_entry) <language>: Change from
2290 bitfield to regular variable.
2291
3a494279
CB
22922019-10-22 Christian Biesinger <cbiesinger@google.com>
2293
2294 * symtab.c (struct demangled_name_entry): Add a constructor.
2295 (free_demangled_name_entry): New function to call the destructor
2296 for demangled_name_entry.
2297 (create_demangled_names_hash): Pass free_demangled_name_entry to
2298 htab_create_alloc.
2299 (symbol_set_names): Call placement new for demangled_name_entry.
2300 * utils.c: No longer include xxhash.h here, now that fast_hash
2301 is inlined in the header.
2302 * utils.h: Instead, include it here.
2303
ccb1ba62
CB
23042019-10-22 Christian Biesinger <cbiesinger@google.com>
2305
2306 * Makefile.in: Link with libxxhash.
2307 * config.in: Regenerate.
2308 * configure: Regenerate.
2309 * configure.ac: Search for libxxhash.
2310 * utils.c (fast_hash): Use xxhash if present.
2311
1a6ff1a9
CB
23122019-10-22 Christian Biesinger <cbiesinger@google.com>
2313
2314 * utils.h (fast_hash): New function.
2315 * symtab.c (hash_demangled_name_entry): Call new function
2316 fast_hash.
2317
7bb43059
CB
23182019-10-22 Christian Biesinger <cbiesinger@google.com>
2319
2320 * symtab.c (struct demangled_name_entry): Change type of mangled
2321 to gdb::string_view. Also adds a constructor that takes the
2322 mangled name.
2323 (hash_demangled_name_entry): Update.
2324 (eq_demangled_name_entry): Update.
2325 (free_demangled_name_entry): New function to call the destructor
2326 now that this is not a POD anymore.
2327 (create_demangled_names_hash): Pass free_demangled_name_entry to
2328 htab_create_alloc.
2329 (symbol_set_names): Update.
2330
7ba99d21
AT
23312019-10-21 Ali Tamur <tamu@google.com>
2332
2333 * dwarf2read.c (dir_index): Change type.
2334 (file_name_index): Likewise.
2335 (line_header::include_dir_at): Change comment and implementation on
2336 whether it is DWARF 5.
2337 (line_header::is_valid_file_index): New function.
2338 (line_header::file_name_at): Change comment and implementation on
2339 whether it is DWARF 5.
2340 (line_header::file_names): Change to private field renamed as
2341 m_file_names and introduce a new accessor method.
2342 (line_header::file_names_size): New method.
2343 (line_header::include_dirs): Change to private field and rename as
2344 m_include_dirs.
2345 (dw2_get_file_names_reader): Define local var at a smaller scope and
2346 reflect API change.
2347 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2348 (process_structure_scope): Likewise.
2349 (line_header::add_include_dir): Change message and reflect renaming.
2350 (line_header::add_file_name): Likewise.
2351 (read_formatted_entries): Handle DW_FORM_data16.
2352 (dwarf_decode_line_header): Fix line header length calculation.
2353 (psymtab_include_file_name): Change comment and API.
2354 (lnp_state_machine::m_file): Update comment and reflect type change.
2355 (lnp_state_machine::record_line): Reflect type change.
2356 (dwarf_decode_lines): Reflect API change.
2357 (file_file_name): Likewise.
2358 (file_full_name): Likewise.
2359
45f47c3a
AB
23602019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2361
2362 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2363
e5f3c0e3
TT
23642019-10-21 Tom Tromey <tom@tromey.com>
2365
2366 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2367
a0a461e5
TT
23682019-10-21 Tom Tromey <tom@tromey.com>
2369
2370 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2371 NM_H. Use AC_CONFIG_LINKS.
2372 * configure: Rebuild.
2373 * Makefile.in (NM_H): New variable.
2374 (generated_files): Add NM_H. Remove gcore.
2375 (nm.h, stamp-nmh): New targets.
2376
54d83b8d
TT
23772019-10-20 Tom Tromey <tom@tromey.com>
2378
2379 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2380 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2381 obsolete comment.
2382 (put_objfile_before): Now static.
2383
23771117
SM
23842019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2385
2386 * gdbsupport/common-utils.h (startswith): Change return type to
2387 bool.
2388
39ef2f62
CB
23892019-10-19 Christian Biesinger <cbiesinger@google.com>
2390
2391 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2392 * breakpoint.c (bp_locations_compare): Rename to...
2393 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2394 (update_global_location_list): Use std::sort instead of qsort.
2395 * buildsym.c (compare_line_numbers): Rename to...
2396 (lte_is_less_than): ...this, and change to std::sort semantics.
2397 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2398 instead of qsort.
2399 * disasm.c (compare_lines): Rename to...
2400 (line_is_less_than): ...this, and change to std::sort semantics.
2401 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2402 of qsort.
2403 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2404 (fde_is_less_than): ...this, and change to std::sort semantics.
2405 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2406 * mdebugread.c (compare_blocks):
2407 (block_is_less_than): ...this, and change to std::sort semantics.
2408 (sort_blocks): Call std::sort instead of qsort.
2409 * objfiles.c (qsort_cmp): Rename to...
2410 (sort_cmp): ...this, and change to std::sort semantics.
2411 (update_section_map): Call std::sort instead of qsort.
2412 * remote.c (compare_pnums): Remove.
2413 (map_regcache_remote_table): Call std::sort instead of qsort.
2414 * utils.c (compare_positive_ints): Remove.
2415 * utils.h (compare_positive_ints): Remove.
2416 * xcoffread.c (compare_lte): Remove.
2417 (arrange_linetable): Call std::sort instead of qsort.
2418
f71433ee
SDJ
24192019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2420
2421 * symfile.c (init_entry_point_info): Fix typo.
2422 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2423
85102364
TV
24242019-10-18 Tom de Vries <tdevries@suse.de>
2425
2426 * aarch64-tdep.c: Fix typos in comments.
2427 * ada-lang.c: Same.
2428 * ada-tasks.c: Same.
2429 * alpha-tdep.c: Same.
2430 * alpha-tdep.h: Same.
2431 * amd64-nat.c: Same.
2432 * amd64-windows-tdep.c: Same.
2433 * arc-tdep.c: Same.
2434 * arc-tdep.h: Same.
2435 * arch-utils.c: Same.
2436 * arm-nbsd-tdep.c: Same.
2437 * arm-tdep.c: Same.
2438 * ax-gdb.c: Same.
2439 * blockframe.c: Same.
2440 * btrace.c: Same.
2441 * c-varobj.c: Same.
2442 * coff-pe-read.c: Same.
2443 * coffread.c: Same.
2444 * cris-tdep.c: Same.
2445 * darwin-nat.c: Same.
2446 * dbxread.c: Same.
2447 * dcache.c: Same.
2448 * disasm.c: Same.
2449 * dtrace-probe.c: Same.
2450 * dwarf-index-write.c: Same.
2451 * dwarf2-frame-tailcall.c: Same.
2452 * dwarf2-frame.c: Same.
2453 * dwarf2read.c: Same.
2454 * eval.c: Same.
2455 * exceptions.c: Same.
2456 * fbsd-tdep.c: Same.
2457 * findvar.c: Same.
2458 * frame.c: Same.
2459 * frv-tdep.c: Same.
2460 * gnu-v3-abi.c: Same.
2461 * go32-nat.c: Same.
2462 * h8300-tdep.c: Same.
2463 * hppa-tdep.c: Same.
2464 * i386-linux-tdep.c: Same.
2465 * i386-tdep.c: Same.
2466 * ia64-libunwind-tdep.c: Same.
2467 * ia64-tdep.c: Same.
2468 * infcmd.c: Same.
2469 * infrun.c: Same.
2470 * linespec.c: Same.
2471 * linux-nat.c: Same.
2472 * linux-thread-db.c: Same.
2473 * machoread.c: Same.
2474 * mdebugread.c: Same.
2475 * mep-tdep.c: Same.
2476 * mn10300-tdep.c: Same.
2477 * namespace.c: Same.
2478 * objfiles.c: Same.
2479 * opencl-lang.c: Same.
2480 * or1k-tdep.c: Same.
2481 * osabi.c: Same.
2482 * ppc-linux-nat.c: Same.
2483 * ppc-linux-tdep.c: Same.
2484 * ppc-sysv-tdep.c: Same.
2485 * printcmd.c: Same.
2486 * procfs.c: Same.
2487 * record-btrace.c: Same.
2488 * record-full.c: Same.
2489 * remote-fileio.c: Same.
2490 * remote.c: Same.
2491 * rs6000-tdep.c: Same.
2492 * s12z-tdep.c: Same.
2493 * score-tdep.c: Same.
2494 * ser-base.c: Same.
2495 * ser-go32.c: Same.
2496 * skip.c: Same.
2497 * sol-thread.c: Same.
2498 * solib-svr4.c: Same.
2499 * solib.c: Same.
2500 * source.c: Same.
2501 * sparc-nat.c: Same.
2502 * sparc-sol2-tdep.c: Same.
2503 * sparc-tdep.c: Same.
2504 * sparc64-tdep.c: Same.
2505 * stabsread.c: Same.
2506 * stack.c: Same.
2507 * symfile.c: Same.
2508 * symtab.c: Same.
2509 * target-descriptions.c: Same.
2510 * target-float.c: Same.
2511 * thread.c: Same.
2512 * utils.c: Same.
2513 * valops.c: Same.
2514 * valprint.c: Same.
2515 * value.c: Same.
2516 * varobj.c: Same.
2517 * windows-nat.c: Same.
2518 * xcoffread.c: Same.
2519 * xstormy16-tdep.c: Same.
2520 * xtensa-tdep.c: Same.
2521
c5adaa19
TT
25222019-10-17 Tom Tromey <tromey@adacore.com>
2523
2524 * configure: Rebuild.
2525 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2526 in AC_CONFIG_FILES invocation.
2527 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2528 new-style config.status invocation.
2529
405feb71
TV
25302019-10-17 Tom de Vries <tdevries@suse.de>
2531
2532 * arm-nbsd-nat.c: Fix typos in comments.
2533 * arm-tdep.c: Same.
2534 * darwin-nat-info.c: Same.
2535 * dwarf2read.c: Same.
2536 * elfread.c: Same.
2537 * event-top.c: Same.
2538 * findvar.c: Same.
2539 * gdbtypes.c: Same.
2540 * hppa-tdep.c: Same.
2541 * i386-tdep.c: Same.
2542 * jit.c: Same.
2543 * main.c: Same.
2544 * mdebugread.c: Same.
2545 * moxie-tdep.c: Same.
2546 * nto-procfs.c: Same.
2547 * osabi.c: Same.
2548 * ppc-linux-tdep.c: Same.
2549 * remote.c: Same.
2550 * riscv-tdep.c: Same.
2551 * s390-tdep.c: Same.
2552 * sh-tdep.c: Same.
2553 * sparc-linux-tdep.c: Same.
2554 * sparc-nat.c: Same.
2555 * stack.c: Same.
2556 * target-descriptions.c: Same.
2557 * top.c: Same.
2558 * varobj.c: Same.
2559
befcd486
TT
25602019-10-16 Tom Tromey <tom@tromey.com>
2561
2562 * objfiles.h (struct objfile) <original_name>: Now const.
2563
17bfe554
CB
25642019-10-16 Christian Biesinger <cbiesinger@google.com>
2565
2566 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2567 pass on to sigsetjmp's second argument.
2568 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2569
950b7495
KS
25702019-10-16 Keith Seitz <keiths@redhat.com>
2571
2572 PR gdb/23567
2573 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2574 sections whose size is greater than the file size.
2575
ff371ec9
JW
25762019-10-16 Jim Wilson <jimw@sifive.com>
2577
2578 * riscv-tdep.c (riscv_gcc_target_options): New.
2579 (riscv_gnu_triplet_regexp): New.
2580 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2581 set_gdbarch_gnu_triplet_regexp.
2582
fec4e896
CB
25832019-10-16 Christian Biesinger <cbiesinger@google.com>
2584
2585 * Makefile.in: Add xml-builtin.h.
2586 * features/feature_to_c.sh: Add an include for xml-builtin.h
2587 to ensure that the compiler checks that the types match.
2588 * xml-builtin.h: New file.
2589 * xml-support.c (fetch_xml_builtin): Add missing const.
2590 * xml-support.h: Remove declaration of xml_builtins.
2591
d10eccaa
TV
25922019-10-16 Tom de Vries <tdevries@suse.de>
2593
2594 PR tdep/25096
2595 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2596 (amd64_classify_aggregate): ... here.
2597 (amd64_classify_aggregate_field): Handled fiels of nested structs
2598 recursively.
2599
745ff14e
TV
26002019-10-16 Tom de Vries <tdevries@suse.de>
2601
2602 PR tdep/24104
2603 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2604 that handles 'theclass'.
2605
791b7405
AB
26062019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2607
2608 * linespec.c (decode_digits_ordinary): Update comment.
2609 * make-target-delegates: No longer need to handle VEC case.
2610 * memrange.c (normalize_mem_ranges): Update comment.
2611 * namespace.c (add_using_directive): Update comment.
2612 * objc-lang.c (uniquify_strings): Update comment.
2613 * ppc-linux-nat.c (struct thread_points): Update comment.
2614 * probe.h (find_probes_in_objfile): Update comment.
2615 * target.h (enum flash_preserve_mode): Update comment.
2616 * varobj.c (varobj_restrict_range): Update comment.
2617 * varobj.h (varobj_list_children): Update comment.
2618
0dc32745
AB
26192019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2620
2621 * Makefile.in: Remove references to vec.h and vec.c.
2622 * aarch64-tdep.c: No longer include vec.h.
2623 * ada-lang.c: Likewise.
2624 * ada-lang.h: Likewise.
2625 * arm-tdep.c: Likewise.
2626 * ax.h: Likewise.
2627 * breakpoint.h: Likewise.
2628 * charset.c: Likewise.
2629 * cp-support.h: Likewise.
2630 * dtrace-probe.c: Likewise.
2631 * dwarf2read.c: Likewise.
2632 * extension.h: Likewise.
2633 * gdb_bfd.c: Likewise.
2634 * gdbsupport/gdb_vecs.h: Likewise.
2635 * gdbsupport/vec.c: Remove.
2636 * gdbsupport/vec.h: Remove.
2637 * gdbthread.h: Likewise.
2638 * guile/scm-type.c: Likewise.
2639 * inline-frame.c: Likewise.
2640 * machoread.c: Likewise.
2641 * memattr.c: Likewise.
2642 * memrange.h: Likewise.
2643 * namespace.h: Likewise.
2644 * nat/linux-btrace.h: Likewise.
2645 * osdata.c: Likewise.
2646 * parser-defs.h: Likewise.
2647 * progspace.h: Likewise.
2648 * python/py-type.c: Likewise.
2649 * record-btrace.c: Likewise.
2650 * rust-exp.y: Likewise.
2651 * solib-target.c: Likewise.
2652 * stap-probe.c: Likewise.
2653 * target-descriptions.c: Likewise.
2654 * target-memory.c: Likewise.
2655 * target.h: Likewise.
2656 * varobj.c: Likewise.
2657 * varobj.h: Likewise.
2658 * xml-support.h: Likewise.
2659
ae640021
AB
26602019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2661
2662 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2663 Update for new std::vector based implementation.
2664 (process_psymtab_comp_unit_reader): Likewise.
2665 (scan_partial_symbols): Likewise.
2666 (recursively_compute_inclusions): Likewise.
2667 (compute_compunit_symtab_includes): Likewise.
2668 (process_imported_unit_die): Likewise.
2669 (queue_and_load_dwo_tu): Likewise.
2670 (follow_die_sig_1): Likewise.
2671 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2672 (typedef dwarf2_per_cu_ptr): Remove.
2673 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2674 function.
2675 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2676 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2677 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2678 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2679 std::vector.
2680
55dfc88f
TT
26812019-10-15 Tom Tromey <tromey@adacore.com>
2682
2683 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2684 TID.
2685
96b49c5e
TT
26862019-10-15 Tom Tromey <tromey@adacore.com>
2687
2688 * windows-nat.c (windows_nat_target::fetch_registers)
2689 (windows_nat_target::store_registers): Rename "pid" to "tid".
2690
953cff56
TT
26912019-10-15 Tom Tromey <tromey@adacore.com>
2692
2693 * gdbarch.h, gdbarch.c: Rebuild.
2694 * gdbarch.sh (gcc_target_options): Change return type to
2695 std::string.
2696 * compile/compile.c (get_args): Update.
2697 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2698 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2699 std::string.
2700 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2701 std::string.
2702 * arch-utils.c (default_gcc_target_options): Return std::string.
2703 * arch-utils.h (default_gcc_target_options): Return std::string.
2704 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2705
81e6b8eb
CB
27062019-10-15 Christian Biesinger <cbiesinger@google.com>
2707
2708 * breakpoint.c (breakpoint_chain): Make static.
2709 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2710 of accessing breakpoint_chain.
2711
95da600f
CB
27122019-10-15 Christian Biesinger <cbiesinger@google.com>
2713
2714 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2715 to a gdb::function_view and return value to bool.
2716 * breakpoint.h (iterate_over_breakpoints): Likewise.
2717 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2718 (pop_dummy_frame): Update.
2719 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2720 (gdbscm_breakpoints): Update.
2721 * python/py-breakpoint.c (build_bp_list): Update.
2722 (gdbpy_breakpoints): Update.
2723 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2724 Update.
2725 (bpfinishpy_handle_stop): Update.
2726 (bpfinishpy_handle_exit): Update.
2727 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2728 (svr4_update_solib_event_breakpoints): Update.
2729
ba18312d
AA
27302019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2731
2732 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2733 when unwrapping single-field structs.
2734
6acc1a0b
SM
27352019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * dwarf2read.c: Remove includes.
2738
284782de
SM
27392019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2740
2741 * ui-out.c (ui_out::call_do_message): Silence
2742 -Wformat-nonliteral warning.
2743
073bbbb0
SM
27442019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2745
2746 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2747 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2748 include: readline/tilde.h.
2749
7b9a15e1
CB
27502019-10-12 Christian Biesinger <cbiesinger@google.com>
2751
2752 * remote.c (remote_target::get_trace_status): Remove declaration of
2753 trace_regblock_size.
2754
cc8dee1f
CB
27552019-10-12 Christian Biesinger <cbiesinger@google.com>
2756
2757 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2758 (show_user): Remove declaration of cmdlist.
2759 * cli/cli-cmds.h (max_user_call_depth): Declare.
2760 * cli/cli-script.c (execute_user_command): Remove declaration
2761 of max_user_call_depth.
2762
a83d4ef6
JW
27632019-10-11 Jim Wilson <jimw@sifive.com>
2764
5f93c5a6
JW
2765 * gdbsupport/print-utils.h (pulongest): Fix comment.
2766 (plongest): Likewise.
2767 (phex): Add missing comment, mention leading zeros.
2768 (phex_nz): Add mention of no leading zeros to comment.
2769
a83d4ef6
JW
2770 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2771 plongest instead of unsigned long long cast.
2772
26344e0c
CB
27732019-10-10 Christian Biesinger <cbiesinger@google.com>
2774
2775 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2776 for external_editor_command and gdbtk_test.
2777
c2c440a9
CB
27782019-10-10 Christian Biesinger <cbiesinger@google.com>
2779
2780 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2781 * varobj.c (varobjdebug): Move comment to...
2782 * varobj.h (varobjdebug): ...here, and declare.
2783
a31bff9d
TT
27842019-10-09 Tom Tromey <tom@tromey.com>
2785
2786 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2787 erase_data_content.
2788
7523da63
TT
27892019-10-09 Tom Tromey <tom@tromey.com>
2790
2791 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2792 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2793 * tui/tui-command.c (tui_cmd_window::resize)
2794 (tui_refresh_cmd_win): Update.
2795 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2796 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2797 * tui/tui-data.c (~tui_gen_win_info): Remove.
2798 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2799 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2800 (tui_redisplay_readline, tui_mld_flush)
2801 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2802 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2803 (tui_data_window::erase_data_content)
2804 (tui_data_item_window::rerender)
2805 (tui_data_item_window::refresh_window): Update.
2806 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2807 (box_win, tui_gen_win_info::make_window)
2808 (tui_gen_win_info::make_visible): Update.
2809 (tui_delete_win): Remove.
2810 * tui/tui-winsource.c
2811 (tui_source_window_base::do_erase_source_content): Update.
2812 (tui_show_source_line, tui_source_window_base::update_tab_width)
2813 (tui_source_window_base::update_exec_info): Update.
2814 * tui/tui-data.h (struct curses_deleter): New.
2815 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2816 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2817
a7798e7f
TT
28182019-10-09 Tom Tromey <tom@tromey.com>
2819
2820 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2821
5c45899e
TT
28222019-10-09 Tom Tromey <tom@tromey.com>
2823
2824 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2825 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2826
6d7fd9aa
TT
28272019-10-09 Tom Tromey <tom@tromey.com>
2828
2829 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2830 window height directly.
2831 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2832 declare.
2833 * tui/tui-layout.c (tui_default_win_height): Remove.
2834 (tui_default_win_viewport_height): Remove.
2835
d2dd1084
TT
28362019-10-09 Tom Tromey <tom@tromey.com>
2837
2838 * tui/tui.h: Remove comments.
2839
cff32449
TV
28402019-10-09 Tom de Vries <tdevries@suse.de>
2841
2842 * python/lib/gdb/printer/bound_registers.py: Use
2843 '^builtin_type_bound128' as regexp argument for
2844 add_builtin_pretty_printer.
2845
6a25e8a2
CB
28462019-10-09 Christian Biesinger <cbiesinger@google.com>
2847
2848 * guile/guile.c (guile_extension_script_ops): Remove forward
2849 declaration and mark as static.
2850 (guile_script_ops): Likewise.
2851 (extension_language_guile): Move further down in the file so
2852 it can reference the definitions for guile_{extension_,}script_ops.
2853
6d9d6da4
AA
28542019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2855
2856 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2857 except SORTL, DFLTCC, and KDSA.
2858
3abea05d
TT
28592019-10-08 Tom Tromey <tromey@adacore.com>
2860
2861 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2862 (struct safe_symbol_file_add_args): Remove.
2863
dde996e2
TT
28642019-10-08 Tom Tromey <tromey@adacore.com>
2865
2866 * windows-nat.c: Don't include buildsym-legacy.h.
2867
cd6fdaa1
TT
28682019-10-08 Tom Tromey <tromey@adacore.com>
2869
2870 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2871
79bb1944
CB
28722019-10-08 Christian Biesinger <cbiesinger@google.com>
2873
2874 * gdbtypes.c (overload_debug): Move comment to header.
2875 * gdbtypes.h (overload_debug): Declare.
2876 * valops.c: Remove declaration of overload_debug, instead
2877 include gdbtypes.h.
2878
34916edc
CB
28792019-10-08 Christian Biesinger <cbiesinger@google.com>
2880
2881 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2882 through _().
2883 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2884 move comment...
2885 * language.h (lang_frame_mismatch_warn): ... here. Also add
2886 declaration.
2887 * top.c (lang_frame_mismatch_warn): Remove declaration.
2888 (check_frame_language_change): Pass lang_frame_mismatch_warn
2889 through _().
2890
bad5c026
CB
28912019-10-07 Christian Biesinger <cbiesinger@google.com>
2892
2893 * c-lang.h (vtbl_ptr_name): Declare.
2894 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2895 it from the header.
2896 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2897
51f1fdc3
CB
28982019-10-07 Christian Biesinger <cbiesinger@google.com>
2899
2900 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2901 gdb_static_assert.
2902
30d1f018
WP
29032019-10-07 Weimin Pan <weimin.pan@oracle.com>
2904
606813d5
WP
2905 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2906 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2907 * ctfread.c: New file.
2908 * ctfread.h: New file.
2909 * elfread.c: Include ctfread.h.
2910 (struct elfinfo text_p): New member ctfsect.
2911 (elf_locate_sections): Mark CTF section.
2912 (elf_symfile_read): Call elfctf_build_psymtabs.
2913 * Makefile.in (LIBCTF): Add.
2914 (CLIBS): Use it.
2915 (CDEPS): Likewise.
2916 (DIST): Add ctfread.c.
606813d5
WP
2917
29182019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2919
2920 * ctfread.c (struct nextfield): Renamed to ...
2921 (struct ctf_nextfield): ... this.
2922 (struct field_info): Renamed to ...
2923 (strut ctf_field_info): ... this.
2924 (attach_fields_to_type): Update for renamed structures.
2925 (ctf_add_member_cb): Likewise.
2926 (ctf_add_enum_member_cb): Likewise.
2927 (process_struct_members): Likewise.
2928 (process_enum_type): Likewise.
30d1f018 2929
518fe38c
WP
29302019-10-07 Weimin Pan <weimin.pan@oracle.com>
2931
2932 * tracectf.h: Rename, was ctf.h.
2933 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2934 * tracefile.c: Likewise.
2935 * tracepoint.c: Remove unused include ctf.h.
2936 * mi/mi-main.c: Likewise.
2937 * Makefile.in Replace ctf.c with tracectf.c.
2938
225f296a
JB
29392019-10-06 Joel Brobecker <brobecker@adacore.com>
2940
2941 * version.in: Change version number to "9.0.50.DATE-git".
2942
77c2dba3
TT
29432019-10-03 Tom Tromey <tom@tromey.com>
2944
2945 PR rust/24976:
2946 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2947
179aed7f
AB
29482019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2949
2950 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2951 cp_search_name_hash.
2952 * NEWS: Add entry about nested function support.
2953
0a4b0913
AB
29542019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2955 Andrew Burgess <andrew.burgess@embecosm.com>
2956
2957 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2958 for nested static variables when searchin VAR_DOMAIN.
2959 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2960 global scope, update comment.
2961 (add_partial_subprogram): Call add_partial_subprogram recursively
2962 for nested subroutines when processinng Fortran.
2963 (load_partial_dies): Process the child entities of a subprogram
2964 when processing Fortran.
2965 (partial_die_parent_scope): Handle building scope
2966 for Fortran nested functions.
2967 (process_die): Record that nested functions have a scope.
2968 (new_symbol): Always record Fortran subprograms on the global
2969 symbol list.
2970 (determine_prefix): How to build the prefix for Fortran
2971 subprograms.
2972
d8c06f22
AB
29732019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2974
2975 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2976 have just sent the thread a SIGSTOP and are waiting for it to
2977 arrive.
2978
a8b3b8e9
AB
29792019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2980
2981 * btrace.c (btrace_add_pc): Remove whitespace before the template
2982 parameter in 'std::vector <...>'.
2983 (parse_xml_btrace_block): Likewise.
2984 (btrace_maint_decode_pt): Likewise.
2985 (btrace_maint_update_packets): Likewise.
2986 (btrace_maint_print_packets): Likewise.
2987 * btrace.h (struct btrace_maint_info): Likewise.
2988 * dwarf2read.c (struct type_unit_group): Likewise.
2989 (build_type_psymtabs_reader): Likewise.
2990 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2991 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2992 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2993
4d825eab
TV
29942019-10-03 Tom de Vries <tdevries@suse.de>
2995
2996 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2997 the first line of the help text for set/show style metadata.
2998
80fd2826
TT
29992019-10-02 Tom Tromey <tromey@adacore.com>
3000
3001 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3002 * gdbsupport/common-inferior.c: New file.
3003 * infcmd.c (startup_with_shell): Don't define.
3004 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3005 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3006 * inferior.h (startup_with_shell): Don't declare.
3007
70054538
CB
30082019-10-02 Christian Biesinger <cbiesinger@google.com>
3009
3010 * gdbsupport/gdb_assert.h: Include errors.h.
3011 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3012
37f6a7f4
TT
30132019-10-02 Tom Tromey <tromey@adacore.com>
3014
3015 * NEWS: Add $_ada_exception entry.
3016 * ada-lang.c (struct ada_catchpoint): Add constructor.
3017 <m_kind>: New member.
3018 (allocate_location_exception, re_set_exception): Remove
3019 "ex" parameter.
3020 (should_stop_exception): Compute $_ada_exception.
3021 (check_status_exception, print_it_exception)
3022 (print_one_exception, print_mention_exception): Remove
3023 "ex" parameter.
3024 (allocate_location_catch_exception, re_set_catch_exception)
3025 (check_status_exception, print_it_catch_exception)
3026 (print_one_catch_exception, print_mention_catch_exception)
3027 (print_recreate_catch_exception)
3028 (allocate_location_catch_exception_unhandled)
3029 (re_set_catch_exception_unhandled)
3030 (check_status_exception, print_it_catch_exception_unhandled)
3031 (print_one_catch_exception_unhandled)
3032 (print_mention_catch_exception_unhandled)
3033 (print_recreate_catch_exception_unhandled)
3034 (allocate_location_catch_assert, re_set_catch_assert)
3035 (check_status_assert, print_it_catch_assert)
3036 (print_one_catch_assert, print_mention_catch_assert)
3037 (print_recreate_catch_assert)
3038 (allocate_location_catch_handlers, re_set_catch_handlers)
3039 (check_status_handlers, print_it_catch_handlers)
3040 (print_one_catch_handlers, print_mention_catch_handlers)
3041 (print_recreate_catch_handlers): Remove.
3042 (create_ada_exception_catchpoint): Update.
3043 (initialize_ada_catchpoint_ops): Update.
3044
fccf9de1
TT
30452019-10-02 Tom Tromey <tromey@adacore.com>
3046
3047 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3048 (create_excep_cond_exprs): Simplify exception string computation.
3049 (ada_exception_catchpoint_cond_string): Likewise.
3050
4b610737
TT
30512019-10-02 Tom Tromey <tromey@adacore.com>
3052
3053 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3054 * ada-lang.c (lesseq_defined_than): Handle
3055 LOC_STATIC.
3056 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3057 parameter.
3058 (dwarf2_has_info): Likewise.
3059 (new_symbol): Set maybe_copied on symbol when
3060 appropriate.
3061 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3062 parameter.
3063 <can_copy>: New member.
3064 * elfread.c (record_minimal_symbol): Set maybe_copied
3065 on symbol when appropriate.
3066 (elf_symfile_read): Update call to dwarf2_has_info.
3067 * minsyms.c (lookup_minimal_symbol_linkage): New
3068 function.
3069 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3070 * symtab.c (get_symbol_address, get_msymbol_address):
3071 New functions.
3072 * symtab.h (get_symbol_address, get_msymbol_address):
3073 Declare.
3074 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3075 maybe_copied.
3076 (struct symbol, struct minimal_symbol) <maybe_copied>:
3077 New member.
3078
1dd58850
TT
30792019-10-02 Tom Tromey <tromey@adacore.com>
3080
3081 * source.c (struct current_source_location): New.
3082 (current_source_key): New global.
3083 (current_source_symtab, current_source_line)
3084 (current_source_pspace): Remove.
3085 (get_source_location): New function.
3086 (get_current_source_symtab_and_line)
3087 (set_default_source_symtab_and_line)
3088 (set_current_source_symtab_and_line)
3089 (clear_current_source_symtab_and_line, select_source_symtab)
3090 (info_source_command, print_source_lines_base)
3091 (info_line_command, search_command_helper, _initialize_source):
3092 Update.
3093
5c281dbb
TT
30942019-10-02 Tom Tromey <tromey@adacore.com>
3095
3096 * source.c (select_source_symtab): Don't call
3097 decode_line_with_current_source.
3098
d3d32391
AB
30992019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3100
3101 * symtab.c (lookup_global_symbol): Search global block.
3102
38583298
TT
31032019-10-02 Tom Tromey <tromey@adacore.com>
3104
3105 * coffread.c (process_coff_symbol): Update.
3106 * dwarf2read.c (var_decode_location, new_symbol): Update.
3107 * mdebugread.c (parse_symbol): Update.
3108 * objfiles.c (relocate_one_symbol): Update.
3109 * stabsread.c (define_symbol, fix_common_block)
3110 (scan_file_globals): Update.
3111 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3112 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3113 * xcoffread.c (process_xcoff_symbol): Update.
3114
9344c18f
AA
31152019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3116
3117 * MAINTAINERS: Update my email address.
3118
df07e2c7
AB
31192019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3120
3121 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3122 std::vector.
3123 (build_type_psymtabs_reader): Update for std::vector.
3124 (build_type_psymtab_dependencies): Likewise.
3125 * dwarf2read.h: Remove use of DEF_VEC_P.
3126 (typedef sig_type_ptr): Delete.
3127
554ac434
AB
31282019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3129
3130 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3131 to std::vector.
3132 (btrace_maint_decode_pt): Likewise, and move allocation of the
3133 vector outside of the loop.
3134 (btrace_maint_update_packets): Update to handle change from VEC to
3135 std::vector.
3136 (btrace_maint_print_packets): Likewise.
3137 (maint_info_btrace_cmd): Likewise.
3138 * btrace.h: Remove use of DEF_VEC_O.
3139 (typedef btrace_pt_packet_s): Delete.
3140 (struct btrace_maint_info) <packets>: Change fromm VEC to
3141 std::vector.
3142 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3143
46f29a9a
AB
31442019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3145
3146 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3147 make accesses into the vector constant references.
3148 (btrace_add_pc): Update for std::vector.
3149 (btrace_stitch_bts): Likewise.
3150 (parse_xml_btrace_block): Likewise.
3151 (btrace_maint_update_packets): Likewise.
3152 (btrace_maint_print_packets): Likewise.
3153 (maint_info_btrace_cmd): Likewise.
3154 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3155 std::vector.
3156 (btrace_data::empty): Likewise.
3157 (btrace_data_append): Likewise.
3158 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3159 (typedef btrace_block_s): Delete.
3160 (struct btrace_block): Add constructor.
3161 (struct btrace_data_bts) <blocks>: Change to std::vector.
3162 * nat/linux-btrace.c (perf_event_read_bts): Update for
3163 std::vector.
3164 (linux_read_bts): Likewise.
3165
d770d56f
TT
31662019-10-01 Tom Tromey <tom@tromey.com>
3167
3168 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3169
9d636d67
TT
31702019-10-01 Tom Tromey <tom@tromey.com>
3171
3172 * stack.c (print_frame, info_frame_command_core): Use
3173 styled_string.
3174 * linux-thread-db.c (try_thread_db_load_1)
3175 (try_thread_db_load_from_pdir_1): Use styled_string.
3176 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3177 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3178 (maybe_print_unsupported_script_warning)
3179 (maybe_print_script_not_found_warning): Use styled_string.
3180 * ada-lang.c (user_select_syms): Use styled_string.
3181
7f6aba03
TT
31822019-10-01 Tom Tromey <tom@tromey.com>
3183
3184 * p-lang.c (pascal_printstr): Use metadata style.
3185 * value.c (show_convenience): Use metadata style.
3186 * valprint.c (valprint_check_validity, val_print_optimized_out)
3187 (val_print_not_saved, val_print_unavailable)
3188 (val_print_invalid_address, generic_val_print, val_print)
3189 (value_check_printable, val_print_array_elements): Use metadata
3190 style.
3191 * ui-out.h (class ui_out) <field_fmt>: New overload.
3192 <do_field_fmt>: Add style parameter.
3193 * ui-out.c (ui_out::field_fmt): New overload.
3194 * typeprint.c (type_print_unknown_return_type)
3195 (val_print_not_allocated, val_print_not_associated): Use metadata
3196 style.
3197 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3198 parameter.
3199 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3200 * tracepoint.c (tvariables_info_1): Use metadata style.
3201 * stack.c (print_frame_arg, print_frame_info, print_frame)
3202 (info_frame_command_core): Use metadata style.
3203 * skip.c (info_skip_command): Use metadata style.
3204 * rust-lang.c (rust_print_enum): Use metadata style.
3205 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3206 metadata style.
3207 * python/py-framefilter.c (py_print_single_arg): Use metadata
3208 style.
3209 * printcmd.c (do_one_display, print_variable_and_value): Use
3210 metadata style.
3211 * p-valprint.c (pascal_val_print)
3212 (pascal_object_print_value_fields): Use metadata style.
3213 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3214 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3215 parameter.
3216 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3217 * m2-valprint.c (m2_print_long_set): Use metadata style.
3218 * m2-typeprint.c (m2_print_type): Use metadata style.
3219 * infcmd.c (print_return_value_1): Use metadata style.
3220 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3221 * f-valprint.c (info_common_command_for_block): Use metadata
3222 style.
3223 * f-typeprint.c (f_type_print_base): Use metadata style.
3224 * expprint.c (print_subexp_standard): Use metadata style.
3225 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3226 * cli/cli-style.h (class cli_style_option): Add constructor.
3227 (metadata_style): Declare.
3228 * cli/cli-style.c (metadata_style): New global.
3229 (_initialize_cli_style): Register metadata style.
3230 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3231 parameter.
3232 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3233 * c-typeprint.c (c_type_print_base_struct_union)
3234 (c_type_print_base_1): Use metadata style.
3235 * breakpoint.c (watchpoint_value_print)
3236 (print_one_breakpoint_location): Use metadata style.
3237 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3238 style.
3239 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3240 style.
3241 * ada-valprint.c (val_print_packed_array_elements, printstr)
3242 (print_field_values, ada_val_print_ref, ada_val_print): Use
3243 metadata style.
3244 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3245 style.
3246 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3247 style.
3248 * ada-lang.c (user_select_syms): Use metadata style.
3249
14309bb6
TT
32502019-10-01 Tom Tromey <tom@tromey.com>
3251
3252 * cli/cli-cmds.c (pwd_command): Style output.
3253
6a831f06
PA
32542019-10-01 Pedro Alves <palves@redhat.com>
3255 Tom Tromey <tom@tromey.com>
3256
3257 * symtab.c (print_symbol_info): Use %ps.
3258 (print_msymbol_info): Use %ps.
3259 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3260 * printcmd.c (print_variable_and_value): Use %ps.
3261 * macrocmd.c (show_pp_source_pos): Use %ps.
3262 * infrun.c (print_exited_reason): Use ui_out::message.
3263 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3264 (describe_other_breakpoints): Use ui_out::message and new
3265 formats.
3266 (say_where): Use new formats.
3267 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3268 and new formats.
3269
2a3c1174
PA
32702019-10-01 Pedro Alves <palves@redhat.com>
3271 Tom Tromey <tom@tromey.com>
3272
3273 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3274 (test_gdb_formats): New function.
3275 (run_tests): Call it.
3276 (test_format_specifier): Update.
3277 * utils.h (fputs_filtered): Update comment.
3278 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3279 (fputs_styled_unfiltered): Declare.
3280 * utils.c (fputs_styled_unfiltered): New function.
3281 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3282 (vfprintf_filtered): Update.
3283 (vfprintf_unfiltered, vprintf_filtered): Update.
3284 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3285 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3286 disallow_ui_out_field>: New constants.
3287 (enum class field_kind): New.
3288 (struct base_field_s, struct signed_field_s): New.
3289 (signed_field): New function.
3290 (struct string_field_s): New.
3291 (string_field): New function.
3292 (struct styled_string_s): New.
3293 (styled_string): New function.
3294 (class ui_out) <message>: Add comment.
3295 <vmessage, call_do_message>: New methods.
3296 <do_message>: Add style parameter.
3297 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3298 methods.
3299 (ui_out::message): Rewrite.
3300 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3301 parameter.
3302 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3303 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3304 gdb_extensions parameter.
3305 (class format_piece): Add parameter to constructor.
3306 (n_int_args): New field.
3307 * gdbsupport/format.c (format_pieces::format_pieces): Add
3308 gdb_extensions parameter. Handle '*'.
3309 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3310 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3311 vfprintf_styled_no_gdbfmt.
3312 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3313 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3314 unfiltered output.
3315 * ui-style.h (struct ui_file_style) <ptr>: New method.
3316
0dfe5bfb
TT
33172019-10-01 Tom Tromey <tom@tromey.com>
3318
3319 * unittests/format_pieces-selftests.c: Update. Add final format.
3320 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3321 empty literal pieces.
3322
e43b10e1
TT
33232019-10-01 Tom Tromey <tom@tromey.com>
3324
3325 * ui-out.h (enum class ui_out_style_kind): Remove.
3326 (class ui_out) <field_string, field_stsream, do_field_string>:
3327 Change type of "style".
3328 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3329 (ui_out::field_string): Update.
3330 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3331 of "style".
3332 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3333 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3334 * stack.c (print_frame_arg, print_frame_info, print_frame):
3335 Update.
3336 * source.c (print_source_lines_base): Update.
3337 * solib.c (info_sharedlibrary_command): Update.
3338 * skip.c (info_skip_command): Update.
3339 * record-btrace.c (btrace_call_history_src_line)
3340 (btrace_call_history): Update.
3341 * python/py-framefilter.c (py_print_frame): Update.
3342 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3343 "style".
3344 * mi/mi-out.c (mi_ui_out::do_table_header)
3345 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3346 (mi_ui_out::do_field_string): Update.
3347 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3348 Update.
3349 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3350 "style".
3351 * cli-out.c (cli_ui_out::do_table_header)
3352 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3353 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3354 (cli_ui_out::do_field_fmt): Update.
3355 * breakpoint.c (print_breakpoint_location): Update.
3356 (update_static_tracepoint): Update.
3357
cd7c32c3
PW
33582019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3359
3360 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3361 conversion of gdb_datadir.
3362 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3363 remove not needed c_str ().
3364
8fe0f950
AT
33652019-09-30 Ali Tamur <tamur@google.com>
3366
3367 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3368 (dwarf2_string_attr): Likewise.
3369
5f48f8f3
AT
33702019-09-30 Ali Tamur <tamur@google.com>
3371
3372 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3373 (process_full_type_unit): Likewise.
3374 (dump_die_shallow): Likewise.
3375 (cu_debug_loc_section): Likewise.
3376
6fb08628
CB
33772019-09-28 Christian Biesinger <cbiesinger@google.com>
3378
3379 * minsyms.c (compare_minimal_symbols): Rename to...
3380 (minimal_symbol_is_less_than): ...this, and adjust to STL
3381 conventions (return bool, take arguments as references)
3382 (minimal_symbol_reader::install): Call std::sort instead
3383 of qsort.
3384
c7ee338a
CB
33852019-09-29 Christian Biesinger <cbiesinger@google.com>
3386
3387 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3388 hash and why.
3389 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3390 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3391
703a86c2
SM
33922019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3393
3394 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3395 * psympriv.h (add_psymbol_to_list): Move comment here and update
3396 it.
3397
0df0352a
TV
33982019-09-29 Tom de Vries <tdevries@suse.de>
3399
3400 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3401 Use $tmpdir/$(basename "$output_file").dwz instead of
3402 "${output_file}.dwz".
3403
ad75efa6
SM
34042019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3405
3406 PR gdb/25045
3407 * hppa-linux-nat.c: Include gdbarch.h.
3408
ececd218
CB
34092019-09-26 Christian Biesinger <cbiesinger@google.com>
3410
3411 * blockframe.c (find_pc_partial_function): Change return type to bool.
3412 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3413 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3414 (stub_gnu_ifunc_resolve_name): Likewise.
3415 * symtab.c (compare_filenames_for_search): Likewise.
3416 (compare_glob_filenames_for_search): Likewise.
3417 (matching_obj_sections): Likewise.
3418 (symbol_matches_domain): Likewise.
3419 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3420 (find_line_pc): Change return type to bool.
3421 (find_line_pc_range): Likewise.
3422 (producer_is_realview): Likewise.
3423 * symtab.h (symbol_matches_domain): Likewise.
3424 (find_pc_partial_function): Likewise.
3425 (find_pc_line_pc_range): Likewise.
3426 (in_gnu_ifunc_stub): Likewise.
3427 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3428 (find_line_pc): Likewise.
3429 (find_line_pc_range): Likewise.
3430 (matching_obj_sections): Likewise.
3431 (find_line_symtab): Change out parameter to bool.
3432 (producer_is_realview): Change return type to bool.
3433 (compare_filenames_for_search): Likewise.
3434 (compare_glob_filenames_for_search): Likewise.
3435
27a900b8
TT
34362019-09-26 Tom Tromey <tom@tromey.com>
3437
3438 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3439 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3440 * gdb_usleep.h: Remove.
3441 * gdb_usleep.c: Remove.
3442 * utils.c: Don't include gdb_usleep.h.
3443
5d63b30a
TT
34442019-09-26 Tom Tromey <tromey@adacore.com>
3445
3446 * python/py-type.c (type_to_type_object): Call check_typedef
3447 for stub types.
3448
12904d37
TT
34492019-09-26 Tom Tromey <tom@tromey.com>
3450
3451 * utils.h (initialize_utils): Don't declare.
3452 * top.c (gdb_init): Don't call initialize_utils.
3453 * utils.c (initialize_utils): Remove. Move contents...
3454 (_initialize_utils): ... here.
3455
858f25f0
TT
34562019-09-25 Tom Tromey <tom@tromey.com>
3457
3458 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3459 * utils.h (make_hex_string): Don't declare.
3460 * utils.c (make_hex_string): Remove.
3461
3d435220
TV
34622019-09-24 Tom de Vries <tdevries@suse.de>
3463
3464 PR gdb/23815
3465 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3466 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3467
ddd44b70
DD
34682019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3469
3470 * NEWS: Mention new simulator port for PRU.
3471
f945dedf
CB
34722019-09-23 Christian Biesinger <cbiesinger@google.com>
3473
3474 * ada-exp.y (write_object_remaining): Update.
3475 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3476 and eliminate the static buffer.
3477 (ada_decode_symbol): Update.
3478 (ada_la_decode): Update.
3479 (ada_sniff_from_mangled_name): Update.
3480 (is_valid_name_for_wild_match): Update.
3481 (ada_lookup_name_info::matches): Update and simplify.
3482 (name_matches_regex): Update.
3483 (ada_add_global_exceptions): Update.
3484 * ada-lang.h (ada_decode): Update signature.
3485 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3486 * dwarf-index-write.c (debug_names::insert): Update.
3487
7ab78ccb
SM
34882019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3489
3490 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3491 formatting.
3492
9252448b
SM
34932019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3494
3495 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3496 Change "nonzero" to "true" in documentation.
3497
626ca2c0
CB
34982019-09-20 Christian Biesinger <cbiesinger@google.com>
3499
3500 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3501 (_initialize_darwin_solib): Don't set
3502 darwin_so_ops.lookup_lib_global_symbol.
3503 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3504 set_gdbarch_iterate_over_objfiles_in_search_order.
3505 (elf_lookup_lib_symbol): Rename to...
3506 (svr4_iterate_over_objfiles_in_search_order): this, and update
3507 to iterate semantics.
3508 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3509 * solib.c (solib_global_lookup): Remove.
3510 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3511 (solib_global_lookup): Remove.
3512 * symtab.c (lookup_global_or_static_symbol): Remove call to
3513 solib_global_lookup.
3514
5a3a0d63
JB
35152019-09-20 Joel Brobecker <brobecker@adacore.com>
3516
3517 * NEWS: Move entries about default MI version now being
3518 version 3, and about the GDB/MI fix for multi-location
3519 breakpoints to the "since GDB 8.3" section.
3520
ffea1427
JB
35212019-09-20 Joel Brobecker <brobecker@adacore.com>
3522
3523 GDB 8.3.1 released.
3524
abf516c6
UW
35252019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3526
3527 * NEWS: Mention that Cell/B.E. debugging support was removed.
3528 * MAINTAINERS: Remove spu target.
3529
3530 * config/djgpp/fnchange.lst: Remove entries for removed files.
3531
3532 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3533 spu-multiarch.o, and spu-tdep.o.
3534 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3535 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3536 spu-multiarch.c, and spu-tdep.c.
3537 * spu-linux-nat.c: Remove file.
3538 * spu-multiarch.c: Remove file.
3539 * spu-tdep.c: Remove file.
3540 * spu-tdep.h: Remove file.
3541 * solib-spu.c: Remove file.
3542 * solib-spu.h: Remove file.
3543
3544 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3545 * configure.nat (spu-linux): Remove.
3546 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3547 solib-multiarch.o from gdb_target_obs.
3548 (spu*-*-*): Remove.
3549
3550 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3551 feature flag.
3552 (ppc_linux_no_features): Update.
3553 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3554 Cell/B.E. support.
3555 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3556 (tdesc_powerpc_cell64l): Likewise.
3557 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3558 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3559 Cell/B.E. support.
3560 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3561 Do not include "features/rs6000/powerpc-cell32l.c" or
3562 "features/rs6000/powerpc-cell64l.c".
3563 (ppc_linux_spu_section): Remove.
3564 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3565 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3566 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3567 (ppc_linux_spe_context_lookup): Remove.
3568 (ppc_linux_spe_context_inferior_created): Remove.
3569 (ppc_linux_spe_context_solib_loaded): Remove.
3570 (ppc_linux_spe_context_solib_unloaded): Remove.
3571 (ppc_linux_spe_context): Remove.
3572 (struct ppu2spu_cache): Remove.
3573 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3574 (struct ppu2spu_data): Remove.
3575 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3576 ppu2spu_unwind): Remove.
3577 (ppc_linux_init_abi): Remove Cell/B.E. support.
3578 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3579
3580 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3581 (rs6000/powerpc-cell64l-expedite): Likewise
3582 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3583 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3584 rs6000/powerpc-cell64l.xml.
3585 * features/rs6000/powerpc-cell32l.xml: Remove.
3586 * features/rs6000/powerpc-cell64l.xml: Likewise.
3587 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3588 * features/rs6000/powerpc-cell64l.c: Likewise.
3589 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3590 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3591 * regformats/reg-spu.dat: Remove.
3592
3593 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3594 * corelow.c (struct spuid_list): Remove.
3595 (add_to_spuid_list): Remove.
3596 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3597 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3598 (remote_protocol_features): Remove associated entries.
3599 (_initialize_remote): No longer initialize them.
3600 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3601 * linux-nat.c (SPUFS_MAGIC): Remove.
3602 (linux_proc_xfer_spu): Remove.
3603 (spu_enumerate_spu_ids): Remove.
3604 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3605 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3606 (linux_make_corefile_notes): No longer call it.
3607
3608 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3609 (cooked_write_test): Likewise.
3610
78e8cb91
TT
36112019-09-20 Tom Tromey <tom@tromey.com>
3612
3613 * NEWS: Mention case-sensitivity of TUI commands.
3614 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3615 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3616 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3617
f074b67e
TT
36182019-09-20 Tom Tromey <tom@tromey.com>
3619
3620 * tui/tui-source.c (tui_source_window::set_contents): Use
3621 make_unique_xstrdup.
3622 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3623 make_unique_xstrdup.
3624
63c4bf19
TT
36252019-09-20 Tom Tromey <tom@tromey.com>
3626
3627 * tui/tui-data.c: Remove separator comments.
3628 * tui/tui-layout.c: Remove separator comments.
3629 * tui/tui-win.c: Remove separator comments.
3630 * tui/tui-wingeneral.c: Remove separator comments.
3631
43df9b2f
TT
36322019-09-20 Tom Tromey <tom@tromey.com>
3633
3634 * tui/tui.h (strcat_to_buf): Don't declare.
3635 * tui/tui.c (strcat_to_buf): Remove.
3636
7226433c
TT
36372019-09-20 Tom Tromey <tom@tromey.com>
3638
3639 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3640 from "fullname".
3641 * tui/tui-source.c (tui_source_window::set_contents)
3642 (tui_source_window::location_matches_p)
3643 (tui_source_window::maybe_update): Update.
3644
80df3337
TT
36452019-09-20 Tom Tromey <tom@tromey.com>
3646
3647 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3648 Update.
3649 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3650 prefix.
3651 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3652 (tui_data_window::line_from_reg_element_no)
3653 (tui_data_window::first_reg_element_no_inline)
3654 (tui_data_window::show_registers)
3655 (tui_data_window::show_register_group)
3656 (tui_data_window::display_registers_from)
3657 (tui_data_window::display_registers_from_line)
3658 (tui_data_window::first_data_item_displayed)
3659 (tui_data_window::delete_data_content_windows)
3660 (tui_data_window::erase_data_content)
3661 (tui_data_window::do_scroll_vertical)
3662 (tui_data_window::refresh_window)
3663 (tui_data_window::check_register_values): Update.
3664
9923f347
TT
36652019-09-20 Tom Tromey <tom@tromey.com>
3666
3667 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3668 (struct tui_locator_window) <full_name, proc_name>: Now
3669 std::string.
3670 * tui/tui-stack.c (tui_locator_window::make_status_line)
3671 (tui_locator_window::set_locator_fullname)
3672 (tui_locator_window::set_locator_info): Update.
3673 * tui/tui-source.c (tui_source_window::set_contents)
3674 (tui_source_window::showing_source_p): Update.
3675
b76251ab
TT
36762019-09-20 Tom Tromey <tom@tromey.com>
3677
3678 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3679 Don't call tui_locator_win_info_ptr.
3680
0891be08
TT
36812019-09-20 Tom Tromey <tom@tromey.com>
3682
3683 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3684
1b935acf
TT
36852019-09-20 Tom Tromey <tom@tromey.com>
3686
3687 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3688 height for locator.
3689 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3690 * tui/tui-layout.c (show_source_disasm_command, show_data)
3691 (show_source_or_disasm_and_command): Use 1 as height for locator.
3692
9abd8a65
TT
36932019-09-20 Tom Tromey <tom@tromey.com>
3694
3695 * tui/tui.c (tui_enable): Update.
3696 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3697 Update.
3698 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3699 Update.
3700 * tui/tui-data.c (win_resized): Now bool.
3701 (tui_win_resized): Return bool.
3702 (tui_set_win_resized_to): Accept a bool.
3703
b5457826
TT
37042019-09-20 Tom Tromey <tom@tromey.com>
3705
3706 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3707 Change type of "refresh_values_only".
3708 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3709 type of "refresh_values_only".
3710
6b915f7d
TT
37112019-09-20 Tom Tromey <tom@tromey.com>
3712
3713 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3714 std::string.
3715 (tui_disassemble): Add "pos" parameter.
3716 (tui_disasm_window::set_contents): Simplify.
3717
2ad52f6f
TT
37182019-09-20 Tom Tromey <tom@tromey.com>
3719
3720 * tui/tui-winsource.h (struct tui_source_window_base)
3721 <show_source_content>: Now private.
3722 * tui/tui-winsource.c
3723 (tui_source_window_base::show_source_content): Don't handle empty
3724 content case.
3725
b3b1bde6
TT
37262019-09-20 Tom Tromey <tom@tromey.com>
3727
3728 * tui/tui-layout.c (show_source_disasm_command)
3729 (show_source_or_disasm_and_command): Don't call
3730 show_source_content.
3731
71a25ed2
TT
37322019-09-20 Tom Tromey <tom@tromey.com>
3733
3734 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3735 Declare.
3736 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3737 from tui_make_status_line.
3738 (tui_locator_window::rerender): Update.
3739
f8532154
TT
37402019-09-20 Tom Tromey <tom@tromey.com>
3741
3742 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3743 (tui_locator_window::rerender): Update.
3744
2d81b349
TT
37452019-09-20 Tom Tromey <tom@tromey.com>
3746
3747 * tui/tui-winsource.h (struct tui_source_window_base)
3748 <~tui_source_window_base>: Don't declare.
3749 <fullname>: Remove.
3750 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3751 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3752 member.
3753 * tui/tui-source.c (tui_source_window::set_contents): Update.
3754 (tui_source_window::location_matches_p)
3755 (tui_source_window::maybe_update): Update.
3756
f14bec58
TT
37572019-09-20 Tom Tromey <tom@tromey.com>
3758
3759 * tui/tui-winsource.h (~tui_source_element): Remove.
3760 (tui_source_element): Update.
3761 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3762 * tui/tui-winsource.c (tui_show_source_line): Update.
3763 * tui/tui-source.c (tui_source_window::set_contents): Update.
3764 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3765
78d5933a
TT
37662019-09-20 Tom Tromey <tom@tromey.com>
3767
3768 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3769 declare.
3770 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3771 tui_clear_source_windows_detail.
3772 * tui/tui-winsource.h (struct tui_source_window_base)
3773 <clear_detail>: Don't declare.
3774 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3775 Remove.
3776 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3777
d4207696
TT
37782019-09-20 Tom Tromey <tromey@adacore.com>
3779
3780 PR ada/24919:
3781 * block.c (contained_in): Fix final return value.
3782
00f93c44
AM
37832019-09-20 Alan Modra <amodra@gmail.com>
3784
3785 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3786 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3787 (read_indirect_string_from_dwz): Use bfd accessor.
3788 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3789 * machoread.c (macho_symfile_read_all_oso): Likewise.
3790 * solib.c (solib_bfd_open): Likewise.
3791
e4153ae6
CB
37922019-09-19 Christian Biesinger <cbiesinger@google.com>
3793
3794 * eval.c: Move declaration of overload_resolution to...
3795 * value.h: ...here.
3796
c7ae7675
CB
37972019-09-19 Christian Biesinger <cbiesinger@google.com>
3798
3799 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3800 * arm-linux-tdep.c: Likewise.
3801 * arm-nbsd-nat.c: Likewise.
3802 * arm-tdep.h: Declare arm_apcs_32.
3803 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3804
e86f08d2
CB
38052019-09-19 Christian Biesinger <cbiesinger@google.com>
3806
3807 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3808 * dwarf2read.h: Declare dwarf_always_disassemble.
3809
f64e2f40
TV
38102019-09-19 Tom de Vries <tdevries@suse.de>
3811
3812 PR gdb/25009
3813 * source-cache.c (source_cache::ensure): Catch exception thrown during
3814 construction of the highlighter.
3815
fd361982
AM
38162019-09-18 Alan Modra <amodra@gmail.com>
3817
3818 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3819 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3820 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3821 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3822 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3823 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3824 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3825 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3826 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3827 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3828 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3829 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3830 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3831 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3832 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3833 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3834 * mi/mi-interp.c: Update throughout for bfd section macro and
3835 function changes.
3836 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3837 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3838
11061048
TT
38392019-09-18 Tom Tromey <tom@tromey.com>
3840
3841 * NEWS: Add entry.
3842 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3843 call rl_initialize.
3844 (tui_enable): Do not call rl_initialize.
3845
7a27b85f
CG
38462019-09-18 Christian Groessler <chris@groessler.org>
3847
3848 * alpha-linux-nat.c: Include gdbarch.h.
3849
f64eea3a
SM
38502019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3851
3852 * ui-file.c: Include cli/cli-style.h.
3853 (term_cli_styling): Remove cli_styling declaration.
3854
e6f7f6d1
AM
38552019-09-18 Alan Modra <amodra@gmail.com>
3856
3857 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3858 to bfd_asymbol_section.
3859
1d38e9d1
AM
38602019-09-18 Alan Modra <amodra@gmail.com>
3861
3862 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3863 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3864 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3865
90d92a63
AM
38662019-09-18 Alan Modra <amodra@gmail.com>
3867
3868 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3869 * spu-linux-nat.c (spu_bfd_open): Likewise.
3870
a3d181d2
CB
38712019-09-18 Christian Biesinger <cbiesinger@google.com>
3872
3873 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3874 to bool to match definition in dwarf2read.c.
3875
491144b5
CB
38762019-09-17 Christian Biesinger <cbiesinger@google.com>
3877
3878 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3879 (print_signatures): Likewise.
3880 (trust_pad_over_xvs): Likewise.
3881 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3882 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3883 * arm-linux-nat.c (arm_apcs_32): Likewise.
3884 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3885 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3886 * arm-tdep.c (arm_debug): Likewise.
3887 (arm_apcs_32): Likewise.
3888 * auto-load.c (debug_auto_load): Likewise.
3889 (auto_load_gdb_scripts): Likewise.
3890 (global_auto_load): Likewise.
3891 (auto_load_local_gdbinit): Likewise.
3892 (auto_load_local_gdbinit_loaded): Likewise.
3893 * auto-load.h (global_auto_load): Likewise.
3894 (auto_load_local_gdbinit): Likewise.
3895 (auto_load_local_gdbinit_loaded): Likewise.
3896 * breakpoint.c (disconnected_dprintf): Likewise.
3897 (breakpoint_proceeded): Likewise.
3898 (automatic_hardware_breakpoints): Likewise.
3899 (always_inserted_mode): Likewise.
3900 (target_exact_watchpoints): Likewise.
3901 (_initialize_breakpoint): Update.
3902 * breakpoint.h (target_exact_watchpoints): Change to bool.
3903 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3904 * cli/cli-cmds.c (trace_commands): Likewise.
3905 * cli/cli-cmds.h (trace_commands): Likewise.
3906 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3907 to bool*.
3908 * cli/cli-logging.c (logging_overwrite): Change to bool.
3909 (logging_redirect): Likewise.
3910 (debug_redirect): Likewise.
3911 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3912 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3913 to bool.
3914 <boolean_option_def>: Update.
3915 (struct flag_option_def): Change default type of Context to bool
3916 from int.
3917 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3918 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3919 (get_setshow_command_value_string): Likewise.
3920 * cli/cli-style.c (cli_styling): Change to bool.
3921 (source_styling): Likewise.
3922 * cli/cli-style.h (source_styling): Likewise.
3923 (cli_styling): Likewise.
3924 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3925 to bool.
3926 * command.h (var_types): Update comment.
3927 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3928 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3929 bool.
3930 (debug_compile_cplus_scopes): Likewise.
3931 * compile/compile-internal.h (compile_debug): Likewise.
3932 * compile/compile.c (compile_debug): Likewise.
3933 (struct compile_options) <raw>: Likewise.
3934 * cp-support.c (catch_demangler_crashes): Likewise.
3935 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3936 (usr_cmd_cris_dwarf2_cfi): Likewise.
3937 * csky-tdep.c (csky_debug): Likewise.
3938 * darwin-nat.c (enable_mach_exceptions): Likewise.
3939 * dcache.c (dcache_enabled_p): Likewise.
3940 * defs.h (info_verbose): Likewise.
3941 * demangle.c (demangle): Likewise.
3942 (asm_demangle): Likewise.
3943 * dwarf-index-cache.c (debug_index_cache): Likewise.
3944 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3945 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3946 * dwarf2read.c (check_physname): Likewise.
3947 (use_deprecated_index_sections): Likewise.
3948 (dwarf_always_disassemble): Likewise.
3949 * eval.c (overload_resolution): Likewise.
3950 * event-top.c (set_editing_cmd_var): Likewise.
3951 (exec_done_display_p): Likewise.
3952 * event-top.h (set_editing_cmd_var): Likewise.
3953 (exec_done_display_p): Likewise.
3954 * exec.c (write_files): Likewise.
3955 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3956 (debug_fbsd_nat): Likewise.
3957 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3958 Likewise.
3959 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3960 <backtrace_past_entry> Likewise.
3961 * gdb-demangle.h (demangle): Likewise.
3962 (asm_demangle): Likewise.
3963 * gdb_bfd.c (bfd_sharing): Likewise.
3964 * gdbcore.h (write_files): Likewise.
3965 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3966 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3967 * gdbthread.h (print_thread_events): Likewise.
3968 * gdbtypes.c (opaque_type_resolution): Likewise.
3969 (strict_type_checking): Likewise.
3970 * gnu-nat.c (gnu_debug_flag): Likewise.
3971 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3972 * guile/scm-param.c (pascm_variable): Add boolval.
3973 (add_setshow_generic): Update.
3974 (pascm_param_value): Update.
3975 (pascm_set_param_value_x): Update.
3976 * hppa-tdep.c (hppa_debug): Change to bool..
3977 * infcall.c (may_call_functions_p): Likewise.
3978 (coerce_float_to_double_p): Likewise.
3979 (unwind_on_signal_p): Likewise.
3980 (unwind_on_terminating_exception_p): Likewise.
3981 * infcmd.c (startup_with_shell): Likewise.
3982 * inferior.c (print_inferior_events): Likewise.
3983 * inferior.h (startup_with_shell): Likewise.
3984 (print_inferior_events): Likewise.
3985 * infrun.c (step_stop_if_no_debug): Likewise.
3986 (detach_fork): Likewise.
3987 (debug_displaced): Likewise.
3988 (disable_randomization): Likewise.
3989 (non_stop): Likewise.
3990 (non_stop_1): Likewise.
3991 (observer_mode): Likewise.
3992 (observer_mode_1): Likewise.
3993 (set_observer_mode): Update.
3994 (sched_multi): Change to bool.
3995 * infrun.h (debug_displaced): Likewise.
3996 (sched_multi): Likewise.
3997 (step_stop_if_no_debug): Likewise.
3998 (non_stop): Likewise.
3999 (disable_randomization): Likewise.
4000 * linux-tdep.c (use_coredump_filter): Likewise.
4001 (dump_excluded_mappings): Likewise.
4002 * linux-thread-db.c (auto_load_thread_db): Likewise.
4003 (check_thread_db_on_load): Likewise.
4004 * main.c (captured_main_1): Update.
4005 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4006 xx2_opt, boolean_opt>: Change to bool.
4007 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4008 * maint.c (maintenance_profile_p): Likewise.
4009 (per_command_time): Likewise.
4010 (per_command_space): Likewise.
4011 (per_command_symtab): Likewise.
4012 * memattr.c (inaccessible_by_default): Likewise.
4013 * mi/mi-main.c (mi_async): Likewise.
4014 (mi_async_1): Likewise.
4015 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4016 * nat/fork-inferior.h (startup_with_shell): Likewise.
4017 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4018 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4019 * nios2-tdep.c (nios2_debug): Likewise.
4020 * or1k-tdep.c (or1k_debug): Likewise.
4021 * parse.c (parser_debug): Likewise.
4022 * parser-defs.h (parser_debug): Likewise.
4023 * printcmd.c (print_symbol_filename): Likewise.
4024 * proc-api.c (procfs_trace): Likewise.
4025 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4026 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4027 (set_parameter_value): Update.
4028 (add_setshow_generic): Update.
4029 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4030 to bool*.
4031 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4032 int*.
4033 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4034 * record-btrace.c (record_btrace_target::store_registers): Update.
4035 * record-full.c (record_full_memory_query): Change to bool.
4036 (record_full_stop_at_limit): Likewise.
4037 * record-full.h (record_full_memory_query): Likewise.
4038 * remote-notif.c (notif_debug): Likewise.
4039 * remote-notif.h (notif_debug): Likewise.
4040 * remote.c (use_range_stepping): Likewise.
4041 (interrupt_on_connect): Likewise.
4042 (remote_break): Likewise.
4043 * ser-tcp.c (tcp_auto_retry): Likewise.
4044 * ser-unix.c (serial_hwflow): Likewise.
4045 * skip.c (debug_skip): Likewise.
4046 * solib-aix.c (solib_aix_debug): Likewise.
4047 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4048 (spu_auto_flush_cache_p): Likewise.
4049 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4050 Likewise.
4051 (struct info_print_options) <quiet>: Likewise.
4052 * symfile-debug.c (debug_symfile): Likewise.
4053 * symfile.c (auto_solib_add): Likewise.
4054 (separate_debug_file_debug): Likewise.
4055 * symfile.h (auto_solib_add): Likewise.
4056 (separate_debug_file_debug): Likewise.
4057 * symtab.c (basenames_may_differ): Likewise.
4058 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4059 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4060 (struct info_types_options) <quiet>: Likewise.
4061 * symtab.h (demangle): Likewise.
4062 (basenames_may_differ): Likewise.
4063 * target-dcache.c (stack_cache_enabled_1): Likewise.
4064 (code_cache_enabled_1): Likewise.
4065 * target.c (trust_readonly): Likewise.
4066 (may_write_registers): Likewise.
4067 (may_write_memory): Likewise.
4068 (may_insert_breakpoints): Likewise.
4069 (may_insert_tracepoints): Likewise.
4070 (may_insert_fast_tracepoints): Likewise.
4071 (may_stop): Likewise.
4072 (auto_connect_native_target): Likewise.
4073 (target_stop_and_wait): Update.
4074 (target_async_permitted): Change to bool.
4075 (target_async_permitted_1): Likewise.
4076 (may_write_registers_1): Likewise.
4077 (may_write_memory_1): Likewise.
4078 (may_insert_breakpoints_1): Likewise.
4079 (may_insert_tracepoints_1): Likewise.
4080 (may_insert_fast_tracepoints_1): Likewise.
4081 (may_stop_1): Likewise.
4082 * target.h (target_async_permitted): Likewise.
4083 (may_write_registers): Likewise.
4084 (may_write_memory): Likewise.
4085 (may_insert_breakpoints): Likewise.
4086 (may_insert_tracepoints): Likewise.
4087 (may_insert_fast_tracepoints): Likewise.
4088 (may_stop): Likewise.
4089 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4090 (make_thread_apply_all_options_def_group): Change argument from int*
4091 to bool*.
4092 (thread_apply_all_command): Update.
4093 (print_thread_events): Change to bool.
4094 * top.c (confirm): Likewise.
4095 (command_editing_p): Likewise.
4096 (history_expansion_p): Likewise.
4097 (write_history_p): Likewise.
4098 (info_verbose): Likewise.
4099 * top.h (confirm): Likewise.
4100 (history_expansion_p): Likewise.
4101 * tracepoint.c (disconnected_tracing): Likewise.
4102 (circular_trace_buffer): Likewise.
4103 * typeprint.c (print_methods): Likewise.
4104 (print_typedefs): Likewise.
4105 * utils.c (debug_timestamp): Likewise.
4106 (sevenbit_strings): Likewise.
4107 (pagination_enabled): Likewise.
4108 * utils.h (sevenbit_strings): Likewise.
4109 (pagination_enabled): Likewise.
4110 * valops.c (overload_resolution): Likewise.
4111 * valprint.h (struct value_print_options) <prettyformat_arrays,
4112 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4113 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4114 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4115 Likewise.
4116 * windows-nat.c (new_console): Likewise.
4117 (cygwin_exceptions): Likewise.
4118 (new_group): Likewise.
4119 (debug_exec): Likewise.
4120 (debug_events): Likewise.
4121 (debug_memory): Likewise.
4122 (debug_exceptions): Likewise.
4123 (useshell): Likewise.
4124 * windows-tdep.c (maint_display_all_tib): Likewise.
4125 * xml-support.c (debug_xml): Likewise.
4126
f1b620e9
MG
41272019-09-17 Mike Gulick <mgulick@mathworks.com>
4128
4129 * source.c (prepare_path_for_appending): New function.
4130 (openp): Make use of new function.
4131 (find_and_open_source): Search for the compilation directory and
4132 source file as a relative path beneath the directory search path.
4133
67f3ed6a
AB
41342019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4135
4136 * source-cache.c (source_cache::get_line_charpos): Catch
4137 exceptions and return false, this matches the behaviour documented
4138 in the header file.
4139
74332189
JB
41402019-09-17 Joel Brobecker <brobecker@adacore.com>
4141
4142 * ada-tasks.c (info_task): Remove quoting of the task's name.
4143
f2f24aa9
CB
41442019-09-16 Christian Biesinger <cbiesinger@google.com>
4145
4146 * symfile.c (auto_solib_add): Replace comment with a reference
4147 to the header file.
4148
6a062a93
CB
41492019-09-14 Christian Biesinger <cbiesinger@google.com>
4150
4151 * NEWS: Mention that gdb can now be compiled with Python 3
4152 on Windows.
4153
ec6c8338
AB
41542019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4155
4156 * maint.c (maint_print_section_data::maint_print_section_data):
4157 Force use of 'float log10 (float)' by casting the argument to
4158 float.
4159
aa17805f
AB
41602019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4161
4162 * maint.c: Add 'cmath' include.
4163 (struct maint_print_section_data): New structure.
4164 (print_section_index): New function.
4165 (print_bfd_section_info): Add header comment, small whitespace
4166 cleanup, and update to call new print_section_index function.
4167 (print_objfile_section_info): Likewise.
4168 (maint_obj_section_from_bfd_section): New function.
4169 (print_bfd_section_info_maybe_relocated): New function.
4170 (maintenance_info_sections): Add header comment, always use
4171 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4172
3dd9bb46
AB
41732019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4174
4175 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4176 inner scope, add check that the objfile has psymtabs before
4177 checking psymtabs_addrmap.
4178 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4179
4993045d
PW
41802019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4181
4182 * NEWS: Announce that Ada task names are now shown at more places,
4183 and between quotes (except in info task output).
4184 * gdb/ada-tasks.c (task_to_str): New function.
4185 (display_current_task_id): Call task_to_str.
4186 (task_command_1): Likewise.
4187 (print_ada_task_info): In non-mi mode, Properly align headers and data
4188 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4189
7a289707
RO
41902019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4191
4192 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4193 prstatus.pr_lwp.pr_info instead of making it up.
4194
f2aec7f6
CB
41952019-09-11 Christian Biesinger <cbiesinger@google.com>
4196
4197 * auto-load.c (auto_load_expand_dir_vars): Update.
4198 * defs.h (gdb_datadir): Change to std::string.
4199 (python_libdir): Likewise.
4200 (relocate_gdb_directory): Change return type to std::string.
4201 * guile/guile.c (gdbscm_data_directory): Update.
4202 (initialize_scheme_side): Update.
4203 * jit.c (jit_reader_dir): Change to std::string.
4204 (jit_reader_load_command): Update.
4205 * main.c (gdb_datadir): Change to std::string.
4206 (python_libdir): Likewise.
4207 (set_gdb_data_directory): Update.
4208 (relocate_path): Change to return std::string.
4209 (relocate_gdb_directory): Change to return std::string.
4210 (relocate_gdbinit_path_maybe_in_datadir): Update.
4211 (captured_main_1): Update.
4212 * python/python.c (do_start_initialization): Update.
4213 * top.c (show_gdb_datadir): Update.
4214 * xml-syscall.c (xml_init_syscalls_info): Update.
4215 (init_syscalls_info): Update.
4216
9224a013
CB
42172019-09-11 Christian Biesinger <cbiesinger@google.com>
4218
4219 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4220 out of get_init_files.
4221 (get_init_files): Update.
4222
f48cd836
CB
42232019-09-11 Christian Biesinger <cbiesinger@google.com>
4224
4225 * main.c (get_init_files): Change to use std::string.
4226 (captured_main_1): Update.
4227 (print_gdb_help): Update.
4228
9cab7ecd
AT
42292019-09-11 Ali Tamur <tamur@google.com>
4230
4231 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4232 implementation.
4233
67547d89
CB
42342019-09-11 Christian Biesinger <cbiesinger@google.com>
4235
4236 * dbxread.c (read_dbx_symtab): Update.
4237 * dwarf2read.c (load_partial_dies): Update.
4238 * mdebugread.c (parse_partial_symbols): Update.
4239 (handle_psymbol_enumerators): Update.
4240 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4241 * psymtab.c (add_psymbol_to_bcache): Likewise.
4242 (add_psymbol_to_list): Likewise.
4243 * symtab.c (symbol_set_names): Likewise.
4244 * symtab.h (symbol_set_names): Likewise.
4245 * xcoffread.c (scan_xcoff_symtab): Update.
4246
64b2d4a0
TT
42472019-09-11 Tom Tromey <tom@tromey.com>
4248
4249 * symfile-mem.c (symbol_file_add_from_memory): Use
4250 bfd_set_filename.
4251 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4252 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4253
3b00ef10
TT
42542019-09-10 Tom Tromey <tromey@adacore.com>
4255
4256 * dwarf-index-write.c (write_psymbols): Extend error message.
4257 (debug_names::insert): Add Ada code.
4258 (debug_names::write_psymbols): Remove Ada check.
4259 (debug_names) <m_string_obstack>: New member.
4260 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4261 (gdb_index_symbol_name_matcher::matches): Remove.
4262 (mapped_index_base::find_name_components_bounds): Add "lang"
4263 parameter.
4264 (mapped_index_base::build_name_components): Also split names
4265 according to Ada syntax.
4266 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4267 type of "match_callback".
4268 (check_match, check_find_bounds_finds)
4269 (dw2_expand_symtabs_matching): Update.
4270 (dw2_debug_names_iterator): Add new constructor.
4271 (dw2_debug_names_map_matching_symbols): New function.
4272 (dw2_debug_names_expand_symtabs_matching): Update.
4273 (dwarf2_debug_names_functions): Use
4274 dw2_debug_names_map_matching_symbols.
4275
aa391654
TT
42762019-09-10 Tom Tromey <tromey@adacore.com>
4277
4278 * dwarf2read.c (dw2_get_file_names_reader): Add the
4279 CU's file name to the results.
4280
b054970d
TT
42812019-09-10 Tom Tromey <tromey@adacore.com>
4282
4283 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4284 map_matching_symbols. Update.
4285 * dwarf2read.c (dw2_map_matching_symbols): Update.
4286 * psymtab.c (match_partial_symbol): Change type; update.
4287 (psym_map_matching_symbols): Likewise.
4288 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4289 type; update.
4290 * symfile.h (struct quick_symbol_functions)
4291 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4292 Remove "match".
4293
6a3dbf1b
TT
42942019-09-10 Tom Tromey <tromey@adacore.com>
4295
4296 * psymtab.c (map_block): Remove.
4297 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4298 * symtab.c (iterate_over_symbols_terminated): New function.
4299 * symtab.c (iterate_over_symbols_terminated): Declare.
4300
6969f124
TT
43012019-09-10 Tom Tromey <tromey@adacore.com>
4302
4303 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4304 * language.h (struct language_defn) <la_iterate_over_symbols>:
4305 Return bool.
4306 * symtab.c (iterate_over_symbols): Return bool.
4307 * symtab.h (iterate_over_symbols): Return bool.
4308
199b4314
TT
43092019-09-10 Tom Tromey <tromey@adacore.com>
4310
4311 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4312 (add_nonlocal_symbols): Update.
4313 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4314 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4315 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4316 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4317 Change type of "callback". Remove "data".
4318
a084a2a6
AT
4319
43202019-09-09 Ali Tamur <tamur@google.com>
4321
4322 * dwarf2read.c (comp_unit_head): Update comment.
4323 (dwarf2_dwo_name): New function declaration.
4324 (dwarf_unit_type_name): New function declaration.
4325 (read_comp_unit_head): Add support for new compilation units,
4326 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4327 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4328 (currently named as "signature") in their header. Also clarify error
4329 messages.
4330 (lookup_dwo_id): New function. Returns the dwo id of the given
4331 compile unit.
4332 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4333 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4334 functions.
4335 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4336 (dwarf2_dwo_name): Get the dwo name if present.
4337 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4338 purposes.
4339
25a2915e
TT
43402019-09-09 Tom Tromey <tom@tromey.com>
4341
4342 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4343
e4df0874
PW
43442019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4345
4346 * python/python.c (do_start_initialization): Make progname_copy static,
4347 to avoid a leak report.
4348
8634b462
TT
43492019-09-08 Tom Tromey <tom@tromey.com>
4350
4351 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4352
c7f839cb
SM
43532019-09-07 Simon Marchi <simon.marchi@efficios.com>
4354
4355 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4356 Change type to gdb::optional<block_enum>.
4357 (dw2_symtab_iter_init): Change block_index parameter type
4358 to gdb::optional<block_enum>.
4359 (dw2_lookup_symbol): Change block_index parameter
4360 type to block_enum.c
4361 (dw2_debug_names_lookup_symbol): Likewise.
4362 * psymtab.c (psym_lookup_symbol): Likewise.
4363 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4364 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4365 Likewise.
4366
ead0e69a
CB
43672019-09-06 Christian Biesinger <cbiesinger@google.com>
4368
4369 * defs.h (relocate_gdb_directory): Change int to bool in
4370 signature and rename flag to relocatable.
4371 * main.c (relocate_path): Likewise.
4372 (relocate_gdb_directory): Likewise.
4373
b16c44de
AM
43742019-09-06 Alan Modra <amodra@gmail.com>
4375
4376 * coffread.c (coff_symfile_read): Constify filename variable.
4377 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4378 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4379 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4380 * solib.c (reload_shared_libraries_1): Likewise.
4381 * symfile.c (reread_symbols): Likewise.
4382 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4383 * solib-darwin.c (darwin_bfd_open): Likewise.
4384 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4385
06ff036e
AB
43862019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4387
4388 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4389 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4390
4e962e74
TT
43912019-09-03 Tom Tromey <tromey@adacore.com>
4392
4393 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4394 types.
4395 (has_negatives): Unbias a range type bound.
4396 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4397 * gdbtypes.c (operator==): Handle new field.
4398 (create_range_type): Add "bias" parameter.
4399 (create_static_range_type, resolve_dynamic_range): Update.
4400 * gdbtypes.h (struct range_bounds) <bias>: New member.
4401 (create_range_type): Add bias parameter.
4402 * printcmd.c (print_scalar_formatted): Unbias range types.
4403 * value.c (unpack_long): Unbias range types.
4404 (pack_long): Bias range types.
4405
d90b8f26
AH
44062019-09-02 Alan Hayward <alan.hayward@arm.com>
4407
4408 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4409 probe arguments.
4410
fe01123e
AH
44112019-09-02 Alan Hayward <alan.hayward@arm.com>
4412
4413 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4414 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4415 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4416 (compile_probe_arg): Likewise.
4417 * probe.h (get_argument_count): Likewise.
4418 * solib-svr4.c (solib_event_probe_action): Likewise.
4419 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4420
e661ef01
AH
44212019-09-02 Alan Hayward <alan.hayward@arm.com>
4422
4423 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4424 code to here...
4425 (svr4_create_solib_event_breakpoints): ...from here.
4426
47a536d9
SDJ
44272019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4428
4429 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4430 suffix from warning message.
4431
d6a00eba
TT
44322019-08-30 Tom Tromey <tom@tromey.com>
4433
4434 * tui/tui-winsource.h (struct tui_source_window_base)
4435 <refresh_all>: Don't declare.
4436 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4437 Remove.
4438 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4439 tui_show_locator_content.
4440 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4441 declare.
4442 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4443 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4444 declare.
4445
55b2657b
TT
44462019-08-30 Tom Tromey <tom@tromey.com>
4447
4448 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4449
12a8555a
TT
44502019-08-30 Tom Tromey <tom@tromey.com>
4451
4452 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4453 Remove unnecessary forward declarations.
4454
900ac242
TT
44552019-08-30 Tom Tromey <tom@tromey.com>
4456
4457 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4458 rerender.
4459 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4460 tui_show_locator_content.
4461
99ab33fb
TT
44622019-08-30 Tom Tromey <tom@tromey.com>
4463
4464 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4465 (tui_locator_window::rerender): Rewrite using body of previous
4466 tui_show_locator_content.
4467
e594a5d1
TT
44682019-08-30 Tom Tromey <tom@tromey.com>
4469
4470 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4471 set_locator_fullname>: New methods.
4472 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4473 Rename from tui_set_locator_fullname.
4474 (tui_locator_window::set_locator_info): Rename from
4475 tui_set_locator_info. Return bool.
4476 (tui_update_locator_fullname, tui_show_frame_info): Update.
4477
715bb467
TT
44782019-08-30 Tom Tromey <tom@tromey.com>
4479
4480 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4481
772f3f03
TT
44822019-08-30 Tom Tromey <tom@tromey.com>
4483
4484 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4485 call touchwin.
4486
108e13ab
TT
44872019-08-30 Tom Tromey <tom@tromey.com>
4488
4489 * tui/tui-wingeneral.c (box_win): Assume win_info and
4490 win_info->handle cannot be NULL.
4491
cdaa6eb4
TT
44922019-08-30 Tom Tromey <tom@tromey.com>
4493
4494 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4495 refresh_window>: Declare.
4496 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4497 resize.
4498 (tui_data_item_window::rerender): Rename from
4499 tui_display_register.
4500 (tui_data_item_window::refresh_window): New method.
4501 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4502 no-op.
4503
89df7f90
TT
45042019-08-30 Tom Tromey <tom@tromey.com>
4505
4506 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4507 regs_column_count, current_group>: Move later. Now private.
4508 <get_current_group>: New method.
4509 * tui/tui-regs.c (tui_reg_command): Update.
4510 * tui/tui-layout.c (tui_set_layout): Update.
4511
1bf2866a
TT
45122019-08-30 Tom Tromey <tom@tromey.com>
4513
4514 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4515 (tui_data_window::rerender): Don't call
4516 check_and_display_highlight_if_needed.
4517 (tui_data_window::refresh_all): Remove call to
4518 erase_data_content.
4519
0670413d
TT
45202019-08-30 Tom Tromey <tom@tromey.com>
4521
4522 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4523 (tui_data_window::display_registers_from)
4524 (tui_data_window::display_reg_element_at_line)
4525 (tui_data_window::display_registers_from_line): Remove checks of
4526 "empty".
4527
18bb55c7
TT
45282019-08-30 Tom Tromey <tom@tromey.com>
4529
4530 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4531 Don't declare.
4532 * tui/tui-regs.c (tui_data_window::show_registers): Call
4533 rerender.
4534 (tui_data_window::rerender): Rename from display_all_data.
4535 (tui_data_window::rerender): Remove old implementation.
4536
1f6d2f10
TT
45372019-08-30 Tom Tromey <tom@tromey.com>
4538
4539 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4540 text.
4541 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4542
16d01f9c
BW
45432019-08-29 Bernhard Wodok <barto@gmx.net>
4544 Sergio Durigan Junior <sergiodj@redhat.com>
4545
4546 PR win32/24284
4547 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4548
d8f27c60
AB
45492019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4550
4551 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4552 when searching for types.
4553
1f20c35e
AB
45542019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4555
4556 * f-lang.c (f_language_defn): Use f_print_typedef.
4557 * f-lang.h (f_print_typedef): Declare.
4558 * f-typeprint.c (f_print_typedef): Define.
4559
550105b7
CB
45602019-08-27 Christian Biesinger <cbiesinger@google.com>
4561
4562 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4563
4acfdd20
AB
45642019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4565
4566 * cli/cli-utils.c (info_print_options_defs): Delete.
4567 (make_info_print_options_def_group): Delete.
4568 (extract_info_print_options): Delete.
4569 (info_print_command_completer): Delete.
4570 (info_print_args_help): Add extra parameter, and optionally
4571 include text about -n flag.
4572 * cli/cli-utils.h (struct info_print_options): Delete.
4573 (extract_info_print_options): Delete declaration.
4574 (info_print_command_completer): Delete declaration.
4575 (info_print_args_help): Add extra parameter, extend header
4576 comment.
4577 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4578 search_symbols.
4579 * stack.c (struct info_print_options): New type.
4580 (info_print_options_defs): New file scoped variable.
4581 (make_info_print_options_def_group): New static function.
4582 (info_print_command_completer): New static function.
4583 (info_locals_command): Update to use new local functions.
4584 (info_args_command): Likewise.
4585 (_initialize_stack): Add extra parameter to calls to
4586 info_print_args_help.
4587 * symtab.c (search_symbols): Add extra parameter, use this to
4588 possibly excluse non-debug symbols.
4589 (symtab_symbol_info): Add extra parameter, which is passed on to
4590 search_symbols.
4591 (struct info_print_options): New type.
4592 (info_print_options_defs): New file scoped variable.
4593 (make_info_print_options_def_group): New static function.
4594 (info_print_command_completer): New static function.
4595 (info_variables_command): Update to use local functions, and pass
4596 extra parameter through to symtab_symbol_info.
4597 (info_functions_command): Likewise.
4598 (info_types_command): Pass additional argument through to
4599 symtab_symbol_info.
4600 (rbreak_command): Pass extra argument to search_symbols.
4601 (_initialize_symtab): Add extra arguments for calls to
4602 info_print_args_help, and update help text for 'info variables',
4603 'whereis', and 'info functions' commands.
4604 * symtab.h (search_symbols): Add extra argument to declaration.
4605 * NEWS: Mention new flags.
4606
9aa55206
CB
46072019-08-26 Christian Biesinger <cbiesinger@google.com>
4608
4609 * symtab.c (lookup_static_symbol): Call the new function (and move
4610 it down to be next to lookup_global_symbol).
4611 (struct global_sym_lookup_data): Add block_enum member and rename to...
4612 (struct global_or_static_sym_lookup_data): ...this.
4613 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4614 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4615 (lookup_symbol_global_or_static_iterator_cb): ...this.
4616 (lookup_global_or_static_symbol): New function.
4617 (lookup_global_symbol): Call new function.
4618
5c31b358
TV
46192019-08-26 Tom de Vries <tdevries@suse.de>
4620
4621 PR c++/24852
4622 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4623 when pc_probe.prob == NULL.
4624
23c13d42
SM
46252019-08-25 Simon Marchi <simon.marchi@efficios.com>
4626
4627 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4628 variable symbol_linkage to symbol_linkage_.
4629
beadd3e8
SM
46302019-08-25 Simon Marchi <simon.marchi@efficios.com>
4631
4632 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4633 represent whether the symbol is static, dynamic, or we don't
4634 know.
4635
e3ec872f
YS
46362019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4637
4638 * gdb/rx-tdep.c (rx_register_names): New.
4639 (rx_register_name): Delete.
4640 (rx_psw_type): Delete.
4641 (rx_fpsw_type): Delete.
4642 (rx_register_type): Delete.
4643 (rx_gdbarch_init): Convert target-descriptions.
4644 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4645 * gdb/features/Makefile: Add rx.xml.
4646 * gdb/features/rx.xml: New.
4647 * gdb/features/rx.c: Generated.
4648 * gdb/NEWS: Mention target description support.
4649
d0509ba4
CB
46502019-08-22 Christian Biesinger <cbiesinger@google.com>
4651
4652 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4653 *slot_ptr.
4654
2d41fa11
SDJ
46552019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4656
4657 * configure.ac: Don't check for 'dlfcn.h' (moved to
4658 gdbsupport/common.m4).
4659 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4660 'gdbsupport/'.
4661 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4662 * compile/compile-c-support.c: Include
4663 'gdbsupport/gdb-dlfcn.h'.
4664 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4665 * gdb-dlfcn.c: Move to...
4666 * gdbsupport/gdb-dlfcn.c: ... here.
4667 * gdb-dlfcn.h: Move to...
4668 * gdbsupport/gdb-dlfcn.h: ... here.
4669
de8af808
SL
46702019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4671
4672 * nios2-tdep.c (struct reg_value): Improve comments. Make
4673 the offset field signed.
4674
27204489
CB
46752019-08-22 Christian Biesinger <cbiesinger@google.com>
4676
4677 * python/lib/gdb/__init__.py (_execute_file): New function.
4678 * python/python.c (python_run_simple_file): Call gdb._execute_file
4679 on Windows.
4680
43771869
AB
46812019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4682
4683 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4684 all uses as this was never set to anything but a zero value.
4685
26c957f1
PA
46862019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4687
4688 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4689
c07aae6e
CB
46902019-08-21 Christian Biesinger <cbiesinger@google.com>
4691
4692 * tui/tui-data.h (tui_gen_win_info): Add an =default
4693 move constructor, required by some GCC versions.
4694
3960cb7a
JF
46952019-08-21 Jinke Fan <fanjinke51@yeah.net>
4696
4697 * go32-nat.c (go32_sysinfo): Add hygon_p.
4698
04c72a68
TT
46992019-08-20 Tom Tromey <tom@tromey.com>
4700
4701 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4702 line_from_reg_element_no, first_reg_element_no_inline,
4703 display_all_data, delete_data_content_windows,
4704 erase_data_content>: Now private.
4705
072272ce
TT
47062019-08-20 Tom Tromey <tom@tromey.com>
4707
4708 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4709 (tui_unhighlight_win, tui_highlight_win)
4710 (tui_win_info::make_window): Update.
4711 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4712
973961bd
TT
47132019-08-20 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4716 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4717 (MAX_PID_WIDTH): Move to tui-stack.c.
4718 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4719 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4720 (MAX_PID_WIDTH): Move from tui-data.h.
4721
ab0e1f1a
TT
47222019-08-20 Tom Tromey <tom@tromey.com>
4723
4724 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4725 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4726 (box_win): Update.
4727 (tui_gen_win_info::make_window): Rename from tui_make_window.
4728 (tui_win_info::make_window): New method.
4729 (tui_gen_win_info::make_visible): Update.
4730 * tui/tui-source.c (tui_source_window::set_contents): Update.
4731 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4732 (tui_data_window::display_registers_from): Update.
4733 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4734 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4735 Declare.
4736 <can_box>: Remove.
4737 <title>: Remove.
4738 (struct tui_win_info) <make_window>: Declare.
4739 <can_box>: Now virtual.
4740 <title>: New member.
4741 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4742 * tui/tui-command.c (tui_cmd_window::resize): Update.
4743
100c2bf3
TT
47442019-08-20 Tom Tromey <tom@tromey.com>
4745
4746 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4747 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4748 (tui_data_window::check_register_values): Update.
4749
fa4dc567
TT
47502019-08-20 Tom Tromey <tom@tromey.com>
4751
4752 * tui/tui-regs.h (struct tui_data_window): Use
4753 DISABLE_COPY_AND_ASSIGN.
4754 <regs_content>: Change type, removing unique_ptr.
4755 <tui_data_window>: Add move constructor.
4756 * tui/tui-regs.c (tui_data_window::show_registers)
4757 (tui_data_window::show_register_group)
4758 (tui_data_window::display_registers_from)
4759 (tui_data_window::display_registers_from)
4760 (tui_data_window::first_data_item_displayed)
4761 (tui_data_window::delete_data_content_windows)
4762 (tui_data_window::rerender, tui_data_window::refresh_window)
4763 (tui_data_window::check_register_values): Update.
4764
ca02d7c8
TT
47652019-08-20 Tom Tromey <tom@tromey.com>
4766
4767 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4768 show_register_group>: Declare.
4769 (tui_show_register_group): Don't declare.
4770 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4771 tui_show_registers.
4772 (tui_data_window::show_register_group): Rename from
4773 tui_show_register_group.
4774 (tui_data_window::check_register_values, tui_reg_command):
4775 Update.
4776 * tui/tui-layout.c (tui_set_layout): Update.
4777
63356bfd
TT
47782019-08-20 Tom Tromey <tom@tromey.com>
4779
4780 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4781 Declare.
4782 (tui_check_register_values): Don't declare.
4783 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4784 from tui_check_register_values.
4785 * tui/tui-hooks.c (tui_register_changed): Update.
4786
42cc14a7
TT
47872019-08-20 Tom Tromey <tom@tromey.com>
4788
4789 * tui/tui-regs.c (tui_reg_layout): Move later.
4790 (tui_show_registers): Don't enable TUI mode or change layout.
4791
b9ad3686
TT
47922019-08-20 Tom Tromey <tom@tromey.com>
4793
4794 * tui/tui-regs.h (struct tui_data_item_window)
4795 <~tui_data_item_window>: Remove.
4796 <content>: Now a unique_xmalloc_ptr.
4797 * tui/tui-regs.c (tui_register_format): Return a
4798 unique_xmalloc_ptr.
4799 (tui_get_register): Update.
4800 (~tui_data_item_window): Remove.
4801 (tui_data_window::display_registers_from, tui_display_register):
4802 Update.
4803 * tui/tui-io.h (tui_expand_tabs): Update.
4804 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4805 Remove "col" parameter.
4806
8e114aab
TT
48072019-08-20 Tom Tromey <tom@tromey.com>
4808
4809 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4810 field.
4811 * tui/tui-regs.c (~tui_data_item_window): Update.
4812
1a4f81dd
TT
48132019-08-20 Tom Tromey <tom@tromey.com>
4814
4815 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4816 earlier.
4817
0f8d8876
TT
48182019-08-20 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4821
605dc2c2
TT
48222019-08-20 Tom Tromey <tom@tromey.com>
4823
4824 * tui/tui-source.h (struct tui_source_window): Update.
4825 * tui/tui-regs.c (tui_show_registers): Update.
4826 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4827 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4828 (NO_REGS_STRING): Remove defines.
4829
aedbe3bb
CM
48302019-08-20 Conrad Meyer <cem@FreeBSD.org>
4831
4832 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4833 unnecessary thread walk if remote doesn't support the packet.
4834
7ce8f214
TT
48352019-08-19 Tom Tromey <tromey@adacore.com>
4836
4837 * python/py-value.c (value_has_field): Fix indentation.
4838
f21c2bd7
TT
48392019-08-19 Tom Tromey <tromey@adacore.com>
4840
4841 * printcmd.c (do_one_display, info_display_command): Update.
4842 * block.h (contained_in): Return bool. Add allow_nested
4843 parameter.
4844 * block.c (contained_in): Return bool. Add allow_nested
4845 parameter.
4846
d806ea2d
TT
48472019-08-19 Tom Tromey <tom@tromey.com>
4848
4849 * configure: Rebuild.
4850 * configure.ac: Disallow the combination of -static-libstdc++ and
4851 source highlight.
4852 * source-cache.c (get_language_name): Handle rust.
4853 (source_cache::get_source_lines): Ignore highlighting exceptions.
4854
398fdd60
TT
48552019-08-16 Tom Tromey <tom@tromey.com>
4856
4857 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4858 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4859 (struct tui_source_window_base) <make_visible, refresh_window,
4860 resize>: Remove methods.
4861 <execution_info>: Remove field.
4862 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4863 (tui_show_source_line, tui_source_window_base)
4864 (~tui_source_window_base): Update.
4865 (tui_source_window_base::resize)
4866 (tui_source_window_base::make_visible)
4867 (tui_source_window_base::refresh_window): Remove.
4868 (tui_source_window_base::update_exec_info): Update.
4869 * tui/tui-source.c (tui_source_window::set_contents): Update.
4870 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4871
e699d331
TT
48722019-08-16 Tom Tromey <tom@tromey.com>
4873
4874 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4875 deprecated_query_hook.
4876
bb01dbfc
TT
48772019-08-16 Tom Tromey <tom@tromey.com>
4878
4879 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4880 (tui_update_source_windows_with_line): Update.
4881 * tui/tui-source.h (struct tui_source_window)
4882 <show_symtab_source>: Declare.
4883 (tui_show_symtab_source): Don't declare.
4884 * tui/tui-source.c (tui_show_symtab_source): Rename from
4885 tui_show_symtab_source.
4886
81c82c4b
TT
48872019-08-16 Tom Tromey <tom@tromey.com>
4888
4889 * tui/tui-winsource.h (struct tui_source_window_base)
4890 <set_contents>: Declare.
4891 * tui/tui-winsource.c
4892 (tui_source_window_base::update_source_window_as_is): Update.
4893 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4894 Declare.
4895 (tui_set_source_content): Don't declare.
4896 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4897 tui_set_source_content.
4898 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4899 Declare.
4900 (tui_set_disassem_content): Don't declare.
4901 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4902 tui_set_disassem_content.
4903
2ddaf614
TT
49042019-08-16 Tom Tromey <tom@tromey.com>
4905
4906 * tui/tui-winsource.h (struct tui_source_window_base)
4907 <update_breakpoint_info>: Declare.
4908 (tui_update_breakpoint_info): Don't declare.
4909 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4910 (tui_update_all_breakpoint_info): Update.
4911 (tui_source_window_base::update_breakpoint_info): Rename from
4912 tui_update_breakpoint_info.
4913 (tui_source_window_base::update_exec_info): Update.
4914
017f9828
TT
49152019-08-16 Tom Tromey <tom@tromey.com>
4916
4917 * tui/tui-winsource.h (struct tui_source_window_base)
4918 <update_source_window>: Declare.
4919 (tui_update_source_window): Don't declare.
4920 * tui/tui-winsource.c
4921 (tui_source_window_base::update_source_window): Rename from
4922 tui_update_source_window.
4923 (tui_source_window_base::rerender): Update.
4924 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4925 * tui/tui-disasm.c (tui_show_disassem)
4926 (tui_show_disassem_and_update_source)
4927 (tui_disasm_window::maybe_update): Update.
4928
ed8358e9
TT
49292019-08-16 Tom Tromey <tom@tromey.com>
4930
4931 * tui/tui-winsource.h (struct tui_source_window_base)
4932 <update_source_window_as_is>: Declare.
4933 (tui_update_source_window_as_is): Don't declare.
4934 * tui/tui-winsource.c (tui_update_source_window): Update
4935 (tui_source_window_base::update_source_window_as_is): Rename from
4936 tui_update_source_window_as_is.
4937 (tui_source_window_base::refill): Update.
4938 * tui/tui-source.c (tui_show_symtab_source): Update.
4939 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4940 Update.
4941
20149b6b
TT
49422019-08-16 Tom Tromey <tom@tromey.com>
4943
4944 * tui/tui-winsource.h (tui_update_source_window)
4945 (tui_update_source_window_as_is): Remove "noerror" parameter.
4946 * tui/tui-winsource.c (tui_update_source_window)
4947 (tui_update_source_window_as_is): Remove "noerror" parameter.
4948 (tui_update_source_windows_with_addr)
4949 (tui_update_source_windows_with_line)
4950 (tui_source_window_base::rerender)
4951 (tui_source_window_base::refill): Update.
4952 * tui/tui-source.h (tui_set_source_content)
4953 (tui_show_symtab_source): Remove "noerror" parameter.
4954 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4955 parameter.
4956 (tui_show_symtab_source): Likewise.
4957 (tui_source_window::maybe_update): Update.
4958 * tui/tui-disasm.c (tui_show_disassem)
4959 (tui_show_disassem_and_update_source)
4960 (tui_disasm_window::do_scroll_vertical)
4961 (tui_disasm_window::maybe_update): Update.
4962
2d83e710
TT
49632019-08-16 Tom Tromey <tom@tromey.com>
4964
4965 * tui/tui.c (tui_is_window_visible): Update.
4966 * tui/tui-wingeneral.c (tui_make_window)
4967 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4968 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4969 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4970 (tui_set_win_height_command, parse_scrolling_args): Update.
4971 * tui/tui-source.c (tui_source_window::style_changed): Update.
4972 * tui/tui-regs.c (tui_show_registers)
4973 (tui_data_window::first_data_item_displayed)
4974 (tui_data_window::delete_data_content_windows)
4975 (tui_check_register_values, tui_reg_command): Update.
4976 * tui/tui-disasm.c (tui_show_disassem): Update.
4977 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4978 method.
4979 <is_visible>: Remove field.
4980 * tui/tui-data.c (tui_next_win, tui_prev_win)
4981 (tui_delete_invisible_windows): Update.
4982
d4ab829a
TT
49832019-08-16 Tom Tromey <tom@tromey.com>
4984
4985 * tui/tui-winsource.h (struct tui_source_window_base)
4986 <m_has_locator>: Remove.
4987 * tui/tui-layout.c (show_source_disasm_command, show_data)
4988 (show_source_or_disasm_and_command): Update.
4989
aa7ca1bb
AH
49902019-08-16 Alan Hayward <alan.hayward@arm.com>
4991
4992 * NEWS (Other MI changes): New subsection.
4993 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4994 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4995 * arch-utils.c (default_get_pc_address_flags): New function.
4996 * arch-utils.h (default_get_pc_address_flags): New declaration.
4997 * gdbarch.sh: Add get_pc_address_flags.
4998 * gdbarch.c: Regenerate.
4999 * gdbarch.h: Likewise.
5000 * stack.c (print_pc): New function.
5001 (print_frame_info) (print_frame): Call print_pc.
5002
6eac171f
TV
50032019-08-16 Tom de Vries <tdevries@suse.de>
5004
5005 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5006 print_objfile_section_info.
5007
3df505f6
TT
50082019-08-15 Tom Tromey <tom@tromey.com>
5009
5010 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5011 calling update_cmdwin_start_line.
5012 * tui/tui-winsource.h (struct tui_source_window_base)
5013 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5014 <rerender>: Declare.
5015 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5016 Call rerender.
5017 (tui_source_window_base::set_new_height): Remove.
5018 (tui_source_window_base::rerender): Rename from
5019 do_make_visible_with_new_height.
5020 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5021 resize method.
5022 (tui_win_info::make_invisible_and_set_new_height)
5023 (tui_win_info::make_visible_with_new_height): Remove.
5024 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5025 Declare.
5026 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5027 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5028 do_make_visible_with_new_height>: Don't declare.
5029 <rerender>: Declare.
5030 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5031 set_new_height.
5032 (tui_data_window::do_make_visible_with_new_height): Remove.
5033 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5034 call tui_show_locator_content.
5035 (tui_gen_win_info::resize): Call rerender.
5036 (show_source_or_disasm_and_command): Don't call
5037 tui_show_locator_content.
5038 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5039 method.
5040 (struct tui_win_info) <rerender>: Declare.
5041 <set_new_height, make_invisible_and_set_new_height,
5042 make_visible_with_new_height>: Don't declare.
5043 * tui/tui-data.c (tui_win_list::rerender): New method.
5044 * tui/tui-command.h (struct tui_cmd_window)
5045 <do_make_visible_with_new_height>: Don't declare.
5046 * tui/tui-command.c
5047 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5048
272560b5
TT
50492019-08-15 Tom Tromey <tromey@adacore.com>
5050
5051 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5052 * ada-lang.c (ada_enum_name): Likewise.
5053
08235187
CB
50542019-08-15 Christian Biesinger <cbiesinger@google.com>
5055
5056 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5057 leading underscore.
5058 (GdbOutputErrorFile): Likewise.
5059 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5060 accordingly.
5061 (execute_unwinders): Rename to have a leading underscore.
5062 (auto_load_packages): Likewise.
5063 (global scope): Adjust call to auto_load_packages accordingly.
5064 (GdbSetPythonDirectory): Likewise.
5065 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5066 instead of execute_unwinders.
5067
db502012
TT
50682019-08-15 Tom Tromey <tom@tromey.com>
5069
5070 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5071 (show_data): Don't change window visibility.
5072 (tui_gen_win_info::resize): Remove special case for command
5073 window. Use wresize, when available.
5074 (show_source_or_disasm_and_command): Don't change window
5075 visibility.
5076 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5077 <make_visible>: New method.
5078 * tui/tui-command.c (tui_cmd_window::resize): New method.
5079
3891b65e
TT
50802019-08-15 Tom Tromey <tom@tromey.com>
5081
5082 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5083 (struct tui_source_windows): New.
5084 * tui/tui-winsource.c (tui_display_main): Update.
5085 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5086 (new_height_ok, parse_scrolling_args): Update.
5087 * tui/tui-layout.c (show_layout, show_data): Update.
5088 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5089 (tui_add_to_source_windows): Don't declare.
5090 * tui/tui-data.c (source_windows, tui_source_windows)
5091 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5092
ee556432
TT
50932019-08-15 Tom Tromey <tom@tromey.com>
5094
5095 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5096 Rename from reset.
5097 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5098 * tui/tui-layout.c (show_source_disasm_command, show_data):
5099 Update.
5100 (tui_gen_win_info::resize): Rename.
5101 (show_source_or_disasm_and_command): Update.
5102 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5103 reset.
5104
46f438e3
TT
51052019-08-15 Tom Tromey <tom@tromey.com>
5106
5107 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5108 * tui/tui-interp.c (tui_interp::init): Don't call
5109 tui_initialize_static_data.
5110 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5111
f4ce562c
TT
51122019-08-15 Tom Tromey <tom@tromey.com>
5113
5114 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5115 examine tui_win_list.
5116
c398c3d0
TT
51172019-08-15 Tom Tromey <tom@tromey.com>
5118
5119 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5120 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5121 tui_clear_source_content.
5122 (tui_clear_source_content): Remove.
5123 (tui_source_window_base::do_erase_source_content): Hoist call to
5124 content.clear().
5125 * tui/tui-stack.c (tui_show_frame_info): Don't call
5126 tui_clear_source_content.
5127
e25d2004
TT
51282019-08-15 Tom Tromey <tom@tromey.com>
5129
5130 * tui/tui-winsource.h (struct tui_source_window_base)
5131 <do_erase_source_content>: New method.
5132 <erase_source_content>: New method.
5133 (tui_erase_source_content): Don't declare.
5134 * tui/tui-winsource.c (tui_clear_source_content): Update.
5135 (tui_source_window_base::do_erase_source_content): Rename from
5136 tui_erase_source_content.
5137 (tui_source_window_base::show_source_content): Update.
5138 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5139 * tui/tui-source.h (struct tui_source_window)
5140 <erase_source_content>: New method.
5141 * tui/tui-disasm.h (struct tui_disasm_window)
5142 <erase_source_content>: New method.
5143
002f15c2
TT
51442019-08-15 Tom Tromey <tom@tromey.com>
5145
5146 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5147 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5148 constructor.
5149 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5150 * tui/tui-source.c (tui_set_source_content): Update.
5151 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5152
c9033fe8
TT
51532019-08-15 Tom Tromey <tom@tromey.com>
5154
5155 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5156 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5157 tui-source.c.
5158 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5159 Declare.
5160 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5161 method.
5162 (tui_source_window::maybe_update): Update.
5163
088f37dd
TT
51642019-08-15 Tom Tromey <tom@tromey.com>
5165
5166 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5167 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5168 tui-disasm.c.
5169 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5170 Declare.
5171 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5172 method.
5173 (tui_disasm_window::maybe_update): Update.
5174
a54700c6
TT
51752019-08-15 Tom Tromey <tom@tromey.com>
5176
5177 * tui/tui-winsource.h (struct tui_source_window_base)
5178 <maybe_update>: Declare.
5179 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5180 method.
5181 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5182 Declare.
5183 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5184 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5185 Declare.
5186 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5187
e2a678a5
TT
51882019-08-15 Tom Tromey <tom@tromey.com>
5189
5190 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5191
f2dda477
TT
51922019-08-15 Tom Tromey <tom@tromey.com>
5193
5194 * tui/tui-wingeneral.c: Include tui-stack.h.
5195 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5196 (struct tui_locator_window): Move from tui-data.h.
5197 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5198 (tui_initialize_static_data): Move from tui-data.c.
5199 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5200 (struct tui_locator_window): Move to tui-stack.c.
5201 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5202 (tui_initialize_static_data): Move to tui-stack.c.
5203
ed4a1084
TT
52042019-08-15 Tom Tromey <tom@tromey.com>
5205
5206 * tui/tui-layout.c (show_source_disasm_command)
5207 (show_source_or_disasm_and_command): Use make_visible method, not
5208 tui_make_window.
5209 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5210 Remove.
5211
65962b20
TT
52122019-08-15 Tom Tromey <tom@tromey.com>
5213
5214 * tui/tui-wingeneral.h (tui_make_window): Update.
5215 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5216 parameter.
5217 (tui_gen_win_info::make_visible): Update.
5218 * tui/tui-regs.c (tui_data_window::display_registers_from):
5219 Update.
5220 * tui/tui-layout.c (show_source_disasm_command)
5221 (show_source_or_disasm_and_command): Update.
5222 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5223 (enum tui_box): Remove.
5224 (struct tui_win_info) <can_box>: New method.
5225 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5226 method.
5227
2208ee91
TV
52282019-08-15 Tom de Vries <tdevries@suse.de>
5229
5230 * linux-nat-trad.c: Include gdbarch.h.
5231
75faf5c4
AH
52322019-08-14 Alan Hayward <alan.hayward@arm.com>
5233
5234 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5235 register sizes.
5236
b1c896b3
TT
52372019-08-14 Tom Tromey <tromey@adacore.com>
5238
5239 * darwin-nat.c: Include gdbarch.h.
5240 * darwin-nat-info.c: Include gdbarch.h.
5241
6405cd73
TT
52422019-08-13 Tom Tromey <tom@tromey.com>
5243
5244 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5245 Remove.
5246 * tui/tui-data.c (tui_initialize_static_data): Update.
5247
5216580d
TT
52482019-08-13 Tom Tromey <tom@tromey.com>
5249
5250 * tui/tui-winsource.h (struct tui_exec_info_window)
5251 <~tui_exec_info_window, maybe_allocate_content, get_content,
5252 m_content>: Remove.
5253 (struct tui_source_window_base) <set_exec_info_content,
5254 show_exec_info_content>: Don't declare.
5255 * tui/tui-winsource.c
5256 (tui_exec_info_window::maybe_allocate_content): Remove.
5257 (tui_source_window_base::update_exec_info): Rename from
5258 set_exec_info_content.
5259 (tui_source_window_base::show_exec_info_content)
5260 (tui_source_window_base::update_exec_info): Remove.
5261
93858ad3
TT
52622019-08-13 Tom Tromey <tom@tromey.com>
5263
5264 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5265 declare.
5266 * tui/tui-winsource.c (tui_update_source_window_as_is)
5267 (tui_update_source_windows_with_addr, tui_erase_source_content):
5268 Update.
5269 (tui_clear_exec_info_content): Remove.
5270
e321e7ce
TT
52712019-08-13 Tom Tromey <tom@tromey.com>
5272
5273 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5274 declare.
5275 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5276 call tui_erase_exec_info_content.
5277 (tui_clear_exec_info_content): Rename from
5278 tui_erase_exec_info_content.
5279 (tui_clear_exec_info_content): Delete.
5280
8270ac62
TT
52812019-08-13 Tom Tromey <tom@tromey.com>
5282
5283 * tui/tui-winsource.h (struct tui_source_window_base)
5284 <show_exec_info_content>: Declare.
5285 (tui_show_exec_info_content): Don't declare.
5286 * tui/tui-winsource.c
5287 (tui_source_window_base::show_exec_info_content): Rename from
5288 tui_show_exec_info_content.
5289 (tui_source_window_base::update_exec_info): Update.
5290
7b56485d
TT
52912019-08-13 Tom Tromey <tom@tromey.com>
5292
5293 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5294 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5295 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5296 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5297 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5298 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5299 ... here.
5300
7ba913dc
TT
53012019-08-13 Tom Tromey <tom@tromey.com>
5302
5303 * tui/tui-winsource.h (struct tui_source_window_base)
5304 <update_exec_info>: Declare.
5305 (tui_update_exec_info): Don't declare.
5306 * tui/tui-winsource.c (tui_update_source_window_as_is)
5307 (tui_source_window_base::refresh_all)
5308 (tui_update_all_breakpoint_info): Update.
5309 (tui_source_window_base::update_exec_info): Rename from
5310 tui_update_exec_info.
5311 * tui/tui-stack.c (tui_show_frame_info): Update.
5312
37a4a131
TT
53132019-08-13 Tom Tromey <tom@tromey.com>
5314
5315 * tui/tui-winsource.h (struct tui_source_window_base)
5316 <set_exec_info_content>: Declare.
5317 (tui_set_exec_info_content): Don't declare.
5318 * tui/tui-winsource.c
5319 (tui_source_window_base::set_exec_info_content): Rename from
5320 tui_set_exec_info_content.
5321 (tui_update_exec_info): Update.
5322
0bd27e07
TT
53232019-08-13 Tom Tromey <tom@tromey.com>
5324
5325 * tui/tui-winsource.h (struct tui_source_window_base)
5326 <show_source_content>: Declare.
5327 (tui_show_source_content): Don't declare.
5328 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5329 (tui_source_window_base::show_source_content): Rename from
5330 tui_show_source_content.
5331 (tui_source_window_base::refresh_all): Update.
5332 * tui/tui-layout.c (show_source_disasm_command)
5333 (show_source_or_disasm_and_command): Update.
5334
b4ef5aeb
TT
53352019-08-13 Tom Tromey <tom@tromey.com>
5336
5337 * tui/tui-winsource.c (tui_erase_source_content)
5338 (tui_show_source_content, tui_source_window_base::refresh_all):
5339 Update.
5340 * tui/tui-wingeneral.h
5341 (tui_check_and_display_highlight_if_needed): Don't declare.
5342 * tui/tui-wingeneral.c
5343 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5344 check_and_display_highlight_if_needed.
5345 * tui/tui-win.c (tui_rehighlight_all)
5346 (tui_win_info::make_visible_with_new_height): Update.
5347 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5348 (tui_data_window::erase_data_content)
5349 (tui_data_window::display_all_data): Update.
5350 * tui/tui-data.h (struct tui_win_info)
5351 <check_and_display_highlight_if_needed>: Declare.
5352
fede5273
TT
53532019-08-13 Tom Tromey <tom@tromey.com>
5354
5355 * tui/tui-win.c (tui_resize_all): Call
5356 tui_delete_invisible_windows.
5357 * tui/tui-layout.c (show_layout): Call
5358 tui_delete_invisible_windows.
5359 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5360 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5361
22c3f490
TT
53622019-08-13 Tom Tromey <tom@tromey.com>
5363
5364 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5365 tui_add_win_to_layout.
5366
16cb7910
TT
53672019-08-13 Tom Tromey <tom@tromey.com>
5368
5369 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5370 * tui/tui-layout.c (tui_default_win_height): Now static.
5371
cc0c3ffb
TT
53722019-08-13 Tom Tromey <tom@tromey.com>
5373
5374 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5375 single switch.
5376 (show_source_disasm_command, show_source_or_disasm_and_command):
5377 Don't check current layout.
5378
3f3ffe54
TT
53792019-08-13 Tom Tromey <tom@tromey.com>
5380
5381 * tui/tui-wingeneral.c (make_all_visible): Remove.
5382 (tui_make_all_invisible): Simplify.
5383 * tui/tui-layout.c (tui_make_all_invisible): Move from
5384 tui-wingeneral.c; simplify.
5385 (show_layout): Hoist call to tui_make_all_invisible.
5386 (show_data): Don't call tui_make_all_invisible.
5387
69258091
TT
53882019-08-13 Tom Tromey <tom@tromey.com>
5389
5390 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5391 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5392
62cf57fe
TT
53932019-08-13 Tom Tromey <tom@tromey.com>
5394
5395 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5396 tui-data.c.
5397 (show_source_disasm_command, show_data)
5398 (show_source_or_disasm_and_command): Don't use
5399 tui_set_current_layout_to.
5400 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5401 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5402 tui-layout.c.
5403 (tui_set_current_layout_to): Remove.
5404
2afade5d
TT
54052019-08-13 Tom Tromey <tom@tromey.com>
5406
5407 * tui/tui-layout.c (tui_set_layout): Update.
5408 * tui/tui-data.h (struct tui_layout_def): Remove.
5409 (tui_layout_def): Don't declare.
5410 * tui/tui-data.c (layout_def): Remove.
5411 (tui_layout_def): Remove.
5412
a3504e96
TT
54132019-08-13 Tom Tromey <tom@tromey.com>
5414
5415 * tui/tui-winsource.h (struct tui_source_window_base)
5416 <clear_detail>: No longer "override".
5417 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5418 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5419 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5420 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5421 Remove.
5422 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5423
29c92911
TT
54242019-08-13 Tom Tromey <tromey@adacore.com>
5425
5426 * tracepoint.c: Don't include readline.h or history.h.
5427
86c6b807
TT
54282019-08-12 Tom Tromey <tom@tromey.com>
5429
5430 * configure: Rebuild.
5431 * configure.ac: Check for readline 7.
5432 * NEWS: Mention readline 7 requirement.
5433 * README: Update.
5434
5db2718c
TT
54352019-08-12 Tom Tromey <tom@tromey.com>
5436
5437 * mingw-hdep.c (gdb_select): Remove readline hack.
5438
dac36daf
PFC
54392019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5440
5441 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5442 when the function fails.
5443
1022c627
AA
54442019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5445
5446 * s390-tdep.c (s390_type_align): New function.
5447 (s390_gdbarch_init): Set it as type_align gdbarch method.
5448
eba4caf2
TV
54492019-08-09 Tom de Vries <tdevries@suse.de>
5450
5451 PR gdb/24591
5452 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5453 pc_low with relocation offset.
5454
123cd851
TT
54552019-08-07 Tom Tromey <tromey@adacore.com>
5456
5457 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5458 (print_frame_args): Update.
5459 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5460 Update.
5461 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5462 * frame.h (struct frame_arg): Add initializers.
5463 <error>: Now a unique_xmalloc_ptr.
5464
3d31bc39
AH
54652019-08-07 Alan Hayward <alan.hayward@arm.com>
5466
5467 * NEWS: Expand the Pointer Authentication entry.
5468 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5469 (aarch64_frame_unmask_lr): ... to this.
5470 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5471 Call aarch64_frame_unmask_lr.
5472 * frame.c (struct frame_info): Add "masked" variable.
5473 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5474 (fprint_frame): Check for masked pc.
5475 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5476 declarations.
5477 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5478 * stack.c (print_frame): Check for masked pc.
5479
0cf9feb9
TT
54802019-08-06 Tom Tromey <tom@tromey.com>
5481
5482 * stabsread.c (patch_block_stabs, read_one_struct_field)
5483 (read_enum_type): Use obstack_strndup.
5484 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5485 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5486 * dwarf2read.c (guess_full_die_structure_name)
5487 (anonymous_struct_prefix): Use obstack_strndup.
5488 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5489 * c-exp.y (yylex): Use obstack_strndup.
5490 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5491 (write_var_or_type): Use obstack_strndup.
5492
efba19b0
TT
54932019-08-06 Tom Tromey <tom@tromey.com>
5494
5495 * symfile.c (reread_symbols): Use obstack_strdup.
5496 * stabsread.c (read_type): Use obstack_strdup.
5497 * gdb_obstack.h (obstack_strdup): New overload.
5498 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5499 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5500 (dwarf2_canonicalize_name): Use obstack_strdup.
5501 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5502 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5503 Use obstack_strdup.
5504
f25102f7
TT
55052019-08-06 Tom Tromey <tom@tromey.com>
5506
5507 * gdb_obstack.h (obstack_strdup): Define.
5508 * gdb_obstack.c (obstack_strdup): Don't define.
5509
021887d8
TT
55102019-08-06 Tom Tromey <tom@tromey.com>
5511
5512 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5513 obstack_strdup.
5514 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5515 obstack_strdup.
5516 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5517 * stabsread.c (common_block_start): Use obstack_strdup.
5518 * objfiles.c (set_objfile_main_name, objfile): Use
5519 obstack_strdup.
5520 * namespace.c (add_using_directive): Use obstack_strdup.
5521 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5522 * jit.c (finalize_symtab): Use obstack_strdup.
5523 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5524 (guess_partial_die_structure_name, partial_die_info::fixup)
5525 (dwarf2_name): Use obstack_strdup.
5526 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5527 obstack_strdup.
5528 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5529 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5530 obstack_strdup.
5531 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5532
d2834edc
PW
55332019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5534
5535 * unittests/help-doc-selftests.c: New file.
5536 * Makefile.in: Add the new file.
5537
590042fc
PW
55382019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5539
5540 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5541 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5542 the full first line, except when FOR_VALUE_PREFIX. In this case,
5543 the trailing '.' is not output, and the first character is uppercased.
5544 (print_help_for_command): Update call to print_doc_line.
5545 (print_doc_of_command): Likewise.
5546 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5547 * cli/cli-option.c (append_indented_doc): Do not append newline.
5548 (build_help_option): Append newline after first appended_indented_doc
5549 only if a second call is done.
5550 (build_help): Append 2 new lines before each option, except the first
5551 one.
5552 * compile/compile.c (_initialize_compile): Add new lines after
5553 %OPTIONS%, when not at the end of the help.
5554 Change help doc or code
5555 producing the help doc to respect the invariants.
5556 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5557 Also removed the new line after 'Options:', as all other commands
5558 do not put an empty line between 'Options:' and the first option.
5559 * printcmd.c (_initialize_printcmd): Likewise.
5560 * stack.c (_initialize_stack): Likewise.
5561 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5562 incorrectly telling COMMAND is optional.
5563 * ada-lang.c (_initialize_ada_language): Change help doc or code
5564 producing the help doc to respect the invariants.
5565 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5566 * breakpoint.c (_initialize_breakpoint): Likewise.
5567 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5568 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5569 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5570 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5571 _initialize_cli_style): Likewise.
5572 * corelow.c (core_target_info): Likewise.
5573 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5574 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5575 * filesystem.c (_initialize_filesystem): Likewise.
5576 * frame.c (_initialize_frame): Likewise.
5577 * gnu-nat.c (add_task_commands): Likewise.
5578 * infcall.c (_initialize_infcall): Likewise.
5579 * infcmd.c (_initialize_infcmd): Likewise.
5580 * interps.c (_initialize_interpreter): Likewise.
5581 * language.c (_initialize_language): Likewise.
5582 * linux-fork.c (_initialize_linux_fork): Likewise.
5583 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5584 * maint.c (_initialize_maint_cmds): Likewise.
5585 * memattr.c (_initialize_mem): Likewise.
5586 * printcmd.c (_initialize_printcmd): Likewise.
5587 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5588 _RegEx): Likewise.
5589 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5590 * record-btrace.c (_initialize_record_btrace): Likewise.
5591 * record-full.c (_initialize_record_full): Likewise.
5592 * record.c (_initialize_record): Likewise.
5593 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5594 * regcache.c (_initialize_regcache): Likewise.
5595 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5596 _initialize_remote): Likewise.
5597 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5598 * serial.c (_initialize_serial): Likewise.
5599 * skip.c (_initialize_step_skip): Likewise.
5600 * source.c (_initialize_source): Likewise.
5601 * stack.c (_initialize_stack): Likewise.
5602 * symfile.c (_initialize_symfile): Likewise.
5603 * symtab.c (_initialize_symtab): Likewise.
5604 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5605 * top.c (init_main): Likewise.
5606 * tracefile-tfile.c (tfile_target_info): Likewise.
5607 * tracepoint.c (_initialize_tracepoint): Likewise.
5608 * tui/tui-win.c (_initialize_tui_win): Likewise.
5609 * utils.c (add_internal_problem_command): Likewise.
5610 * valprint.c (value_print_option_defs): Likewise.
5611
404f2902
FCE
56122019-08-06 Frank Ch. Eigler <fche@redhat.com>
5613
5614 PR build/24886
5615 * configure.ac: Drop enable-libmcheck support.
5616 * configure, config.in: Rebuild.
5617 * libmcheck.m4: Remove.
5618 * acinclude.m4: Don't include it.
5619 * Makefile.in: Don't distribute it.
5620 * top.c (print_gdb_configuration): Don't mention it.
5621
046bebe1
TT
56222019-08-06 Tom Tromey <tom@tromey.com>
5623
5624 * utils.c (set_output_style): Sometimes pass stream to
5625 emit_style_escape.
5626 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5627 * record-btrace.c (btrace_insn_history): Update.
5628 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5629 method.
5630 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5631 Update initializers.
5632 <m_uiout>: New field.
5633 <m_di>: Move lower.
5634 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5635 Remove "uiout" parameter.
5636 (dump_insns): Update.
5637 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5638 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5639
ddbcedf5
CB
56402019-08-06 Christian Biesinger <cbiesinger@google.com>
5641
5642 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5643 (error_in_psymtab_expansion): Likewise.
5644 (lookup_symbol_via_quick_fns): Likewise.
5645 (basic_lookup_transparent_type_quick): Likewise.
5646 (basic_lookup_transparent_type_1): Likewise.
5647
b08b16c8
TT
56482019-08-06 Tom Tromey <tromey@adacore.com>
5649
5650 * source.c (last_source_error): Now bool.
5651 (print_source_lines_base): Make "noprint" bool. Only open
5652 source file when last_source_visited changes.
5653
cb44333d
TT
56542019-08-06 Tom Tromey <tromey@adacore.com>
5655
5656 * annotate.c (annotate_source_line): Use g_source_cache.
5657 * source-cache.c (source_cache::get_plain_source_lines): Change
5658 parameters. Populate m_offset_cache.
5659 (source_cache::ensure): New method.
5660 (source_cache::get_line_charpos): New method.
5661 (extract_lines): Move lower. Change parameters.
5662 (source_cache::get_source_lines): Move lower.
5663 * source-cache.h (class source_cache): Update comment.
5664 <get_line_charpos>: New method.
5665 <get_source_lines>: Update comment.
5666 <clear>: Clear m_offset_cache.
5667 <get_plain_source_lines>: Change parameters.
5668 <ensure>: New method
5669 <m_offset_cache>: New member.
5670 * source.c (forget_cached_source_info_for_objfile): Update.
5671 (info_source_command): Use g_source_cache.
5672 (find_source_lines, open_source_file_with_line_charpos): Remove.
5673 (print_source_lines_base, search_command_helper): Use g_source_cache.
5674 * source.h (open_source_file_with_line_charpos): Don't declare.
5675 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5676 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5677 Use g_source_cache.
5678
872dceaa
TT
56792019-08-06 Tom Tromey <tromey@adacore.com>
5680
5681 * source-cache.c (source_cache::get_plain_source_lines):
5682 Remove "first_line" and "last_line" parameters.
5683 (source_cache::get_source_lines): Cache plain text.
5684 * source-cache.h (class source_cache)
5685 <get_plain_source_lines>: Update.
5686
269249d9
TT
56872019-08-06 Tom Tromey <tromey@adacore.com>
5688
5689 * source-cache.c (extract_lines): No longer a method.
5690 Changed type of parameter. Include final newline.
5691 (selftests::extract_lines_test): New function.
5692 (_initialize_source_cache): Likewise.
5693 * source-cache.h (class source_cache)
5694 <extract_lines>: Don't declare.
5695
c0e8dcd8
TT
56962019-08-06 Tom Tromey <tromey@adacore.com>
5697
5698 * breakpoint.c (init_breakpoint_sal): Update.
5699 (breakpoint): Update.
5700 * breakpoint.h (struct breakpoint) <filter>: Now a
5701 unique_xmalloc_ptr.
5702
0b27c27d
CB
57032019-08-05 Christian Biesinger <cbiesinger@google.com>
5704
5705 * NEWS: Mention dictionary access on blocks.
5706 * python/py-block.c (blpy_getitem): New function.
5707 (block_object_as_mapping): New struct.
5708 (block_object_type): Use new struct for tp_as_mapping field.
5709
4ee94178
CB
57102019-08-05 Christian Biesinger <cbiesinger@google.com>
5711
5712 * objfiles.h (objfile): Add a comment describing partial symbols.
5713
8abfcabc
TT
57142019-08-05 Tom Tromey <tromey@adacore.com>
5715
5716 * compile/compile.c (_initialize_compile): Use _(), not N_().
5717 * thread.c (_initialize_thread): Use _(), not N_().
5718 * stack.c (_initialize_stack): Use _(), not N_().
5719 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5720
2b79f376
SM
57212019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5722
5723 * dwarf2read.c (struct dw2_symtab_iterator):
5724 <want_specific_block>: Remove.
5725 <block_index>: Change type to gdb::optional.
5726 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5727 change type of BLOCK_INDEX parameter to gdb::optional.
5728 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5729 (dw2_lookup_symbol): Don't pass argument for
5730 WANT_SPECIFIC_BLOCK.
5731 (dw2_expand_symtabs_for_function): Don't pass argument for
5732 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5733 (class dw2_debug_names_iterator)
5734 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5735 parameter, change BLOCK_INDEX type to gdb::optional.
5736 <m_want_specific_block>: Remove.
5737 <m_block_index>: Change type to gdb::optional.
5738 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5739 gdb::optional. Re-write in function of gdb::optional.
5740 (dw2_debug_names_lookup_symbol): Don't pass argument for
5741 WANT_SPECIFIC_BLOCK.
5742 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5743 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5744 BLOCK_INDEX.
5745
ae60f04e
PW
57462019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5747
5748 * NEWS: Mention changes to "info sources" command.
5749
28cd9371
PW
57502019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5751
5752 * symtab.c (filename_partial_match_opts): New struct type.
5753 (struct output_source_filename_data): New members
5754 regexp, c_regexp, partial_match.
5755 (output_source_filename): Use new members to decide to print file.
5756 (info_sources_option_defs): New variable.
5757 (make_info_sources_options_def_group, print_info_sources_header,
5758 info_sources_command_completer):
5759 New functions.
5760 (info_sources_command): Read new optional arguments.
5761 (_initialize_symtab): Update info sources help.
5762
ca683e3a
AO
57632019-08-02 Alexandre Oliva <oliva@adacore.com>
5764
5765 * ada-lang.c (exception_support_info_v0): Renamed from...
5766 (default_exception_support_info): ... this. Create new
5767 definition for v1.
5768 (ada_has_this_exception_support): Look up catch_handlers_sym.
5769 (ada_exception_support_info_sniffer): Try v0 after default.
5770
f1264162
TT
57712019-08-01 Tom Tromey <tromey@adacore.com>
5772
5773 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5774 gdbarch.h.
5775
0a7b2485
CB
57762019-08-01 Christian Biesinger <cbiesinger@google.com>
5777
5778 * s12z-tdep.c: Fix include path for s12z-opc.h.
5779
c6bdbeb7
AH
57802019-08-01 Alan Hayward <alan.hayward@arm.com>
5781
5782 * NEWS: Require GNU make 3.82.
5783
a2bd7b82
TT
57842019-07-16 Tom Tromey <tom@tromey.com>
5785
5786 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5787 declare.
5788
aa3b6533
TT
57892019-07-30 Tom Tromey <tromey@adacore.com>
5790
5791 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5792
a1530dc7
KB
57932019-07-30 Kevin Buettner <kevinb@redhat.com>
5794
5795 * printcmd.c (print_address_symbolic): Print negative offsets.
5796 (build_address_symbolic): Force signed arithmetic when computing
5797 offset.
5798
2906593f
CB
57992019-07-30 Christian Biesinger <cbiesinger@google.com>
5800
5801 PR/24474: Add a function to lookup static variables.
5802 * NEWS: Mention this new function.
5803 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5804 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5805 * python/python.c (python_GdbMethods): Add new function.
5806
c620ed88
CB
58072019-07-29 Christian Biesinger <cbiesinger@google.com>
5808
5809 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5810 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5811 (objfpy_lookup_static_symbol): New function.
5812 (objfile_object_methods): Add new functions.
5813
bc4268a5
PW
58142019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5815
5816 * NEWS: Mention 'set|show print frame-info'. Mention new
5817 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5818 backtrace argument. Mention that python frame filtering code
5819 is now consistent with what 'backtrace' command prints.
5820
4b5e8d19
PW
58212019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5822
5823 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5824 comments.
5825 (print_frame_info_auto, print_frame_info_source_line,
5826 print_frame_info_location, print_frame_info_source_and_location,
5827 print_frame_info_location_and_address, print_frame_info_short_location):
5828 New declarations.
5829 (struct frame_print_options): New member print_frame_info.
5830 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5831 * stack.h (get_user_print_what_frame_info): New declaration.
5832 (frame_show_address): New declaration.
5833 * stack.c (print_frame_arguments_choices): New value 'presence'.
5834 (print_frame_info_auto, print_frame_info_source_line,
5835 print_frame_info_location, print_frame_info_source_and_location,
5836 print_frame_info_location_and_address, print_frame_info_short_location,
5837 print_frame_info_choices, print_frame_info_print_what): New definitions.
5838 (print_frame_args): Only print dots for args if print frame-arguments
5839 is 'presence'.
5840 (frame_print_option_defs): New element for "frame-info".
5841 (get_user_print_what_frame_info): New function.
5842 (frame_show_address): Make non static. Move comment to stack.h.
5843 (print_frame_info_to_print_what): New function.
5844 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5845 to decide what to print.
5846 (backtrace_command_1): Handle the new print_frame_arguments_presence
5847 value.
5848 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5849 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5850 (py_print_frame): In non-mi mode, use LOCATION as default for
5851 print_what, similarly to frame information printed directly by
5852 backtrace command. Handle frame-info user option in non MI mode.
5853
6bdfee81
KB
58542019-07-27 Kevin Buettner <kevinb@redhat.com>
5855
5856 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5857 Add case for debugging 32-bit target on 64-bit host. Revise
5858 comment.
5859
98a617f8
KB
58602019-07-27 Kevin Buettner <kevinb@redhat.com>
5861
5862 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5863 instead of find_function_entry_range_from_pc.
5864
567238c9
KB
58652019-07-27 Kevin Buettner <kevinb@redhat.com>
5866
5867 * stack.c (find_frame_funname): Remove code which preferred
5868 minsym over symtab sym in "certain pathological cases".
5869
2dc80cf8
KB
5870 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5871 parameter. Change type of "do_demangle" to bool.
5872 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5873 Pass suitable "prefer_sym_over_minsym" flag to
5874 build_address_symbolic(). Don't output "+" for negative offsets.
5875 * printcmd.c (print_address_symbolic): Update invocation of
5876 build_address_symbolic to include a "prefer_sym_over_minsym"
5877 flag.
5878 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5879 Restrict cases in which use of minimal symbol is preferred to that
5880 of a found symbol. Update comments.
5881
1aff7173
KB
5882 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5883 for entry pc when entry pc is out of range for that FDE.
5884
89b085ac
BC
58852019-07-26 Brian Callahan <bcallah@openbsd.org>
5886
5887 PR gdb/24839:
5888 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5889 type.
5890
f32feb4a
CB
58912019-07-25 Christian Biesinger <cbiesinger@google.com>
5892
5893 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5894 this function's Python signature.
5895
5896
58972019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5898
5899 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5900 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5901 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5902 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5903 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5904
5905
c54e4253
YS
59062019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5907
5908 * h8300-tdep.c (h8300_register_name_common): New.
5909 h8300_register_name): Use h8300_register_name_common.
5910 (h8300s_register_name): Likewise.
5911 (h8300sx_register_name): Likewise.
5912 (h8300h_register_nam): New.
5913 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5914
5915
40eadf04
SP
59162019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5917
5918 * arm-tdep.c (arm_skip_cmse_entry): New function.
5919 (arm_is_sgstubs_section): New function.
5920 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5921
bfa2a36d
TT
59222019-07-22 Tom Tromey <tom@tromey.com>
5923
5924 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5925 Don't self-assign.
5926
a8e9d247
AB
59272019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5928
5929 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5930 type_print.
5931
eb86c5e2
AB
59322019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5933
5934 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5935 so that GDB doesn't match any msymbols when searching in the
5936 TYPES_DOMAIN.
5937 (print_symbol_info): Print using typedef_print or type_print based
5938 on the type of the symbol. Add updated FIXME comment moved from...
5939 (_initialize_symtab): ... move and update FIXME comment to above.
5940
a8eab7c6
AB
59412019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5942
5943 * NEWS: Mention adding -q option to "info types".
5944 * symtab.c (struct info_types_options): New struct.
5945 (info_types_options_defs): New variable.
5946 (make_info_types_options_def_group): New function.
5947 (info_types_command): Use gdb::option framework to parse options.
5948 (info_types_command_completer): New function.
5949 (_initialize_symtab): Extend the help text on "info types" and
5950 register command completer.
5951
b4603c34
CB
59522019-07-21 Christian Biesinger <cbiesinger@google.com>
5953
5954 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5955 (lookup_symbol_in_objfile): Change int to block_enum and add a
5956 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5957
c8cdc1e0
CB
59582019-07-20 Christian Biesinger <cbiesinger@google.com>
5959
5960 * MAINTAINERS (Write After Approval): Add self.
5961
01e175fe
AB
59622019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5963
5964 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5965 instruction to the dummy code region.
5966
56f79b63
TT
59672019-07-19 Tom Tromey <tromey@adacore.com>
5968
5969 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5970 (ARGSUSED, PARAMS, __func__): Remove rules.
5971
4c5aa8e0
AH
59722019-07-19 Alan Hayward <alan.hayward@arm.com>
5973
5974 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5975 * features/arm/arm-with-iwmmxt.c: Remove.
5976 * features/arm/arm-with-iwmmxt.xml: Remove.
5977 * features/arm/arm-with-m-fpa-layout.c: Remove.
5978 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5979 * features/arm/arm-with-m-vfp-d16.c: Remove.
5980 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5981 * features/arm/arm-with-m.c: Remove.
5982 * features/arm/arm-with-m.xml: Remove.
5983 * features/arm/arm-with-neon.c: Remove.
5984 * features/arm/arm-with-neon.xml: Remove.
5985 * features/arm/arm-with-vfpv2.c: Remove.
5986 * features/arm/arm-with-vfpv2.xml: Remove.
5987 * features/arm/arm-with-vfpv3.c: Remove.
5988 * features/arm/arm-with-vfpv3.xml: Remove.
5989
f42b2617
AH
59902019-07-19 Alan Hayward <alan.hayward@arm.com>
5991
5992 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5993
f29ec966
AH
59942019-07-19 Alan Hayward <alan.hayward@arm.com>
5995
5996 * arch/aarch32.c (aarch32_create_target_description): Create
5997 target descriptions using features.
5998 * arch/arm.c (arm_create_target_description)
5999 (arm_create_mprofile_target_description): Likewise.
6000 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6001
d105cce5
AH
60022019-07-19 Alan Hayward <alan.hayward@arm.com>
6003
6004 * Makefile.in: Add new files.
6005 * aarch32-tdep.c: New file.
6006 * aarch32-tdep.h: New file.
6007 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6008 Call aarch32_read_description.
6009 * arch/aarch32.c: New file.
6010 * arch/aarch32.h: New file.
6011 * arch/arm.c (arm_create_target_description)
6012 (arm_create_mprofile_target_description): New function.
6013 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6014 (arm_create_target_description)
6015 (arm_create_mprofile_target_description): New declaration.
6016 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6017 read_description functions.
6018 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6019 Likewise.
6020 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6021 * arm-tdep.c (tdesc_arm_list): New variable.
6022 (arm_register_g_packet_guesses): Call create description functions.
6023 (arm_read_description) (arm_read_mprofile_description): New
6024 function.
6025 * arm-tdep.h (arm_read_description)
6026 (arm_read_mprofile_description): Add declaration.
6027 * configure.tgt: Add new files.
6028
afe09f0b
GL
60292019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6030
6031 * top.c (new_ui_command): Open specified terminal just once.
6032
cd215b2e
TT
60332019-07-18 Tom Tromey <tromey@adacore.com>
6034
6035 * symtab.c (main_name): Constify return type.
6036 * symfile.c (set_initial_language): Update.
6037 * symtab.h (main_name): Constify return type.
6038
d8f68fcb
TT
60392019-07-17 Tom Tromey <tom@tromey.com>
6040
6041 * tui/tui-winsource.c (tui_update_source_window)
6042 (tui_update_source_window_as_is)
6043 (tui_update_source_windows_with_line): Remove return.
6044 * tui/tui-disasm.c (tui_show_disassem)
6045 (tui_show_disassem_and_update_source): Remove return.
6046 * tui/tui.c (tui_reset): Remove return.
6047 * tui/tui-wingeneral.c
6048 (tui_check_and_display_highlight_if_needed): Remove return.
6049
ca5af91e
TT
60502019-07-17 Tom Tromey <tom@tromey.com>
6051
6052 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6053
5104fe36
TT
60542019-07-17 Tom Tromey <tom@tromey.com>
6055
6056 * tui/tui-winsource.h (struct tui_exec_info_window)
6057 (struct tui_source_window_base): Move from tui-data.h.
6058 * tui/tui-winsource.c: Move many method definitions from
6059 elsewhere. Remove "structuring" comments.
6060 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6061 (tui_source_window_base::refresh_window): Move to
6062 tui-winsource.c.
6063 * tui/tui-win.c (tui_source_window_base::refresh_all)
6064 (tui_source_window_base::update_tab_width)
6065 (tui_source_window_base::set_new_height)
6066 (tui_source_window_base::do_make_visible_with_new_height): Move to
6067 tui-winsource.c.
6068 * tui/tui-source.h: Update.
6069 * tui/tui-source.c (tui_source_window_base::reset): Move to
6070 tui-winsource.c.
6071 * tui/tui-disasm.h: Update.
6072 * tui/tui-data.h (struct tui_exec_info_window): Move to
6073 tui-winsource.h.
6074 (struct tui_source_window_base): Likewise.
6075 * tui/tui-data.c (tui_source_window_base::clear_detail)
6076 (tui_source_window_base, ~tui_source_window_base): Move to
6077 tui-winsource.c.
6078
daa15dde
TT
60792019-07-17 Tom Tromey <tom@tromey.com>
6080
6081 * tui/tui-win.c (tui_resize_all)
6082 (tui_source_window_base::update_tab_width)
6083 (tui_adjust_win_heights): Update.
6084 (tui_win_info::make_invisible_and_set_new_height): Rename from
6085 make_invisible_and_set_new_height.
6086 * tui/tui-data.h (struct tui_win_info)
6087 <make_invisible_and_set_new_height>: New method.
6088
bfad4537
TT
60892019-07-17 Tom Tromey <tom@tromey.com>
6090
6091 * tui/tui.c: Update.
6092 * tui/tui-source.h (struct tui_source_window): Move from
6093 tui-data.h.
6094 * tui/tui-layout.c: Update.
6095 * tui/tui-disasm.c: Update.
6096 * tui/tui-data.h (struct tui_source_window): Move to
6097 tui-source.h.
6098
88f7e873
TT
60992019-07-17 Tom Tromey <tom@tromey.com>
6100
6101 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6102 tui-data.h.
6103 * tui/tui-data.h (struct tui_disasm_window): Move to
6104 tui-disasm.h.
6105
96bd6233
TT
61062019-07-17 Tom Tromey <tom@tromey.com>
6107
6108 * tui/tui-regs.h (struct tui_data_item_window): Move from
6109 tui-data.h.
6110 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6111 * tui/tui-data.h (struct tui_data_item_window): Move to
6112 tui-regs.h.
6113 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6114
ce38393b
TT
61152019-07-17 Tom Tromey <tom@tromey.com>
6116
6117 * tui/tui.c: Update.
6118 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6119 (tui_cmd_window::max_height): Move to tui-command.c.
6120 * tui/tui-layout.c: Update.
6121 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6122 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6123 tui-command.c.
6124 * tui/tui-command.h (struct tui_cmd_window): Move from
6125 tui-data.h.
6126 * tui/tui-command.c: Remove "structuring" comments.
6127 (tui_cmd_window::clear_detail)
6128 (tui_cmd_window::do_make_visible_with_new_height)
6129 (tui_cmd_window::max_height): Move from elsewhere.
6130
2d8b51cb
TT
61312019-07-17 Tom Tromey <tom@tromey.com>
6132
6133 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6134 Now static.
6135 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6136 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6137
18ab23af
TT
61382019-07-17 Tom Tromey <tom@tromey.com>
6139
6140 * tui/tui.c: Update.
6141 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6142 tui-regs.c.
6143 * tui/tui-windata.h: Remove file.
6144 * tui/tui-windata.c: Remove file.
6145 * tui/tui-win.c (tui_data_window::set_new_height)
6146 (tui_data_window::do_make_visible_with_new_height): Move to
6147 tui-regs.c.
6148 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6149 * tui/tui-regs.c: Remove "structuring" comments.
6150 (tui_data_window::first_data_item_displayed)
6151 (tui_data_window::delete_data_content_windows)
6152 (tui_data_window::erase_data_content)
6153 (tui_data_window::display_all_data)
6154 (tui_data_window::refresh_all)
6155 (tui_data_window::do_scroll_vertical)
6156 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6157 (tui_data_window::do_make_visible_with_new_height)
6158 (tui_data_window::refresh_window): Move from elsewhere.
6159 (_initialize_tui_regs): Move to end of file.
6160 * tui/tui-layout.c: Update.
6161 * tui/tui-hooks.c: Update.
6162 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6163 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6164 tui-regs.c.
6165 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6166
88b7e7cc
TT
61672019-07-17 Tom Tromey <tom@tromey.com>
6168
6169 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6170 seen.
6171
0fcd3711
TT
61722019-07-17 Tom Tromey <tom@tromey.com>
6173
6174 * tui/tui-win.c (tui_source_window_base::set_new_height)
6175 (tui_source_window_base::do_make_visible_with_new_height): Use
6176 m_has_locator field directly.
6177 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6178 method.
6179 (struct tui_source_window_base) <has_locator>: Likewise.
6180
4a38112d
TT
61812019-07-17 Tom Tromey <tom@tromey.com>
6182
6183 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6184 Don't declare.
6185 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6186 Remove.
6187 * tui/tui-win.c (tui_source_window_base::set_new_height)
6188 (tui_source_window_base::set_new_height)
6189 (make_invisible_and_set_new_height)
6190 (tui_source_window_base::do_make_visible_with_new_height)
6191 (tui_source_window_base::do_make_visible_with_new_height):
6192 Update.
6193 * tui/tui-layout.c (show_source_disasm_command, show_data)
6194 (show_source_or_disasm_and_command): Update.
6195 * tui/tui-layout.c (show_layout): Update.
6196
09129226
TT
61972019-07-17 Tom Tromey <tom@tromey.com>
6198
6199 * tui/tui-layout.c (make_data_window): Remove.
6200 (show_data): Unify creation and re-initialization cases.
6201
4a8a5e84
TT
62022019-07-17 Tom Tromey <tom@tromey.com>
6203
6204 * tui/tui-layout.c (make_source_window, make_disasm_window):
6205 Remove.
6206 (show_data): Unify creation and re-initialization cases.
6207
76d2be8e
TT
62082019-07-17 Tom Tromey <tom@tromey.com>
6209
6210 * tui/tui-layout.c (make_command_window): Remove.
6211 (show_source_disasm_command, show_source_or_disasm_and_command):
6212 Unify creation and re-initialization cases.
6213
890b8bde
TT
62142019-07-17 Tom Tromey <tom@tromey.com>
6215
6216 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6217 creation and re-initialization cases.
6218
2cdfa113
TT
62192019-07-17 Tom Tromey <tom@tromey.com>
6220
6221 * tui/tui-regs.c (tui_get_register): Return void.
6222
8e3cfd09
TT
62232019-07-17 Tom Tromey <tom@tromey.com>
6224
6225 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6226 Simplify.
6227
f4e04977
TT
62282019-07-17 Tom Tromey <tom@tromey.com>
6229
6230 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6231 resetting.
6232
0379b883
TT
62332019-07-17 Tom Tromey <tom@tromey.com>
6234
6235 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6236 * tui/tui-regs.c (tui_reg_layout): New function.
6237 (tui_show_registers, tui_reg_command): Use it.
6238 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6239 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6240 parameters.
6241 (tui_layout_command): Remove.
6242
b7fbad91
TT
62432019-07-17 Tom Tromey <tom@tromey.com>
6244
6245 * tui/tui-layout.h (tui/tui-layout): Return void.
6246 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6247
4e1e56b9
TT
62482019-07-17 Tom Tromey <tom@tromey.com>
6249
6250 * tui/tui-layout.c (show_source_disasm_command, show_data):
6251 Update.
6252 (reset_locator): Remove.
6253 (show_source_or_disasm_and_command): Update.
6254
1e0c09ba
TT
62552019-07-17 Tom Tromey <tom@tromey.com>
6256
6257 * tui/tui-source.c (tui_source_window_base::reset): Remove
6258 win_type parameter.
6259 * tui/tui-layout.c (make_command_window, make_source_window)
6260 (make_disasm_window, make_data_window)
6261 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6262 (reset_locator, show_source_or_disasm_and_command): Update.
6263 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6264 win_type parameter.
6265 (struct tui_source_window_base) <reset>: Likewise.
6266
1bf605de
TT
62672019-07-17 Tom Tromey <tom@tromey.com>
6268
6269 * tui/tui-layout.c (show_source_disasm_command): Use
6270 reset_locator.
6271 (reset_locator): New function.
6272 (init_and_make_win): Remove.
6273 (show_source_or_disasm_and_command): Use reset_locator.
6274
098f9ed4
TT
62752019-07-17 Tom Tromey <tom@tromey.com>
6276
6277 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6278 condition.
6279 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6280 Remove condition.
6281 * tui/tui-source.c (tui_source_window_base::reset): New method.
6282 * tui/tui-layout.c (make_command_window): Don't call
6283 init_and_make_win.
6284 (make_source_window, make_disasm_window): Don't call
6285 make_source_or_disasm_window.
6286 (make_data_window): Don't call init_and_make_win. Change calling
6287 convention.
6288 (show_source_disasm_command, show_data): Simplify.
6289 (make_source_or_disasm_window): Remove.
6290 (show_source_or_disasm_and_command): Simplify.
6291 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6292 (struct tui_source_window_base) <reset>: Likewise.
6293 <execution_info>: Remove initializer.
6294 * tui/tui-data.c (tui_source_window_base): Initialize
6295 execution_info.
6296
80110957
TT
62972019-07-17 Tom Tromey <tom@tromey.com>
6298
6299 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6300 variable.
6301
cf82af05
TT
63022019-07-17 Tom Tromey <tom@tromey.com>
6303
6304 * tui/tui.c (tui_rl_other_window): Update.
6305 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6306 superclass method first. Always iterate over regs_content.
6307 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6308 method.
6309 * tui/tui-win.c (tui_set_focus_command): Update.
6310
01aeb396
TT
63112019-07-17 Tom Tromey <tom@tromey.com>
6312
6313 * tui/tui-win.c (tui_set_focus_command): Rename from
6314 tui_set_focus. Call tui_enable.
6315 (tui_set_focus_command): Remove.
6316
fd6c75ee
TT
63172019-07-17 Tom Tromey <tom@tromey.com>
6318
6319 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6320 refresh_window.
6321 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6322 touchwin.
6323 (tui_data_window::refresh_window): Call refresh_window on data
6324 items. Always call superclass refresh_window.
6325 (tui_win_info::refresh): Remove.
6326 (tui_source_window_base::refresh_window): Update.
6327 (tui_refresh_all): Update.
6328 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6329 refresh_window.
6330 (show_source_or_disasm_and_command): Likewise.
6331 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6332 (struct tui_source_window_base) <refresh>: Likewise.
6333
f6cc34a9
TT
63342019-07-17 Tom Tromey <tom@tromey.com>
6335
6336 * tui/tui-winsource.c (tui_clear_source_content)
6337 (tui_show_source_content): Update.
6338 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6339 whether content is empty.
6340 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6341 Remove.
6342
f31ec9af
TT
63432019-07-17 Tom Tromey <tom@tromey.com>
6344
6345 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6346 window's contents.
6347 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6348 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6349
d1b6f1e5
TT
63502019-07-17 Tom Tromey <tom@tromey.com>
6351
6352 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6353 (struct tui_data_item_window): Update.
6354
d9743a13
TT
63552019-07-17 Tom Tromey <tom@tromey.com>
6356
6357 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6358 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6359 defines.
6360
caf0bc4e
TT
63612019-07-17 Tom Tromey <tom@tromey.com>
6362
6363 * tui/tui-winsource.h (tui_erase_source_content)
6364 (tui_clear_source_content): Remove "display_prompt" parameter.
6365 * tui/tui-winsource.c (tui_update_source_window_as_is)
6366 (tui_update_source_windows_with_addr): Update.
6367 (tui_clear_source_content): Remove "display_prompt" parameter.
6368 (tui_erase_source_content): Likewise. Simplify.
6369 (tui_show_source_content): Update.
6370 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6371 * tui/tui-stack.c (tui_show_frame_info): Update.
6372 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6373 Remove defines.
6374
9d391078
TT
63752019-07-17 Tom Tromey <tom@tromey.com>
6376
6377 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6378 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6379 parameter.
6380 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6381 parameter.
6382
a38da35d
TT
63832019-07-17 Tom Tromey <tom@tromey.com>
6384
6385 * tui/tui-winsource.c (tui_clear_source_content)
6386 (tui_show_source_content, tui_show_exec_info_content)
6387 (tui_clear_exec_info_content): Update.
6388 * tui/tui-stack.c (tui_show_locator_content): Update.
6389 (tui_show_frame_info): Update.
6390 * tui/tui-source.h (tui_source_window): Don't declare.
6391 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6392 from tui_source_is_displayed.
6393 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6394 Remove field.
6395 (struct tui_source_window_base) <content_in_use>: New field. Now
6396 bool.
6397 (struct tui_source_window) <showing_source_p>: New method.
6398 (TUI_SRC_WIN): Change cast.
6399 * tui/tui-data.c (tui_initialize_static_data): Update.
6400
c2cd8994
TT
64012019-07-17 Tom Tromey <tom@tromey.com>
6402
6403 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6404 location_matches_p.
6405 * tui/tui-source.c (tui_source_window::location_matches_p): New
6406 method.
6407 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6408 method.
6409 * tui/tui-data.h (struct tui_source_window_base)
6410 <location_matches_p>: New method.
6411 (struct tui_source_window, struct tui_disasm_window)
6412 <location_matches_p>: Likewise.
6413
4dde7b34
TT
64142019-07-17 Tom Tromey <tom@tromey.com>
6415
6416 * tui/tui-win.c (tui_set_win_height_command): Rename from
6417 tui_set_win_height.
6418 (tui_set_win_height_command): Remove.
6419
b73dd877
TT
64202019-07-17 Tom Tromey <tom@tromey.com>
6421
6422 * tui/tui-source.c (tui_source_window): New constructor. Add
6423 observer.
6424 (~tui_source_window): New destructor.
6425 (tui_source_window::style_changed): New method.
6426 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6427 (tui_attach_detach_observers): Update.
6428 * tui/tui-data.h (struct tui_source_window): Make constructor not
6429 inline. Add destructor.
6430 (struct tui_source_window) <style_changed>: New method.
6431 <m_observable>: New member.
6432
ae2b5380
TT
64332019-07-17 Tom Tromey <tom@tromey.com>
6434
6435 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6436 * tui/tui-win.c (tui_resize_all): Fix typo.
6437
1ce3e844
TT
64382019-07-17 Tom Tromey <tom@tromey.com>
6439
6440 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6441 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6442 (tui_refresh_all): Remove "list" parameter. Use foreach.
6443 * tui/tui-win.c (window_name_completer): Use foreach.
6444 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6445 (update_tab_width): Likewise.
6446 * tui/tui-layout.c (show_layout): Update.
6447 * tui/tui-data.h (class tui_window_iterator): New.
6448 (struct all_tui_windows): New.
6449 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6450
fe3eaf1c
TT
64512019-07-17 Tom Tromey <tom@tromey.com>
6452
6453 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6454 parameter. Don't reference globals.
6455 (tui_reg_command): Update.
6456
368c1354
TT
64572019-07-17 Tom Tromey <tom@tromey.com>
6458
6459 * tui/tui-regs.c (tui_show_registers): Simplify.
6460
e80cd204
TT
64612019-07-17 Tom Tromey <tom@tromey.com>
6462
6463 * tui/tui-regs.c (tui_show_registers): Update.
6464 (tui_show_register_group): Add win_info parameter.
6465
aca2dd16
TT
64662019-07-17 Tom Tromey <tom@tromey.com>
6467
6468 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6469 Rename from tui_display_reg_element_at_line.
6470 (tui_data_window::display_registers_from_line): Update.
6471 * tui/tui-data.h (struct tui_data_window)
6472 <display_reg_element_at_line>: New method.
6473
517e9505
TT
64742019-07-17 Tom Tromey <tom@tromey.com>
6475
6476 * tui/tui-regs.h (tui_display_registers_from)
6477 (tui_display_registers_from_line): Don't declare.
6478 * tui/tui-windata.c (tui_data_window::display_all_data)
6479 (tui_data_window::refresh_all)
6480 (tui_data_window::do_scroll_vertical): Update.
6481 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6482 from tui_display_registers_from.
6483 (tui_display_reg_element_at_line): Update.
6484 (tui_data_window::display_registers_from_line): Rename from
6485 tui_display_registers_from_line.
6486 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6487 display_registers_from_line>: New methods.
6488
f76d8b19
TT
64892019-07-17 Tom Tromey <tom@tromey.com>
6490
6491 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6492 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6493 from tui_erase_data_content.
6494 (tui_data_window::display_all_data)
6495 (tui_data_window::refresh_all)
6496 (tui_data_window::do_scroll_vertical): Update.
6497 * tui/tui-regs.c (tui_show_registers): Update.
6498 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6499 New method.
6500
b4094625
TT
65012019-07-17 Tom Tromey <tom@tromey.com>
6502
6503 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6504 declare.
6505 * tui/tui-windata.c
6506 (tui_data_window::delete_data_content_windows): Rename from
6507 tui_delete_data_content_windows.
6508 (tui_data_window::display_all_data)
6509 (tui_data_window::do_scroll_vertical): Update.
6510 * tui/tui-data.h (struct tui_data_window)
6511 <delete_data_content_windows>: New method.
6512
c223a729
TT
65132019-07-17 Tom Tromey <tom@tromey.com>
6514
6515 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6516 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6517
50daf268
TT
65182019-07-17 Tom Tromey <tom@tromey.com>
6519
6520 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6521 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6522 from tui_display_all_data.
6523 * tui/tui-win.c
6524 (tui_data_window::do_make_visible_with_new_height): Update.
6525 * tui/tui-regs.c (tui_show_registers): Update.
6526 * tui/tui-layout.c (tui_set_layout): Update.
6527 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6528 method.
6529
df5f8cab
TT
65302019-07-17 Tom Tromey <tom@tromey.com>
6531
6532 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6533 * tui/tui-windata.c (tui_display_data_from): Remove.
6534 (tui_data_window::refresh_all): Update.
6535
80cb6c27
TT
65362019-07-17 Tom Tromey <tom@tromey.com>
6537
6538 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6539 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6540 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6541 tui_display_registers_from_line.
6542 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6543 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6544 "force_display" parameter.
6545
baff0c28
TT
65462019-07-17 Tom Tromey <tom@tromey.com>
6547
6548 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6549 declare.
6550 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6551 Rename from tui_first_reg_element_no_inline.
6552 (tui_display_reg_element_at_line)
6553 (tui_display_registers_from_line): Update.
6554 * tui/tui-data.h (struct tui_data_window)
6555 <first_reg_element_no_inline>: New method.
6556
3b23c5f2
TT
65572019-07-17 Tom Tromey <tom@tromey.com>
6558
6559 * tui/tui-windata.c (tui_display_data_from)
6560 (tui_data_window::do_scroll_vertical): Update.
6561 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6562 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6563 Rename from tui_line_from_reg_element_no.
6564 (tui_display_registers_from_line): Update.
6565 * tui/tui-data.h (struct tui_data_window)
6566 <line_from_reg_element_no>: New method.
6567
0b5ec218
TT
65682019-07-17 Tom Tromey <tom@tromey.com>
6569
6570 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6571 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6572 tui_last_regs_line_no.
6573 (tui_display_reg_element_at_line)
6574 (tui_display_registers_from_line): Update.
6575 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6576 method.
6577
0807ab7b
TT
65782019-07-17 Tom Tromey <tom@tromey.com>
6579
6580 PR tui/24722:
6581 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6582 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6583 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6584 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6585 (tui_update_breakpoint_info): Likewise.
6586 * tui/tui-hooks.c (tui_event_create_breakpoint)
6587 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6588 Update.
6589
9ad7fdef
TT
65902019-07-17 Tom Tromey <tom@tromey.com>
6591
6592 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6593
5813316f
TT
65942019-07-17 Tom Tromey <tom@tromey.com>
6595
6596 * tui/tui-winsource.c (tui_update_source_window_as_is)
6597 (tui_update_source_windows_with_addr): Update.
6598 * tui/tui-source.h (tui_set_source_content)
6599 (tui_show_symtab_source): Add "win_info" parameter.
6600 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6601 parameter.
6602 (tui_show_symtab_source): Likewise.
6603
00e264e7
TT
66042019-07-17 Tom Tromey <tom@tromey.com>
6605
6606 * tui/tui-wingeneral.c
6607 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6608
06210ce4
TT
66092019-07-17 Tom Tromey <tom@tromey.com>
6610
6611 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6612 (struct tui_cmd_window) <can_scroll>: New method.
6613 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6614 method.
6615
381befee
TT
66162019-07-17 Tom Tromey <tromey@adacore.com>
6617
6618 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6619 do_field_signed>: Rename. Change type of "value".
6620 * ui-out.c (ui_out::field_signed): Rename from field_int.
6621 Change type of "value".
6622 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6623 type of "value".
6624 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6625 do_field_int. Change type of "value".
6626 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6627 do_field_int. Change type of "value".
6628 * tracepoint.c (trace_status_mi, tfind_1)
6629 (print_one_static_tracepoint_marker): Update.
6630 * thread.c (print_thread_info_1, print_selected_thread_frame):
6631 Update.
6632 * stack.c (print_frame, print_frame_info): Update.
6633 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6634 Update.
6635 * source.c (print_source_lines_base): Update.
6636 * skip.c (info_skip_command): Update.
6637 * record-btrace.c (btrace_ui_out_decode_error)
6638 (btrace_call_history_src_line): Update.
6639 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6640 Update.
6641 * progspace.c (print_program_space): Update.
6642 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6643 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6644 do_field_int. Change type of "value".
6645 * mi/mi-out.c (mi_ui_out::do_table_begin)
6646 (mi_ui_out::do_table_header): Update.
6647 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6648 type of "value".
6649 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6650 (mi_cmd_data_list_changed_registers, output_register)
6651 (mi_cmd_data_read_memory, mi_load_progress)
6652 (mi_cmd_trace_frame_collected): Update.
6653 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6654 Update.
6655 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6656 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6657 (mi_cmd_var_list_children, varobj_update_one): Update.
6658 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6659 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6660 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6661 * inferior.c (print_inferior): Update.
6662 * gdb_bfd.c (print_one_bfd): Update.
6663 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6664 Update.
6665 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6666 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6667 do_field_int. Change type of "value".
6668 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6669 do_field_int. Change type of "value".
6670 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6671 (print_one_breakpoint_location, print_it_catch_fork)
6672 (print_one_catch_fork, print_it_catch_vfork)
6673 (print_one_catch_vfork, print_it_catch_solib)
6674 (print_it_catch_exec, print_it_ranged_breakpoint)
6675 (print_mention_watchpoint, print_mention_masked_watchpoint)
6676 (bkpt_print_it, update_static_tracepoint): Update.
6677 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6678 * break-catch-syscall.c (print_it_catch_syscall): Update.
6679 * ada-tasks.c (print_ada_task_info): Update.
6680 * ada-lang.c (print_it_exception, print_mention_exception):
6681 Update.
6682
6b78c3f8
AB
66832019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6684
6685 PR breakpoints/24541
6686 * gdbarch.c: Regenerate.
6687 * gdbarch.h: Regenerate.
6688 * gdbarch.sh: Adjust return type and parameter types for
6689 'stap_adjust_register'.
6690 (i386_stap_adjust_register): Adjust signature and return new
6691 register name.
6692 * stap-probe.c (stap_parse_register_operand): Adjust use of
6693 'gdbarch_stap_adjust_register'.
6694
d72a9b85
TT
66952019-07-17 Tom Tromey <tromey@adacore.com>
6696
6697 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6698 declare VEC.
6699 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6700 std::vector.
6701 (struct s390_process_info): Add initializers.
6702 (s390_add_process): Use new.
6703 (s390_linux_nat_target::low_forget_process): Use delete.
6704 (s390_linux_nat_target::low_new_fork)
6705 (s390_linux_nat_target::stopped_by_watchpoint)
6706 (s390_linux_nat_target::low_prepare_to_resume)
6707 (s390_linux_nat_target::insert_watchpoint)
6708 (s390_linux_nat_target::insert_hw_breakpoint)
6709 (s390_linux_nat_target::remove_watchpoint)
6710 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6711
206e6c58
JB
67122019-07-16 John Baldwin <jhb@FreeBSD.org>
6713
6714 * aarch64-fbsd-nat.c: Include regcache.h.
6715 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6716 argument.
6717 (aarch64_fbsd_nat_target::fetch_registers)
6718 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6719 variable.
6720 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6721
cbde90f2
JB
67222019-07-16 John Baldwin <jhb@FreeBSD.org>
6723
6724 * fbsd-nat.c: Include gdbarch.h.
6725
07128006
TT
67262019-07-15 Tom Tromey <tromey@adacore.com>
6727
6728 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6729
1f77b012
TT
67302019-07-15 Tom Tromey <tromey@adacore.com>
6731
6732 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6733 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6734 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6735 * cli-out.c (cli_ui_out::do_field_int): New method.
6736 * ui-out.c (ui_out::field_unsigned): New method.
6737 * symfile.c (generic_load): Use field_unsigned.
6738 (print_transfer_performance): Likewise.
6739 * record-btrace.c (ui_out_field_uint): Remove.
6740 (btrace_call_history_insn_range, btrace_call_history): Use
6741 field_unsigned.
6742 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6743 field_unsigned.
6744 * ui-out.h (class ui_out) <field_unsigned>: New method.
6745 <do_field_unsigned>: Likewise.
6746
33eca680
TT
67472019-07-15 Tom Tromey <tromey@adacore.com>
6748
6749 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6750 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6751 * target.c (flash_erase_command): Use field_string.
6752 * infrun.c (print_signal_received_reason): Use field_string.
6753 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6754 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6755 field_string.
6756 * ada-tasks.c (print_ada_task_info): Use field_string.
6757
ca8d69be
TT
67582019-07-15 Tom Tromey <tromey@adacore.com>
6759
6760 * target.c (flash_erase_command): Use field_core_addr.
6761 * symfile.c (generic_load): Use field_core_addr.
6762 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6763 Use field_core_addr.
6764 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6765 field_core_addr.
6766
0d4e84ed
AB
67672019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6768
6769 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6770 value if its desired type is smaller than a CORE_ADDR and signed.
6771
9a49df9d
AB
67722019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6773
6774 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6775 of changes to field names, and use new is_reference field to
6776 decide if a property is a reference or not.
6777 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6778 field.
6779 (struct dwarf2_property_baton): Update header comment, rename
6780 'referenced_type' to 'property_type' and update comments.
6781 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6782 default property type, store in property baton, update to take
6783 accound of renamed field.
6784 (read_func_scope): Update call to attr_to_dynamic_prop.
6785 (read_array_type): Likewise.
6786 (dwarf2_per_cu_addr_sized_int_type): New function.
6787 (read_subrange_index_type): Move type finding code to
6788 dwarf2_per_cu_addr_sized_int_type.
6789 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6790 (dwarf2_per_cu_addr_type): New function.
6791 (set_die_type): Update calls to attr_to_dynamic_prop.
6792
b86352cf
AB
67932019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6794
6795 * dwarf2read.c (read_subrange_index_type): New function.
6796 (read_subrange_type): Move code into new function and call it.
6797 * gdbtypes.c (create_range_type): Add some asserts.
6798
603490bf
AB
67992019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6800
6801 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6802 update return statements.
6803 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6804 declaration, and update comment to match.
6805 * gdbtypes.c (resolve_dynamic_array): Update call to
6806 dwarf2_evaluate_property to match new return type.
6807
592f9d27
AB
68082019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6809
6810 * valarith.c (value_subscripted_rvalue): Change lowerbound
6811 parameter type from int to LONGEST.
6812 * value.h (value_subscripted_rvalue): Likewise in declaration.
6813
60cfcb20
AB
68142019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6815
6816 * cli/cli-utils.c (info_print_command_completer): New function.
6817 * cli/cli-utils.h: Add 'completer.h' include, and forward
6818 declaration for 'struct cmd_list_element'.
6819 (info_print_command_completer): Declare.
6820 * stack.c (_initialize_stack): Add completer for 'info locals' and
6821 'info args'.
6822 * symtab.c (_initialize_symtab): Add completer for 'info
6823 variables' and 'info functions'.
6824 * NEWS: Mention completion for additional info commands.
6825
b16507e0
AB
68262019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6827
6828 * cli/cli-utils.c (extract_info_print_args): Delete.
6829 (extract_arg_maybe_quoted): Delete.
6830 (info_print_options_defs): New variable.
6831 (make_info_print_options_def_group): New function.
6832 (extract_info_print_options): Define new function.
6833 * cli/cli-utils.h (extract_info_print_args): Delete.
6834 (struct info_print_options): New structure.
6835 (extract_info_print_options): Declare new function.
6836 * stack.c (info_locals_command): Update to use new
6837 extract_info_print_options, also add a header comment.
6838 (info_args_command): Likewise.
6839 * symtab.c (info_variables_command): Likewise.
6840 (info_functions_command): Likewise.
6841
021d8588
AB
68422019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6843
6844 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6845 to extract string arguments.
6846 * common/common-utils.c (extract_string_maybe_quoted): New function.
6847 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6848
b777eb6d
TT
68492019-07-11 Tom Tromey <tromey@adacore.com>
6850
6851 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6852 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6853 * top.h (gdbinit): Don't declare.
6854 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6855 into...
6856 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6857 * top.c (gdb_init): Don't call init_cli_cmds.
6858 (gdbinit): Remove.
6859 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6860
72ee03ff
TT
68612019-07-11 Tom Tromey <tromey@adacore.com>
6862
6863 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6864 after it has been moved.
6865
00db9531
SM
68662019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6867
6868 * valops.c (value_must_coerce_to_target): Change return type to
6869 bool.
6870 * value.h (value_must_coerce_to_target): Likewise.
6871
f2478a7e
SM
68722019-07-10 Simon Marchi <simon.marchi@efficios.com>
6873
6874 * breakpoint.c (is_hardware_watchpoint): Remove
6875 forward-declaration.
6876 (is_masked_watchpoint): Change return type to bool.
6877 (is_tracepoint): Likewise.
6878 (is_breakpoint): Likewise.
6879 (is_hardware_watchpoint): Likewise.
6880 (is_watchpoint): Likewise.
6881 (is_no_memory_software_watchpoint): Likewise.
6882 (is_catchpoint): Likewise.
6883 (breakpoint_1): Make FILTER parameter's return type bool.
6884 is_masked_watchpoint): Change return type to bool.
6885 (save_breakpoints): Make FILTER parameter's return type bool.
6886 * breakpoint.h (is_breakpoint): Change return type to bool.
6887 (is_watchpoint): Likewise.
6888 (is_catchpoint): Likewise.
6889 (is_tracepoint): Likewise.
6890
0d12e84c
TT
68912019-07-10 Tom Tromey <tom@tromey.com>
6892
6893 * defs.h: Don't include gdbarch.h.
6894 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6895 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6896 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6897 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6898 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6899 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6900 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6901 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6902 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6903 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6904 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6905 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6906 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6907 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6908 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6909 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6910 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6911 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6912 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6913 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6914 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6915 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6916 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6917 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6918 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6919 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6920 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6921
f06f1252
TT
69222019-07-10 Tom Tromey <tromey@adacore.com>
6923
6924 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6925 * breakpoint.c (init_ada_exception_breakpoint): Register as
6926 bp_catchpoint.
6927 (print_one_breakpoint_location, print_one_breakpoint): Use
6928 is_ada_exception_catchpoint.
6929 * ada-lang.c (class ada_catchpoint_location): Pass
6930 bp_loc_software_breakpoint to bp_location constructor.
6931 (is_ada_exception_catchpoint): New function.
6932
7a5d944b
TT
69332019-07-10 Tom Tromey <tromey@adacore.com>
6934
6935 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6936 VEC.
6937 (struct arm_exidx_entry): New method operator<.
6938 (struct arm_exidx_data) <section_maps>: Change type.
6939 (arm_exidx_data_free): Remove.
6940 (arm_exidx_data_key): Change type. Move lower.
6941 (arm_exidx_new_objfile): Update.
6942 (arm_compare_exidx_entries): Remove.
6943 (arm_find_exidx_entry, _initialize_arm_tdep)
6944
48c66e1d
TT
69452019-07-10 Tom Tromey <tromey@adacore.com>
6946
6947 * solib-spu.c (ocl_program_data_key): Change type.
6948 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6949 Update.
6950
a269fbf1
TT
69512019-07-10 Tom Tromey <tromey@adacore.com>
6952
6953 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6954 (struct solib_aix_inferior_data) <library_list>: Change type.
6955 (solib_aix_inferior_data_handle): Change type.
6956 (get_solib_aix_inferior_data): Update.
6957 (solib_aix_free_library_list): Remove.
6958 (library_list_start_library): Update.
6959 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6960 return type.
6961 (solib_aix_get_library_list)
6962 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6963 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6964
c294730c
TT
69652019-07-10 Tom Tromey <tromey@adacore.com>
6966
6967 * solib-dsbt.c (struct dsbt_info): Add initializers.
6968 (solib_dsbt_pspace_data): Change type.
6969 (dsbt_pspace_data_cleanup): Remove.
6970 (get_dsbt_info, _initialize_dsbt_solib): Update.
6971
9d52077d
TT
69722019-07-10 Tom Tromey <tromey@adacore.com>
6973
6974 * spu-tdep.c (spu_overlay_data): Change type.
6975 (spu_get_overlay_table, spu_overlay_new_objfile)
6976 (_initialize_spu_tdep): Update.
6977
22a20dca
TT
69782019-07-10 Tom Tromey <tromey@adacore.com>
6979
6980 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6981 destructor.
6982 (dbx_objfile_data_key): Change type and declare later.
6983 (DBX_SYMFILE_INFO): Rewrite.
6984 * dbxread.c (dbx_objfile_data_key): Change type.
6985 (dbx_symfile_init): Update.
6986 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6987 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6988 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6989
cb60f420
TT
69902019-07-10 Tom Tromey <tromey@adacore.com>
6991
6992 * jit.c (jit_program_space_key): Change type. Move lower.
6993 (get_jit_program_space_data): Update.
6994 (jit_program_space_data_cleanup): Remove.
6995 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6996 Update.
6997 (struct jit_program_space_data): Add initializers.
6998
51df2ae3
TT
69992019-07-10 Tom Tromey <tromey@adacore.com>
7000
7001 * solib-darwin.c (struct darwin_info): Add initializers.
7002 (solib_darwin_pspace_data): Change type.
7003 (darwin_pspace_data_cleanup): Remove.
7004 (get_darwin_info, _initialize_darwin_solib): Update.
7005
18101a35
TT
70062019-07-10 Tom Tromey <tromey@adacore.com>
7007
7008 * remote-sim.c (struct sim_inferior_data): Add initializers,
7009 constructor, and destructor.
7010 (sim_inferior_data_key): Change type. Move lower.
7011 (check_for_duplicate_sim_descriptor): Update.
7012 (get_sim_inferior_data): Use new. Update.
7013 (~sim_inferior_data_cleanup): Rename from
7014 sim_inferior_data_cleanup. Simplify.
7015 (gdbsim_close_inferior, simulator_command)
7016 (sim_command_completer, _initialize_remote_sim): Update.
7017 (next_pid, INITIAL_PID): Move earlier.
7018
05b08ac1
TT
70192019-07-10 Tom Tromey <tromey@adacore.com>
7020
7021 * python/python-internal.h (create_thread_object): Return
7022 gdbpy_ref.
7023 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7024 * python/py-inferior.c (struct threadlist_entry): Add
7025 constructor.
7026 <thread_obj>: Now a gdbpy_ref.
7027 (thread_to_thread_object): Update.
7028 (add_thread_object): Use new.
7029 (delete_thread_object): Use delete.
7030 (infpy_threads): Update.
7031 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7032 GIL.
7033
32372d80
TT
70342019-07-10 Tom Tromey <tromey@adacore.com>
7035
7036 * valops.c (value_cast): Specialize error message for Ada.
7037
5c458ae8
SM
70382019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7039
7040 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7041
4c462cb0
SM
70422019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7043
7044 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7045 bpstat_should_step): Return bool, adjust comments.
7046 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7047 bpstat_should_step): Likewise.
7048
89abbcc2
AH
70492019-07-10 Alan Hayward <alan.hayward@arm.com>
7050
7051 * features/Makefile: Use feature target descriptions for Arm.
7052 * features/arm/arm-core.c: Generate new file.
7053 * features/arm/arm-fpa.c: Likewise.
7054 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7055 * features/arm/arm-m-profile.c: Likewise.
7056 * features/arm/arm-vfpv2.c: Likewise.
7057 * features/arm/arm-vfpv3.c: Likewise.
7058 * features/arm/xscale-iwmmxt.c: Likewise.
7059 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7060
166a82be
AH
70612019-07-10 Alan Hayward <alan.hayward@arm.com>
7062
7063 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7064 ptrace earlier.
7065
9fb4c7e9
AH
70662019-07-10 Alan Hayward <alan.hayward@arm.com>
7067
7068 * features/aarch64-pauth.c: Regenerate.
7069
e2d0f980
SM
70702019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7071
7072 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7073 bool.
7074 (bpstat_what): Use false instead of 0.
7075
a38118e5
PA
70762019-07-09 Pedro Alves <palves@redhat.com>
7077
7078 * break-catch-throw.c (is_exception_catchpoint): New.
7079 * breakpoint.c (print_one_breakpoint_location): New parameter
7080 'raw_loc'. Handle it. Use
7081 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7082 looking at the breakpoint's type.
7083 (print_one_breakpoint): If handling "maint info breakpoints", also
7084 print locations of exception catchpoints.
7085 * breakpoint.h (is_exception_catchpoint): Declare.
7086
cb1e4e32
PA
70872019-07-09 Pedro Alves <palves@redhat.com>
7088
7089 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7090 "addr" field.
7091 (allocate_location_exception_catchpoint): New.
7092 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7093 (initialize_throw_catchpoint_ops): Install
7094 allocate_location_exception_catchpoint as allocate_location
7095 method.
7096 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7097 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7098 bp_loc_other.
7099 (breakpoint_address_is_meaningful): Delete.
7100 (bl_address_is_meaningful): New.
7101 (breakpoint_locations_match): Adjust comment.
7102 (bp_location_from_bp_type): New, factored out of...
7103 (bp_location::bp_location(breakpoint *)): ... this.
7104 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7105 factored out of...
7106 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7107 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7108 breakpoint_address_is_meaningful.
7109 (bp_locations_compare): Adjust comment.
7110 (update_global_location_list): Use bl_address_is_meaningful
7111 instead of breakpoint_address_is_meaningful.
7112 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7113 explicit.
7114 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7115 * python/py-breakpoint.c (bppy_get_location): No longer check
7116 whether location is null.
7117
b58a68fe
PA
71182019-07-09 Pedro Alves <palves@redhat.com>
7119
7120 PR c++/15468
7121 * breakpoint.c (print_one_breakpoint_location): Remove
7122 single-location assert.
7123
268a13a5
TT
71242019-07-09 Tom Tromey <tom@tromey.com>
7125
7126 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7127 * configure: Rebuild.
7128 * configure.ac: Change common to gdbsupport.
7129 * gdbsupport: Rename from common.
7130 * acinclude.m4: Change common to gdbsupport.
7131 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7132 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7133 gdbsupport.
7134 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7135 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7136 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7137 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7138 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7139 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7140 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7141 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7142 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7143 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7144 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7145 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7146 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7147 coff-pe-read.c, command.h, compile/compile-c-support.c,
7148 compile/compile-c.h, compile/compile-cplus-symbols.c,
7149 compile/compile-cplus-types.c, compile/compile-cplus.h,
7150 compile/compile-loc2c.c, compile/compile.c, completer.c,
7151 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7152 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7153 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7154 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7155 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7156 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7157 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7158 features/aarch64-core.c, features/aarch64-fpu.c,
7159 features/aarch64-pauth.c, features/aarch64-sve.c,
7160 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7161 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7162 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7163 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7164 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7165 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7166 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7167 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7168 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7169 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7170 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7171 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7172 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7173 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7174 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7175 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7176 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7177 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7178 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7179 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7180 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7181 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7182 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7183 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7184 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7185 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7186 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7187 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7188 minsyms.c, mips-linux-tdep.c, namespace.h,
7189 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7190 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7191 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7192 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7193 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7194 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7195 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7196 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7197 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7198 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7199 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7200 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7201 procfs.c, producer.c, progspace.h, psymtab.h,
7202 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7203 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7204 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7205 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7206 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7207 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7208 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7209 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7210 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7211 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7212 target-memory.c, target.c, target.h, target/waitstatus.c,
7213 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7214 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7215 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7216 unittests/array-view-selftests.c,
7217 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7218 unittests/common-utils-selftests.c,
7219 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7220 unittests/format_pieces-selftests.c,
7221 unittests/function-view-selftests.c,
7222 unittests/lookup_name_info-selftests.c,
7223 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7224 unittests/mkdir-recursive-selftests.c,
7225 unittests/observable-selftests.c,
7226 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7227 unittests/parse-connection-spec-selftests.c,
7228 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7229 unittests/scoped_fd-selftests.c,
7230 unittests/scoped_mmap-selftests.c,
7231 unittests/scoped_restore-selftests.c,
7232 unittests/string_view-selftests.c, unittests/style-selftests.c,
7233 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7234 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7235 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7236 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7237 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7238 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7239
5b0e2db4
AB
72402019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7241
7242 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7243 bool value.
7244 (decode_digits_ordinary): Set explicit_line field in sal.
7245 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7246 symtab_and_line that was set on an explicit line number in
7247 assembler code. Do always update the recorded symtab and line if
7248 we do skip the prologue.
7249
0ba852ab
AB
72502019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7251
7252 * breakpoint.c (set_breakpoint_location_function): Remove
7253 explicit_loc parameter.
7254 (momentary_breakpoint_from_master): Update call to
7255 set_breakpoint_location_function.
7256 (add_location_to_breakpoint): Likewise.
7257
b3a7d171
AB
72582019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7259
7260 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7261 required features based on default bfd type when no specific bfd
7262 is present.
7263
1f6f6e21
PW
72642019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7265
7266 * NEWS: Mention that GDB printf and eval commands can now print
7267 C-style and Ada-style convenience var strings without
7268 calling the inferior.
7269 * printcmd.c (printf_c_string): Locally print GDB internal var
7270 instead of transiting via the inferior.
7271 (printf_wide_c_string): Likewise.
7272
72732019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7274
5862c886 7275 PR breakpoints/25011
ea142fbf
AH
7276 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7277
0598af48
TT
72782019-07-04 Tom Tromey <tom@tromey.com>
7279
7280 PR tui/24724:
7281 * tui/tui-winsource.c (tui_clear_source_content): Update.
7282 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7283 (tui_update_breakpoint_info): Update.
7284 (tui_set_exec_info_content): Update.
7285 * tui/tui-source.c (tui_set_source_content_nil): Update.
7286 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7287 has_break.
7288 * tui/tui-data.h (enum tui_bp_flag): New.
7289 (tui_bp_flags): New enum flags type.
7290 (struct tui_source_element) <break_mode>: Change type. Rename
7291 from has_break.
7292 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7293 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7294 constants.
7295 * tui/tui-winsource.h: Fix comment.
7296
350fab54
AH
72972019-07-04 Alan Hayward <alan.hayward@arm.com>
7298
7299 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7300 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7301 (store_fpregs_to_thread)
7302 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7303 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7304 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7305 (IWMMXT_REGS_SIZE): Add define.
7306 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7307 (fetch_vfp_regs, store_vfp_regs)
7308 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7309 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7310
f0452268
AH
73112019-07-04 Alan Hayward <alan.hayward@arm.com>
7312
7313 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7314 defines.
7315 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7316 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7317 (ARM_INT_REGISTER_SIZE): ...to this.
7318 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7319 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7320 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7321 (arm_linux_collect_gregset, supply_nwfpe_register)
7322 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7323 defines.
7324 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7325 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7326 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7327 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7328 (arm_return_in_memory, arm_store_return_value)
7329 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7330 (arm_record_ld_st_multiple): Likewise.
7331 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7332 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7333
e935475c
AH
73342019-07-04 Alan Hayward <alan.hayward@arm.com>
7335
7336 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7337 AARCH64_DISPLACED_MODIFIED_INSNS.
7338 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7339 (aarch64_displaced_step_copy_insn): Likewise.
7340 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7341 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7342 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7343 ARM_DISPLACED_MODIFIED_INSNS.
7344 * arm-tdep.c (arm_gdbarch_init): Likewise.
7345 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7346 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7347 (struct arm_displaced_step_closure): Use
7348 ARM_DISPLACED_MODIFIED_INSNS.
7349
df0bb381
AH
73502019-07-04 Alan Hayward <alan.hayward@arm.com>
7351
7352 * features/Makefile: Remove unused xml files.
7353 * features/aarch64.xml: Remove.
7354 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7355 * features/i386/amd64-avx-avx512.xml: Remove.
7356 * features/i386/amd64-avx-linux.xml: Remove.
7357 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7358 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7359 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7360 * features/i386/amd64-avx-mpx.xml: Remove.
7361 * features/i386/amd64-avx.xml: Remove.
7362 * features/i386/amd64-linux.xml: Remove.
7363 * features/i386/amd64-mpx-linux.xml: Remove.
7364 * features/i386/amd64-mpx.xml: Remove.
7365 * features/i386/amd64.xml: Remove.
7366 * features/i386/i386-avx-avx512-linux.xml: Remove.
7367 * features/i386/i386-avx-avx512.xml: Remove.
7368 * features/i386/i386-avx-linux.xml: Remove.
7369 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7370 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7371 * features/i386/i386-avx-mpx-linux.xml: Remove.
7372 * features/i386/i386-avx-mpx.xml: Remove.
7373 * features/i386/i386-avx.xml: Remove.
7374 * features/i386/i386-linux.xml: Remove.
7375 * features/i386/i386-mmx-linux.xml: Remove.
7376 * features/i386/i386-mmx.xml: Remove.
7377 * features/i386/i386-mpx-linux.xml: Remove.
7378 * features/i386/i386-mpx.xml: Remove.
7379 * features/i386/i386.xml: Remove.
7380 * features/i386/x32-avx-avx512-linux.xml: Remove.
7381 * features/i386/x32-avx-linux.xml: Remove.
7382 * features/i386/x32-linux.xml: Remove.
7383
edd6266a
AH
73842019-07-04 Alan Hayward <alan.hayward@arm.com>
7385
7386 * regformats/aarch64.dat: Remove.
7387 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7388 * regformats/i386/amd64-avx-linux.dat: Remove.
7389 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7390 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7391 * regformats/i386/amd64-linux.dat: Remove.
7392 * regformats/i386/amd64-mpx-linux.dat: Remove.
7393 * regformats/i386/amd64.dat: Remove.
7394 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7395 * regformats/i386/i386-avx-linux.dat: Remove.
7396 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7397 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7398 * regformats/i386/i386-linux.dat: Remove.
7399 * regformats/i386/i386-mmx-linux.dat: Remove.
7400 * regformats/i386/i386-mpx-linux.dat: Remove.
7401 * regformats/i386/i386.dat: Remove.
7402 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7403 * regformats/i386/x32-avx-linux.dat: Remove.
7404 * regformats/i386/x32-linux.dat: Remove.
7405
2b40fda7
AH
74062019-07-04 Alan Hayward <alan.hayward@arm.com>
7407
7408 * aarch64-tdep.c: Remove xml self tests.
7409 * amd64-linux-tdep.c: Likewise.
7410 * amd64-tdep.c: Likewise.
7411 * i386-linux-tdep.c: Likewise.
7412 * i386-tdep.c: Likewise.
7413
5f4ba3e7
PA
74142019-07-03 Pedro Alves <palves@redhat.com>
7415
7416 PR cli/24732
7417 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7418 (pipe_cmd_option_defs): New.
7419 (make_pipe_cmd_options_def_group): New.
7420 (pipe_command): Use gdb::option::process_options.
7421 (pipe_command_completer): New function.
7422 (_initialize_cli_cmds): Install completer for "pipe" command.
7423
3d9be6f5
PA
74242019-07-03 Pedro Alves <palves@redhat.com>
7425
7426 * cli/cli-option.c (union option_value) <string>: New field.
7427 (struct option_def_and_value): Add ctor, move ctor, dtor and
7428 use DISABLE_COPY_AND_ASSIGN.
7429 (option_def_and_value::clear_value): New.
7430 (parse_option, save_option_value_in_ctx, get_val_type_str)
7431 (add_setshow_cmds_for_options): Handle var_string.
7432 * cli-option.h (union option_def::var_address) <string>: New
7433 field.
7434 (struct string_option_def): New.
7435 * maint-test-options.c (struct test_options_opts): Add default
7436 ctor and use DISABLE_COPY_AND_ASSIGN.
7437 <string_opt>: New field.
7438 (test_options_opts::~test_options_opts): New.
7439 (test_options_opts::dump): Also dump "-string".
7440 (test_options_option_defs): Install "string.
7441
41fc454c
PA
74422019-07-03 Pedro Alves <palves@redhat.com>
7443
7444 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7445 option_value with a null enumeration.
7446 (complete_options): Save the option values in the context.
7447 (save_option_value_in_ctx): New, factored out from ...
7448 (process_options): ... here.
7449 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7450 of the function.
7451 * maint-test-options.c (test_options_opts::dump): New, factored
7452 out from ...
7453 (maintenance_test_options_command_mode): ... here.
7454 (maintenance_test_options_command_completion_result): Delete.
7455 (maintenance_test_options_command_completion_text): Update
7456 comment.
7457 (maintenance_show_test_options_completion_result): Change
7458 prototype. Just print
7459 maintenance_test_options_command_completion_text.
7460 (save_completion_result): New.
7461 (maintenance_test_options_completer_mode): Pass options context to
7462 complete_options, and then save a dump.
7463 (_initialize_maint_test_options): Use add_cmd to install "maint
7464 show test-options-completion-result".
7465
fdbc9870
PA
74662019-07-03 Pedro Alves <palves@redhat.com>
7467
7468 * NEWS (New commands): Mention "with" and "maint with".
7469 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7470 (with_command, with_command_completer): New.
7471 (pipe_command): Adjust to new repeat_previous
7472 interface.
7473 (_initialize_cli_cmds): Install the "with" command and its "w"
7474 alias.
7475 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7476 declarations.
7477 * cli/cli-setshow.c (parse_cli_var_uinteger)
7478 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7479 argument strings for all var_types.
7480 (get_setshow_command_value_string): New, factored out from ...
7481 (do_show_command): ... this.
7482 * cli/cli-setshow.h: Include <string>.
7483 (get_setshow_command_value_string): Declare.
7484 * command.h (repeat_previous): Now returns const char *. Adjust
7485 comment.
7486 * maint.c: Include "cli/cli-cmds.h".
7487 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7488 (_initialize_maint_cmds): Register the "maintenance with" command.
7489 * top.c (repeat_previous): Move bits from pipe_command here:
7490 Return the saved command line, if any; error out if there's no
7491 command to relaunch.
7492
c6ac8931
PA
74932019-07-03 Pedro Alves <palves@redhat.com>
7494
7495 * NEWS (New commands): Mention "maint set/show test-settings"
7496 instead of "maint test-settings".
7497 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7498 (maintenance_test_settings_set_list): Rename to ...
7499 (maintenance_set_test_settings_list): ... this.
7500 (maintenance_test_settings_show_list): Rename to ...
7501 (maintenance_show_test_settings_list): ... this.
7502 (maintenance_test_settings_cmd): Delete.
7503 (maintenance_test_settings_set_cmd): ...
7504 (maintenance_set_test_settings_cmd): ... this.
7505 (maintenance_test_settings_show_cmd): ...
7506 (maintenance_show_test_settings_cmd): ... this.
7507 (maintenance_test_settings_show_value_cmd):
7508 (maintenance_show_test_settings_value_cmd): ... this.
7509 (_initialize_maint_test_settings): No longer install the "maint
7510 test-settings" prefix command. Rename "maint test-settings set"
7511 to "maint set test-settings", and "maint test-settings show" to
7512 "maint show test-settings". Adjust all subcommands.
7513
d1fcf2fd
PA
75142019-07-03 Pedro Alves <palves@redhat.com>
7515
7516 * maint-test-settings.c: Fix file's intro comment. Replace all
7517 references to "test-options" with references to "test-settings",
7518 in comments.
7519
970f9d09
PA
75202019-07-03 Pedro Alves <palves@redhat.com>
7521
7522 * maint-test-settings.c (maintenance_test_settings_xxx)
7523 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7524 New.
7525 (maintenance_test_settings_enums): Use them.
7526 (maintenance_test_settings_enum): Default to
7527 maintenance_test_settings_xxx.
7528 (_initialize_maint_test_settings): Initialize
7529 MAINTENANCE_TEST_SETTINGS_FILENAME.
7530
f3869b1a
SM
75312019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7532
7533 * breakpoint.h (remove_breakpoints_inf): Change return type to
7534 void, move function documentation here.
7535 * breakpoint.c (remove_breakpoints_inf): Change return type to
7536 void, move function documentation to header.
7537
54d66006
PA
75382019-07-02 Pedro Alves <palves@redhat.com>
7539
7540 * NEWS (Completion improvements): Mention "info threads".
7541 * thread.c (struct info_threads_opts, info_threads_option_defs)
7542 (make_info_threads_options_def_group): New.
7543 (info_threads_command): Use gdb::option::process_options.
7544 (info_threads_command_completer): New.
7545 (_initialize_thread): Use gdb::option::build_help to build the
7546 help text for "info threads".
7547
854f6088
SM
75482019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7549
7550 * defs.h (generic_load): Move from here...
7551 * symfile.h (generic_load): ... to here. Rename name parameter
7552 to args.
7553 * symfile.c (generic_load): Add comment.
7554
54ee4252
TT
75552019-07-01 Tom Tromey <tromey@adacore.com>
7556
7557 * dwarf2read.c
7558 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7559 declaration of without_params. Fix formatting.
7560
65392b3e
TT
75612019-07-01 Tom Tromey <tromey@adacore.com>
7562
7563 * ada-exp.y (find_primitive_type): Update.
7564 * ada-lang.h (ada_lookup_symbol): Update.
7565 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7566 parameter.
7567 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7568
7d7571f0
SDJ
75692019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7570
7571 PR breakpoints/24541
7572 * gdbarch.c: Regenerate.
7573 * gdbarch.h: Regenerate.
7574 * gdbarch.sh: Add 'stap_adjust_register'.
7575 * i386-tdep.c: Include '<unordered_set>'.
7576 (i386_stap_adjust_register): New function.
7577 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7578 * stap-probe.c (stap_parse_register_operand): Call
7579 'gdbarch_stap_adjust_register'.
7580
5af5392a
SDJ
75812019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7582
7583 PR python/24742
7584 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7585 * python/python.c (do_start_initialization): Use 'xmalloc'
7586 instead of 'PyMem_Malloc'.
7587
10d06d82
TT
75882019-06-28 Tom Tromey <tromey@adacore.com>
7589
7590 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7591 for Ada.
7592
1b7f24cd
TT
75932019-06-27 Tom Tromey <tromey@adacore.com>
7594
7595 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7596 objfile_key.
7597 (arm_find_mapping_symbol, arm_record_special_symbol)
7598 (_initialize_arm_tdep): Update.
7599 (arm_objfile_data_free): Remove.
7600
3d507ff2
TT
76012019-06-27 Tom Tromey <tromey@adacore.com>
7602
7603 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7604 to cp_print_static_field.
7605
762c164d
TT
76062019-06-26 Tom Tromey <tromey@adacore.com>
7607
7608 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7609 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7610 declare.
7611
aa2f9bcf
AH
76122019-06-26 Alan Hayward <alan.hayward@arm.com>
7613
7614 * features/aarch64-core.c (create_feature_aarch64_core):
7615 Regenerate.
7616 * features/aarch64-core.xml: Add cpsr flags.
7617
3426ae57
AH
76182019-06-26 Alan Hayward <alan.hayward@arm.com>
7619
7620 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7621 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7622
4838e44c
SM
76232019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7624
7625 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7626 field.
7627 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7628 use.
7629 (arm_record_special_symbol): Don't insert new symbol in sorted
7630 position, push it at the end.
7631
54cc7474
SM
76322019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7633
7634 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7635 (arm_mapping_symbol_s): Remove.
7636 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7637 (arm_mapping_symbol_vec): New typedef.
7638 (struct arm_per_objfile): Add constructor.
7639 <section_maps>: Change type to
7640 std::unique_ptr<arm_mapping_symbol_vec[]>.
7641 (arm_compare_mapping_symbols): Remove.
7642 (arm_find_mapping_symbol): Adjust to section_maps type change.
7643 (arm_objfile_data_free): Call delete on arm_per_objfile.
7644 (arm_record_special_symbol): Adjust to section_maps type change.
7645 Allocate arm_per_objfile with new.
7646
b65b566c
PW
76472019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7648
7649 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7650 with the command prefix.
7651
c2fc64f5
TT
76522019-06-25 Tom Tromey <tom@tromey.com>
7653
7654 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7655 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7656
fb54fa76
TT
76572019-06-25 Tom Tromey <tom@tromey.com>
7658
7659 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7660 type.
7661 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7662 protected.
7663
f7952c57
TT
76642019-06-25 Tom Tromey <tom@tromey.com>
7665
7666 * tui/tui-winsource.c
7667 (tui_source_window_base::set_is_exec_point_at): Add check against
7668 LOA_ADDRESS.
7669
17568d78
TT
76702019-06-25 Tom Tromey <tom@tromey.com>
7671
7672 * tui/tui-source.c (tui_set_source_content): Don't check before
7673 xfree.
7674 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7675
53e7cdba
TT
76762019-06-25 Tom Tromey <tom@tromey.com>
7677
7678 * tui/tui-winsource.h (tui_update_source_window_as_is)
7679 (tui_alloc_source_buffer, tui_line_is_displayed)
7680 (tui_addr_is_displayed): Change type of win_info.
7681 * tui/tui-winsource.c (tui_update_source_window_as_is)
7682 (tui_clear_source_content, tui_show_source_line)
7683 (tui_show_source_content, tui_source_window_base::refill)
7684 (tui_source_window_base::set_is_exec_point_at)
7685 (tui_source_window_base::set_is_exec_point_at)
7686 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7687 (tui_alloc_source_buffer, tui_line_is_displayed)
7688 (tui_addr_is_displayed): Change type of win_info. Update.
7689 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7690 (tui_source_window_base::do_make_visible_with_new_height):
7691 Update.
7692 * tui/tui-source.c (tui_set_source_content)
7693 (tui_set_source_content_nil)
7694 (tui_source_window::do_scroll_vertical): Update.
7695 * tui/tui-layout.c (show_layout): Update.
7696 * tui/tui-disasm.c (tui_set_disassem_content)
7697 (tui_disasm_window::do_scroll_vertical): Update.
7698 * tui/tui-data.h (tui_win_content): Remove.
7699 (struct tui_gen_win_info) <content, content_size>: Remove.
7700 (struct tui_source_element): Add initializers and destructor.
7701 (union tui_which_element, struct tui_win_element): Remove.
7702 (struct tui_source_window_base) <content>: New field.
7703 (struct tui_data_window): Remove destructor.
7704 (tui_alloc_content, tui_free_win_content)
7705 (tui_free_all_source_wins_content): Don't declare.
7706 * tui/tui-data.c (tui_initialize_static_data): Update.
7707 (init_content_element, tui_alloc_content): Remove.
7708 (~tui_gen_win_info): Update.
7709 (~tui_data_window, tui_free_all_source_wins_content)
7710 (tui_free_win_content, free_content, free_content_elements):
7711 Remove.
7712
7908abbf
TT
77132019-06-25 Tom Tromey <tom@tromey.com>
7714
7715 * tui/tui-winsource.h (tui_clear_source_content)
7716 (tui_erase_source_content, tui_show_source_content): Change type
7717 of win_info.
7718 * tui/tui-winsource.c (tui_clear_source_content)
7719 (tui_erase_source_content, tui_show_source_content): Change type
7720 of win_info.
7721 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7722 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7723 win_info.
7724 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7725 win_info.
7726 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7727
02c28df0
TT
77282019-06-25 Tom Tromey <tom@tromey.com>
7729
7730 * tui/tui-winsource.c (tui_clear_source_content)
7731 (tui_source_window_base::set_is_exec_point_at): Update.
7732 * tui/tui-source.c (tui_set_source_content_nil): Update.
7733 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7734 a bool.
7735 * tui/tui-data.c (init_content_element): Update.
7736
6658b1bf
TT
77372019-06-25 Tom Tromey <tom@tromey.com>
7738
7739 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7740 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7741 * tui/tui-layout.c (init_and_make_win): Update.
7742 * tui/tui.h (enum tui_win_type): Update.
7743 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7744 tui_win_is_auxillary.
7745 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7746 tui_win_is_auxillary.
7747
21e1c91e
TT
77482019-06-25 Tom Tromey <tom@tromey.com>
7749
7750 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7751 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7752 (tui_delete_data_content_windows, tui_display_all_data)
7753 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7754 Update.
7755 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7756 * tui/tui-regs.c (tui_last_regs_line_no)
7757 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7758 (tui_show_registers): Update.
7759 (tui_show_register_group): Return void. Update.
7760 (tui_display_registers_from, tui_display_reg_element_at_line)
7761 (tui_display_registers_from_line, tui_check_register_values):
7762 Update.
7763 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7764 member.
7765 (struct tui_data_window) <regs_content>: Now a std::vector.
7766 <regs_content_count>: Remove.
7767 (tui_add_content_elements, tui_free_data_content): Don't declare.
7768 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7769 (init_content_element): Remove DATA_WIN case. Add assert.
7770 (tui_add_content_elements): Remove.
7771 (tui_data_window): Update.
7772 (tui_free_data_content): Remove.
7773 (free_content_elements): Remove DATA_WIN case.
7774
115ac53b
TT
77752019-06-25 Tom Tromey <tom@tromey.com>
7776
7777 * tui/tui-data.c (tui_data_item_window): Update.
7778 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7779 * tui/tui-windata.c (tui_display_all_data)
7780 (tui_display_data_from_line): Update.
7781 (tui_check_data_values): Remove.
7782 * tui/tui-regs.c (tui_show_register_group)
7783 (tui_display_reg_element_at_line): Update.
7784 * tui/tui-hooks.c (tui_register_changed)
7785 (tui_refresh_frame_and_register_information): Call
7786 tui_check_register_values.
7787 * tui/tui-data.h (struct tui_data_window) <data_content,
7788 data_content_count, data_type>: Remove.
7789 (enum tui_data_type): Remove.
7790
7791 * tui/tui-data.c (tui_data_window::clear_detail)
7792 (~tui_data_window): Update.
7793
eaf9738b
TT
77942019-06-25 Tom Tromey <tom@tromey.com>
7795
7796 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7797 declare.
7798 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7799 Rename from tui_first_data_item_displayed. Update.
7800 (tui_data_window::refresh_all)
7801 (tui_data_window::do_scroll_vertical): Update.
7802 * tui/tui-data.h (struct tui_data_window)
7803 <first_data_item_displayed>: Declare new method.
7804
31ca4723
TT
78052019-06-25 Tom Tromey <tom@tromey.com>
7806
7807 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7808 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7809 contents...
7810 (tui_initialize_static_data): ...here.
7811
41bcff7f
TT
78122019-06-25 Tom Tromey <tom@tromey.com>
7813
7814 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7815 (tui_display_registers_from, tui_check_register_values): Update.
7816 (tui_display_register): Remove win_info parameter; update.
7817 (tui_get_register): Change type of parameters.
7818 * tui/tui-data.h (struct tui_data_element): Remove.
7819 (union tui_which_element) <data>: Remove.
7820 <data_window>: Change type.
7821 (struct tui_data_item_window): New.
7822 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7823 case. Add assert.
7824 (~tui_data_item_window): New destructor.
7825 (free_content_elements): Remove DATA_ITEM_WIN case.
7826
d2802c33
TT
78272019-06-25 Tom Tromey <tom@tromey.com>
7828
7829 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7830 Remove.
7831
dd835f8b
TT
78322019-06-25 Tom Tromey <tom@tromey.com>
7833
7834 * tui/tui-data.h (struct tui_command_element): Remove.
7835 (union tui_which_element) <command>: Remove.
7836 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7837 assert.
7838 (free_content_elements): Remove CMD_WIN case.
7839
bd7db367
TT
78402019-06-25 Tom Tromey <tom@tromey.com>
7841
7842 * tui/tui-layout.c (tui_set_layout): Update.
7843 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7844 * tui/tui-data.c (layout_def): Update.
7845
3add462f
TT
78462019-06-25 Tom Tromey <tom@tromey.com>
7847
7848 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7849 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7850 (tui_source_window_base::set_new_height): Update.
7851 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7852 Update.
7853 (tui_set_locator_fullname, tui_set_locator_info)
7854 (tui_show_frame_info): Update.
7855 * tui/tui-source.c (tui_set_source_content)
7856 (tui_source_is_displayed): Update.
7857 * tui/tui-layout.c (show_source_disasm_command, show_data)
7858 (show_source_or_disasm_and_command): Update.
7859 * tui/tui-disasm.c (tui_set_disassem_content)
7860 (tui_get_begin_asm_address): Update.
7861 * tui/tui-data.h (struct tui_locator_element): Remove.
7862 (union tui_which_element) <locator>: Remove.
7863 (struct tui_locator_window): New.
7864 (tui_locator_win_info_ptr): Change return type.
7865 * tui/tui-data.c (_locator): Change type.
7866 (tui_locator_win_info_ptr): Change return type.
7867 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7868 (tui_alloc_content): Add assert.
7869
489e9d8b
TT
78702019-06-25 Tom Tromey <tom@tromey.com>
7871
7872 * tui/tui-winsource.c
7873 (tui_exec_info_window::maybe_allocate_content): New method.
7874 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7875 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7876 (make_source_or_disasm_window): Add cast.
7877 * tui/tui-data.h (union tui_which_element) <simple_string>:
7878 Remove.
7879 (struct tui_source_info): New.
7880 (struct tui_source_window_base) <execution_info>: Change type.
7881 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7882 case, and add assert.
7883 (tui_alloc_content): Add assert.
7884
c3fabb7d
TT
78852019-06-25 Tom Tromey <tom@tromey.com>
7886
7887 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7888 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7889 * tui/tui-data.c (tui_alloc_win_info): Remove.
7890
bbc228ee
TT
78912019-06-25 Tom Tromey <tom@tromey.com>
7892
7893 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7894 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7895 can_highlight.
7896
5fcee43a
TT
78972019-06-25 Tom Tromey <tom@tromey.com>
7898
7899 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7900 make_visible_with_new_height method.
7901 (tui_win_info::make_visible_with_new_height): New method.
7902 (tui_source_window_base::do_make_visible_with_new_height)
7903 (tui_data_window::do_make_visible_with_new_height)
7904 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7905 (make_visible_with_new_height): Remove.
7906 (tui_resize_all, tui_adjust_win_heights): Use
7907 make_visible_with_new_height method.
7908 * tui/tui-data.h (struct tui_win_info)
7909 <do_make_visible_with_new_height, make_visible_with_new_height>:
7910 New methods.
7911 (struct tui_source_window_base, struct tui_data_window)
7912 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7913 methods.
7914
d83f1fe6
TT
79152019-06-25 Tom Tromey <tom@tromey.com>
7916
7917 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7918 method.
7919 (update_tab_width): Call update_tab_width method.
7920 * tui/tui-data.h (struct tui_win_info)
7921 (struct tui_source_window_base) <update_tab_width>: New methods.
7922
17374de4
TT
79232019-06-25 Tom Tromey <tom@tromey.com>
7924
7925 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7926 parameter.
7927 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7928 parameter.
7929 (tui_gen_win_info::make_visible): Update.
7930 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7931 parameter.
7932 * tui/tui-data.h (enum tui_box): New enum.
7933 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7934
f936bca2
TT
79352019-06-25 Tom Tromey <tom@tromey.com>
7936
7937 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7938 init_and_make_win for EXEC_INFO_WIN.
7939 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7940 longer inline.
7941 (struct tui_win_info) <~tui_win_info>: Inline.
7942 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7943 Don't declare.
7944 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7945 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7946 Remove.
7947 (tui_initialize_static_data): Update.
7948 (~tui_gen_win_info): Handle more cleanup here.
7949 (~tui_source_window_base): Delete "execution_info".
7950 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7951
d6ba6a11
TT
79522019-06-25 Tom Tromey <tom@tromey.com>
7953
7954 * tui/tui-layout.c (make_command_window): Don't set
7955 can_highlight.
7956 (show_source_disasm_command): Call the reset method.
7957 (show_data): Don't set can_highlight. Call the reset method.
7958 (tui_gen_win_info::reset): Rename from init_gen_win_info
7959 (init_and_make_win): Simplify. Return tui_gen_win_info.
7960 (show_source_or_disasm_and_command): Call the reset method.
7961 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7962 (struct tui_cmd_window): Set can_highlight.
7963
48a3bd16
TT
79642019-06-25 Tom Tromey <tom@tromey.com>
7965
7966 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7967 from make_visible.
7968 (tui_make_visible, tui_make_invisible): Rewrite.
7969 (tui_win_info::make_visible): Remove.
7970 (tui_source_window_base::make_visible): Update.
7971 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7972 method. Moved from...
7973 (struct tui_win_info) <make_visible>: ...here.
7974
c3bd716f
TT
79752019-06-25 Tom Tromey <tom@tromey.com>
7976
7977 * tui/tui-winsource.c
7978 (tui_source_window_base::do_scroll_horizontal): Remove direction
7979 parameter.
7980 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7981 direction parameter.
7982 * tui/tui-win.c (tui_win_info::forward_scroll)
7983 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7984 (tui_win_info::right_scroll): Update.
7985 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7986 direction parameter.
7987 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7988 direction parameter.
7989 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7990 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7991 Remove direction parameter.
7992 (struct tui_source_window_base, struct tui_source_window)
7993 (struct tui_disasm_window, struct tui_data_window)
7994 (struct tui_cmd_window): Update.
7995
21c32dca
TT
79962019-06-25 Tom Tromey <tom@tromey.com>
7997
7998 * tui/tui-winsource.h (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 * tui/tui-winsource.c (tui_set_exec_info_content)
8003 (tui_show_exec_info_content, tui_erase_exec_info_content)
8004 (tui_clear_exec_info_content, tui_update_exec_info): Change
8005 argument to tui_source_window_base.
8006
73fbdc65
TT
80072019-06-25 Tom Tromey <tom@tromey.com>
8008
8009 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8010 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8011
33325343
TT
80122019-06-25 Tom Tromey <tom@tromey.com>
8013
8014 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8015 check.
8016
29d2c474
TT
80172019-06-25 Tom Tromey <tom@tromey.com>
8018
8019 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8020 type to void.
8021 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8022 type to void.
8023 * tui/tui-source.c (tui_set_source_content): Update.
8024 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8025
152f3f4b
TT
80262019-06-25 Tom Tromey <tom@tromey.com>
8027
8028 * tui/tui-win.c (window_name_completer, tui_set_focus)
8029 (tui_all_windows_info): Use name method.
8030 * tui/tui-data.h (struct tui_gen_win_info)
8031 (struct tui_source_window, struct tui_disasm_window)
8032 (struct tui_data_window, struct tui_cmd_window) <name>: New
8033 method.
8034 (tui_win_name): Don't declare.
8035 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8036 (tui_win_name): Remove.
8037
be4da588
TT
80382019-06-25 Tom Tromey <tom@tromey.com>
8039
8040 * tui/tui-winsource.h (tui_update_source_window)
8041 (tui_update_source_window_as_is): Change parameter type.
8042 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8043 to be a tui_source_window_base.
8044 (tui_update_source_window_as_is): Likewise.
8045 * tui/tui-win.c (make_visible_with_new_height): Update.
8046
5b81daba
TT
80472019-06-25 Tom Tromey <tom@tromey.com>
8048
8049 * tui/tui-winsource.c (tui_erase_source_content)
8050 (tui_show_source_content, tui_show_exec_info_content)
8051 (tui_erase_exec_info_content): Use refresh_window method.
8052 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8053 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8054 from tui_refresh_win.
8055 (tui_data_window::refresh_window): New method.
8056 (tui_win_info::refresh, tui_source_window_base::refresh)
8057 (tui_refresh_all): Use refresh_window method.
8058 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8059 method.
8060 * tui/tui-regs.c (tui_display_register): Call refresh_window
8061 method.
8062 * tui/tui-layout.c (show_source_disasm_command)
8063 (show_source_or_disasm_and_command): Call refresh_window method.
8064 * tui/tui-data.h (struct tui_gen_win_info)
8065 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8066 New method.
8067
cb2ce893
TT
80682019-06-25 Tom Tromey <tom@tromey.com>
8069
8070 * tui/tui.c (tui_rl_other_window, tui_enable)
8071 (tui_is_window_visible, tui_get_command_dimension): Update.
8072 * tui/tui-winsource.c (tui_update_source_window_as_is)
8073 (tui_clear_source_content, tui_erase_source_content)
8074 (tui_show_source_line, tui_source_window_base::refill)
8075 (tui_source_window_base::do_scroll_horizontal)
8076 (tui_source_window_base::set_is_exec_point_at)
8077 (tui_update_breakpoint_info, tui_set_exec_info_content)
8078 (tui_alloc_source_buffer, tui_line_is_displayed)
8079 (tui_addr_is_displayed): Update.
8080 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8081 (tui_check_and_display_highlight_if_needed)
8082 (tui_win_info::make_visible, tui_win_info::refresh)
8083 (tui_refresh_all): Update.
8084 * tui/tui-windata.c (tui_first_data_item_displayed)
8085 (tui_delete_data_content_windows, tui_erase_data_content)
8086 (tui_display_all_data, tui_data_window::refresh_all)
8087 (tui_check_data_values): Update.
8088 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8089 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8090 (tui_win_info::backward_scroll, tui_refresh_all_win)
8091 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8092 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8093 (tui_source_window_base::set_new_height)
8094 (tui_data_window::set_new_height)
8095 (make_invisible_and_set_new_height)
8096 (make_visible_with_new_height, new_height_ok)
8097 (parse_scrolling_args): Update.
8098 * tui/tui-stack.c (tui_show_frame_info): Update.
8099 * tui/tui-source.c (tui_set_source_content)
8100 (tui_set_source_content_nil, tui_source_is_displayed)
8101 (tui_source_window::do_scroll_vertical): Update.
8102 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8103 (tui_display_registers_from, tui_display_reg_element_at_line)
8104 (tui_check_register_values, tui_reg_command): Update.
8105 * tui/tui-layout.c (tui_default_win_height)
8106 (show_source_disasm_command, show_data, init_and_make_win)
8107 (show_source_or_disasm_and_command): Update.
8108 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8109 (tui_redisplay_readline, tui_mld_flush)
8110 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8111 (tui_getc): Update.
8112 * tui/tui-disasm.c (tui_set_disassem_content)
8113 (tui_disasm_window::do_scroll_vertical): Update.
8114 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8115 Now virtual.
8116 (struct tui_win_info): Derive from tui_gen_win_info.
8117 <~tui_win_info>: Mark as override.
8118 <generic>: Remove member.
8119 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8120 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8121 (~tui_data_window, ~tui_win_info)
8122 (tui_free_all_source_wins_content): Update.
8123 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8124
ab313b35
TT
81252019-06-25 Tom Tromey <tom@tromey.com>
8126
8127 * tui/tui-layout.c (init_and_make_win): Use new.
8128 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8129 destructor, initializers.
8130 (tui_alloc_generic_win_info): Don't declare.
8131 * tui/tui-data.c (_locator): Add argument to constructor.
8132 (source_win, disasm_win): New globals.
8133 (exec_info): Remove.
8134 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8135 Update.
8136 (tui_alloc_generic_win_info): Remove.
8137 (init_content_element): Use new.
8138 (tui_win_info::tui_win_info): Update.
8139 (free_content_elements) <case DATA_WIN>: Use delete.
8140
dc2c33e4
TT
81412019-06-25 Tom Tromey <tom@tromey.com>
8142
8143 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8144 * tui/tui-windata.c (tui_first_data_item_displayed)
8145 (tui_delete_data_content_windows): Update.
8146 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8147 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8148 (tui_display_registers_from, tui_check_register_values): Update.
8149 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8150 pointer.
8151 * tui/tui-data.c (init_content_element): Update. Allocate the new
8152 window.
8153 (tui_free_data_content): Update.
8154 (free_content_elements) <case DATA_WIN>: Free the window.
8155
214a5cbe
TT
81562019-06-25 Tom Tromey <tom@tromey.com>
8157
8158 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8159 Update.
8160 * tui/tui-layout.c (make_command_window)
8161 (show_source_disasm_command, show_data, init_and_make_win)
8162 (show_source_or_disasm_and_command): Update.
8163 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8164 method.
8165 <can_highight, is_highlighted>: Now bool.
8166 (tui_set_win_highlight): Don't declare.
8167 * tui/tui-data.c (tui_set_win_highlight): Remove.
8168
8e2daf15
TT
81692019-06-25 Tom Tromey <tom@tromey.com>
8170
8171 * tui/tui-wingeneral.c (make_visible): Remove check of window
8172 type.
8173
8903bd8a
TT
81742019-06-25 Tom Tromey <tom@tromey.com>
8175
8176 * tui/tui-win.c (tui_win_info::max_height)
8177 (tui_cmd_window::max_height): New methods.
8178 (new_height_ok): Call max_height.
8179 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8180 <max_height>: New method.
8181
3f02ce1e
TT
81822019-06-25 Tom Tromey <tom@tromey.com>
8183
8184 * tui/tui-win.c (tui_source_window_base::set_new_height)
8185 (tui_data_window::set_new_height): New methods.
8186 (make_invisible_and_set_new_height): Call set_new_height method.
8187 * tui/tui-data.h (struct tui_win_info)
8188 (struct tui_source_window_base, struct tui_data_window)
8189 <set_new_height>: New method.
8190
1825f487
TT
81912019-06-25 Tom Tromey <tom@tromey.com>
8192
8193 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8194 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8195 tui_refresh_data_win.
8196 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8197 method.
8198 (tui_refresh_all_win): Call the refresh_all method.
8199 (tui_set_focus): Likewise.
8200 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8201 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8202 Likewise.
8203
ad54d15b
TT
82042019-06-25 Tom Tromey <tom@tromey.com>
8205
8206 * tui/tui-winsource.h (tui_refill_source_window)
8207 (tui_set_is_exec_point_at): Don't declare.
8208 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8209 (tui_source_window_base::refill): Rename from
8210 tui_refill_source_window.
8211 (tui_source_window_base::do_scroll_horizontal): Update.
8212 (tui_source_window_base::set_is_exec_point_at): Rename from
8213 tui_set_is_exec_point_at.
8214 (tui_update_all_breakpoint_info): Update.
8215 * tui/tui-stack.c (tui_show_frame_info): Update.
8216 * tui/tui-layout.c (show_data): Add cast.
8217 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8218 * tui/tui-data.h (struct tui_source_window_base) <refill,
8219 set_is_exec_point_at>: New methods.
8220 (tui_source_windows, tui_add_to_source_windows): Update types.
8221 (tui_add_to_source_windows): Remove redundant declaration.
8222 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8223 (tui_source_windows): Change return type.
8224 (tui_clear_source_windows_detail): Update.
8225 (tui_add_to_source_windows): Change type of parameter.
8226 (tui_free_all_source_wins_content): Update.
8227
2042b506
TT
82282019-06-25 Tom Tromey <tom@tromey.com>
8229
8230 * tui/tui-wingeneral.c (tui_win_info::refresh)
8231 (tui_source_window_base::refresh): New methods.
8232 (tui_refresh_all): Call the refresh method.
8233 * tui/tui-data.h (struct tui_win_info)
8234 (struct tui_source_window_base) <refresh>: New method.
8235
56122977
TT
82362019-06-25 Tom Tromey <tom@tromey.com>
8237
8238 * tui/tui.h (tui_is_window_visible): Return bool.
8239 * tui/tui.c (tui_is_window_visible): Return bool.
8240 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8241 (tui_make_visible, tui_make_invisible)
8242 (tui_win_info::make_visible)
8243 (tui_source_window_base::make_visible, make_all_visible)
8244 (tui_make_all_visible, tui_make_all_invisible): Update.
8245 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8246 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8247 bool.
8248 (struct tui_win_info, struct tui_source_window_base)
8249 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8250 * tui/tui-data.c (tui_init_generic_part): Update.
8251
cda37efb
TT
82522019-06-25 Tom Tromey <tom@tromey.com>
8253
8254 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8255 (tui_source_window_base::make_visible): New methods.
8256 (make_all_visible): Make method call.
8257 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8258 (struct tui_source_window_base, struct tui_cmd_window): Override
8259 make_visible.
8260 (tui_win_is_source_type): Don't declare.
8261 * tui/tui-data.c (tui_win_is_source_type): Remove.
8262
6a0ee02c
TT
82632019-06-25 Tom Tromey <tom@tromey.com>
8264
8265 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8266 NULL check.
8267
63901aec
TT
82682019-06-25 Tom Tromey <tom@tromey.com>
8269
8270 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8271 Inline constructor. Add initializers for members.
8272 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8273 constructors; now inline in class.
8274
ceb13a13
TT
82752019-06-25 Tom Tromey <tom@tromey.com>
8276
8277 * tui/tui-regs.c (tui_show_registers): Update.
8278 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8279 bool.
8280 * tui/tui-data.c (tui_data_window::clear_detail)
8281 (tui_data_window): Update.
8282
238eb706
TT
82832019-06-25 Tom Tromey <tom@tromey.com>
8284
8285 * tui/tui-windata.c (tui_display_all_data)
8286 (tui_display_data_from_line, tui_display_data_from)
8287 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8288 Update.
8289 * tui/tui-regs.c (tui_last_regs_line_no)
8290 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8291 (tui_show_registers, tui_show_register_group)
8292 (tui_display_registers_from, tui_display_reg_element_at_line)
8293 (tui_display_registers_from_line, tui_check_register_values)
8294 (tui_reg_next, tui_reg_prev): Update.
8295 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8296 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8297 tui_data_window.
8298 (struct tui_win_info) <detail>: Remove. Add new fields from
8299 tui_data_info.
8300 (TUI_DATA_WIN): Add cast.
8301 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8302 (~tui_data_window): Simplify.
8303
81491aa0
TT
83042019-06-25 Tom Tromey <tom@tromey.com>
8305
8306 * tui/tui-layout.c (show_source_disasm_command)
8307 (show_source_or_disasm_and_command): Update.
8308 * tui/tui-io.c (update_cmdwin_start_line)
8309 (tui_redisplay_readline): Update.
8310 * tui/tui-data.h (struct tui_command_info): Remove.
8311 (struct tui_win_info) <detail>: Remove command_info member.
8312 (struct tui_data_window) <start_line>: New member, from
8313 tui_command_info.
8314 (TUI_CMD_WIN): Add casts.
8315
e6e41501
TT
83162019-06-25 Tom Tromey <tom@tromey.com>
8317
8318 * tui/tui-winsource.c (tui_update_source_window)
8319 (tui_refill_source_window)
8320 (tui_source_window_base::do_scroll_horizontal)
8321 (tui_update_breakpoint_info, tui_set_exec_info_content)
8322 (tui_show_exec_info_content, tui_erase_exec_info_content)
8323 (tui_clear_exec_info_content): Update.
8324 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8325 Update.
8326 * tui/tui-win.c (make_invisible_and_set_new_height)
8327 (make_visible_with_new_height): Update.
8328 * tui/tui-source.c (tui_set_source_content)
8329 (tui_show_symtab_source): Update.
8330 * tui/tui-layout.c (extract_display_start_addr)
8331 (show_source_disasm_command, show_data)
8332 (make_source_or_disasm_window)
8333 (show_source_or_disasm_and_command): Update.
8334 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8335 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8336 "gdbarch".
8337 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8338 to tui_source_window_base.
8339 (struct tui_win_info) <detail>: Remove source_info member.
8340 (struct tui_source_window_base) <has_locator>: Inline.
8341 Move contents from tui_source_info; rename has_locator member to
8342 m_has_locator.
8343 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8344 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8345 header file.
8346 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8347 Simplify.
8348 (tui_free_all_source_wins_content): Cast to
8349 tui_source_window_base.
8350
44f0e208
TT
83512019-06-25 Tom Tromey <tom@tromey.com>
8352
8353 * tui/tui-win.c (make_invisible_and_set_new_height)
8354 (make_visible_with_new_height): Call has_locator method.
8355 * tui/tui-layout.c (show_source_disasm_command, show_data)
8356 (show_source_or_disasm_and_command): Update for bool change.
8357 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8358 (tui_win_info) <has_locator>: New method.
8359 (struct tui_source_window_base) <has_locator>: New method.
8360 (tui_win_has_locator): Don't declare.
8361 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8362 from tui_win_has_locator.
8363 (tui_source_window_base): Use false, not FALSE.
8364
7778b912
TT
83652019-06-25 Tom Tromey <tom@tromey.com>
8366
8367 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8368 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8369 clear_detail method directly.
8370 (tui_clear_win_detail): Remove.
8371
f83d391c
TT
83722019-06-25 Tom Tromey <tom@tromey.com>
8373
8374 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8375 "this", not TUI_DISASM_WIN.
8376
13446e05
TT
83772019-06-25 Tom Tromey <tom@tromey.com>
8378
8379 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8380 declare.
8381 * tui/tui-winsource.c
8382 (tui_source_window_base::do_scroll_horizontal): Rename from
8383 tui_horizontal_source_scroll.
8384 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8385 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8386 from tui_vertical_data_scroll.
8387 * tui/tui-win.h (tui_scroll): Don't declare.
8388 * tui/tui-win.c (tui_win_info::forward_scroll)
8389 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8390 (tui_win_info::right_scroll): Rename and update.
8391 (tui_scroll_forward_command, tui_scroll_backward_command)
8392 (tui_scroll_left_command, tui_scroll_right_command): Update.
8393 (tui_scroll): Remove.
8394 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8395 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8396 from tui_vertical_source_scroll.
8397 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8398 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8399 from tui_vertical_disassem_scroll.
8400 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8401 do_scroll_horizontal>: New methods.
8402 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8403 Likewise.
8404 (struct tui_source_window_base): Add do_scroll_horizontal.
8405 (struct tui_source_window, struct tui_disasm_window): Add
8406 do_scroll_vertical.
8407 (struct tui_data_window, struct tui_cmd_window): Add
8408 do_scroll_horizontal and do_scroll_vertical.
8409 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8410
5cf82909
TT
84112019-06-25 Tom Tromey <tom@tromey.com>
8412
8413 * tui/tui-data.h (struct tui_source_window_base): New struct.
8414 (struct tui_source_window): Derive from tui_source_window_base.
8415 (struct tui_disasm_window): New struct.
8416 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8417 from tui_source_window::clear_detail.
8418 (tui_source_window_base): Rename from tui_source_window.
8419 (~tui_source_window_base): Rename from ~tui_source_window.
8420 (tui_alloc_win_info): Create a tui_disasm_window.
8421
ee1d42d6
TT
84222019-06-25 Tom Tromey <tom@tromey.com>
8423
8424 * tui/tui-data.h (struct tui_source_window)
8425 (struct tui_data_window): Declare destructors.
8426 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8427 destructors.
8428 (tui_win_info): Simplify.
8429
b4eb2452
TT
84302019-06-25 Tom Tromey <tom@tromey.com>
8431
8432 * tui/tui-winsource.c (tui_display_main)
8433 (tui_update_source_windows_with_addr)
8434 (tui_update_all_breakpoint_info): Update.
8435 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8436 (new_height_ok, parse_scrolling_args): Update.
8437 * tui/tui-stack.c (tui_show_frame_info): Update.
8438 * tui/tui-data.h (struct tui_list): Remove.
8439 (tui_source_windows): Return a reference to a std::vector.
8440 * tui/tui-data.c (source_windows): Now a std::vector.
8441 (tui_source_windows): Change return type.
8442 (tui_clear_source_windows): Rewrite.
8443 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8444 (tui_free_all_source_wins_content): Rewrite.
8445
8761a91b
TT
84462019-06-25 Tom Tromey <tom@tromey.com>
8447
8448 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8449 (struct tui_data_window, struct tui_cmd_window): Declare
8450 clear_detail method.
8451 * tui/tui-data.c (tui_source_window::clear_detail)
8452 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8453 methods.
8454 (tui_clear_win_detail): Simplify.
8455
0ed69eda
TT
84562019-06-25 Tom Tromey <tom@tromey.com>
8457
8458 * tui/tui-layout.c (make_source_window, make_disasm_window)
8459 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8460 Return the new window.
8461 (show_source_disasm_command, show_data)
8462 (show_source_or_disasm_and_command): Update.
8463
82432e10
TT
84642019-06-25 Tom Tromey <tom@tromey.com>
8465
8466 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8467 parameter. Return the new window.
8468 (show_source_disasm_command): Update and remove NULL check.
8469 (show_source_or_disasm_and_command): Update.
8470
ec328aa5
TT
84712019-06-25 Tom Tromey <tom@tromey.com>
8472
8473 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8474
33b906ab
TT
84752019-06-25 Tom Tromey <tom@tromey.com>
8476
8477 * tui/tui-data.h (struct tui_win_info): Make constructor
8478 protected. Make destructor virtual. Add initializers.
8479 (tui_source_window, tui_data_window, tui_cmd_window): New
8480 classes.
8481 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8482 constructor. Add "type" parameter.
8483 (tui_source_window, tui_data_window, tui_cmd_window): New
8484 constructors.
8485 (tui_alloc_win_info): Instantiate the appropriate subclass.
8486
e7e11af4
TT
84872019-06-25 Tom Tromey <tom@tromey.com>
8488
8489 * tui/tui-win.c (tui_resize_all): Use delete.
8490 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8491 destructor.
8492 (tui_free_window): Don't declare.
8493 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8494 Update.
8495
6792b55e
TT
84962019-06-25 Tom Tromey <tom@tromey.com>
8497
8498 * tui/tui-data.h (struct tui_win_info): Add constructor.
8499 * tui/tui-data.c (tui_alloc_win_info): Use new.
8500 (tui_free_window): Use delete.
8501
f95675e1
TT
85022019-06-22 Tom Tromey <tom@tromey.com>
8503
8504 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8505 declare.
8506 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8507
5bff081c
TT
85082019-06-22 Tom Tromey <tom@tromey.com>
8509
8510 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8511 declare.
8512 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8513
47e3f474
TV
85142019-06-22 Tom de Vries <tdevries@suse.de>
8515
8516 * dwarf2read.c (create_addrmap_from_aranges)
8517 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8518 instead of '%zu'.
8519
fd5866f6
SM
85202019-06-21 Simon Marchi <simon.marchi@efficios.com>
8521
8522 * dwarf2read.h (dwarf2_section_info_def): Remove.
8523 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8524 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8525 std::vector<dwarf2_section_info>.
8526 (struct dwo_file) <~dwo_file>: Remove.
8527 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8528 types field.
8529 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8530 (dwarf2_read_debug_names): Likewise.
8531 (create_debug_types_hash_table): Change parameter type to
8532 array_view, adjust code accordingly.
8533 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8534 (partial_die_info::fixup): Likewise.
8535 (determine_prefix): Likewise.
8536 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8537
fb1eb2f9
SM
85382019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8539
8540 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8541 gdb_bfd_ref_ptr.
8542 <~dwo_file>: Remove call to gdb_bfd_unref.
8543 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8544 gdb_bfd_ref_ptr::get.
8545
51ac9db5
SM
85462019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8547
8548 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8549 type to htab_up.
8550 * dwarf2read.c (struct dwo_file): Initialize fields.
8551 <~dwo_file>: New.
8552 (free_dwo_file): Remove, move content to ~dwo_file.
8553 (struct dwo_file_deleter): Remove.
8554 (dwo_file_up>: Remove custom deleter.
8555 (free_dwo_files): Remove.
8556 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8557 dwo_files.
8558 (process_skeletonless_type_units): Call unique_ptr::get.
8559 (allocate_dwo_file_hash_table): Add deleter to created hash
8560 table. Change return type to htab_up.
8561 (lookup_dwo_file_slot): Don't memset dwo_file, call
8562 unique_ptr::get.
8563 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8564 (create_dwo_unit_in_dwp_v2): Likewise.
8565 (open_and_init_dwo_file): Likewise.
8566 (free_dwo_file_from_slot): Remove.
8567
dc4ccb6f
SM
85682019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8569
8570 * dwarf2read.h (struct dwarf2_section_info) <readin,
8571 is_virtual>: Change type to bool.
8572 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8573 true instead of 1.
8574
e6a1c5cb
TT
85752019-06-19 Tom Tromey <tom@tromey.com>
8576
8577 * tui/tui-data.h (tui_init_content_element): Don't declare.
8578
6f6ffbeb
TT
85792019-06-19 Tom Tromey <tom@tromey.com>
8580
8581 * tui/tui-data.h (tui_init_win_info): Don't declare.
8582
f23f598e
TV
85832019-06-19 Tom de Vries <tdevries@suse.de>
8584
8585 * dwarf2read.h (abstract_to_concrete): Change type to
8586 std::unordered_map<sect_offset, std::vector<sect_offset>,
8587 gdb::hash_enum<sect_offset>>.
8588
680e1bee
TT
85892019-06-19 Tom Tromey <tromey@adacore.com>
8590
8591 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8592 EVAL_AVOID_SIDE_EFFECTS specially.
8593
dcf37923
TT
85942019-06-19 Tom Tromey <tromey@adacore.com>
8595
8596 * source-cache.c (highlighter): New global.
8597 (source_cache::get_source_lines): Create a highlighter on demand.
8598
494986d5
AB
85992019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8600
8601 * defs.h (deprecated_interactive_hook): Delete declaration.
8602 * interps.c (clear_interpreter_hooks): Remove use of
8603 deprecated_interactive_hook.
8604 * top.c (deprecated_interactive_hook): Delete definition.
8605 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8606
3360b6e7
TV
86072019-06-18 Tom de Vries <tdevries@suse.de>
8608
8609 PR gdb/24515
8610 * dwarf2read.h (abstract_to_concrete): Change type from
8611 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8612 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8613 * dwarf2read.c (read_variable): Update.
8614 (dwarf2_fetch_die_loc_sect_off): Update.
8615
310b3441
TV
86162019-06-17 Tom de Vries <tdevries@suse.de>
8617
8618 PR gdb/24617
8619 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8620 accessing parent[parent_len - 1].
8621
ba9777be
PP
86222019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8623
8624 PR gdb/24364
8625 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8626 call dtrace_process_dof with NULL dof.
8627
2b9f6e89
TV
86282019-06-16 Tom de Vries <tdevries@suse.de>
8629
8630 PR gdb/24445
8631 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8632
431b3ead
TT
86332019-06-16 Tom Tromey <tom@tromey.com>
8634
8635 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8636 (make_all_visible): Use address of member.
8637
d04b44a1
TT
86382019-06-16 Tom Tromey <tom@tromey.com>
8639
8640 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8641 (tui_free_window, free_content, free_content_elements): Remove
8642 unnecessary cast.
8643 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8644 cast.
8645 * tui/tui-regs.c (tui_show_register_group)
8646 (tui_display_registers_from, tui_display_reg_element_at_line):
8647 Remove unnecessary cast.
8648
bf5142e7
AB
86492019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8650
8651 * linux-nat.c (normal_mask): Delete.
8652 (_initialize_linux_nat): Don't initialise normal_mask.
8653
c4973306
SM
86542019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8655
8656 PR gdb/24445
8657 * dwarf-index-write.h (write_psymtabs_to_index): Add
8658 dwz_basename parameter.
8659 * dwarf-index-write.c (write_gdbindex): Move file writing to
8660 write_gdbindex_1. Change return type void.
8661 (assert_file_size): Move up, remove filename parameter.
8662 (write_gdbindex_1): New function.
8663 (write_debug_names): Change return type to void, call
8664 assert_file_size.
8665 (struct index_wip_file): New struct.
8666 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8667 file logic to index_wip_file. Write index for dwz file if
8668 needed.
8669 (save_gdb_index_command): Pass basename of dwz file, if present.
8670 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8671 build-id of dwz file, if present.
8672 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8673 (dwarf2_get_dwz_file): Likewise.
8674 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8675 (dwarf2_get_dwz_file): Likewise.
8676
395f9c91
TT
86772019-06-16 Tom Tromey <tom@tromey.com>
8678
8679 * coffread.c (process_coff_symbol): Use xstrdup.
8680 * value.c (create_internalvar): Use xstrdup.
8681
cafb3438
TT
86822019-06-16 Tom Tromey <tom@tromey.com>
8683
8684 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8685 * breakpoint.c (stopin_command, stopat_command)
8686 (until_break_command, decode_location_default): Remove unnecessary
8687 cast.
8688 * utils.c (subset_compare): Remove unnecessary cast.
8689 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8690 cast.
8691 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8692 cast.
8693 * infcmd.c (path_command): Remove unnecessary cast.
8694 * coffread.c (decode_type): Remove unnecessary cast.
8695 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8696 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8697 * tui/tui-stack.c (tui_show_locator_content)
8698 (tui_show_frame_info): Remove unnecessary cast.
8699 * tui/tui-win.c (tui_scroll_forward_command)
8700 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8701 (parse_scrolling_args): Remove unnecessary cast.
8702 * tui/tui-data.c (init_win_info, tui_del_window)
8703 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8704 (free_content_elements): Remove unnecessary cast.
8705 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8706 unnecessary cast.
8707 * tui/tui-source.c (tui_set_source_content)
8708 (tui_vertical_source_scroll): Remove unnecessary cast.
8709 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8710 cast.
8711 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8712 * tui/tui-regs.c (tui_display_registers_from)
8713 (tui_display_register): Remove unnecessary cast.
8714 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8715 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8716 (make_visible): Remove unnecessary cast.
8717 * tui/tui-winsource.c (tui_erase_source_content)
8718 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8719 unnecessary cast.
8720 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8721 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8722 * stabsread.c (read_type, read_array_type, read_range_type):
8723 Remove unnecessary cast.
8724 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8725 (parse_symbol, parse_type, upgrade_type, parse_external)
8726 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8727 unnecessary cast.
8728 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8729
730ead81
TT
87302019-06-16 Tom Tromey <tom@tromey.com>
8731
8732 * tui/tui-data.c (tui_alloc_generic_win_info)
8733 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8734 checks.
8735
584a927c
AB
87362019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8737 Andrew Burgess <andrew.burgess@embecosm.com>
8738
8739 * f-typeprint.c (f_print_type): Don't return early for not
8740 associated or not allocated types.
8741 (f_type_print_varspec_suffix): Add print_rank parameter and print
8742 ranks of array types in case they dangling.
8743 (f_type_print_base): Add print_rank parameter.
8744
30056ea0
AB
87452019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8746
8747 * NEWS: Mention new MI commands.
8748 * break-catch-throw.c (enum exception_event_kind): Move to
8749 breakpoint.h.
8750 (print_mention_exception_catchpoint): Output text as a single
8751 message.
8752 (catch_exception_command_1): Rename to...
8753 (catch_exception_event): ...this, make non-static, update header
8754 command, and change some parameter types.
8755 (catch_catch_command): Update for changes to
8756 catch_exception_command_1.
8757 (catch_throw_command): Likewise.
8758 (catch_rethrow_command): Likewise.
8759 * breakpoint.c (enum exception_event_kind): Delete.
8760 * breakpoint.h (enum exception_event_kind): Moved here from
8761 break-catch-throw.c.
8762 (catch_exception_event): Declare.
8763 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8764 (mi_cmd_catch_throw): New function.
8765 (mi_cmd_catch_rethrow): New function.
8766 (mi_cmd_catch_catch): New function.
8767 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8768 'catch-catch' entries.
8769 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8770 (mi_cmd_catch_rethrow): Declare.
8771 (mi_cmd_catch_catch): Declare.
8772
ec8e2b6d
AB
87732019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8774
8775 * annotate.c (annotate_source_line): Change return type to void,
8776 update implementation to match.
8777 * annotate.h (annotate_source_line): Change return type to void,
8778 update header comment.
8779 * stack.c (print_frame_info): Don't change what frame information
8780 is printed based on whether annotations are on or not.
8781
0d3abd8c
AB
87822019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8783
8784 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8785 (annotate_source): Make static.
8786 (annotate_source_line): Moved from source.c and renamed from
8787 identify_source_line. Update the return type.
8788 * annotate.h (annotate_source): Delete declaration.
8789 (annotate_source_line): Declaration moved from source.h, and
8790 renamed from identify_source_line. Return type updated.
8791 * source.c (identify_source_line): Moved to annotate.c and renamed
8792 to annotate_source_line.
8793 (info_line_command): Remove check of annotation_level.
8794 * source.h (identify_source_line): Move declaration to annotate.h
8795 and rename to annotate_source_line.
8796 * stack.c: Add 'annotate.h' include.
8797 (print_frame_info): Remove check of annotation_level before
8798 calling annotate_source_line.
8799
00df30ae
AB
88002019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8801
8802 * source-cache.c (source_cache::get_plain_source_lines): Use
8803 open_source_file_with_line_charpos instead of just
8804 open_source_file, remove call to find_source_lines.
8805 (source_cache::get_source_lines): Likewise.
8806 * source.c (find_source_lines): Make static.
8807 (get_filename_and_charpos): Renamed into...
8808 (open_source_file_with_line_charpos): ..this along with changes to
8809 return a scoped_fd, and some other minor clean ups.
8810 (identify_source_line): Use open_source_file_with_line_charpos.
8811 (search_command_helper): Use open_source_file_with_line_charpos
8812 instead of just open_source_file, remove call to
8813 find_source_lines.
8814 * source.h (open_source_file_with_line_charpos): Declare new
8815 function.
8816 (find_source_lines): Delete declaration.
8817
afda45a2
AB
88182019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8819
8820 * source.c (get_filename_and_charpos): Remove fullname
8821 parameter.
8822 (identify_source_line): Update call to get_filename_and_charpos.
8823
0735b091
TT
88242019-06-14 Tom Tromey <tromey@adacore.com>
8825
8826 PR gdb/24502:
8827 * ui-style.h (skip_ansi_escape): Update comment.
8828 * ui-file.h (class no_terminal_escape_file): New class.
8829 * ui-file.c (no_terminal_escape_file::write)
8830 (no_terminal_escape_file::puts): New methods.
8831 * cli/cli-logging.c (handle_redirections): Use
8832 no_terminal_escape_file.
8833
52ce35e2
TT
88342019-06-14 Tom Tromey <tromey@adacore.com>
8835
8836 * NEWS: Move convenience variable news above Python news.
8837
73cc7272
TT
88382019-06-14 Tom Tromey <tom@tromey.com>
8839
8840 * gnulib: Move directory to top-level.
8841 * configure.ac: Don't configure gnulib.
8842 * configure: Rebuild.
8843 * common/common-defs.h: Use new path to gnulib.
8844 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8845 (GNULIB_H): Remove.
8846 (INCGNU): Look in new gnulib location.
8847 (HFILES_NO_SRCDIR): Remove gnulib files.
8848 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8849 (generated_files): Remove GNULIB_H.
8850 ($(LIBGNU), all-lib): Remove targets.
8851 (distclean): Don't mention GNULIB_BUILDDIR.
8852 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8853
f5686554
TT
88542019-06-14 Tom Tromey <tromey@adacore.com>
8855
8856 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8857 Warn if symbol file does not provide any symbols.
8858
a0c1ffed
TT
88592019-06-14 Tom Tromey <tromey@adacore.com>
8860
8861 * source.c (find_and_open_source): Respect basenames_may_differ.
8862
7c39e397
AB
88632019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8864
8865 * annotate.c (annotate_breakpoints_invalid): Make use of
8866 scoped_restore_terminal_state.
8867 (annotate_frames_invalid): Likewise.
8868
f411722c
TT
88692019-06-14 Tom Tromey <tromey@adacore.com>
8870
8871 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8872 allow assignment to an internalvar.
8873
4268ec18
TT
88742019-06-14 Tom Tromey <tromey@adacore.com>
8875
8876 * ada-lex.l: Allow "_" in attribute names.
8877
abdb711e
TT
88782019-06-14 Tom Tromey <tromey@adacore.com>
8879
8880 PR gdb/24653:
8881 * regcache.c (registers_changed): Don't call alloca.
8882 * top.c (execute_command): Don't call alloca.
8883
4c048731
PA
88842019-06-13 Pedro Alves <palves@redhat.com>
8885
8886 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8887 'expression'. When parsing an expression, error out if there's
8888 junk after "unlimited".
8889 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8890 (do_set_command): Adjust calls to is_unlimited_literal.
8891
66eb1ed3
PA
88922019-06-13 Pedro Alves <palves@redhat.com>
8893
8894 * compile/compile.c (make_compile_options_def_group): Add braces
8895 around array_view initializer.
8896 * thread.c (make_thread_apply_all_options_def_group)
8897 (make_thread_apply_all_options_def_group): Likewise.
8898
3345721a
PA
88992019-06-13 Pedro Alves <palves@redhat.com>
8900
8901 * NEWS (New commands): Mention "maint test-options
8902 require-delimiter", "maint test-options unknown-is-error", "maint
8903 test-options unknown-is-operand" and "maint show
8904 test-options-completion-result".
8905 (New command options, command completion): New section.
8906 (Completion improvements): New section.
8907 Mention that you can abbreviate "unlimited".
8908
6206060d
PA
89092019-06-13 Pedro Alves <palves@redhat.com>
8910
8911 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8912 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8913 * unittests/cli-utils-selftests.c (test_parse_flags)
8914 (test_parse_flags_qcs): Delete.
8915 (test_cli_utils): Don't call deleted functions.
8916
6665660a
PA
89172019-06-13 Pedro Alves <palves@redhat.com>
8918
8919 * thread.c: Include "cli/cli-option.h".
8920 (tp_array_compar_ascending): Global.
8921 (tp_array_compar): Delete function.
8922 (tp_array_compar_ascending, tp_array_compar_descending): New
8923 functions.
8924 (ascending_option_def, qcs_flag_option_def)
8925 (thr_qcs_flags_option_defs)
8926 (make_thread_apply_all_options_def_group)
8927 (make_thread_apply_options_def_group): New.
8928 (thread_apply_all_command): Use gdb::option::process_options.
8929 (thread_apply_command_completer)
8930 (thread_apply_all_command_completer): New.
8931 (thread_apply_command): Use gdb::option::process_options.
8932 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8933 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8934 to generate help text of "thread apply". Adjust "taas"'s help.
8935 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8936 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8937
f7e13587
PA
89382019-06-13 Pedro Alves <palves@redhat.com>
8939
8940 * thread.c (thread_apply_command): Check for invalid TID with
8941 isdigit instead of !isalpha.
8942
5d707134
PA
89432019-06-13 Pedro Alves <palves@redhat.com>
8944
8945 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8946 (validate_flags_qcs): New.
8947 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8948 (validate_flags_qcs): Declare.
8949 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8950 (make_frame_apply_options_def_group): New.
8951 (frame_apply_command_count): Process options with
8952 gdb::option::process_options.
8953 (frame_apply_completer): New.
8954 (frame_apply_level_completer, frame_apply_all_completer)
8955 (frame_apply_completer): New.
8956 (_initialize_stack): Update help of "frame apply", "frame apply
8957 level", "frame apply all" and "faas" to mention supported options
8958 and install command completers.
8959 * stack.h (frame_apply_all_completer): Declare.
8960 * thread.c: Include "stack.h".
8961 (tfaas_command): Add "--".
8962 (_initialize_thread): Update help "tfaas" to mention supported
8963 options and install command completer.
8964
272d4594
PA
89652019-06-13 Pedro Alves <palves@redhat.com>
8966
8967 * completer.c (complete_nested_command_line): New.
8968 (gdb_completion_word_break_characters_throw): Add assertion.
8969 * completer.h (complete_nested_command_line): Declare.
8970
90a1ef87
PA
89712019-06-13 Pedro Alves <palves@redhat.com>
8972
8973 * stack.c (parse_backtrace_qualifiers): New.
8974 (backtrace_command): Use it.
8975 (backtrace_command_completer): Complete on qualifiers.
8976
d4c16835
PA
89772019-06-13 Pedro Alves <palves@redhat.com>
8978
8979 * frame.c: Include "cli/cli-option.h.
8980 (user_set_backtrace_options): New.
8981 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8982 Delete.
8983 (get_prev_frame): Adjust.
8984 (boolean_option_def, uinteger_option_def)
8985 (set_backtrace_option_defs): New.
8986 (_initialize_frame): Adjust and use
8987 gdb::option::add_setshow_cmds_for_options to install "set
8988 backtrace past-main" and "set backtrace past-entry".
8989 * frame.h: Include "cli/cli-option.h".
8990 (struct frame_print_options): Forward declare.
8991 (print_frame_arguments_all, print_frame_arguments_scalars)
8992 (print_frame_arguments_none): Declare.
8993 (print_entry_values): Delete declaration.
8994 (struct frame_print_options, user_frame_print_options): New.
8995 (struct set_backtrace_options): New.
8996 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8997 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8998 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8999 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9000 (list_args_or_locals): Add frame_print_options parameter.
9001 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9002 * python/py-framefilter.c (enumerate_args): Pass down
9003 USER_FRAME_PRINT_OPTIONS.
9004 * stack.c: Include "cli/cli-option.h".
9005 (print_frame_arguments_all, print_frame_arguments_scalars)
9006 (print_frame_arguments_none): Declare.
9007 (print_raw_frame_arguments, print_entry_values): Delete.
9008 (user_frame_print_options): New.
9009 (boolean_option_def, enum_option_def, frame_print_option_defs):
9010 New.
9011 (struct backtrace_cmd_options): New.
9012 (bt_flag_option_def): New.
9013 (backtrace_command_option_defs): New.
9014 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9015 (print_frame_arg, read_frame_arg, print_frame_args)
9016 (print_frame_info, print_frame): Add frame_print_options parameter
9017 and use it.
9018 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9019 (backtrace_command_1): Add frame_print_options and
9020 backtrace_cmd_options parameters and use them.
9021 (make_backtrace_options_def_group): New.
9022 (backtrace_command): Process command options with
9023 gdb::option::process_options.
9024 (backtrace_command_completer): New.
9025 (_initialize_stack): Extend "backtrace"'s help to mention
9026 supported options. Install completer for "backtrace".
9027 Install some settings commands with add_setshow_cmds_for_options.
9028
2daf894e
PA
90292019-06-13 Pedro Alves <palves@redhat.com>
9030
9031 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9032 and that "set/show print raw frame-arguments" are now deprecated.
9033
9034 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9035 command.
9036 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9037 * stack.c (_initialize_stack): Install "set/show print
9038 raw-frame-arguments", and deprecate "set/show print raw
9039 frame-arguments".
9040 * valprint.c (_initialize_valprint): Deprecate "set/show print
9041 raw".
9042
e6ed716c
PA
90432019-06-13 Pedro Alves <palves@redhat.com>
9044
9045 * compile/compile.c (struct compile_options): New.
9046 (compile_flag_option_def, compile_command_option_defs)
9047 (make_compile_options_def_group): New.
9048 (compile_file_command): Handle options with
9049 gdb::option::process_options.
9050 (compile_file_command_completer): New function.
9051 (compile_code_command): Handle options with
9052 gdb::option::process_options.
9053 (compile_code_command_completer): New function.
9054 (_initialize_compiler): Install completers for "compile code" and
9055 "compile file". Mention available options in "compile code" and
9056 "compile code"'s help.
9057 * completer.c (advance_to_completion_word): New, factored out from
9058 ...
9059 (advance_to_expression_complete_word_point): ... this.
9060 (advance_to_filename_complete_word_point): New.
9061 * completer.h (advance_to_filename_complete_word_point): New
9062 declaration.
9063
7d8062de
PA
90642019-06-13 Pedro Alves <palves@redhat.com>
9065
9066 * compile/compile.c: Include "cli/cli-option.h".
9067 (compile_print_value): Scope data pointer is now a
9068 value_print_options pointer; adjust.
9069 (compile_print_command): Process options. Scope data pointer is
9070 now a value_print_options pointer; adjust.
9071 (_initialize_compile): Update "compile print"'s help to include
9072 supported options. Install a completer for "compile print".
9073 * cp-valprint.c (show_vtblprint, show_objectprint)
9074 (show_static_field_print): Delete.
9075 (_initialize_cp_valprint): Don't install "set print
9076 static-members", "set print vtbl", "set print object" here.
9077 * printcmd.c: Include "cli/cli-option.h" and
9078 "common/gdb_optional.h".
9079 (print_command_parse_format): Rework to fill in a
9080 value_print_options instead of a format_data.
9081 (print_value): Change parameter type from format_data pointer to
9082 value_print_options reference. Adjust.
9083 (print_command_1): Process options. Adjust to pass down a
9084 value_print_options.
9085 (print_command_completer): New.
9086 (_initialize_printcmd): Install print_command_completer as
9087 handle_brkchars completer for the "print" command. Update
9088 "print"'s help to include supported options.
9089 * valprint.c: Include "cli/cli-option.h".
9090 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9091 here from cp-valprint.c.
9092 (boolean_option_def, uinteger_option_def)
9093 (value_print_option_defs, make_value_print_options_def_group):
9094 New. Use gdb::option::add_setshow_cmds_for_options to install
9095 "set print elements", "set print null-stop", "set print repeats",
9096 "set print pretty", "set print union", "set print array", "set
9097 print address", "set print symbol", "set print array-indexes".
9098 * valprint.h: Include <string> and "cli/cli-option.h".
9099 (make_value_print_options_def_group): Declare.
9100 (print_value): Change parameter type from format_data pointer to
9101 value_print_options reference.
9102 (print_command_completer): Declare.
9103
9d0faba9
PA
91042019-06-13 Pedro Alves <palves@redhat.com>
9105
9106 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9107 (COMMON_SFILES): Add maint-test-settings.c.
9108 * cli/cli-decode.c (boolean_enums): New global, factored out from
9109 ...
9110 (add_setshow_boolean_cmd): ... here.
9111 * cli/cli-decode.h (boolean_enums): Declare.
9112 * cli/cli-option.c: New file.
9113 * cli/cli-option.h: New file.
9114 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9115 factored out from ...
9116 (parse_cli_boolean_value(const char *)): ... this.
9117 (is_unlimited_literal): Change parameter type to pointer to
9118 pointer. Adjust and advance ARG pointer.
9119 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9120 (parse_cli_var_enum): New, factored out from ...
9121 (do_set_command): ... this. Adjust.
9122 * cli/cli-setshow.h (parse_cli_boolean_value)
9123 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9124 (parse_cli_var_enum): Declare.
9125 * cli/cli-utils.c: Include "cli/cli-option.h".
9126 (get_ulongest): New.
9127 * cli/cli-utils.h (get_ulongest): Declare.
9128 (check_for_argument): New overloads.
9129 * maint-test-options.c: New file.
9130
2c722807
PA
91312019-06-13 Pedro Alves <palves@redhat.com>
9132
9133 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9134 parse a range if "-" is at the end of the string.
9135
dee7b4c8
PA
91362019-06-13 Pedro Alves <palves@redhat.com>
9137
9138 * cli/cli-setshow.c (parse_auto_binary_operation)
9139 (parse_cli_boolean_value): Don't allow "o".
9140
dca0f6c0
PA
91412019-06-13 Pedro Alves <palves@redhat.com>
9142
9143 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9144 * NEWS: Mention maint test-settings KIND.
9145 * maint-test-settings.c: New file.
9146
597bf39d
PA
91472019-06-13 Pedro Alves <palves@redhat.com>
9148
9149 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9150 completer.
9151 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9152 "set" completers.
9153
48c410fb
PA
91542019-06-13 Pedro Alves <palves@redhat.com>
9155
9156 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9157 after item.
9158
93bcb043
PA
91592019-06-13 Pedro Alves <palves@redhat.com>
9160
9161 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9162
cbba3ecd
PA
91632019-06-13 Pedro Alves <palves@redhat.com>
9164
9165 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9166 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9167 call.
9168 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9169 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9170 calls.
9171 (check_for_argument): Skip spaces after argument.
9172
b9a3f842
PA
91732019-06-13 Pedro Alves <palves@redhat.com>
9174
9175 * thread.c (thread_apply_command): Adjust TID parsing.
9176 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9177 detected before end of string.
9178 (tid_is_in_list): Error out if LIST is invalid.
9179
3844e605
PA
91802019-06-13 Pedro Alves <palves@redhat.com>
9181
9182 * completer.c (complete_line_internal_1): Rewind completion word
9183 point.
9184 (completion_tracker::advance_custom_word_point_by): Change
9185 parameter type to int.
9186 * completer.h (completion_tracker::advance_custom_word_point_by):
9187 Likewise.
9188
00b56dbe
PA
91892019-06-13 Pedro Alves <palves@redhat.com>
9190
9191 * completer.c (advance_to_completion_word): Handle delimiters.
9192
d106773e
PA
91932019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9194
9195 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9196
08f10e02
TT
91972019-06-11 Tom Tromey <tom@tromey.com>
9198
9199 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9200 (xmalloc_failed): Move to alloc.c.
9201 * alloc.c: New file.
9202 * Makefile.in (COMMON_SFILES): Add alloc.c.
9203
1c7fe951
TT
92042019-06-11 Tom Tromey <tom@tromey.com>
9205
9206 * nat/linux-waitpid.c: Don't include server.h.
9207 (linux_debug): Remove.
9208 (my_waitpid): Update.
9209
89549d7f
TT
92102019-06-11 Tom Tromey <tromey@adacore.com>
9211
9212 * infcall.c (_initialize_infcall): Remove trailing newline from
9213 help.
9214 * user-regs.c (_initialize_user_regs): Remove trailing newline
9215 from help.
9216 * typeprint.c (_initialize_typeprint): Remove trailing newline
9217 from help.
9218 * reverse.c (_initialize_reverse): Remove trailing newlines from
9219 help.
9220 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9221 from help.
9222 * language.c (add_set_language_command): Remove trailing newline
9223 from help.
9224 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9225 help.
9226 * disasm.c (_initialize_disasm): Remove trailing newline from
9227 help.
9228 * top.c (init_main): Remove trailing newline from help.
9229 * interps.c (_initialize_interpreter): Remove trailing newline
9230 from help.
9231 * btrace.c (_initialize_btrace): Remove trailing newlines from
9232 help.
9233 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9234 from help.
9235 * python/python.c (_initialize_python): Remove trailing newline
9236 from help.
9237 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9238 help.
9239 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9240 from help. Reformat some text.
9241 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9242 from help.
9243 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9244 newline from help.
9245
86108c13
TT
92462019-06-11 Tom Tromey <tromey@adacore.com>
9247
9248 * darwin-nat.c (darwin_decode_exception_message)
9249 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9250
a7067863
AB
92512019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9252
9253 * valops.c (value_slice): Check for not allocated or not
9254 associated values.
9255
9ab08412
TV
92562019-06-10 Tom de Vries <tdevries@suse.de>
9257
9258 PR gdb/24618
9259 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9260 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9261 invalid.
9262
f19e22e9
TV
92632019-06-10 Tom de Vries <tdevries@suse.de>
9264
9265 PR gdb/24611
9266 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9267 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9268
e99f9db0
TV
92692019-06-10 Tom de Vries <tdevries@suse.de>
9270
9271 PR symtab/24545
9272 * symtab.c (struct demangled_name_entry): Add language field.
9273 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9274 static minimal symbol". Set and use language field.
9275
9bf7038b
TT
92762019-06-10 Tom Tromey <tromey@adacore.com>
9277
9278 * ada-lang.c (_initialize_ada_language): Update help text.
9279
422186a9
TT
92802019-06-10 Tom Tromey <tromey@adacore.com>
9281
9282 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9283 with a newline.
9284 * guile/guile.c (handle_boot_error): Don't end warning with a
9285 newline.
9286 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9287 warning with a newline.
9288 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9289 newline.
9290 (s12z_frame_cache): Likewise.
9291 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9292 a newline.
9293 * solib-svr4.c (disable_probes_interface): Don't end warning with
9294 a newline.
9295 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9296 newline.
9297 * python/python.c (do_finish_initialization): Don't end warning
9298 with a newline.
9299
25ce02ee
TT
93002019-06-10 Tom Tromey <tom@tromey.com>
9301
9302 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9303 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9304 gdbpy_enter.
9305
caa429d8
TT
93062019-06-10 Tom Tromey <tromey@adacore.com>
9307
9308 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9309 data.
9310 (elf_new_init): Don't call stabsread_new_init.
9311 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9312 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9313 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9314
81873cc8
TV
93152019-06-10 Tom de Vries <tdevries@suse.de>
9316
9317 PR symtab/16264
9318 PR symtab/24517
9319 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9320
4fa0265e
РИ
93212019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9322
9323 * source.c (find_and_open_source): Also rewrite relative file
9324 names.
9325
1a3da2cd
AB
93262019-04-26 Amos Bird <amosbird@gmail.com>
9327
9328 * annotate.c (annotate_thread_exited): Add "thread-exited"
9329 annotation.
9330
3847a7bf
TT
93312019-06-06 Tom Tromey <tromey@adacore.com>
9332
9333 * maint.h (class scoped_command_stats): Use
9334 DISABLE_COPY_AND_ASSIGN.
9335 <print_time>: New method.
9336 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9337 print_time.
9338 (scoped_command_stats::print_time): New method.
9339
312617a3
AB
93402019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9341
9342 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9343 instructions of lengths 6 or 8 bytes.
9344
b02f78f9
PA
93452019-06-04 Pedro Alves <palves@redhat.com>
9346
9347 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9348
9349 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9350 * breakpoint.c (condition_completer): Likewise.
9351 * cli/cli-dump.c (scan_expression): Likewise.
9352 * common/filestuff.c (mkdir_recursive): Likewise.
9353 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9354 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9355 (gdb_abspath): Likewise.
9356 * compile/compile-cplus-types.c
9357 (compile_cplus_instance::decl_name): Likewise.
9358 * completer.c (complete_explicit_location):
9359 (signal_completer, reg_or_group_completer_1): Likewise.
9360 * cp-support.c (cp_remove_params_if_any): Likewise.
9361 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9362 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9363 * infcmd.c (strip_bg_char): Likewise.
9364 * linespec.c (copy_token_string): Likewise.
9365 * mi/mi-main.c (output_cores): Likewise.
9366 * psymtab.c (psymtab_search_name):
9367 * symfile.c (test_set_ext_lang_command): Likewise.
9368 * target.c (target_fileio_read_stralloc): Likewise.
9369 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9370 * value.c (complete_internalvar): Likewise.
9371
e1f2e1a2
CB
93722019-06-04 Christian Biesinger <cbiesinger@google.com>
9373
9374 Add objfile property to gdb.Type.
d3238f7d
PA
9375 * NEWS: Mention Python API addition.
9376 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9377
e664d728
PW
93782019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9379
9380 * NEWS: Mention the new set|show style [title|highlight].
9381 Mention changes to "show style", "help" and "apropos".
9382
66d8c862
PW
93832019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9384
9385 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9386 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9387 instead of print_help_for_command.
9388 (print_doc_of_command): New function.
9389 (help_list): Add 'apropos -v word' suggestion.
9390 (print_help_for_command): Style the command name using title style.
9391 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9392 (_initialize_cli_cmds): Describe -v in apropos_command help.
9393
9303eb2f
PW
93942019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9395
9396 * cli/cli-style.h (cli_style_option): Add name in constructor,
9397 add m_name class member, add constructor with intensity,
9398 add name class function.
9399 (cli_style_option::add_setshow_commands): Remove name argument.
9400 (highlight_style, title_style): New styles.
9401 * cli/cli-style.c (do_show): New function that shows a style
9402 characteristic styling the style name with itself.
9403 (set_style_name): New function.
9404 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9405 Update all callers according to the changes in cli/cli-style.h.
9406 * utils.h (fputs_highlighted): New function.
9407 * utils.c (fputs_highlighted): Likewise.
9408
e2c52041
PW
94092019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9410
9411 * NEWS: Mention new pipe command and new convenience variables.
9412
947d3946
PW
94132019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9414
9415 * cli/cli-cmds.c (pipe_command): New function.
9416 (_initialize_cli_cmds): Call add_com for pipe_command.
9417 Define | as an alias for pipe.
9418 (exit_status_set_internal_vars): New function.
9419 (shell_escape): Call exit_status_set_internal_vars.
9420 cli/cli-decode.c (find_command_name_length): Recognize | as
9421 a single character command.
9422
b8fd0918
PW
94232019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9424
9425 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9426 top.c (execute_command_to_ui_file): New function, mostly a copy
9427 of execute_command_to_string.
9428 (execute_command_to_string): Implement by calling
9429 execute_command_to_ui_file.
9430
68bb5386
PW
94312019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9432
9433 * top.h (saved_command_line): Remove declaration.
9434 * top.c (previous_saved_command_line, previous_repeat_arguments):
9435 New variables.
9436 (saved_command_line): Make static, define together with other
9437 'repeat variables'.
9438 (dont_repeat): Clear repeat_arguments.
9439 (repeat_previous, get_saved_command_line, save_command_line):
9440 New functions.
9441 (gdb_init): Initialize saved_command_line
9442 and previous_saved_command_line.
9443 * main.c (captured_main_1): Remove saved_command_line initialization.
9444 * event-top.c (handle_line_of_input): Update to use
9445 the new 'repeat' related functions instead of direct access to
9446 saved_command_line.
9447 * command.h (repeat_previous, get_saved_command_line,
9448 save_command_line): New declarations.
9449 (dont_repeat): Add comment.
9450
bfcdb852
TT
94512019-05-30 Tom Tromey <tromey@adacore.com>
9452
9453 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9454 Fix comment.
9455 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9456
0ef209f2
JV
94572019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9458
9459 PR cli/24587
9460 * completer.c (complete): Initialize variable word.
9461
955b06fa
SDJ
94622019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9463
9464 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9465 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9466 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9467 'body' is NULL to the outter 'if', protecting the '!is_define'
9468 situation as well.
9469
fa9c3fa0
TT
94702019-05-29 Tom Tromey <tromey@adacore.com>
9471
9472 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9473 (dwarf_unknown): New function.
9474 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9475 (dwarf_type_encoding_name): Use dwarf_unknown.
9476
4330d61d
TT
94772019-05-29 Tom Tromey <tromey@adacore.com>
9478
9479 PR c++/20020:
9480 * cp-valprint.c (cp_print_value_fields): Call
9481 cp_print_static_field inside "try".
9482
33a6bc35
TT
94832019-05-29 Tom Tromey <tromey@adacore.com>
9484
9485 * inflow.c (struct terminal_info): Add default operator=.
9486 * configure: Rebuild.
9487 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9488 -Wdeprecated-copy-dtor, -Wredundant-move.
9489
000439d5
TT
94902019-05-29 Tom Tromey <tromey@adacore.com>
9491
9492 * NEWS: Add entry.
9493 * infcmd.c (print_return_value_1): Handle finish_print
9494 option.
9495 (show_print_finish): New function.
9496 (_initialize_infcmd): Add "set/show print finish" commands.
9497 * valprint.c (user_print_options): Initialize new member.
9498 * valprint.h (struct value_print_options) <finish_print>: New
9499 member.
9500
c0e70c62
TT
95012019-05-28 Tom Tromey <tromey@adacore.com>
9502
9503 * ada-lang.c (ada_remove_Xbn_suffix)
9504 (find_old_style_renaming_symbol)
9505 (parse_old_style_renaming): Remove.
9506 (ada_find_renaming_symbol): Don't call
9507 find_old_style_renaming_symbol.
9508 (ada_is_renaming_symbol): Rename from
9509 ada_find_renaming_symbol. Remove "block" parameter. Return
9510 bool. Now static.
9511 (ada_read_var_value): Update and simplify.
9512 * ada-exp.y (write_var_or_type): Remove old code.
9513
766f8836
AH
95142019-05-28 Alan Hayward <alan.hayward@arm.com>
9515
68255adc 9516 PR gdb/25010
766f8836
AH
9517 * event-top.c: Remove include comment.
9518 * inflow.c (class scoped_ignore_sigttou): Move from here...
9519 * inflow.h (class scoped_ignore_sigttou): ...to here.
9520 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9521 * top.c: Remove include comment.
9522
eb41253a
TT
95232019-05-27 Tom Tromey <tom@tromey.com>
9524
9525 * NEWS: Fix typo.
9526
4ca51187
TT
95272019-05-22 Tom Tromey <tromey@adacore.com>
9528
9529 * target.c (target_follow_exec): Constify parameter.
9530 * target-delegates.c: Rebuild.
9531 * remote.c (remote_target::follow_exec): Constify parameter.
9532 * infrun.c (follow_exec): Constify parameter.
9533 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9534 (target_follow_exec): Likewise.
9535
8fca4da0
AH
95362019-05-22 Alan Hayward <alan.hayward@arm.com>
9537
9538 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9539 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9540
b7060614
AH
95412019-05-22 Alan Hayward <alan.hayward@arm.com>
9542
9543 * NEWS: Add debugredirect and testsuite sections.
9544
0a5954bd
SC
95452019-05-22 Simon Cook <simon.cook@embecosm.com>
9546
9547 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9548 target descriptions using exclusively floating point register name
9549 aliases.
9550
dc42e902
AB
95512019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9552
9553 PR gdb/18644:
9554 * f-lang.c (build_fortran_types): Handle the case where
9555 gdbarch_floatformat_for_type returns a nullptr.
9556
fb7806c7
TV
95572019-05-21 Tom de Vries <tdevries@suse.de>
9558
9559 PR cli/24587
9560 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9561
34d11c68
AB
95622019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9563
9564 PR gdb/18644:
9565 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9566 16-byte floats.
9567 * i386-tdep.c (i386_floatformat_for_type): Use
9568 floatformats_ia64_quad for the 16-byte floating point component
9569 within a fortran 32-byte complex number.
9570
122cf0f2
AB
95712019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9572
9573 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9574 delete default constructor.
9575 (find_partial_die): Update to return const struct.
9576 (partial_die_parent_scope): Move variable declaration into scope
9577 of its use and change its type to auto.
9578 (guess_partial_die_structure_name): Likewise.
9579 (partial_die_info::fixup): Likewise.
9580
33d0e35a
TT
95812019-05-17 Tom Tromey <tromey@adacore.com>
9582
9583 * source.c (find_and_open_source): Remove cast.
9584
a45575b0
TT
95852019-05-17 Tom Tromey <tromey@adacore.com>
9586
9587 * annotate.c (annotate_source): Make "filename" const.
9588 * annotate.h (annotate_source): Use const.
9589
81f47ac2
AH
95902019-05-17 Alan Hayward <alan.hayward@arm.com>
9591
9592 * disasm.c (set_disassembler_options): Send errors to stderr.
9593
ca1285d1
AH
95942019-05-17 Alan Hayward <alan.hayward@arm.com>
9595
9596 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9597 (cli_interp_base::set_logging): Check debug_redirect.
9598 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9599 * cli/cli-logging.c (debug_redirect): Add static variable.
9600 (pop_output_files): Add default param.
9601 (handle_redirections): Print debug setting.
9602 (show_logging_command): Likewise.
9603 (_initialize_cli_logging): Add debugredirect command.
9604 * interps.c (current_interp_set_logging): Add debug_redirect
9605 parameter.
9606 * interps.h (set_logging): Add debug_redirect parameter.
9607 (current_interp_set_logging): Likewise.
9608 * mi/mi-common.h: Likewise.
9609 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9610
96112019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9612 Tom Tromey <tromey@adacore.com>
9613
9614 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9615 directly.
9616 * cli/cli-interp.h (make_logging_output): Remove declaration.
9617 * cli/cli-logging.c (make_logging_output): Remove function.
9618 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9619 directly.
9620 * ui-file.c (tee_file::tee_file): Remove bools.
9621 (tee_file::~tee_file): Remove deletes.
9622 * ui-file.h (tee_file): Remove bools.
9623
26648588
JV
96242019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9625
9626 * mi/mi-cmds.h (mi_cmd_complete): New function.
9627 * mi/mi-main.c (mi_cmd_complete): Likewise.
9628 * mi/mi-cmds.c: Define new MI command -complete.
9629 * NEWS: Mention new -complete command.
9630
6e035501
JV
96312019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9632
9633 * completer.h (complete): New function.
9634 * completer.c (complete): Likewise.
9635 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9636 function defined in completer.h.
9637
7d0e2ece
JV
96382019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9639
e79be6e5 9640 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9641
fb816e8b
TV
96422019-05-17 Tom de Vries <tdevries@suse.de>
9643
9644 PR gdb/24094
9645 * dwarf2read.c (struct cu_partial_die_info): New struct.
9646 (find_partial_die): Return cu_partial_die_info.
9647 (partial_die_parent_scope, guess_partial_die_structure_name)
9648 (partial_die_info::fixup): Handle new return type of find_partial_die.
9649
677052f2
SDJ
96502019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9651
a1726c38 9652 PR breakpoints/24541
677052f2
SDJ
9653 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9654 "std::string", simplifying the algorithm.
9655
f3da9116
SDJ
96562019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9657
9658 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9659 (stap_static_probe_ops::get_probes): Likewise.
9660
f1bb75ab
SDJ
96612019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9662
9663 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9664 '-')" and "else if".
9665 (stap_parse_single_operand): Join checks for
9666 "gdbarch_stap_parse_special_token_p" and
9667 "gdbarch_stap_parse_special_token" in the same "if" statement.
9668 Invert check when verifying for operation on register
9669 displacement.
9670
3ca58cde
SDJ
96712019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9672
9673 * stap-probe.c (stap_get_opcode): Update comment.
9674 (stap_get_expected_argument_type): Likewise.
9675 (handle_stap_probe): Likewise.
9676
af2d9bee
SDJ
96772019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9678
9679 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9680 return type to 'bool'. Adjust comment. Use 'bool' when
9681 appropriate.
9682 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9683 * stap-probe.c (stap_parse_argument_1): Likewise.
9684 (stap_is_operator): Likewise.
9685 (stap_is_generic_prefix): Likewise.
9686 (stap_is_register_prefix): Likewise.
9687 (stap_is_register_indirection_prefix): Likewise.
9688 (stap_is_integer_prefix): Likewise.
9689 (stap_generic_check_suffix): Likewise.
9690 (stap_check_integer_suffix): Likewise.
9691 (stap_check_register_suffix): Likewise.
9692 (stap_check_register_indirection_suffix): Likewise.
9693 (stap_parse_register_operand): Likewise.
9694 (stap_parse_single_operand): Likewise.
9695 (stap_parse_argument_1): Likewise.
9696 (stap_probe::get_argument_count): Likewise.
9697 (stap_is_operator): Likewise.
9698
61c9c421
TT
96992019-05-16 Tom Tromey <tromey@adacore.com>
9700
9701 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9702 keyword to foreach.
9703
9ddc1af1
SM
97042019-05-15 Simon Marchi <simon.marchi@efficios.com>
9705
9706 * linux-thread-db.c (try_thread_db_load_1): Change return type
9707 to bool.
9708 (try_thread_db_load): Likewise.
9709 (try_thread_db_load_from_pdir_1): Likewise.
9710 (try_thread_db_load_from_pdir): Likewise.
9711 (try_thread_db_load_from_sdir): Likewise.
9712 (try_thread_db_load_from_dir): Likewise.
9713 (thread_db_load_search): Likewise.
9714 (has_libpthread): Likewise.
9715 (thread_db_load): Likewise.
9716
7bede828
SDJ
97172019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9718
9719 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9720 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9721 NULL, and complain/return if that's the case.
9722
c5358db4
JD
97232019-05-15 John Darrington <john@darrington.wattle.id.au>
9724
9725 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9726 (advance, posn, abstract_read_memory): New functions.
9727 [struct mem_read_abstraction]: New struct.
9728 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9729
c408a94f
TT
97302019-05-14 Tom Tromey <tromey@adacore.com>
9731
9732 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9733 value is not lval_memory.
9734
e7bd7fba
TT
97352019-05-14 Tom Tromey <tromey@adacore.com>
9736
9737 * solib.c (info_sharedlibrary_command): Style the file name.
9738
a6d0f249
AH
97392019-05-14 Alan Hayward <alan.hayward@arm.com>
9740
9741 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9742 (aarch64_vnv_type): Likewise.
9743 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9744 * common/tdesc.c: Likewise.
9745 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9746 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9747 * features/aarch64-fpu.xml: Add ieee half view.
9748 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9749 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9750 * gdbtypes.h (struct builtin_type): Likewise.
9751 (struct objfile_type): Likewise.
9752
66b8bb74
SM
97532019-05-12 Paul Naert <paul.naert@polymtl.ca>
9754
9755 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9756 typo.
9757 * location.h (string_to_event_location): Likewise.
9758
21c219fd
JB
97592019-05-11 Joel Brobecker <brobecker@adacore.com>
9760
9761 GDB 8.3 released.
9762
13674803
SM
97632019-05-10 Simon Marchi <simon.marchi@efficios.com>
9764
9765 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9766 New variable declaration.
9767 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9768 New variable.
9769 (print_one_breakpoint): Use ui_out::test_flags and new global
9770 variable to compute use_fixed_output.
9771 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9772 Remove.
9773 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9774 (mi_multi_location_breakpoint_output_fixed): Remove.
9775 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9776 new variable.
9777 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9778 fix_multi_location_breakpoint_output flag if version >= 3.
9779 * ui-out.h (enum ui_out_flag)
9780 <fix_multi_location_breakpoint_output>: New enumerator.
9781
a9eac7f9
SM
97822019-05-10 Simon Marchi <simon.marchi@efficios.com>
9783
9784 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9785
71bed2db
TT
97862019-05-10 Tom Tromey <tromey@adacore.com>
9787
9788 * ada-lang.c (catch_ada_completer): New function.
9789 (_initialize_ada_language): Use it.
9790
24c54127
TT
97912019-05-10 Tom Tromey <tromey@adacore.com>
9792
9793 * thread.c (print_thread_info): Make "requested_threads" const.
9794 * gdbthread.h (print_thread_info): Make "requested_threads"
9795 const.
9796 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9797 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9798
7a102139
TT
97992019-05-08 Tom Tromey <tom@tromey.com>
9800
9801 * gdbtypes.c (objfile_type_data): Change type.
9802 (objfile_type, _initialize_gdbtypes): Update.
9803
924d79e2
TT
98042019-05-08 Tom Tromey <tom@tromey.com>
9805
9806 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9807 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9808 (_initialize_dwarf2_frame): Update.
9809
4c58e337
TT
98102019-05-08 Tom Tromey <tom@tromey.com>
9811
9812 * objc-lang.c (objc_objfile_data): Change type.
9813 (find_methods): Update.
9814 (_initialize_objc_lang): Remove.
9815
d772d2ab
TT
98162019-05-08 Tom Tromey <tom@tromey.com>
9817
9818 * stabsread.c (rs6000_builtin_type_data): Change type.
9819 (rs6000_builtin_type, _initialize_stabsread): Update.
9820
d11d83f4
TT
98212019-05-08 Tom Tromey <tom@tromey.com>
9822
9823 * mips-tdep.c (mips_pdr_data): Remove.
9824 (_initialize_mips_tdep): Update.
9825
9a73f0ad
TT
98262019-05-08 Tom Tromey <tom@tromey.com>
9827
9828 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9829 (hppa_init_objfile_priv_data, read_unwind_info)
9830 (find_unwind_entry, _initialize_hppa_tdep): Update.
9831
8127a2fa
TT
98322019-05-08 Tom Tromey <tom@tromey.com>
9833
9834 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9835 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9836 on obstack.
9837 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9838
91d3055d
TT
98392019-05-08 Tom Tromey <tom@tromey.com>
9840
9841 * mdebugread.c (basic_type_data): Change type.
9842 (basic_type, _initialize_mdebugread): Update.
9843
31930bd3
TT
98442019-05-08 Tom Tromey <tom@tromey.com>
9845
9846 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9847
bdb3ed9e
TT
98482019-05-08 Tom Tromey <tom@tromey.com>
9849
9850 * nto-tdep.c (nto_inferior_data_reg): Change type.
9851 (nto_inferior_data): Update.
9852 (nto_inferior_data_cleanup, nto_new_inferior_data)
9853 (_initialize_nto_tdep): Remove.
9854 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9855
f37b313d
TT
98562019-05-08 Tom Tromey <tom@tromey.com>
9857
9858 * ada-lang.c (struct ada_inferior_data): Add initializers.
9859 (ada_inferior_data): Change type.
9860 (ada_inferior_data_cleanup): Remove.
9861 (get_ada_inferior_data, ada_inferior_exit)
9862 (struct ada_pspace_data): Add initializers, destructor.
9863 (ada_pspace_data_handle): Change type.
9864 (get_ada_pspace_data): Update.
9865 (ada_pspace_data_cleanup): Remove.
9866
24699405
TT
98672019-05-08 Tom Tromey <tom@tromey.com>
9868
9869 * coffread.c (struct coff_symfile_info): Add initializers.
9870 (coff_objfile_data_key): Move lower. Change type.
9871 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9872 Update.
9873 (coff_free_info): Remove.
9874
d4e05d2f
TT
98752019-05-08 Tom Tromey <tom@tromey.com>
9876
9877 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9878 (fbsd_pspace_data_handle): Move lower. Change type.
9879 (get_fbsd_pspace_data): Update.
9880 (fbsd_pspace_data_cleanup): Remove.
9881 (_initialize_fbsd_tdep): Update.
9882
14ef6690
TT
98832019-05-08 Tom Tromey <tom@tromey.com>
9884
9885 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9886 (get_ada_tasks_pspace_data): Update.
9887 (ada_tasks_pspace_data_cleanup): Remove.
9888 (_initialize_tasks): Update.
9889 (ada_tasks_inferior_data_handle): Change type.
9890 (get_ada_tasks_inferior_data): Update.
9891 (ada_tasks_inferior_data_cleanup): Remove.
9892 (struct ada_tasks_pspace_data): Add initializers.
9893
814cf43a
TT
98942019-05-08 Tom Tromey <tom@tromey.com>
9895
9896 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9897 * symfile-debug.c (debug_sym_get_probes): Change type.
9898 * stap-probe.c (handle_stap_probe):
9899 (stap_static_probe_ops::get_probes): Change type.
9900 * probe.h (class static_probe_ops) <get_probes>: Change type.
9901 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9902 (parse_probes_in_pspace): Update.
9903 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9904 Update.
9905 (any_static_probe_ops::get_probes): Change type.
9906 * elfread.c (elfread_data): New typedef.
9907 (probe_key): Change type.
9908 (elf_get_probes): Likewise. Update.
9909 (probe_key_free): Remove.
9910 (_initialize_elfread): Update.
9911 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9912 Change type.
9913 (dtrace_process_dof_probe, dtrace_process_dof)
9914 (dtrace_static_probe_ops::get_probe): Change type.
9915
02dc647e
TT
99162019-05-08 Tom Tromey <tom@tromey.com>
9917
9918 * xcoffread.c (struct xcoff_symfile_info): Rename from
9919 coff_symfile_info. Add initializers.
9920 (xcoff_objfile_data_key): Move lower. Change type.
9921 (XCOFF_DATA): Rewrite.
9922 (xcoff_free_info): Remove.
9923 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9924 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9925 (xcoff_initial_scan): Update.
9926
09232438
TT
99272019-05-08 Tom Tromey <tom@tromey.com>
9928
9929 * solib-svr4.c (struct svr4_info): Add initializers and
9930 destructor.
9931 <probes_table>: Now an htab_up.
9932 (solib_svr4_pspace_data): Change type.
9933 (free_probes_table): Simplify.
9934 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9935 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9936 (probes_table_remove_objfile_probes, register_solib_event_probe)
9937 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9938 (_initialize_svr4_solib): Update.
9939
7b4a314f
TT
99402019-05-08 Tom Tromey <tom@tromey.com>
9941
9942 * remote.c (remote_pspace_data): Change type.
9943 (remote_pspace_data_cleanup): Remove.
9944 (get_remote_exec_file, set_pspace_remote_exec_file)
9945 (_initialize_remote): Update.
9946
51d3063a
TT
99472019-05-08 Tom Tromey <tom@tromey.com>
9948
9949 * breakpoint.c (breakpoint_objfile_key): Change type.
9950 (get_breakpoint_objfile_data): Update.
9951 (free_breakpoint_objfile_data): Remove.
9952 (_initialize_breakpoint): Update.
9953
89fb8848
TT
99542019-05-08 Tom Tromey <tom@tromey.com>
9955
9956 * linux-tdep.c (struct linux_info): Add initializers.
9957 (linux_inferior_data): Move. Change type.
9958 (invalidate_linux_cache_inf): Update.
9959 (linux_inferior_data_cleanup): Remove.
9960 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9961
e9b89e2d
TT
99622019-05-08 Tom Tromey <tom@tromey.com>
9963
9964 * auxv.c (auxv_inferior_data): Move. Change type.
9965 (auxv_inferior_data_cleanup): Remove.
9966 (invalidate_auxv_cache_inf): Rewrite.
9967 (get_auxv_inferior_data, _initialize_auxv): Update.
9968
8c42777c
TT
99692019-05-08 Tom Tromey <tom@tromey.com>
9970
9971 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9972 (symfile_debug_objfile_data_key): Change type.
9973 (symfile_debug_installed, debug_qf_has_symbols)
9974 (debug_qf_find_last_source_symtab)
9975 (debug_qf_forget_cached_source_info)
9976 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9977 (debug_qf_print_stats, debug_qf_dump)
9978 (debug_qf_expand_symtabs_for_function)
9979 (debug_qf_expand_all_symtabs)
9980 (debug_qf_expand_symtabs_with_fullname)
9981 (debug_qf_map_matching_symbols)
9982 (debug_qf_expand_symtabs_matching)
9983 (debug_qf_find_pc_sect_compunit_symtab)
9984 (debug_qf_map_symbol_filenames)
9985 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9986 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9987 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9988 (debug_sym_read_linetable, debug_sym_relocate): Update.
9989 (symfile_debug_free_objfile): Remove.
9990 (install_symfile_debug_logging, _initialize_symfile_debug):
9991 Update.
9992
5bfd760d
TT
99932019-05-08 Tom Tromey <tom@tromey.com>
9994
9995 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9996 allocate_on_obstack.
9997 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9998 (get_dwarf2_per_objfile): Update.
9999 (set_dwarf2_per_objfile): Remove.
10000 (dwarf2_has_info, dwarf2_get_section_info): Update.
10001 (dwarf2_free_objfile): Remove.
10002 (_initialize_dwarf2_read): Update.
10003
e85e19b4
TT
100042019-05-08 Tom Tromey <tom@tromey.com>
10005
10006 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10007 initializers.
10008 <unsupported_script_warning_printed,
10009 script_not_found_warning_printed>: Now bool.
10010 (auto_load_pspace_data): Change type.
10011 (~auto_load_pspace_info): Rename from
10012 auto_load_pspace_data_cleanup.
10013 (get_auto_load_pspace_data, init_loaded_scripts_info)
10014 (clear_section_scripts, maybe_print_unsupported_script_warning)
10015 (maybe_print_script_not_found_warning, _initialize_auto_load):
10016 Update.
10017
f6aa7436
TT
100182019-05-08 Tom Tromey <tom@tromey.com>
10019
10020 * objfiles.c (objfile_pspace_info): Add destructor and
10021 initializers.
10022 (objfiles_pspace_data): Change type.
10023 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10024 (get_objfile_pspace_data): Update.
10025 (objfiles_bfd_data): Change type.
10026 (get_objfile_bfd_data): Update.
10027 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10028
6ae614f6
TT
100292019-05-08 Tom Tromey <tom@tromey.com>
10030
10031 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10032 Change type.
10033 (get_catch_syscall_inferior_data): Update.
10034 (catch_syscall_inferior_data_cleanup): Remove.
10035 (_initialize_break_catch_syscall): Update.
10036
6509b8eb
TT
100372019-05-08 Tom Tromey <tom@tromey.com>
10038
10039 * inflow.c (struct terminal_info): Add destructor and
10040 initializers.
10041 (inflow_inferior_data): Change type.
10042 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10043 (get_inflow_inferior_data, inflow_inferior_exit)
10044 (swap_terminal_info, _initialize_inflow): Update.
10045
35632941
TT
100462019-05-08 Tom Tromey <tom@tromey.com>
10047
10048 * target-dcache.c (target_dcache_cleanup): Remove.
10049 (target_dcache_aspace_key): Change type.
10050 (target_dcache_init_p, target_dcache_invalidate)
10051 (target_dcache_get, target_dcache_get_or_init)
10052 (_initialize_target_dcache): Update.
10053 * dcache.h (struct dcache_deleter): New.
10054
3017b94d
TT
100552019-05-08 Tom Tromey <tom@tromey.com>
10056
10057 * symtab.c (struct symbol_cache): Add destructor and
10058 initializers.
10059 (symbol_cache_key): Move. Change type.
10060 (make_symbol_cache, free_symbol_cache): Remove.
10061 (get_symbol_cache): Update.
10062 (symbol_cache_cleanup): Remove.
10063 (ALL_PSPACES, symbol_cache_flush)
10064 (maintenance_print_symbol_cache)
10065 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10066 Update.
10067
a32ad8c5
TT
100682019-05-08 Tom Tromey <tom@tromey.com>
10069
10070 * symtab.c (struct main_info): Add destructor and initializers.
10071 (main_progspace_key): Move. Change type.
10072 (get_main_info): Update.
10073 (main_info_cleanup): Remove.
10074 (_initialize_symtab): Update.
10075
5f6e90a0
TT
100762019-05-08 Tom Tromey <tom@tromey.com>
10077
10078 * registry.h (DECLARE_REGISTRY): Define the _key class.
10079
1bd0c6e4
AB
100802019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10081
10082 * NEWS: Merge two 'New commands' sections.
10083
2228ef77
XR
100842019-05-08 Joel Brobecker <brobecker@adacore.com>
10085
10086 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10087 parameter and use Ada language definition instead.
10088 (ada_val_print_ptr): Remove unused language parameter.
10089 (ada_val_print_num): Remove language parameter and use Ada language
10090 definition instead.
10091 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10092 parameter.
10093 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10094 parameter and use Ada language definition instead.
10095 (ada_val_print_1): Update all ada_val_print_xxx calls.
10096 Remove language parameter.
10097 (ada_val_print): Update ada_val_print_1 call.
10098
60fcc1c3
TT
100992019-05-08 Tom Tromey <tromey@adacore.com>
10100
10101 * remote.c (remote_hw_watchpoint_limit)
10102 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10103 Now static.
10104
ed2b7c17
TT
101052019-05-08 Tom Tromey <tromey@adacore.com>
10106
10107 * maint.c (_initialize_maint_cmds): Move initialization code to
10108 remote.c.
10109 (watchdog, show_watchdog): Move to remote.c.
10110 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10111 "watchdog" static.
10112 (_initialize_remote): Move initialization code from maint.c.
10113 * defs.h (watchdog): Don't declare.
10114
b0be6c91
TT
101152019-05-08 Tom Tromey <tromey@adacore.com>
10116
10117 * tui/tui-interp.c: Include main.h.
10118 * interps.c: Include main.h.
10119 * main.h (interpreter_p): Declare.
10120 * defs.h (interpreter_p): Don't declare.
10121
587ee17b
TT
101222019-05-08 Tom Tromey <tromey@adacore.com>
10123
10124 * dwarf2loc.c: Include dwarf2read.h.
10125 * defs.h (read_unsigned_leb128): Don't declare.
10126 * dwarf2read.h (read_unsigned_leb128): Declare.
10127
ca1df239
TT
101282019-05-08 Tom Tromey <tromey@adacore.com>
10129
10130 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10131 method.
10132
99f20f08
TT
101332019-05-08 Tom Tromey <tromey@adacore.com>
10134
10135 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10136 when no wrap column is set.
10137
80e55b13
TT
101382019-05-08 Tom Tromey <tromey@adacore.com>
10139
10140 * c-lang.c (c_get_string): Handle non-C-style arrays.
10141
9d3421af
TT
101422019-05-08 Tom Tromey <tromey@adacore.com>
10143
10144 * typeprint.c (print_offset_data::update): Print the bit offset,
10145 not the number of bits remaining.
10146
844333e2
TT
101472019-05-08 Tom Tromey <tromey@adacore.com>
10148
10149 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10150 padding at end of comment.
10151
988915ee
TT
101522019-05-08 Tom Tromey <tromey@adacore.com>
10153
10154 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10155 Compare main types.
10156
26bfd823
TT
101572019-05-06 Tom Tromey <tom@tromey.com>
10158
10159 * common/scoped_mmap.c: Include common-defs.h.
10160 * common/scoped_mmap.h: Don't include config.h.
10161
89055eaa
TT
101622019-05-04 Tom Tromey <tom@tromey.com>
10163
10164 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10165 (struct aarch64_call_info): Add initializers.
10166 <si>: Now a std::vector.
10167 (pass_on_stack, aarch64_push_dummy_call): Update.
10168
5da01df5
TT
101692019-05-04 Simon Marchi <simon.marchi@efficios.com>
10170 Tom Tromey <tom@tromey.com>
10171
10172 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10173 (ppc_threads): Now a std::vector. Now static.
10174 (hwdebug_find_thread_points_by_tid)
10175 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10176 Update.
10177
fbdf05a1
TT
101782019-05-04 Tom Tromey <tom@tromey.com>
10179
10180 * arc-tdep.c (arc_tdesc_init): Return bool.
10181
06d16ec9
TT
101822019-05-04 Tom Tromey <tom@tromey.com>
10183
10184 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10185 Use gdb_assert_not_reached.
10186
9c056022
TT
101872019-05-04 Tom Tromey <tom@tromey.com>
10188
10189 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10190 "false".
10191
fa9c2a59
TT
101922019-05-04 Tom Tromey <tom@tromey.com>
10193
10194 * arc-tdep.c (arc_tdesc_init): Use bool.
10195
e2eb806a
TT
101962019-05-04 Tom Tromey <tom@tromey.com>
10197
10198 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10199
6fe87677
TT
102002019-05-04 Tom Tromey <tom@tromey.com>
10201
10202 * cli/cli-cmds.c (valid_command_p): Return bool.
10203
7f008c9e
TT
102042019-05-04 Tom Tromey <tom@tromey.com>
10205
10206 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10207 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10208
b6484282
RT
102092019-05-04 Raul Tambre <raul@tambre.ee>
10210
10211 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10212 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10213 operator for comparison.
10214
af97b416
TT
102152019-05-04 Tom Tromey <tom@tromey.com>
10216
10217 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10218 (lookup_partial_symbol, print_partial_symbols)
10219 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10220 (psymbol_compare): Update.
10221 (add_psymbol_to_bcache): Clear the entire psymbol.
10222 (maintenance_check_psymtabs): Update.
10223 * psympriv.h (struct partial_symbol): Don't derive from
10224 general_symbol_info.
10225 <obj_section, unrelocated_address, address,
10226 set_unrelocated_address>: Update.
10227 <ginfo>: New member.
10228 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10229 (debug_names::write_psymbols): Update.
10230
9d6d4be8
TV
102312019-05-04 Tom de Vries <tdevries@suse.de>
10232
10233 * contrib/cc-with-tweaks.sh: Support -n arg.
10234
66452beb
PW
102352019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10236
10237 * corelow.c (core_target::detach): Ensure frame cache and
10238 register caches are cleared.
10239 inferior.c (exit_inferior_1): Likewise.
10240
bde09ab7
TT
102412019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10242 Tom Tromey <tom@tromey.com>
10243
10244 * dictionary.c (collate_pending_symbols_by_language): Remove
10245 "struct" from foreach.
10246 * symtab.c (lookup_global_symbol_from_objfile)
10247 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10248 foreach.
10249 * ser-tcp.c (net_open): Remove "struct" from foreach.
10250 * objfiles.c (objfile_relocate, objfile_rebase)
10251 (objfile_has_symbols): Remove "struct" from foreach.
10252 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10253 from foreach.
10254 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10255 foreach.
10256 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10257 "struct" from foreach.
10258 * ada-lang.c (create_excep_cond_exprs)
10259 (ada_exception_catchpoint_cond_string): Remove "struct" from
10260 foreach.
10261
222a8d25
TT
102622019-05-03 Tom Tromey <tromey@adacore.com>
10263
10264 * ada-exp.y (convert_char_literal): Check suffix of each
10265 enumerator.
10266
fcd60b84
DP
102672019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10268
10269 PR ada/21406:
10270 * ada-exp.y (yywrap): Don't define.
10271 * ada-lex.l (%option): Add noyywrap
10272 (yywrap): Remove.
10273
5f2459c2
EZ
102742019-05-03 Eli Zaretskii <eliz@gnu.org>
10275
353ea2d1
EZ
10276 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10277 _WIN32_WINNT to the XP level, unless already defined to a higher
10278 level.
10279
10280 * unittests/parse-connection-spec-selftests.c:
10281 * ser-tcp.c:
10282 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10283 override.
10284
5f2459c2
EZ
10285 * symfile.c (find_separate_debug_file): Remove colon from the
10286 drive spec of DOS/Windows file names of the target, so that the
10287 file name produced from DEBUGDIR and the target's directory will
10288 be valid on DOS/Windows systems.
10289
80062eb9
AB
102902019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10291
10292 * rust-lang.c (val_print_struct): Handle printing structures
10293 containing strings.
10294
b8c05e85
TT
102952019-05-02 Tom Tromey <tromey@adacore.com>
10296
10297 * valarith.c (_initialize_valarith): Remove.
10298
4504bbde
TT
102992019-05-01 Tom Tromey <tromey@adacore.com>
10300
10301 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10302 bitfields.
10303
d48e62f4
TT
103042019-05-01 Tom Tromey <tromey@adacore.com>
10305
10306 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10307 for big-endian copies.
10308
15f18d14
AT
103092019-04-30 Ali Tamur <tamur@google.com>
10310 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10311 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10312 (read_3_bytes): New function.
10313
ab4ee614
JB
103142019-04-30 Joel Brobecker <brobecker@adacore.com>
10315
10316 * windows-nat.c (main_thread_id): Delete.
10317 (handle_output_debug_string): Replace main_thread_id by
10318 current_event.dwThreadId.
10319 (fake_create_process): Likewise.
10320 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10321 Do not set main_thread_id.
10322 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10323 current_event.dwThreadId.
10324 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10325
8ed5b76e
JB
103262019-04-30 Joel Brobecker <brobecker@adacore.com>
10327
10328 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10329 Use current_event.dwThreadId instead of main_thread_id.
10330
2ff0a947
TT
103312019-04-30 Tom Tromey <tromey@adacore.com>
10332
10333 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10334 (create_excep_cond_exprs): Iterate over program spaces.
10335 (ada_exception_catchpoint_cond_string): Examine all minimal
10336 symbols for exception types.
10337
a776957c
TT
103382019-04-30 Tom Tromey <tromey@adacore.com>
10339
10340 PR c++/24470:
10341 * dwarf2read.c (process_structure_scope): Handle case where type
10342 has template parameters but no symbol was created.
10343
bc68014d
AB
103442019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10345 Chris January <chris.january@arm.com>
10346
10347 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10348 qualifier.
10349 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10350
f1fdc960
AB
103512019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10352
10353 * f-typeprint.c (f_print_type): Update rules for printing
10354 whitespace.
10355 (f_type_print_varspec_suffix): Likewise.
10356
bf7a4de1
AB
103572019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10358 Chris January <chris.january@arm.com>
10359
10360 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10361 function arguments.
10362
bbe75b9d
AB
103632019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10364
10365 * f-lang.c (build_fortran_types): Change name of void type to
10366 lower case.
10367 * f-typeprint.c (f_type_print_base): Print the name of the void
10368 type, rather than a fixed string.
10369 * f-valprint.c (f_decorations): Use lower case void string.
10370
1db455a7
AB
103712019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10372 Chris January <chris.january@arm.com>
10373
10374 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10375 types for Fortran.
10376
b6d03bb2
AB
103772019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10378 Chris January <chris.january@arm.com>
10379 David Lecomber <david.lecomber@arm.com>
10380
10381 * f-exp.y (BINOP_INTRINSIC): New token.
10382 (exp): New parser rule handling BINOP_INTRINSIC.
10383 (f77_keywords): Add new builtin procedures.
10384 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10385 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10386 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10387 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10388 (print_unop_subexp_f): New function.
10389 (print_binop_subexp_f): New function.
10390 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10391 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10392 (dump_subexp_body_f): Likewise.
10393 (operator_check_f): Likewise.
10394 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10395 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10396
83228e93
AB
103972019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10398
10399 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10400 UNOP_KIND.
10401 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10402 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10403 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10404 (operator_length_f): New fuction.
10405 (print_subexp_f): New function.
10406 (op_name_f): New function.
10407 (dump_subexp_body_f): New function.
10408 (operator_check_f): New function.
10409 (exp_descriptor_f): Replace standard expression handling functions
10410 with new functions.
10411 * gdb/fortran-operator.def: New file.
10412 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10413 * gdb/std-operator.def: Remove UNOP_KIND.
10414
6fdcd7cc
AB
104152019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10416
10417 * std-operator.def: Remove unbalanced, stray double quote
10418 character.
10419
2e62ab40
AB
104202019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10421 Chris January <chris.january@arm.com>
10422 Daniel Everett <daniel.everett@arm.com>
10423 Nick Forrington <nick.forrington@arm.com>
10424 Richard Bunt <richard.bunt@arm.com>
10425
10426 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10427 of depth when printing anonymous structs or unions.
10428 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10429 Don't print either the top-level value, or the children if the
10430 max-depth is exceeded.
10431 (ppscm_print_children): When printing the key of a map, allow one
10432 extra level of depth.
10433 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10434 print either the top-level value, or the children if the max-depth
10435 is exceeded.
10436 (print_children): When printing the key of a map, allow one extra
10437 level of depth.
10438 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10439 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10440 (user_print_options): Initialise max_depth field.
10441 (val_print_scalar_or_string_type_p): New function.
10442 (val_print): Check to see if the max depth has been reached.
10443 (val_print_check_max_depth): Define new function.
10444 (show_print_max_depth): New function.
10445 (_initialize_valprint): Add 'print max-depth' option.
10446 * valprint.h (struct value_print_options) <max_depth>: New field.
10447 (val_print_check_max_depth): Declare new function.
10448 * NEWS: Document new feature.
10449
4be290b2
AB
104502019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10451
10452 * ada-lang.c (ada_language_defn): Initialise new field.
10453 * c-lang.c (c_is_string_type_p): New function.
10454 (c_language_defn): Initialise new field.
10455 (cplus_language_defn): Initialise new field.
10456 (asm_language_defn): Initialise new field.
10457 (minimal_language_defn): Initialise new field.
10458 * c-lang.h (c_is_string_type_p): Declare new function.
10459 * d-lang.c (d_language_defn): Initialise new field.
10460 * f-lang.c (f_is_string_type_p): New function.
10461 (f_language_defn): Initialise new field.
10462 * go-lang.c (go_is_string_type_p): New function.
10463 (go_language_defn): Initialise new field.
10464 * language.c (default_is_string_type_p): New function.
10465 (unknown_language_defn): Initialise new field.
10466 (auto_language_defn): Initialise new field.
10467 * language.h (struct language_defn) <la_is_string_type_p>: New
10468 member variable.
10469 (default_is_string_type_p): Declare new function.
10470 * m2-lang.c (m2_language_defn): Initialise new field.
10471 * objc-lang.c (objc_language_defn): Initialise new field.
10472 * opencl-lang.c (opencl_language_defn): Initialise new field.
10473 * p-lang.c (pascal_is_string_type_p): New function.
10474 (pascal_language_defn): Initialise new field.
10475 * rust-lang.c (rust_is_string_type_p): New function.
10476 (rust_language_defn): Initialise new field.
10477
721b08c6
AB
104782019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10479
10480 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10481 New field.
10482 * ada-lang.c (ada_language_defn): Initialise new field.
10483 * c-lang.c (c_language_defn): Likewise.
10484 (cplus_language_defn): Likewise.
10485 (asm_language_defn): Likewise.
10486 (minimal_language_defn): Likewise.
10487 * d-lang.c (d_language_defn): Likewise.
10488 * f-lang.c (f_language_defn): Likewise.
10489 * go-lang.c (go_language_defn): Likewise.
10490 * language.c (unknown_language_defn): Likewise.
10491 (auto_language_defn): Likewise.
10492 * m2-lang.c (m2_language_defn): Likewise.
10493 * objc-lang.c (objc_language_defn): Likewise.
10494 * opencl-lang.c (opencl_language_defn): Likewise.
10495 * p-lang.c (pascal_language_defn): Likewise.
10496 * rust-lang.c (rust_language_defn): Likewise.
10497
fc913e53
AB
104982019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10499
10500 * ada-lang.c (ada_is_character_type): Change return type to bool.
10501 (ada_is_string_type): Likewise.
10502 * ada-lang.h (ada_is_character_type): Update declaration
10503 (ada_is_string_type): Likewise.
10504
fa731fa0
PW
105052019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10506
10507 Support style in 'frame|thread apply'
10508
10509 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10510 * record.c (record_start, record_stop): Update callers of
10511 execute_command_to_string with false.
10512 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10513 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10514 methods.
10515 (class string_file): New constructor with term_out parameter.
10516 Override methods term_out and can_emit_style_escape. New member
10517 term_out.
10518 (class stdio_file): Override can_emit_style_escape.
10519 (class tee_file): Override term_out and can_emit_style_escape.
10520 * utils.h (can_emit_style_escape): Remove.
10521 * utils.c (can_emit_style_escape): Likewise.
10522 Update all callers of can_emit_style_escape (SOMESTREAM) to
10523 SOMESTREAM->can_emit_style_escape.
10524 * source-cache.c (source_cache::get_source_lines): Likewise.
10525 * stack.c (frame_apply_command_count): Call execute_command_to_string
10526 passing the term_out characteristic of the current gdb_stdout.
10527 * thread.c (thr_try_catch_cmd): Likewise.
10528 * top.c (execute_command_to_string): pass term_out parameter
10529 to construct the string_file for the command output.
10530 * ui-file.c (term_cli_styling): New function (most code moved
10531 from utils.c can_emit_style_escape).
10532 (string_file::string_file, string_file::can_emit_style_escape,
10533 stdio_file::can_emit_style_escape, tee_file::term_out,
10534 tee_file::can_emit_style_escape): New functions.
10535
136afab8
PW
105362019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10537
10538 * NEWS: Mention the new set|show may-call-functions.
10539 * infcall.c (may_call_functions_p): New variable.
10540 (show_may_call_functions_p): New function.
10541 (call_function_by_hand_dummy): Throws an error if not
10542 may-call-functions.
10543 (_initialize_infcall): Call add_setshow_boolean_cmd for
10544 may-call-functions.
10545
725cbb63
KS
105462019-04-25 Keith Seitz <keiths@redhat.com>
10547
10548 PR c++/24367
10549 * cp-support.c (inspect_type): Don't attempt substitutions
10550 of symbol with the same name.
10551
3d1cbb78
TT
105522019-04-25 Tom Tromey <tromey@adacore.com>
10553
10554 PR gdb/24475:
10555 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10556 static.
10557
94aeb44b
TT
105582019-04-25 Tom Tromey <tromey@adacore.com>
10559
10560 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10561 rvalue reference.
10562 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10563 (gdb_xml_parser::parse): Use std::move.
10564 * python/python-internal.h (gdbpy_convert_exception): Take a const
10565 reference.
10566 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10567 std::move.
10568 * python/py-utils.c (gdbpy_convert_exception): Take a const
10569 reference.
10570 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10571 Use std::move.
10572 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10573 Use std::move.
10574 * mi/mi-main.c (mi_print_exception): Take a const reference.
10575 * main.c (handle_command_errors): Take a const reference.
10576 * linespec.c (parse_linespec): Use std::move.
10577 * infcall.c (run_inferior_call): Use std::move.
10578 (call_function_by_hand_dummy): Use std::move.
10579 * exec.c (try_open_exec_file): Use std::move.
10580 * exceptions.h (exception_print, exception_fprintf)
10581 (exception_print_same): Update.
10582 * exceptions.c (print_exception, exception_print)
10583 (exception_fprintf, exception_print_same): Change parameters to
10584 const reference.
10585 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10586 * common/new-op.c: Use std::move.
10587 * common/common-exceptions.h (struct gdb_exception): Add move
10588 constructor.
10589 (struct gdb_exception_error, struct gdb_exception_quit, struct
10590 gdb_quit_bad_alloc): Change constructor to move constructor.
10591 (throw_exception): Change parameter to rvalue reference.
10592 * common/common-exceptions.c (throw_exception): Take rvalue
10593 reference.
10594 * cli/cli-interp.c (safe_execute_command): Use std::move.
10595 * breakpoint.c (insert_bp_location, location_to_sals): Use
10596 std::move.
10597
680d7fd5
TT
105982019-04-25 Tom Tromey <tromey@adacore.com>
10599
10600 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10601 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10602 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10603 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10604 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10605 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10606 guile/scm-value.c: Use unpack.
10607 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10608 gdbscm_gdb_exception.
10609 (gdbscm_throw_gdb_exception): Likewise.
10610 (struct gdbscm_gdb_exception): New.
10611 (unpack): New function.
10612 (gdbscm_wrap): Use unpack.
10613
c6fdd8b2
TT
106142019-04-25 Tom Tromey <tromey@adacore.com>
10615
10616 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10617 (gdb_rl_callback_handler): Use std::move.
10618 * common/common-exceptions.h (struct gdb_exception): Add move
10619 assignment operator.
10620 (throw_exception_sjlj): Change "exception" to const reference.
10621 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10622 (throw_exception_sjlj): Change "exception" to const reference.
10623
cc06b668
TT
106242019-04-25 Tom Tromey <tromey@adacore.com>
10625
10626 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10627 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10628 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10629 Update.
10630 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10631 Update.
10632 * mi/mi-interp.c (mi_interp::exec): Update.
10633 * linespec.c (parse_linespec): Update.
10634 * infcall.c (run_inferior_call): Update.
10635 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10636 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10637 (gdbscm_lookup_global_symbol): Update.
10638 * guile/scm-param.c (gdbscm_parameter_value): Update.
10639 * guile/scm-frame.c (gdbscm_frame_read_register)
10640 (gdbscm_frame_read_var): Update.
10641 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10642 * exec.c (try_open_exec_file): Update.
10643 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10644 (gdb_rl_callback_handler): Update.
10645 * common/common-exceptions.h (exception_none): Don't declare.
10646 * common/common-exceptions.c (exception_none): Don't define.
10647 (struct catcher) <exception>: Update.
10648 * cli/cli-interp.c (safe_execute_command): Update.
10649 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10650
cf532bd1
AT
106512019-04-25 Ali Tamur <tamur@google.com>
10652
10653 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10654 (read_attribute_value): Likewise.
10655 (dwarf2_read_addr_index): Update comment.
10656 (read_str_index): Add DW_FORM_strx.
10657 (dwarf2_string_attr): Likewise.
10658 (dwarf2_const_value_attr): Likewise.
10659 (dump_die_shallow): Likewise.
10660 (dwarf2_fetch_constant_bytes): Likewise.
10661 (skip_form_bytes): Likewise.
10662 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10663
82433e3e
SDJ
106642019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10665
10666 PR corefiles/11608
10667 PR corefiles/18187
10668 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10669 OFFSET. Verify if current mapping contains an ELF header.
10670 (linux_find_memory_regions_full): Adjust call to
10671 dump_mapping_p.
10672
723adb65
SL
106732019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10674 Kang Li <kanglictf@gmail.com>
10675
10676 PR gdb/21600
10677
10678 * dwarf2-frame.c (read_initial_length): Be consistent about using
10679 unsigned representation of length.
10680 (decode_frame_entry_1): Likewise. Check for wraparound of
10681 end pointer as well as buffer overflow.
10682
596179f7
SDJ
106832019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10684
10685 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10686 "vq".
10687
a59240a4
TT
106882019-04-24 Tom Tromey <tromey@adacore.com>
10689
10690 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10691
f872fdbb
AB
106922019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10693
10694 * s12z-tdep.c (s12z_unwind_pc): Delete.
10695 (s12z_unwind_sp): Delete.
10696 (s12z_gdbarch_init): Don't register deleted functions with
10697 gdbarch.
10698
b614e6f3
AB
106992019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10700
10701 * rl78-tdep.c (rl78_unwind_sp): Delete.
10702 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10703
14faed38
AB
107042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10705
10706 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10707 (xstormy16_unwind_pc): Delete.
10708 (xstormy16_dummy_id): Delete.
10709 (xstormy16_gdbarch_init): Don't register deleted functions with
10710 gdbarch.
10711
541aad8a
AB
107122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10713
10714 * vax-tdep.c (vax_unwind_pc): Delete.
10715 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10716
29222070
AB
107172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10718
10719 * v850-tdep.c (v850_unwind_sp): Delete.
10720 (v850_unwind_pc): Delete.
10721 (v850_dummy_id): Delete.
10722 (v850_gdbarch_init): Don't register deleted functions with
10723 gdbarch.
10724
0f534d76
AB
107252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10726
10727 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10728 (tilegx_unwind_pc): Delete.
10729 (tilegx_unwind_dummy_id): Delete.
10730 (tilegx_gdbarch_init): Don't register deleted functions with
10731 gdbarch.
10732
1ba7b7f9
AB
107332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10734
10735 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10736 (tic6x_dummy_id): Delete.
10737 (tic6x_gdbarch_init): Don't register deleted functions with
10738 gdbarch.
10739
d31f262c
AB
107402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10741
10742 * sparc-tdep.c (sparc_unwind_pc): Delete.
10743 (sparc32_gdbarch_init): Don't register deleted function with
10744 gdbarch.
10745
6d14d64d
AB
107462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10747
10748 * sh-tdep.c (sh_unwind_sp): Delete.
10749 (sh_unwind_pc): Delete.
10750 (sh_dummy_id): Delete.
10751 (sh_gdbarch_init): Don't register deleted functions with
10752 gdbarch.
10753
a40dde9d
AB
107542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10755
10756 * score-tdep.c (score_unwind_sp): Delete.
10757 (score_unwind_pc): Delete.
10758 (score_dummy_id): Delete.
10759 (score_gdbarch_init): Don't register deleted functions with
10760 gdbarch.
10761
47c47d69
AB
107622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10763
10764 * rx-tdep.c (rx_unwind_pc): Delete.
10765 (rx_unwind_sp): Delete.
10766 (rx_dummy_id): Delete.
10767 (rx_gdbarch_init): Don't register deleted functions with
10768 gdbarch. Update comment.
10769
833a4480
AB
107702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10771
10772 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10773 (rs6000_dummy_id): Delete.
10774 (rs6000_gdbarch_init): Don't register deleted functions with
10775 gdbarch.
10776
3f2cef49
AB
107772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10778
10779 * or1k-tdep.c (or1k_dummy_id): Delete.
10780 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10781
96acf884
AB
107822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10783
10784 * nios2-tdep.c (nios2_dummy_id): Delete.
10785 (nios2_unwind_sp): Delete.
10786 (nios2_gdbarch_init): Don't register deleted functions with
10787 gdbarch.
10788
ca0ab0aa
AB
107892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10790
10791 * nds32-tdep.c (nds32_dummy_id): Delete.
10792 (nds32_unwind_pc): Delete.
10793 (nds32_unwind_sp): Delete.
10794 (nds32_gdbarch_init): Don't register deleted functions with
10795 gdbarch.
10796
c8259044
AB
107972019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10798
10799 * msp430-tdep.c (msp430_unwind_pc): Delete.
10800 (msp430_unwind_sp): Delete.
10801 (msp430_dummy_id): Delete.
10802 (msp430_gdbarch_init): Don't register deleted functions with
10803 gdbarch.
10804
27f113c8
AB
108052019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10806
10807 * moxie-tdep.c (moxie_unwind_sp): Delete.
10808 (moxie_unwind_pc): Delete.
10809 (moxie_dummy_id): Delete.
10810 (moxie_gdbarch_init): Don't register deleted functions with
10811 gdbarch.
10812
aee6c3cd
AB
108132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10814
10815 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10816 (mn10300_unwind_pc): Delete.
10817 (mn10300_unwind_sp): Delete.
10818 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10819 mn10300_unwind_sp.
10820 (mn10300_frame_unwind_init): Don't register deleted functions with
10821 gdbarch.
10822
8e2b5aea
AB
108232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10824
10825 * mep-tdep.c (mep_unwind_pc): Delete.
10826 (mep_unwind_sp): Delete.
10827 (mep_dummy_id): Delete.
10828 (mep_gdbarch_init): Don't register deleted functions with
10829 gdbarch.
10830
43cf3ede
AB
108312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10832
10833 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10834 (m68hc11_unwind_sp): Delete.
10835 (m68hc11_gdbarch_init): Don't register deleted functions with
10836 gdbarch.
10837
5e79b7bb
AB
108382019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10839
10840 * m32r-tdep.c (m32r_unwind_sp): Delete.
10841 (m32r_unwind_pc): Delete.
10842 (m32r_dummy_id): Delete.
10843 (m32r_gdbarch_init): Don't register deleted functions with
10844 gdbarch.
10845
89b268d8
AB
108462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10847
10848 * m32c-tdep.c (m32c_unwind_pc): Delete.
10849 (m32c_unwind_sp): Delete.
10850 (m32c_dummy_id): Delete.
10851 (m32c_gdbarch_init): Don't register deleted functions with
10852 gdbarch.
10853
946c28d2
AB
108542019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10855
10856 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10857 (lm32_unwind_pc): Delete.
10858 (lm32_dummy_id): Delete.
10859 (lm32_gdbarch_init): Don't register deleted functions with
10860 gdbarch.
10861
bf12844a
AB
108622019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10863
10864 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10865 (iq2000_unwind_pc): Delete.
10866 (iq2000_dummy_id): Delete.
10867 (iq2000_gdbarch_init): Don't register deleted functions with
10868 gdbarch.
10869
ecbc06d2
AB
108702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10871
10872 * nds32-tdep.c (nds32_type_align): Delete.
10873 (nds32_push_dummy_call): Use type_align instead.
10874
030197b4
AB
108752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10876
10877 * arm-tdep.c (arm_type_align): Only handle vector override case.
10878 (arm_push_dummy_call): Use type_align.
10879 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10880
b907456c
AB
108812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10882
10883 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10884 case.
10885 (pass_on_stack): Use type_align.
10886 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10887 function.
10888
9e97ba43
TT
108892019-04-23 Tom Tromey <tromey@adacore.com>
10890
10891 * dwarf2read.c (line_header::file_name_at): Remove unused
10892 overload.
10893
6892f601
TV
108942019-04-23 Tom de Vries <tdevries@suse.de>
10895
10896 PR gdb/24438
10897 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10898 invocation.
10899
336d760d
AT
10900
109012019-03-27 Ali Tamur <tamur@google.com>
10902
10903 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10904 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10905 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10906 (dwarf_expr_context::get_addr_index): Likewise
10907 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10908 (symbol_needs_eval_context::get_addr_index): Likewise
10909 (disassemble_dwarf_expression): Add DW_OP_addrx
10910 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10911 (read_cutu_die_from_dwo): Update comment
10912 (skip_one_die): Add DW_FORM_addrx
10913 (read_attribute_value): Likewise
10914 (var_decode_location): Add DW_OP_addrx
10915 (dwarf2_const_value_attr): Add DW_FORM_addrx
10916 (dump_die_shallow): Likewise
10917 (dwarf2_fetch_constant_bytes): Likewise
10918 (decode_locdesc): Add DW_OP_addrx
10919 (skip_form_bytes): Add DW_FORM_addrx
10920
ad9d13f8
AT
109212019-04-22 Ali Tamur <tamur@google.com>
10922
10923 * MAINTAINERS (Write After Approval): Add self.
10924
d70cc3ba
SM
109252019-04-22 Simon Marchi <simon.marchi@efficios.com>
10926
10927 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10928 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10929 (open_symbol_file_object): Likewise.
10930 (svr4_default_sos): Add info parameter.
10931 (svr4_read_so_list): Likewise.
10932 (svr4_current_sos_direct): Adjust functions calls to pass down
10933 info.
10934 (svr4_current_sos_1): Add info parameter.
10935 (svr4_current_sos): Call get_svr4_info, pass info down to
10936 svr4_current_sos_1.
10937 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10938 get_svr4_info.
10939 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10940 get_svr4_info.
10941 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10942 to get_svr4_info.
10943 (probes_table_remove_objfile_probes): Likewise.
10944 (register_solib_event_probe): Add info parameter.
10945 (solist_update_incremental): Pass info parameter down to
10946 svr4_read_so_list.
10947 (disable_probes_interface): Add info parameter.
10948 (svr4_handle_solib_event): Pass current_program_space to
10949 get_svr4_info. Adjust disable_probes_interface cleanup.
10950 (svr4_create_probe_breakpoints): Add info parameter, pass it
10951 down to register_solib_event_probe.
10952 (svr4_create_solib_event_breakpoints): Add info parameter,
10953 pass it down to svr4_create_probe_breakpoints.
10954 (enable_break): Pass info down to
10955 svr4_create_solib_event_breakpoints.
10956 (svr4_solib_create_inferior_hook): Pass current_program_space to
10957 get_svr4_info.
10958 (svr4_clear_solib): Likewise.
10959
7905fc35
PA
109602019-04-22 Pedro Alves <palves@redhat.com>
10961
10962 * solib-svr4.c (svr4_free_objfile_observer): New.
10963 (probe_and_action::objfile): New field.
10964 (probes_table_htab_remove_objfile_probes)
10965 (probes_table_remove_objfile_probes): New functions.
10966 (register_solib_event_probe): Add 'objfile' parameter. Store it
10967 in the new probe_and_action. Don't store the probe in 'lookup'.
10968 (svr4_create_probe_breakpoints): Pass objfile to
10969 register_solib_event_probe.
10970 (_initialize_svr4_solib): Register a free_objfile observer.
10971
fb881986
TT
109722019-04-19 Tom Tromey <tom@tromey.com>
10973
10974 * common/queue.h: Remove.
10975
8732db6c
TT
109762019-04-19 Tom Tromey <tom@tromey.com>
10977
10978 * event-loop.c: Don't include "common/queue.h".
10979
97dfbadd
TT
109802019-04-19 Tom Tromey <tom@tromey.com>
10981
10982 * remote.c (remote_target): Use delete.
10983 * remote-notif.h: Include <list>, not "common/queue.h".
10984 (notif_client_p): Remove typedef.
10985 (remote_notif_state): Add constructor, destructor, initializer.
10986 <notif_queue>: Now a std::list.
10987 (remote_notif_state_xfree): Don't declare.
10988 * remote-notif.c (remote_notif_process, handle_notification)
10989 (remote_notif_state_allocate): Update.
10990 (~remote_notif_state): Rename from remote_notif_state_xfree.
10991
cf250e36
TT
109922019-04-19 Tom Tromey <tom@tromey.com>
10993
10994 * symfile.c (reread_symbols): Update.
10995 * objfiles.c (objfile_register_static_link)
10996 (objfile_lookup_static_link): Update
10997 (~objfile) Don't delete static_links.
10998 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10999
61f4b350
TT
110002019-04-19 Tom Tromey <tom@tromey.com>
11001
11002 * type-stack.h (struct type_stack) <insert>: Constify string.
11003 * type-stack.c (type_stack::insert): Constify string.
11004 * gdbtypes.h (lookup_template_type): Update.
11005 (address_space_name_to_int): Update.
11006 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11007 const.
11008 (lookup_template_type): Make name const.
11009 * c-exp.y: Update rules.
11010 (lex_one_token, classify_name, classify_inner_name)
11011 (c_print_token): Update.
11012 * p-exp.y: Update rules.
11013 (yylex): Update.
11014 * f-exp.y: Update rules.
11015 (yylex): Update.
11016 * d-exp.y: Update rules.
11017 (lex_one_token, classify_name, classify_inner_name): Update.
11018 * parse.c (write_dollar_variable, copy_name): Return std::string.
11019 * parser-defs.h (copy_name): Change return type.
11020 * m2-exp.y: Update rules.
11021 (yylex): Update.
11022 * go-exp.y (lex_one_token): Update.
11023 Update rules.
11024 (classify_unsafe_function, classify_packaged_name)
11025 (classify_name, yylex): Update.
11026
189b8c2e
ST
110272019-04-19 Sergei Trofimovich <siarheit@google.com>
11028
11029 * configure.ac: add --enable-source-highlight switch.
11030 * configure: Regenerate.
11031 * top.c (print_gdb_version): plumb --enable-source-highlight
11032 status to "show configuration".
11033
8ecb59f8
TT
110342019-04-19 Tom Tromey <tromey@adacore.com>
11035
11036 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11037 Check ADA_TYPE_P.
11038 (empty_record, ada_template_to_fixed_record_type_1)
11039 (template_to_static_fixed_type)
11040 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11041 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11042 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11043 macros.
11044
62160ec9
TT
110452019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11046
11047 PR symtab/24423:
11048 * source.c (print_source_lines_base): Advance "iter" when a
11049 control character is seen.
11050
f2ae8bc8
PW
110512019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11052
11053 * inferior.h (struct infcall_suspend_state_deleter):
11054 Catch exception in destructor to avoid crash.
11055
d563b953
PW
110562019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11057
11058 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11059 close to the add_com "shell".
11060
dc34c897
TT
110612019-04-18 Tom Tromey <tromey@adacore.com>
11062
11063 * process-stratum-target.h (class process_stratum_target)
11064 <stratum>: Add "final".
11065
a12e5744
TT
110662019-04-17 Tom Tromey <tromey@adacore.com>
11067
11068 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11069 against nullptr before use.
11070
a7e559cc
AH
110712019-04-17 Alan Hayward <alan.hayward@arm.com>
11072
11073 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11074
c01660c6
AB
110752019-04-17 Jim Wilson <jimw@sifive.com>
11076 Andrew Burgess <andrew.burgess@embecosm.com>
11077
11078 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11079 code read might fail, assume 4-byte breakpoint in that case.
11080
4aa866af
LS
110812019-04-15 Leszek Swirski <leszeks@google.com>
11082
11083 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11084 rather than a hand-rolled POD check when checking for forced MEMORY
11085 classification.
11086
48574d91
AH
110872019-04-15 Alan Hayward <alan.hayward@arm.com>
11088
11089 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11090 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11091 function.
11092 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11093 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11094 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11095 declaration.
11096
4da037ef
AH
110972019-04-15 Alan Hayward <alan.hayward@arm.com>
11098
11099 * aarch64-linux-nat.c
11100 (aarch64_linux_nat_target::thread_architecture): Add override.
11101 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11102 each VQ.
11103
ccb8d7e8
AH
111042019-04-15 Alan Hayward <alan.hayward@arm.com>
11105
11106 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11107
35add35e
AB
111082019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11109
11110 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11111 target types of size 96-bits, add some additional comments, and
11112 check that the builtin type we found was the correct size.
11113
51196bbc
EZ
111142019-04-12 Eli Zaretskii <eliz@gnu.org>
11115
11116 * utils.c (prompt_for_continue): Don't restore the styling at the
11117 end, as applied_style has the wrong value. This fixes styling in
11118 long lists of file names that are interrupted by the "Continue?"
11119 prompt.
11120
62253a61
AB
111212019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11122
11123 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11124 * c-lang.c (c_language_defn): Likewise.
11125 (cplus_language_defn): Likewise.
11126 (asm_language_defn): Likewise.
11127 (minimal_language_defn): Likewise.
11128 * d-lang.c (d_language_defn): Likewise.
11129 * f-lang.c (f_language_defn): Likewise.
11130 * go-lang.c (go_language_defn): Likewise.
11131 * language.c (unknown_language_defn): Likewise.
11132 (auto_language_defn): Likewise.
11133 * language.h (struct language_defn): Remove la_magic field.
11134 (LANG_MAGIC): Delete.
11135 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11136 * objc-lang.c (objc_language_defn): Likewise.
11137 * opencl-lang.c (opencl_language_defn): Likewise.
11138 * p-lang.c (pascal_language_defn): Likewise.
11139 * rust-lang.c (rust_language_defn): Likewise.
11140
a9158a86
AB
111412019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11142
11143 * riscv-tdep.c (riscv_type_align): New function.
11144 (riscv_type_alignment): Delete.
11145 (riscv_arg_location): Use 'type_align'.
11146 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11147
41077b66
AB
111482019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11149
11150 * gdbtypes.c (type_align): A struct with no non-static fields also
11151 has alignment of 1.
11152
9f0272f8
AB
111532019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11154
11155 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11156 component to 0.
11157 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11158 member.
11159 (riscv_struct_info::analyse): New implementation using new
11160 analyse_inner member function.
11161 (riscv_struct_info::field_offset): New member function.
11162 (riscv_struct_info::m_offsets): New member variable.
11163 (riscv_struct_info::analyse_inner): New private member function,
11164 takes the old implementation of riscv_struct_info::analyse but
11165 extended to track field offsets.
11166 (riscv_call_arg_struct): Update the struct folding special cases
11167 to handle cases where empty C++ structs, which are non-zero
11168 length, are found.
11169 (riscv_arg_location): Initialise the length of each location, a
11170 non-zero length now indicates the location is in use.
11171 (riscv_push_dummy_call): Allow for the first location having a
11172 non-zero offset when setting up arguments.
11173 (riscv_return_value): Likewise, but for return values.
11174
02cf60c7
TT
111752019-04-11 Tom Tromey <tromey@adacore.com>
11176
11177 * utils.c (internal_vproblem): Make "msg" const.
11178
68811f8f
AH
111792019-04-11 Alan Hayward <alan.hayward@arm.com>
11180
11181 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11182 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11183 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11184 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11185
3f52fdbc
KB
111862019-04-10 Kevin Buettner <kevinb@redhat.com>
11187
11188 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11189 function.
11190 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11191 of amd64_collect_native_gregset.
11192 (amd64_linux_nat_target::store_registers): Likewise.
11193
e9ad22ee
TT
111942019-04-10 Tom Tromey <tom@tromey.com>
11195
11196 * symtab.c (lookup_global_symbol_from_objfile)
11197 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11198 * objfiles.h (class separate_debug_iterator): New.
11199 (class separate_debug_range): New.
11200 (struct objfile) <separate_debug_objfiles>: New method.
11201 (objfile_separate_debug_iterate): Don't declare.
11202 * objfiles.c (separate_debug_iterator::operator++): Rename from
11203 objfile_separate_debug_iterate.
11204 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11205 iterator.
11206 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11207 iterator.
11208
ee371134
TT
112092019-04-10 Tom Tromey <tom@tromey.com>
11210
11211 * symfile.c (reread_symbols): Remove old comment.
11212 * objfiles.c (free_all_objfiles): Fix a typo.
11213
bf227d61
TT
112142019-04-10 Tom Tromey <tom@tromey.com>
11215
11216 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11217 * minsyms.c (lookup_minimal_symbol): Use foreach.
11218 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11219 (lookup_minimal_symbol_solib_trampoline): Likewise.
11220 * symfile.c (reread_symbols): Use foreach.
11221
8dc433a0
TT
112222019-04-09 Ivan Begert <ivanbegert@gmail.com>
11223 Tom Tromey <tromey@adacore.com>
11224
11225 PR rust/24414:
11226 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11227 (rust_lex_int_test): Change "value" to be LONGEST.
11228 (rust_lex_tests): Add test for long integer literal.
11229
9ab8741a
TT
112302019-04-09 Tom Tromey <tromey@adacore.com>
11231
11232 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11233 to bool.
11234 (extended_remote_target::attach): Update.
11235 (remote_target::remote_notice_new_inferior): Update.
11236 (remote_target::add_current_inferior_and_thread): Update.
11237 * inferior.c (exit_inferior_1): Use "false".
11238 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11239
e242fd12
SM
112402019-04-09 Simon Marchi <simon.marchi@efficios.com>
11241
9ca1957f 11242 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11243 the "start" command.
11244
2b0c8b01
KB
112452019-04-08 Kevin Buettner <kevinb@redhat.com>
11246
11247 * python/py-inferior.c (infpy_thread_from_thread_handle):
11248 Adjust comments to reflect renaming of thread_from_thread_handle
11249 to thread_from_handle. Adjust keywords. Fix type error message.
11250 (inferior_object_methods): Add thread_from_handle. Retain
11251 thread_from_thread_handle, but mark it as deprecated.
11252
50a82723
KB
112532019-04-08 Kevin Buettner <kevinb@redhat.com>
11254
11255 * gdbthread.h (find_thread_by_handle): Revise declaration.
11256 * thread.c (find_thread_by_handle): Likewise. Adjust
11257 implementation too.
11258 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11259 support for buffer objects as handles.
11260
cf63b016
KB
112612019-04-08 Kevin Buettner <kevinb@redhat.com>
11262
11263 * python/py-infthread.c (thpy_thread_handle): New function.
11264 (thread_object_methods): Register thpy_thread_handle.
11265
3d6c6204
KB
112662019-04-08 Kevin Buettner <kevinb@redhat.com>
11267
11268 * gdbthread.h (thread_to_thread_handle): Declare.
11269 * thread.c (gdbtypes.h): Include.
11270 (thread_to_thread_handle): New function.
11271
11272 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11273 (target_thread_info_to_thread_handle): Declare.
11274 * target.c (target_thread_info_to_thread_handle): New function.
11275 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11276 * target-delegates.c: Regenerate.
11277
11278 * linux-thread-db.c (class thread_db_target): Add method
11279 thread_info_to_thread_handle.
11280 (thread_db_target::thread_info_to_thread_handle): Define.
11281 * remote.c (class remote_target): Add new method
11282 thread_info_to_thread_handle.
11283 (remote_target::thread_info_to_thread_handle): Define.
11284
56be6ea8
PA
112852019-04-08 Pedro Alves <palves@redhat.com>
11286
11287 * common/common-exceptions.c (throw_exception): Don't create
11288 named object to throw; throw directly.
11289 (throw_it): Likewise. Don't initialize gdb_exception::message
11290 here, with new; pass FMT and AP to the ctor instead.
11291 * common/common-exceptions.h: Include <string>.
11292 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11293 const char *, va_list)): New ctor. Use std::make_shared.
11294 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11295 errors)): Delete.
11296 (gdb_exception_error::gdb_exception_error(enum errors, const char
11297 *, va_list)): New.
11298 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11299 Add assertion.
11300 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11301 errors)): Delete.
11302 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11303 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11304 Add assertion.
11305
eedc3f4f
TT
113062019-04-08 Tom Tromey <tom@tromey.com>
11307
11308 * valops.c (value_rtti_indirect_type): Replace throw_exception
11309 with throw.
11310 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11311 with throw.
11312 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11313 throw.
11314 * target.c (target_translate_tls_address): Replace throw_exception
11315 with throw.
11316 * stack.c (frame_apply_command_count): Replace throw_exception
11317 with throw.
11318 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11319 throw.
11320 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11321 with throw.
11322 * rs6000-tdep.c (rs6000_frame_cache)
11323 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11324 * remote.c: Replace throw_exception with throw.
11325 * record-full.c (record_full_message, record_full_wait_1)
11326 (record_full_restore): Replace throw_exception with throw.
11327 * record-btrace.c:
11328 (get_thread_current_frame_id, record_btrace_start_replaying)
11329 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11330 (cmd_record_btrace_start): Replace throw_exception with throw.
11331 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11332 throw.
11333 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11334 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11335 * linespec.c:
11336 (find_linespec_symbols): Replace throw_exception with throw.
11337 * infrun.c (displaced_step_prepare, resume): Replace
11338 throw_exception with throw.
11339 * infcmd.c (post_create_inferior): Replace throw_exception with
11340 throw.
11341 * inf-loop.c (inferior_event_handler): Replace throw_exception
11342 with throw.
11343 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11344 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11345 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11346 (get_prev_frame_always, get_frame_pc_if_available)
11347 (get_frame_address_in_block_if_available, get_frame_language):
11348 Replace throw_exception with throw.
11349 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11350 throw_exception with throw.
11351 * eval.c (fetch_subexp_value, evaluate_var_value)
11352 (evaluate_funcall, evaluate_subexp_standard): Replace
11353 throw_exception with throw.
11354 * dwarf2loc.c (call_site_find_chain)
11355 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11356 Replace throw_exception with throw.
11357 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11358 with throw.
11359 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11360 throw.
11361 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11362 * completer.c (complete_line_internal): Replace throw_exception
11363 with throw.
11364 * compile/compile-object-run.c (compile_object_run): Replace
11365 throw_exception with throw.
11366 * cli/cli-script.c (process_next_line): Replace throw_exception
11367 with throw.
11368 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11369 (btrace_enable, btrace_maint_update_pt_packets): Replace
11370 throw_exception with throw.
11371 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11372 throw_exception with throw.
11373 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11374 throw_exception with throw.
11375 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11376 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11377 * aarch64-tdep.c (aarch64_make_prologue_cache)
11378 (aarch64_make_stub_cache): Replace throw_exception with throw.
11379
26003a20
TT
113802019-04-08 Tom Tromey <tom@tromey.com>
11381
11382 * common/common-exceptions.c (throw_exception): Rename from
11383 throw_exception_cxx. Remove old copy. Make argument const.
11384 (throw_it): Create and throw exception objects directly.
11385 * common/common-exceptions.h (throw_exception): Make argument
11386 const.
11387 (struct gdb_exception_error): Add constructor.
11388 (struct gdb_exception_quit): Add constructor.
11389
d272eb37
TT
113902019-04-08 Tom Tromey <tom@tromey.com>
11391
11392 * common/common-exceptions.h (exception_rethrow): Don't declare.
11393 (TRY_SJLJ): Update comment.
11394 (TRY, CATCH, END_CATCH): Remove.
11395 * common/common-exceptions.c (exception_rethrow): Remove.
11396
230d2906
TT
113972019-04-08 Tom Tromey <tom@tromey.com>
11398
11399 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11400 Remove.
11401 (gdb_exception_error): Rename from
11402 gdb_exception_RETURN_MASK_ERROR.
11403 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11404 (gdb_quit_bad_alloc): Update.
11405 * aarch64-tdep.c: Update.
11406 * ada-lang.c: Update.
11407 * ada-typeprint.c: Update.
11408 * ada-valprint.c: Update.
11409 * amd64-tdep.c: Update.
11410 * arch-utils.c: Update.
11411 * break-catch-throw.c: Update.
11412 * breakpoint.c: Update.
11413 * btrace.c: Update.
11414 * c-varobj.c: Update.
11415 * cli/cli-cmds.c: Update.
11416 * cli/cli-interp.c: Update.
11417 * cli/cli-script.c: Update.
11418 * common/common-exceptions.c: Update.
11419 * common/new-op.c: Update.
11420 * common/selftest.c: Update.
11421 * compile/compile-c-symbols.c: Update.
11422 * compile/compile-cplus-symbols.c: Update.
11423 * compile/compile-object-load.c: Update.
11424 * compile/compile-object-run.c: Update.
11425 * completer.c: Update.
11426 * corelow.c: Update.
11427 * cp-abi.c: Update.
11428 * cp-support.c: Update.
11429 * cp-valprint.c: Update.
11430 * darwin-nat.c: Update.
11431 * disasm-selftests.c: Update.
11432 * dtrace-probe.c: Update.
11433 * dwarf-index-cache.c: Update.
11434 * dwarf-index-write.c: Update.
11435 * dwarf2-frame-tailcall.c: Update.
11436 * dwarf2-frame.c: Update.
11437 * dwarf2loc.c: Update.
11438 * dwarf2read.c: Update.
11439 * eval.c: Update.
11440 * event-loop.c: Update.
11441 * event-top.c: Update.
11442 * exec.c: Update.
11443 * f-valprint.c: Update.
11444 * fbsd-tdep.c: Update.
11445 * frame-unwind.c: Update.
11446 * frame.c: Update.
11447 * gdbtypes.c: Update.
11448 * gnu-v3-abi.c: Update.
11449 * guile/guile-internal.h: Update.
11450 * guile/scm-block.c: Update.
11451 * guile/scm-breakpoint.c: Update.
11452 * guile/scm-cmd.c: Update.
11453 * guile/scm-disasm.c: Update.
11454 * guile/scm-frame.c: Update.
11455 * guile/scm-lazy-string.c: Update.
11456 * guile/scm-math.c: Update.
11457 * guile/scm-param.c: Update.
11458 * guile/scm-ports.c: Update.
11459 * guile/scm-pretty-print.c: Update.
11460 * guile/scm-symbol.c: Update.
11461 * guile/scm-symtab.c: Update.
11462 * guile/scm-type.c: Update.
11463 * guile/scm-value.c: Update.
11464 * i386-linux-tdep.c: Update.
11465 * i386-tdep.c: Update.
11466 * inf-loop.c: Update.
11467 * infcall.c: Update.
11468 * infcmd.c: Update.
11469 * infrun.c: Update.
11470 * jit.c: Update.
11471 * language.c: Update.
11472 * linespec.c: Update.
11473 * linux-fork.c: Update.
11474 * linux-nat.c: Update.
11475 * linux-tdep.c: Update.
11476 * linux-thread-db.c: Update.
11477 * main.c: Update.
11478 * mi/mi-cmd-break.c: Update.
11479 * mi/mi-cmd-stack.c: Update.
11480 * mi/mi-interp.c: Update.
11481 * mi/mi-main.c: Update.
11482 * objc-lang.c: Update.
11483 * p-valprint.c: Update.
11484 * parse.c: Update.
11485 * ppc-linux-tdep.c: Update.
11486 * printcmd.c: Update.
11487 * python/py-arch.c: Update.
11488 * python/py-breakpoint.c: Update.
11489 * python/py-cmd.c: Update.
11490 * python/py-finishbreakpoint.c: Update.
11491 * python/py-frame.c: Update.
11492 * python/py-framefilter.c: Update.
11493 * python/py-gdb-readline.c: Update.
11494 * python/py-inferior.c: Update.
11495 * python/py-infthread.c: Update.
11496 * python/py-lazy-string.c: Update.
11497 * python/py-linetable.c: Update.
11498 * python/py-objfile.c: Update.
11499 * python/py-param.c: Update.
11500 * python/py-prettyprint.c: Update.
11501 * python/py-progspace.c: Update.
11502 * python/py-record-btrace.c: Update.
11503 * python/py-record.c: Update.
11504 * python/py-symbol.c: Update.
11505 * python/py-type.c: Update.
11506 * python/py-unwind.c: Update.
11507 * python/py-utils.c: Update.
11508 * python/py-value.c: Update.
11509 * python/python.c: Update.
11510 * record-btrace.c: Update.
11511 * record-full.c: Update.
11512 * remote-fileio.c: Update.
11513 * remote.c: Update.
11514 * riscv-tdep.c: Update.
11515 * rs6000-aix-tdep.c: Update.
11516 * rs6000-tdep.c: Update.
11517 * rust-exp.y: Update.
11518 * rust-lang.c: Update.
11519 * s390-tdep.c: Update.
11520 * selftest-arch.c: Update.
11521 * solib-dsbt.c: Update.
11522 * solib-frv.c: Update.
11523 * solib-spu.c: Update.
11524 * solib-svr4.c: Update.
11525 * solib.c: Update.
11526 * sparc64-linux-tdep.c: Update.
11527 * stack.c: Update.
11528 * symfile-mem.c: Update.
11529 * symmisc.c: Update.
11530 * target.c: Update.
11531 * thread.c: Update.
11532 * top.c: Update.
11533 * tracefile-tfile.c: Update.
11534 * tui/tui.c: Update.
11535 * typeprint.c: Update.
11536 * unittests/cli-utils-selftests.c: Update.
11537 * unittests/parse-connection-spec-selftests.c: Update.
11538 * valops.c: Update.
11539 * valprint.c: Update.
11540 * value.c: Update.
11541 * varobj.c: Update.
11542 * windows-nat.c: Update.
11543 * x86-linux-nat.c: Update.
11544 * xml-support.c: Update.
11545
a70b8144
TT
115462019-04-08 Tom Tromey <tom@tromey.com>
11547
11548 * xml-support.c: Use C++ exception handling.
11549 * x86-linux-nat.c: Use C++ exception handling.
11550 * windows-nat.c: Use C++ exception handling.
11551 * varobj.c: Use C++ exception handling.
11552 * value.c: Use C++ exception handling.
11553 * valprint.c: Use C++ exception handling.
11554 * valops.c: Use C++ exception handling.
11555 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11556 handling.
11557 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11558 * typeprint.c: Use C++ exception handling.
11559 * tui/tui.c: Use C++ exception handling.
11560 * tracefile-tfile.c: Use C++ exception handling.
11561 * top.c: Use C++ exception handling.
11562 * thread.c: Use C++ exception handling.
11563 * target.c: Use C++ exception handling.
11564 * symmisc.c: Use C++ exception handling.
11565 * symfile-mem.c: Use C++ exception handling.
11566 * stack.c: Use C++ exception handling.
11567 * sparc64-linux-tdep.c: Use C++ exception handling.
11568 * solib.c: Use C++ exception handling.
11569 * solib-svr4.c: Use C++ exception handling.
11570 * solib-spu.c: Use C++ exception handling.
11571 * solib-frv.c: Use C++ exception handling.
11572 * solib-dsbt.c: Use C++ exception handling.
11573 * selftest-arch.c: Use C++ exception handling.
11574 * s390-tdep.c: Use C++ exception handling.
11575 * rust-lang.c: Use C++ exception handling.
11576 * rust-exp.y: Use C++ exception handling.
11577 * rs6000-tdep.c: Use C++ exception handling.
11578 * rs6000-aix-tdep.c: Use C++ exception handling.
11579 * riscv-tdep.c: Use C++ exception handling.
11580 * remote.c: Use C++ exception handling.
11581 * remote-fileio.c: Use C++ exception handling.
11582 * record-full.c: Use C++ exception handling.
11583 * record-btrace.c: Use C++ exception handling.
11584 * python/python.c: Use C++ exception handling.
11585 * python/py-value.c: Use C++ exception handling.
11586 * python/py-utils.c: Use C++ exception handling.
11587 * python/py-unwind.c: Use C++ exception handling.
11588 * python/py-type.c: Use C++ exception handling.
11589 * python/py-symbol.c: Use C++ exception handling.
11590 * python/py-record.c: Use C++ exception handling.
11591 * python/py-record-btrace.c: Use C++ exception handling.
11592 * python/py-progspace.c: Use C++ exception handling.
11593 * python/py-prettyprint.c: Use C++ exception handling.
11594 * python/py-param.c: Use C++ exception handling.
11595 * python/py-objfile.c: Use C++ exception handling.
11596 * python/py-linetable.c: Use C++ exception handling.
11597 * python/py-lazy-string.c: Use C++ exception handling.
11598 * python/py-infthread.c: Use C++ exception handling.
11599 * python/py-inferior.c: Use C++ exception handling.
11600 * python/py-gdb-readline.c: Use C++ exception handling.
11601 * python/py-framefilter.c: Use C++ exception handling.
11602 * python/py-frame.c: Use C++ exception handling.
11603 * python/py-finishbreakpoint.c: Use C++ exception handling.
11604 * python/py-cmd.c: Use C++ exception handling.
11605 * python/py-breakpoint.c: Use C++ exception handling.
11606 * python/py-arch.c: Use C++ exception handling.
11607 * printcmd.c: Use C++ exception handling.
11608 * ppc-linux-tdep.c: Use C++ exception handling.
11609 * parse.c: Use C++ exception handling.
11610 * p-valprint.c: Use C++ exception handling.
11611 * objc-lang.c: Use C++ exception handling.
11612 * mi/mi-main.c: Use C++ exception handling.
11613 * mi/mi-interp.c: Use C++ exception handling.
11614 * mi/mi-cmd-stack.c: Use C++ exception handling.
11615 * mi/mi-cmd-break.c: Use C++ exception handling.
11616 * main.c: Use C++ exception handling.
11617 * linux-thread-db.c: Use C++ exception handling.
11618 * linux-tdep.c: Use C++ exception handling.
11619 * linux-nat.c: Use C++ exception handling.
11620 * linux-fork.c: Use C++ exception handling.
11621 * linespec.c: Use C++ exception handling.
11622 * language.c: Use C++ exception handling.
11623 * jit.c: Use C++ exception handling.
11624 * infrun.c: Use C++ exception handling.
11625 * infcmd.c: Use C++ exception handling.
11626 * infcall.c: Use C++ exception handling.
11627 * inf-loop.c: Use C++ exception handling.
11628 * i386-tdep.c: Use C++ exception handling.
11629 * i386-linux-tdep.c: Use C++ exception handling.
11630 * guile/scm-value.c: Use C++ exception handling.
11631 * guile/scm-type.c: Use C++ exception handling.
11632 * guile/scm-symtab.c: Use C++ exception handling.
11633 * guile/scm-symbol.c: Use C++ exception handling.
11634 * guile/scm-pretty-print.c: Use C++ exception handling.
11635 * guile/scm-ports.c: Use C++ exception handling.
11636 * guile/scm-param.c: Use C++ exception handling.
11637 * guile/scm-math.c: Use C++ exception handling.
11638 * guile/scm-lazy-string.c: Use C++ exception handling.
11639 * guile/scm-frame.c: Use C++ exception handling.
11640 * guile/scm-disasm.c: Use C++ exception handling.
11641 * guile/scm-cmd.c: Use C++ exception handling.
11642 * guile/scm-breakpoint.c: Use C++ exception handling.
11643 * guile/scm-block.c: Use C++ exception handling.
11644 * guile/guile-internal.h: Use C++ exception handling.
11645 * gnu-v3-abi.c: Use C++ exception handling.
11646 * gdbtypes.c: Use C++ exception handling.
11647 * frame.c: Use C++ exception handling.
11648 * frame-unwind.c: Use C++ exception handling.
11649 * fbsd-tdep.c: Use C++ exception handling.
11650 * f-valprint.c: Use C++ exception handling.
11651 * exec.c: Use C++ exception handling.
11652 * event-top.c: Use C++ exception handling.
11653 * event-loop.c: Use C++ exception handling.
11654 * eval.c: Use C++ exception handling.
11655 * dwarf2read.c: Use C++ exception handling.
11656 * dwarf2loc.c: Use C++ exception handling.
11657 * dwarf2-frame.c: Use C++ exception handling.
11658 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11659 * dwarf-index-write.c: Use C++ exception handling.
11660 * dwarf-index-cache.c: Use C++ exception handling.
11661 * dtrace-probe.c: Use C++ exception handling.
11662 * disasm-selftests.c: Use C++ exception handling.
11663 * darwin-nat.c: Use C++ exception handling.
11664 * cp-valprint.c: Use C++ exception handling.
11665 * cp-support.c: Use C++ exception handling.
11666 * cp-abi.c: Use C++ exception handling.
11667 * corelow.c: Use C++ exception handling.
11668 * completer.c: Use C++ exception handling.
11669 * compile/compile-object-run.c: Use C++ exception handling.
11670 * compile/compile-object-load.c: Use C++ exception handling.
11671 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11672 * compile/compile-c-symbols.c: Use C++ exception handling.
11673 * common/selftest.c: Use C++ exception handling.
11674 * common/new-op.c: Use C++ exception handling.
11675 * cli/cli-script.c: Use C++ exception handling.
11676 * cli/cli-interp.c: Use C++ exception handling.
11677 * cli/cli-cmds.c: Use C++ exception handling.
11678 * c-varobj.c: Use C++ exception handling.
11679 * btrace.c: Use C++ exception handling.
11680 * breakpoint.c: Use C++ exception handling.
11681 * break-catch-throw.c: Use C++ exception handling.
11682 * arch-utils.c: Use C++ exception handling.
11683 * amd64-tdep.c: Use C++ exception handling.
11684 * ada-valprint.c: Use C++ exception handling.
11685 * ada-typeprint.c: Use C++ exception handling.
11686 * ada-lang.c: Use C++ exception handling.
11687 * aarch64-tdep.c: Use C++ exception handling.
11688
3d6e9d23
TT
116892019-04-08 Tom Tromey <tom@tromey.com>
11690
11691 * xml-support.c (gdb_xml_parser::parse): Update.
11692 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11693 * value.c (show_convenience): Update.
11694 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11695 (test_parse_flags_qcs): Update.
11696 * thread.c (thr_try_catch_cmd): Update.
11697 * target.c (target_translate_tls_address): Update.
11698 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11699 (info_frame_command_core, frame_apply_command_count): Update.
11700 * rust-exp.y (rust_lex_exception_test): Update.
11701 * riscv-tdep.c (riscv_print_one_register_info): Update.
11702 * remote.c (remote_target::enable_btrace): Update.
11703 * record-btrace.c (record_btrace_enable_warn): Update.
11704 * python/py-utils.c (gdbpy_convert_exception): Update.
11705 * printcmd.c (do_one_display, print_variable_and_value): Update.
11706 * mi/mi-main.c (mi_print_exception): Update.
11707 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11708 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11709 * linux-nat.c (linux_nat_target::attach): Update.
11710 * linux-fork.c (class scoped_switch_fork_info): Update.
11711 * infrun.c (displaced_step_prepare): Update.
11712 * infcall.c (call_function_by_hand_dummy): Update.
11713 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11714 * gnu-v3-abi.c (print_one_vtable): Update.
11715 * frame.c (get_prev_frame_always): Update.
11716 * f-valprint.c (info_common_command_for_block): Update.
11717 * exec.c (try_open_exec_file): Update.
11718 * exceptions.c (print_exception, exception_print)
11719 (exception_fprintf, exception_print_same): Update.
11720 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11721 * dwarf-index-cache.c (index_cache::store)
11722 (index_cache::lookup_gdb_index): Update.
11723 * darwin-nat.c (maybe_cache_shell): Update.
11724 * cp-valprint.c (cp_print_value_fields): Update.
11725 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11726 (gcc_cplus_symbol_address): Update.
11727 * compile/compile-c-symbols.c (gcc_convert_symbol)
11728 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11729 * common/selftest.c: Update.
11730 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11731 a std::string.
11732 (exception_try_scope_entry, exception_try_scope_exit): Don't
11733 declare.
11734 (struct exception_try_scope): Remove.
11735 (TRY): Don't use exception_try_scope.
11736 (struct gdb_exception): Add constructor, operator=.
11737 <what>: New method.
11738 (struct gdb_exception_RETURN_MASK_ALL)
11739 (struct gdb_exception_RETURN_MASK_ERROR)
11740 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11741 (struct gdb_quit_bad_alloc): Update.
11742 * common/common-exceptions.c (exception_none): Change
11743 initializer.
11744 (struct catcher) <state, exception>: Initialize inline.
11745 <prev>: Remove member.
11746 (current_catcher): Remove.
11747 (catchers): New global.
11748 (exceptions_state_mc_init): Simplify.
11749 (catcher_pop): Remove.
11750 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11751 (try_scope_depth, exception_try_scope_entry)
11752 (exception_try_scope_exit): Remove.
11753 (throw_exception_sjlj): Update.
11754 (exception_messages, exception_messages_size): Remove.
11755 (throw_it): Simplify.
11756 (gdb_exception_sliced_copy): Remove.
11757 (throw_exception_cxx): Update.
11758 * cli/cli-script.c (script_from_file): Update.
11759 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11760 Update.
11761 * ada-valprint.c (ada_val_print): Update.
11762 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11763 (create_excep_cond_exprs): Update.
11764
c5c10118
TT
117652019-04-08 Tom Tromey <tom@tromey.com>
11766
11767 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11768 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11769 (TRY, CATCH, END_CATCH): Remove some definitions.
11770 * common/common-exceptions.c: Don't use GDB_XCPT.
11771 (catcher_list_size): Remove.
11772 (throw_exception, throw_it): Simplify.
11773
4de283e4
TT
117742019-04-05 Tom Tromey <tom@tromey.com>
11775
11776 Revert the header-sorting patch.
11777 * ft32-tdep.c: Revert.
11778 * frv-tdep.c: Revert.
11779 * frv-linux-tdep.c: Revert.
11780 * frame.c: Revert.
11781 * frame-unwind.c: Revert.
11782 * frame-base.c: Revert.
11783 * fork-child.c: Revert.
11784 * findvar.c: Revert.
11785 * findcmd.c: Revert.
11786 * filesystem.c: Revert.
11787 * filename-seen-cache.h: Revert.
11788 * filename-seen-cache.c: Revert.
11789 * fbsd-tdep.c: Revert.
11790 * fbsd-nat.h: Revert.
11791 * fbsd-nat.c: Revert.
11792 * f-valprint.c: Revert.
11793 * f-typeprint.c: Revert.
11794 * f-lang.c: Revert.
11795 * extension.h: Revert.
11796 * extension.c: Revert.
11797 * extension-priv.h: Revert.
11798 * expprint.c: Revert.
11799 * exec.h: Revert.
11800 * exec.c: Revert.
11801 * exceptions.c: Revert.
11802 * event-top.c: Revert.
11803 * event-loop.c: Revert.
11804 * eval.c: Revert.
11805 * elfread.c: Revert.
11806 * dwarf2read.h: Revert.
11807 * dwarf2read.c: Revert.
11808 * dwarf2loc.c: Revert.
11809 * dwarf2expr.h: Revert.
11810 * dwarf2expr.c: Revert.
11811 * dwarf2-frame.c: Revert.
11812 * dwarf2-frame-tailcall.c: Revert.
11813 * dwarf-index-write.h: Revert.
11814 * dwarf-index-write.c: Revert.
11815 * dwarf-index-common.c: Revert.
11816 * dwarf-index-cache.h: Revert.
11817 * dwarf-index-cache.c: Revert.
11818 * dummy-frame.c: Revert.
11819 * dtrace-probe.c: Revert.
11820 * disasm.h: Revert.
11821 * disasm.c: Revert.
11822 * disasm-selftests.c: Revert.
11823 * dictionary.c: Revert.
11824 * dicos-tdep.c: Revert.
11825 * demangle.c: Revert.
11826 * dcache.h: Revert.
11827 * dcache.c: Revert.
11828 * darwin-nat.h: Revert.
11829 * darwin-nat.c: Revert.
11830 * darwin-nat-info.c: Revert.
11831 * d-valprint.c: Revert.
11832 * d-namespace.c: Revert.
11833 * d-lang.c: Revert.
11834 * ctf.c: Revert.
11835 * csky-tdep.c: Revert.
11836 * csky-linux-tdep.c: Revert.
11837 * cris-tdep.c: Revert.
11838 * cris-linux-tdep.c: Revert.
11839 * cp-valprint.c: Revert.
11840 * cp-support.c: Revert.
11841 * cp-namespace.c: Revert.
11842 * cp-abi.c: Revert.
11843 * corelow.c: Revert.
11844 * corefile.c: Revert.
11845 * continuations.c: Revert.
11846 * completer.h: Revert.
11847 * completer.c: Revert.
11848 * complaints.c: Revert.
11849 * coffread.c: Revert.
11850 * coff-pe-read.c: Revert.
11851 * cli-out.h: Revert.
11852 * cli-out.c: Revert.
11853 * charset.c: Revert.
11854 * c-varobj.c: Revert.
11855 * c-valprint.c: Revert.
11856 * c-typeprint.c: Revert.
11857 * c-lang.c: Revert.
11858 * buildsym.c: Revert.
11859 * buildsym-legacy.c: Revert.
11860 * build-id.h: Revert.
11861 * build-id.c: Revert.
11862 * btrace.c: Revert.
11863 * bsd-uthread.c: Revert.
11864 * breakpoint.h: Revert.
11865 * breakpoint.c: Revert.
11866 * break-catch-throw.c: Revert.
11867 * break-catch-syscall.c: Revert.
11868 * break-catch-sig.c: Revert.
11869 * blockframe.c: Revert.
11870 * block.c: Revert.
11871 * bfin-tdep.c: Revert.
11872 * bfin-linux-tdep.c: Revert.
11873 * bfd-target.c: Revert.
11874 * bcache.c: Revert.
11875 * ax-general.c: Revert.
11876 * ax-gdb.h: Revert.
11877 * ax-gdb.c: Revert.
11878 * avr-tdep.c: Revert.
11879 * auxv.c: Revert.
11880 * auto-load.c: Revert.
11881 * arm-wince-tdep.c: Revert.
11882 * arm-tdep.c: Revert.
11883 * arm-symbian-tdep.c: Revert.
11884 * arm-pikeos-tdep.c: Revert.
11885 * arm-obsd-tdep.c: Revert.
11886 * arm-nbsd-tdep.c: Revert.
11887 * arm-nbsd-nat.c: Revert.
11888 * arm-linux-tdep.c: Revert.
11889 * arm-linux-nat.c: Revert.
11890 * arm-fbsd-tdep.c: Revert.
11891 * arm-fbsd-nat.c: Revert.
11892 * arm-bsd-tdep.c: Revert.
11893 * arch-utils.c: Revert.
11894 * arc-tdep.c: Revert.
11895 * arc-newlib-tdep.c: Revert.
11896 * annotate.h: Revert.
11897 * annotate.c: Revert.
11898 * amd64-windows-tdep.c: Revert.
11899 * amd64-windows-nat.c: Revert.
11900 * amd64-tdep.c: Revert.
11901 * amd64-sol2-tdep.c: Revert.
11902 * amd64-obsd-tdep.c: Revert.
11903 * amd64-obsd-nat.c: Revert.
11904 * amd64-nbsd-tdep.c: Revert.
11905 * amd64-nbsd-nat.c: Revert.
11906 * amd64-nat.c: Revert.
11907 * amd64-linux-tdep.c: Revert.
11908 * amd64-linux-nat.c: Revert.
11909 * amd64-fbsd-tdep.c: Revert.
11910 * amd64-fbsd-nat.c: Revert.
11911 * amd64-dicos-tdep.c: Revert.
11912 * amd64-darwin-tdep.c: Revert.
11913 * amd64-bsd-nat.c: Revert.
11914 * alpha-tdep.c: Revert.
11915 * alpha-obsd-tdep.c: Revert.
11916 * alpha-nbsd-tdep.c: Revert.
11917 * alpha-mdebug-tdep.c: Revert.
11918 * alpha-linux-tdep.c: Revert.
11919 * alpha-linux-nat.c: Revert.
11920 * alpha-bsd-tdep.c: Revert.
11921 * alpha-bsd-nat.c: Revert.
11922 * aix-thread.c: Revert.
11923 * agent.c: Revert.
11924 * addrmap.c: Revert.
11925 * ada-varobj.c: Revert.
11926 * ada-valprint.c: Revert.
11927 * ada-typeprint.c: Revert.
11928 * ada-tasks.c: Revert.
11929 * ada-lang.c: Revert.
11930 * aarch64-tdep.c: Revert.
11931 * aarch64-ravenscar-thread.c: Revert.
11932 * aarch64-newlib-tdep.c: Revert.
11933 * aarch64-linux-tdep.c: Revert.
11934 * aarch64-linux-nat.c: Revert.
11935 * aarch64-fbsd-tdep.c: Revert.
11936 * aarch64-fbsd-nat.c: Revert.
11937 * aarch32-linux-nat.c: Revert.
11938
d55e5aa6
TT
119392019-04-05 Tom Tromey <tom@tromey.com>
11940
11941 * ft32-tdep.c: Sort headers.
11942 * frv-tdep.c: Sort headers.
11943 * frv-linux-tdep.c: Sort headers.
11944 * frame.c: Sort headers.
11945 * frame-unwind.c: Sort headers.
11946 * frame-base.c: Sort headers.
11947 * fork-child.c: Sort headers.
11948 * findvar.c: Sort headers.
11949 * findcmd.c: Sort headers.
11950 * filesystem.c: Sort headers.
11951 * filename-seen-cache.h: Sort headers.
11952 * filename-seen-cache.c: Sort headers.
11953 * fbsd-tdep.c: Sort headers.
11954 * fbsd-nat.h: Sort headers.
11955 * fbsd-nat.c: Sort headers.
11956 * f-valprint.c: Sort headers.
11957 * f-typeprint.c: Sort headers.
11958 * f-lang.c: Sort headers.
11959 * extension.h: Sort headers.
11960 * extension.c: Sort headers.
11961 * extension-priv.h: Sort headers.
11962 * expprint.c: Sort headers.
11963 * exec.h: Sort headers.
11964 * exec.c: Sort headers.
11965 * exceptions.c: Sort headers.
11966 * event-top.c: Sort headers.
11967 * event-loop.c: Sort headers.
11968 * eval.c: Sort headers.
11969 * elfread.c: Sort headers.
11970 * dwarf2read.h: Sort headers.
11971 * dwarf2read.c: Sort headers.
11972 * dwarf2loc.c: Sort headers.
11973 * dwarf2expr.h: Sort headers.
11974 * dwarf2expr.c: Sort headers.
11975 * dwarf2-frame.c: Sort headers.
11976 * dwarf2-frame-tailcall.c: Sort headers.
11977 * dwarf-index-write.h: Sort headers.
11978 * dwarf-index-write.c: Sort headers.
11979 * dwarf-index-common.c: Sort headers.
11980 * dwarf-index-cache.h: Sort headers.
11981 * dwarf-index-cache.c: Sort headers.
11982 * dummy-frame.c: Sort headers.
11983 * dtrace-probe.c: Sort headers.
11984 * disasm.h: Sort headers.
11985 * disasm.c: Sort headers.
11986 * disasm-selftests.c: Sort headers.
11987 * dictionary.c: Sort headers.
11988 * dicos-tdep.c: Sort headers.
11989 * demangle.c: Sort headers.
11990 * dcache.h: Sort headers.
11991 * dcache.c: Sort headers.
11992 * darwin-nat.h: Sort headers.
11993 * darwin-nat.c: Sort headers.
11994 * darwin-nat-info.c: Sort headers.
11995 * d-valprint.c: Sort headers.
11996 * d-namespace.c: Sort headers.
11997 * d-lang.c: Sort headers.
11998 * ctf.c: Sort headers.
11999 * csky-tdep.c: Sort headers.
12000 * csky-linux-tdep.c: Sort headers.
12001 * cris-tdep.c: Sort headers.
12002 * cris-linux-tdep.c: Sort headers.
12003 * cp-valprint.c: Sort headers.
12004 * cp-support.c: Sort headers.
12005 * cp-namespace.c: Sort headers.
12006 * cp-abi.c: Sort headers.
12007 * corelow.c: Sort headers.
12008 * corefile.c: Sort headers.
12009 * continuations.c: Sort headers.
12010 * completer.h: Sort headers.
12011 * completer.c: Sort headers.
12012 * complaints.c: Sort headers.
12013 * coffread.c: Sort headers.
12014 * coff-pe-read.c: Sort headers.
12015 * cli-out.h: Sort headers.
12016 * cli-out.c: Sort headers.
12017 * charset.c: Sort headers.
12018 * c-varobj.c: Sort headers.
12019 * c-valprint.c: Sort headers.
12020 * c-typeprint.c: Sort headers.
12021 * c-lang.c: Sort headers.
12022 * buildsym.c: Sort headers.
12023 * buildsym-legacy.c: Sort headers.
12024 * build-id.h: Sort headers.
12025 * build-id.c: Sort headers.
12026 * btrace.c: Sort headers.
12027 * bsd-uthread.c: Sort headers.
12028 * breakpoint.h: Sort headers.
12029 * breakpoint.c: Sort headers.
12030 * break-catch-throw.c: Sort headers.
12031 * break-catch-syscall.c: Sort headers.
12032 * break-catch-sig.c: Sort headers.
12033 * blockframe.c: Sort headers.
12034 * block.c: Sort headers.
12035 * bfin-tdep.c: Sort headers.
12036 * bfin-linux-tdep.c: Sort headers.
12037 * bfd-target.c: Sort headers.
12038 * bcache.c: Sort headers.
12039 * ax-general.c: Sort headers.
12040 * ax-gdb.h: Sort headers.
12041 * ax-gdb.c: Sort headers.
12042 * avr-tdep.c: Sort headers.
12043 * auxv.c: Sort headers.
12044 * auto-load.c: Sort headers.
12045 * arm-wince-tdep.c: Sort headers.
12046 * arm-tdep.c: Sort headers.
12047 * arm-symbian-tdep.c: Sort headers.
12048 * arm-pikeos-tdep.c: Sort headers.
12049 * arm-obsd-tdep.c: Sort headers.
12050 * arm-nbsd-tdep.c: Sort headers.
12051 * arm-nbsd-nat.c: Sort headers.
12052 * arm-linux-tdep.c: Sort headers.
12053 * arm-linux-nat.c: Sort headers.
12054 * arm-fbsd-tdep.c: Sort headers.
12055 * arm-fbsd-nat.c: Sort headers.
12056 * arm-bsd-tdep.c: Sort headers.
12057 * arch-utils.c: Sort headers.
12058 * arc-tdep.c: Sort headers.
12059 * arc-newlib-tdep.c: Sort headers.
12060 * annotate.h: Sort headers.
12061 * annotate.c: Sort headers.
12062 * amd64-windows-tdep.c: Sort headers.
12063 * amd64-windows-nat.c: Sort headers.
12064 * amd64-tdep.c: Sort headers.
12065 * amd64-sol2-tdep.c: Sort headers.
12066 * amd64-obsd-tdep.c: Sort headers.
12067 * amd64-obsd-nat.c: Sort headers.
12068 * amd64-nbsd-tdep.c: Sort headers.
12069 * amd64-nbsd-nat.c: Sort headers.
12070 * amd64-nat.c: Sort headers.
12071 * amd64-linux-tdep.c: Sort headers.
12072 * amd64-linux-nat.c: Sort headers.
12073 * amd64-fbsd-tdep.c: Sort headers.
12074 * amd64-fbsd-nat.c: Sort headers.
12075 * amd64-dicos-tdep.c: Sort headers.
12076 * amd64-darwin-tdep.c: Sort headers.
12077 * amd64-bsd-nat.c: Sort headers.
12078 * alpha-tdep.c: Sort headers.
12079 * alpha-obsd-tdep.c: Sort headers.
12080 * alpha-nbsd-tdep.c: Sort headers.
12081 * alpha-mdebug-tdep.c: Sort headers.
12082 * alpha-linux-tdep.c: Sort headers.
12083 * alpha-linux-nat.c: Sort headers.
12084 * alpha-bsd-tdep.c: Sort headers.
12085 * alpha-bsd-nat.c: Sort headers.
12086 * aix-thread.c: Sort headers.
12087 * agent.c: Sort headers.
12088 * addrmap.c: Sort headers.
12089 * ada-varobj.c: Sort headers.
12090 * ada-valprint.c: Sort headers.
12091 * ada-typeprint.c: Sort headers.
12092 * ada-tasks.c: Sort headers.
12093 * ada-lang.c: Sort headers.
12094 * aarch64-tdep.c: Sort headers.
12095 * aarch64-ravenscar-thread.c: Sort headers.
12096 * aarch64-newlib-tdep.c: Sort headers.
12097 * aarch64-linux-tdep.c: Sort headers.
12098 * aarch64-linux-nat.c: Sort headers.
12099 * aarch64-fbsd-tdep.c: Sort headers.
12100 * aarch64-fbsd-nat.c: Sort headers.
12101 * aarch32-linux-nat.c: Sort headers.
12102
699bd4cf
TT
121032019-04-04 Tom Tromey <tom@tromey.com>
12104
12105 * varobj.c (varobj_create): Update.
12106 * rust-exp.y (struct rust_parser) <update_innermost_block,
12107 lookup_symbol>: New methods.
12108 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12109 Rename.
12110 (rust_parser::rust_lookup_type)
12111 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12112 * printcmd.c (display_command, do_one_display): Update.
12113 * parser-defs.h (struct parser_state) <parser_state>: Add
12114 "tracker" parameter.
12115 (block_tracker): New member.
12116 (class innermost_block_tracker) <innermost_block_tracker>: Add
12117 "types" parameter.
12118 <reset>: Remove method.
12119 (innermost_block): Don't declare.
12120 (null_post_parser): Update.
12121 * parse.c (innermost_block): Remove global.
12122 (write_dollar_variable): Update.
12123 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12124 Remove "tracker_types" parameter.
12125 (parse_expression): Add "tracker" parameter.
12126 (parse_expression_for_completion): Update.
12127 (null_post_parser): Add "tracker" parameter.
12128 * p-exp.y: Update rules.
12129 * m2-exp.y: Update rules.
12130 * language.h (struct language_defn) <la_post_parser>: Add
12131 "tracker" parameter.
12132 * go-exp.y: Update rules.
12133 * f-exp.y: Update rules.
12134 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12135 parameter.
12136 * d-exp.y: Update rules.
12137 * c-exp.y: Update rules.
12138 * breakpoint.c (set_breakpoint_condition): Create an
12139 innermost_block_tracker.
12140 (watch_command_1): Likewise.
12141 * ada-lang.c (resolve): Add "tracker" parameter.
12142 (resolve_subexp): Likewise.
12143 * ada-exp.y (write_var_from_sym): Update.
12144
dac43e32
TT
121452019-04-04 Tom Tromey <tom@tromey.com>
12146
12147 * type-stack.h: New file.
12148 * type-stack.c: New file.
12149 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12150 type-stack.h.
12151 (insert_into_type_stack, insert_type, push_type, push_type_int)
12152 (insert_type_address_space, pop_type, pop_type_int)
12153 (pop_typelist, pop_type_stack, append_type_stack)
12154 (push_type_stack, get_type_stack, push_typelist)
12155 (follow_type_instance_flags, follow_types): Don't declare.
12156 * parse.c (type_stack): Remove global.
12157 (parse_exp_in_context): Update.
12158 (insert_into_type_stack, insert_type, push_type, push_type_int)
12159 (insert_type_address_space, pop_type, pop_type_int)
12160 (pop_typelist, pop_type_stack, append_type_stack)
12161 (push_type_stack, get_type_stack, push_typelist)
12162 (follow_type_instance_flags, follow_types): Remove (moved to
12163 type-stack.c).
12164 * f-exp.y (type_stack): New global.
12165 Update rules.
12166 (push_kind_type, f_parse): Update.
12167 * d-exp.y (type_stack): New global.
12168 Update rules.
12169 (d_parse): Update.
12170 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12171 Update rules.
12172 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12173 (HFILES_NO_SRCDIR): Add type-stack.h.
12174
2a612529
TT
121752019-04-04 Tom Tromey <tom@tromey.com>
12176
12177 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12178 (rust_parser::convert_ast_to_expression, rust_parse)
12179 (rust_lex_test_completion, rust_lex_tests): Update.
12180 * parser-defs.h (struct expr_completion_state): New.
12181 (struct parser_state) <parser_state>: Add completion parameter.
12182 <mark_struct_expression, mark_completion_tag>: New methods.
12183 <parse_completion, m_completion_state>: New members.
12184 (prefixify_expression, null_post_parser): Update.
12185 (mark_struct_expression, mark_completion_tag): Don't declare.
12186 * parse.c (parse_completion, expout_last_struct)
12187 (expout_tag_completion_type, expout_completion_name): Remove
12188 globals.
12189 (parser_state::mark_struct_expression)
12190 (parser_state::mark_completion_tag): Now methods.
12191 (prefixify_expression): Add last_struct parameter.
12192 (prefixify_subexp): Likewise.
12193 (parse_exp_1): Update.
12194 (parse_exp_in_context): Add cstate parameter. Update.
12195 (parse_expression_for_completion): Create an
12196 expr_completion_state.
12197 (null_post_parser): Add "completion" parameter.
12198 * p-exp.y: Update rules.
12199 (yylex): Update.
12200 * language.h (struct language_defn) <la_post_parser>: Add
12201 "completing" parameter.
12202 * go-exp.y: Update rules.
12203 (lex_one_token): Update.
12204 * expression.h (parse_completion): Don't declare.
12205 * d-exp.y: Update rules.
12206 (lex_one_token): Update rules.
12207 * c-exp.y: Update rules.
12208 (lex_one_token): Update.
12209 * ada-lang.c (resolve): Add "parse_completion" parameter.
12210 (resolve_subexp): Likewise.
12211 (ada_resolve_function): Likewise.
12212
43476f0b
TT
122132019-04-04 Tom Tromey <tom@tromey.com>
12214
12215 * parser-defs.h (struct parser_state) <start_arglist,
12216 end_arglist>: New methods.
12217 <arglist_len, m_funcall_chain>: New members.
12218 (arglist_len, start_arglist, end_arglist): Don't declare.
12219 * parse.c (arglist_len, funcall_chain): Remove global.
12220 (start_arglist, end_arglist): Remove functions.
12221 (parse_exp_in_context): Update.
12222 * p-exp.y: Update rules.
12223 * m2-exp.y: Update rules.
12224 * go-exp.y: Update rules.
12225 * f-exp.y: Update rules.
12226 * d-exp.y: Update rules.
12227 * c-exp.y: Update rules.
12228
5776fca3
TT
122292019-04-04 Tom Tromey <tom@tromey.com>
12230
12231 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12232 lex_operator, push_back>: New methods.
12233 Update all rules.
12234 (rust_parser::lex_hex, lex_escape): Rename and update.
12235 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12236 (rust_parser::lex_operator): Rename and update.
12237 (rust_parser::lex_number, rustyylex, rustyyerror)
12238 (rust_lex_test_init, rust_lex_test_sequence)
12239 (rust_lex_test_push_back, rust_lex_tests): Update.
12240 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12241 parameter.
12242 <lexptr, prev_lexptr>: New members.
12243 (lexptr, prev_lexptr): Don't declare.
12244 * parse.c (lexptr, prev_lexptr): Remove globals.
12245 (parse_exp_in_context): Update.
12246 * p-exp.y (yylex, yyerror): Update.
12247 * m2-exp.y (parse_number, yylex, yyerror): Update.
12248 * go-exp.y (lex_one_token, yyerror): Update.
12249 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12250 * d-exp.y (lex_one_token, yyerror): Update.
12251 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12252 (lex_one_token, yyerror): Update.
12253 * ada-lex.l (YY_INPUT): Update.
12254 (rewind_to_char): Update.
12255 * ada-exp.y (yyerror): Update.
12256
8621b685
TT
122572019-04-04 Tom Tromey <tom@tromey.com>
12258
12259 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12260 * parser-defs.h (struct parser_state) <parser_state>: Add new
12261 parameter.
12262 <comma_terminates>: New member.
12263 (comma_terminates): Don't declare global.
12264 * parse.c (comma_terminates): Remove global.
12265 (parse_exp_in_context): Update.
12266 * p-exp.y (yylex): Update.
12267 * m2-exp.y (yylex): Update.
12268 * go-exp.y (lex_one_token): Update.
12269 * f-exp.y (yylex): Update.
12270 * d-exp.y (lex_one_token): Update.
12271 * c-exp.y (lex_one_token): Update.
12272 * ada-lex.l: Update.
12273
28aaf3fd
TT
122742019-04-04 Tom Tromey <tom@tromey.com>
12275
12276 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12277 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12278 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12279 * parser-defs.h (paren_depth): Don't declare.
12280 * parse.c (paren_depth): Remove global.
12281 (parse_exp_in_context): Update.
12282 * p-exp.y (paren_depth): New global.
12283 (pascal_parse): Initialize it.
12284 * m2-exp.y (paren_depth): New global.
12285 (m2_parse): Initialize it.
12286 * go-exp.y (paren_depth): New global.
12287 (go_parse): Initialize it.
12288 * f-exp.y (paren_depth): New global.
12289 (f_parse): Initialize it.
12290 * d-exp.y (paren_depth): New global.
12291 (d_parse): Initialize it.
12292 * c-exp.y (paren_depth): New global.
12293 (c_parse): Initialize it.
12294 * ada-lex.l (paren_depth): New global.
12295 (lexer_init): Initialize it.
12296
1e58a4a4
TT
122972019-04-04 Tom Tromey <tom@tromey.com>
12298
12299 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12300 (rust_parser::convert_ast_to_type)
12301 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12302 * parser-defs.h (struct parser_state) <parser_state>: Add
12303 parameters. Initialize new members.
12304 <expression_context_block, expression_context_pc>: New members.
12305 * parse.c (expression_context_block, expression_context_pc):
12306 Remove globals.
12307 (parse_exp_in_context): Update.
12308 * p-exp.y: Update all rules.
12309 (yylex): Update.
12310 * m2-exp.y: Update all rules.
12311 (yylex): Update.
12312 * go-exp.y (yylex): Update.
12313 * f-exp.y (yylex): Update.
12314 * d-exp.y: Update all rules.
12315 (yylex): Update.
12316 * c-exp.y: Update all rules.
12317 (lex_one_token, classify_name, yylex, c_parse): Update.
12318 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12319
37eedb39
TT
123202019-04-04 Tom Tromey <tom@tromey.com>
12321
12322 * gdbarch.h, gdbarch.c: Rebuild.
12323 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12324 * stap-probe.h:
12325 (struct stap_parse_info): Replace "parser_state" with
12326 "expr_builder".
12327 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12328 (parser_state): New class.
12329 * parse.c (expr_builder): Rename.
12330 (expr_builder::release): Rename.
12331 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12332 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12333 (write_exp_elt_longcst, write_exp_elt_floatcst)
12334 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12335 (write_exp_string_vector, write_exp_bitstring)
12336 (write_exp_msymbol, mark_struct_expression)
12337 (write_dollar_variable)
12338 (insert_type_address_space, increase_expout_size): Replace
12339 "parser_state" with "expr_builder".
12340 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12341 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12342 "parser_state" with "expr_builder".
12343
73923d7e
TT
123442019-04-04 Tom Tromey <tom@tromey.com>
12345
12346 * rust-exp.y: Replace "parse_language" with method call.
12347 * p-exp.y:
12348 (yylex): Replace "parse_language" with method call.
12349 * m2-exp.y:
12350 (yylex): Replace "parse_language" with method call.
12351 * go-exp.y (classify_name): Replace "parse_language" with method
12352 call.
12353 * f-exp.y (yylex): Replace "parse_language" with method call.
12354 * d-exp.y (lex_one_token): Replace "parse_language" with method
12355 call.
12356 * c-exp.y:
12357 (lex_one_token, classify_name, yylex): Replace "parse_language"
12358 with method call.
12359 * ada-exp.y (find_primitive_type, type_char)
12360 (type_system_address): Replace "parse_language" with method call.
12361
fa9f5be6
TT
123622019-04-04 Tom Tromey <tom@tromey.com>
12363
12364 * rust-exp.y: Replace "parse_gdbarch" with method call.
12365 * parse.c (write_dollar_variable, insert_type_address_space):
12366 Replace "parse_gdbarch" with method call.
12367 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12368 call.
12369 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12370 call.
12371 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12372 "parse_gdbarch" with method call.
12373 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12374 with method call.
12375 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12376 "parse_gdbarch" with method call.
12377 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12378 "parse_gdbarch" with method call.
12379 * c-exp.y (parse_type, parse_number, classify_name): Replace
12380 "parse_gdbarch" with method call.
12381 * ada-lex.l: Replace "parse_gdbarch" with method call.
12382 * ada-exp.y (parse_type, find_primitive_type, type_char)
12383 (type_system_address): Replace "parse_gdbarch" with method call.
12384
1201a264
TT
123852019-04-04 Tom Tromey <tom@tromey.com>
12386
12387 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12388 * stap-probe.c (stap_parse_argument): Update.
12389 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12390 initial_size parameter.
12391 * rust-exp.y (rust_lex_tests): Update.
12392 * parse.c (parser_state): Update.
12393 (parse_exp_in_context): Update.
12394 * parser-defs.h (struct parser_state) <parser_state>: Remove
12395 "initial_size" parameter.
12396
e3980ce2
TT
123972019-04-04 Tom Tromey <tom@tromey.com>
12398
12399 * parser-defs.h (increase_expout_size): Don't declare.
12400 * parse.c (increase_expout_size): Now static.
12401
e9f8e3f1
TS
124022019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12403
12404 * gnu-nat.c (gnu_nat_target::wait): Fix
12405 target_waitstatus_to_string call.
12406
d7df6549
AB
124072019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12408
12409 * eval.c (evaluate_subexp_standard): Handle internal functions
12410 during Fortran function call handling.
12411
8bdc1658
AB
124122019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12413
12414 * NEWS: Mention new internal functions.
12415 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12416 (read_base_type): Use dwarf2_init_complex_target_type.
12417 * value.c (creal_internal_fn): New function.
12418 (cimag_internal_fn): New function.
12419 (_initialize_values): Register new internal functions.
12420
c29705b7
PW
124212019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12422
12423 * infrun.c (stop_all_threads): If debug_infrun, always
12424 trace the wait status after wait_one, using
12425 target_waitstatus_to_string and target_pid_to_str.
12426 (handle_inferior_event): Replace various trace of
12427 wait status kind by a single trace.
12428 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12429 wait status kind image by target_waitstatus_to_string.
12430 * target/waitstatus.c (target_waitstatus_to_string): Fix
12431 obsolete comment.
12432
05caa1d2
TT
124332019-04-01 Tom Tromey <tromey@adacore.com>
12434
12435 PR symtab/23331:
12436 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12437
9d1447e0
SDJ
124382019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12439 Pedro Alves <palves@redhat.com>
12440
12441 * top.c (quit_force): Call 'finalize_values'.
12442 * value.c (finalize_values): New function.
12443 * value.h (finalize_values): Declare.
12444
7734102d
EZ
124452019-03-30 Eli Zaretskii <eliz@gnu.org>
12446
12447 * NEWS: Announce $_gdb_major and $_gdb_minor.
12448
12449 * top.c (init_gdb_version_vars): New function.
12450 (gdb_init): Call init_gdb_version_vars.
12451
188e1fa9
TT
124522019-03-29 Tom Tromey <tromey@adacore.com>
12453
12454 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12455 help text. Remove dead code.
12456
2880242d
KS
124572019-03-29 Keith Seitz <keiths@redhat.com>
12458
12459 From Siddhesh Poyarekar:
12460 * f-lang.h (f77_get_upperbound): Return LONGEST.
12461 (f77_get_lowerbound): Likewise.
12462 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12463 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12464 print them.
12465 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12466 plongest to format print it.
12467 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12468 (f77_get_upperbound): Likewise.
12469 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12470 LOWER_BOUND to LONGEST.
12471 (f77_create_arrayprint_offset_tbl): Likewise.
12472
cc1defb1
KS
124732019-03-29 Keith Seitz <keiths@redhat.com>
12474
12475 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12476 %s/pulongest for TYPE_LENGTH instead of %d in format
12477 strings.
12478 * ada-typerint.c (ada_print_type): Likewise.
12479 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12480 * compile/compile-c-support.c (generate_register_struct): Likewise.
12481 * gdbtypes.c (recursive_dump_type): Likewise.
12482 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12483 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12484 instead of %d in format strings.
12485 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12486 to std::min to ULONGEST.
12487 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12488 instead of %d in format strings.
12489 * tracepoint.c (info_scope_command): Likewise.
12490 * typeprint.c (print_offset_data::update)
12491 (print_offset_data::finish): Likewise.
12492 * xtensa-tdep.c (xtensa_store_return_value)
12493 (xtensa_push_dummy_call): Likewise.
12494
e432ccf1
JT
124952019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12496
12497 * windows-nat.c (display_selector): Fixed format specifications
12498 for 64-bit Cygwin.
12499
65d2b333
PW
125002019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12501
12502 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12503
f489207e
SL
125042019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12505
12506 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12507 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12508 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12509 (nios2_linux_init_abi): Install it.
12510
bffa1015
AH
125112019-03-28 Alan Hayward <alan.hayward@arm.com>
12512
12513 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12514
fc96163a
AH
125152019-03-28 Alan Hayward <alan.hayward@arm.com>
12516
12517 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12518
20dc7e9b
PW
125192019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12520 Tom Tromey <tromey@adacore.com>
12521
12522 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12523
7f5331a8
JB
125242019-03-26 Joel Brobecker <brobecker@adacore.com>
12525
12526 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12527 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12528 method to compute the bounds of range types. Also print "[evaluated]"
12529 if the bounds' values come from a dynamic evaluation.
12530
18c77628
AB
125312019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12532
12533 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12534 whitespace when pretty printing is on.
12535
53c973f2
AH
125362019-03-26 Alan Hayward <alan.hayward@arm.com>
12537
e79be6e5 12538 * ppc-linux-nat.c: Add include.
53c973f2 12539
d851aa71
AH
125402019-03-26 Alan Hayward <alan.hayward@arm.com>
12541
e79be6e5 12542 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12543
2fe7bab7
AH
125442019-03-26 Alan Hayward <alan.hayward@arm.com>
12545
e79be6e5 12546 * arm-linux-nat.c: Add include.
2fe7bab7 12547
068ef30e
SM
125482019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12549
12550 * source-cache.c (source_cache::get_source_lines): Re-read
12551 fullname after calling open_source_file.
12552
81a24d04
JB
125532019-03-25 John Baldwin <jhb@FreeBSD.org>
12554
12555 * NEWS: Mention TLS support for FreeBSD.
12556
79e7ae11
TT
125572019-03-25 Tom Tromey <tromey@adacore.com>
12558
12559 * minsyms.c (BUNCH_SIZE): Update comment.
12560 (~minimal_symbol_reader): Remove old comment.
12561 (compact_minimal_symbols): Update comment.
12562 (minimal_symbol_reader::install): Remove old comment. Update
12563 other comments.
12564
d45963c2
AH
125652019-03-25 Alan Hayward <alan.hayward@arm.com>
12566
12567 * s390-linux-nat.c: Add include.
12568
0f83012e
AH
125692019-03-25 Alan Hayward <alan.hayward@arm.com>
12570
12571 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12572 Call linux_get_hwcap.
12573 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12574 Likewise.
12575 (aarch64_linux_get_hwcap): Remove function.
12576 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12577 declaration.
12578 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12579 linux_get_hwcap.
12580 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12581 * linux-tdep.c (linux_get_hwcap): Add function.
12582 (linux_get_hwcap2): Likewise.
12583 * linux-tdep.h (linux_get_hwcap): Add declaration.
12584 (linux_get_hwcap2): Likewise.
12585 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12586 (ppc_linux_get_hwcap2): Likewise.
12587 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12588 linux_get_hwcap.
12589 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12590 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12591 (ppc_linux_nat_target::read_description): Likewise.
12592 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12593 * s390-linux-nat.c: Likewise.
12594 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12595
6640a367
TT
125962019-03-24 Tom Tromey <tom@tromey.com>
12597
12598 * ada-lang.c (standard_lookup): Simplify initialization.
12599 (ada_lookup_symbol_nonlocal): Simplify return.
12600 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12601 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12602 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12603 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12604 initialization.
12605 * solib.c (solib_global_lookup): Simplify.
12606 * symtab.c (null_block_symbol): Remove.
12607 (symbol_cache_lookup): Simplify returns.
12608 (lookup_language_this): Simplify returns.
12609 (lookup_symbol_aux): Simplify return.
12610 (lookup_local_symbol): Simplify returns.
12611 (lookup_global_symbol_from_objfile): Simplify return.
12612 (lookup_symbol_in_objfile_symtabs)
12613 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12614 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12615 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12616 * cp-namespace.c (cp_lookup_bare_symbol)
12617 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12618 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12619 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12620 (cp_lookup_symbol_via_imports): Simplify initialization.
12621 (find_symbol_in_baseclass): Likewise.
12622 * symtab.h (null_block_symbol): Remove.
12623 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12624 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12625 (d_lookup_symbol_module): Likewise.
12626 (find_symbol_in_baseclass): Simplify initialization.
12627
a930ebcd
TT
126282019-03-24 Tom Tromey <tom@tromey.com>
12629
12630 * expression.h: Don't include symtab.h.
12631 (struct block): Forward declare.
12632
582942f4
TT
126332019-03-24 Tom Tromey <tom@tromey.com>
12634
12635 * c-exp.y (typebase): Remove casts.
12636 * gdbtypes.c (lookup_unsigned_typename, )
12637 (lookup_signed_typename): Remove cast.
12638 * eval.c (parse_to_comma_and_eval): Remove cast.
12639 * parse.c (write_dollar_variable): Remove cast.
12640 * block.h (struct block) <superblock>: Now const.
12641 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12642 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12643 (map_block): Make "block" const.
12644 * symfile.h (struct quick_symbol_functions)
12645 <map_matching_symbols>: Constify block argument to "callback".
12646 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12647 const.
12648 (find_pc_sect_compunit_symtab): Make "b" const.
12649 (find_symbol_at_address): Likewise.
12650 (search_symbols): Likewise.
12651 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12652 (dw2_debug_names_lookup_symbol): Likewise.
12653 (dw2_map_matching_symbols): Update.
12654 * p-valprint.c (pascal_val_print): Remove "block".
12655 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12656 (aux_add_nonlocal_symbols): Make "block" const.
12657 (resolve_subexp): Remove cast.
12658 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12659 const.
12660 (iterate_over_file_blocks): Likewise.
12661 * f-exp.y (%union) <bval>: Remove.
12662 * coffread.c (patch_opaque_types): Make "b" const.
12663 * spu-tdep.c (spu_catch_start): Make "block" const.
12664 * c-valprint.c (print_unpacked_pointer): Remove "block".
12665 * symmisc.c (dump_symtab_1): Make "b" const.
12666 (block_depth): Make "block" const.
12667 * d-exp.y (%union) <bval>: Remove.
12668 * cp-support.h (cp_lookup_rtti_type): Update.
12669 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12670 * psymtab.c (psym_lookup_symbol): Make "block" const.
12671 (maintenance_check_psymtabs): Make "b" const.
12672 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12673 (enumerate_locals, enumerate_args): Update.
12674 * python/py-symtab.c (stpy_global_block): Make "block" const.
12675 (stpy_static_block): Likewise.
12676 * inline-frame.c (block_starting_point_at): Make "new_block"
12677 const.
12678 * block.c (find_block_in_blockvector): Make return type const.
12679 (blockvector_for_pc_sect): Make "b" const.
12680 (find_block_in_blockvector): Make "b" const.
12681
7ad417dd
TT
126822019-03-23 Tom Tromey <tom@tromey.com>
12683
12684 * varobj.c (varobj_create): Update.
12685 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12686 * printcmd.c (display_command, do_one_display): Don't reset
12687 innermost_block.
12688 * parser-defs.h (enum innermost_block_tracker_type): Move to
12689 expression.h.
12690 (innermost_block): Update comment.
12691 * parse.c (parse_exp_1): Add tracker_types parameter.
12692 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12693 tracker_types parameter. Reset innermost_block.
12694 (parse_exp_in_context): Remove.
12695 (parse_expression_for_completion): Update.
12696 * objfiles.c (~objfile): Don't reset expression_context_block or
12697 innermost_block.
12698 * expression.h (enum innermost_block_tracker_type): Move from
12699 parser-defs.h.
12700 (parse_exp_1): Add tracker_types parameter.
12701 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12702 reset innermost_block.
12703
b366c208
TT
127042019-03-23 Tom Tromey <tom@tromey.com>
12705
12706 * objfiles.h: Include bcache.h.
12707
9bb9b2f9
TT
127082019-03-23 Tom Tromey <tom@tromey.com>
12709
12710 * linespec.c (get_current_search_block): Use
12711 scoped_restore_current_language.
12712 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12713
59c28372
AH
127142019-03-22 Alan Hayward <alan.hayward@arm.com>
12715 Jiong Wang <jiong.wang@arm.com>
12716
12717 * aarch64-linux-tdep.c
12718 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12719 section.
12720 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12721
17e116a7
AH
127222019-03-22 Alan Hayward <alan.hayward@arm.com>
12723 Jiong Wang <jiong.wang@arm.com>
12724
12725 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12726 instructions.
12727 (aarch64_analyze_prologue_test): Add PACIASP test.
12728 (aarch64_prologue_prev_register): Unmask PC value.
12729
11e1b75f
AH
127302019-03-22 Alan Hayward <alan.hayward@arm.com>
12731 Jiong Wang <jiong.wang@arm.com>
12732
12733 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12734 (aarch64_dwarf2_prev_register): Unmask PC value.
12735 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12736 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12737 DW_CFA_AARCH64_negate_ra_state.
12738 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12739
34dcc7cf
AH
127402019-03-22 Alan Hayward <alan.hayward@arm.com>
12741 Jiong Wang <jiong.wang@arm.com>
12742
12743 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12744 registers.
12745 (aarch64_pseudo_register_name): Likewise.
12746 (aarch64_pseudo_register_type): Likewise.
12747 (aarch64_pseudo_register_reggroup_p): Likewise.
12748 (aarch64_gdbarch_init): Add pauth registers.
12749 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12750 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12751 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12752 (struct gdbarch_tdep): Add regnum for ra_state.
12753
1ef53e6b
AH
127542019-03-22 Alan Hayward <alan.hayward@arm.com>
12755 Jiong Wang <jiong.wang@arm.com>
12756
12757 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12758
76bed0fd
AH
127592019-03-22 Alan Hayward <alan.hayward@arm.com>
12760 Jiong Wang <jiong.wang@arm.com>
12761
12762 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12763 function.
12764 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12765 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12766 (aarch64_gdbarch_init): Add puth registers.
12767 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12768 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12769 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12770
ee4fbcfa
AH
127712019-03-22 Alan Hayward <alan.hayward@arm.com>
12772 Jiong Wang <jiong.wang@arm.com>
12773
12774 * aarch64-linux-nat.c
12775 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12776 * aarch64-linux-tdep.c
12777 (aarch64_linux_core_read_description): Likewise.
12778 (aarch64_linux_get_hwcap): New function.
12779 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12780 (aarch64_linux_get_hwcap): New declaration.
12781
6dc0ebde
AH
127822019-03-22 Alan Hayward <alan.hayward@arm.com>
12783 Jiong Wang <jiong.wang@arm.com>
12784
12785 * aarch64-linux-nat.c
12786 (aarch64_linux_nat_target::read_description): Add pauth param.
12787 * aarch64-linux-tdep.c
12788 (aarch64_linux_core_read_description): Likewise.
12789 * aarch64-tdep.c (struct target_desc): Add in pauth.
12790 (aarch64_read_description): Add pauth param.
12791 (aarch64_gdbarch_init): Likewise.
12792 * aarch64-tdep.h (aarch64_read_description): Likewise.
12793 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12794 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12795 * features/Makefile: Add new files.
12796 * features/aarch64-pauth.c: New file.
12797 * features/aarch64-pauth.xml: New file.
12798
595915c1
TT
127992019-03-20 Tom Tromey <tromey@adacore.com>
12800
12801 * infrun.c (handle_inferior_event): Rename from
12802 handle_inferior_event_1. Create a scoped_value_mark.
12803 (handle_inferior_event): Remove.
12804
4c7d57e7
TT
128052019-03-19 Tom Tromey <tromey@adacore.com>
12806
12807 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12808 * infrun.h (print_stop_event): Add "displays" parameter.
12809 * infrun.c (print_stop_event): Add "displays" parameter.
12810
cb246234
PA
128112019-03-19 Pedro Alves <palves@redhat.com>
12812
12813 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12814 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12815 to -1. Fix TABs vs spaces.
12816 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12817 * tui/tui-out.h (tui_ui_out) Add intro comments.
12818 <m_line, m_start_of_line>: In-class initialize, and add describing
12819 comment.
12820
3a0e45b2
AH
128212019-03-18 Alan Hayward <alan.hayward@arm.com>
12822
12823 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12824 variable names.
12825 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12826
5371b850
PA
128272019-03-18 Pedro Alves <palves@redhat.com>
12828 Eli Zaretskii <eliz@gnu.org>
12829
12830 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12831 m_line and m_start_of_line.
12832
b17c4cd0
EZ
128332019-03-18 Eli Zaretskii <eliz@gnu.org>
12834
12835 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12836 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12837 it returns a newline. This fixes a regression in TU mode, whereby
12838 the next line is output on the same screen line as the user input.
12839
4bd56d18
TT
128402019-03-18 Tom Tromey <tromey@adacore.com>
12841
12842 * minsyms.c (minimal_symbol_reader::install): Remove call to
12843 obstack_blank.
12844
55c10aca
PA
128452019-03-18 Pedro Alves <palves@redhat.com>
12846
12847 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12848 New globals.
12849 (apply_style): New, factored out from ...
12850 (apply_ansi_escape): ... this. Handle reverse video mode.
12851 (tui_set_reverse_mode): New function.
12852 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12853 * tui/tui-winsource.c (tui_show_source_line): Use
12854 tui_set_reverse_mode instead of setting A_STANDOUT.
12855 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12856 New setter methods.
12857
647bb750
HD
128582019-03-18 Hannes Domani <ssbssa@yahoo.de>
12859
12860 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12861 Handle tabs.
12862
bff8c71f
TT
128632019-03-18 Tom Tromey <tromey@adacore.com>
12864
12865 * ada-lang.c (empty_array): Add "high" parameter.
12866 (ada_evaluate_subexp): Update.
12867
58785d98
ST
128682019-03-17 Sergei Trofimovich <siarheit@google.com>
12869
12870 * unittests/string_view-selftests.c: Define
12871 _initialize_string_view_selftests unconditionally.
12872
d4cbef22
ВМ
128732019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12874
12875 PR gdb/24350
12876 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12877
fce4c071
ВМ
128782019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12879
12880 PR gdb/24351
12881 * windows-nat.c (display_selector): Fix format specifiers.
12882
f7f0a123
EZ
128832019-03-17 Eli Zaretskii <eliz@gnu.org>
12884
12885 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12886 tui_refill_source_window instead of tui_refresh_win, to update the
12887 current execution line. This fixes redisplay of the current line
12888 when stepping through the code with "next" or "step".
12889
ab42892f
EZ
128902019-03-16 Eli Zaretskii <eliz@gnu.org>
12891
12892 * source-cache.c (source_cache::get_source_lines): Call
12893 find_source_lines to initialize s->nlines. This fixes vertical
12894 scrolling of TUI source window when the DOWN arrow is pressed.
12895
8d8c087f
PW
128962019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12897
12898 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12899 linux-thread-db.c (_initialize_thread_db): Likewise.
12900
798e1c30
EZ
129012019-03-16 Eli Zaretskii <eliz@gnu.org>
12902
12903 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12904 wclrtoeol in tui_show_source_line". This reverts changes made in
12905 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12906
eefba3da
TT
129072019-03-15 Tom Tromey <tom@tromey.com>
12908
12909 * symtab.h (struct minimal_symbol): Derive from
12910 general_symbol_info.
12911 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12912 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12913 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12914 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12915 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12916 (MSYMBOL_SEARCH_NAME): Update.
12917 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12918 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12919 * minsyms.c (minimal_symbol_reader::record_full): Update.
12920
0de2420c
TT
129212019-03-15 Tom Tromey <tom@tromey.com>
12922
12923 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12924
042d75e4
TT
129252019-03-15 Tom Tromey <tom@tromey.com>
12926
12927 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12928 unique_xmalloc_ptr.
12929 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12930 Update.
12931 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12932 (build_minimal_symbol_hash_tables)
12933 (minimal_symbol_reader::install): Update.
12934
db92718b
TT
129352019-03-15 Tom Tromey <tom@tromey.com>
12936
12937 * symtab.c (create_demangled_names_hash): Update.
12938 (symbol_set_names): Update.
12939 * objfiles.h (struct objfile_per_bfd_storage)
12940 <demangled_names_hash>: Now an htab_up.
12941 * objfiles.c (objfile_per_bfd_storage): Simplify.
12942
d6797f46
TT
129432019-03-15 Tom Tromey <tom@tromey.com>
12944
12945 * objfiles.h (struct objfile_per_bfd_storage): Declare
12946 destructor.
12947 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12948 New.
12949 (get_objfile_bfd_data): Use new. Don't initialize
12950 language_of_main.
12951 (free_objfile_per_bfd_storage): Remove.
12952 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12953
741d7538
TT
129542019-03-15 Tom Tromey <tom@tromey.com>
12955
12956 * symfile.c (reread_symbols): Update.
12957 * objfiles.c (objfile::objfile): Update.
12958 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12959 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12960 comment.
12961 (minimal_symbol_reader::install): Update.
12962 (terminate_minimal_symbol_table): Remove.
12963 * jit.c (jit_object_close_impl): Update.
12964
788c80d1
TT
129652019-03-15 Tom Tromey <tom@tromey.com>
12966
12967 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12968 initializations.
12969
1b7a07cb
TT
129702019-03-15 Tom Tromey <tom@tromey.com>
12971
12972 * objfiles.h (struct objfile_per_bfd_storage)
12973 <demangled_hash_languages>: Now a bitset.
12974 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12975 (lookup_minimal_symbol): Update.
12976
3db066bc
TT
129772019-03-15 Tom Tromey <tom@tromey.com>
12978
12979 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12980 Don't return the symbol.
12981 * coffread.c (record_minimal_symbol): Use record_full.
12982
3fff2c37
EZ
129832019-03-14 Eli Zaretskii <eliz@gnu.org>
12984
12985 The MS-Windows port of ncurses fails to switch to a color pair if
12986 one or both of the colors are the implicit default colors. This
12987 change records the default colors when TUI is initialized, and
12988 then specifies them explicitly when a color pair uses the default
12989 colors. This allows color styling in TUI mode on MS-Windows.
12990
12991 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12992 ncurses_norm_attr.
12993 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12994 colors in ncurses_norm_attr.
12995 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12996 "none", replace it with the default color recorded in
12997 ncurses_norm_attr.
12998
3b336828
TT
129992019-03-14 Tom Tromey <tromey@adacore.com>
13000
13001 * source-cache.h (class source_cache) <get_source_lines>: Return
13002 std::string.
13003 * source-cache.c (source_cache::extract_lines): Handle case where
13004 first_pos==npos. Return std::string.
13005 (source_cache::get_source_lines): Update.
13006
d085f989
TT
130072019-03-14 Tom Tromey <tromey@adacore.com>
13008
13009 * NEWS: Add item for "style sources" commands.
13010 * source-cache.c (source_cache::get_source_lines): Check
13011 source_styling.
13012 * cli/cli-style.c (source_styling): New global.
13013 (_initialize_cli_style): Add "style sources" commands.
13014 (show_style_sources): New function.
13015 * cli/cli-style.h (source_styling): Declare.
13016
6f11e682
TT
130172019-03-14 Pedro Alves <palves@redhat.com>
13018 Tom Tromey <tromey@adacore.com>
13019
13020 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13021 * tui/tui-winsource.c (tui_refill_source_window): New function,
13022 from...
13023 (tui_horizontal_source_scroll): ... here. Move some logic.
13024 * cli/cli-style.c (set_style_enabled): Notify new observable.
13025 * tui/tui-hooks.c (tui_redisplay_source): New function.
13026 (tui_attach_detach_observers): Attach or detach
13027 tui_redisplay_source.
13028 * observable.h (source_styling_changed): New observable.
13029 * observable.c: Define source_styling_changed observable.
13030
a068643d
TT
130312019-03-13 Tom Tromey <tromey@adacore.com>
13032
13033 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13034 (i386_gnu_nat_target::store_registers): Update.
13035 * target-debug.h (target_debug_print_std_string): New macro.
13036 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13037 * windows-tdep.c (display_one_tib): Update.
13038 * tui/tui-stack.c (tui_make_status_line): Update.
13039 * top.c (print_inferior_quit_action): Update.
13040 * thread.c (thr_try_catch_cmd): Update.
13041 (add_thread_with_info): Update.
13042 (thread_target_id_str): Update.
13043 (thr_try_catch_cmd): Update.
13044 (thread_command): Update.
13045 (thread_find_command): Update.
13046 * record-btrace.c (record_btrace_target::info_record)
13047 (record_btrace_resume_thread, record_btrace_target::resume)
13048 (record_btrace_cancel_resume, record_btrace_step_thread)
13049 (record_btrace_target::wait, record_btrace_target::wait)
13050 (record_btrace_target::wait, record_btrace_target::stop): Update.
13051 * progspace.c (print_program_space): Update.
13052 * process-stratum-target.c
13053 (process_stratum_target::thread_address_space): Update.
13054 * linux-fork.c (linux_fork_mourn_inferior)
13055 (detach_checkpoint_command, info_checkpoints_command)
13056 (linux_fork_context): Update.
13057 (linux_fork_detach): Update.
13058 (class scoped_switch_fork_info): Update.
13059 (delete_checkpoint_command): Update.
13060 * infrun.c (follow_fork_inferior): Update.
13061 (follow_fork_inferior): Update.
13062 (proceed_after_vfork_done): Update.
13063 (handle_vfork_child_exec_or_exit): Update.
13064 (follow_exec): Update.
13065 (displaced_step_prepare_throw): Update.
13066 (displaced_step_restore): Update.
13067 (start_step_over): Update.
13068 (resume_1): Update.
13069 (clear_proceed_status_thread): Update.
13070 (proceed): Update.
13071 (print_target_wait_results): Update.
13072 (do_target_wait): Update.
13073 (context_switch): Update.
13074 (stop_all_threads): Update.
13075 (restart_threads): Update.
13076 (finish_step_over): Update.
13077 (handle_signal_stop): Update.
13078 (switch_back_to_stepped_thread): Update.
13079 (keep_going_pass_signal): Update.
13080 (print_exited_reason): Update.
13081 (normal_stop): Update.
13082 * inferior.c (inferior_pid_to_str): Change return type.
13083 (print_selected_inferior): Update.
13084 (add_inferior): Update.
13085 (detach_inferior): Update.
13086 * dummy-frame.c (fprint_dummy_frames): Update.
13087 * dcache.c (dcache_info_1): Update.
13088 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13089 (btrace_fetch, btrace_clear): Update.
13090 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13091 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13092 type.
13093 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13094 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13095 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13096 * gdbarch.c, gdbarch.h: Rebuild.
13097 * gdbarch.sh (core_pid_to_str): Change return type.
13098 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13099 return type.
13100 (windows_nat_target::pid_to_str): Change return type.
13101 (windows_delete_thread): Update.
13102 (windows_nat_target::attach): Update.
13103 (windows_nat_target::files_info): Update.
13104 * target-delegates.c: Rebuild.
13105 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13106 return type.
13107 (sol_thread_target::pid_to_str): Change return type.
13108 * remote.c (class remote_target) <pid_to_str>: Change return
13109 type.
13110 (remote_target::pid_to_str): Change return type.
13111 (extended_remote_target::attach, remote_target::remote_stop_ns)
13112 (remote_target::remote_notif_remove_queued_reply)
13113 (remote_target::push_stop_reply, remote_target::disable_btrace):
13114 Update.
13115 (extended_remote_target::attach): Update.
13116 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13117 type.
13118 (gdbsim_target::pid_to_str): Change return type.
13119 * ravenscar-thread.c (struct ravenscar_thread_target)
13120 <pid_to_str>: Change return type.
13121 (ravenscar_thread_target::pid_to_str): Change return type.
13122 * procfs.c (class procfs_target) <pid_to_str>: Change return
13123 type.
13124 (procfs_target::pid_to_str): Change return type.
13125 (procfs_target::attach): Update.
13126 (procfs_target::detach): Update.
13127 (procfs_target::fetch_registers): Update.
13128 (procfs_target::store_registers): Update.
13129 (procfs_target::wait): Update.
13130 (procfs_target::files_info): Update.
13131 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13132 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13133 return type.
13134 (nto_procfs_target::pid_to_str): Change return type.
13135 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13136 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13137 return type.
13138 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13139 (exit_lwp): Update.
13140 (attach_proc_task_lwp_callback, get_detach_signal)
13141 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13142 (linux_nat_target::resume, wait_lwp, stop_callback)
13143 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13144 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13145 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13146 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13147 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13148 type.
13149 (inf_ptrace_target::attach): Update.
13150 (inf_ptrace_target::files_info): Update.
13151 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13152 type.
13153 (go32_nat_target::pid_to_str): Change return type.
13154 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13155 (gnu_nat_target::wait): Update.
13156 (gnu_nat_target::wait): Update.
13157 (gnu_nat_target::resume): Update.
13158 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13159 (fbsd_nat_target::wait): Update.
13160 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13161 type.
13162 (darwin_nat_target::attach): Update.
13163 * corelow.c (class core_target) <pid_to_str>: Change return type.
13164 (core_target::pid_to_str): Change return type.
13165 * target.c (normal_pid_to_str): Change return type.
13166 (default_pid_to_str): Likewise.
13167 (target_pid_to_str): Change return type.
13168 (target_translate_tls_address): Update.
13169 (target_announce_detach): Update.
13170 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13171 return type.
13172 (bsd_uthread_target::pid_to_str): Change return type.
13173 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13174 type.
13175 (bsd_kvm_target::pid_to_str): Change return type.
13176 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13177 return type.
13178 (aix_thread_target::pid_to_str): Change return type.
13179 * target.h (struct target_ops) <pid_to_str>: Change return type.
13180 (target_pid_to_str, normal_pid_to_str): Likewise.
13181 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13182 type.
13183 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13184 type.
13185 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13186 return type.
13187 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13188 type.
13189 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13190 type.
13191 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13192 return type.
13193
b4be1b06
SM
131942019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13195
13196 * NEWS: Mention that the new default MI version is 3. Mention
13197 changes to the output of commands and events that deal with
13198 multi-location breakpoints.
13199 * breakpoint.c: Include "mi/mi-out.h".
13200 (print_one_breakpoint): Change output syntax if using MI version
13201 >= 3.
13202 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13203 New.
13204 (mi_multi_location_breakpoint_output_fixed): New.
13205 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13206 (mi_cmd_fix_multi_location_breakpoint_output): New.
13207 (mi_multi_location_breakpoint_output_fixed): New.
13208 * mi/mi-cmds.c (mi_cmds): Register command
13209 -fix-multi-location-breakpoint-output.
13210 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13211 interpreter "mi".
13212
8e5e5494
SM
132132019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13214
13215 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13216 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13217 instantiate mi_ui_out based on interpreter name.
13218 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13219 * mi/mi-main.c (mi_load_progress): Likewise.
13220
197df35e
JB
132212019-03-12 John Baldwin <jhb@FreeBSD.org>
13222
13223 * NEWS: Combine separate "New targets" sections for 8.3.
13224
8399425f
JB
132252019-03-12 John Baldwin <jhb@FreeBSD.org>
13226
13227 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13228 (ppcfbsd_init_abi): Install gdbarch
13229 "fetch_tls_load_module_address" and "get_thread_local_address"
13230 methods.
13231
b0f87ed0
JB
132322019-03-12 John Baldwin <jhb@FreeBSD.org>
13233
13234 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13235 (riscv_fbsd_init_abi): Install gdbarch
13236 "fetch_tls_load_module_address" and "get_thread_local_address"
13237 methods.
13238
ce25aa57
JB
132392019-03-12 John Baldwin <jhb@FreeBSD.org>
13240
13241 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13242 (i386fbsd_init_abi): Install gdbarch
13243 "fetch_tls_load_module_address" and "get_thread_local_address"
13244 methods.
13245
f5424cfa
JB
132462019-03-12 John Baldwin <jhb@FreeBSD.org>
13247
13248 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13249 (amd64fbsd_init_abi): Install gdbarch
13250 "fetch_tls_load_module_address" and "get_thread_local_address"
13251 methods.
13252
945f3901
JB
132532019-03-12 John Baldwin <jhb@FreeBSD.org>
13254
13255 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13256 (struct fbsd_pspace_data): New type.
13257 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13258 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13259 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13260 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13261 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13262
ef0bd204
JB
132632019-03-12 John Baldwin <jhb@FreeBSD.org>
13264
13265 * gdbtypes.c (lookup_struct_elt): New function.
13266 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13267 * gdbtypes.h (struct struct_elt): New type.
13268 (lookup_struct_elt): New prototype.
13269
36c53a02
JB
132702019-03-12 John Baldwin <jhb@FreeBSD.org>
13271
13272 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13273 remove disabled code block.
13274
6e056c81
JB
132752019-03-12 John Baldwin <jhb@FreeBSD.org>
13276
13277 * gdbarch.sh (get_thread_local_address): New method.
13278 * gdbarch.h, gdbarch.c: Regenerate.
13279 * target.c (target_translate_tls_address): Use
13280 gdbarch_get_thread_local_address if present instead of
13281 target::get_thread_local_address.
13282
cd250a18
JB
132832019-03-12 John Baldwin <jhb@FreeBSD.org>
13284
13285 * target.h (target::get_thread_local_address): Update comment.
13286
df22c1e5
JB
132872019-03-12 John Baldwin <jhb@FreeBSD.org>
13288
13289 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13290 objfile->separate_debug_objfile_backlink if not NULL.
13291
dd6876c9
JB
132922019-03-12 John Baldwin <jhb@FreeBSD.org>
13293
13294 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13295 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13296 (amd64bsd_store_inferior_registers): Likewise.
13297 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13298 Enable segment base registers.
13299 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13300 PT_GETFSBASE and PT_GETGSBASE.
13301 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13302 PT_SETGSBASE.
13303 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13304 segment base registers.
13305 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13306
1163a4b7
JB
133072019-03-12 John Baldwin <jhb@FreeBSD.org>
13308
13309 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13310 Update calls to i386_target_description to add 'segments'
13311 parameter.
13312 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13313 add segment base registers.
13314 * arch/i386.c (i386_create_target_description): Add 'segments'
13315 parameter to enable segment base registers.
13316 * arch/i386.h (i386_create_target_description): Likewise.
13317 * features/i386/32bit-segments.xml: New file.
13318 * features/i386/32bit-segments.c: Generate.
13319 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13320 call to i386_target_description to add 'segments' parameter.
13321 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13322 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13323 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13324 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13325 if feature is present.
13326 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13327 Add 'segments' parameter to call to i386_target_description.
13328 (i386_target_description): Add 'segments' parameter to enable
13329 segment base registers.
13330 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13331 to call to i386_target_description.
13332 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13333 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13334 Define I386_NUM_REGS.
13335 (i386_target_description): Add 'segments' parameter to enable
13336 segment base registers.
13337
3a350822
EZ
133382019-03-12 Eli Zaretskii <eliz@gnu.org>
13339
13340 PR/24325
13341 * source-cache.c: #undef open and close, to avoid unresolved
13342 externals during linking.
13343
ffdd69cf
TT
133442019-03-12 Tom Tromey <tromey@adacore.com>
13345
13346 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13347 const. Add initializers.
13348 (_initialize_remote): Don't initialize ptid globals.
13349
ec148c57
PA
133502019-03-12 Pedro Alves <palves@redhat.com>
13351
13352 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13353
32764270
PA
133542019-03-12 Pedro Alves <palves@redhat.com>
13355
13356 * cp-name-parser.y (main): Remove unused 'len' variable.
13357
17547186
TT
133582019-03-12 Tom Tromey <tromey@adacore.com>
13359
13360 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13361 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13362
d3a70e03
TT
133632019-03-12 Tom Tromey <tromey@adacore.com>
13364
13365 * linux-nat.c (iterate_over_lwps): Update.
13366 (stop_callback): Remove parameter.
13367 (stop_wait_callback, detach_callback, resume_set_callback)
13368 (select_singlestep_lwp_callback, set_ignore_sigint)
13369 (status_callback, resumed_callback, resume_clear_callback)
13370 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13371 data parameter.
13372 (linux_nat_target::detach, linux_nat_target::resume)
13373 (linux_stop_and_wait_all_lwps, select_event_lwp)
13374 (linux_nat_filter_event, linux_nat_wait_1)
13375 (linux_nat_target::kill, linux_nat_target::stop)
13376 (linux_nat_target::stop): Update.
13377 (linux_nat_resume_callback): Change type.
13378 (resume_stopped_resumed_lwps, count_events_callback)
13379 (select_event_lwp_callback): Likewise.
13380 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13381 * arm-linux-nat.c (struct update_registers_data): Remove.
13382 (update_registers_callback): Change type.
13383 (arm_linux_insert_hw_breakpoint1): Update.
13384 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13385 parameter.
13386 (x86_linux_dr_set_addr): Update.
13387 (x86_linux_dr_set_control): Update.
13388 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13389 (iterate_over_lwps): Use gdb::function_view.
13390 * nat/aarch64-linux-hw-point.c (struct
13391 aarch64_dr_update_callback_param): Remove.
13392 (debug_reg_change_callback): Change type.
13393 (aarch64_notify_debug_reg_change): Update.
13394 * s390-linux-nat.c (s390_refresh_per_info): Update.
13395
82cb27ff
TT
133962019-03-11 Tom Tromey <tromey@adacore.com>
13397
13398 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13399 redundant assignment to "this_cu".
13400
568c0683
SM
134012019-03-08 Simon Marchi <simon.marchi@efficios.com>
13402
13403 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13404
f09ce22d
SM
134052019-03-08 Simon Marchi <simon.marchi@efficios.com>
13406
13407 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13408 from...
13409 (rank_one_type): ... this.
13410
595f96a9
SM
134112019-03-08 Simon Marchi <simon.marchi@efficios.com>
13412
13413 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13414 from...
13415 (rank_one_type): ... this.
13416
2598a94b
SM
134172019-03-08 Simon Marchi <simon.marchi@efficios.com>
13418
13419 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13420 from...
13421 (rank_one_type): ... this.
13422
7f17b20d
SM
134232019-03-08 Simon Marchi <simon.marchi@efficios.com>
13424
13425 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13426 from...
13427 (rank_one_type): ... this.
13428
2c509035
SM
134292019-03-08 Simon Marchi <simon.marchi@efficios.com>
13430
13431 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13432 from...
13433 (rank_one_type): ... this.
13434
0dd322dc
SM
134352019-03-08 Simon Marchi <simon.marchi@efficios.com>
13436
13437 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13438 from...
13439 (rank_one_type): ... this.
13440
41ea4728
SM
134412019-03-08 Simon Marchi <simon.marchi@efficios.com>
13442
13443 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13444 from...
13445 (rank_one_type): ... this.
13446
793cd1d2
SM
134472019-03-08 Simon Marchi <simon.marchi@efficios.com>
13448
13449 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13450 from...
13451 (rank_one_type): ... this.
13452
34910087
SM
134532019-03-08 Simon Marchi <simon.marchi@efficios.com>
13454
13455 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13456 from...
13457 (rank_one_type): ... this.
13458
f1f832d6
SM
134592019-03-08 Simon Marchi <simon.marchi@efficios.com>
13460
13461 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13462 from...
13463 (rank_one_type): ... this.
13464
b9f4512f
SM
134652019-03-08 Simon Marchi <simon.marchi@efficios.com>
13466
13467 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13468 from...
13469 (rank_one_type): ... this.
13470
9293fc63
SM
134712019-03-08 Simon Marchi <simon.marchi@efficios.com>
13472
13473 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13474 from...
13475 (rank_one_type): ... this.
13476
e3abbe7e
PW
134772019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13478
13479 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13480 inferior-events' shows the example events.
13481
e4adb939
EZ
134822019-03-08 Eli Zaretskii <eliz@gnu.org>
13483
13484 Support styling on native MS-Windows console
13485
13486 PR/24315
13487 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13488 on MS-Windows if $TERM is not defined.
13489
13490 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13491
13492 * posix-hdep.c (gdb_console_fputs):
13493 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13494 functions.
13495 * ui-file.h (gdb_console_fputs): Add prototype.
13496
13497 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13498 back to fputs only if the former returns zero.
13499
25629dfd
TT
135002019-03-07 Tom Tromey <tom@tromey.com>
13501
13502 * symmisc.c (print_symbol_bcache_statistics): Update.
13503 (print_objfile_statistics): Update.
13504 * symfile.c (allocate_symtab): Update.
13505 * stabsread.c: Don't include bcache.h.
13506 * psymtab.h (struct psymbol_bcache): Don't declare.
13507 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13508 (psymbol_bcache_init, psymbol_bcache_free)
13509 (psymbol_bcache_get_bcache): Don't declare.
13510 * psymtab.c (struct psymbol_bcache): Remove.
13511 (psymtab_storage::psymtab_storage): Update.
13512 (psymtab_storage::~psymtab_storage): Update.
13513 (psymbol_bcache_init, psymbol_bcache_free)
13514 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13515 (add_psymbol_to_bcache): Update.
13516 (allocate_psymtab): Update.
13517 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13518 macro_cache>: No longer pointers.
13519 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13520 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13521 * macrotab.c (macro_bcache): Update.
13522 * macroexp.c: Don't include bcache.h.
13523 * gdbtypes.c (check_types_worklist): Update.
13524 (types_deeply_equal): Remove TRY/CATCH. Update.
13525 * elfread.c (elf_symtab_read): Update.
13526 * dwarf2read.c: Don't include bcache.h.
13527 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13528 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13529 (print_bcache_statistics, bcache_memory_used): Don't declare.
13530 (struct bcache): Move from bcache.c. Add constructor, destructor,
13531 methods. Rename all data members.
13532 * bcache.c (struct bcache): Move to bcache.h.
13533 (bcache::expand_hash_table): Rename from expand_hash_table.
13534 (bcache): Remove.
13535 (bcache::insert): Rename from bcache_full.
13536 (bcache::compare): Rename from bcache_compare.
13537 (bcache_xmalloc): Remove.
13538 (bcache::~bcache): Rename from bcache_xfree.
13539 (bcache::print_statistics): Rename from print_bcache_statistics.
13540 (bcache::memory_used): Rename from bcache_memory_used.
13541
fe726667
PA
135422019-03-07 Pedro Alves <palves@redhat.com>
13543
13544 * infrun.c (normal_stop): Also check for
13545 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13546
7584bb30
AB
135472019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13548
13549 * f-lang.c (value_from_host_double): Moved to...
13550 * value.c (value_from_host_double): ...here.
13551 * value.h (value_from_host_double): Declare.
13552 * guile/scm-math.c (vlscm_convert_typed_number): Use
13553 value_from_host_double.
13554 (vlscm_convert_number): Likewise.
13555 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13556 * python/py-value.c (convert_value_from_python): Likewise.
13557
a7b1986e
TT
135582019-03-06 Tom Tromey <tom@tromey.com>
13559
13560 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13561
0ccf4211
TT
135622019-03-06 Tom Tromey <tom@tromey.com>
13563
13564 * utils.h (free_current_contents): Don't declare.
13565 * utils.c (free_current_contents): Remove.
13566
fe7b42e5
TT
135672019-03-06 Tom Tromey <tom@tromey.com>
13568
13569 * top.c (quit_force): Update.
13570 * main.c (captured_command_loop): Update.
13571 * common/new-op.c (operator new): Update.
13572 * common/common-exceptions.c (struct catcher)
13573 <save_cleanup_chain>: Remove member.
13574 (exceptions_state_mc_init): Update.
13575 (exception_try_scope_entry): Return nullptr.
13576 (exception_try_scope_exit, exception_rethrow)
13577 (throw_exception_sjlj, throw_exception_cxx): Update.
13578 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13579 (all_cleanups, do_cleanups, discard_cleanups)
13580 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13581 (restore_cleanups, restore_final_cleanups): Don't declare.
13582 (do_final_cleanups): Remove parameter.
13583 * common/cleanups.c (cleanup_chain, make_cleanup)
13584 (make_cleanup_dtor, all_cleanups, do_cleanups)
13585 (discard_my_cleanups, discard_cleanups)
13586 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13587 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13588 (null_cleanup): Remove.
13589 (do_final_cleanups): Remove parameter.
13590
c6321f19
TT
135912019-03-06 Tom Tromey <tom@tromey.com>
13592
13593 * remote.c (remote_target::remote_parse_stop_reply): Use
13594 unique_xmalloc_ptr.
13595
61b30099
TT
135962019-03-06 Tom Tromey <tom@tromey.com>
13597
13598 * stabsread.c (struct stabs_field_info): Rename from field_info.
13599 <list, fnlist>: Add initializers.
13600 <obstack>: New member.
13601 (read_member_functions, read_struct_fields, read_baseclasses):
13602 Allocate on obstack. Don't use cleanups.
13603 (read_one_struct_field, read_member_functions, read_struct_fields)
13604 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13605 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13606 (read_struct_type): Update.
13607
6cceac94
TT
136082019-03-06 Tom Tromey <tom@tromey.com>
13609
13610 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13611 * common/filestuff.h (make_cleanup_close): Don't declare.
13612 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13613 Remove.
13614
72412762
TT
136152019-03-06 Tom Tromey <tom@tromey.com>
13616
13617 * solib-aix.c: Use make_scope_exit.
13618
2b6ff1c0
TT
136192019-03-06 Tom Tromey <tom@tromey.com>
13620
13621 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13622 Use make_scope_exit.
13623
d01c5877
TT
136242019-03-06 Tom Tromey <tom@tromey.com>
13625
13626 * solib-svr4.c (disable_probes_interface): Remove parameter.
13627 (svr4_handle_solib_event): Use make_scope_exit.
13628
32603266
TT
136292019-03-06 Tom Tromey <tom@tromey.com>
13630
13631 * remote.c (struct stop_reply_deleter): Remove.
13632 (stop_reply_up): Update.
13633 (struct stop_reply): Derive from notif_event. Don't typedef.
13634 <regcache>: Now a std::vector.
13635 (stop_reply_xfree): Remove.
13636 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13637 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13638 (remote_target::discard_pending_stop_replies): Use delete.
13639 (remote_target::remote_parse_stop_reply): Update.
13640 (remote_target::process_stop_reply): Update.
13641 * remote-notif.h (struct notif_event): Add virtual destructor.
13642 Remove "dtr" member.
13643 (struct notif_client) <alloc_event>: Return a unique_ptr.
13644 (notif_event_xfree): Don't declare.
13645 (notif_event_up): New typedef.
13646 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13647 (notif_event_xfree, do_notif_event_xfree): Remove.
13648 (remote_notif_state_xfree): Update.
13649
9799571e
TT
136502019-03-06 Tom Tromey <tom@tromey.com>
13651
13652 * infrun.c (displaced_step_clear_cleanup): Now a
13653 forward_scope_exit type.
13654 (displaced_step_prepare_throw): Update.
13655 (displaced_step_fixup): Update.
13656
09e3c4ca
TT
136572019-03-06 Tom Tromey <tom@tromey.com>
13658
13659 * inferior.h (class inferior): Update comment.
13660 * gdbthread.h (class thread_info): Update comment.
13661
e2a03548
TT
136622019-03-06 Joel Brobecker <brobecker@adacore.com>
13663 Tom Tromey <tom@tromey.com>
13664
13665 * stabsread.h (struct stab_section_list): Remove.
13666 (coffstab_build_psymtabs): Update.
13667 * dbxread.c (symbuf_sections): Now a std::vector.
13668 (sect_idx): New global.
13669 (fill_symbuf): Update.
13670 (coffstab_build_psymtabs): Change type of stabsects parameter.
13671 Update.
13672 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13673 std::vector.
13674 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13675 (coff_locate_sections): Update.
13676 (coff_symfile_read): Remove cleanups. Update.
13677 (init_stringtab): Add storage parameter.
13678 (free_stringtab, free_stringtab_cleanup): Remove.
13679 (init_lineno): Add storage parameter.
13680 (free_linetab, free_linetab_cleanup): Remove.
13681
b7e60d85
PA
136822019-03-06 Pedro Alves <palves@redhat.com>
13683
13684 * linux-fork.c (fork_info::clobber_regs): Delete.
13685 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13686 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13687 comment. Adjust.
13688 (scoped_switch_fork_info::scoped_switch_fork_info)
13689 (checkpoint_command, linux_fork_context): Adjust
13690 fork_save_infrun_state calls.
13691
e52c971f
PA
136922019-03-06 Pedro Alves <palves@redhat.com>
13693
13694 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13695 (inf_has_multiple_threads): Return 'bool' and rewrite using
13696 inferior_info::threads().
13697
06974e6c
PA
136982019-03-06 Pedro Alves <palves@redhat.com>
13699
13700 * linux-fork.c: Include <list>.
13701 (fork_list): Now a std::list instance.
13702 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13703 (forks_exist_p, find_last_fork): Adjust.
13704 (new_fork): Delete.
13705 (one_fork_p): New.
13706 (add_fork): Adjust.
13707 (free_fork): Delete, folded into fork_info::~fork_info().
13708 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13709 Adjust.
13710 (init_fork_list): Delete.
13711 (linux_fork_killall, linux_fork_mourn_inferior)
13712 (linux_fork_detach, info_checkpoints_command): Adjust.
13713 (_initialize_linux_fork): No longer call init_fork_list.
13714
72f31aea
PA
137152019-03-06 Pedro Alves <palves@redhat.com>
13716
13717 * linux-fork.c (new_fork): New, split out of ...
13718 (add_fork): ... this. Return void. Move "first fork" special
13719 case from here, to ...
13720 (checkpoint_command): ... here.
13721 * linux-linux.h (add_fork): Return void.
13722
efbecbc1
AB
137232019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13724
13725 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13726
0841c79a
AB
137272019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13728 Chris January <chris.january@arm.com>
13729 David Lecomber <david.lecomber@arm.com>
13730
13731 * f-exp.y: New token, UNOP_INTRINSIC.
13732 (exp): New pattern using UNOP_INTRINSIC token.
13733 (f77_keywords): Add 'abs' keyword.
13734 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13735 (value_from_host_double): New function.
13736 (evaluate_subexp_f): Support UNOP_ABS.
13737
4a270568
AB
137382019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13739
13740 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13741 types.
13742
067630bd
AB
137432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13744
13745 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13746 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13747 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13748
3be47f7a
AB
137492019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13750
13751 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13752
4d00f5d8
AB
137532019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13754 Chris January <chris.january@arm.com>
13755
13756 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13757 * f-exp.y: Define 'KIND' token.
13758 (exp): New pattern for KIND expressions.
13759 (ptype): Handle types with a kind extension.
13760 (direct_abs_decl): Extend to spot kind extensions.
13761 (f77_keywords): Add 'kind' to the list.
13762 (push_kind_type): New function.
13763 (convert_to_kind_type): New function.
13764 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13765 * parse.c (operator_length_standard): Likewise.
13766 * parser-defs.h (enum type_pieces): Add tp_kind.
13767 * std-operator.def: Add UNOP_KIND.
13768
e454224f
AB
137692019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13770
13771 * f-exp.y (f_parse): Set yydebug.
13772
9dad4a58
AB
137732019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13774
13775 * f-lang.c (evaluate_subexp_f): New function.
13776 (exp_descriptor_f): New global.
13777 (f_language_defn): Use exp_descriptor_f instead of
13778 exp_descriptor_standard.
13779
c8f91604
AB
137802019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13781
13782 * f-exp.y (struct token): Add comments.
13783 (dot_ops): Remove uppercase versions and the end marker.
13784 (f77_keywords): Likewise.
13785 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13786 entries in the dot_ops array are case insensitive, and use
13787 strncasecmp to compare strings. Also some whitespace cleanup in
13788 this area. Similar for the f77_keywords array, except entries in
13789 this list might be case sensitive.
13790
dd9f2c76
AB
137912019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13792
13793 * f-exp.y (struct f77_boolean_val): Add comments.
13794 (boolean_values): Remove uppercase versions, and end marker.
13795 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13796 and use strncasecmp to achieve case insensitivity. Additionally,
13797 perform whitespace cleanup around this code.
13798
67a3048c
TT
137992019-03-06 Tom Tromey <tromey@adacore.com>
13800
13801 * remote-sim.c (gdbsim_target_open): Use result of
13802 gdb_argv::release.
13803
aa3cfbda
RB
138042019-03-06 Richard Bunt <richard.bunt@arm.com>
13805 Dirk Schubert <dirk.schubert@arm.com>
13806 Chris January <chris.january@arm.com>
13807
13808 * eval.c (evaluate_subexp_standard): Call Fortran argument
13809 wrapping logic.
13810 * f-lang.c (struct value): A value which can be passed into a
13811 Fortran function call.
13812 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13813 where appropriate.
13814 (struct type): Value ready for a Fortran function call.
13815 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13816 is needed.
13817 * f-lang.h (fortran_argument_convert): Declaration.
13818 (fortran_preserve_arg_pointer): Declaration.
13819 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13820
ea38e5df
TT
138212019-03-05 Tom Tromey <tromey@adacore.com>
13822
13823 * python/py-prettyprint.c (print_string_repr): Remove #if.
13824 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13825
06b5b831
TT
138262019-03-05 Tom Tromey <tromey@adacore.com>
13827
13828 * target.c (the_dummy_target): Move later. Change type to
13829 "dummy_target".
13830 (initialize_targets): Don't initialize the_dummy_target.
13831
edbd9e45
TT
138322019-03-05 Tom Tromey <tromey@adacore.com>
13833
13834 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13835 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13836
c119e040
TT
138372019-03-05 Tom Tromey <tromey@adacore.com>
13838
13839 * windows-nat.c (windows_nat_target::attach)
13840 (windows_nat_target::detach): Don't call gdb_flush.
13841 * valprint.c (generic_val_print, val_print, val_print_string):
13842 Don't call gdb_flush.
13843 * utils.c (defaulted_query): Don't call gdb_flush.
13844 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13845 * target.c (target_announce_detach): Don't call gdb_flush.
13846 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13847 * remote.c (extended_remote_target::attach): Don't call
13848 gdb_flush.
13849 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13850 * printcmd.c (do_examine): Don't call gdb_flush.
13851 (info_display_command): Don't call gdb_flush.
13852 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13853 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13854 * memattr.c (info_mem_command): Don't call gdb_flush.
13855 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13856 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13857 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13858 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13859 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13860 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13861 (gnu_nat_target::detach): Don't call gdb_flush.
13862 * f-valprint.c (f_val_print): Don't call gdb_flush.
13863 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13864 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13865 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13866 gdb_flush.
13867 * c-valprint.c (c_val_print): Don't call gdb_flush.
13868 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13869
895dafa6
TT
138702019-03-05 Tom Tromey <tromey@adacore.com>
13871
13872 * varobj.c (update_dynamic_varobj_children): Update.
13873 (install_default_visualizer): Use reset, not release.
13874 * value.c (set_internalvar): Update.
13875 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13876 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13877 ATTRIBUTE_UNUSED_RESULT.
13878
88a774b9
TT
138792019-03-05 Tom Tromey <tromey@adacore.com>
13880
13881 * remote.c (class scoped_remote_fd) <release>: Add
13882 ATTRIBUTE_UNUSED_RESULT.
13883
4e4a8b93
TT
138842019-03-05 Tom Tromey <tromey@adacore.com>
13885
13886 * macroexp.c (struct macro_buffer) <release>: Add
13887 ATTRIBUTE_UNUSED_RESULT.
13888
083eef1f
TT
138892019-03-05 Tom Tromey <tromey@adacore.com>
13890
13891 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13892 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13893 ATTRIBUTE_UNUSED_RESULT.
13894
3cabd438
TT
138952019-03-05 Tom Tromey <tromey@adacore.com>
13896
13897 * common/scoped_fd.h (class scoped_fd) <release>: Add
13898 ATTRIBUTE_UNUSED_RESULT.
13899
41e3300a
TT
139002019-03-05 Tom Tromey <tromey@adacore.com>
13901
13902 * parser-defs.h (struct parser_state) <release>: Add
13903 ATTRIBUTE_UNUSED_RESULT.
13904
18cb7c9f
TT
139052019-03-05 Tom Tromey <tromey@adacore.com>
13906
13907 * utils.h (class gdb_argv) <release>: Add
13908 ATTRIBUTE_UNUSED_RESULT.
13909 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13910
41fa577f
EZ
139112019-03-02 Eli Zaretskii <eliz@gnu.org>
13912
a6a4b2c6
EZ
13913 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13914 for-loop range, to avoid compiler warnings.
13915
13916 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13917 avoid compiler warnings about unused variables.
13918
742a7df5
EZ
13919 * NEWS: Mention end of support for native debugging on MS-Windows
13920 before XP.
13921
41fa577f
EZ
13922 PR gdb/24292
13923 * common/netstuff.c:
13924 * gdbserver/gdbreplay.c
13925 * gdbserver/remote-utils.c:
13926 * ser-tcp.c:
13927 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13928 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13929 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13930 'getaddrinfo' and 'freeaddrinfo' were not available before
13931 Windows XP, and mingw.org's MinGW headers by default define
13932 _WIN32_WINNT to 0x500.
13933
827f438f
GB
139342019-03-01 Gary Benson <gbenson@redhat.com>
13935
13936 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13937
92137da0
RO
139382019-02-28 Brian Vandenberg <phantall@gmail.com>
13939 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13940
13941 PR gdb/8527
13942 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13943 set_sigint_trap, clear_sigint_trap.
13944
799efbe8
PW
139452019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13946
13947 * target.c (target_detach): Clear the regcache and the
13948 frame cache.
13949
8ed25214
PA
139502019-02-27 Pedro Alves <palves@redhat.com>
13951
13952 * utils.c (set_screen_size): When we cap the height/width sizes,
13953 tweak the corresponding command variable to show "unlimited":
13954
23031e31
SJ
139552019-02-27 Saagar Jha <saagar@saagarjha.com>
13956 Pedro Alves <palves@redhat.com>
13957
13958 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13959 before calling rl_set_screen_size.
13960
6c28e44a
TT
139612019-02-27 Tom Tromey <tromey@adacore.com>
13962
13963 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13964 define.
13965 * python/py-value.c: Remove Python 2.4 workaround.
13966 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13967 workaround.
13968 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13969 Python 2.4 workaround.
13970 * python/python-internal.h: Remove Python 2.4 comment.
13971 (Py_ssize_t): Don't define.
13972 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13973 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13974 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13975 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13976 * python/python.c (do_start_initialization): Remove Python 2.4
13977 workaround.
13978 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13979 (print_children): Remove Python 2.4 workaround.
13980 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13981 workaround.
13982 (CHARBUFFERPROC_NAME): Remove.
13983 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13984 Python 2.4 workaround.
13985
2c3fc25d 139862019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13987
2c3fc25d
KB
13988 * NEWS: Note minimum Python version.
13989
6ca62222
KB
139902019-02-27 Kevin Buettner <kevinb@redhat.com>
13991
13992 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13993 code from these functions. Remove corresponding ifdefs. Use
13994 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13995 Remove gotos and target of gotos.
13996 (infpy_search_memory): Likewise.
13997
f4bc7d2c
AB
139982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13999
14000 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14001 (hppa_gdbarch_init): Don't register deleted functions with
14002 gdbarch.
14003
9734a586
AB
140042019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14005
14006 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14007 (h8300_unwind_sp): Delete.
14008 (h8300_dummy_id): Delete.
14009 (h8300_gdbarch_init): Don't register deleted functions with
14010 gdbarch.
14011
68b867f3
AB
140122019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14013
14014 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14015 (ft32_unwind_pc): Delete.
14016 (ft32_unwind_sp): Delete.
14017 (ft32_gdbarch_init): Don't register deleted functions with
14018 gdbarch.
14019
2fbe7ad0
AB
140202019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14021
14022 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14023 (frv_unwind_pc): Delete.
14024 (frv_unwind_sp): Delete.
14025 (frv_gdbarch_init): Don't register deleted functions with
14026 gdbarch.
14027
76055cbe
AB
140282019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14029
14030 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14031 (riscv_unwind_pc): Delete.
14032 (riscv_unwind_sp): Delete.
14033 (riscv_gdbarch_init): Don't register deleted functions with
14034 gdbarch.
14035
4133e5a1
AB
140362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14037
14038 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14039 (csky_unwind_pc): Delete.
14040 (csky_unwind_sp): Delete.
14041 (csky_gdbarch_init): Don't register deleted functions with
14042 gdbarch.
14043
8010f576
AB
140442019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14045
14046 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14047 (cris_unwind_pc): Delete.
14048 (cris_unwind_sp): Delete.
14049 (cris_gdbarch_init): Don't register deleted functions with
14050 gdbarch.
14051
b56bf084
AB
140522019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14053
14054 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14055 (bfin_unwind_pc): Delete.
14056 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14057
a19a650f
AB
140582019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14059
14060 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14061 (arm_unwind_pc): Delete.
14062 (arm_unwind_sp): Delete.
14063 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14064
f8278c3c
AB
140652019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14066
14067 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14068 (arc_unwind_pc): Delete.
14069 (arc_unwind_sp): Delete.
14070 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14071
480e46cf
AB
140722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14073
14074 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14075 (alpha_unwind_pc): Delete.
14076 (alpha_gdbarch_init): Don't register deleted functions with
14077 gdbarch.
14078
7a995095
AB
140792019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14080
14081 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14082 (aarch64_unwind_pc): Delete.
14083 (aarch64_unwind_sp): Delete.
14084 (aarch64_gdbarch_init): Don't register deleted functions with
14085 gdbarch.
14086
bf9a735e
AB
140872019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14088
14089 * gdbtypes.c (type_align): Don't consider static members when
14090 computing structure alignment.
14091
5561fc30
AB
140922019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14093
14094 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14095 return 0 for other types.
14096 * arch-utils.c (default_type_align): Always return 0.
14097 * gdbarch.h: Regenerate.
14098 * gdbarch.sh (type_align): Extend comment.
14099 * gdbtypes.c (type_align): Add additional comments, always call
14100 gdbarch_type_align before applying the default rules.
14101 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14102 generic code will then apply a suitable default.
14103 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14104 types, return 0 for other types.
14105
9335e75a
JB
141062019-02-27 Joel Brobecker <brobecker@adacore.com>
14107
14108 * NEWS: Create a new section for the next release branch.
14109 Rename the section of the current branch, now that it has
14110 been cut.
14111
3d34d8de
JB
141122019-02-27 Joel Brobecker <brobecker@adacore.com>
14113
14114 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14115 * version.in: Bump version to 8.3.50.DATE-git.
14116
143420fb
SM
141172019-02-26 Simon Marchi <simon.marchi@efficios.com>
14118
14119 * aix-thread.c (ptid_cmp): Remove unused variable.
14120 (get_signaled_thread): Likewise.
14121 (store_regs_user_thread): Likewise.
14122 (store_regs_kernel_thread): Likewise.
14123 (fetch_regs_kernel_thread): Remove shadowed variable.
14124
172fb711
AB
141252019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14126
14127 * features/riscv/32bit-cpu.xml: Add register numbers.
14128 * features/riscv/32bit-fpu.c: Regenerate.
14129 * features/riscv/32bit-fpu.xml: Add register numbers.
14130 * features/riscv/64bit-cpu.xml: Add register numbers.
14131 * features/riscv/64bit-fpu.c: Regenerate.
14132 * features/riscv/64bit-fpu.xml: Add register numbers.
14133
26c89782
KB
141342019-02-26 Kevin Buettner <kevinb@redhat.com>
14135
af54ade9 14136 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14137 * python/py-value.c (convert_buffer_and_type_to_value): New
14138 function.
14139 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14140 Add support for handling an optional second argument. Call
14141 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14142 * python/python-internal.h (Py_buffer_deleter): New struct.
14143 (Py_buffer_up): New typedef.
14144
0f58c9e8
JB
141452019-02-25 John Baldwin <jhb@FreeBSD.org>
14146
14147 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14148 instead of releasing ownership.
14149
0a0f4c01
JR
141502019-02-25 Jordan Rupprecht <rupprecht@google.com>
14151
14152 * dwarf2read.c (open_and_init_dwp_file): Call
14153 elf_numsections instead of bfd_count_sections to initialize
14154 dwp_file->num_sections.
14155
cd5a152c
TT
141562019-02-25 Tom Tromey <tromey@adacore.com>
14157
14158 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14159
8a6a8513
SDJ
141602019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14161
14162 * gcore.in: Add '--readnever' option when invoking GDB.
14163
04dcda9c
SM
141642019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14165
14166 * MAINTAINERS: Update my email address.
14167
07bc701d
SM
141682019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14169
14170 * build-id.c (build_id_to_debug_bfd_1): New function.
14171 (build_id_to_debug_bfd): Look for separate debug file in
14172 sysroot.
14173
c6f4a5d0
AB
141742019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14175
14176 * gdbarch.sh: Update the copyright year range that is placed into
14177 generated files.
14178
9600246d
KS
141792019-02-22 Keith Seitz <keiths@redhat.com>
14180
14181 PR symtab/23853
14182 * linespec.c (create_sals_line_offset): Search for the default
14183 symtab's filename instead of its fullname.
14184
7557a514
AH
141852019-02-21 Alan Hayward <alan.hayward@arm.com>
14186
14187 * NEWS: Update style defaults.
14188
ee2bcb0c
AH
141892019-02-21 Alan Hayward <alan.hayward@arm.com>
14190
14191 * main.c (captured_main_1): Disable styling in batch mode.
14192
0c95f9ed
TT
141932019-02-20 Tom Tromey <tom@tromey.com>
14194
14195 * symtab.c (symtab_symbol_info): Fix typos.
14196
c763b894
TT
141972019-02-20 Tom Tromey <tromey@adacore.com>
14198
14199 * findcmd.c (_initialize_mem_search): Use upper case for
14200 metasyntactic variables.
14201
0ef8a082
AH
142022019-02-20 Alan Hayward <alan.hayward@arm.com>
14203
14204 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14205 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14206
6caa91b6
SM
142072019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14208
14209 * top.h (source_file_name): Change to std::string.
14210 * top.c (source_file_name): Likewise.
14211 (command_line_input): Adjust.
14212 * cli/cli-script.c (script_from_file): Adjust.
14213
98814c6c
TT
142142019-02-19 Tom Tromey <tromey@adacore.com>
14215
14216 * ravenscar-thread.c
14217 (ravenscar_thread_target::update_thread_list): Don't call
14218 ada_build_task_list.
14219 * ada-lang.h (ada_build_task_list): Don't declare.
14220 * ada-tasks.c (struct ada_tasks_inferior_data)
14221 <task_list_valid_p>: Now bool.
14222 (read_known_tasks, ada_task_list_changed)
14223 (ada_tasks_invalidate_inferior_data): Update.
14224 (read_known_tasks_array): Return bool.
14225 (read_known_tasks_list): Likewise.
14226 (read_known_tasks): Return void.
14227 (ada_build_task_list): Now static.
14228
70cd633e
AB
142292019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14230
14231 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14232 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14233
040b3e95
PW
142342019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14235
14236 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14237 variant for ada_tasks_pspace_data_handle and
14238 ada_tasks_inferior_data_handle.
14239 (ada_tasks_pspace_data_cleanup): New function.
14240 (ada_tasks_inferior_data_cleanup): New function.
14241
9409233b
TT
142422019-02-17 Tom Tromey <tom@tromey.com>
14243
14244 * macrotab.h (macro_source_fullname): Return a std::string.
14245 * macrotab.c (macro_include, check_for_redefinition)
14246 (macro_undef, macro_lookup_definition, foreach_macro)
14247 (foreach_macro_in_scope): Update.
14248 (macro_source_fullname): Return a std::string.
14249 * macrocmd.c (show_pp_source_pos): Update.
14250
6506371f
TT
142512019-02-17 Tom Tromey <tom@tromey.com>
14252
14253 * macrocmd.c (show_pp_source_pos): Style the file names.
14254
0c820d67
TT
142552019-02-17 Tom Tromey <tom@tromey.com>
14256
14257 PR tui/24197:
14258 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14259
a0087920
TT
142602019-02-17 Tom Tromey <tom@tromey.com>
14261
14262 * ada-lang.c (user_select_syms): Use filtered printing.
14263 * utils.c (wrap_style): New global.
14264 (desired_style): Remove.
14265 (emit_style_escape): Add stream parameter.
14266 (set_output_style, reset_terminal_style, prompt_for_continue):
14267 Update.
14268 (flush_wrap_buffer): Only flush gdb_stdout.
14269 (wrap_here): Set wrap_style.
14270 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14271 treat escape sequences as a character. Change when wrap buffer is
14272 flushed.
14273 (fputs_styled): Do not set the output style when the default is
14274 requested.
14275 * ui-style.h (struct ui_file_style) <is_default>: New method.
14276 * source.c (print_source_lines_base): Emit escape sequences in one
14277 piece.
14278
75ba10dc
JB
142792019-02-17 Joel Brobecker <brobecker@adacore.com>
14280
14281 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14282 integers and enumeration types.
14283
a2cd4f14
JB
142842019-02-17 Joel Brobecker <brobecker@adacore.com>
14285
14286 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14287 instead of lookup_symbol_in_language
14288 (do_exact_match): New function.
14289 (ada_get_symbol_name_matcher): Return do_exact_match when
14290 doing a verbatim match.
14291
485b851b
TT
142922019-02-15 Tom Tromey <tromey@adacore.com>
14293
14294 * ravenscar-thread.c (ravenscar_thread_target::resume)
14295 (ravenscar_thread_target::wait): Special case wildcard requests.
14296
0b790b1e
TT
142972019-02-15 Tom Tromey <tromey@adacore.com>
14298
14299 * ravenscar-thread.c (base_ptid): Remove.
14300 (struct ravenscar_thread_target) <close>: New method.
14301 <m_base_ptid>: New member.
14302 <update_inferior_ptid, active_task, task_is_currently_active,
14303 runtime_initialized>: Declare methods.
14304 <ravenscar_thread_target>: Add constructor.
14305 (ravenscar_thread_target::task_is_currently_active)
14306 (ravenscar_thread_target::update_inferior_ptid)
14307 (ravenscar_runtime_initialized): Rename. Now methods.
14308 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14309 (ravenscar_thread_target::update_thread_list): Update.
14310 (ravenscar_thread_target::active_task): Now method.
14311 (ravenscar_thread_target::store_registers)
14312 (ravenscar_thread_target::prepare_to_store)
14313 (ravenscar_thread_target::prepare_to_store)
14314 (ravenscar_thread_target::mourn_inferior): Update.
14315 (ravenscar_inferior_created): Use "new" to create target.
14316 (ravenscar_thread_target::get_ada_task_ptid): Update.
14317 (_initialize_ravenscar): Don't initialize base_ptid.
14318 (ravenscar_ops): Remove global.
14319
dea57a62
TT
143202019-02-15 Tom Tromey <tromey@adacore.com>
14321
14322 * target.h (push_target): Declare new overload.
14323 * target.c (push_target): New overload, taking an rvalue reference.
14324 * remote.c (remote_target::open_1): Use push_target overload.
14325 * corelow.c (core_target_open): Use push_target overload.
14326
989f3c58
TT
143272019-02-15 Tom Tromey <tromey@adacore.com>
14328
14329 * ravenscar-thread.c (is_ravenscar_task)
14330 (ravenscar_task_is_currently_active): Return bool.
14331 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14332 (_initialize_ravenscar): Remove "(void)".
14333 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14334 Return bool.
14335
6cbcc006
TT
143362019-02-15 Tom Tromey <tromey@adacore.com>
14337
14338 * ravenscar-thread.c (ravenscar_runtime_initializer)
14339 (has_ravenscar_runtime, get_running_thread_id)
14340 (ravenscar_thread_target::resume): Fix indentation.
14341
7657f14d
TT
143422019-02-15 Tom Tromey <tromey@adacore.com>
14343
14344 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14345 from ravenscar_arch_ops.
14346 (sparc_ravenscar_ops::fetch_registers)
14347 (sparc_ravenscar_ops::store_registers): Now methods.
14348 (sparc_ravenscar_prepare_to_store): Remove.
14349 (sparc_ravenscar_ops): Redefine.
14350 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14351 methods and destructor. Remove members.
14352 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14353 (ravenscar_thread_target::store_registers)
14354 (ravenscar_thread_target::prepare_to_store): Update.
14355 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14356 Remove.
14357 (struct ppc_ravenscar_powerpc_ops): Derive from
14358 ravenscar_arch_ops.
14359 (ppc_ravenscar_powerpc_ops::fetch_registers)
14360 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14361 (ppc_ravenscar_powerpc_ops): Redefine.
14362 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14363 (ppc_ravenscar_e500_ops::fetch_registers)
14364 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14365 (ppc_ravenscar_e500_ops): Redefine.
14366 * aarch64-ravenscar-thread.c
14367 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14368 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14369 (aarch64_ravenscar_fetch_registers)
14370 (aarch64_ravenscar_store_registers): Now methods.
14371 (aarch64_ravenscar_ops): Redefine.
14372
5b6ea500
TT
143732019-02-15 Tom Tromey <tromey@adacore.com>
14374
14375 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14376 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14377 (ravenscar_thread_target::stopped_by_watchpoint)
14378 (ravenscar_thread_target::stopped_data_address)
14379 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14380
e397fd39
TT
143812019-02-15 Tom Tromey <tromey@adacore.com>
14382
14383 * ravenscar-thread.c: Fix some typos.
14384
cc12f4a8
TT
143852019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14386 Tom Tromey <tromey@adacore.com>
14387
14388 * ada-lang.c (ada_exception_sal): Change addr_string to a
14389 std::string.
14390 (create_ada_exception_catchpoint): Update.
14391
5f486660
TT
143922019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14393 Tom Tromey <tromey@adacore.com>
14394
14395 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14396 (bp_location_ops): Remove.
14397 (base_breakpoint_allocate_location): Update.
14398 (free_bp_location): Update.
14399 * ada-lang.c (class ada_catchpoint_location)
14400 <ada_catchpoint_location>: Remove ops parameter.
14401 (ada_catchpoint_location_dtor): Remove.
14402 (ada_catchpoint_location_ops): Remove.
14403 (allocate_location_exception): Update.
14404 * breakpoint.h (struct bp_location_ops): Remove.
14405 (class bp_location) <bp_location>: Remove bp_location_ops
14406 parameter.
14407 <~bp_location>: Add destructor.
14408 <ops>: Remove.
14409
b671c7fb
TS
144102019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14411 Pedro Alves <palves@redhat.com>
14412
14413 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14414 'PATH_MAX'.
14415
8071c5ce
DM
144162019-02-14 David Michael <fedora.dm0@gmail.com>
14417 Samuel Thibault <samuel.thibault@gnu.org>
14418 Thomas Schwinge <thomas@codesourcery.com>
14419
14420 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14421 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14422
b1041ae0
TS
144232019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14424
924514e1
TS
14425 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14426 (check_empty): Use "const char *".
14427
c29ee8d4
TS
14428 * gnu-nat.c (gnu_nat_target::detach): Instead of
14429 'detach_inferior (pid)' call
14430 'detach_inferior (find_inferior_pid (pid))'.
14431
6c6ef69f
TS
14432 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14433 'nat/fork-inferior.o'.
14434 * gnu-nat.c: #include "nat/fork-inferior.h".
14435
2d0a338c
TS
14436 * gnu-nat.c (gnu_nat_target::detach): Instead of
14437 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14438 * gnu-nat.h: #include "inf-child.h".
14439 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14440 'i386_gnu_nat_target::fetch_registers'.
14441 (gnu_store_registers): Rename/move to
14442 'i386_gnu_nat_target::store_registers'.
14443
cabb5f06
TS
14444 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14445 * gnu-nat.h (mach_thread_info): New function.
14446 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14447
b1041ae0
TS
14448 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14449
2988d01e
KF
144502019-02-14 Frederic Konrad <konrad@adacore.com>
14451
14452 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14453
c559d709
JB
144542019-02-14 Joel Brobecker <brobecker@adacore.com>
14455
14456 * windows-nat.c (windows_add_thread): Add new parameter
14457 "main_thread_p" with default value set to false. Update
14458 function documentation as well as all callers.
14459 (windows_delete_thread): Likewise.
14460 (fake_create_process): Update call to windows_add_thread.
14461 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14462 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14463 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14464 call to windows_delete_thread.
14465
007024cc
SM
144662019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14467
14468 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14469
f62318e9
JB
144702019-02-12 John Baldwin <jhb@FreeBSD.org>
14471
14472 * symfile.c (find_separate_debug_file): Use canonical path of
14473 sysroot with child_path instead of gdb_sysroot if it is valid.
14474
cd4b7848
JB
144752019-02-12 John Baldwin <jhb@FreeBSD.org>
14476
14477 * symfile.c (find_separate_debug_file): Use child_path to
14478 determine if an object file is under a sysroot.
14479
efac4bfe
JB
144802019-02-12 John Baldwin <jhb@FreeBSD.org>
14481
14482 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14483 unittests/child-path-selftests.c.
14484 * common/pathstuff.c (child_path): New function.
14485 * common/pathstuff.h (child_path): New prototype.
14486 * unittests/child-path-selftests.c: New file.
14487
402d2bfe
JB
144882019-02-12 John Baldwin <jhb@FreeBSD.org>
14489
14490 * symfile.c (find_separate_debug_file): Look for separate debug
14491 files in debug directories under the sysroot.
14492
1ed9f74e
PW
144932019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14494
14495 * symtab.h (struct minimal_symbol data_p): New const method.
14496 (struct minimal_symbol text_p): Likewise.
14497 * symtab.c (output_source_filename): Use file name style
14498 to print file name.
14499 (print_symbol_info): Likewise.
14500 (print_msymbol_info): Use address style to print addresses.
14501 Use function name style to print executable text symbols.
14502 (expand_symtab_containing_pc): Use data_p.
14503 (find_pc_sect_compunit_symtab): Likewise.
14504
2636d81d
PW
145052019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14506
14507 * breakpoint.c (describe_other_breakpoints): Use address style
14508 to print addresses.
14509 (say_where): Likewise.
14510
ac8c53cc
PW
145112019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14512
14513 * ada-typeprint.c (print_func_type): Print function name
14514 style to print function name.
14515 * c-typeprint.c (c_print_type_1): Likewise.
14516
ea638c43
AH
145172019-02-11 Alan Hayward <alan.hayward@arm.com>
14518
14519 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14520 for execve.
14521
ab759ca8
PW
145222019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14523
14524 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14525 type_stack.
14526
aff29d1c
JB
145272019-02-10 Joel Brobecker <brobecker@adacore.com>
14528
14529 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14530 TYPE_CODE_REF types.
14531
617126bc
JW
145322019-02-08 Jim Wilson <jimw@sifive.com>
14533
14534 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14535 (riscv_linux_fregset): New.
14536 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14537
46e3ed7f
TT
145382019-02-07 Tom Tromey <tom@tromey.com>
14539
14540 * thread.c (thread_cancel_execution_command): Update.
14541 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14542 methods.
14543 (struct thread_fsm_ops): Remove.
14544 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14545 (thread_fsm_should_stop, thread_fsm_return_value)
14546 (thread_fsm_set_finished, thread_fsm_finished_p)
14547 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14548 Don't declare.
14549 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14550 * infrun.c (clear_proceed_status_thread)
14551 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14552 (print_stop_event): Update.
14553 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14554 Add constructor.
14555 (step_command_fsm_ops): Remove.
14556 (new_step_command_fsm): Remove.
14557 (step_1): Update.
14558 (step_command_fsm::should_stop): Rename from
14559 step_command_fsm_should_stop.
14560 (step_command_fsm::clean_up): Rename from
14561 step_command_fsm_clean_up.
14562 (step_command_fsm::do_async_reply_reason): Rename from
14563 step_command_fsm_async_reply_reason.
14564 (struct until_next_fsm): Inherit from thread_fsm. Add
14565 constructor.
14566 (until_next_fsm_ops): Remove.
14567 (new_until_next_fsm): Remove.
14568 (until_next_fsm::should_stop): Rename from
14569 until_next_fsm_should_stop.
14570 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14571 (until_next_fsm::do_async_reply_reason): Rename from
14572 until_next_fsm_async_reply_reason.
14573 (struct finish_command_fsm): Inherit from thread_fsm. Add
14574 constructor. Change type of breakpoint.
14575 (finish_command_fsm_ops): Remove.
14576 (new_finish_command_fsm): Remove.
14577 (finish_command_fsm::should_stop): Rename from
14578 finish_command_fsm_should_stop.
14579 (finish_command_fsm::clean_up): Rename from
14580 finish_command_fsm_clean_up.
14581 (finish_command_fsm::return_value): Rename from
14582 finish_command_fsm_return_value.
14583 (finish_command_fsm::do_async_reply_reason): Rename from
14584 finish_command_fsm_async_reply_reason.
14585 (finish_command): Update.
14586 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14587 Add constructor.
14588 (call_thread_fsm_ops): Remove.
14589 (call_thread_fsm::call_thread_fsm): Rename from
14590 new_call_thread_fsm.
14591 (call_thread_fsm::should_stop): Rename from
14592 call_thread_fsm_should_stop.
14593 (call_thread_fsm::should_notify_stop): Rename from
14594 call_thread_fsm_should_notify_stop.
14595 (run_inferior_call, call_function_by_hand_dummy): Update.
14596 * cli/cli-interp.c (should_print_stop_to_console): Update.
14597 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14598 Add constructor. Change type of location_breakpoint,
14599 caller_breakpoint.
14600 (until_break_fsm_ops): Remove.
14601 (new_until_break_fsm): Remove.
14602 (until_break_fsm::should_stop): Rename from
14603 until_break_fsm_should_stop.
14604 (until_break_fsm::clean_up): Rename from
14605 until_break_fsm_clean_up.
14606 (until_break_fsm::do_async_reply_reason): Rename from
14607 until_break_fsm_async_reply_reason.
14608 (until_break_command): Update.
14609 * thread-fsm.c: Remove.
14610 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14611
1a5c2598
TT
146122019-02-07 Tom Tromey <tom@tromey.com>
14613
14614 * yy-remap.h: Add include guard.
14615 * xtensa-tdep.h: Add include guard.
14616 * xcoffread.h: Rename include guard.
14617 * varobj-iter.h: Add include guard.
14618 * tui/tui.h: Rename include guard.
14619 * tui/tui-winsource.h: Rename include guard.
14620 * tui/tui-wingeneral.h: Rename include guard.
14621 * tui/tui-windata.h: Rename include guard.
14622 * tui/tui-win.h: Rename include guard.
14623 * tui/tui-stack.h: Rename include guard.
14624 * tui/tui-source.h: Rename include guard.
14625 * tui/tui-regs.h: Rename include guard.
14626 * tui/tui-out.h: Rename include guard.
14627 * tui/tui-layout.h: Rename include guard.
14628 * tui/tui-io.h: Rename include guard.
14629 * tui/tui-hooks.h: Rename include guard.
14630 * tui/tui-file.h: Rename include guard.
14631 * tui/tui-disasm.h: Rename include guard.
14632 * tui/tui-data.h: Rename include guard.
14633 * tui/tui-command.h: Rename include guard.
14634 * tic6x-tdep.h: Add include guard.
14635 * target/waitstatus.h: Rename include guard.
14636 * target/wait.h: Rename include guard.
14637 * target/target.h: Rename include guard.
14638 * target/resume.h: Rename include guard.
14639 * target-float.h: Rename include guard.
14640 * stabsread.h: Add include guard.
14641 * rs6000-tdep.h: Add include guard.
14642 * riscv-fbsd-tdep.h: Add include guard.
14643 * regformats/regdef.h: Rename include guard.
14644 * record.h: Rename include guard.
14645 * python/python.h: Rename include guard.
14646 * python/python-internal.h: Rename include guard.
14647 * python/py-stopevent.h: Rename include guard.
14648 * python/py-ref.h: Rename include guard.
14649 * python/py-record.h: Rename include guard.
14650 * python/py-record-full.h: Rename include guard.
14651 * python/py-record-btrace.h: Rename include guard.
14652 * python/py-instruction.h: Rename include guard.
14653 * python/py-events.h: Rename include guard.
14654 * python/py-event.h: Rename include guard.
14655 * procfs.h: Add include guard.
14656 * proc-utils.h: Add include guard.
14657 * p-lang.h: Add include guard.
14658 * or1k-tdep.h: Rename include guard.
14659 * observable.h: Rename include guard.
14660 * nto-tdep.h: Rename include guard.
14661 * nat/x86-linux.h: Rename include guard.
14662 * nat/x86-linux-dregs.h: Rename include guard.
14663 * nat/x86-gcc-cpuid.h: Add include guard.
14664 * nat/x86-dregs.h: Rename include guard.
14665 * nat/x86-cpuid.h: Rename include guard.
14666 * nat/ppc-linux.h: Rename include guard.
14667 * nat/mips-linux-watch.h: Rename include guard.
14668 * nat/linux-waitpid.h: Rename include guard.
14669 * nat/linux-ptrace.h: Rename include guard.
14670 * nat/linux-procfs.h: Rename include guard.
14671 * nat/linux-osdata.h: Rename include guard.
14672 * nat/linux-nat.h: Rename include guard.
14673 * nat/linux-namespaces.h: Rename include guard.
14674 * nat/linux-btrace.h: Rename include guard.
14675 * nat/glibc_thread_db.h: Rename include guard.
14676 * nat/gdb_thread_db.h: Rename include guard.
14677 * nat/gdb_ptrace.h: Rename include guard.
14678 * nat/fork-inferior.h: Rename include guard.
14679 * nat/amd64-linux-siginfo.h: Rename include guard.
14680 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14681 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14682 * nat/aarch64-linux.h: Rename include guard.
14683 * nat/aarch64-linux-hw-point.h: Rename include guard.
14684 * mn10300-tdep.h: Add include guard.
14685 * mips-linux-tdep.h: Add include guard.
14686 * mi/mi-parse.h: Rename include guard.
14687 * mi/mi-out.h: Rename include guard.
14688 * mi/mi-main.h: Rename include guard.
14689 * mi/mi-interp.h: Rename include guard.
14690 * mi/mi-getopt.h: Rename include guard.
14691 * mi/mi-console.h: Rename include guard.
14692 * mi/mi-common.h: Rename include guard.
14693 * mi/mi-cmds.h: Rename include guard.
14694 * mi/mi-cmd-break.h: Rename include guard.
14695 * m2-lang.h: Add include guard.
14696 * location.h: Rename include guard.
14697 * linux-record.h: Rename include guard.
14698 * linux-nat.h: Add include guard.
14699 * linux-fork.h: Add include guard.
14700 * i386-darwin-tdep.h: Rename include guard.
14701 * hppa-linux-offsets.h: Add include guard.
14702 * guile/guile.h: Rename include guard.
14703 * guile/guile-internal.h: Rename include guard.
14704 * gnu-nat.h: Rename include guard.
14705 * gdb-stabs.h: Rename include guard.
14706 * frv-tdep.h: Add include guard.
14707 * f-lang.h: Add include guard.
14708 * event-loop.h: Add include guard.
14709 * darwin-nat.h: Rename include guard.
14710 * cp-abi.h: Rename include guard.
14711 * config/sparc/nm-sol2.h: Rename include guard.
14712 * config/nm-nto.h: Rename include guard.
14713 * config/nm-linux.h: Add include guard.
14714 * config/i386/nm-i386gnu.h: Rename include guard.
14715 * config/djgpp/nl_types.h: Rename include guard.
14716 * config/djgpp/langinfo.h: Rename include guard.
14717 * compile/gcc-cp-plugin.h: Add include guard.
14718 * compile/gcc-c-plugin.h: Add include guard.
14719 * compile/compile.h: Rename include guard.
14720 * compile/compile-object-run.h: Rename include guard.
14721 * compile/compile-object-load.h: Rename include guard.
14722 * compile/compile-internal.h: Rename include guard.
14723 * compile/compile-cplus.h: Rename include guard.
14724 * compile/compile-c.h: Rename include guard.
14725 * common/xml-utils.h: Rename include guard.
14726 * common/x86-xstate.h: Rename include guard.
14727 * common/version.h: Rename include guard.
14728 * common/vec.h: Rename include guard.
14729 * common/tdesc.h: Rename include guard.
14730 * common/selftest.h: Rename include guard.
14731 * common/scoped_restore.h: Rename include guard.
14732 * common/scoped_mmap.h: Rename include guard.
14733 * common/scoped_fd.h: Rename include guard.
14734 * common/safe-iterator.h: Rename include guard.
14735 * common/run-time-clock.h: Rename include guard.
14736 * common/refcounted-object.h: Rename include guard.
14737 * common/queue.h: Rename include guard.
14738 * common/ptid.h: Rename include guard.
14739 * common/print-utils.h: Rename include guard.
14740 * common/preprocessor.h: Rename include guard.
14741 * common/pathstuff.h: Rename include guard.
14742 * common/observable.h: Rename include guard.
14743 * common/netstuff.h: Rename include guard.
14744 * common/job-control.h: Rename include guard.
14745 * common/host-defs.h: Rename include guard.
14746 * common/gdb_wait.h: Rename include guard.
14747 * common/gdb_vecs.h: Rename include guard.
14748 * common/gdb_unlinker.h: Rename include guard.
14749 * common/gdb_unique_ptr.h: Rename include guard.
14750 * common/gdb_tilde_expand.h: Rename include guard.
14751 * common/gdb_sys_time.h: Rename include guard.
14752 * common/gdb_string_view.h: Rename include guard.
14753 * common/gdb_splay_tree.h: Rename include guard.
14754 * common/gdb_setjmp.h: Rename include guard.
14755 * common/gdb_ref_ptr.h: Rename include guard.
14756 * common/gdb_optional.h: Rename include guard.
14757 * common/gdb_locale.h: Rename include guard.
14758 * common/gdb_assert.h: Rename include guard.
14759 * common/filtered-iterator.h: Rename include guard.
14760 * common/filestuff.h: Rename include guard.
14761 * common/fileio.h: Rename include guard.
14762 * common/environ.h: Rename include guard.
14763 * common/common-utils.h: Rename include guard.
14764 * common/common-types.h: Rename include guard.
14765 * common/common-regcache.h: Rename include guard.
14766 * common/common-inferior.h: Rename include guard.
14767 * common/common-gdbthread.h: Rename include guard.
14768 * common/common-exceptions.h: Rename include guard.
14769 * common/common-defs.h: Rename include guard.
14770 * common/common-debug.h: Rename include guard.
14771 * common/cleanups.h: Rename include guard.
14772 * common/buffer.h: Rename include guard.
14773 * common/btrace-common.h: Rename include guard.
14774 * common/break-common.h: Rename include guard.
14775 * cli/cli-utils.h: Rename include guard.
14776 * cli/cli-style.h: Rename include guard.
14777 * cli/cli-setshow.h: Rename include guard.
14778 * cli/cli-script.h: Rename include guard.
14779 * cli/cli-interp.h: Rename include guard.
14780 * cli/cli-decode.h: Rename include guard.
14781 * cli/cli-cmds.h: Rename include guard.
14782 * charset-list.h: Add include guard.
14783 * buildsym-legacy.h: Rename include guard.
14784 * bfin-tdep.h: Add include guard.
14785 * ax.h: Rename include guard.
14786 * arm-linux-tdep.h: Add include guard.
14787 * arm-fbsd-tdep.h: Add include guard.
14788 * arch/xtensa.h: Rename include guard.
14789 * arch/tic6x.h: Add include guard.
14790 * arch/i386.h: Add include guard.
14791 * arch/arm.h: Rename include guard.
14792 * arch/arm-linux.h: Rename include guard.
14793 * arch/arm-get-next-pcs.h: Rename include guard.
14794 * arch/amd64.h: Add include guard.
14795 * arch/aarch64-insn.h: Rename include guard.
14796 * arch-utils.h: Rename include guard.
14797 * annotate.h: Add include guard.
14798 * amd64-darwin-tdep.h: Rename include guard.
14799 * aarch64-linux-tdep.h: Add include guard.
14800 * aarch64-fbsd-tdep.h: Add include guard.
14801 * aarch32-linux-nat.h: Add include guard.
14802
ab9268d2
PW
148032019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14804
14805 * macrotab.c (macro_define_internal): New function that
14806 factorizes macro_define_object_internal and macro_define_function
14807 code.
14808 (macro_define_object_internal): Use macro_define_internal.
14809 (macro_define_function): Likewise.
14810
bb0da2b4
PW
148112019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14812
14813 * macrocmd.c (extract_identifier): Return
14814 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14815 callers.
14816
424eb552
JB
148172019-02-06 John Baldwin <jhb@FreeBSD.org>
14818
14819 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14820
1688cb29
TT
148212019-02-05 Tom Tromey <tom@tromey.com>
14822
14823 * target.c (target_stack::unpush): Move assertion earlier.
14824
b5eba2d8
TT
148252019-01-30 Tom Tromey <tom@tromey.com>
14826
14827 PR python/23615:
14828 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14829 (gdbpy_parse_and_eval): Likewise.
14830 * python/python-internal.h (gdbpy_allow_threads): New class.
14831
7054e2ff
JB
148322019-01-28 John Baldwin <jhb@FreeBSD.org>
14833
14834 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14835 (aarch64_fbsd_fpregmap): Move earlier.
14836 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14837 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14838 instead of individual calls to trad_frame_set_reg_addr.
14839 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14840 earlier.
14841 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14842 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14843 instead of individual calls to trad_frame_set_reg_addr.
14844
36c25ffa
AH
148452019-01-28 Alan Hayward <alan.hayward@arm.com>
14846
14847 * CONTRIBUTE: Replace contribution list with wiki link.
14848
a0707f3c
TT
148492019-01-25 Tom Tromey <tom@tromey.com>
14850
14851 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14852
0747795c
TT
148532019-01-25 Tom Tromey <tom@tromey.com>
14854
14855 * xtensa-linux-nat.c: Fix common/ includes.
14856 * xml-support.h: Fix common/ includes.
14857 * xml-support.c: Fix common/ includes.
14858 * x86-linux-nat.c: Fix common/ includes.
14859 * windows-nat.c: Fix common/ includes.
14860 * varobj.h: Fix common/ includes.
14861 * varobj.c: Fix common/ includes.
14862 * value.c: Fix common/ includes.
14863 * valops.c: Fix common/ includes.
14864 * utils.c: Fix common/ includes.
14865 * unittests/xml-utils-selftests.c: Fix common/ includes.
14866 * unittests/utils-selftests.c: Fix common/ includes.
14867 * unittests/unpack-selftests.c: Fix common/ includes.
14868 * unittests/tracepoint-selftests.c: Fix common/ includes.
14869 * unittests/style-selftests.c: Fix common/ includes.
14870 * unittests/string_view-selftests.c: Fix common/ includes.
14871 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14872 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14873 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14874 * unittests/rsp-low-selftests.c: Fix common/ includes.
14875 * unittests/parse-connection-spec-selftests.c: Fix common/
14876 includes.
14877 * unittests/optional-selftests.c: Fix common/ includes.
14878 * unittests/offset-type-selftests.c: Fix common/ includes.
14879 * unittests/observable-selftests.c: Fix common/ includes.
14880 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14881 * unittests/memrange-selftests.c: Fix common/ includes.
14882 * unittests/memory-map-selftests.c: Fix common/ includes.
14883 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14884 * unittests/function-view-selftests.c: Fix common/ includes.
14885 * unittests/environ-selftests.c: Fix common/ includes.
14886 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14887 * unittests/common-utils-selftests.c: Fix common/ includes.
14888 * unittests/cli-utils-selftests.c: Fix common/ includes.
14889 * unittests/array-view-selftests.c: Fix common/ includes.
14890 * ui-file.c: Fix common/ includes.
14891 * tui/tui-io.c: Fix common/ includes.
14892 * tracepoint.h: Fix common/ includes.
14893 * tracepoint.c: Fix common/ includes.
14894 * tracefile-tfile.c: Fix common/ includes.
14895 * top.h: Fix common/ includes.
14896 * top.c: Fix common/ includes.
14897 * thread.c: Fix common/ includes.
14898 * target/waitstatus.h: Fix common/ includes.
14899 * target/waitstatus.c: Fix common/ includes.
14900 * target.h: Fix common/ includes.
14901 * target.c: Fix common/ includes.
14902 * target-memory.c: Fix common/ includes.
14903 * target-descriptions.c: Fix common/ includes.
14904 * symtab.h: Fix common/ includes.
14905 * symfile.c: Fix common/ includes.
14906 * stap-probe.c: Fix common/ includes.
14907 * spu-linux-nat.c: Fix common/ includes.
14908 * sparc-nat.c: Fix common/ includes.
14909 * source.c: Fix common/ includes.
14910 * solib.c: Fix common/ includes.
14911 * solib-target.c: Fix common/ includes.
14912 * ser-unix.c: Fix common/ includes.
14913 * ser-tcp.c: Fix common/ includes.
14914 * ser-pipe.c: Fix common/ includes.
14915 * ser-base.c: Fix common/ includes.
14916 * selftest-arch.c: Fix common/ includes.
14917 * s12z-tdep.c: Fix common/ includes.
14918 * rust-exp.y: Fix common/ includes.
14919 * rs6000-aix-tdep.c: Fix common/ includes.
14920 * riscv-tdep.c: Fix common/ includes.
14921 * remote.c: Fix common/ includes.
14922 * remote-notif.h: Fix common/ includes.
14923 * remote-fileio.h: Fix common/ includes.
14924 * remote-fileio.c: Fix common/ includes.
14925 * regcache.h: Fix common/ includes.
14926 * regcache.c: Fix common/ includes.
14927 * record-btrace.c: Fix common/ includes.
14928 * python/python.c: Fix common/ includes.
14929 * python/py-type.c: Fix common/ includes.
14930 * python/py-inferior.c: Fix common/ includes.
14931 * progspace.h: Fix common/ includes.
14932 * producer.c: Fix common/ includes.
14933 * procfs.c: Fix common/ includes.
14934 * proc-api.c: Fix common/ includes.
14935 * printcmd.c: Fix common/ includes.
14936 * ppc-linux-nat.c: Fix common/ includes.
14937 * parser-defs.h: Fix common/ includes.
14938 * osdata.c: Fix common/ includes.
14939 * obsd-nat.c: Fix common/ includes.
14940 * nat/x86-linux.c: Fix common/ includes.
14941 * nat/x86-linux-dregs.c: Fix common/ includes.
14942 * nat/x86-dregs.h: Fix common/ includes.
14943 * nat/x86-dregs.c: Fix common/ includes.
14944 * nat/ppc-linux.c: Fix common/ includes.
14945 * nat/mips-linux-watch.h: Fix common/ includes.
14946 * nat/mips-linux-watch.c: Fix common/ includes.
14947 * nat/linux-waitpid.c: Fix common/ includes.
14948 * nat/linux-ptrace.h: Fix common/ includes.
14949 * nat/linux-ptrace.c: Fix common/ includes.
14950 * nat/linux-procfs.c: Fix common/ includes.
14951 * nat/linux-personality.c: Fix common/ includes.
14952 * nat/linux-osdata.c: Fix common/ includes.
14953 * nat/linux-namespaces.c: Fix common/ includes.
14954 * nat/linux-btrace.h: Fix common/ includes.
14955 * nat/linux-btrace.c: Fix common/ includes.
14956 * nat/fork-inferior.c: Fix common/ includes.
14957 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14958 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14959 * nat/aarch64-linux.c: Fix common/ includes.
14960 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14961 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14962 * namespace.h: Fix common/ includes.
14963 * mips-linux-tdep.c: Fix common/ includes.
14964 * minsyms.c: Fix common/ includes.
14965 * mi/mi-parse.h: Fix common/ includes.
14966 * mi/mi-main.c: Fix common/ includes.
14967 * mi/mi-cmd-env.c: Fix common/ includes.
14968 * memrange.h: Fix common/ includes.
14969 * memattr.c: Fix common/ includes.
14970 * maint.h: Fix common/ includes.
14971 * maint.c: Fix common/ includes.
14972 * main.c: Fix common/ includes.
14973 * machoread.c: Fix common/ includes.
14974 * location.c: Fix common/ includes.
14975 * linux-thread-db.c: Fix common/ includes.
14976 * linux-nat.c: Fix common/ includes.
14977 * linux-fork.c: Fix common/ includes.
14978 * inline-frame.c: Fix common/ includes.
14979 * infrun.c: Fix common/ includes.
14980 * inflow.c: Fix common/ includes.
14981 * inferior.h: Fix common/ includes.
14982 * inferior.c: Fix common/ includes.
14983 * infcmd.c: Fix common/ includes.
14984 * inf-ptrace.c: Fix common/ includes.
14985 * inf-child.c: Fix common/ includes.
14986 * ia64-linux-nat.c: Fix common/ includes.
14987 * i387-tdep.c: Fix common/ includes.
14988 * i386-tdep.c: Fix common/ includes.
14989 * i386-linux-tdep.c: Fix common/ includes.
14990 * i386-linux-nat.c: Fix common/ includes.
14991 * i386-go32-tdep.c: Fix common/ includes.
14992 * i386-fbsd-tdep.c: Fix common/ includes.
14993 * i386-fbsd-nat.c: Fix common/ includes.
14994 * guile/scm-type.c: Fix common/ includes.
14995 * guile/guile.c: Fix common/ includes.
14996 * go32-nat.c: Fix common/ includes.
14997 * gnu-nat.c: Fix common/ includes.
14998 * gdbthread.h: Fix common/ includes.
14999 * gdbarch-selftests.c: Fix common/ includes.
15000 * gdb_usleep.c: Fix common/ includes.
15001 * gdb_select.h: Fix common/ includes.
15002 * gdb_bfd.c: Fix common/ includes.
15003 * gcore.c: Fix common/ includes.
15004 * fork-child.c: Fix common/ includes.
15005 * findvar.c: Fix common/ includes.
15006 * fbsd-nat.c: Fix common/ includes.
15007 * event-top.c: Fix common/ includes.
15008 * event-loop.c: Fix common/ includes.
15009 * dwarf2read.c: Fix common/ includes.
15010 * dwarf2loc.c: Fix common/ includes.
15011 * dwarf2-frame.c: Fix common/ includes.
15012 * dwarf-index-cache.c: Fix common/ includes.
15013 * dtrace-probe.c: Fix common/ includes.
15014 * disasm-selftests.c: Fix common/ includes.
15015 * defs.h: Fix common/ includes.
15016 * csky-tdep.c: Fix common/ includes.
15017 * cp-valprint.c: Fix common/ includes.
15018 * cp-support.h: Fix common/ includes.
15019 * cp-support.c: Fix common/ includes.
15020 * corelow.c: Fix common/ includes.
15021 * completer.h: Fix common/ includes.
15022 * completer.c: Fix common/ includes.
15023 * compile/compile.c: Fix common/ includes.
15024 * compile/compile-loc2c.c: Fix common/ includes.
15025 * compile/compile-cplus-types.c: Fix common/ includes.
15026 * compile/compile-cplus-symbols.c: Fix common/ includes.
15027 * command.h: Fix common/ includes.
15028 * cli/cli-dump.c: Fix common/ includes.
15029 * cli/cli-cmds.c: Fix common/ includes.
15030 * charset.c: Fix common/ includes.
15031 * build-id.c: Fix common/ includes.
15032 * btrace.h: Fix common/ includes.
15033 * btrace.c: Fix common/ includes.
15034 * breakpoint.h: Fix common/ includes.
15035 * breakpoint.c: Fix common/ includes.
15036 * ax.h:
15037 (enum agent_op): Fix common/ includes.
15038 * ax-general.c (struct aop_map): Fix common/ includes.
15039 * ax-gdb.c: Fix common/ includes.
15040 * auxv.c: Fix common/ includes.
15041 * auto-load.c: Fix common/ includes.
15042 * arm-tdep.c: Fix common/ includes.
15043 * arch/riscv.c: Fix common/ includes.
15044 * arch/ppc-linux-common.c: Fix common/ includes.
15045 * arch/i386.c: Fix common/ includes.
15046 * arch/arm.c: Fix common/ includes.
15047 * arch/arm-linux.c: Fix common/ includes.
15048 * arch/arm-get-next-pcs.c: Fix common/ includes.
15049 * arch/amd64.c: Fix common/ includes.
15050 * arch/aarch64.c: Fix common/ includes.
15051 * arch/aarch64-insn.c: Fix common/ includes.
15052 * arch-utils.c: Fix common/ includes.
15053 * amd64-windows-tdep.c: Fix common/ includes.
15054 * amd64-tdep.c: Fix common/ includes.
15055 * amd64-sol2-tdep.c: Fix common/ includes.
15056 * amd64-obsd-tdep.c: Fix common/ includes.
15057 * amd64-nbsd-tdep.c: Fix common/ includes.
15058 * amd64-linux-tdep.c: Fix common/ includes.
15059 * amd64-linux-nat.c: Fix common/ includes.
15060 * amd64-fbsd-tdep.c: Fix common/ includes.
15061 * amd64-fbsd-nat.c: Fix common/ includes.
15062 * amd64-dicos-tdep.c: Fix common/ includes.
15063 * amd64-darwin-tdep.c: Fix common/ includes.
15064 * agent.c: Fix common/ includes.
15065 * ada-lang.h: Fix common/ includes.
15066 * ada-lang.c: Fix common/ includes.
15067 * aarch64-tdep.c: Fix common/ includes.
15068
2f5c153e
TT
150692019-01-25 Tom Tromey <tom@tromey.com>
15070
15071 * common/create-version.sh: Use common/version.h.
15072
adc6a863
PA
150732019-01-24 Pedro Alves <palves@redhat.com>
15074
15075 * infrun.c (signal_stop, signal_print, signal_program)
15076 (signal_catch, signal_pass): Now arrays instead of pointers.
15077 (update_signals_program_target, do_target_resume)
15078 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15079 * linux-nat.c (linux_nat_target::pass_signals)
15080 (linux_nat_target::create_inferior, linux_nat_target::attach):
15081 Adjust.
15082 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15083 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15084 * procfs.c (procfs_target::pass_signals): Adjust.
15085 * record-full.c (record_full_target::resume): Adjust.
15086 * remote.c (remote_target::pass_signals)
15087 (remote_target::program_signals): Adjust.
15088 * target-debug.h (target_debug_print_signals): Now takes a
15089 gdb::array_view as parameter. Adjust.
15090 * target.h (target_ops) <pass_signals, program_signals>: Replace
15091 pointer and length parameters with gdb::array_view.
15092 (target_pass_signals, target_program_signals): Likewise.
15093 * target-delegates.c: Regenerate.
15094
3046d67a
PA
150952019-01-24 Pedro Alves <palves@redhat.com>
15096
15097 * common/forward-scope-exit.h
15098 (forward_scope_exit::forward_scope_exit): Pass arguments to
15099 m_bind_function directly, instead of creating a std::bind and
15100 copying that.
15101
353229bf
AH
151022019-01-24 Alan Hayward <alan.hayward@arm.com>
15103
15104 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15105 for static members.
15106 (pass_in_v_vfp_candidate): Likewise.
15107
311dc83a
TT
151082019-01-23 Tom Tromey <tom@tromey.com>
15109 Pedro Alves <palves@redhat.com>
15110
15111 * regcache.c (class regcache_invalidator): Remove.
15112 (regcache::raw_write): Use make_scope_exit.
15113
296bd123
TT
151142019-01-23 Tom Tromey <tom@tromey.com>
15115
15116 * ui-out.h (class ui_out_emit_type): Update comment.
15117
979a0d13
TT
151182019-01-23 Tom Tromey <tom@tromey.com>
15119
15120 * infrun.c (fetch_inferior_event): Update comment.
15121
d238133d
TT
151222019-01-23 Tom Tromey <tom@tromey.com>
15123 Pedro Alves <palves@redhat.com>
15124
15125 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15126 parameter.
15127 (fetch_inferior_event): Use SCOPE_EXIT.
15128
15129
9885e6bb
TT
151302019-01-23 Tom Tromey <tom@tromey.com>
15131 Pedro Alves <palves@redhat.com>
15132
15133 * infrun.c (disable_thread_events): Delete.
15134 (stop_all_threads): Use SCOPE_EXIT.
15135
286526c1
TT
151362019-01-23 Tom Tromey <tom@tromey.com>
15137 Pedro Alves <palves@redhat.com>
15138
15139 * symfile.c: Include forward-scope-exit.h.
15140 (clear_symtab_users_cleanup): Replace forward declaration with
15141 a FORWARD_SCOPE_EXIT.
15142 (syms_from_objfile_1): Use the forward_scope_exit and
15143 gdb::optional instead of cleanup_function.
15144 (reread_symbols): Use the forward_scope_exit instead of
15145 cleanup_function.
15146 (clear_symtab_users_cleanup): Remove function.
15147
1db93f14
TT
151482019-01-23 Tom Tromey <tom@tromey.com>
15149 Pedro Alves <palves@redhat.com>
15150
15151 * linux-nat.c: Include scope-exit.h.
15152 (cleanup_target_stop): Remove.
15153 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15154 SCOPE_EXIT.
15155
2cc83d1e
TT
151562019-01-23 Tom Tromey <tom@tromey.com>
15157 Pedro Alves <palves@redhat.com>
15158
15159 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15160 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15161
694c6bf5
TT
151622019-01-23 Tom Tromey <tom@tromey.com>
15163 Andrew Burgess <andrew.burgess@embecosm.com>
15164 Pedro Alves <palves@redhat.com>
15165
15166 * infrun.c (fetch_inferior_event): Use scope_exit.
15167 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15168 * top.c (execute_command): Use scope_exit.
15169 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15170 * utils.c (do_bpstat_clear_actions_cleanup)
15171 (make_bpstat_clear_actions_cleanup): Remove.
15172
4c41382a
TT
151732019-01-23 Tom Tromey <tom@tromey.com>
15174 Pedro Alves <palves@redhat.com>
15175
15176 * infrun.c: Include "common/scope-exit.h"
15177 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15178 (wait_for_inferior): Use SCOPE_EXIT.
15179 (fetch_inferior_event): Use scope_exit.
15180
89f8fb50
TT
151812019-01-23 Tom Tromey <tom@tromey.com>
15182 Pedro Alves <palves@redhat.com>
15183
15184 * breakpoint.c (create_breakpoint): Remove cleanup.
15185
5419bdae
TT
151862019-01-23 Tom Tromey <tom@tromey.com>
15187 Andrew Burgess <andrew.burgess@embecosm.com>
15188 Pedro Alves <palves@redhat.com>
15189
e587ef42
PA
151902019-01-23 Pedro Alves <palves@redhat.com>
15191
15192 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15193
77f0e74c
PA
151942019-01-23 Pedro Alves <palves@redhat.com>
15195 Andrew Burgess <andrew.burgess@embecosm.com>
15196
15197 * gdbthread.h: Include "common/forward-scope-exit.h".
15198 (scoped_finish_thread_state): Redefine custom class in terms of
15199 forward_scope_exit.
15200
5b9b3e53
PA
152012019-01-23 Pedro Alves <palves@redhat.com>
15202 Andrew Burgess <andrew.burgess@embecosm.com>
15203
15204 * common/forward-scope-exit.h: New file.
15205
54b65c9b
PA
152062019-01-23 Pedro Alves <palves@redhat.com>
15207 Andrew Burgess <andrew.burgess@embecosm.com>
15208 Tom Tromey <tom@tromey.com>
15209
15210 * common/scope-exit.h: New file.
15211
cf08fb29
PA
152122019-01-23 Pedro Alves <palves@redhat.com>
15213
15214 * common/preprocessor.h (ESC): Rename to ...
15215 (ESC_PARENS): ... this.
15216 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15217 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15218
ae73e2e2
TT
152192019-01-23 Tom Tromey <tom@tromey.com>
15220
15221 * language.h (class scoped_switch_to_sym_language_if_auto):
15222 Initialize m_lang in both cases.
15223
6594e122
AH
152242019-01-23 Alan Hayward <alan.hayward@arm.com>
15225
15226 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15227 with XCNEW.
15228
a7c9855d
TT
152292019-01-22 Tom Tromey <tom@tromey.com>
15230
15231 * corelow.c: Do not include sys/file.h.
15232
93cc1d53
TT
152332019-01-22 Tom Tromey <tom@tromey.com>
15234
15235 * tui/tui-wingeneral.h: Include gdb_curses.h.
15236
38561778
TT
152372019-01-22 Tom Tromey <tom@tromey.com>
15238
15239 * source-cache.h (class source_cache) <get_source_lines,
15240 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15241
37b3ab5b
TT
152422019-01-22 Tom Tromey <tom@tromey.com>
15243
15244 * remote-fileio.h (struct remote_target): Declare.
15245
3fabc016
TT
152462019-01-22 Tom Tromey <tom@tromey.com>
15247
15248 * python/py-arch.c: Do not include py-ref.h.
15249 * python/py-bpevent.c: Do not include py-ref.h.
15250 * python/py-cmd.c: Do not include py-ref.h.
15251 * python/py-continueevent.c: Do not include py-ref.h.
15252 * python/py-event.h: Do not include py-ref.h.
15253 * python/py-evtregistry.c: Do not include py-ref.h.
15254 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15255 * python/py-frame.c: Do not include py-ref.h.
15256 * python/py-framefilter.c: Do not include py-ref.h.
15257 * python/py-function.c: Do not include py-ref.h.
15258 * python/py-infevents.c: Do not include py-ref.h.
15259 * python/py-linetable.c: Do not include py-ref.h.
15260 * python/py-objfile.c: Do not include py-ref.h.
15261 * python/py-param.c: Do not include py-ref.h.
15262 * python/py-prettyprint.c: Do not include py-ref.h.
15263 * python/py-progspace.c: Do not include py-ref.h.
15264 * python/py-symbol.c: Do not include py-ref.h.
15265 * python/py-symtab.c: Do not include py-ref.h.
15266 * python/py-type.c: Do not include py-ref.h.
15267 * python/py-unwind.c: Do not include py-ref.h.
15268 * python/py-utils.c: Do not include py-ref.h.
15269 * python/py-value.c: Do not include py-ref.h.
15270 * python/py-varobj.c: Do not include py-ref.h.
15271 * python/py-xmethods.c: Do not include py-ref.h.
15272 * python/python.c: Do not include py-ref.h.
15273 * varobj.c: Do not include py-ref.h.
15274
6b4d7774
TT
152752019-01-22 Tom Tromey <tom@tromey.com>
15276
15277 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15278 keyword for bcache.
15279
7af7e9b5
TT
152802019-01-22 Tom Tromey <tom@tromey.com>
15281
15282 * compile/compile-cplus-types.c: Remove a comment by #include.
15283
951d1049
TT
152842019-01-22 Tom Tromey <tom@tromey.com>
15285
15286 * compile/gcc-c-plugin.h: Include compile-internal.h.
15287
d65d5705
TT
152882019-01-22 Tom Tromey <tom@tromey.com>
15289
15290 * stabsread.c (EXTERN): Do not define.
15291 (symnum, next_symbol_text_func, processing_gcc_compilation)
15292 (within_function, global_sym_chain, global_stabs)
15293 (previous_stab_code, this_object_header_files)
15294 (n_this_object_header_files)
15295 (n_allocated_this_object_header_files): Define.
15296 * stabsread.h (EXTERN): Never define. Use "extern".
15297
b6fb1ee5
PW
152982019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15299
15300 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15301 history_value.
15302
be6d4f74
TT
153032019-01-21 Tom Tromey <tom@tromey.com>
15304
15305 * ui-out.c: Fix includes.
15306 * tui/tui-source.c: Fix includes.
15307 * target.c: Fix includes.
15308 * remote.c: Fix includes.
15309 * regcache.c: Fix includes.
15310 * python/py-block.c: Fix includes.
15311 * printcmd.c: Fix includes.
15312 * or1k-tdep.c: Fix includes.
15313 * mi/mi-main.c: Fix includes.
15314 * m32r-tdep.c: Fix includes.
15315 * csky-tdep.c: Fix includes.
15316 * compile/compile-cplus-types.c: Fix includes.
15317 * cli/cli-interp.c: Fix includes.
15318
73021deb
AH
153192019-01-21 Alan Hayward <alan.hayward@arm.com>
15320
15321 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15322 for padding.
15323
7932255d
TT
153242019-01-16 Tom Tromey <tom@tromey.com>
15325
15326 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15327 earlier.
15328 (struct objfile) <msymbols_range>: Move from top level.
15329 <msymbols>: New method.
15330 (class objfile_msymbols): Remove.
15331 * symtab.c (default_collect_symbol_completion_matches_break_on):
15332 Update.
15333 * symmisc.c (dump_msymbols): Update.
15334 * stabsread.c (scan_file_globals): Update.
15335 * objc-lang.c (info_selectors_command, info_classes_command)
15336 (find_methods): Update.
15337 * minsyms.c (find_solib_trampoline_target): Update.
15338 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15339 * coffread.c (coff_symfile_read): Update.
15340 * ada-lang.c (ada_lookup_simple_minsym)
15341 (ada_collect_symbol_completion_matches): Update.
15342
604b1bfb
TT
153432019-01-16 Tom Tromey <tom@tromey.com>
15344
15345 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15346 type. Remove no-argument constructor.
15347 <iterator::operator++>: Simplify.
15348 <begin>: Update.
15349 <end>: Use minimal_symbol_count.
15350
f252c6d5
TT
153512019-01-16 Tom Tromey <tom@tromey.com>
15352
15353 * objfiles.h (struct objfile) <psymtabs>: New method.
15354 (class objfile_psymtabs): Remove.
15355 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15356 typedef.
15357 <range>: New method.
15358 (require_partial_symbols): Change return type.
15359 * psymtab.c (require_partial_symbols)
15360 (psym_expand_symtabs_matching): Update.
15361 * mdebugread.c (parse_partial_symbols): Update.
15362 * dbxread.c (dbx_end_psymtab): Update.
15363
b669c953
TT
153642019-01-15 Tom Tromey <tom@tromey.com>
15365
15366 * symtab.c (lookup_objfile_from_block)
15367 (lookup_symbol_in_objfile_symtabs)
15368 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15369 (find_line_symtab, info_sources_command)
15370 (default_collect_symbol_completion_matches_break_on)
15371 (make_source_files_completion_list): Update.
15372 * symmisc.c (print_objfile_statistics, dump_objfile)
15373 (maintenance_print_symbols, maintenance_info_symtabs)
15374 (maintenance_check_symtabs, maintenance_info_line_tables):
15375 Update.
15376 * source.c (select_source_symtab)
15377 (forget_cached_source_info_for_objfile): Update.
15378 * objfiles.h (class objfile_compunits): Remove.
15379 (struct objfile) <compunits_range>: New typedef.
15380 (compunits): New method.
15381 * objfiles.c (objfile_relocate1): Update.
15382 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15383 * maint.c (count_symtabs_and_blocks): Update.
15384 * linespec.c (iterate_over_all_matching_symtabs): Update.
15385 * cp-support.c (add_symbol_overload_list_qualified): Update.
15386 * coffread.c (coff_symtab_read): Update.
15387 * ada-lang.c (add_nonlocal_symbols)
15388 (ada_collect_symbol_completion_matches)
15389 (ada_add_global_exceptions): Update.
15390
7e955d83
TT
153912019-01-15 Tom Tromey <tom@tromey.com>
15392
15393 * progspace.h (program_space) <objfiles_safe_range>: New
15394 typedef.
15395 <objfiles_safe>: New method.
15396 * objfiles.h (class all_objfiles_safe): Remove.
15397 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15398 * jit.c (jit_inferior_exit_hook): Update.
15399
2030c079
TT
154002019-01-17 Tom Tromey <tom@tromey.com>
15401
15402 * progspace.h (program_space) <objfiles_range>: New typedef.
15403 <objfiles>: New method.
15404 <objfiles_head>: Rename from objfiles.
15405 (object_files): Update.
15406 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15407 * guile/scm-pretty-print.c
15408 (ppscm_find_pretty_printer_from_objfiles): Update.
15409 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15410 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15411 Update.
15412 * python/py-progspace.c (pspy_get_objfiles): Update.
15413 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15414 Update.
15415 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15416 (objfpy_lookup_objfile_by_build_id): Update.
15417 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15418 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15419 Update.
15420 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15421 (expand_symtab_containing_pc, lookup_objfile_from_block)
15422 (lookup_static_symbol, basic_lookup_transparent_type)
15423 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15424 (find_line_symtab, info_sources_command)
15425 (default_collect_symbol_completion_matches_break_on)
15426 (make_source_files_completion_list, find_main_name): Update.
15427 * symmisc.c (print_symbol_bcache_statistics)
15428 (print_objfile_statistics, maintenance_print_symbols)
15429 (maintenance_print_msymbols, maintenance_print_objfiles)
15430 (maintenance_info_symtabs, maintenance_check_symtabs)
15431 (maintenance_expand_symtabs, maintenance_info_line_tables):
15432 Update.
15433 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15434 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15435 (map_overlay_command, unmap_overlay_command)
15436 (simple_overlay_update, expand_symtabs_matching)
15437 (map_symbol_filenames): Update.
15438 * symfile-debug.c (set_debug_symfile): Update.
15439 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15440 Update.
15441 * source.c (select_source_symtab, forget_cached_source_info):
15442 Update.
15443 * solib.c (solib_read_symbols): Update.
15444 * solib-spu.c (append_ocl_sos): Update.
15445 * psymtab.c (maintenance_print_psymbols)
15446 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15447 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15448 * printcmd.c (info_symbol_command): Update.
15449 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15450 Update.
15451 * objfiles.h (class all_objfiles): Remove.
15452 * objfiles.c (have_partial_symbols, have_full_symbols)
15453 (have_minimal_symbols, qsort_cmp, update_section_map)
15454 (shared_objfile_contains_address_p)
15455 (default_iterate_over_objfiles_in_search_order): Update.
15456 * objc-lang.c (info_selectors_command, info_classes_command)
15457 (find_methods): Update.
15458 * minsyms.c (find_solib_trampoline_target): Update.
15459 * maint.c (maintenance_info_sections)
15460 (maintenance_translate_address, count_symtabs_and_blocks):
15461 Update.
15462 * main.c (captured_main_1): Update.
15463 * linux-thread-db.c (try_thread_db_load_from_pdir)
15464 (has_libpthread): Update.
15465 * linespec.c (iterate_over_all_matching_symtabs)
15466 (search_minsyms_for_name): Update.
15467 * jit.c (jit_find_objf_with_entry_addr): Update.
15468 * hppa-tdep.c (find_unwind_entry)
15469 (hppa_lookup_stub_minimal_symbol): Update.
15470 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15471 Update.
15472 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15473 (elf_gnu_ifunc_resolve_by_got): Update.
15474 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15475 * dwarf-index-write.c (save_gdb_index_command): Update.
15476 * cp-support.c (add_symbol_overload_list_qualified): Update.
15477 * breakpoint.c (create_overlay_event_breakpoint)
15478 (create_longjmp_master_breakpoint)
15479 (create_std_terminate_master_breakpoint)
15480 (create_exception_master_breakpoint): Update.
15481 * blockframe.c (find_pc_partial_function): Update.
15482 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15483 (ada_collect_symbol_completion_matches)
15484 (ada_add_global_exceptions): Update.
15485
776489e0
TT
154862019-01-17 Tom Tromey <tom@tromey.com>
15487
15488 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15489 declare VEC.
15490 (solib_target_parse_libraries): Change return type.
15491 (library_list_start_segment, library_list_start_section)
15492 (library_list_end_library, library_list_start_library); Update.
15493 (solib_target_free_library_list): Remove.
15494 (solib_target_parse_libraries): Remove cleanup. Change return
15495 type.
15496 (solib_target_current_sos): Update.
15497
6471e7d2
TT
154982019-01-17 Tom Tromey <tromey@bapiya>
15499
15500 * valprint.c: Replace "the the" with "the".
15501 * symtab.c: Replace "the the" with "the".
15502 * solib.c: Replace "the the" with "the".
15503 * solib-dsbt.c: Replace "the the" with "the".
15504 * linespec.c: Replace "the the" with "the".
15505 * dwarf2loc.h: Replace "the the" with "the".
15506 * amd64-windows-tdep.c: Replace "the the" with "the".
15507 * aarch64-tdep.c: Replace "the the" with "the".
15508
c24bdb02
KS
155092019-01-16 Keith Seitz <keiths@redhat.com>
15510
15511 PR gdb/23773
15512 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15513 <builder>: Rename to ..
15514 <m_builder>: ... this and make private.
15515 (dwarf2_cu::get_builder): New method. Change all users of
15516 `builder' to use this method.
15517 (dwarf2_start_symtab): Move to ...
15518 (dwarf2_cu::start_symtab): ... here. Update all callers
15519 (setup_type_unit_groups): Move to ...
15520 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15521 callers.
15522 (dwarf2_cu::reset_builder): New method.
15523 (process_full_compunit, process_full_type_unit): Use
15524 dwarf2_cu::reset_builder.
15525 (follow_die_offset): Record the ancestor CU if it is different
15526 from the followed DIE's CU.
15527 (follow_die_sig_1): Likewise.
15528
8d64371b
TT
155292019-01-15 Tom Tromey <tom@tromey.com>
15530
15531 * remote.c (class remote_state) <buf>: Now a char_vector.
15532 <buf_size>: Remove.
15533 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15534 parameter.
15535 (remote_target::getpkt_or_notif_sane_1)
15536 (remote_target::getpkt_sane)
15537 (remote_target::getpkt_or_notif_sane): Likewise.
15538 (class remote_target) <putpkt>: New overload.
15539 (remote_target::read_frame): Change type of "buf_p". Remove
15540 sizeof_p parameter.
15541 (packet_ok): New overload.
15542 (packet_check_result): New overload.
15543 Update all uses.
15544
bb277751
TT
155452019-01-14 Tom Tromey <tom@tromey.com>
15546
15547 * remote-notif.c (handle_notification, remote_notif_ack)
15548 (remote_notif_parse): Make "buf" const.
15549 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15550 const.
15551 (remote_notif_parse, remote_notif_ack, handle_notification):
15552 Likewise.
15553 * remote.c (remote_notif_stop_parse): Make "buf" const.
15554 (remote_target::remote_parse_stop_reply): Make "buf" const.
15555 (remote_notif_stop_ack): Make "buf" const.
15556
05be00a8
TT
155572019-01-14 Tom Tromey <tom@tromey.com>
15558
15559 * remote.c (remote_console_output): Make parameter const.
15560
491adeca
TT
155612019-01-14 Tom Tromey <tom@tromey.com>
15562
15563 * target-debug.h (target_debug_print_signals): Constify.
15564 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15565 * procfs.c (procfs_target::pass_signals): Update.
15566 * linux-nat.c (linux_nat_target::pass_signals): Update.
15567 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15568 * target-delegates.c: Rebuild.
15569 * remote.c (remote_target::program_signals): Update.
15570 (remote_target::pass_signals): Update.
15571 * target.c (target_pass_signals): Constify argument.
15572 (target_program_signals): Likewise.
15573 * target.h (struct target_ops) <pass_signals, program_signals>:
15574 Constify argument.
15575 (target_pass_signals, target_program_signals): Constify argument.
15576
bbd94648
TT
155772019-01-14 Tom Tromey <tom@tromey.com>
15578
15579 PR tui/28819:
15580 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15581
6f072a10
PFC
155822019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15583
15584 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15585 field.
15586 * rs6000-tdep.c: Include reggroups.h.
15587 (IS_V_ALIAS_PSEUDOREG): Define.
15588 (rs6000_register_name): Return names for the "vX" aliases.
15589 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15590 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15591 aliases. Call default_register_reggroup_p for all other
15592 pseudo-registers.
15593 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15594 New functions.
15595 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15596 Handle "vX" aliases.
15597 (v_alias_pseudo_register_collect): New function.
15598 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15599 (rs6000_gdbarch_init): Initialize "vX" aliases as
15600 pseudo-registers. Restore registration of
15601 rs6000_pseudo_register_reggroup_p with
15602 set_tdesc_pseudo_register_reggroup_p.
15603
1a782351
MF
156042019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15605
15606 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15607 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15608 set_gdbarch_num_pseudo_regs.
15609
d73cff18
PW
156102019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15611
15612 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15613 Remove arg prefixname, add do_set and do_show.
15614 Add member functions set_list and show_list.
15615 * cli/cli-style.c (class cli_style_option): Update accordingly.
15616 (style_set_list): Move to file scope.
15617 (style_show_list): Likewise.
15618 (set_style): Call help_list.
15619 (show_style): Call cmd_show_list.
15620 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15621 Update to use the new macro.
15622
60a90376
JB
156232019-10-12 Joel Brobecker <brobecker@adacore.com>
15624
15625 * ada-lang.c (_initialize_ada_language): Expand the help text
15626 for the "catch exception" command.
15627
9d7c67bf
PW
156282019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15629
15630 * symtab.c (matching_obj_sections): Initialize obj,
15631 declare it closer to its usage.
15632
7cf47dc4
TT
156332019-01-10 Tom Tromey <tom@tromey.com>
15634
15635 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15636 (basic_inf_threads_range): Remove.
15637 (inf_threads_range, inf_non_exited_threads_range)
15638 (safe_inf_threads_range): Use next_adapter.
15639
d3cb6808
KS
156402019-01-10 Keith Seitz <keiths@redhat.com>
15641
15642 PR gdb/23712
15643 PR symtab/23010
15644 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15645 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15646
63a20375
KS
156472019-01-10 Keith Seitz <keiths@redhat.com>
15648
15649 PR gdb/23712
15650 PR symtab/23010
15651 * dictionary.c (pending_to_vector): Remove.
15652 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15653 Remove _1 suffix, replacing functions of the same name. Update
15654 all callers.
15655 (dict_create_hashed, dict_create_hashed_expandable)
15656 (dict_create_linear, dict_create_linear_expandable, dict_free)
15657 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15658 Make functions static.
15659
b026f593
KS
156602019-01-10 Keith Seitz <keiths@redhat.com>
15661
15662 PR gdb/23712
15663 PR symtab/23010
15664 * dictionary.h (struct dictionary): Replace declaration with
15665 multidictionary.
15666 (dict_create_hashed, dict_create_hashed_expandable)
15667 (dict_create_linear, dict_create_linear_expandable)
15668 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15669 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15670 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15671 taking multidictionary argument.
15672 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15673 * block.h (struct block) <dict>: Change to multidictionary
15674 and rename `multidict'.
15675 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15676 symmisc.c: Update all dictionary references to multidictionary.
15677
c7748ee9
KS
156782019-01-10 Keith Seitz <keiths@redhat.com>
15679
15680 PR gdb/23712
15681 PR symtab/23010
15682 * dictionary.c: Include unordered_map.
15683 (pending_to_vector): New function.
15684 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15685 Rewrite the non-"_1" functions to take vector instead
15686 of linked list.
15687 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15688 "new" _1 versions of the same name.
15689 (multidictionary): Define.
15690 (std::hash<enum language): New definition.
15691 (collate_pending_symbols_by_language, mdict_create_hashed)
15692 (mdict_create_hashed_expandable, mdict_create_linear)
15693 (mdict_create_linear_expandable, mdict_free)
15694 (find_language_dictionary, create_new_language_dictionary)
15695 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15696 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15697 (mdict_size, mdict_empty): New functions.
15698 * dictionary.h (mdict_iterator): Define.
15699
67aa1f3c
PA
157002019-01-10 Pedro Alves <palves@redhat.com>
15701
15702 * breakpoint.c (read_uploaded_action)
15703 (create_tracepoint_from_upload): Adjust to use
15704 gdb::unique_xmalloc_ptr.
15705 * ctf.c (ctf_write_uploaded_tp):
15706 (SET_ARRAY_FIELD): Use emplace_back.
15707 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15708 * tracefile-tfile.c (tfile_write_uploaded_tp):
15709 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15710 gdb::unique_xmalloc_ptr.
15711 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15712 at_string, cond_string, cmd_strings>: Replace char pointers
15713 with gdb::unique_xmalloc_ptr.
15714
2f667667
PA
157152019-01-10 Pedro Alves <palves@redhat.com>
15716
15717 * solib-target.c (library_list_start_library): Don't xstrdup name.
15718
36cb7237
PA
157192019-01-10 Pedro Alves <palves@redhat.com>
15720
15721 * mdebugread.c (parse_partial_symbols): Use
15722 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15723
da584958
AB
157242019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15725
15726 * linux-fork.c (scoped_switch_fork_info)
15727 <~scoped_switch_fork_info>: Fix incorrect variable name.
15728
1ef8573c
AB
157292019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15730
15731 * linux-fork.c (scoped_switch_fork_info)
15732 <scoped_switch_fork_info>: Make explicit.
15733 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15734
8d7bcccb
TT
157352019-01-10 Tom Tromey <tom@tromey.com>
15736
15737 * objfiles.h (objfile::reset_psymtabs): Update.
15738 * objfiles.c (objfile::objfile): Update.
15739 * psymtab.h (psymtab_storage::obstack): Update.
15740 (psymtab_storage::m_obstack): Use gdb::optional.
15741 (class psymtab_storage): Update comment. Remove objfile
15742 parameter.
15743 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15744
b596a3c7
TT
157452019-01-10 Tom Tromey <tom@tromey.com>
15746
15747 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15748 <free_psymtabs>: Now private.
15749 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15750 (allocate_psymtab): Use new method.
15751
a9342b62
TT
157522019-01-10 Tom Tromey <tom@tromey.com>
15753
15754 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15755 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15756 * mdebugread.c (parse_partial_symbols): Use
15757 allocate_dependencies.
15758 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15759 allocate_dependencies.
15760 (process_psymtab_comp_unit_reader)
15761 (build_type_psymtab_dependencies): Likewise.
15762 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15763
5af70966
TT
157642019-01-10 Tom Tromey <tom@tromey.com>
15765
15766 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15767 PSYMBOL_SET_LANGUAGE.
15768 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15769
5923a04c
TT
157702019-01-10 Tom Tromey <tom@tromey.com>
15771
15772 * psymtab.h (psymtab_storage::obstack): New method.
15773 <m_obstack>: Rename from obstack; now private.
15774 * psymtab.c (psymtab_storage): Update.
15775 * dwarf2read.c (create_addrmap_from_index)
15776 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15777 Update.
15778
6d6a12bf
TT
157792019-01-10 Tom Tromey <tom@tromey.com>
15780
15781 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15782 * objfiles.h (objfile::reset_psymtabs): New method.
15783
d320c2b5
TT
157842019-01-10 Tom Tromey <tom@tromey.com>
15785
15786 * symmisc.c (print_symbol_bcache_statistics): Update.
15787 (print_objfile_statistics): Update.
15788 * symfile.c (reread_symbols): Update.
15789 * psymtab.h (class psymtab_storage): New.
15790 * psymtab.c (psymtab_storage): New constructor.
15791 (~psymtab_storage): New destructor.
15792 (require_partial_symbols): Update.
15793 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15794 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15795 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15796 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15797 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15798 (start_psymtab_common, end_psymtab_common)
15799 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15800 (allocate_psymtab): Update.
15801 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15802 Update.
15803 (dump_psymtab_addrmap, maintenance_print_psymbols)
15804 (maintenance_check_psymtabs): Update.
15805 (class objfile_psymtabs): Move to objfiles.h.
15806 * psympriv.h (discard_psymtab): Now inline.
15807 (psymtab_discarder::psymtab_discarder): Update.
15808 (psymtab_discarder::~psymtab_discarder): Update.
15809 (ALL_OBJFILE_PSYMTABS): Rewrite.
15810 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15811 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15812 Remove fields.
15813 <partial_symtabs>: New field.
15814 (class objfile_psymtabs): Move from psymtab.h. Update.
15815 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15816 psymbol_cache.
15817 (objfile::~objfile): Don't destroy psymbol_cache.
15818 * mdebugread.c (parse_partial_symbols): Update.
15819 * dwarf2read.c (create_addrmap_from_index)
15820 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15821 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15822 (add_partial_subprogram, dwarf2_ranges_read): Update.
15823 * dwarf-index-write.c (write_address_map)
15824 (write_one_signatured_type, recursively_write_psymbols)
15825 (class debug_names, class debug_names, write_psymtabs_to_index):
15826 Update.
15827
1d94a5a3
TT
158282019-01-10 Tom Tromey <tom@tromey.com>
15829
15830 * symtab.h (SYMBOL_SET_NAMES): Update.
15831 (symbol_set_names): Update.
15832 (MSYMBOL_SET_NAMES): Update.
15833 * symtab.c (symbol_set_names): Change argument to be an
15834 objfile_per_bfd_storage.
15835 * psymtab.c (add_psymbol_to_bcache): Update.
15836 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15837
0f14768a
TT
158382019-01-10 Tom Tromey <tom@tromey.com>
15839
15840 * symtab.c (create_demangled_names_hash): Change argument to be an
15841 objfile_per_bfd_storage.
15842 (symbol_set_names): Update.
15843
6eee24ce
TT
158442019-01-10 Tom Tromey <tom@tromey.com>
15845
15846 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15847 init_psymbol_list.
15848 * psymtab.c (init_psymbol_list): Do nothing if already called.
15849 * psympriv.h (init_psymbol_list): Add comment.
15850 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15851 init_psymbol_list.
15852 * dbxread.c (dbx_symfile_read): Unconditionally call
15853 init_psymbol_list.
15854
75aedd27
TT
158552019-01-10 Tom Tromey <tom@tromey.com>
15856
15857 * xcoffread.c (scan_xcoff_symtab): Update.
15858 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15859 "where".
15860 * mdebugread.c (parse_partial_symbols)
15861 (handle_psymbol_enumerators): Update.
15862 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15863 * dbxread.c (read_dbx_symtab): Update.
15864 * psympriv.h (psymbol_placement): New enum.
15865 (add_psymbol_to_list): Update.
15866
939652a5
TT
158672019-01-10 Tom Tromey <tom@tromey.com>
15868
15869 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15870 static_psymbols parameters.
15871 (scan_xcoff_symtab): Update.
15872 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15873 static_psymbols parameters.
15874 * psympriv.h (start_psymtab_common): Update.
15875 * mdebugread.c (parse_partial_symbols): Update.
15876 * dwarf2read.c (create_partial_symtab): Update.
15877 * dbxread.c (read_dbx_symtab): Update.
15878 (start_psymtab): Remove global_psymbols and static_psymbols
15879 parameters.
15880
baa62830
TT
158812019-01-10 Tom Tromey <tom@tromey.com>
15882
15883 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15884 * psymtab.c (allocate_psymtab): Add comment.
15885 * psympriv.h (allocate_psymtab): Add comment.
15886 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15887 initializations.
15888 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15889
0e8f53ba
TT
158902019-01-10 Tom Tromey <tom@tromey.com>
15891
15892 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15893 Don't declare.
15894 * mipsread.c: Include mdebugread.h.
15895 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15896 Declare.
15897 * elfread.c: Include mdebugread.h.
15898
b22a7c6a
TT
158992019-01-09 Tom Tromey <tom@tromey.com>
15900
15901 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15902 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15903 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15904 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15905 (psym_lookup_symbol, psym_find_last_source_symtab)
15906 (psym_forget_cached_source_info, psym_print_stats)
15907 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15908 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15909 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15910 (psym_find_compunit_symtab_by_address)
15911 (maintenance_print_psymbols, maintenance_info_psymtabs)
15912 (maintenance_check_psymtabs): Use ranged for.
15913 * psymtab.h (class objfile_psymtabs): New.
15914 (require_partial_symbols): Return objfile_psymtabs.
15915 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15916
3b9d3ac2
TT
159172019-01-09 Tom Tromey <tom@tromey.com>
15918
15919 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15920 (find_pc_mapped_section, list_overlays_command)
15921 (map_overlay_command, unmap_overlay_command)
15922 (simple_overlay_update): Use all_objfiles.
15923 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15924 * printcmd.c (info_symbol_command): Use all_objfiles.
15925 * objfiles.h (ALL_OBJSECTIONS): Remove.
15926 * maint.c (maintenance_translate_address): Use all_objfiles.
15927 * gcore.c (gcore_create_callback): Use all_objfiles.
15928 (objfile_find_memory_regions): Likewise.
15929
8b31193a
TT
159302019-01-09 Tom Tromey <tom@tromey.com>
15931
15932 * symtab.c (find_line_symtab, info_sources_command)
15933 (make_source_files_completion_list): Use objfile_compunits.
15934 * source.c (select_source_symtab): Use objfile_compunits.
15935 * objfiles.h (struct objfile): Update comment.
15936 (ALL_OBJFILES): Remove.
15937 (ALL_FILETABS): Remove.
15938 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15939 objfile_compunits.
15940
d5da8b3c
TT
159412019-01-09 Tom Tromey <tom@tromey.com>
15942
15943 * symmisc.c (print_objfile_statistics, dump_objfile)
15944 (maintenance_print_symbols): Use compunit_filetabs.
15945 * source.c (forget_cached_source_info_for_objfile): Use
15946 compunit_filetabs.
15947 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15948 (ALL_FILETABS): Use compunit_filetabs.
15949 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15950 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15951
5accd1a0
TT
159522019-01-09 Tom Tromey <tom@tromey.com>
15953
15954 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15955 (compunit_filetabs): New.
15956 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15957 compunit_filetabs.
15958 (info_sources_command, make_source_files_completion_list): Remove
15959 declaration.
15960 * symmisc.c (print_objfile_statistics, dump_objfile)
15961 (maintenance_print_symbols): Remove declaration.
15962 (maintenance_info_symtabs): Use compunit_filetabs.
15963 (maintenance_info_line_tables): Likewise.
15964 * source.c (select_source_symtab): Change local variable name.
15965 (forget_cached_source_info_for_objfile): Remove declaration.
15966 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15967 * objfiles.c (objfile_relocate1): Remove declaration.
15968 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15969 declaration.
15970 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15971 * coffread.c (coff_symtab_read): Remove declaration.
15972 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15973 compunit_filetabs.
15974
d8aeb77f
TT
159752019-01-09 Tom Tromey <tom@tromey.com>
15976
15977 * symtab.c (lookup_objfile_from_block)
15978 (find_pc_sect_compunit_symtab, search_symbols)
15979 (default_collect_symbol_completion_matches_break_on): Use
15980 objfile_compunits.
15981 * objfiles.h (ALL_COMPUNITS): Remove.
15982 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15983 * cp-support.c (add_symbol_overload_list_qualified): Use
15984 objfile_compunits.
15985 * ada-lang.c (ada_collect_symbol_completion_matches)
15986 (ada_add_global_exceptions): Use objfile_compunits.
15987
592553c4
TT
159882019-01-09 Tom Tromey <tom@tromey.com>
15989
15990 * source.c (select_source_symtab)
15991 (forget_cached_source_info_for_objfile): Remove declaration.
15992 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15993 declaration.
15994 * maint.c (count_symtabs_and_blocks): Remove declaration.
15995 * cp-support.c (add_symbol_overload_list_qualified): Remove
15996 declaration.
15997 * coffread.c (coff_symtab_read): Remove declaration.
15998 * symtab.c (lookup_symbol_in_objfile_symtabs)
15999 (basic_lookup_transparent_type_1): Use objfile_compunits.
16000 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16001 (info_sources_command, search_symbols)
16002 (default_collect_symbol_completion_matches_break_on)
16003 (make_source_files_completion_list): Remove declaration.
16004 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16005 (ada_collect_symbol_completion_matches)
16006 (ada_add_global_exceptions): Remove declaration.
16007 * linespec.c (iterate_over_all_matching_symtabs): Use
16008 objfile_compunits.
16009 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16010 (class objfile_compunits): New.
16011 (ALL_COMPUNITS): Use objfile_compunits.
16012 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16013 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16014 objfile_compunits.
16015 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16016
5325b9bf
TT
160172019-01-09 Tom Tromey <tom@tromey.com>
16018
16019 * symtab.c (search_symbols)
16020 (default_collect_symbol_completion_matches_break_on): Use
16021 objfile_msymbols.
16022 * ada-lang.c (ada_lookup_simple_minsym)
16023 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16024 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16025 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16026 objfile_msymbols.
16027 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16028 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16029 * objc-lang.c (find_methods): Use objfile_msymbols.
16030 (info_selectors_command, info_classes_command): Likewise.
16031 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16032 * objfiles.h (class objfile_msymbols): New.
16033 (ALL_OBJFILE_MSYMBOLS): Remove.
16034 (ALL_MSYMBOLS): Remove.
16035
cac85af2
TT
160362019-01-09 Tom Tromey <tom@tromey.com>
16037
16038 * common/next-iterator.h (next_adapter): Add Iterator template
16039 parameter.
16040 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16041 (class all_objfiles_safe): New.
16042 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16043 * objfiles.c (put_objfile_before): Update comment.
16044 (add_separate_debug_objfile): Likewise.
16045 (free_all_objfiles): Use all_objfiles_safe.
16046 (objfile_purge_solibs): Likewise.
16047
aed57c53
TT
160482019-01-09 Tom Tromey <tom@tromey.com>
16049
16050 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16051 (expand_symtab_containing_pc, lookup_static_symbol)
16052 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16053 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16054 all_objfiles.
16055 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16056 * breakpoint.c (create_overlay_event_breakpoint)
16057 (create_longjmp_master_breakpoint)
16058 (create_std_terminate_master_breakpoint)
16059 (create_exception_master_breakpoint): Use all_objfiles.
16060 * linux-thread-db.c (try_thread_db_load_from_pdir)
16061 (has_libpthread): Use all_objfiles.
16062 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16063 * linespec.c (iterate_over_all_matching_symtabs)
16064 (search_minsyms_for_name): Use all_objfiles.
16065 * maint.c (maintenance_info_sections): Use all_objfiles.
16066 * main.c (captured_main_1): Use all_objfiles.
16067 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16068 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16069 * guile/scm-pretty-print.c
16070 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16071 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16072 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16073 (maintenance_print_msymbols): Use all_objfiles.
16074 * source.c (select_source_symtab): Use all_objfiles.
16075 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16076 * symfile.c (remove_symbol_file_command)
16077 (expand_symtabs_matching, map_symbol_filenames): Use
16078 all_objfiles.
16079 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16080 all_objfiles.
16081 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16082 * objc-lang.c (find_methods): Use all_objfiles.
16083 * objfiles.c (have_partial_symbols, have_full_symbols)
16084 (have_minimal_symbols, qsort_cmp)
16085 (default_iterate_over_objfiles_in_search_order): Use
16086 all_objfiles.
16087 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16088 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16089 (maintenance_check_psymtabs): Use all_objfiles.
16090 (ALL_PSYMTABS): Remove.
16091 * compile/compile-object-run.c (do_module_cleanup): Use
16092 all_objfiles.
16093 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16094 * cp-support.c (add_symbol_overload_list_qualified): Use
16095 all_objfiles.
16096 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16097 Use all_objfiles.
16098 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16099 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16100 all_objfiles.
16101 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16102 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16103 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16104 Uses all_objfiles.
16105 * solib.c (solib_read_symbols): Use all_objfiles
16106
99d89cde
TT
161072019-01-09 Tom Tromey <tom@tromey.com>
16108
16109 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16110 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16111 all_objfiles.
16112 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16113 * symmisc.c (print_symbol_bcache_statistics)
16114 (print_objfile_statistics, maintenance_print_objfiles)
16115 (maintenance_info_symtabs, maintenance_check_symtabs)
16116 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16117 all_objfiles.
16118 * source.c (forget_cached_source_info): Use all_objfiles.
16119 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16120 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16121 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16122 * objfiles.c (update_section_map): Use all_objfiles.
16123 (shared_objfile_contains_address_p): Likewise.
16124 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16125 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16126
21708325
TT
161272019-01-09 Tom Tromey <tom@tromey.com>
16128
16129 * common/next-iterator.h: New file.
16130 * objfiles.h (class all_objfiles): New.
16131 (struct objfile_iterator): New.
16132
669e09f6
PW
161332019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16134
16135 * NEWS: Move the description of the changed "frame", "select-frame",
16136 and "info frame" commands to the Changed commands section.
16137
041be526
SM
161382019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16139
16140 * gdbtypes.c (check_stub_method_group): Remove handling of old
16141 mangling schemes.
16142 * linespec.c (find_methods): Likewise.
16143 * stabsread.c (read_member_functions): Likewise.
16144 * valops.c (search_struct_method): Likewise.
16145 (value_struct_elt_for_reference): Likewise.
16146 * NEWS: Mention this change.
16147
0e2a2133
AB
161482019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16149
16150 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16151 print_source_lines.
16152 * source.c (print_source_lines_base): Update line number check.
16153 (print_source_lines): New function.
16154 (source_lines_range::source_lines_range): New function.
16155 * source.h (class source_lines_range): New class.
16156 (print_source_lines): New declaration.
16157
1055a3b4
PW
161582019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16159
16160 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16161
cfeadda5
TT
161622019-01-08 Tom Tromey <tom@tromey.com>
16163 Simon Marchi <simon.marchi@ericsson.com>
16164
16165 PR gdb/24060
16166 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16167 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16168 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16169 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16170 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16171 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16172
583068ca
AB
161732019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16174
16175 * source.c (select_source_symtab): Move header comment to
16176 declaration in source.h.
16177 (forget_cached_source_info_for_objfile): Likewise.
16178 (forget_cached_source_info): Likewise.
16179 (identify_source_line): Likewise.
16180 * source.h (identify_source_line): Move declaration from symtab.h
16181 and add comment from source.c
16182 (print_source_lines): Likewise.
16183 (forget_cached_source_info_for_objfile): Likewise.
16184 (forget_cached_source_info): Likewise.
16185 (select_source_symtab): Likewise.
16186 (enum print_source_lines_flag): Move definition from symtab.h.
16187 * symtab.h (identify_source_line): Move declaration to source.h.
16188 (print_source_lines): Likewise.
16189 (forget_cached_source_info_for_objfile): Likewise.
16190 (forget_cached_source_info): Likewise.
16191 (select_source_symtab): Likewise.
16192 (enum print_source_lines_flag): Move definition to source.h.
16193 * tui/tui-hooks.c: Add 'source.h' include.
16194
ec98a4ad
AB
161952019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16196
16197 * source.c (print_source_lines_base): Handle requests to print
16198 reverse line number sequences, and guard against empty lines
16199 string.
16200
62ea19c1
AB
162012019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16202
16203 * source.c (print_source_lines_base): Fix skip of '\r' if next
16204 character is '\n'.
16205
9d30e1fd
TT
162062019-01-06 Tom Tromey <tom@tromey.com>
16207
16208 * c-exp.y (struct c_parse_state) <macro_original_text,
16209 expansion_obstack>: New member.
16210 (macro_original_text, expansion_obstack): Remove globals.
16211 (scan_macro_expansion, scanning_macro_expansion)
16212 (finished_macro_expansion): Update.
16213 (scan_macro_cleanup): Remove.
16214 (yylex, c_parse): Update.
16215
c65bac38
TT
162162019-01-06 Tom Tromey <tom@tromey.com>
16217
16218 * c-exp.y (struct c_parse_state) <strings>: New member.
16219 (operator_stoken): Update.
16220
02e12e38
TT
162212019-01-06 Tom Tromey <tom@tromey.com>
16222
16223 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16224 (union type_stack_elt) <typelist_val>: Now a pointer to
16225 std::vector.
16226 (type_stack_cleanup): Don't declare.
16227 (push_typelist): Update.
16228 * parse.c (pop_typelist): Return a std::vector.
16229 (push_typelist): Take a std::vector.
16230 (follow_types): Update. Do not free args.
16231 (type_stack_cleanup): Remove.
16232 * c-exp.y (struct c_parse_state): New.
16233 (cpstate): New global.
16234 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16235 (nonempty_typelist): Update.
16236 (func_mod): Create a new vector.
16237 (c_parse): Create a c_parse_state.
16238 (check_parameter_typelist): Do not delete params.
16239 (function_method): Update. Do not delete type_list.
16240
f097f5ad
TT
162412019-01-06 Tom Tromey <tom@tromey.com>
16242
16243 PR gdb/28155:
16244 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16245 check_typedef.
16246 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16247 (print_return_value): Likewise.
16248
d2adf9f1
TT
162492019-01-05 Tom Tromey <tom@tromey.com>
16250
16251 * contrib/cleanup_check.py: Remove.
16252 * contrib/gcc-with-excheck: Remove.
16253 * contrib/exsummary.py: Remove.
16254 * contrib/excheck.py: Remove.
16255
2eab46b1
JB
162562019-01-05 Joel Brobecker <brobecker@adacore.com>
16257
16258 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16259 NULL. Initialize tpprev to NULL instead of assigning it
16260 to NULL on the next statement.
16261 * windows-nat.c (windows_delete_thread): Remove check for
16262 main_thread_id before printing thread exit notifications.
16263 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16264 Remove thread ID check against main_thread_id.
16265 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16266 windows_delete_thread.
16267 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16268
48c5e7e2
TT
162692019-01-04 Tom Tromey <tom@tromey.com>
16270
16271 * compile/compile.c (_initialize_compile): Use upper case for
16272 metasyntactic variables.
16273 * symmisc.c (_initialize_symmisc): Use upper case for
16274 metasyntactic variables.
16275 * psymtab.c (_initialize_psymtab): Use upper case for
16276 metasyntactic variables.
16277 * demangle.c (demangle_command): Use upper case for metasyntactic
16278 variables.
16279 (_initialize_demangler): Likewise.
16280 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16281 variables.
16282
986041cd
TT
162832019-01-03 Tom Tromey <tom@tromey.com>
16284
16285 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16286
7c711119
TT
162872019-01-03 Tom Tromey <tom@tromey.com>
16288
16289 * python/py-symtab.c (salpy_str): Update.
16290 (struct salpy_sal_object) <symtab>: Now a PyObject.
16291 (salpy_dealloc): Update.
16292 (del_objfile_sal): Use gdbpy_ref.
16293
1b20edf0
TT
162942019-01-03 Tom Tromey <tom@tromey.com>
16295
16296 * python/py-type.c (convert_field): Use new_reference. Return
16297 gdbpy_ref.
16298 (make_fielditem): Return gdbpy_ref.
16299 (typy_fields): Update.
16300 (typy_getitem): Update.
16301 (field_name): Return gdbpy_ref. Use new_reference.
16302 (typy_iterator_iternext): Update.
16303
ea41325b
TT
163042019-01-03 Tom Tromey <tom@tromey.com>
16305
16306 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16307
2a3c71d6
TT
163082019-01-03 Tom Tromey <tom@tromey.com>
16309
16310 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16311 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16312 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16313 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16314 (pspy_set_type_printers): Likewise.
16315 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16316 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16317 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16318 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16319 (objfpy_set_type_printers): Likewise.
16320
5c329e6a
TT
163212019-01-03 Tom Tromey <tom@tromey.com>
16322
16323 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16324 (gdbpy_print_stack): Use gdbpy_err_fetch.
16325 * python/python-internal.h (class gdbpy_err_fetch): New class.
16326 (class gdbpy_enter) <m_error_type, m_error_value,
16327 m_error_traceback>: Remove.
16328 <m_error>: New member.
16329 (gdbpy_exception_to_string): Don't declare.
16330 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16331 * python/py-value.c (convert_value_from_python): Use
16332 gdbpy_err_fetch.
16333 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16334 gdbpy_exception_to_string.
16335 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16336 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16337 gdbpy_err_fetch.
16338
169bb27b
AB
163392019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16340
16341 * linux-nat.c (delete_lwp_cleanup): Delete.
16342 (struct lwp_deleter): New struct.
16343 (lwp_info_up): New typedef.
16344 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16345 lwp_info_up.
16346
a07c8880
AB
163472019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16348
16349 * linux-fork.c (class scoped_switch_fork_info): New class.
16350 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16351
26089c49
AB
163522019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16353
16354 * valops.c (find_overload_match): Remove use of null_cleanup, and
16355 calls to do_cleanups.
16356
06d3e5b0
AB
163572019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16358
16359 * compile/compile-cplus-types.c
16360 (compile_cplus_instance::decl_name): Handle changes to
16361 cp_func_name.
16362 * cp-support.c (cp_func_name): Update header comment, update
16363 return type.
16364 * cp-support.h (cp_func_name): Update return type in declaration.
16365 * valops.c (find_overload_match): Move temp_func local to top
16366 level of function and change its type. Use temp_func to hold and
16367 delete temporary string obtained from cp_func_name.
16368
66644cd3
AB
163692019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16370
16371 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16372 gdb::char_vector, remove cleanup, and update uses of `msg`.
16373
592d8c0a
JW
163742019-01-03 Jim Wilson <jimw@sifive.com>
16375
16376 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16377
c55d06ec
TT
163782019-01-02 Tom Tromey <tom@tromey.com>
16379
16380 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16381 (tdesc_parse_xml): Remove cleanups.
16382 * target-descriptions.h (make_cleanup_free_target_description):
16383 Don't declare.
16384 (target_desc_deleter): New struct.
16385 (target_desc_up): New typedef.
16386 * target-descriptions.c (target_desc_deleter::operator()): Rename
16387 from free_target_description.
16388 (make_cleanup_free_target_description): Remove.
16389
3a6ae42d
TT
163902019-01-02 Tom Tromey <tom@tromey.com>
16391
16392 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16393 constructor, destructor.
16394 (linespec_parser): Remove typedef.
16395 (~linespec_parser): Rename from linespec_parser_delete.
16396 (linespec_lex_to_end, linespec_complete_label)
16397 (linespec_complete): Update.
16398 (decode_line_full): Remove cleanups.
16399 (decode_line_1): Update.
16400
61fd3e73
TT
164012019-01-02 Tom Tromey <tom@tromey.com>
16402
16403 * python/python-internal.h (inferior_to_inferior_object): Change
16404 return type.
16405 * python/py-exitedevent.c (create_exited_event_object): Update.
16406 * python/py-inferior.c (inferior_to_inferior_object): Return
16407 gdbpy_ref.
16408 (python_new_inferior, python_inferior_deleted)
16409 (thread_to_thread_object, delete_thread_object)
16410 (build_inferior_list, gdbpy_selected_inferior): Update.
16411 * python/py-infthread.c (create_thread_object): Update. Also fail
16412 if inferior_to_inferior_object fails.
16413
d20172fc
SM
164142019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16415
16416 * inferior.h (class inferior) <displaced_step_state>: New field.
16417 * infrun.h (struct displaced_step_state): Move here from
16418 infrun.c. Initialize fields, add constructor.
16419 <inf>: Remove field.
16420 <reset>: New method.
16421 * infrun.c (struct displaced_step_inferior_state): Move to
16422 infrun.h.
16423 (displaced_step_inferior_states): Remove.
16424 (get_displaced_stepping_state): Adust.
16425 (displaced_step_in_progress_any_inferior): Adjust.
16426 (displaced_step_in_progress_thread): Adjust.
16427 (displaced_step_in_progress): Adjust.
16428 (add_displaced_stepping_state): Remove.
16429 (get_displaced_step_closure_by_addr): Adjust.
16430 (remove_displaced_stepping_state): Remove.
16431 (infrun_inferior_exit): Call displaced_step_state.reset.
16432 (use_displaced_stepping): Don't check for NULL.
16433 (displaced_step_prepare_throw): Call
16434 get_displaced_stepping_state.
16435 (displaced_step_fixup): Don't check for NULL.
16436 (prepare_for_detach): Don't check for NULL.
16437
e3319240
PW
164382019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16439
16440 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16441 in case of call that did not complete.
16442
5d36dfb9
AU
164432019-01-02 Andrey Utkin <autkin@undo.io>
16444
16445 * symfile.c (find_separate_debug_file): Fix search of debug files for
16446 remote debuggee.
16447
8833fbf0
TT
164482019-01-02 Tom Tromey <tom@tromey.com>
16449
16450 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16451 indentation.
16452 * python/py-frame.c (frapy_older): Remove cast.
16453 (frapy_newer): Likewise.
16454 * python/py-breakpoint.c (local_setattro): Remove cast.
16455 * python/py-arch.c (archpy_name): Remove local variable.
16456 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16457
4ada3dfd
JB
164582019-01-02 Joel Brobecker <brobecker@adacore.com>
16459
16460 * unittests/basic_string_view/element_access/char/empty.cc:
16461 Fix year range in copyright header.
16462
113b7b81
AB
164632019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16464
16465 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16466 Delete.
16467 <operator==>: Update with for removed field.
16468 <hash>: Likewise.
16469 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16470 <isa_features>: ...this.
16471 <abi_features>: New field.
16472 (riscv_isa_flen): Update comment.
16473 (riscv_abi_xlen): New declaration.
16474 (riscv_abi_flen): New declaration.
16475 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16476 isa_features.
16477 (riscv_abi_xlen): New function.
16478 (riscv_isa_flen): Update to get answer from isa_features.
16479 (riscv_abi_flen): New function.
16480 (riscv_has_fp_abi): Update to get answer from abi_features.
16481 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16482 xlen and flen.
16483 (riscv_call_info) <xlen, flen>: Update comment.
16484 (riscv_call_arg_struct): Remove invalid assertions
16485 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16486 is removed.
16487 (riscv_gdbarch_init): Gather isa features and abi features
16488 separately, ensure both match on the gdbarch when reusing an old
16489 gdbarch. Relax an error check to allow 32-bit abi float to run on
16490 a target with 64-bit float hardware.
16491
b18ca514
PW
164922019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16493
16494 * source.c (search_command_helper): Stop reverse search
16495 when line 1 has been searched.
16496
ec70d8db
PW
164972019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16498
16499 * record-full.c (record_full_base_target::close): Rewrite
16500 record_full_core_buf_list free logic.
16501
5b38f9c1
PW
165022019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16503
16504 * break-catch-syscall.c (print_one_catch_syscall): xfree
16505 the last text.
16506
66d91b39
JB
165072019-01-01 Joel Brobecker <brobecker@adacore.com>
16508
16509 * top.c (print_gdb_version): Update Copyright year in version
16510 message.
16511
42a4f53d
JB
165122019-01-01 Joel Brobecker <brobecker@adacore.com>
16513
16514 Update copyright year range in all GDB files.
16515
7e955d83 165162019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16517
5bbd631d 16518 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16519
5bbd631d 16520For older changes see ChangeLog-2018.
c906108c
SS
16521\f
16522Local Variables:
16523mode: change-log
16524left-margin: 8
16525fill-column: 74
16526version-control: never
57da7796 16527coding: utf-8
c906108c 16528End:
5bbd631d 16529
This page took 4.575194 seconds and 4 git commands to generate.