First use of tui_layout
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2192a9d3
TT
12019-12-11 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-layout.h (tui_apply_current_layout): Declare.
4 * tui/tui-layout.c (standard_layouts, applied_layout): New
5 globals.
6 (tui_apply_current_layout): New function.
7 (show_layout): Set applied_layout. Call
8 tui_apply_current_layout.
9 (show_source_command, show_disasm_command)
10 (show_source_disasm_command, show_data)
11 (show_source_or_disasm_and_command): Remove.
12 (initialize_layouts): New function.
13 (_initialize_tui_layout): Call initialize_layouts.
14
389e7ddb
TT
152019-12-11 Tom Tromey <tom@tromey.com>
16
17 * tui/tui-layout.h (class tui_layout_base)
18 (class tui_layout_window, class tui_layout_split): New.
19 * tui/tui-layout.c (tui_get_window_by_name)
20 (tui_layout_window::clone, tui_layout_window::apply)
21 (tui_layout_window::get_sizes, tui_layout_window::add_split)
22 (tui_layout_split::add_window, tui_layout_split::clone)
23 (tui_layout_split::get_sizes)
24 (tui_layout_split::set_weights_from_heights)
25 (tui_layout_split::adjust_size, tui_layout_split::apply): New
26 functions.
27 (tui_layout_split::add_split, tui_layout_split::add_split)
28 (tui_layout_split::set_weights_from_heights)
29 (tui_layout_split::set_weights_from_heights): New functions.
30
fb3184d8
TT
312019-12-11 Tom Tromey <tom@tromey.com>
32
33 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
34 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
35 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
36 * tui/tui-data.h (struct tui_point): Remove.
37 (struct tui_gen_win_info) <origin>: Remove.
38 <x, y>: New fields.
39 * tui/tui-command.c (tui_cmd_window::resize): Update.
40
dc7ff8a6
TT
412019-12-11 Tom Tromey <tom@tromey.com>
42
43 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
44 Implement.
45 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
46 Implement.
47 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
48 method.
49 (struct tui_win_info) <min_height>: Implement.
50
1431937b
TT
512019-12-11 Tom Tromey <tom@tromey.com>
52
53 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
54 (struct tui_win_info) <can_box>: Update.
55
c8ec2f43
TT
562019-12-11 Tom Tromey <tom@tromey.com>
57
58 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
59 method.
60 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
61 method.
62 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
63 method.
64 (struct tui_win_info) <max_height>: Now override.
65
4decd62b
JB
662019-12-11 Joel Brobecker <brobecker@adacore.com>
67
68 * NEWS: Create a new section for the next release branch.
69 Rename the section of the current branch, now that it has
70 been cut.
71
d746744e
JB
722019-12-11 Joel Brobecker <brobecker@adacore.com>
73
74 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
75 * version.in: Bump version to 10.0.50.DATE-git.
76
2e744276
TT
772019-12-11 Tom Tromey <tromey@adacore.com>
78
79 PR build/25268:
80 * gdbsupport/thread-pool.c (set_thread_name): New function.
81 (thread_pool::set_thread_count): Don't call pthread_setname_np.
82 (thread_pool::thread_function): Call set_thread_name.
83
aac4760f
TT
842019-12-11 Tom Tromey <tromey@adacore.com>
85
86 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
87 bfd_get_signed_8.
88
d8edc8b7
PW
892019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
90
91 * NEWS: Document -raw-values option and the related setting commands.
92 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
93 only set it on when /r is given.
94 * valprint.c (value_print_option_defs): New element raw-values.
95 * Makefile.in: Add the new file.
96
cb511130
CB
972019-12-10 Christian Biesinger <cbiesinger@google.com>
98
99 * gdbsupport/safe-strerror.c: Supress the unused function warning
100 for select_strerror_r.
101
ab7d13f0
CB
1022019-12-10 Christian Biesinger <cbiesinger@google.com>
103
104 * config.in: Regenerate.
105 * configure: Regenerate.
106 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
107 safe_strerror instead of strerror.
108 * gdbsupport/common.m4: Don't check for strerror.
109 * gdbsupport/safe-strerror.c: Support both the glibc version
110 of strerror_r and the XSI version.
111
6c71eb7d
TT
1122019-12-10 Tom Tromey <tromey@adacore.com>
113
114 * ada-typeprint.c (print_choices): Use a single "?".
115 (print_variant_part): Print "?" if the discriminant name
116 is not known.
117
bac7c5cf
GB
1182019-12-10 George Barrett <bob@bob131.so>
119
120 Fix scripted probe breakpoints.
121 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
122 declaration forward.
123 (breakpoint_ops_for_event_location_type)
124 (breakpoint_ops_for_event_location): Add function definitions.
125 (break_command_1, trace_command): Use
126 breakpoint_ops_for_event_location.
127 * breakpoint.h (breakpoint_ops_for_event_location): Add function
128 declarations.
129 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
130 breakpoint_ops_for_event_location.
131 * python/py-breakpoint.c (bppy_init): Use
132 breakpoint_ops_for_event_location.
133
330f1d38
TBA
1342019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
135
136 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
137 when ranking an lvalue argument for an rvalue parameter.
138
b1f0c0b9
WA
1392019-12-08 Wataru Ashihara <wataash@wataash.com>
140
141 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
142 template argument for scoped_restore_tmpl from bool to int.
143
aa2d5a42
KS
1442019-12-07 Keith Seitz <keiths@redhat.com>
145
146 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
147 (build_id_to_debug_bfd): Make static, rewriting to use
148 build_id_to_bfd_suffix.
149 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
150 adding `suffix' parameter. Append SUFFIX to file names
151 when searching for matching files.
152 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
153 (build_id_to_exec_bfd): Likewise.
154 * build-id.h (build_id_to_debug_bfd): Clarify that function
155 searches for BFD of debug info file.
156 (build_id_to_exec_bfd): Declare.
157 * corelow.c: Include build-id.h.
158 (locate_exec_from_corefile_build_id): New function.
159 (core_target_open): If no executable BFD is found,
160 search for a core file BFD using build-id.
161
dfb65191
CB
1622019-12-06 Christian Biesinger <cbiesinger@google.com>
163
164 * bcache.c: Put in namespace gdb.
165 * bcache.h: Likewise.
166 * gdbtypes.c (check_types_worklist): Update.
167 (types_deeply_equal): Update.
168 * macrotab.c (struct macro_table) <bcache>: Update.
169 (new_macro_table): Update.
170 * macrotab.h (struct bcache): Put this forward declaration
171 inside namespace gdb.
172 (new_macro_table): Update.
173 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
174 Update.
175 <macro_cache>: Update.
176 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
177
93e55f0a
TV
1782019-12-06 Tom de Vries <tdevries@suse.de>
179
180 PR symtab/24971
181 * block.c (best_symbol, better_symbol): New function.
182 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
183 decl.
184
06acc08f
TBA
1852019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
186
187 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
188 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
189 for ranking see-through reference cases.
190
e0fad1ea
PW
1912019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
192 * stack.c (faas_command): Check a command is provided.
193 * thread.c (taas_command, tfaas_command): Likewise.
194
908641f5
PW
1952019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
196 * inferior.c (prune_inferiors): Only call delete_inferior,
197 Do not modify the inferior list.
198
b858499d
SM
1992019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
200
201 * c-exp.y: Update calls to lookup_typename,
202 lookup_signed_typename and lookup_unsigned_typename.
203 * c-lang.c (evaluate_subexp_c): Likewise.
204 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
205 Likewise.
206 * eval.c (binop_promote): Likewise.
207 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
208 (lookup_unsigned_typename): Likewise.
209 (lookup_signed_typename): Likewise.
210 * gdbtypes.h (lookup_unsigned_typename): Likewise.
211 (lookup_signed_typename): Likewise.
212 (lookup_typename): Likewise.
213 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
214 lookup_typename, lookup_signed_typename,
215 lookup_unsigned_typename.
216 * m2-exp.y: Likewise.
217 * printcmd.c (printf_wide_c_string): Likewise.
218 (ui_printf): Likewise.
219 * python/py-type.c (typy_lookup_typename): Likewise.
220 * python/py-xmethods.c (python_xmethod_worker::invoke):
221 Likewise.
222 * rust-exp.y: Likewise.
223
3a8fa228
CB
2242019-12-04 Christian Biesinger <cbiesinger@google.com>
225
226 * configure.nat (obsd64): Add missing files x86-nat.o and
227 nat/x86-dregs.o.
228
2dbc041e
TT
2292019-12-04 Tom Tromey <tom@tromey.com>
230
231 * valprint.c (val_print_string): Use metadata_style.
232 * go-valprint.c (print_go_string): Use metadata style.
233 * p-valprint.c (pascal_object_print_static_field): Use metadata
234 style.
235 * cp-valprint.c (cp_print_static_field): Use metadata style.
236
36c8fb93
AB
2372019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
238 Chris January <chris.january@arm.com>
239
240 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
241 tokens.
242 (typebase): New patterns for complex, single/double precision, and
243 single/double complex.
244 (f77_keywords): Change token for complex keyword, and add single,
245 double, and precision keywords.
246
c6170c2c
SM
2472019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
248
249 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
250 "info io_registers".
251
894ecaf4
SM
2522019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * regcache.c (cooked_read_test): Initialize thread list of
255 mock_inferior.
256
be155ebb
SM
2572019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
258
259 * aarch64-linux-tdep.c: Remove includes.
260
c577cdd7
SM
2612019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
262
263 * aarch64-tdep.c: Remove includes.
264
610cfd61
SM
2652019-12-04 Simon Marchi <simon.marchi@efficios.com>
266
267 * filtered-iterator.h (filtered_iterator) <operator==,
268 operator!=>: Compare wrapped iterators, not wrapped pointers.
269 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
270 unittests/filtered_iterator-selftests.c.
271 * unittests/filtered_iterator-selftests.c: New file.
272
a05cf17a
TT
2732019-12-04 Tom Tromey <tromey@adacore.com>
274
275 * gdbtypes.c (create_range_type): Inherit endianity
276 from base type.
277
d5a22e77
TT
2782019-12-04 Tom Tromey <tromey@adacore.com>
279
280 * ada-lang.c (decode_constrained_packed_array)
281 (ada_value_assign, value_assign_to_component): Update.
282 * dwarf2loc.c (rw_pieced_value, access_memory)
283 (dwarf2_compile_expr_to_ax): Update.
284 * dwarf2read.c (dwarf2_add_field): Update.
285 * eval.c (evaluate_subexp_standard): Update.
286 * gdbarch.c, gdbarch.h: Rebuild.
287 * gdbarch.sh (bits_big_endian): Remove.
288 * gdbtypes.h (union field_location): Update comment.
289 * target-descriptions.c (make_gdb_type): Update.
290 * valarith.c (value_bit_index): Update.
291 * value.c (struct value) <bitpos>: Update comment.
292 (unpack_bits_as_long, modify_field): Update.
293 * value.h (value_bitpos): Update comment.
294
7ab4a236
TT
2952019-12-04 Tom Tromey <tromey@adacore.com>
296
297 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
298 endian-ness.
299
103a685e
TT
3002019-12-04 Tom Tromey <tromey@adacore.com>
301
302 * dwarf2read.c (dwarf2_init_float_type)
303 (dwarf2_init_complex_target_type): Add byte_order parameter.
304 (read_base_type): Compute byte order earlier.
305 * gdbtypes.c (init_float_type): Add byte_order parameter.
306 * gdbtypes.h (init_float_type): Add byte_order parameter.
307
7a9e9f9f
TT
3082019-12-04 Tom Tromey <tromey@adacore.com>
309
310 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
311
feee869b
TT
3122019-12-04 Tom Tromey <tromey@adacore.com>
313
314 * dwarf2read.c (process_structure_scope): Initialize
315 "discr_offset".
316
c2512106
AB
3172019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
318
319 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
320 add it into the search spec.
321 (parse_max_results_option): New function.
322 (mi_info_functions_or_variables): Parse -max-results flag and pass
323 it to mi_symbol_info.
324 (mi_cmd_symbol_info_modules): Likewise.
325 (mi_cmd_symbol_info_types): Likewise.
326 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
327 return type to bool, change result container into a set, and don't
328 add new results if we have enough already.
329 (global_symbol_searcher::add_matching_msymbols): Change return
330 type to bool, and don't add new results if we have enough already.
331 (sort_search_symbols_remove_dups): Delete.
332 (global_symbol_searcher::search): Early exit from search loop when
333 we have enough results. Use a std::set to collect the results
334 from calling add_matching_symbols.
335 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
336 member function.
337 (global_symbol_searcher) <m_max_search_results>: New member
338 variable.
339 (global_symbol_searcher) <add_matching_symbols>: Update header
340 comment and change return type to bool.
341 (global_symbol_searcher) <add_matching_msymbols>: Update header
342 comment and change return type to bool.
343
f97a63c5
AB
3442019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
345
346 * symtab.c (symbol_search::compare_search_syms): Update header
347 comment.
348 (global_symbol_searcher::is_suitable_msymbol): New function.
349 (global_symbol_searcher::expand_symtabs): New function.
350 (global_symbol_searcher::add_matching_symbols): New function.
351 (global_symbol_searcher::add_matching_msymbols): New function.
352 (global_symbol_searcher::search): Move most of the content
353 into the new functions above, and call them as needed.
354 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
355 function.
356 (global_symbol_searcher) <add_matching_symbols>: New member
357 function.
358 (global_symbol_searcher) <add_matching_msymbols>: New member
359 function.
360 (global_symbol_searcher) <is_suitable_msymbol>: New member
361 function.
362
293b38d6
AB
3632019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
364
365 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
366 -symbol-info-module-variables entries.
367 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
368 (mi_cmd_symbol_info_module_variables): Declare.
369 * mi/mi-symbol-cmds.c
370 (module_symbol_search_iterator): New typedef.
371 (output_module_symbols_in_single_module_and_file): New function.
372 (output_module_symbols_in_single_module): New function.
373 (mi_info_module_functions_or_variables): New function.
374 (mi_cmd_symbol_info_module_functions): New function.
375 (mi_cmd_symbol_info_module_variables): New function.
376 * NEWS: Mention new MI command.
377
4cbd39b2
CB
3782019-12-03 Christian Biesinger <cbiesinger@google.com>
379
380 * bcache.c (hash): Remove.
381 (hash_continue): Remove.
382 * bcache.h (hash): Remove.
383 (hash_continue): Remove.
384 (struct bcache) <ctor>: Update.
385 * psymtab.c (psymbol_hash): Update.
386 * stabsread.c (hashname): Update.
387 * utils.h (fast_hash): Add an argument for a start value,
388 defaulting to zero.
389
82f910ea
PW
3902019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
391 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
392 (destroy_block_symbol_cache): New function.
393 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
394 (resize_symbol_cache): Likewise.
395
de2396d0
TT
3962019-12-02 Tom Tromey <tom@tromey.com>
397
398 * unittests/tui-selftests.c (run_tests): Make conditional.
399 (_initialize_tui_selftest): Make conditional.
400
638d85bc
CB
4012019-12-02 Christian Biesinger <cbiesinger@google.com>
402
403 * aix-thread.c (debug_aix_thread): Change type to bool.
404
7532a164
LM
4052019-12-02 Luis Machado <luis.machado@linaro.org>
406
407 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
408
216a7e6b
AB
4092019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
410
411 * dwarf2read.c (read_tag_string_type): Read the fields required to
412 make a dynamic string, and possibly create a dynamic range for the
413 string.
414 (attr_to_dynamic_prop): Setup is_reference based on the type of
415 attribute being processed.
416 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
417 (resolve_dynamic_array): Rename to...
418 (resolve_dynamic_array_or_string): ...this, update header comment,
419 and accept TYPE_CODE_STRING.
420 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
421
11a8b164
AB
4222019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
423
424 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
425 of its implementation from...
426 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
427 the new function.
428
5bbd8269
AB
4292019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
430
431 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
432 create a range with stride where appropriate.
433 * f-valprint.c: Include 'gdbarch.h'.
434 (f77_print_array_1): Take the stride into account when walking the
435 array. Also convert the stride into addressable units.
436 * gdbtypes.c (create_range_type): Initialise the stride to
437 constant zero.
438 (create_range_type_with_stride): New function, initialise the
439 range as normal, and then setup the stride.
440 (has_static_range): Include the stride here. Also change the
441 return type to bool.
442 (create_array_type_with_stride): Consider the range stride if the
443 array isn't given its own stride.
444 (resolve_dynamic_range): Resolve the stride if needed.
445 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
446 (struct range_bounds) <flag_is_byte_stride>: New member variable.
447 (TYPE_BIT_STRIDE): Define.
448 (TYPE_ARRAY_BIT_STRIDE): Define.
449 (create_range_type_with_stride): Declare.
450 * valarith.c (value_subscripted_rvalue): Take range stride into
451 account when walking the array.
452
82e3b564
TT
4532019-12-01 Tom Tromey <tom@tromey.com>
454
455 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
456 specially.
457
517d261d
TT
4582019-12-01 Tom Tromey <tom@tromey.com>
459
460 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
461 \0.
462 * unittests/tui-selftests.c: New file.
463 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
464
484c9b64
TT
4652019-12-01 Tom Tromey <tom@tromey.com>
466
467 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
468
a2a7af0c
TT
4692019-12-01 Tom Tromey <tom@tromey.com>
470
471 * NEWS: Document new settings.
472 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
473 * tui/tui-win.c (_initialize_tui_win): Add border style
474 observers.
475 * tui/tui-io.h (tui_apply_style): Declare.
476 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
477 longer static.
478 (apply_ansi_escape, tui_set_reverse_mode): Update.
479 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
480 Add "skip_intensity" parameter.
481 <changed>: New member.
482 <do_set_value>: Declare.
483 (tui_border_style, tui_active_border_style): Declare.
484 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
485 globals.
486 (cli_style_option): Initialize "changed".
487 (cli_style_option::do_set_value): New function.
488 (cli_style_option::add_setshow_commands): Add "skip_intensity"
489 parameter. Update.
490 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
491 (_initialize_cli_style): Update. Create TUI border style
492 commands.
493
d1da6b01
TT
4942019-12-01 Tom Tromey <tom@tromey.com>
495
496 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
497 parameter.
498 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
499 parameter.
500 * tui/tui-win.h (compact_source): Declare.
501 * tui/tui-win.c (compact_source): New global.
502 (tui_set_compact_source, tui_show_compact_source): New functions.
503 (_initialize_tui_win): Add "compact-source" setting.
504 * tui/tui-source.c (tui_source_window::set_contents): Handle
505 compact_source setting.
506 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
507 * NEWS: Document new setting.
508
489dbda6
TT
5092019-11-30 Tom Tromey <tom@tromey.com>
510
511 * dwarf2read.c (dwarf2_add_field): Include field offset when
512 computing variant part length.
513
bf498525
PW
5142019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
515 * NEWS: Mention define-prefix. Tell that command names can now
516 contain a . character.
517
be09caf1
PW
5182019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
519
520 * command.h (valid_cmd_char_p): Declare.
521 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
522 the check of valid command char.
523 (find_command_name_length, valid_user_defined_cmd_name_p): Use
524 valid_cmd_char_p.
525 * cli/cli-script.c (validate_comname): Likewise.
526 * completer.c (gdb_completer_command_word_break_characters):
527 Do not remove . from the word break char, update comments.
528 (complete_line_internal_1): Use valid_cmd_char_p.
529 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
530 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
531
c6ac7fc9
PW
5322019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
533
534 * cli/cli-script.c (do_define_command): Ensure a redefined
535 prefix command is kept as a prefix command.
536 (define_prefix_command): New function.
537 (show_user_1): Report user defined prefixes.
538 (_initialize_cli_script): Create the new 'define-prefix' command.
539 Add completers for 'define' and 'document'.
540 * top.c (execute_command): If command is a user-defined prefix only
541 command, report the list of commands for this prefix command.
542
a992a3b0
TBA
5432019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
544
545 * valops.c (find_oload_champ): Improve debug output.
546
e9194a1a
TBA
5472019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
548
549 * valops.c (find_oload_champ): Print part of debug messages
550 before the badness vector is std::move'd.
551
53a008a6
TT
5522019-11-28 Tom Tromey <tom@tromey.com>
553
554 * value.c (creal_internal_fn): Fix comment.
555
bab05c83
TT
5562019-11-28 Tom Tromey <tom@tromey.com>
557
558 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
559 flag_bound_evaluated>: Now unsigned.
560
2522f049
TT
5612019-11-28 Tom Tromey <tom@tromey.com>
562
563 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
564 declare.
565
38b49e22
MS
5662019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
567
568 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
569 debug output.
570 * jit.c (jit_unregister_code): Add debug print to match
571 `jit_register_code`.
572
35125921
CB
5732019-11-27 Christian Biesinger <cbiesinger@google.com>
574
575 * NEWS: Mention the new multithreaded symbol loading.
576
62e77f56
CB
5772019-11-27 Christian Biesinger <cbiesinger@google.com>
578
579 * maint.c (n_worker_threads): Default to 0.
580 (worker_threads_disabled): New function.
581 * maint.h (worker_threads_disabled): New function.
582 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
583 here if worker_threads_disabled () is true.
584 (minimal_symbol_reader::install): Skip all threading if
585 worker_threads_disabled () is true.
586
f29d7f6b
CB
5872019-11-27 Christian Biesinger <cbiesinger@google.com>
588
589 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
590 hash code if possible.
591 (add_minsym_to_demangled_hash_table): Likewise.
592 (minimal_symbol_reader::install): Compute the hash codes for msymbol
593 on the background thread.
594 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
595 Add these fields.
596
e76b2246
CB
5972019-11-27 Christian Biesinger <cbiesinger@google.com>
598
599 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
600 of the mangled name on the background thread.
601 * symtab.c (symbol_set_names): Allow passing in the hash of the
602 linkage_name.
603 * symtab.h (symbol_set_names): Likewise.
604
8d9a2568
KB
6052019-11-27 Kevin Buettner <kevinb@redhat.com>
606
607 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
608 physnames are computed for inherited DIEs.
609
fad03f6e
TT
6102019-11-27 Tom Tromey <tromey@adacore.com>
611
612 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
613 backslashes.
614 * cp-support.c: Remove unnecessary backslashes.
615
43678b0a
CB
6162019-11-27 Christian Biesinger <cbiesinger@google.com>
617
618 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
619 with sym->set_linkage_name.
620 * coffread.c (coff_read_enum_type): Likewise.
621 * mdebugread.c (parse_symbol): Likewise.
622 * stabsread.c (patch_block_stabs): Likewise.
623 (define_symbol): Likewise.
624 (read_enum_type): Likewise.
625 (common_block_end): Likewise.
626 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
627 function.
628 (SYMBOL_SET_LINKAGE_NAME): Remove.
629 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
630 with sym->set_linkage_name.
631
db5960b4
AB
6322019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
633
634 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
635 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
636 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
637 * NEWS: Mention new MI command.
638
7dc42066
AB
6392019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
640
641 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
642 '-symbol-info-types', and '-symbol-info-variables'.
643 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
644 (mi_cmd_symbol_info_types): Declare.
645 (mi_cmd_symbol_info_variables): Declare.
646 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
647 (output_debug_symbol): New function.
648 (output_nondebug_symbol): New function.
649 (mi_symbol_info): New function.
650 (mi_info_functions_or_variables): New function.
651 (mi_cmd_symbol_info_functions): New function.
652 (mi_cmd_symbol_info_types): New function.
653 (mi_cmd_symbol_info_variables): New function.
654 * NEWS: Mention new commands.
655
5f512a7d
AB
6562019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
657
658 * symtab.c (symbol_to_info_string): New function, most content
659 moved from print_symbol_info, but updated to return a std::string.
660 (print_symbol_info): Update to use symbol_to_info_string and print
661 returned string.
662 * symtab.h (symbol_to_info_string): Declare new function.
663
470c0b1c
AB
6642019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
665
666 * python/python.c (gdbpy_rbreak): Convert to using
667 global_symbol_searcher.
668 * symtab.c (file_matches): Convert return type to bool, change
669 file list to std::vector, update header comment.
670 (search_symbols): Rename to...
671 (global_symbol_searcher::search): ...this and update now its
672 a member function of global_symbol_searcher. Take account of the
673 changes to file_matches.
674 (symtab_symbol_info): Convert to using global_symbol_searcher.
675 (rbreak_command): Likewise.
676 (search_module_symbols): Likewise.
677 * symtab.h (enum symbol_search): Update comment.
678 (search_symbols): Remove declaration.
679 (class global_symbol_searcher): New class.
680
57357d9d
TT
6812019-11-26 Tom Tromey <tromey@adacore.com>
682
683 * cp-support.c (_initialize_cp_support): Conditionally initialize
684 gdb_demangle_attempt_core_dump.
685
3ea16160
TT
6862019-11-26 Tom Tromey <tom@tromey.com>
687
688 * python/py-function.c (fnpy_init): Update.
689 * value.h (add_internal_function): Adjust declaration.
690 * value.c (function_destroyer): Remove.
691 (do_add_internal_function): Don't set destroyer or copy name.
692 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
693 Set name_allocated.
694 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
695 (cmdpy_init): Set name_allocated.
696 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
697 member.
698 (~cmd_list_element): Free "name" if needed.
699
1a6d41c6
TT
7002019-11-26 Tom Tromey <tom@tromey.com>
701
702 * value.h (add_internal_function): Add new overload. Move
703 documentation from value.h.
704 * value.c (do_add_internal_function): New function.
705 (add_internal_function): Use it. Add new overload.
706 (function_destroyer): Don't free doc.
707 * python/py-function.c (fnpy_init): Update.
708
8318f3c3
TT
7092019-11-26 Tom Tromey <tom@tromey.com>
710
711 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
712 (cmdpy_init): Set "doc_allocated".
713
4da8c3a8
TT
7142019-11-26 Tom Tromey <tom@tromey.com>
715
716 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
717 name of worker thread.
718 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
719 pthread_setname_np.
720 * configure, config.in: Rebuild.
721
971db5e2
TT
7222019-11-26 Tom Tromey <tom@tromey.com>
723
724 * python/python.c (class gdbpy_gil): New.
725 (struct gdbpy_event): Add constructor, destructor, operator().
726 (gdbpy_post_event): Use run_on_main_thread.
727 (gdbpy_initialize_events): Remove.
728 (do_start_initialization): Update.
729
22138db6
TT
7302019-11-26 Tom Tromey <tom@tromey.com>
731
732 * NEWS: Add entry.
733 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
734 commands. Call update_thread_pool_size.
735 (update_thread_pool_size, maintenance_set_worker_threads): New
736 functions.
737 (n_worker_threads): New global.
738
d55c9a68
TT
7392019-11-26 Christian Biesinger <cbiesinger@google.com>
740 Tom Tromey <tom@tromey.com>
741
742 * minsyms.c (minimal_symbol_reader::install): Use
743 parallel_for_each.
744 * gdbsupport/parallel-for.h: New file.
745 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
746
a0b57563
CB
7472019-11-26 Christian Biesinger <cbiesinger@google.com>
748 Tom Tromey <tom@tromey.com>
749
750 * gdbsupport/thread-pool.h: New file.
751 * gdbsupport/thread-pool.c: New file.
752 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
753 (HFILES_NO_SRCDIR): Add thread-pool.h.
754
3b3978bc
TT
7552019-11-26 Tom Tromey <tom@tromey.com>
756
757 * event-top.h (thread_local_segv_handler): Declare.
758 * event-top.c (thread_local_segv_handler): New global.
759 (install_handle_sigsegv, handle_sigsegv): New functions.
760 (async_init_signals): Install SIGSEGV handler.
761 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
762 thread-local.
763 (report_failed_demangle): New function.
764 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
765 handler-setting code, instead use segv_handler. Run warning code
766 on main thread.
767
9411c49e
TT
7682019-11-26 Tom Tromey <tom@tromey.com>
769
770 * run-on-main-thread.c: New file.
771 * run-on-main-thread.h: New file.
772 * unittests/main-thread-selftests.c: New file.
773 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
774 main-thread-selftests.c.
775 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
776 (COMMON_SFILES): Add run-on-main-thread.c.
777
c3efb965
TT
7782019-11-26 Tom Tromey <tom@tromey.com>
779
780 * main.c (setup_alternate_signal_stack): Remove.
781 (captured_main_1): Use gdb::alternate_signal_stack.
782 * gdbsupport/alt-stack.h: New file.
783
21987b9c
TT
7842019-11-26 Tom Tromey <tom@tromey.com>
785
786 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
787 Remove comment.
788 (save_original_signals_state, restore_original_signals_state): Use
789 gdb_sigmask.
790 * linux-nat.c (block_child_signals, restore_child_signals_mask)
791 (_initialize_linux_nat): Use gdb_sigmask.
792 * guile/guile.c (_initialize_guile): Use block_signals.
793 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
794 * gdbsupport/gdb-sigmask.h: New file.
795 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
796 * cp-support.c (gdb_demangle): Use gdb_sigmask.
797 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
798 pthread_sigmask.
799 * configure, config.in: Rebuild.
800 * gdbsupport/block-signals.h: New file.
801
5e030278
TT
8022019-11-26 Tom Tromey <tom@tromey.com>
803
804 * acinclude.m4: Include ax_pthread.m4.
805 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
806 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
807 (CLIBS): Use PTHREAD_LIBS.
808 (aclocal_m4_deps): Add ax_pthread.m4.
809 * config.in, configure: Rebuild.
810 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
811
5a79c107
TT
8122019-11-26 Tom Tromey <tom@tromey.com>
813
814 * symtab.h (struct minimal_symbol) <name_set>: New member.
815 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
816 Don't call symbol_set_names.
817 (minimal_symbol_reader::install): Call symbol_set_names.
818
aa369509
PW
8192019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
820
821 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
822 restore_active_ext_lang, as GIL is needed for (indirectly)
823 called PyOS_InterruptOccurred.
824
cadc9cb8
SM
8252019-11-26 Simon Marchi <simon.marchi@efficios.com>
826
827 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
828 definition.
829
d04afd58
SM
8302019-11-26 Simon Marchi <simon.marchi@efficios.com>
831
832 * remote-sim.c (simulator_command): Make static, remove
833 declaration.
834
dd694d77
SM
8352019-11-26 Simon Marchi <simon.marchi@efficios.com>
836
837 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
838 static.
839 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
840 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
841 (main): Likewise.
842 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
843 (main): Likewise.
844 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
845 (main): Likewise.
846 * unittests/basic_string_view/element_access/char/1.cc (test01):
847 Likewise.
848 (main): Likewise.
849 * unittests/basic_string_view/element_access/char/empty.cc (main):
850 Likewise.
851 * unittests/basic_string_view/element_access/char/front_back.cc
852 (test01): Likewise.
853 (main): Likewise.
854 * unittests/basic_string_view/inserters/char/2.cc (test05):
855 Likewise.
856 (main): Likewise.
857 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
858 (test01): Likewise.
859 (main): Likewise.
860 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
861 (test01): Likewise.
862 (main): Likewise.
863 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
864 Likewise.
865 * unittests/basic_string_view/operations/compare/char/1.cc
866 (test01): Likewise.
867 (main): Likewise.
868 * unittests/basic_string_view/operations/compare/char/13650.cc
869 (test01): Likewise.
870 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
871 Likewise.
872 (main): Likewise.
873 * unittests/basic_string_view/operations/data/char/1.cc (test01):
874 Likewise.
875 (main): Likewise.
876 * unittests/basic_string_view/operations/find/char/1.cc (test01):
877 Likewise.
878 (main): Likewise.
879 * unittests/basic_string_view/operations/find/char/2.cc (test02):
880 Likewise.
881 (main): Likewise.
882 * unittests/basic_string_view/operations/find/char/3.cc (test03):
883 Likewise.
884 (main): Likewise.
885 * unittests/basic_string_view/operations/find/char/4.cc (main):
886 Likewise.
887 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
888 Likewise.
889 (main): Likewise.
890 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
891 Likewise.
892 (main): Likewise.
893 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
894 Likewise.
895 (main): Likewise.
896 * unittests/basic_string_view/operations/substr/char/1.cc
897 (test01): Likewise.
898 (main): Likewise.
899 * unittests/basic_string_view/operators/char/2.cc (main):
900 Likewise.
901 * unittests/optional/assignment/1.cc (test): Likewise.
902 * unittests/optional/assignment/2.cc (test): Likewise.
903 * unittests/optional/assignment/3.cc (test): Likewise.
904 * unittests/optional/assignment/4.cc (test): Likewise.
905 * unittests/optional/assignment/5.cc (test): Likewise.
906 * unittests/optional/assignment/6.cc (test): Likewise.
907 * unittests/optional/assignment/7.cc (test): Likewise.
908 * unittests/optional/cons/copy.cc (test): Likewise.
909 * unittests/optional/cons/default.cc (test): Likewise.
910 * unittests/optional/cons/move.cc (test): Likewise.
911 * unittests/optional/cons/value.cc (test): Likewise.
912 * unittests/optional/in_place.cc (test): Likewise.
913 * unittests/optional/observers/1.cc (test): Likewise.
914 * unittests/optional/observers/2.cc (test): Likewise.
915
3b5c1d49
SM
9162019-11-26 Simon Marchi <simon.marchi@efficios.com>
917
918 * tui-win.h (tui_set_var_cmd): Remove.
919 * tui-win.c (tui_set_var_cmd): Make static.
920
adce99fe
SM
9212019-11-26 Simon Marchi <simon.marchi@efficios.com>
922
923 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
924 rbreak_command_wrapper): Remove.
925 * symtab.c (rbreak_command_wrapper): Remove.
926
fe3adccf
SM
9272019-11-26 Simon Marchi <simon.marchi@efficios.com>
928
929 * inferior.h (info_terminal_command): Remove declaration.
930 * inflow.c (info_terminal_command): Make static.
931
b926335f
SM
9322019-11-26 Simon Marchi <simon.marchi@efficios.com>
933
934 * inferior.c (exit_inferior_silent): Remove.
935
b62f6f54
SM
9362019-11-26 Simon Marchi <simon.marchi@efficios.com>
937
938 * dictionary.c (dict_empty, mdict_empty): Remove.
939 * dictionary.c (mdict_empty): Remove.
940
cb8c24b6
SM
9412019-11-26 Simon Marchi <simon.marchi@efficios.com>
942
943 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
944 (arc_insn_get_memory_offset): Likewise.
945 (arc_insn_dump): Likewise.
946 * cp-support.c (test_cp_symbol_name_matches): Likewise.
947 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
948 * dictionary.c (dict_iterator_next): Likewise.
949 (dict_iter_match_first): Likewise.
950 (dict_iter_match_next): Likewise.
951 * f-lang.c (evaluate_subexp_f): Likewise.
952 * hppa-tdep.c (hppa_read_pc): Likewise.
953 * i386-tdep.c (i386_floatformat_for_type): Likewise.
954 * parse.c (write_exp_elt_msym): Likewise.
955 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
956 * remote.c (remote_packet_size): Likewise.
957 (remote_notif_stop_parse): Likewise.
958 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
959 * s12z-tdep.c (s12z_disassemble_info): Likewise.
960 * source.c (prepare_path_for_appending): Likewise.
961 * sparc64-linux-tdep.c
962 (sparc64_linux_handle_segmentation_fault); Likewise.
963 * stack.c (frame_selection_by_function_completer): Likewise.
964
781597ff
SM
9652019-11-26 Simon Marchi <simon.marchi@efficios.com>
966
967 * completer.c (set_gdb_completion_word_break_characters):
968 Remove.
969
23baa4cc
SM
9702019-11-26 Simon Marchi <simon.marchi@efficios.com>
971
972 * dwarf-index-write.c: Include dwarf-index-write.h.
973 * mi/mi-interp.c: Include mi/mi-interp.h.
974
23767560
SM
9752019-11-26 Simon Marchi <simon.marchi@efficios.com>
976
977 * aarch32-tdep.c: Include aarch32-tdep.h.
978 * aarch32-tdep.h: Forward-declare struct target_desc.
979
6d91ce9a
CB
9802019-11-26 Christian Biesinger <cbiesinger@google.com>
981
982 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
983 strerror.
984 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
985 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
986
3cf2f237
TV
9872019-11-25 Tom de Vries <tdevries@suse.de>
988
989 * contrib/words.sh: Add -c option.
990
5b89c67a
CB
9912019-11-25 Christian Biesinger <cbiesinger@google.com>
992
993 * solib.c (solib_find_1): Change int to bool.
994 (exec_file_find): Change int to bool.
995 (solib_find): Change int to bool.
996 (solib_read_symbols): Change int to bool.
997 (solib_used): Change int to bool.
998 (solib_add): Change int to bool.
999 (info_sharedlibrary_command): Change int to bool.
1000 (solib_contains_address_p): Change int to bool.
1001 (solib_keep_data_in_core): Change int to bool.
1002 (in_solib_dynsym_resolve_code): Change int to bool.
1003 (reload_shared_libraries_1): Change int to bool.
1004 (gdb_sysroot_changed): Change int to bool.
1005 * solib.h (solib_read_symbols): Change int to bool.
1006 (solib_contains_address_p): Change int to bool.
1007 (solib_keep_data_in_core): Change int to bool.
1008 (in_solib_dynsym_resolve_code): Change int to bool.
1009 (libpthread_name_p): Change int to bool.
1010
6cc8564b
LM
10112019-11-25 Luis Machado <luis.machado@linaro.org>
1012
1013 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1014 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1015 (remote_packet_max_chars): New static global.
1016 (show_remote_packet_max_chars): New function.
1017 (remote_target::putpkt_binary): Adjust to use new
1018 remote_packet_max_chars option.
1019 (remote_target::getpkt_or_notif_sane_1): Likewise.
1020 (_initialize_remote): Register new remote-packet-max-chars option.
1021
a7cdaa91
SM
10222019-11-24 Simon Marchi <simon.marchi@efficios.com>
1023
1024 * m68k-linux-nat.c: Include gdbarch.h.
1025
26abc753
TT
10262019-11-24 Tom Tromey <tom@tromey.com>
1027
1028 * symfile.c (read_symbols): Update.
1029 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1030 bool.
1031 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1032 (psym_lookup_symbol, psym_find_last_source_symtab)
1033 (psym_forget_cached_source_info, psym_print_stats)
1034 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1035 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1036 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1037 (psym_find_compunit_symtab_by_address)
1038 (maintenance_print_psymbols, maintenance_info_psymtabs)
1039 (maintenance_check_psymtabs): Update.
1040 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1041 bool.
1042
012fc909
TT
10432019-11-22 Tom Tromey <tom@tromey.com>
1044
1045 * observable.h: Update comments.
1046
c83d8d32
TT
10472019-11-22 Tom Tromey <tromey@adacore.com>
1048
1049 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1050 (print_ada_task_info): Don't try to fetch thread id if task is not
1051 alive.
1052
987012b8
CB
10532019-11-22 Christian Biesinger <cbiesinger@google.com>
1054
1055 * ada-exp.y: Update.
1056 * ada-lang.c (sort_choices): Update.
1057 (ada_print_symbol_signature): Update.
1058 (resolve_subexp): Update.
1059 (ada_parse_renaming): Update.
1060 (ada_read_renaming_var_value): Update.
1061 (lesseq_defined_than): Update.
1062 (remove_extra_symbols): Update.
1063 (remove_irrelevant_renamings): Update.
1064 (ada_add_block_symbols): Update.
1065 (ada_collect_symbol_completion_matches): Update.
1066 (ada_is_renaming_symbol): Update.
1067 (aggregate_assign_from_choices): Update.
1068 (ada_evaluate_subexp): Update.
1069 (ada_has_this_exception_support): Update.
1070 (ada_is_non_standard_exception_sym): Update.
1071 (ada_add_exceptions_from_frame): Update.
1072 (ada_add_global_exceptions): Update.
1073 (ada_print_subexp): Update.
1074 * ax-gdb.c (gen_var_ref): Update.
1075 (gen_maybe_namespace_elt): Update.
1076 (gen_expr_for_cast): Update.
1077 (gen_expr): Update.
1078 * block.h: Update.
1079 * blockframe.c (find_pc_partial_function): Update.
1080 * breakpoint.c (print_breakpoint_location): Update.
1081 (update_static_tracepoint): Update.
1082 * btrace.c (ftrace_print_function_name): Update.
1083 (ftrace_function_switched): Update.
1084 * buildsym.c (find_symbol_in_list): Update.
1085 * c-exp.y: Update.
1086 * c-typeprint.c (c_print_typedef): Update.
1087 (c_type_print_template_args): Update.
1088 * cli/cli-cmds.c (edit_command): Update.
1089 (list_command): Update.
1090 (print_sal_location): Update.
1091 * coffread.c (patch_opaque_types): Update.
1092 (process_coff_symbol): Update.
1093 (coff_read_enum_type): Update.
1094 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1095 (convert_one_symbol): Update.
1096 (hash_symname): Update.
1097 (eq_symname): Update.
1098 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1099 * compile/compile-cplus-types.c (debug_print_scope): Update.
1100 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1101 * compile/compile-object-load.c (get_out_value_type): Update.
1102 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1103 (search_symbol_list): Update.
1104 (cp_lookup_symbol_imports_or_template): Update.
1105 * cp-support.c (overload_list_add_symbol): Update.
1106 * ctfread.c (psymtab_to_symtab): Update.
1107 * dbxread.c (cp_set_block_scope): Update.
1108 * dictionary.c (iter_match_first_hashed): Update.
1109 (iter_match_next_hashed): Update.
1110 (insert_symbol_hashed): Update.
1111 (iter_match_next_linear): Update.
1112 * dictionary.h: Update.
1113 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1114 (locexpr_describe_location_piece): Update.
1115 (locexpr_describe_location_1): Update.
1116 (locexpr_generate_c_location): Update.
1117 (loclist_describe_location): Update.
1118 (loclist_generate_c_location): Update.
1119 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1120 (read_func_scope): Update.
1121 (process_enumeration_scope): Update.
1122 (new_symbol): Update.
1123 (dwarf2_const_value): Update.
1124 (dwarf2_symbol_mark_computed): Update.
1125 * eval.c (evaluate_funcall): Update.
1126 (evaluate_subexp_standard): Update.
1127 * expprint.c (print_subexp_standard): Update.
1128 (dump_subexp_body_standard): Update.
1129 * f-valprint.c (info_common_command_for_block): Update.
1130 * findvar.c (get_hosting_frame): Update.
1131 (default_read_var_value): Update.
1132 * go-lang.c (go_symbol_package_name): Update.
1133 * guile/scm-block.c (bkscm_print_block_smob): Update.
1134 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1135 (gdbscm_symbol_name): Update.
1136 (gdbscm_symbol_linkage_name): Update.
1137 (gdbscm_symbol_print_name): Update.
1138 * infcall.c (get_function_name): Update.
1139 * infcmd.c (jump_command): Update.
1140 (finish_command): Update.
1141 * infrun.c (insert_exception_resume_breakpoint): Update.
1142 * linespec.c (canonicalize_linespec): Update.
1143 (create_sals_line_offset): Update.
1144 (convert_linespec_to_sals): Update.
1145 (complete_label): Update.
1146 (find_label_symbols_in_block): Update.
1147 * m2-typeprint.c (m2_print_typedef): Update.
1148 * mdebugread.c (mdebug_reg_to_regnum): Update.
1149 (parse_symbol): Update.
1150 (mylookup_symbol): Update.
1151 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1152 (list_args_or_locals): Update.
1153 * objc-lang.c (compare_selectors): Update.
1154 (info_selectors_command): Update.
1155 (compare_classes): Update.
1156 (info_classes_command): Update.
1157 (find_imps): Update.
1158 * p-typeprint.c (pascal_print_typedef): Update.
1159 * printcmd.c (build_address_symbolic): Update.
1160 (info_address_command): Update.
1161 (print_variable_and_value): Update.
1162 * python/py-framefilter.c (extract_sym): Update.
1163 (py_print_single_arg): Update.
1164 * python/py-symbol.c (sympy_str): Update.
1165 (sympy_get_name): Update.
1166 (sympy_get_linkage_name): Update.
1167 * python/python.c (gdbpy_rbreak): Update.
1168 * record-btrace.c (btrace_get_bfun_name): Update.
1169 (btrace_call_history): Update.
1170 * rust-lang.c (rust_print_typedef): Update.
1171 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1172 * stabsread.c (stab_reg_to_regnum): Update.
1173 (define_symbol): Update.
1174 (read_enum_type): Update.
1175 (common_block_end): Update.
1176 (cleanup_undefined_types_1): Update.
1177 (scan_file_globals): Update.
1178 * stack.c (print_frame_arg): Update.
1179 (print_frame_args): Update.
1180 (find_frame_funname): Update.
1181 (info_frame_command_core): Update.
1182 (iterate_over_block_locals): Update.
1183 (print_block_frame_labels): Update.
1184 (do_print_variable_and_value): Update.
1185 (iterate_over_block_arg_vars): Update.
1186 (return_command): Update.
1187 * symmisc.c (dump_symtab_1): Update.
1188 (print_symbol): Update.
1189 * symtab.c (eq_symbol_entry): Update.
1190 (symbol_cache_dump): Update.
1191 (lookup_language_this): Update.
1192 (find_pc_sect_line): Update.
1193 (skip_prologue_sal): Update.
1194 (symbol_search::compare_search_syms): Update.
1195 (treg_matches_sym_type_name): Update.
1196 (search_symbols): Update.
1197 (print_symbol_info): Update.
1198 (rbreak_command): Update.
1199 (completion_list_add_symbol): Update.
1200 (find_gnu_ifunc): Update.
1201 (get_symbol_address): Update.
1202 (search_module_symbols): Update.
1203 (info_module_subcommand): Update.
1204 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1205 (SYMBOL_LINKAGE_NAME): Remove.
1206 (SYMBOL_DEMANGLED_NAME): Remove.
1207 (SYMBOL_PRINT_NAME): Remove.
1208 (SYMBOL_SEARCH_NAME): Remove.
1209 * tracepoint.c (set_traceframe_context): Update.
1210 (validate_actionline): Update.
1211 (collection_list::collect_symbol): Update.
1212 (encode_actions_1): Update.
1213 (info_scope_command): Update.
1214 (print_one_static_tracepoint_marker): Update.
1215 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1216 * valops.c (address_of_variable): Update.
1217 (find_overload_match): Update.
1218 (find_oload_champ): Update.
1219
c9d95fa3
CB
12202019-11-22 Christian Biesinger <cbiesinger@google.com>
1221
1222 * ada-lang.c (ada_lookup_simple_minsym): Update.
1223 (ada_collect_symbol_completion_matches): Update.
1224 * ada-tasks.c (read_atcb): Update.
1225 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1226 (amd64_windows_skip_trampoline_code): Update.
1227 * arm-tdep.c (skip_prologue_function): Update.
1228 (arm_skip_stack_protector): Update.
1229 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1230 (arm_wince_skip_main_prologue): Update.
1231 * ax-gdb.c (gen_expr): Update.
1232 * block.c (call_site_for_pc): Update.
1233 * blockframe.c (find_pc_partial_function): Update.
1234 * breakpoint.c (set_breakpoint_location_function): Update.
1235 * btrace.c (ftrace_print_function_name): Update.
1236 (ftrace_function_switched): Update.
1237 * c-valprint.c (print_unpacked_pointer): Update.
1238 * coffread.c (coff_symfile_read): Update.
1239 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1240 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1241 * dwarf-index-write.c (write_psymbols): Update.
1242 * dwarf2loc.c (call_site_to_target_addr): Update.
1243 (func_verify_no_selftailcall): Update.
1244 (tailcall_dump): Update.
1245 (call_site_find_chain_1): Update.
1246 (dwarf_expr_reg_to_entry_parameter): Update.
1247 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1248 * eval.c (evaluate_funcall): Update.
1249 (evaluate_subexp_standard): Update.
1250 (evaluate_subexp_for_sizeof): Update.
1251 * expprint.c (print_subexp_standard): Update.
1252 (dump_subexp_body_standard): Update.
1253 * frame.c (get_prev_frame_always_1): Update.
1254 * frv-tdep.c (frv_skip_main_prologue): Update.
1255 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1256 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1257 (gnuv3_get_typename_from_type_info): Update.
1258 (gnuv3_skip_trampoline): Update.
1259 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1260 * i386-tdep.c (i386_skip_main_prologue): Update.
1261 (i386_pe_skip_trampoline_code): Update.
1262 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1263 * infcall.c (get_function_name): Update.
1264 * linespec.c (minsym_found): Update.
1265 * linux-fork.c (info_checkpoints_command): Update.
1266 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1267 (m32c_m16c_pointer_to_address): Update.
1268 * maint.c (maintenance_translate_address): Update.
1269 * minsyms.c (add_minsym_to_hash_table): Update.
1270 (add_minsym_to_demangled_hash_table): Update.
1271 (lookup_minimal_symbol_mangled): Update.
1272 (lookup_minimal_symbol_demangled): Update.
1273 (lookup_minimal_symbol_linkage): Update.
1274 (lookup_minimal_symbol_text): Update.
1275 (lookup_minimal_symbol_by_pc_name): Update.
1276 (minimal_symbol_is_less_than): Update.
1277 (compact_minimal_symbols): Update.
1278 (build_minimal_symbol_hash_tables): Update.
1279 (find_solib_trampoline_target): Update.
1280 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1281 (mips_skip_pic_trampoline_code): Update.
1282 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1283 * objc-lang.c (info_selectors_command): Update.
1284 (info_classes_command): Update.
1285 (find_methods): Update.
1286 (find_imps): Update.
1287 * p-valprint.c (pascal_val_print): Update.
1288 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1289 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1290 * printcmd.c (build_address_symbolic): Update.
1291 (info_symbol_command): Update.
1292 * psymtab.c (psymbol_name_matches): Update.
1293 (match_partial_symbol): Update.
1294 (lookup_partial_symbol): Update.
1295 (print_partial_symbols): Update.
1296 (sort_pst_symbols): Update.
1297 (maintenance_check_psymtabs): Update.
1298 * python/py-framefilter.c (py_print_frame): Update.
1299 * python/python.c (gdbpy_rbreak): Update.
1300 * record-btrace.c (btrace_get_bfun_name): Update.
1301 (btrace_call_history): Update.
1302 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1303 (rs6000_skip_trampoline_code): Update.
1304 * sol-thread.c (info_cb): Update.
1305 * stabsread.c (scan_file_globals): Update.
1306 * stack.c (find_frame_funname): Update.
1307 (info_frame_command_core): Update.
1308 * symmisc.c (dump_msymbols): Update.
1309 * symtab.c (symbol_natural_name): Rename to..,
1310 (general_symbol_info::natural_name): ...this.
1311 (symbol_demangled_name): Rename to...
1312 (general_symbol_info::demangled_name): ...this.
1313 (symbol_search_name): Rename to...
1314 (general_symbol_info::search_name): ...this.
1315 (symbol_matches_search_name): Update.
1316 (find_pc_sect_line): Update.
1317 (skip_prologue_sal): Update.
1318 (search_symbols): Update.
1319 (print_msymbol_info): Update.
1320 (rbreak_command): Update.
1321 (completion_list_add_msymbol): Update.
1322 (completion_list_objc_symbol): Update.
1323 (get_msymbol_address): Update.
1324 * symtab.h (struct general_symbol_info): Add member functions
1325 natural_name (), linkage_name (), print_name (), demangled_name (),
1326 and search_name ().
1327 (SYMBOL_NATURAL_NAME): Update.
1328 (symbol_natural_name): Move to a member function on general_symbol_info.
1329 (SYMBOL_DEMANGLED_NAME): Update.
1330 (symbol_demangled_name): Move to a member function on
1331 general_symbol_info.
1332 (SYMBOL_SEARCH_NAME): Update.
1333 (symbol_search_name): Move to a member function on general_symbol_info.
1334 (MSYMBOL_NATURAL_NAME): Remove.
1335 (MSYMBOL_LINKAGE_NAME): Remove.
1336 (MSYMBOL_PRINT_NAME): Remove.
1337 (MSYMBOL_DEMANGLED_NAME): Remove.
1338 (MSYMBOL_SEARCH_NAME): Remove.
1339 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1340
f8bab2d6
CB
13412019-11-22 Christian Biesinger <cbiesinger@google.com>
1342
1343 * symtab.c (create_demangled_names_hash): Use per_bfd->
1344 minimal_symbol_count for computing the initial size, if greater
1345 than our default size.
1346
85e7588d
TV
13472019-11-22 Tom de Vries <tdevries@suse.de>
1348
1349 * contrib/words.sh: Improve words extraction.
1350
f6180073
TV
13512019-11-22 Tom de Vries <tdevries@suse.de>
1352
1353 * contrib/words.sh: Combine sed invocations.
1354
f10ffa41
CB
13552019-11-21 Christian Biesinger <cbiesinger@google.com>
1356
1357 * Makefile.in: Update.
1358 * demangle.c: Rename to...
1359 * gdb-demangle.c: ..this.
1360 (is_cplus_marker): Change return type to bool.
1361 (_initialize_demangler): Rename to...
1362 (_initialize_gdb_demangle): ...this.
1363 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1364 * symtab.h (demangle): Remove declaration; instead include
1365 gdb-demangle.h.
1366
6ba18521
TT
13672019-11-21 Tom Tromey <tromey@adacore.com>
1368
1369 * gdbsupport/format.c (format_pieces): Parse %I64d.
1370 * unittests/format_pieces-selftests.c (test_windows_formats): New
1371 function.
1372 (run_tests): Call it.
1373
34877895
PJ
13742019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1375
1376 Byte reverse display of variables with DW_END_big, DW_END_little
1377 (DW_AT_endianity) dwarf attributes if different than the native
1378 byte order.
1379 * ada-lang.c (ada_value_binop):
1380 Use type_byte_order instead of gdbarch_byte_order.
1381 * ada-valprint.c (printstr):
1382 (ada_val_print_string):
1383 * ada-lang.c (value_pointer):
1384 (ada_value_binop):
1385 Use type_byte_order instead of gdbarch_byte_order.
1386 * c-lang.c (c_get_string):
1387 Use type_byte_order instead of gdbarch_byte_order.
1388 * c-valprint.c (c_val_print_array):
1389 Use type_byte_order instead of gdbarch_byte_order.
1390 * cp-valprint.c (cp_print_class_member):
1391 Use type_byte_order instead of gdbarch_byte_order.
1392 * dwarf2loc.c (rw_pieced_value):
1393 Use type_byte_order instead of gdbarch_byte_order.
1394 * dwarf2read.c (read_base_type): Handle DW_END_big,
1395 DW_END_little
1396 * f-lang.c (f_get_encoding):
1397 Use type_byte_order instead of gdbarch_byte_order.
1398 * findvar.c (default_read_var_value):
1399 Use type_byte_order instead of gdbarch_byte_order.
1400 * gdbtypes.c (check_types_equal):
1401 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1402 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1403 and TYPE_ENDIANITY_LITTLE if set.
1404 (type_byte_order): new function.
1405 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1406 (struct main_type) <flag_endianity_not_default>:
1407 New field.
1408 (type_byte_order): New function.
1409 * infcmd.c (default_print_one_register_info):
1410 Use type_byte_order instead of gdbarch_byte_order.
1411 * p-lang.c (pascal_printstr):
1412 Use type_byte_order instead of gdbarch_byte_order.
1413 * p-valprint.c (pascal_val_print):
1414 Use type_byte_order instead of gdbarch_byte_order.
1415 * printcmd.c (print_scalar_formatted):
1416 Use type_byte_order instead of gdbarch_byte_order.
1417 * solib-darwin.c (darwin_current_sos):
1418 Use type_byte_order instead of gdbarch_byte_order.
1419 * solib-svr4.c (solib_svr4_r_ldsomap):
1420 Use type_byte_order instead of gdbarch_byte_order.
1421 * stap-probe.c (stap_modify_semaphore):
1422 Use type_byte_order instead of gdbarch_byte_order.
1423 * target-float.c (target_float_same_format_p):
1424 Use type_byte_order instead of gdbarch_byte_order.
1425 * valarith.c (scalar_binop):
1426 (value_bit_index):
1427 Use type_byte_order instead of gdbarch_byte_order.
1428 * valops.c (value_cast):
1429 Use type_byte_order instead of gdbarch_byte_order.
1430 * valprint.c (generic_emit_char):
1431 (generic_printstr):
1432 (val_print_string):
1433 Use type_byte_order instead of gdbarch_byte_order.
1434 * value.c (unpack_long):
1435 (unpack_bits_as_long):
1436 (unpack_value_bitfield):
1437 (modify_field):
1438 (pack_long):
1439 (pack_unsigned_long):
1440 Use type_byte_order instead of gdbarch_byte_order.
1441 * findvar.c (unsigned_pointer_to_address):
1442 (signed_pointer_to_address):
1443 (unsigned_address_to_pointer):
1444 (address_to_signed_pointer):
1445 (default_read_var_value):
1446 (default_value_from_register):
1447 Use type_byte_order instead of gdbarch_byte_order.
1448 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1449 Use type_byte_order instead of gdbarch_byte_order.
1450 * riscv-tdep.c (riscv_print_one_register_info):
1451 Use type_byte_order instead of gdbarch_byte_order.
1452
87fb00ea
SM
14532019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1454
1455 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1456 (current_ui_gdb_stdin_ptr): Likewise.
1457 (current_ui_gdb_stderr_ptr): Likewise.
1458 (current_ui_gdb_stdlog_ptr): Likewise.
1459 (current_ui_current_uiout_ptr): Likewise.
1460 (gen_ret_current_ui_field_ptr): Remove.
1461
65d1cd5f
TV
14622019-11-21 Tom de Vries <tdevries@suse.de>
1463
1464 PR gdb/24956
1465 * cli/cli-script.c (execute_control_command): Only switch to
1466 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1467
9f6ad286
TT
14682019-11-19 Tom Tromey <tom@tromey.com>
1469
1470 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1471 Now static. Change type of "name".
1472 (tui_set_win_height_command): Don't copy "arg".
1473 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1474 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1475
435d3d88
AT
14762019-11-19 Ali Tamur <tamur@google.com>
1477
1478 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1479 "if (attr != nullptr)".
1480 (dwarf2_find_base_address): Likewise.
1481 (dwarf2_build_include_psymtabs): Likewise.
1482 (read_cutu_die_from_dwo): Likewise.
1483 (read_func_scope): Likewise.
1484 (read_call_site_scope): Likewise.
1485 (dwarf2_get_pc_bounds): Likewise.
1486 (dwarf2_record_block_ranges): Likewise.
1487 (dwarf2_add_field): Likewise.
1488 (dwarf2_add_member_fn): Likewise.
1489 (read_structure_type): Likewise.
1490 (read_enumeration_type): Likewise.
1491 (read_array_type): Likewise.
1492 (read_array_order): Likewise.
1493 (read_set_type): Likewise.
1494 (read_common_block): Likewise.
1495 (read_tag_reference_type): Likewise.
1496 (read_tag_string_type): Likewise.
1497 (read_subroutine_type): Likewise.
1498 (read_base_type): Likewise.
1499 (read_subrange_type): Likewise.
1500 (new_symbol): Likewise.
1501 (prepare_one_comp_unit): Likewise.
1502
c9739b6a
TT
15032019-11-19 Tom Tromey <tromey@adacore.com>
1504
1505 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1506 result in error when DebugActiveProcess fails.
1507
494409bb
SDJ
15082019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1509 Pedro Alves <palves@redhat.com>
1510
1511 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1512 * target.c (target_stack::push): Call 'unpush' if there's a
1513 target on top of the stack.
1514
2e953aca
PW
15152019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1516
1517 * python/py-block.c (blpy_dealloc): Call tp_free.
1518 (blpy_block_syms_dealloc): Likewise.
1519 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1520 * python/py-inferior.c (infpy_dealloc): Likewise.
1521 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1522 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1523 * python/py-symbol.c (sympy_dealloc): Likewise.
1524 * python/py-symtab.c (stpy_dealloc): Likewise.
1525 * python/py-type.c (typy_iterator_dealloc): Likewise.
1526
6edc43ec
CB
15272019-11-18 Christian Biesinger <cbiesinger@google.com>
1528
1529 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1530 constructor instead of using a class initializer.
1531
cd850b40
CB
15322019-11-15 Christian Biesinger <cbiesinger@google.com>
1533
1534 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1535 * configure: Regenerate.
1536 * configure.ac: Don't source common.host.
1537 * gdbsupport/common.host: Remove.
1538 * gdbsupport/mingw-strerror.c: Remove.
1539 * gdbsupport/posix-strerror.c: Rename to...
1540 * gdbsupport/safe-strerror.c: ...this.
1541
53fea9c7
CB
15422019-11-15 Christian Biesinger <cbiesinger@google.com>
1543
1544 * maint.c (scoped_command_stats::print_time): Use localtime_r
1545 instead of localtime (provided through gnulib if necessary).
1546 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1547 of ctime.
1548
f8e27d88
CB
15492019-11-15 Christian Biesinger <cbiesinger@google.com>
1550
1551 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1552 avoid compile errors.
1553
5abebf3c
CB
15542019-11-15 Christian Biesinger <cbiesinger@google.com>
1555
1556 * config.in: Regenerate.
1557 * configure: Regenerate.
1558 * gdbsupport/common.m4: No longer check for strerror_r.
1559 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1560 POSIX version of strerror_r, now that gnulib provides it if
1561 necessary.
1562
9a351667
CB
15632019-11-14 Christian Biesinger <cbiesinger@google.com>
1564
1565 * README (`configure' options): Update.
1566
55708e99
TT
15672019-11-14 Tom Tromey <tromey@adacore.com>
1568
1569 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1570 expected type for the RHS if the LHS is a convenience variable.
1571
4b09bb2e
SM
15722019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1573
1574 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1575 Provide explicit default and copy constructor.
1576
bd454f8b
PW
15772019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1578
1579 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1580 only call Py_INCREF (newbp) in the bppy_pending_object case.
1581
d1aa3cf0
TT
15822019-11-13 Tom Tromey <tromey@adacore.com>
1583
1584 PR build/25182:
1585 * psympriv.h (partial_symbol): Remove static assert.
1586 * symtab.h (general_symbol_info, symbol): Remove static assert.
1587
e06f3d6e
AB
15882019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1589
1590 * gdbsupport/format.c (format_pieces::format_pieces): Support
1591 printf 'z' size modifier.
1592 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1593 * printcmd.c (ui_printf): Handle size_t_arg.
1594 * ui-out.c (ui_out::vmessage): Likewise.
1595 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1596 function.
1597 (run_tests): Call test_format_int_sizes.
1598
468c0cbb
CB
15992019-11-12 Christian Biesinger <cbiesinger@google.com>
1600
1601 * ada-exp.y (write_ambiguous_var): Update.
1602 * buildsym.c (add_symbol_to_list): Update.
1603 * dwarf2read.c (read_variable): Update.
1604 (new_symbol): Update.
1605 * jit.c (finalize_symtab): Update.
1606 * language.c (language_alloc_type_symbol): Update.
1607 * symtab.c (fixup_symbol_section): Update.
1608 (initialize_objfile_symbol_1): Move code to...
1609 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1610 (allocate_symbol): Update.
1611 (allocate_template_symbol): Update.
1612 (get_symbol_address): Update.
1613 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1614 of having as a field, and add a constructor.
1615 (SYMBOL_VALUE): Update.
1616 (SYMBOL_VALUE_ADDRESS): Update.
1617 (SET_SYMBOL_VALUE_ADDRESS): Update.
1618 (SYMBOL_VALUE_BYTES): Update.
1619 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1620 (SYMBOL_BLOCK_VALUE): Update.
1621 (SYMBOL_VALUE_CHAIN): Update.
1622 (SYMBOL_LANGUAGE): Update.
1623 (SYMBOL_SECTION): Update.
1624 (SYMBOL_OBJ_SECTION): Update.
1625 (SYMBOL_SET_LANGUAGE): Update.
1626 (SYMBOL_SET_LINKAGE_NAME): Update.
1627 (SYMBOL_SET_NAMES): Update.
1628 (SYMBOL_NATURAL_NAME): Update.
1629 (SYMBOL_LINKAGE_NAME): Update.
1630 (SYMBOL_DEMANGLED_NAME): Update.
1631 (SYMBOL_SEARCH_NAME): Update.
1632 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1633 (struct symbol): Update.
1634 (struct template_symbol): Update.
1635 (struct rust_vtable_symbol): Update.
1636 * xcoffread.c (SYMBOL_DUP): Update.
1637
ed2c82c3
TT
16382019-11-12 Tom Tromey <tom@tromey.com>
1639
1640 * tui/tui-layout.c (show_layout): Set current_layout.
1641 (show_source_disasm_command, show_data)
1642 (show_source_or_disasm_and_command): Don't set current_layout.
1643
d9fcefd5
TT
16442019-11-12 Tom Tromey <tom@tromey.com>
1645
1646 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1647
45e42163
TT
16482019-11-12 Tom Tromey <tom@tromey.com>
1649
1650 * tui/tui-win.c (resize_message): New global.
1651 (show_tui_resize_message): New function.
1652 (tui_async_resize_screen): Print message if requested.
1653 (_initialize_tui_win): Add tui-resize-message setting.
1654 * NEWS: Add entry for new commands.
1655
c86d74cc
TT
16562019-11-11 Tom Tromey <tom@tromey.com>
1657
1658 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1659 functions.
1660
7b7b9424
CB
16612019-11-11 Christian Biesinger <cbiesinger@google.com>
1662
1663 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1664
086baaf1
AB
16652019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1668 function.
1669 * python/python-internal.h (gdbpy_lookup_static_symbols):
1670 Declare new function.
1671 * python/python.c (python_GdbMethods): Add
1672 gdb.lookup_static_symbols method.
1673 * NEWS: Mention gdb.lookup_static_symbols.
1674
09ff83af
AB
16752019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1676
1677 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1678 static block of current object file first. Also fix typo in
1679 header comment.
1680
eb2dd8df
AB
16812019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1682
1683 * stack.c (set_last_displayed_sal): Delete.
1684 (last_displayed_sal_valid): Delete.
1685 (last_displayed_pspace): Delete.
1686 (last_displayed_addr): Delete.
1687 (last_displayed_symtab): Delete.
1688 (last_displayed_line): Delete.
1689 (class last_displayed_symtab_info_type): New.
1690 (last_displayed_symtab_info): New static global variable.
1691 (print_frame_info): Call methods on last_displayed_symtab_info.
1692 (clear_last_displayed_sal): Update header comment, and make use of
1693 last_displayed_symtab_info.
1694 (last_displayed_sal_is_valid): Likewise.
1695 (get_last_displayed_pspace): Likewise.
1696 (get_last_displayed_addr): Likewise.
1697 (get_last_displayed_symtab): Likewise.
1698 (get_last_displayed_line): Likewise.
1699 (get_last_displayed_sal): Likewise.
1700 * stack.h (clear_last_displayed_sal): Update header comment.
1701 (last_displayed_sal_is_valid): Likewise.
1702 (get_last_displayed_pspace): Likewise.
1703 (get_last_displayed_addr): Likewise.
1704 (get_last_displayed_symtab): Likewise.
1705 (get_last_displayed_line): Likewise.
1706 (get_last_displayed_sal): Likewise.
1707
62137775
AB
17082019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1709
1710 * stack.c (frame_show_address): Convert return type to bool.
1711 * stack.h (frame_show_address): Likewise, and update header
1712 comment.
1713
cf57ad6d
AB
17142019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1715
1716 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1717 * unittests/vec-utils-selftests.c: New file.
1718 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1719
0b026263
TT
17202019-11-10 Tom Tromey <tom@tromey.com>
1721
1722 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1723 (tui_highlight_win): Likewise.
1724 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1725 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1726 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1727 Don't set can_highlight.
1728
b049ce2d
TT
17292019-11-10 Tom Tromey <tom@tromey.com>
1730
1731 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1732 Remove unused declaration.
1733
992a7040
TT
17342019-11-08 Tom Tromey <tromey@adacore.com>
1735
1736 * top.c (read_command_file): Update.
1737 (command_line_input): Make return type const.
1738 * python/py-gdb-readline.c: Update.
1739 * linespec.c (decode_line_2): Update.
1740 * defs.h (command_line_input): Make return type const.
1741 * cli/cli-script.c (read_next_line): Make return type const.
1742 * ada-lang.c (get_selections): Update.
1743
ca3a04f6
CB
17442019-11-06 Christian Biesinger <cbiesinger@google.com>
1745
1746 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1747 * mi/mi-main.c (output_cores): Likewise.
1748 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1749 (linux_xfer_osdata_modules): Likewise.
1750 * remote.c (register_remote_support_xml): Likewise.
1751 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1752 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1753
e0eac551
TT
17542019-11-06 Tom Tromey <tom@tromey.com>
1755
1756 * tui/tui-interp.c: Don't include readline.h.
1757 * tui/tui-hooks.c: Don't include readline.h.
1758 * symmisc.c: Include tilde.h, not readline.h.
1759 * symfile.c: Include tilde.h, not readline.h.
1760 * source.c: Include tilde.h, not readline.h.
1761 * solib.c: Include tilde.h, not readline.h.
1762 * psymtab.c: Include tilde.h, not readline.h.
1763 * exec.c: Include tilde.h, not readline.h.
1764 * corelow.c: Include tilde.h, not readline.h.
1765 * cli/cli-dump.c: Include tilde.h, not readline.h.
1766 * cli/cli-cmds.c: Don't include readline.h.
1767
825165c5
TT
17682019-11-05 Tom Tromey <tom@tromey.com>
1769
1770 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1771 (tui_disassemble): Set addr_size.
1772 (tui_disasm_window::set_contents): Use addr_size.
1773
91ae903f
TT
17742019-11-05 Tom Tromey <tom@tromey.com>
1775
1776 * rust-lang.c (rust_language_defn): Update.
1777 * python/py-value.c (valpy_string): Call c_get_string.
1778 * p-lang.c (pascal_language_defn): Update.
1779 * opencl-lang.c (opencl_language_defn): Update.
1780 * objc-lang.c (objc_language_defn): Update.
1781 * m2-lang.c (m2_language_defn): Update.
1782 * language.c (unknown_language_defn, auto_language_defn): Update.
1783 (default_get_string): Remove.
1784 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1785 * go-lang.c (go_language_defn): Update.
1786 * f-lang.c (f_language_defn): Update.
1787 * d-lang.c (d_language_defn): Update.
1788 * c-lang.c (c_language_defn, cplus_language_defn)
1789 (asm_language_defn, minimal_language_defn): Update.
1790 * ada-lang.c (ada_language_defn): Update.
1791 * language.h (struct language_defn) <la_get_string>: Remove.
1792 (LA_GET_STRING): Remove.
1793 (default_get_string): Don't declare.
1794
1df2f9ef
TT
17952019-11-05 Tom Tromey <tom@tromey.com>
1796
1797 * tui/tui-source.h (struct tui_source_window): Inline
1798 constructor. Remove destructor.
1799 <style_changed, m_observable>: Move to superclass.
1800 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1801 (struct tui_source_window_base): Move private members to end.
1802 <style_changed, m_observable>: Move from tui_source_window.
1803 * tui/tui-winsource.c (tui_copy_source_line): Move from
1804 tui-source.c. Rename from copy_source_line. Add special handling
1805 for negative line number.
1806 (tui_source_window_base::style_changed): Move from
1807 tui_source_window.
1808 (tui_source_window_base): Register observer.
1809 (~tui_source_window_base): New.
1810 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1811 rename.
1812 (tui_source_window::set_contents): Use tui_copy_source_line.
1813 (tui_source_window::tui_source_window): Move to tui-source.h.
1814 (tui_source_window::~tui_source_window): Remove.
1815 (tui_source_window::style_changed): Move to superclass.
1816 * tui/tui-disasm.c (tui_disassemble): Create string file with
1817 styling, when possible. Add "addr_size" parameter.
1818 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1819 Don't compute maximum size.
1820 (len_without_escapes): New function
1821
5d051055
TT
18222019-11-05 Tom Tromey <tom@tromey.com>
1823
1824 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1825 std::string.
1826 * tui/tui-winsource.c (tui_show_source_line): Update.
1827 * tui/tui-source.c (tui_source_window::set_contents): Update.
1828 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1829
ade7beea
CB
18302019-11-05 Christian Biesinger <cbiesinger@google.com>
1831
1832 * symtab.h (gdb_static_assert): Put && operator at the beginning
1833 of the line instead of the end.
1834
3573abe1
CB
18352019-11-04 Christian Biesinger <cbiesinger@google.com>
1836
1837 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1838 and sizeof (symbol).
1839 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1840
dae8b3eb
RO
18412019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1842
1843 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1844 * configure.host: Mark *-*-solaris2.10* obsolete.
1845 * configure.tgt: Mark Solaris < 11 obsolete.
1846 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1847 Update target triplet.
1848
5df96a4e
TT
18492019-11-01 Tom Tromey <tromey@adacore.com>
1850
1851 * utils.c (print_sys_errmsg): Simplify.
1852
b7481649
TT
18532019-11-01 Tom Tromey <tromey@adacore.com>
1854
1855 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1856
e48f6033
CB
18572019-11-01 Christian Biesinger <cbiesinger@google.com>
1858
1859 * configure: Regenerate.
1860 * configure.ac: Remove check for strerror_r.
1861 * gdbsupport/common.m4: Check for strerror_r.
1862
bd5766ec
LM
18632019-11-01 Luis Machado <luis.machado@linaro.org>
1864
1865 PR gdb/25124
1866
1867 * arm-tdep.c (arm_per_objfile): Rename to ...
1868 (arm_per_bfd): ... this.
1869 (arm_objfile_data_key): Rename to ...
1870 (arm_bfd_data_key): ... this.
1871 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1872 data.
1873 (arm_record_special_symbol): Likewise.
1874
e1709896
AB
18752019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1876
1877 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1878 end.
1879 * c-typeprint.c (c_print_typedef): Likewise.
1880 * f-typeprint.c (f_print_typedef): Likewise.
1881 * m2-typeprint.c (m2_print_typedef): Likewise.
1882 * p-typeprint.c (pascal_print_typedef): Likewise.
1883 * rust-lang.c (rust_print_typedef): Likewise.
1884 * symtab.c (print_symbol_info): Print a newline after calling
1885 typedef_print.
1886
165f8965
AB
18872019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1888
1889 * symtab.c (info_module_cmdlist): New variable.
1890 (info_module_command): New function.
1891 (search_module_symbols): New function.
1892 (info_module_subcommand): New function.
1893 (struct info_modules_var_func_options): New struct.
1894 (info_modules_var_func_options_defs): New variable.
1895 (make_info_modules_var_func_options_def_group): New function.
1896 (info_module_functions_command): New function.
1897 (info_module_variables_command): New function.
1898 (info_module_var_func_command_completer): New function.
1899 (_initialize_symtab): Register new 'info module functions' and
1900 'info module variables' commands.
1901 * symtab.h (typedef symbol_search_in_module): New typedef.
1902 (search_module_symbols): Declare new function.
1903 * NEWS: Mention new commands.
1904
59c35742
AB
19052019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1906
1907 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1908 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
1909 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
1910 MODULES_DOMAIN.
1911 (scan_partial_symbols): Only create partial module symbols for non
1912 declarations.
1913 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
1914 and MODULES_DOMAIN.
1915 * symtab.c (search_domain_name): Likewise.
1916 (search_symbols): Likewise.
1917 (print_symbol_info): Likewise.
1918 (symtab_symbol_info): Likewise.
1919 (info_modules_command): New function.
1920 (_initialize_symtab): Register 'info modules' command.
1921 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
1922 * NEWS: Mention new 'info modules' command.
1923
aed61d02
PW
19242019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1925
1926 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
1927 and $_gdb_maint_setting_str.
1928
9ad9b77d
PW
19292019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1930
1931 * cli/cli-cmds.c (setting_cmd, value_from_setting)
1932 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
1933 (str_value_from_setting, gdb_setting_str_internal_fn)
1934 (gdb_maint_setting_str_internal_fn): New functions.
1935 (_initialize_cli_cmds): Define the new convenience functions.
1936 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
1937 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
1938
8d6efaa2
CB
19392019-10-31 Christian Biesinger <cbiesinger@google.com>
1940
1941 * agent.c (set_can_use_agent): When the setting is turned on,
1942 look up agent symbols if we don't have them yet.
1943 (agent_new_objfile): Don't look up agent symbols when the agent
1944 setting is off.
1945
33cb1647
CB
19462019-10-31 Christian Biesinger <cbiesinger@google.com>
1947
1948 * config.in: Regenerate.
1949
b231e86a
CB
19502019-10-31 Christian Biesinger <cbiesinger@google.com>
1951
1952 * configure: Regenerate.
1953 * configure.ac: Check for strerror_r.
1954 * gdbsupport/common-utils.h (safe_strerror): Change return value
1955 to const char * and document that this function is now threadsafe.
1956 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
1957 thread_local and call strerror_r, if available.
1958 * utils.c (perror_string): Update.
1959 (print_sys_errmsg): Update.
1960
a2726d4f
LM
19612019-10-31 Luis Machado <luis.machado@linaro.org>
1962
1963 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
1964 objfile_key.
1965 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
1966 objfile to fetch per-bfd data.
1967 (arm_find_exidx_entry): Likewise.
1968
75cafaa6
CB
19692019-10-31 Christian Biesinger <cbiesinger@google.com>
1970
1971 * gdbsupport/agent.c (debug_agent): Change type to bool.
1972 (use_agent): Likewise.
1973 (all_agent_symbols_look_up): Likewise.
1974 (agent_loaded_p): Change return value to bool.
1975 (agent_look_up_symbols): Update.
1976 (agent_capability_check): Change return value to bool.
1977 * gdbsupport/agent.h (agent_loaded_p): Likewise.
1978 (debug_agent): Change type to bool.
1979 (use_agent): Likewise.
1980 (agent_capability_check): Change return value to bool.
1981
808590ec
CB
19822019-10-30 Christian Biesinger <cbiesinger@google.com>
1983
1984 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
1985 (build_minimal_symbol_hash_tables): Code to clear the table moved
1986 to clear_minimal_symbol_hash_tables.
1987 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
1988 when needed.
1989
f18ad8a1
SM
19902019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1991
1992 * infcmd.c: Remove includes.
1993 * infrun.c: Remove includes.
1994
de93309a
SM
19952019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1996
1997 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
1998 (grow_vect): Remove declaration.
1999 (ada_type_of_array): Remove declaration.
2000 (ada_update_initial_language): Remove declaration.
2001 (ada_fold_name): Remove declaration.
2002 (ada_fill_in_ada_prototype): Remove declaration.
2003 (user_select_syms): Remove declaration.
2004 (get_selections): Remove declaration.
2005 (ada_tag_type): Remove declaration.
2006 (ada_value_tag): Remove declaration.
2007 (ada_is_others_clause): Remove declaration.
2008 (ada_in_variant): Remove declaration.
2009 (ada_value_struct_elt): Remove declaration.
2010 (ada_attribute_name): Remove declaration.
2011 (ada_system_address_type): Remove declaration.
2012 * ada-lang.c (ada_watch_location_expression): Make static.
2013 (GROW_VECT): Move here from ada-lang.h.
2014 (grow_vect): Make static.
2015 (ada_update_initial_language): Make static.
2016 (ada_fold_name): Make static.
2017 (ada_type_of_array): Make static.
2018 (encoded_ordered_before): Move up.
2019 (sort_choices): Move up.
2020 (print_signatures): Move up.
2021 (ada_print_symbol_signature): Move up.
2022 (get_selections): Move up and make static.
2023 (user_select_syms): Move up and make static.
2024 (ada_value_struct_elt): Move up and make static.
2025 (ada_tag_type): Make static.
2026 (ada_value_tag): Make static.
2027 (ada_is_others_clause): Make static.
2028 (ada_in_variant): Make static.
2029 (ada_attribute_name): Make static.
2030
cdc46a9f
SM
20312019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2032
2033 * ada-lang.c: Remove includes.
2034 * ada-typeprint.c: Remove includes.
2035 * ada-valprint.c: Remove includes.
2036
90421c56
SM
20372019-10-29 Simon Marchi <simon.marchi@efficios.com>
2038
2039 * addrmap.c: Add static assertions of type size, moved from
2040 _initialize_addrmap.
2041 (_initialize_addrmap): Remove.
2042
31edb802
CB
20432019-10-29 Christian Biesinger <cbiesinger@google.com>
2044
2045 * coffread.c (record_minimal_symbol): Update.
2046 (process_coff_symbol): Update.
2047 * dbxread.c (read_dbx_symtab): Update.
2048 * dwarf2read.c (add_partial_symbol): Update.
2049 (fixup_go_packaging): Update.
2050 (load_partial_dies): Update.
2051 (new_symbol): Update.
2052 * elfread.c (record_minimal_symbol): Change signature to use
2053 gdb::string_view instead of name+len.
2054 (elf_symtab_read): Update.
2055 (elf_rel_plt_read): Update.
2056 * mdebugread.c (parse_partial_symbols): Update.
2057 (handle_psymbol_enumerators): Update.
2058 (new_symbol): Update.
2059 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2060 to use gdb::string_view instead of name+len.
2061 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2062 * psympriv.h (add_psymbol_to_list): Likewise.
2063 * psymtab.c (add_psymbol_to_bcache): Likewise.
2064 (add_psymbol_to_list): Likewise.
2065 * stabsread.c (define_symbol): Update.
2066 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2067 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2068 (symbol_set_names): Likewise.
2069 * xcoffread.c (scan_xcoff_symtab): Update.
2070
0c921b21
CB
20712019-10-29 Christian Biesinger <cbiesinger@google.com>
2072
2073 * symtab.h (symbol_set_names): Document that copy_name must be
2074 set to true for non-nullterminated strings.
2075 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2076 linkage_name if the entry was not found and we need to demangle.
2077
35e65c49
CB
20782019-10-29 Christian Biesinger <cbiesinger@google.com>
2079
2080 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2081 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2082 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2083 * gdbsupport/gdb_binary_search.h: New file.
2084
ed2a2229
CB
20852019-10-29 Christian Biesinger <cbiesinger@google.com>
2086
2087 * NEWS: Mention new --with-system-gdbinit-dir option.
2088 * config.in: Regenerate.
2089 * configure: Regenerate.
2090 * configure.ac: Add new option --with-system-gdbinit-dir.
2091 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2092 for a ".gdb" suffix.
2093 * main.c (get_init_files): Change system_gdbinit argument to
2094 a vector and return the files in SYSTEM_GDBINIT_DIR in
2095 addition to SYSTEM_GDBINIT.
2096 (captured_main_1): Update.
2097 (print_gdb_help): Update.
2098 * top.c (print_gdb_configuration): Also print the value of
2099 SYSTEM_GDBINIT_DIR.
2100
87f34879
CB
21012019-10-28 Christian Biesinger <cbiesinger@google.com>
2102
2103 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2104 that takes gdb::string_view arguments.
2105
30baf67b
TV
21062019-10-26 Tom de Vries <tdevries@suse.de>
2107
2108 * aarch64-linux-tdep.c: Fix typos in comments.
2109 * aarch64-tdep.c: Same.
2110 * ada-lang.c: Same.
2111 * amd64-nat.c: Same.
2112 * arc-tdep.c: Same.
2113 * arch/aarch64-insn.c: Same.
2114 * block.c: Same.
2115 * breakpoint.h: Same.
2116 * btrace.h: Same.
2117 * c-varobj.c: Same.
2118 * cli/cli-decode.c: Same.
2119 * cli/cli-script.c: Same.
2120 * cli/cli-utils.h: Same.
2121 * coff-pe-read.c: Same.
2122 * coffread.c: Same.
2123 * compile/compile-cplus-symbols.c: Same.
2124 * compile/compile-object-run.c: Same.
2125 * completer.c: Same.
2126 * corelow.c: Same.
2127 * cp-support.c: Same.
2128 * demangle.c: Same.
2129 * dwarf-index-write.c: Same.
2130 * dwarf2-frame.c: Same.
2131 * dwarf2-frame.h: Same.
2132 * eval.c: Same.
2133 * frame-base.h: Same.
2134 * frame.h: Same.
2135 * gdbcmd.h: Same.
2136 * gdbtypes.h: Same.
2137 * gnu-nat.c: Same.
2138 * guile/scm-objfile.c: Same.
2139 * i386-tdep.c: Same.
2140 * i386-tdep.h: Same.
2141 * infcall.c: Same.
2142 * infcall.h: Same.
2143 * linux-nat.c: Same.
2144 * m68k-tdep.c: Same.
2145 * macroexp.c: Same.
2146 * memattr.c: Same.
2147 * mi/mi-cmd-disas.c: Same.
2148 * mi/mi-getopt.h: Same.
2149 * mi/mi-main.c: Same.
2150 * minsyms.c: Same.
2151 * nat/aarch64-sve-linux-sigcontext.h: Same.
2152 * objfiles.h: Same.
2153 * ppc-linux-nat.c: Same.
2154 * ppc-linux-tdep.c: Same.
2155 * ppc-tdep.h: Same.
2156 * progspace.h: Same.
2157 * prologue-value.h: Same.
2158 * python/py-evtregistry.c: Same.
2159 * python/py-instruction.h: Same.
2160 * record-btrace.c: Same.
2161 * record-full.c: Same.
2162 * remote.c: Same.
2163 * rs6000-tdep.c: Same.
2164 * ser-tcp.c: Same.
2165 * sol-thread.c: Same.
2166 * sparc-sol2-tdep.c: Same.
2167 * sparc64-tdep.c: Same.
2168 * stabsread.c: Same.
2169 * symfile.c: Same.
2170 * symtab.h: Same.
2171 * target.c: Same.
2172 * tracepoint.c: Same.
2173 * tui/tui-data.h: Same.
2174 * tui/tui-io.c: Same.
2175 * tui/tui-win.c: Same.
2176 * tui/tui.c: Same.
2177 * unittests/rsp-low-selftests.c: Same.
2178 * user-regs.h: Same.
2179 * utils.c: Same.
2180 * utils.h: Same.
2181 * valarith.c: Same.
2182 * valops.c: Same.
2183 * valprint.c: Same.
2184 * valprint.h: Same.
2185 * value.c: Same.
2186 * value.h: Same.
2187 * varobj.c: Same.
2188 * x86-nat.h: Same.
2189 * xtensa-tdep.c: Same.
2190
1834d45f
AT
21912019-10-25 Ali Tamur <tamur@google.com>
2192
2193 * charset.c (find_charset_names): Reflect API change.
2194
5396ae17
CB
21952019-10-25 Christian Biesinger <cbiesinger@google.com>
2196
2197 * symtab.c (struct demangled_name_entry): Change demangled name
2198 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2199 part of the struct anymore.
2200 (symbol_set_names): No longer obstack allocate + copy the demangled
2201 name, just store the allocated name from bfd.
2202
93878f47
TT
22032019-10-25 Tom Tromey <tromey@adacore.com>
2204
2205 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2206 (bsearch_cie_cmp, add_cie): Remove.
2207 (find_cie): Reimplement.
2208 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2209 (dwarf2_build_frame_info): Update.
2210
7b71fc97
L
22112019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2212
2213 PR gdb/25126
2214 * symfile.c (reread_symbols): Call forget_cached_source_info to
2215 clear the stale source cache.
2216
cbb5a2ea
CB
22172019-10-24 Christian Biesinger <cbiesinger@google.com>
2218
2219 * configure: Regenerate.
2220 * configure.ac: Remove code that sets python_has_threads.
2221
71737c43
CB
22222019-10-24 Christian Biesinger <cbiesinger@google.com>
2223
2224 * config.in: Regenerate.
2225 * configure: Regenerate.
2226 * configure.ac: Remove the code that uses sed to get the python
2227 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2228
33d569b7
AB
22292019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2230
2231 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2232 error paths.
2233
f16f7b7c
TT
22342019-10-23 Tom Tromey <tom@tromey.com>
2235
2236 * arc-tdep.c: Remove ".." from include.
2237 * frv-tdep.c: Remove ".." from include.
2238 * lm32-tdep.c: Remove ".." from include.
2239 * microblaze-tdep.c: Remove ".." from include.
2240 * or1k-tdep.h: Remove ".." from include.
2241 * s12z-tdep.c: Remove ".." from include.
2242 * Makefile.in (OPCODES_CFLAGS): Add comment.
2243 (TOP_CFLAGS): New variable.
2244 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2245
6999161a
TT
22462019-10-23 Tom Tromey <tom@tromey.com>
2247
2248 * Makefile.in (READLINE_DIR): Update.
2249
12e7c35e
TBA
22502019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2251
2252 * infcall.c (call_function_by_hand_dummy): Fix the function
2253 comment. And extract out a code section into...
2254 (reserve_stack_space): ...this new function.
2255
37055cad
TBA
22562019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2257
2258 * infcall.c (value_arg_coerce): Remove an unused parameter.
2259 (call_function_by_hand_dummy): Update the call to
2260 'value_arg_coerce'.
2261
39bcc47c
TBA
22622019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2263
2264 * infcall.c (call_function_by_hand_dummy): Refactor.
2265
bd888c0f
TBA
22662019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2267
2268 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2269
c12d372d
TT
22702019-10-23 Tom Tromey <tom@tromey.com>
2271
2272 * configure: Rebuild.
2273 * configure.ac: Don't check for sigprocmask.
2274 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2275
4d0b984b
TT
22762019-10-23 Tom Tromey <tom@tromey.com>
2277
2278 * configure: Rebuild.
2279 * acinclude.m4: Use m4_include, not sinclude.
2280
7e785608
TV
22812019-10-23 Tom de Vries <tdevries@suse.de>
2282
2283 PR breakpoints/24687
2284 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2285
403772ef
CB
22862019-10-22 Christian Biesinger <cbiesinger@google.com>
2287
2288 * symtab.c (struct demangled_name_entry) <language>: Change from
2289 bitfield to regular variable.
2290
3a494279
CB
22912019-10-22 Christian Biesinger <cbiesinger@google.com>
2292
2293 * symtab.c (struct demangled_name_entry): Add a constructor.
2294 (free_demangled_name_entry): New function to call the destructor
2295 for demangled_name_entry.
2296 (create_demangled_names_hash): Pass free_demangled_name_entry to
2297 htab_create_alloc.
2298 (symbol_set_names): Call placement new for demangled_name_entry.
2299 * utils.c: No longer include xxhash.h here, now that fast_hash
2300 is inlined in the header.
2301 * utils.h: Instead, include it here.
2302
ccb1ba62
CB
23032019-10-22 Christian Biesinger <cbiesinger@google.com>
2304
2305 * Makefile.in: Link with libxxhash.
2306 * config.in: Regenerate.
2307 * configure: Regenerate.
2308 * configure.ac: Search for libxxhash.
2309 * utils.c (fast_hash): Use xxhash if present.
2310
1a6ff1a9
CB
23112019-10-22 Christian Biesinger <cbiesinger@google.com>
2312
2313 * utils.h (fast_hash): New function.
2314 * symtab.c (hash_demangled_name_entry): Call new function
2315 fast_hash.
2316
7bb43059
CB
23172019-10-22 Christian Biesinger <cbiesinger@google.com>
2318
2319 * symtab.c (struct demangled_name_entry): Change type of mangled
2320 to gdb::string_view. Also adds a constructor that takes the
2321 mangled name.
2322 (hash_demangled_name_entry): Update.
2323 (eq_demangled_name_entry): Update.
2324 (free_demangled_name_entry): New function to call the destructor
2325 now that this is not a POD anymore.
2326 (create_demangled_names_hash): Pass free_demangled_name_entry to
2327 htab_create_alloc.
2328 (symbol_set_names): Update.
2329
7ba99d21
AT
23302019-10-21 Ali Tamur <tamu@google.com>
2331
2332 * dwarf2read.c (dir_index): Change type.
2333 (file_name_index): Likewise.
2334 (line_header::include_dir_at): Change comment and implementation on
2335 whether it is DWARF 5.
2336 (line_header::is_valid_file_index): New function.
2337 (line_header::file_name_at): Change comment and implementation on
2338 whether it is DWARF 5.
2339 (line_header::file_names): Change to private field renamed as
2340 m_file_names and introduce a new accessor method.
2341 (line_header::file_names_size): New method.
2342 (line_header::include_dirs): Change to private field and rename as
2343 m_include_dirs.
2344 (dw2_get_file_names_reader): Define local var at a smaller scope and
2345 reflect API change.
2346 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2347 (process_structure_scope): Likewise.
2348 (line_header::add_include_dir): Change message and reflect renaming.
2349 (line_header::add_file_name): Likewise.
2350 (read_formatted_entries): Handle DW_FORM_data16.
2351 (dwarf_decode_line_header): Fix line header length calculation.
2352 (psymtab_include_file_name): Change comment and API.
2353 (lnp_state_machine::m_file): Update comment and reflect type change.
2354 (lnp_state_machine::record_line): Reflect type change.
2355 (dwarf_decode_lines): Reflect API change.
2356 (file_file_name): Likewise.
2357 (file_full_name): Likewise.
2358
45f47c3a
AB
23592019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2360
2361 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2362
e5f3c0e3
TT
23632019-10-21 Tom Tromey <tom@tromey.com>
2364
2365 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2366
a0a461e5
TT
23672019-10-21 Tom Tromey <tom@tromey.com>
2368
2369 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2370 NM_H. Use AC_CONFIG_LINKS.
2371 * configure: Rebuild.
2372 * Makefile.in (NM_H): New variable.
2373 (generated_files): Add NM_H. Remove gcore.
2374 (nm.h, stamp-nmh): New targets.
2375
54d83b8d
TT
23762019-10-20 Tom Tromey <tom@tromey.com>
2377
2378 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2379 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2380 obsolete comment.
2381 (put_objfile_before): Now static.
2382
23771117
SM
23832019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2384
2385 * gdbsupport/common-utils.h (startswith): Change return type to
2386 bool.
2387
39ef2f62
CB
23882019-10-19 Christian Biesinger <cbiesinger@google.com>
2389
2390 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2391 * breakpoint.c (bp_locations_compare): Rename to...
2392 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2393 (update_global_location_list): Use std::sort instead of qsort.
2394 * buildsym.c (compare_line_numbers): Rename to...
2395 (lte_is_less_than): ...this, and change to std::sort semantics.
2396 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2397 instead of qsort.
2398 * disasm.c (compare_lines): Rename to...
2399 (line_is_less_than): ...this, and change to std::sort semantics.
2400 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2401 of qsort.
2402 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2403 (fde_is_less_than): ...this, and change to std::sort semantics.
2404 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2405 * mdebugread.c (compare_blocks):
2406 (block_is_less_than): ...this, and change to std::sort semantics.
2407 (sort_blocks): Call std::sort instead of qsort.
2408 * objfiles.c (qsort_cmp): Rename to...
2409 (sort_cmp): ...this, and change to std::sort semantics.
2410 (update_section_map): Call std::sort instead of qsort.
2411 * remote.c (compare_pnums): Remove.
2412 (map_regcache_remote_table): Call std::sort instead of qsort.
2413 * utils.c (compare_positive_ints): Remove.
2414 * utils.h (compare_positive_ints): Remove.
2415 * xcoffread.c (compare_lte): Remove.
2416 (arrange_linetable): Call std::sort instead of qsort.
2417
f71433ee
SDJ
24182019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2419
2420 * symfile.c (init_entry_point_info): Fix typo.
2421 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2422
85102364
TV
24232019-10-18 Tom de Vries <tdevries@suse.de>
2424
2425 * aarch64-tdep.c: Fix typos in comments.
2426 * ada-lang.c: Same.
2427 * ada-tasks.c: Same.
2428 * alpha-tdep.c: Same.
2429 * alpha-tdep.h: Same.
2430 * amd64-nat.c: Same.
2431 * amd64-windows-tdep.c: Same.
2432 * arc-tdep.c: Same.
2433 * arc-tdep.h: Same.
2434 * arch-utils.c: Same.
2435 * arm-nbsd-tdep.c: Same.
2436 * arm-tdep.c: Same.
2437 * ax-gdb.c: Same.
2438 * blockframe.c: Same.
2439 * btrace.c: Same.
2440 * c-varobj.c: Same.
2441 * coff-pe-read.c: Same.
2442 * coffread.c: Same.
2443 * cris-tdep.c: Same.
2444 * darwin-nat.c: Same.
2445 * dbxread.c: Same.
2446 * dcache.c: Same.
2447 * disasm.c: Same.
2448 * dtrace-probe.c: Same.
2449 * dwarf-index-write.c: Same.
2450 * dwarf2-frame-tailcall.c: Same.
2451 * dwarf2-frame.c: Same.
2452 * dwarf2read.c: Same.
2453 * eval.c: Same.
2454 * exceptions.c: Same.
2455 * fbsd-tdep.c: Same.
2456 * findvar.c: Same.
2457 * frame.c: Same.
2458 * frv-tdep.c: Same.
2459 * gnu-v3-abi.c: Same.
2460 * go32-nat.c: Same.
2461 * h8300-tdep.c: Same.
2462 * hppa-tdep.c: Same.
2463 * i386-linux-tdep.c: Same.
2464 * i386-tdep.c: Same.
2465 * ia64-libunwind-tdep.c: Same.
2466 * ia64-tdep.c: Same.
2467 * infcmd.c: Same.
2468 * infrun.c: Same.
2469 * linespec.c: Same.
2470 * linux-nat.c: Same.
2471 * linux-thread-db.c: Same.
2472 * machoread.c: Same.
2473 * mdebugread.c: Same.
2474 * mep-tdep.c: Same.
2475 * mn10300-tdep.c: Same.
2476 * namespace.c: Same.
2477 * objfiles.c: Same.
2478 * opencl-lang.c: Same.
2479 * or1k-tdep.c: Same.
2480 * osabi.c: Same.
2481 * ppc-linux-nat.c: Same.
2482 * ppc-linux-tdep.c: Same.
2483 * ppc-sysv-tdep.c: Same.
2484 * printcmd.c: Same.
2485 * procfs.c: Same.
2486 * record-btrace.c: Same.
2487 * record-full.c: Same.
2488 * remote-fileio.c: Same.
2489 * remote.c: Same.
2490 * rs6000-tdep.c: Same.
2491 * s12z-tdep.c: Same.
2492 * score-tdep.c: Same.
2493 * ser-base.c: Same.
2494 * ser-go32.c: Same.
2495 * skip.c: Same.
2496 * sol-thread.c: Same.
2497 * solib-svr4.c: Same.
2498 * solib.c: Same.
2499 * source.c: Same.
2500 * sparc-nat.c: Same.
2501 * sparc-sol2-tdep.c: Same.
2502 * sparc-tdep.c: Same.
2503 * sparc64-tdep.c: Same.
2504 * stabsread.c: Same.
2505 * stack.c: Same.
2506 * symfile.c: Same.
2507 * symtab.c: Same.
2508 * target-descriptions.c: Same.
2509 * target-float.c: Same.
2510 * thread.c: Same.
2511 * utils.c: Same.
2512 * valops.c: Same.
2513 * valprint.c: Same.
2514 * value.c: Same.
2515 * varobj.c: Same.
2516 * windows-nat.c: Same.
2517 * xcoffread.c: Same.
2518 * xstormy16-tdep.c: Same.
2519 * xtensa-tdep.c: Same.
2520
c5adaa19
TT
25212019-10-17 Tom Tromey <tromey@adacore.com>
2522
2523 * configure: Rebuild.
2524 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2525 in AC_CONFIG_FILES invocation.
2526 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2527 new-style config.status invocation.
2528
405feb71
TV
25292019-10-17 Tom de Vries <tdevries@suse.de>
2530
2531 * arm-nbsd-nat.c: Fix typos in comments.
2532 * arm-tdep.c: Same.
2533 * darwin-nat-info.c: Same.
2534 * dwarf2read.c: Same.
2535 * elfread.c: Same.
2536 * event-top.c: Same.
2537 * findvar.c: Same.
2538 * gdbtypes.c: Same.
2539 * hppa-tdep.c: Same.
2540 * i386-tdep.c: Same.
2541 * jit.c: Same.
2542 * main.c: Same.
2543 * mdebugread.c: Same.
2544 * moxie-tdep.c: Same.
2545 * nto-procfs.c: Same.
2546 * osabi.c: Same.
2547 * ppc-linux-tdep.c: Same.
2548 * remote.c: Same.
2549 * riscv-tdep.c: Same.
2550 * s390-tdep.c: Same.
2551 * sh-tdep.c: Same.
2552 * sparc-linux-tdep.c: Same.
2553 * sparc-nat.c: Same.
2554 * stack.c: Same.
2555 * target-descriptions.c: Same.
2556 * top.c: Same.
2557 * varobj.c: Same.
2558
befcd486
TT
25592019-10-16 Tom Tromey <tom@tromey.com>
2560
2561 * objfiles.h (struct objfile) <original_name>: Now const.
2562
17bfe554
CB
25632019-10-16 Christian Biesinger <cbiesinger@google.com>
2564
2565 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2566 pass on to sigsetjmp's second argument.
2567 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2568
950b7495
KS
25692019-10-16 Keith Seitz <keiths@redhat.com>
2570
2571 PR gdb/23567
2572 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2573 sections whose size is greater than the file size.
2574
ff371ec9
JW
25752019-10-16 Jim Wilson <jimw@sifive.com>
2576
2577 * riscv-tdep.c (riscv_gcc_target_options): New.
2578 (riscv_gnu_triplet_regexp): New.
2579 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2580 set_gdbarch_gnu_triplet_regexp.
2581
fec4e896
CB
25822019-10-16 Christian Biesinger <cbiesinger@google.com>
2583
2584 * Makefile.in: Add xml-builtin.h.
2585 * features/feature_to_c.sh: Add an include for xml-builtin.h
2586 to ensure that the compiler checks that the types match.
2587 * xml-builtin.h: New file.
2588 * xml-support.c (fetch_xml_builtin): Add missing const.
2589 * xml-support.h: Remove declaration of xml_builtins.
2590
d10eccaa
TV
25912019-10-16 Tom de Vries <tdevries@suse.de>
2592
2593 PR tdep/25096
2594 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2595 (amd64_classify_aggregate): ... here.
2596 (amd64_classify_aggregate_field): Handled fiels of nested structs
2597 recursively.
2598
745ff14e
TV
25992019-10-16 Tom de Vries <tdevries@suse.de>
2600
2601 PR tdep/24104
2602 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2603 that handles 'theclass'.
2604
791b7405
AB
26052019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2606
2607 * linespec.c (decode_digits_ordinary): Update comment.
2608 * make-target-delegates: No longer need to handle VEC case.
2609 * memrange.c (normalize_mem_ranges): Update comment.
2610 * namespace.c (add_using_directive): Update comment.
2611 * objc-lang.c (uniquify_strings): Update comment.
2612 * ppc-linux-nat.c (struct thread_points): Update comment.
2613 * probe.h (find_probes_in_objfile): Update comment.
2614 * target.h (enum flash_preserve_mode): Update comment.
2615 * varobj.c (varobj_restrict_range): Update comment.
2616 * varobj.h (varobj_list_children): Update comment.
2617
0dc32745
AB
26182019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2619
2620 * Makefile.in: Remove references to vec.h and vec.c.
2621 * aarch64-tdep.c: No longer include vec.h.
2622 * ada-lang.c: Likewise.
2623 * ada-lang.h: Likewise.
2624 * arm-tdep.c: Likewise.
2625 * ax.h: Likewise.
2626 * breakpoint.h: Likewise.
2627 * charset.c: Likewise.
2628 * cp-support.h: Likewise.
2629 * dtrace-probe.c: Likewise.
2630 * dwarf2read.c: Likewise.
2631 * extension.h: Likewise.
2632 * gdb_bfd.c: Likewise.
2633 * gdbsupport/gdb_vecs.h: Likewise.
2634 * gdbsupport/vec.c: Remove.
2635 * gdbsupport/vec.h: Remove.
2636 * gdbthread.h: Likewise.
2637 * guile/scm-type.c: Likewise.
2638 * inline-frame.c: Likewise.
2639 * machoread.c: Likewise.
2640 * memattr.c: Likewise.
2641 * memrange.h: Likewise.
2642 * namespace.h: Likewise.
2643 * nat/linux-btrace.h: Likewise.
2644 * osdata.c: Likewise.
2645 * parser-defs.h: Likewise.
2646 * progspace.h: Likewise.
2647 * python/py-type.c: Likewise.
2648 * record-btrace.c: Likewise.
2649 * rust-exp.y: Likewise.
2650 * solib-target.c: Likewise.
2651 * stap-probe.c: Likewise.
2652 * target-descriptions.c: Likewise.
2653 * target-memory.c: Likewise.
2654 * target.h: Likewise.
2655 * varobj.c: Likewise.
2656 * varobj.h: Likewise.
2657 * xml-support.h: Likewise.
2658
ae640021
AB
26592019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2660
2661 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2662 Update for new std::vector based implementation.
2663 (process_psymtab_comp_unit_reader): Likewise.
2664 (scan_partial_symbols): Likewise.
2665 (recursively_compute_inclusions): Likewise.
2666 (compute_compunit_symtab_includes): Likewise.
2667 (process_imported_unit_die): Likewise.
2668 (queue_and_load_dwo_tu): Likewise.
2669 (follow_die_sig_1): Likewise.
2670 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2671 (typedef dwarf2_per_cu_ptr): Remove.
2672 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2673 function.
2674 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2675 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2676 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2677 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2678 std::vector.
2679
55dfc88f
TT
26802019-10-15 Tom Tromey <tromey@adacore.com>
2681
2682 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2683 TID.
2684
96b49c5e
TT
26852019-10-15 Tom Tromey <tromey@adacore.com>
2686
2687 * windows-nat.c (windows_nat_target::fetch_registers)
2688 (windows_nat_target::store_registers): Rename "pid" to "tid".
2689
953cff56
TT
26902019-10-15 Tom Tromey <tromey@adacore.com>
2691
2692 * gdbarch.h, gdbarch.c: Rebuild.
2693 * gdbarch.sh (gcc_target_options): Change return type to
2694 std::string.
2695 * compile/compile.c (get_args): Update.
2696 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2697 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2698 std::string.
2699 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2700 std::string.
2701 * arch-utils.c (default_gcc_target_options): Return std::string.
2702 * arch-utils.h (default_gcc_target_options): Return std::string.
2703 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2704
81e6b8eb
CB
27052019-10-15 Christian Biesinger <cbiesinger@google.com>
2706
2707 * breakpoint.c (breakpoint_chain): Make static.
2708 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2709 of accessing breakpoint_chain.
2710
95da600f
CB
27112019-10-15 Christian Biesinger <cbiesinger@google.com>
2712
2713 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2714 to a gdb::function_view and return value to bool.
2715 * breakpoint.h (iterate_over_breakpoints): Likewise.
2716 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2717 (pop_dummy_frame): Update.
2718 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2719 (gdbscm_breakpoints): Update.
2720 * python/py-breakpoint.c (build_bp_list): Update.
2721 (gdbpy_breakpoints): Update.
2722 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2723 Update.
2724 (bpfinishpy_handle_stop): Update.
2725 (bpfinishpy_handle_exit): Update.
2726 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2727 (svr4_update_solib_event_breakpoints): Update.
2728
ba18312d
AA
27292019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2730
2731 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2732 when unwrapping single-field structs.
2733
6acc1a0b
SM
27342019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2735
2736 * dwarf2read.c: Remove includes.
2737
284782de
SM
27382019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2739
2740 * ui-out.c (ui_out::call_do_message): Silence
2741 -Wformat-nonliteral warning.
2742
073bbbb0
SM
27432019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2744
2745 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2746 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2747 include: readline/tilde.h.
2748
7b9a15e1
CB
27492019-10-12 Christian Biesinger <cbiesinger@google.com>
2750
2751 * remote.c (remote_target::get_trace_status): Remove declaration of
2752 trace_regblock_size.
2753
cc8dee1f
CB
27542019-10-12 Christian Biesinger <cbiesinger@google.com>
2755
2756 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2757 (show_user): Remove declaration of cmdlist.
2758 * cli/cli-cmds.h (max_user_call_depth): Declare.
2759 * cli/cli-script.c (execute_user_command): Remove declaration
2760 of max_user_call_depth.
2761
a83d4ef6
JW
27622019-10-11 Jim Wilson <jimw@sifive.com>
2763
5f93c5a6
JW
2764 * gdbsupport/print-utils.h (pulongest): Fix comment.
2765 (plongest): Likewise.
2766 (phex): Add missing comment, mention leading zeros.
2767 (phex_nz): Add mention of no leading zeros to comment.
2768
a83d4ef6
JW
2769 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2770 plongest instead of unsigned long long cast.
2771
26344e0c
CB
27722019-10-10 Christian Biesinger <cbiesinger@google.com>
2773
2774 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2775 for external_editor_command and gdbtk_test.
2776
c2c440a9
CB
27772019-10-10 Christian Biesinger <cbiesinger@google.com>
2778
2779 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2780 * varobj.c (varobjdebug): Move comment to...
2781 * varobj.h (varobjdebug): ...here, and declare.
2782
a31bff9d
TT
27832019-10-09 Tom Tromey <tom@tromey.com>
2784
2785 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2786 erase_data_content.
2787
7523da63
TT
27882019-10-09 Tom Tromey <tom@tromey.com>
2789
2790 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2791 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2792 * tui/tui-command.c (tui_cmd_window::resize)
2793 (tui_refresh_cmd_win): Update.
2794 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2795 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2796 * tui/tui-data.c (~tui_gen_win_info): Remove.
2797 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2798 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2799 (tui_redisplay_readline, tui_mld_flush)
2800 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2801 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2802 (tui_data_window::erase_data_content)
2803 (tui_data_item_window::rerender)
2804 (tui_data_item_window::refresh_window): Update.
2805 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2806 (box_win, tui_gen_win_info::make_window)
2807 (tui_gen_win_info::make_visible): Update.
2808 (tui_delete_win): Remove.
2809 * tui/tui-winsource.c
2810 (tui_source_window_base::do_erase_source_content): Update.
2811 (tui_show_source_line, tui_source_window_base::update_tab_width)
2812 (tui_source_window_base::update_exec_info): Update.
2813 * tui/tui-data.h (struct curses_deleter): New.
2814 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2815 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2816
a7798e7f
TT
28172019-10-09 Tom Tromey <tom@tromey.com>
2818
2819 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2820
5c45899e
TT
28212019-10-09 Tom Tromey <tom@tromey.com>
2822
2823 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2824 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2825
6d7fd9aa
TT
28262019-10-09 Tom Tromey <tom@tromey.com>
2827
2828 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2829 window height directly.
2830 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2831 declare.
2832 * tui/tui-layout.c (tui_default_win_height): Remove.
2833 (tui_default_win_viewport_height): Remove.
2834
d2dd1084
TT
28352019-10-09 Tom Tromey <tom@tromey.com>
2836
2837 * tui/tui.h: Remove comments.
2838
cff32449
TV
28392019-10-09 Tom de Vries <tdevries@suse.de>
2840
2841 * python/lib/gdb/printer/bound_registers.py: Use
2842 '^builtin_type_bound128' as regexp argument for
2843 add_builtin_pretty_printer.
2844
6a25e8a2
CB
28452019-10-09 Christian Biesinger <cbiesinger@google.com>
2846
2847 * guile/guile.c (guile_extension_script_ops): Remove forward
2848 declaration and mark as static.
2849 (guile_script_ops): Likewise.
2850 (extension_language_guile): Move further down in the file so
2851 it can reference the definitions for guile_{extension_,}script_ops.
2852
6d9d6da4
AA
28532019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2854
2855 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2856 except SORTL, DFLTCC, and KDSA.
2857
3abea05d
TT
28582019-10-08 Tom Tromey <tromey@adacore.com>
2859
2860 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2861 (struct safe_symbol_file_add_args): Remove.
2862
dde996e2
TT
28632019-10-08 Tom Tromey <tromey@adacore.com>
2864
2865 * windows-nat.c: Don't include buildsym-legacy.h.
2866
cd6fdaa1
TT
28672019-10-08 Tom Tromey <tromey@adacore.com>
2868
2869 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2870
79bb1944
CB
28712019-10-08 Christian Biesinger <cbiesinger@google.com>
2872
2873 * gdbtypes.c (overload_debug): Move comment to header.
2874 * gdbtypes.h (overload_debug): Declare.
2875 * valops.c: Remove declaration of overload_debug, instead
2876 include gdbtypes.h.
2877
34916edc
CB
28782019-10-08 Christian Biesinger <cbiesinger@google.com>
2879
2880 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2881 through _().
2882 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2883 move comment...
2884 * language.h (lang_frame_mismatch_warn): ... here. Also add
2885 declaration.
2886 * top.c (lang_frame_mismatch_warn): Remove declaration.
2887 (check_frame_language_change): Pass lang_frame_mismatch_warn
2888 through _().
2889
bad5c026
CB
28902019-10-07 Christian Biesinger <cbiesinger@google.com>
2891
2892 * c-lang.h (vtbl_ptr_name): Declare.
2893 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2894 it from the header.
2895 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2896
51f1fdc3
CB
28972019-10-07 Christian Biesinger <cbiesinger@google.com>
2898
2899 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2900 gdb_static_assert.
2901
30d1f018
WP
29022019-10-07 Weimin Pan <weimin.pan@oracle.com>
2903
606813d5
WP
2904 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2905 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2906 * ctfread.c: New file.
2907 * ctfread.h: New file.
2908 * elfread.c: Include ctfread.h.
2909 (struct elfinfo text_p): New member ctfsect.
2910 (elf_locate_sections): Mark CTF section.
2911 (elf_symfile_read): Call elfctf_build_psymtabs.
2912 * Makefile.in (LIBCTF): Add.
2913 (CLIBS): Use it.
2914 (CDEPS): Likewise.
2915 (DIST): Add ctfread.c.
606813d5
WP
2916
29172019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 * ctfread.c (struct nextfield): Renamed to ...
2920 (struct ctf_nextfield): ... this.
2921 (struct field_info): Renamed to ...
2922 (strut ctf_field_info): ... this.
2923 (attach_fields_to_type): Update for renamed structures.
2924 (ctf_add_member_cb): Likewise.
2925 (ctf_add_enum_member_cb): Likewise.
2926 (process_struct_members): Likewise.
2927 (process_enum_type): Likewise.
30d1f018 2928
518fe38c
WP
29292019-10-07 Weimin Pan <weimin.pan@oracle.com>
2930
2931 * tracectf.h: Rename, was ctf.h.
2932 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
2933 * tracefile.c: Likewise.
2934 * tracepoint.c: Remove unused include ctf.h.
2935 * mi/mi-main.c: Likewise.
2936 * Makefile.in Replace ctf.c with tracectf.c.
2937
225f296a
JB
29382019-10-06 Joel Brobecker <brobecker@adacore.com>
2939
2940 * version.in: Change version number to "9.0.50.DATE-git".
2941
77c2dba3
TT
29422019-10-03 Tom Tromey <tom@tromey.com>
2943
2944 PR rust/24976:
2945 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
2946
179aed7f
AB
29472019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2948
2949 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
2950 cp_search_name_hash.
2951 * NEWS: Add entry about nested function support.
2952
0a4b0913
AB
29532019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
2954 Andrew Burgess <andrew.burgess@embecosm.com>
2955
2956 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
2957 for nested static variables when searchin VAR_DOMAIN.
2958 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
2959 global scope, update comment.
2960 (add_partial_subprogram): Call add_partial_subprogram recursively
2961 for nested subroutines when processinng Fortran.
2962 (load_partial_dies): Process the child entities of a subprogram
2963 when processing Fortran.
2964 (partial_die_parent_scope): Handle building scope
2965 for Fortran nested functions.
2966 (process_die): Record that nested functions have a scope.
2967 (new_symbol): Always record Fortran subprograms on the global
2968 symbol list.
2969 (determine_prefix): How to build the prefix for Fortran
2970 subprograms.
2971
d8c06f22
AB
29722019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2973
2974 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
2975 have just sent the thread a SIGSTOP and are waiting for it to
2976 arrive.
2977
a8b3b8e9
AB
29782019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
2979
2980 * btrace.c (btrace_add_pc): Remove whitespace before the template
2981 parameter in 'std::vector <...>'.
2982 (parse_xml_btrace_block): Likewise.
2983 (btrace_maint_decode_pt): Likewise.
2984 (btrace_maint_update_packets): Likewise.
2985 (btrace_maint_print_packets): Likewise.
2986 * btrace.h (struct btrace_maint_info): Likewise.
2987 * dwarf2read.c (struct type_unit_group): Likewise.
2988 (build_type_psymtabs_reader): Likewise.
2989 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
2990 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
2991 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
2992
4d825eab
TV
29932019-10-03 Tom de Vries <tdevries@suse.de>
2994
2995 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
2996 the first line of the help text for set/show style metadata.
2997
80fd2826
TT
29982019-10-02 Tom Tromey <tromey@adacore.com>
2999
3000 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3001 * gdbsupport/common-inferior.c: New file.
3002 * infcmd.c (startup_with_shell): Don't define.
3003 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3004 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3005 * inferior.h (startup_with_shell): Don't declare.
3006
70054538
CB
30072019-10-02 Christian Biesinger <cbiesinger@google.com>
3008
3009 * gdbsupport/gdb_assert.h: Include errors.h.
3010 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3011
37f6a7f4
TT
30122019-10-02 Tom Tromey <tromey@adacore.com>
3013
3014 * NEWS: Add $_ada_exception entry.
3015 * ada-lang.c (struct ada_catchpoint): Add constructor.
3016 <m_kind>: New member.
3017 (allocate_location_exception, re_set_exception): Remove
3018 "ex" parameter.
3019 (should_stop_exception): Compute $_ada_exception.
3020 (check_status_exception, print_it_exception)
3021 (print_one_exception, print_mention_exception): Remove
3022 "ex" parameter.
3023 (allocate_location_catch_exception, re_set_catch_exception)
3024 (check_status_exception, print_it_catch_exception)
3025 (print_one_catch_exception, print_mention_catch_exception)
3026 (print_recreate_catch_exception)
3027 (allocate_location_catch_exception_unhandled)
3028 (re_set_catch_exception_unhandled)
3029 (check_status_exception, print_it_catch_exception_unhandled)
3030 (print_one_catch_exception_unhandled)
3031 (print_mention_catch_exception_unhandled)
3032 (print_recreate_catch_exception_unhandled)
3033 (allocate_location_catch_assert, re_set_catch_assert)
3034 (check_status_assert, print_it_catch_assert)
3035 (print_one_catch_assert, print_mention_catch_assert)
3036 (print_recreate_catch_assert)
3037 (allocate_location_catch_handlers, re_set_catch_handlers)
3038 (check_status_handlers, print_it_catch_handlers)
3039 (print_one_catch_handlers, print_mention_catch_handlers)
3040 (print_recreate_catch_handlers): Remove.
3041 (create_ada_exception_catchpoint): Update.
3042 (initialize_ada_catchpoint_ops): Update.
3043
fccf9de1
TT
30442019-10-02 Tom Tromey <tromey@adacore.com>
3045
3046 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3047 (create_excep_cond_exprs): Simplify exception string computation.
3048 (ada_exception_catchpoint_cond_string): Likewise.
3049
4b610737
TT
30502019-10-02 Tom Tromey <tromey@adacore.com>
3051
3052 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3053 * ada-lang.c (lesseq_defined_than): Handle
3054 LOC_STATIC.
3055 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3056 parameter.
3057 (dwarf2_has_info): Likewise.
3058 (new_symbol): Set maybe_copied on symbol when
3059 appropriate.
3060 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3061 parameter.
3062 <can_copy>: New member.
3063 * elfread.c (record_minimal_symbol): Set maybe_copied
3064 on symbol when appropriate.
3065 (elf_symfile_read): Update call to dwarf2_has_info.
3066 * minsyms.c (lookup_minimal_symbol_linkage): New
3067 function.
3068 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3069 * symtab.c (get_symbol_address, get_msymbol_address):
3070 New functions.
3071 * symtab.h (get_symbol_address, get_msymbol_address):
3072 Declare.
3073 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3074 maybe_copied.
3075 (struct symbol, struct minimal_symbol) <maybe_copied>:
3076 New member.
3077
1dd58850
TT
30782019-10-02 Tom Tromey <tromey@adacore.com>
3079
3080 * source.c (struct current_source_location): New.
3081 (current_source_key): New global.
3082 (current_source_symtab, current_source_line)
3083 (current_source_pspace): Remove.
3084 (get_source_location): New function.
3085 (get_current_source_symtab_and_line)
3086 (set_default_source_symtab_and_line)
3087 (set_current_source_symtab_and_line)
3088 (clear_current_source_symtab_and_line, select_source_symtab)
3089 (info_source_command, print_source_lines_base)
3090 (info_line_command, search_command_helper, _initialize_source):
3091 Update.
3092
5c281dbb
TT
30932019-10-02 Tom Tromey <tromey@adacore.com>
3094
3095 * source.c (select_source_symtab): Don't call
3096 decode_line_with_current_source.
3097
d3d32391
AB
30982019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3099
3100 * symtab.c (lookup_global_symbol): Search global block.
3101
38583298
TT
31022019-10-02 Tom Tromey <tromey@adacore.com>
3103
3104 * coffread.c (process_coff_symbol): Update.
3105 * dwarf2read.c (var_decode_location, new_symbol): Update.
3106 * mdebugread.c (parse_symbol): Update.
3107 * objfiles.c (relocate_one_symbol): Update.
3108 * stabsread.c (define_symbol, fix_common_block)
3109 (scan_file_globals): Update.
3110 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3111 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3112 * xcoffread.c (process_xcoff_symbol): Update.
3113
9344c18f
AA
31142019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3115
3116 * MAINTAINERS: Update my email address.
3117
df07e2c7
AB
31182019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3119
3120 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3121 std::vector.
3122 (build_type_psymtabs_reader): Update for std::vector.
3123 (build_type_psymtab_dependencies): Likewise.
3124 * dwarf2read.h: Remove use of DEF_VEC_P.
3125 (typedef sig_type_ptr): Delete.
3126
554ac434
AB
31272019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3128
3129 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3130 to std::vector.
3131 (btrace_maint_decode_pt): Likewise, and move allocation of the
3132 vector outside of the loop.
3133 (btrace_maint_update_packets): Update to handle change from VEC to
3134 std::vector.
3135 (btrace_maint_print_packets): Likewise.
3136 (maint_info_btrace_cmd): Likewise.
3137 * btrace.h: Remove use of DEF_VEC_O.
3138 (typedef btrace_pt_packet_s): Delete.
3139 (struct btrace_maint_info) <packets>: Change fromm VEC to
3140 std::vector.
3141 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3142
46f29a9a
AB
31432019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3144
3145 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3146 make accesses into the vector constant references.
3147 (btrace_add_pc): Update for std::vector.
3148 (btrace_stitch_bts): Likewise.
3149 (parse_xml_btrace_block): Likewise.
3150 (btrace_maint_update_packets): Likewise.
3151 (btrace_maint_print_packets): Likewise.
3152 (maint_info_btrace_cmd): Likewise.
3153 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3154 std::vector.
3155 (btrace_data::empty): Likewise.
3156 (btrace_data_append): Likewise.
3157 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3158 (typedef btrace_block_s): Delete.
3159 (struct btrace_block): Add constructor.
3160 (struct btrace_data_bts) <blocks>: Change to std::vector.
3161 * nat/linux-btrace.c (perf_event_read_bts): Update for
3162 std::vector.
3163 (linux_read_bts): Likewise.
3164
d770d56f
TT
31652019-10-01 Tom Tromey <tom@tromey.com>
3166
3167 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3168
9d636d67
TT
31692019-10-01 Tom Tromey <tom@tromey.com>
3170
3171 * stack.c (print_frame, info_frame_command_core): Use
3172 styled_string.
3173 * linux-thread-db.c (try_thread_db_load_1)
3174 (try_thread_db_load_from_pdir_1): Use styled_string.
3175 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3176 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3177 (maybe_print_unsupported_script_warning)
3178 (maybe_print_script_not_found_warning): Use styled_string.
3179 * ada-lang.c (user_select_syms): Use styled_string.
3180
7f6aba03
TT
31812019-10-01 Tom Tromey <tom@tromey.com>
3182
3183 * p-lang.c (pascal_printstr): Use metadata style.
3184 * value.c (show_convenience): Use metadata style.
3185 * valprint.c (valprint_check_validity, val_print_optimized_out)
3186 (val_print_not_saved, val_print_unavailable)
3187 (val_print_invalid_address, generic_val_print, val_print)
3188 (value_check_printable, val_print_array_elements): Use metadata
3189 style.
3190 * ui-out.h (class ui_out) <field_fmt>: New overload.
3191 <do_field_fmt>: Add style parameter.
3192 * ui-out.c (ui_out::field_fmt): New overload.
3193 * typeprint.c (type_print_unknown_return_type)
3194 (val_print_not_allocated, val_print_not_associated): Use metadata
3195 style.
3196 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3197 parameter.
3198 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3199 * tracepoint.c (tvariables_info_1): Use metadata style.
3200 * stack.c (print_frame_arg, print_frame_info, print_frame)
3201 (info_frame_command_core): Use metadata style.
3202 * skip.c (info_skip_command): Use metadata style.
3203 * rust-lang.c (rust_print_enum): Use metadata style.
3204 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3205 metadata style.
3206 * python/py-framefilter.c (py_print_single_arg): Use metadata
3207 style.
3208 * printcmd.c (do_one_display, print_variable_and_value): Use
3209 metadata style.
3210 * p-valprint.c (pascal_val_print)
3211 (pascal_object_print_value_fields): Use metadata style.
3212 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3213 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3214 parameter.
3215 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3216 * m2-valprint.c (m2_print_long_set): Use metadata style.
3217 * m2-typeprint.c (m2_print_type): Use metadata style.
3218 * infcmd.c (print_return_value_1): Use metadata style.
3219 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3220 * f-valprint.c (info_common_command_for_block): Use metadata
3221 style.
3222 * f-typeprint.c (f_type_print_base): Use metadata style.
3223 * expprint.c (print_subexp_standard): Use metadata style.
3224 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3225 * cli/cli-style.h (class cli_style_option): Add constructor.
3226 (metadata_style): Declare.
3227 * cli/cli-style.c (metadata_style): New global.
3228 (_initialize_cli_style): Register metadata style.
3229 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3230 parameter.
3231 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3232 * c-typeprint.c (c_type_print_base_struct_union)
3233 (c_type_print_base_1): Use metadata style.
3234 * breakpoint.c (watchpoint_value_print)
3235 (print_one_breakpoint_location): Use metadata style.
3236 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3237 style.
3238 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3239 style.
3240 * ada-valprint.c (val_print_packed_array_elements, printstr)
3241 (print_field_values, ada_val_print_ref, ada_val_print): Use
3242 metadata style.
3243 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3244 style.
3245 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3246 style.
3247 * ada-lang.c (user_select_syms): Use metadata style.
3248
14309bb6
TT
32492019-10-01 Tom Tromey <tom@tromey.com>
3250
3251 * cli/cli-cmds.c (pwd_command): Style output.
3252
6a831f06
PA
32532019-10-01 Pedro Alves <palves@redhat.com>
3254 Tom Tromey <tom@tromey.com>
3255
3256 * symtab.c (print_symbol_info): Use %ps.
3257 (print_msymbol_info): Use %ps.
3258 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3259 * printcmd.c (print_variable_and_value): Use %ps.
3260 * macrocmd.c (show_pp_source_pos): Use %ps.
3261 * infrun.c (print_exited_reason): Use ui_out::message.
3262 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3263 (describe_other_breakpoints): Use ui_out::message and new
3264 formats.
3265 (say_where): Use new formats.
3266 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3267 and new formats.
3268
2a3c1174
PA
32692019-10-01 Pedro Alves <palves@redhat.com>
3270 Tom Tromey <tom@tromey.com>
3271
3272 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3273 (test_gdb_formats): New function.
3274 (run_tests): Call it.
3275 (test_format_specifier): Update.
3276 * utils.h (fputs_filtered): Update comment.
3277 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3278 (fputs_styled_unfiltered): Declare.
3279 * utils.c (fputs_styled_unfiltered): New function.
3280 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3281 (vfprintf_filtered): Update.
3282 (vfprintf_unfiltered, vprintf_filtered): Update.
3283 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3284 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3285 disallow_ui_out_field>: New constants.
3286 (enum class field_kind): New.
3287 (struct base_field_s, struct signed_field_s): New.
3288 (signed_field): New function.
3289 (struct string_field_s): New.
3290 (string_field): New function.
3291 (struct styled_string_s): New.
3292 (styled_string): New function.
3293 (class ui_out) <message>: Add comment.
3294 <vmessage, call_do_message>: New methods.
3295 <do_message>: Add style parameter.
3296 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3297 methods.
3298 (ui_out::message): Rewrite.
3299 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3300 parameter.
3301 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3302 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3303 gdb_extensions parameter.
3304 (class format_piece): Add parameter to constructor.
3305 (n_int_args): New field.
3306 * gdbsupport/format.c (format_pieces::format_pieces): Add
3307 gdb_extensions parameter. Handle '*'.
3308 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3309 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3310 vfprintf_styled_no_gdbfmt.
3311 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3312 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3313 unfiltered output.
3314 * ui-style.h (struct ui_file_style) <ptr>: New method.
3315
0dfe5bfb
TT
33162019-10-01 Tom Tromey <tom@tromey.com>
3317
3318 * unittests/format_pieces-selftests.c: Update. Add final format.
3319 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3320 empty literal pieces.
3321
e43b10e1
TT
33222019-10-01 Tom Tromey <tom@tromey.com>
3323
3324 * ui-out.h (enum class ui_out_style_kind): Remove.
3325 (class ui_out) <field_string, field_stsream, do_field_string>:
3326 Change type of "style".
3327 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3328 (ui_out::field_string): Update.
3329 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3330 of "style".
3331 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3332 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3333 * stack.c (print_frame_arg, print_frame_info, print_frame):
3334 Update.
3335 * source.c (print_source_lines_base): Update.
3336 * solib.c (info_sharedlibrary_command): Update.
3337 * skip.c (info_skip_command): Update.
3338 * record-btrace.c (btrace_call_history_src_line)
3339 (btrace_call_history): Update.
3340 * python/py-framefilter.c (py_print_frame): Update.
3341 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3342 "style".
3343 * mi/mi-out.c (mi_ui_out::do_table_header)
3344 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3345 (mi_ui_out::do_field_string): Update.
3346 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3347 Update.
3348 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3349 "style".
3350 * cli-out.c (cli_ui_out::do_table_header)
3351 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3352 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3353 (cli_ui_out::do_field_fmt): Update.
3354 * breakpoint.c (print_breakpoint_location): Update.
3355 (update_static_tracepoint): Update.
3356
cd7c32c3
PW
33572019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3358
3359 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3360 conversion of gdb_datadir.
3361 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3362 remove not needed c_str ().
3363
8fe0f950
AT
33642019-09-30 Ali Tamur <tamur@google.com>
3365
3366 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3367 (dwarf2_string_attr): Likewise.
3368
5f48f8f3
AT
33692019-09-30 Ali Tamur <tamur@google.com>
3370
3371 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3372 (process_full_type_unit): Likewise.
3373 (dump_die_shallow): Likewise.
3374 (cu_debug_loc_section): Likewise.
3375
6fb08628
CB
33762019-09-28 Christian Biesinger <cbiesinger@google.com>
3377
3378 * minsyms.c (compare_minimal_symbols): Rename to...
3379 (minimal_symbol_is_less_than): ...this, and adjust to STL
3380 conventions (return bool, take arguments as references)
3381 (minimal_symbol_reader::install): Call std::sort instead
3382 of qsort.
3383
c7ee338a
CB
33842019-09-29 Christian Biesinger <cbiesinger@google.com>
3385
3386 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3387 hash and why.
3388 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3389 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3390
703a86c2
SM
33912019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3392
3393 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3394 * psympriv.h (add_psymbol_to_list): Move comment here and update
3395 it.
3396
0df0352a
TV
33972019-09-29 Tom de Vries <tdevries@suse.de>
3398
3399 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3400 Use $tmpdir/$(basename "$output_file").dwz instead of
3401 "${output_file}.dwz".
3402
ad75efa6
SM
34032019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3404
3405 PR gdb/25045
3406 * hppa-linux-nat.c: Include gdbarch.h.
3407
ececd218
CB
34082019-09-26 Christian Biesinger <cbiesinger@google.com>
3409
3410 * blockframe.c (find_pc_partial_function): Change return type to bool.
3411 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3412 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3413 (stub_gnu_ifunc_resolve_name): Likewise.
3414 * symtab.c (compare_filenames_for_search): Likewise.
3415 (compare_glob_filenames_for_search): Likewise.
3416 (matching_obj_sections): Likewise.
3417 (symbol_matches_domain): Likewise.
3418 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3419 (find_line_pc): Change return type to bool.
3420 (find_line_pc_range): Likewise.
3421 (producer_is_realview): Likewise.
3422 * symtab.h (symbol_matches_domain): Likewise.
3423 (find_pc_partial_function): Likewise.
3424 (find_pc_line_pc_range): Likewise.
3425 (in_gnu_ifunc_stub): Likewise.
3426 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3427 (find_line_pc): Likewise.
3428 (find_line_pc_range): Likewise.
3429 (matching_obj_sections): Likewise.
3430 (find_line_symtab): Change out parameter to bool.
3431 (producer_is_realview): Change return type to bool.
3432 (compare_filenames_for_search): Likewise.
3433 (compare_glob_filenames_for_search): Likewise.
3434
27a900b8
TT
34352019-09-26 Tom Tromey <tom@tromey.com>
3436
3437 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3438 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3439 * gdb_usleep.h: Remove.
3440 * gdb_usleep.c: Remove.
3441 * utils.c: Don't include gdb_usleep.h.
3442
5d63b30a
TT
34432019-09-26 Tom Tromey <tromey@adacore.com>
3444
3445 * python/py-type.c (type_to_type_object): Call check_typedef
3446 for stub types.
3447
12904d37
TT
34482019-09-26 Tom Tromey <tom@tromey.com>
3449
3450 * utils.h (initialize_utils): Don't declare.
3451 * top.c (gdb_init): Don't call initialize_utils.
3452 * utils.c (initialize_utils): Remove. Move contents...
3453 (_initialize_utils): ... here.
3454
858f25f0
TT
34552019-09-25 Tom Tromey <tom@tromey.com>
3456
3457 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3458 * utils.h (make_hex_string): Don't declare.
3459 * utils.c (make_hex_string): Remove.
3460
3d435220
TV
34612019-09-24 Tom de Vries <tdevries@suse.de>
3462
3463 PR gdb/23815
3464 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3465 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3466
ddd44b70
DD
34672019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3468
3469 * NEWS: Mention new simulator port for PRU.
3470
f945dedf
CB
34712019-09-23 Christian Biesinger <cbiesinger@google.com>
3472
3473 * ada-exp.y (write_object_remaining): Update.
3474 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3475 and eliminate the static buffer.
3476 (ada_decode_symbol): Update.
3477 (ada_la_decode): Update.
3478 (ada_sniff_from_mangled_name): Update.
3479 (is_valid_name_for_wild_match): Update.
3480 (ada_lookup_name_info::matches): Update and simplify.
3481 (name_matches_regex): Update.
3482 (ada_add_global_exceptions): Update.
3483 * ada-lang.h (ada_decode): Update signature.
3484 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3485 * dwarf-index-write.c (debug_names::insert): Update.
3486
7ab78ccb
SM
34872019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3488
3489 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3490 formatting.
3491
9252448b
SM
34922019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3493
3494 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3495 Change "nonzero" to "true" in documentation.
3496
626ca2c0
CB
34972019-09-20 Christian Biesinger <cbiesinger@google.com>
3498
3499 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3500 (_initialize_darwin_solib): Don't set
3501 darwin_so_ops.lookup_lib_global_symbol.
3502 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3503 set_gdbarch_iterate_over_objfiles_in_search_order.
3504 (elf_lookup_lib_symbol): Rename to...
3505 (svr4_iterate_over_objfiles_in_search_order): this, and update
3506 to iterate semantics.
3507 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3508 * solib.c (solib_global_lookup): Remove.
3509 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3510 (solib_global_lookup): Remove.
3511 * symtab.c (lookup_global_or_static_symbol): Remove call to
3512 solib_global_lookup.
3513
5a3a0d63
JB
35142019-09-20 Joel Brobecker <brobecker@adacore.com>
3515
3516 * NEWS: Move entries about default MI version now being
3517 version 3, and about the GDB/MI fix for multi-location
3518 breakpoints to the "since GDB 8.3" section.
3519
ffea1427
JB
35202019-09-20 Joel Brobecker <brobecker@adacore.com>
3521
3522 GDB 8.3.1 released.
3523
abf516c6
UW
35242019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3525
3526 * NEWS: Mention that Cell/B.E. debugging support was removed.
3527 * MAINTAINERS: Remove spu target.
3528
3529 * config/djgpp/fnchange.lst: Remove entries for removed files.
3530
3531 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3532 spu-multiarch.o, and spu-tdep.o.
3533 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3534 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3535 spu-multiarch.c, and spu-tdep.c.
3536 * spu-linux-nat.c: Remove file.
3537 * spu-multiarch.c: Remove file.
3538 * spu-tdep.c: Remove file.
3539 * spu-tdep.h: Remove file.
3540 * solib-spu.c: Remove file.
3541 * solib-spu.h: Remove file.
3542
3543 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3544 * configure.nat (spu-linux): Remove.
3545 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3546 solib-multiarch.o from gdb_target_obs.
3547 (spu*-*-*): Remove.
3548
3549 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3550 feature flag.
3551 (ppc_linux_no_features): Update.
3552 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3553 Cell/B.E. support.
3554 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3555 (tdesc_powerpc_cell64l): Likewise.
3556 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3557 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3558 Cell/B.E. support.
3559 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3560 Do not include "features/rs6000/powerpc-cell32l.c" or
3561 "features/rs6000/powerpc-cell64l.c".
3562 (ppc_linux_spu_section): Remove.
3563 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3564 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3565 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3566 (ppc_linux_spe_context_lookup): Remove.
3567 (ppc_linux_spe_context_inferior_created): Remove.
3568 (ppc_linux_spe_context_solib_loaded): Remove.
3569 (ppc_linux_spe_context_solib_unloaded): Remove.
3570 (ppc_linux_spe_context): Remove.
3571 (struct ppu2spu_cache): Remove.
3572 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3573 (struct ppu2spu_data): Remove.
3574 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3575 ppu2spu_unwind): Remove.
3576 (ppc_linux_init_abi): Remove Cell/B.E. support.
3577 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3578
3579 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3580 (rs6000/powerpc-cell64l-expedite): Likewise
3581 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3582 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3583 rs6000/powerpc-cell64l.xml.
3584 * features/rs6000/powerpc-cell32l.xml: Remove.
3585 * features/rs6000/powerpc-cell64l.xml: Likewise.
3586 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3587 * features/rs6000/powerpc-cell64l.c: Likewise.
3588 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3589 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3590 * regformats/reg-spu.dat: Remove.
3591
3592 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3593 * corelow.c (struct spuid_list): Remove.
3594 (add_to_spuid_list): Remove.
3595 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3596 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3597 (remote_protocol_features): Remove associated entries.
3598 (_initialize_remote): No longer initialize them.
3599 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3600 * linux-nat.c (SPUFS_MAGIC): Remove.
3601 (linux_proc_xfer_spu): Remove.
3602 (spu_enumerate_spu_ids): Remove.
3603 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3604 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3605 (linux_make_corefile_notes): No longer call it.
3606
3607 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3608 (cooked_write_test): Likewise.
3609
78e8cb91
TT
36102019-09-20 Tom Tromey <tom@tromey.com>
3611
3612 * NEWS: Mention case-sensitivity of TUI commands.
3613 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3614 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3615 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3616
f074b67e
TT
36172019-09-20 Tom Tromey <tom@tromey.com>
3618
3619 * tui/tui-source.c (tui_source_window::set_contents): Use
3620 make_unique_xstrdup.
3621 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3622 make_unique_xstrdup.
3623
63c4bf19
TT
36242019-09-20 Tom Tromey <tom@tromey.com>
3625
3626 * tui/tui-data.c: Remove separator comments.
3627 * tui/tui-layout.c: Remove separator comments.
3628 * tui/tui-win.c: Remove separator comments.
3629 * tui/tui-wingeneral.c: Remove separator comments.
3630
43df9b2f
TT
36312019-09-20 Tom Tromey <tom@tromey.com>
3632
3633 * tui/tui.h (strcat_to_buf): Don't declare.
3634 * tui/tui.c (strcat_to_buf): Remove.
3635
7226433c
TT
36362019-09-20 Tom Tromey <tom@tromey.com>
3637
3638 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3639 from "fullname".
3640 * tui/tui-source.c (tui_source_window::set_contents)
3641 (tui_source_window::location_matches_p)
3642 (tui_source_window::maybe_update): Update.
3643
80df3337
TT
36442019-09-20 Tom Tromey <tom@tromey.com>
3645
3646 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3647 Update.
3648 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3649 prefix.
3650 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3651 (tui_data_window::line_from_reg_element_no)
3652 (tui_data_window::first_reg_element_no_inline)
3653 (tui_data_window::show_registers)
3654 (tui_data_window::show_register_group)
3655 (tui_data_window::display_registers_from)
3656 (tui_data_window::display_registers_from_line)
3657 (tui_data_window::first_data_item_displayed)
3658 (tui_data_window::delete_data_content_windows)
3659 (tui_data_window::erase_data_content)
3660 (tui_data_window::do_scroll_vertical)
3661 (tui_data_window::refresh_window)
3662 (tui_data_window::check_register_values): Update.
3663
9923f347
TT
36642019-09-20 Tom Tromey <tom@tromey.com>
3665
3666 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3667 (struct tui_locator_window) <full_name, proc_name>: Now
3668 std::string.
3669 * tui/tui-stack.c (tui_locator_window::make_status_line)
3670 (tui_locator_window::set_locator_fullname)
3671 (tui_locator_window::set_locator_info): Update.
3672 * tui/tui-source.c (tui_source_window::set_contents)
3673 (tui_source_window::showing_source_p): Update.
3674
b76251ab
TT
36752019-09-20 Tom Tromey <tom@tromey.com>
3676
3677 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3678 Don't call tui_locator_win_info_ptr.
3679
0891be08
TT
36802019-09-20 Tom Tromey <tom@tromey.com>
3681
3682 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3683
1b935acf
TT
36842019-09-20 Tom Tromey <tom@tromey.com>
3685
3686 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3687 height for locator.
3688 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3689 * tui/tui-layout.c (show_source_disasm_command, show_data)
3690 (show_source_or_disasm_and_command): Use 1 as height for locator.
3691
9abd8a65
TT
36922019-09-20 Tom Tromey <tom@tromey.com>
3693
3694 * tui/tui.c (tui_enable): Update.
3695 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3696 Update.
3697 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3698 Update.
3699 * tui/tui-data.c (win_resized): Now bool.
3700 (tui_win_resized): Return bool.
3701 (tui_set_win_resized_to): Accept a bool.
3702
b5457826
TT
37032019-09-20 Tom Tromey <tom@tromey.com>
3704
3705 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3706 Change type of "refresh_values_only".
3707 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3708 type of "refresh_values_only".
3709
6b915f7d
TT
37102019-09-20 Tom Tromey <tom@tromey.com>
3711
3712 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3713 std::string.
3714 (tui_disassemble): Add "pos" parameter.
3715 (tui_disasm_window::set_contents): Simplify.
3716
2ad52f6f
TT
37172019-09-20 Tom Tromey <tom@tromey.com>
3718
3719 * tui/tui-winsource.h (struct tui_source_window_base)
3720 <show_source_content>: Now private.
3721 * tui/tui-winsource.c
3722 (tui_source_window_base::show_source_content): Don't handle empty
3723 content case.
3724
b3b1bde6
TT
37252019-09-20 Tom Tromey <tom@tromey.com>
3726
3727 * tui/tui-layout.c (show_source_disasm_command)
3728 (show_source_or_disasm_and_command): Don't call
3729 show_source_content.
3730
71a25ed2
TT
37312019-09-20 Tom Tromey <tom@tromey.com>
3732
3733 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3734 Declare.
3735 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3736 from tui_make_status_line.
3737 (tui_locator_window::rerender): Update.
3738
f8532154
TT
37392019-09-20 Tom Tromey <tom@tromey.com>
3740
3741 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3742 (tui_locator_window::rerender): Update.
3743
2d81b349
TT
37442019-09-20 Tom Tromey <tom@tromey.com>
3745
3746 * tui/tui-winsource.h (struct tui_source_window_base)
3747 <~tui_source_window_base>: Don't declare.
3748 <fullname>: Remove.
3749 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3750 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3751 member.
3752 * tui/tui-source.c (tui_source_window::set_contents): Update.
3753 (tui_source_window::location_matches_p)
3754 (tui_source_window::maybe_update): Update.
3755
f14bec58
TT
37562019-09-20 Tom Tromey <tom@tromey.com>
3757
3758 * tui/tui-winsource.h (~tui_source_element): Remove.
3759 (tui_source_element): Update.
3760 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3761 * tui/tui-winsource.c (tui_show_source_line): Update.
3762 * tui/tui-source.c (tui_source_window::set_contents): Update.
3763 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3764
78d5933a
TT
37652019-09-20 Tom Tromey <tom@tromey.com>
3766
3767 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3768 declare.
3769 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3770 tui_clear_source_windows_detail.
3771 * tui/tui-winsource.h (struct tui_source_window_base)
3772 <clear_detail>: Don't declare.
3773 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3774 Remove.
3775 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3776
d4207696
TT
37772019-09-20 Tom Tromey <tromey@adacore.com>
3778
3779 PR ada/24919:
3780 * block.c (contained_in): Fix final return value.
3781
00f93c44
AM
37822019-09-20 Alan Modra <amodra@gmail.com>
3783
3784 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3785 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3786 (read_indirect_string_from_dwz): Use bfd accessor.
3787 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3788 * machoread.c (macho_symfile_read_all_oso): Likewise.
3789 * solib.c (solib_bfd_open): Likewise.
3790
e4153ae6
CB
37912019-09-19 Christian Biesinger <cbiesinger@google.com>
3792
3793 * eval.c: Move declaration of overload_resolution to...
3794 * value.h: ...here.
3795
c7ae7675
CB
37962019-09-19 Christian Biesinger <cbiesinger@google.com>
3797
3798 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3799 * arm-linux-tdep.c: Likewise.
3800 * arm-nbsd-nat.c: Likewise.
3801 * arm-tdep.h: Declare arm_apcs_32.
3802 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3803
e86f08d2
CB
38042019-09-19 Christian Biesinger <cbiesinger@google.com>
3805
3806 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3807 * dwarf2read.h: Declare dwarf_always_disassemble.
3808
f64e2f40
TV
38092019-09-19 Tom de Vries <tdevries@suse.de>
3810
3811 PR gdb/25009
3812 * source-cache.c (source_cache::ensure): Catch exception thrown during
3813 construction of the highlighter.
3814
fd361982
AM
38152019-09-18 Alan Modra <amodra@gmail.com>
3816
3817 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3818 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3819 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3820 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3821 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3822 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3823 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3824 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3825 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3826 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3827 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3828 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3829 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3830 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3831 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3832 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3833 * mi/mi-interp.c: Update throughout for bfd section macro and
3834 function changes.
3835 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3836 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3837
11061048
TT
38382019-09-18 Tom Tromey <tom@tromey.com>
3839
3840 * NEWS: Add entry.
3841 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3842 call rl_initialize.
3843 (tui_enable): Do not call rl_initialize.
3844
7a27b85f
CG
38452019-09-18 Christian Groessler <chris@groessler.org>
3846
3847 * alpha-linux-nat.c: Include gdbarch.h.
3848
f64eea3a
SM
38492019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3850
3851 * ui-file.c: Include cli/cli-style.h.
3852 (term_cli_styling): Remove cli_styling declaration.
3853
e6f7f6d1
AM
38542019-09-18 Alan Modra <amodra@gmail.com>
3855
3856 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3857 to bfd_asymbol_section.
3858
1d38e9d1
AM
38592019-09-18 Alan Modra <amodra@gmail.com>
3860
3861 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3862 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3863 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3864
90d92a63
AM
38652019-09-18 Alan Modra <amodra@gmail.com>
3866
3867 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3868 * spu-linux-nat.c (spu_bfd_open): Likewise.
3869
a3d181d2
CB
38702019-09-18 Christian Biesinger <cbiesinger@google.com>
3871
3872 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3873 to bool to match definition in dwarf2read.c.
3874
491144b5
CB
38752019-09-17 Christian Biesinger <cbiesinger@google.com>
3876
3877 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3878 (print_signatures): Likewise.
3879 (trust_pad_over_xvs): Likewise.
3880 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3881 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3882 * arm-linux-nat.c (arm_apcs_32): Likewise.
3883 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3884 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3885 * arm-tdep.c (arm_debug): Likewise.
3886 (arm_apcs_32): Likewise.
3887 * auto-load.c (debug_auto_load): Likewise.
3888 (auto_load_gdb_scripts): Likewise.
3889 (global_auto_load): Likewise.
3890 (auto_load_local_gdbinit): Likewise.
3891 (auto_load_local_gdbinit_loaded): Likewise.
3892 * auto-load.h (global_auto_load): Likewise.
3893 (auto_load_local_gdbinit): Likewise.
3894 (auto_load_local_gdbinit_loaded): Likewise.
3895 * breakpoint.c (disconnected_dprintf): Likewise.
3896 (breakpoint_proceeded): Likewise.
3897 (automatic_hardware_breakpoints): Likewise.
3898 (always_inserted_mode): Likewise.
3899 (target_exact_watchpoints): Likewise.
3900 (_initialize_breakpoint): Update.
3901 * breakpoint.h (target_exact_watchpoints): Change to bool.
3902 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3903 * cli/cli-cmds.c (trace_commands): Likewise.
3904 * cli/cli-cmds.h (trace_commands): Likewise.
3905 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3906 to bool*.
3907 * cli/cli-logging.c (logging_overwrite): Change to bool.
3908 (logging_redirect): Likewise.
3909 (debug_redirect): Likewise.
3910 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
3911 (struct boolean_option_def) <get_var_address_cb_>: Change return type
3912 to bool.
3913 <boolean_option_def>: Update.
3914 (struct flag_option_def): Change default type of Context to bool
3915 from int.
3916 <flag_option_def>: Change return type of var_address_cb_ to bool*.
3917 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
3918 (get_setshow_command_value_string): Likewise.
3919 * cli/cli-style.c (cli_styling): Change to bool.
3920 (source_styling): Likewise.
3921 * cli/cli-style.h (source_styling): Likewise.
3922 (cli_styling): Likewise.
3923 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
3924 to bool.
3925 * command.h (var_types): Update comment.
3926 (add_setshow_boolean_cmd): Change int* var argument to bool*.
3927 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
3928 bool.
3929 (debug_compile_cplus_scopes): Likewise.
3930 * compile/compile-internal.h (compile_debug): Likewise.
3931 * compile/compile.c (compile_debug): Likewise.
3932 (struct compile_options) <raw>: Likewise.
3933 * cp-support.c (catch_demangler_crashes): Likewise.
3934 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
3935 (usr_cmd_cris_dwarf2_cfi): Likewise.
3936 * csky-tdep.c (csky_debug): Likewise.
3937 * darwin-nat.c (enable_mach_exceptions): Likewise.
3938 * dcache.c (dcache_enabled_p): Likewise.
3939 * defs.h (info_verbose): Likewise.
3940 * demangle.c (demangle): Likewise.
3941 (asm_demangle): Likewise.
3942 * dwarf-index-cache.c (debug_index_cache): Likewise.
3943 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
3944 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
3945 * dwarf2read.c (check_physname): Likewise.
3946 (use_deprecated_index_sections): Likewise.
3947 (dwarf_always_disassemble): Likewise.
3948 * eval.c (overload_resolution): Likewise.
3949 * event-top.c (set_editing_cmd_var): Likewise.
3950 (exec_done_display_p): Likewise.
3951 * event-top.h (set_editing_cmd_var): Likewise.
3952 (exec_done_display_p): Likewise.
3953 * exec.c (write_files): Likewise.
3954 * fbsd-nat.c (debug_fbsd_lwp): Likewise
3955 (debug_fbsd_nat): Likewise.
3956 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
3957 Likewise.
3958 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
3959 <backtrace_past_entry> Likewise.
3960 * gdb-demangle.h (demangle): Likewise.
3961 (asm_demangle): Likewise.
3962 * gdb_bfd.c (bfd_sharing): Likewise.
3963 * gdbcore.h (write_files): Likewise.
3964 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
3965 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
3966 * gdbthread.h (print_thread_events): Likewise.
3967 * gdbtypes.c (opaque_type_resolution): Likewise.
3968 (strict_type_checking): Likewise.
3969 * gnu-nat.c (gnu_debug_flag): Likewise.
3970 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
3971 * guile/scm-param.c (pascm_variable): Add boolval.
3972 (add_setshow_generic): Update.
3973 (pascm_param_value): Update.
3974 (pascm_set_param_value_x): Update.
3975 * hppa-tdep.c (hppa_debug): Change to bool..
3976 * infcall.c (may_call_functions_p): Likewise.
3977 (coerce_float_to_double_p): Likewise.
3978 (unwind_on_signal_p): Likewise.
3979 (unwind_on_terminating_exception_p): Likewise.
3980 * infcmd.c (startup_with_shell): Likewise.
3981 * inferior.c (print_inferior_events): Likewise.
3982 * inferior.h (startup_with_shell): Likewise.
3983 (print_inferior_events): Likewise.
3984 * infrun.c (step_stop_if_no_debug): Likewise.
3985 (detach_fork): Likewise.
3986 (debug_displaced): Likewise.
3987 (disable_randomization): Likewise.
3988 (non_stop): Likewise.
3989 (non_stop_1): Likewise.
3990 (observer_mode): Likewise.
3991 (observer_mode_1): Likewise.
3992 (set_observer_mode): Update.
3993 (sched_multi): Change to bool.
3994 * infrun.h (debug_displaced): Likewise.
3995 (sched_multi): Likewise.
3996 (step_stop_if_no_debug): Likewise.
3997 (non_stop): Likewise.
3998 (disable_randomization): Likewise.
3999 * linux-tdep.c (use_coredump_filter): Likewise.
4000 (dump_excluded_mappings): Likewise.
4001 * linux-thread-db.c (auto_load_thread_db): Likewise.
4002 (check_thread_db_on_load): Likewise.
4003 * main.c (captured_main_1): Update.
4004 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4005 xx2_opt, boolean_opt>: Change to bool.
4006 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4007 * maint.c (maintenance_profile_p): Likewise.
4008 (per_command_time): Likewise.
4009 (per_command_space): Likewise.
4010 (per_command_symtab): Likewise.
4011 * memattr.c (inaccessible_by_default): Likewise.
4012 * mi/mi-main.c (mi_async): Likewise.
4013 (mi_async_1): Likewise.
4014 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4015 * nat/fork-inferior.h (startup_with_shell): Likewise.
4016 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4017 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4018 * nios2-tdep.c (nios2_debug): Likewise.
4019 * or1k-tdep.c (or1k_debug): Likewise.
4020 * parse.c (parser_debug): Likewise.
4021 * parser-defs.h (parser_debug): Likewise.
4022 * printcmd.c (print_symbol_filename): Likewise.
4023 * proc-api.c (procfs_trace): Likewise.
4024 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4025 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4026 (set_parameter_value): Update.
4027 (add_setshow_generic): Update.
4028 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4029 to bool*.
4030 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4031 int*.
4032 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4033 * record-btrace.c (record_btrace_target::store_registers): Update.
4034 * record-full.c (record_full_memory_query): Change to bool.
4035 (record_full_stop_at_limit): Likewise.
4036 * record-full.h (record_full_memory_query): Likewise.
4037 * remote-notif.c (notif_debug): Likewise.
4038 * remote-notif.h (notif_debug): Likewise.
4039 * remote.c (use_range_stepping): Likewise.
4040 (interrupt_on_connect): Likewise.
4041 (remote_break): Likewise.
4042 * ser-tcp.c (tcp_auto_retry): Likewise.
4043 * ser-unix.c (serial_hwflow): Likewise.
4044 * skip.c (debug_skip): Likewise.
4045 * solib-aix.c (solib_aix_debug): Likewise.
4046 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4047 (spu_auto_flush_cache_p): Likewise.
4048 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4049 Likewise.
4050 (struct info_print_options) <quiet>: Likewise.
4051 * symfile-debug.c (debug_symfile): Likewise.
4052 * symfile.c (auto_solib_add): Likewise.
4053 (separate_debug_file_debug): Likewise.
4054 * symfile.h (auto_solib_add): Likewise.
4055 (separate_debug_file_debug): Likewise.
4056 * symtab.c (basenames_may_differ): Likewise.
4057 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4058 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4059 (struct info_types_options) <quiet>: Likewise.
4060 * symtab.h (demangle): Likewise.
4061 (basenames_may_differ): Likewise.
4062 * target-dcache.c (stack_cache_enabled_1): Likewise.
4063 (code_cache_enabled_1): Likewise.
4064 * target.c (trust_readonly): Likewise.
4065 (may_write_registers): Likewise.
4066 (may_write_memory): Likewise.
4067 (may_insert_breakpoints): Likewise.
4068 (may_insert_tracepoints): Likewise.
4069 (may_insert_fast_tracepoints): Likewise.
4070 (may_stop): Likewise.
4071 (auto_connect_native_target): Likewise.
4072 (target_stop_and_wait): Update.
4073 (target_async_permitted): Change to bool.
4074 (target_async_permitted_1): Likewise.
4075 (may_write_registers_1): Likewise.
4076 (may_write_memory_1): Likewise.
4077 (may_insert_breakpoints_1): Likewise.
4078 (may_insert_tracepoints_1): Likewise.
4079 (may_insert_fast_tracepoints_1): Likewise.
4080 (may_stop_1): Likewise.
4081 * target.h (target_async_permitted): Likewise.
4082 (may_write_registers): Likewise.
4083 (may_write_memory): Likewise.
4084 (may_insert_breakpoints): Likewise.
4085 (may_insert_tracepoints): Likewise.
4086 (may_insert_fast_tracepoints): Likewise.
4087 (may_stop): Likewise.
4088 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4089 (make_thread_apply_all_options_def_group): Change argument from int*
4090 to bool*.
4091 (thread_apply_all_command): Update.
4092 (print_thread_events): Change to bool.
4093 * top.c (confirm): Likewise.
4094 (command_editing_p): Likewise.
4095 (history_expansion_p): Likewise.
4096 (write_history_p): Likewise.
4097 (info_verbose): Likewise.
4098 * top.h (confirm): Likewise.
4099 (history_expansion_p): Likewise.
4100 * tracepoint.c (disconnected_tracing): Likewise.
4101 (circular_trace_buffer): Likewise.
4102 * typeprint.c (print_methods): Likewise.
4103 (print_typedefs): Likewise.
4104 * utils.c (debug_timestamp): Likewise.
4105 (sevenbit_strings): Likewise.
4106 (pagination_enabled): Likewise.
4107 * utils.h (sevenbit_strings): Likewise.
4108 (pagination_enabled): Likewise.
4109 * valops.c (overload_resolution): Likewise.
4110 * valprint.h (struct value_print_options) <prettyformat_arrays,
4111 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4112 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4113 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4114 Likewise.
4115 * windows-nat.c (new_console): Likewise.
4116 (cygwin_exceptions): Likewise.
4117 (new_group): Likewise.
4118 (debug_exec): Likewise.
4119 (debug_events): Likewise.
4120 (debug_memory): Likewise.
4121 (debug_exceptions): Likewise.
4122 (useshell): Likewise.
4123 * windows-tdep.c (maint_display_all_tib): Likewise.
4124 * xml-support.c (debug_xml): Likewise.
4125
f1b620e9
MG
41262019-09-17 Mike Gulick <mgulick@mathworks.com>
4127
4128 * source.c (prepare_path_for_appending): New function.
4129 (openp): Make use of new function.
4130 (find_and_open_source): Search for the compilation directory and
4131 source file as a relative path beneath the directory search path.
4132
67f3ed6a
AB
41332019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4134
4135 * source-cache.c (source_cache::get_line_charpos): Catch
4136 exceptions and return false, this matches the behaviour documented
4137 in the header file.
4138
74332189
JB
41392019-09-17 Joel Brobecker <brobecker@adacore.com>
4140
4141 * ada-tasks.c (info_task): Remove quoting of the task's name.
4142
f2f24aa9
CB
41432019-09-16 Christian Biesinger <cbiesinger@google.com>
4144
4145 * symfile.c (auto_solib_add): Replace comment with a reference
4146 to the header file.
4147
6a062a93
CB
41482019-09-14 Christian Biesinger <cbiesinger@google.com>
4149
4150 * NEWS: Mention that gdb can now be compiled with Python 3
4151 on Windows.
4152
ec6c8338
AB
41532019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4154
4155 * maint.c (maint_print_section_data::maint_print_section_data):
4156 Force use of 'float log10 (float)' by casting the argument to
4157 float.
4158
aa17805f
AB
41592019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4160
4161 * maint.c: Add 'cmath' include.
4162 (struct maint_print_section_data): New structure.
4163 (print_section_index): New function.
4164 (print_bfd_section_info): Add header comment, small whitespace
4165 cleanup, and update to call new print_section_index function.
4166 (print_objfile_section_info): Likewise.
4167 (maint_obj_section_from_bfd_section): New function.
4168 (print_bfd_section_info_maybe_relocated): New function.
4169 (maintenance_info_sections): Add header comment, always use
4170 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4171
3dd9bb46
AB
41722019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4173
4174 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4175 inner scope, add check that the objfile has psymtabs before
4176 checking psymtabs_addrmap.
4177 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4178
4993045d
PW
41792019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4180
4181 * NEWS: Announce that Ada task names are now shown at more places,
4182 and between quotes (except in info task output).
4183 * gdb/ada-tasks.c (task_to_str): New function.
4184 (display_current_task_id): Call task_to_str.
4185 (task_command_1): Likewise.
4186 (print_ada_task_info): In non-mi mode, Properly align headers and data
4187 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4188
7a289707
RO
41892019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4190
4191 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4192 prstatus.pr_lwp.pr_info instead of making it up.
4193
f2aec7f6
CB
41942019-09-11 Christian Biesinger <cbiesinger@google.com>
4195
4196 * auto-load.c (auto_load_expand_dir_vars): Update.
4197 * defs.h (gdb_datadir): Change to std::string.
4198 (python_libdir): Likewise.
4199 (relocate_gdb_directory): Change return type to std::string.
4200 * guile/guile.c (gdbscm_data_directory): Update.
4201 (initialize_scheme_side): Update.
4202 * jit.c (jit_reader_dir): Change to std::string.
4203 (jit_reader_load_command): Update.
4204 * main.c (gdb_datadir): Change to std::string.
4205 (python_libdir): Likewise.
4206 (set_gdb_data_directory): Update.
4207 (relocate_path): Change to return std::string.
4208 (relocate_gdb_directory): Change to return std::string.
4209 (relocate_gdbinit_path_maybe_in_datadir): Update.
4210 (captured_main_1): Update.
4211 * python/python.c (do_start_initialization): Update.
4212 * top.c (show_gdb_datadir): Update.
4213 * xml-syscall.c (xml_init_syscalls_info): Update.
4214 (init_syscalls_info): Update.
4215
9224a013
CB
42162019-09-11 Christian Biesinger <cbiesinger@google.com>
4217
4218 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4219 out of get_init_files.
4220 (get_init_files): Update.
4221
f48cd836
CB
42222019-09-11 Christian Biesinger <cbiesinger@google.com>
4223
4224 * main.c (get_init_files): Change to use std::string.
4225 (captured_main_1): Update.
4226 (print_gdb_help): Update.
4227
9cab7ecd
AT
42282019-09-11 Ali Tamur <tamur@google.com>
4229
4230 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4231 implementation.
4232
67547d89
CB
42332019-09-11 Christian Biesinger <cbiesinger@google.com>
4234
4235 * dbxread.c (read_dbx_symtab): Update.
4236 * dwarf2read.c (load_partial_dies): Update.
4237 * mdebugread.c (parse_partial_symbols): Update.
4238 (handle_psymbol_enumerators): Update.
4239 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4240 * psymtab.c (add_psymbol_to_bcache): Likewise.
4241 (add_psymbol_to_list): Likewise.
4242 * symtab.c (symbol_set_names): Likewise.
4243 * symtab.h (symbol_set_names): Likewise.
4244 * xcoffread.c (scan_xcoff_symtab): Update.
4245
64b2d4a0
TT
42462019-09-11 Tom Tromey <tom@tromey.com>
4247
4248 * symfile-mem.c (symbol_file_add_from_memory): Use
4249 bfd_set_filename.
4250 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4251 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4252
3b00ef10
TT
42532019-09-10 Tom Tromey <tromey@adacore.com>
4254
4255 * dwarf-index-write.c (write_psymbols): Extend error message.
4256 (debug_names::insert): Add Ada code.
4257 (debug_names::write_psymbols): Remove Ada check.
4258 (debug_names) <m_string_obstack>: New member.
4259 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4260 (gdb_index_symbol_name_matcher::matches): Remove.
4261 (mapped_index_base::find_name_components_bounds): Add "lang"
4262 parameter.
4263 (mapped_index_base::build_name_components): Also split names
4264 according to Ada syntax.
4265 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4266 type of "match_callback".
4267 (check_match, check_find_bounds_finds)
4268 (dw2_expand_symtabs_matching): Update.
4269 (dw2_debug_names_iterator): Add new constructor.
4270 (dw2_debug_names_map_matching_symbols): New function.
4271 (dw2_debug_names_expand_symtabs_matching): Update.
4272 (dwarf2_debug_names_functions): Use
4273 dw2_debug_names_map_matching_symbols.
4274
aa391654
TT
42752019-09-10 Tom Tromey <tromey@adacore.com>
4276
4277 * dwarf2read.c (dw2_get_file_names_reader): Add the
4278 CU's file name to the results.
4279
b054970d
TT
42802019-09-10 Tom Tromey <tromey@adacore.com>
4281
4282 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4283 map_matching_symbols. Update.
4284 * dwarf2read.c (dw2_map_matching_symbols): Update.
4285 * psymtab.c (match_partial_symbol): Change type; update.
4286 (psym_map_matching_symbols): Likewise.
4287 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4288 type; update.
4289 * symfile.h (struct quick_symbol_functions)
4290 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4291 Remove "match".
4292
6a3dbf1b
TT
42932019-09-10 Tom Tromey <tromey@adacore.com>
4294
4295 * psymtab.c (map_block): Remove.
4296 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4297 * symtab.c (iterate_over_symbols_terminated): New function.
4298 * symtab.c (iterate_over_symbols_terminated): Declare.
4299
6969f124
TT
43002019-09-10 Tom Tromey <tromey@adacore.com>
4301
4302 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4303 * language.h (struct language_defn) <la_iterate_over_symbols>:
4304 Return bool.
4305 * symtab.c (iterate_over_symbols): Return bool.
4306 * symtab.h (iterate_over_symbols): Return bool.
4307
199b4314
TT
43082019-09-10 Tom Tromey <tromey@adacore.com>
4309
4310 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4311 (add_nonlocal_symbols): Update.
4312 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4313 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4314 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4315 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4316 Change type of "callback". Remove "data".
4317
a084a2a6
AT
4318
43192019-09-09 Ali Tamur <tamur@google.com>
4320
4321 * dwarf2read.c (comp_unit_head): Update comment.
4322 (dwarf2_dwo_name): New function declaration.
4323 (dwarf_unit_type_name): New function declaration.
4324 (read_comp_unit_head): Add support for new compilation units,
4325 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4326 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4327 (currently named as "signature") in their header. Also clarify error
4328 messages.
4329 (lookup_dwo_id): New function. Returns the dwo id of the given
4330 compile unit.
4331 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4332 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4333 functions.
4334 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4335 (dwarf2_dwo_name): Get the dwo name if present.
4336 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4337 purposes.
4338
25a2915e
TT
43392019-09-09 Tom Tromey <tom@tromey.com>
4340
4341 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4342
e4df0874
PW
43432019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4344
4345 * python/python.c (do_start_initialization): Make progname_copy static,
4346 to avoid a leak report.
4347
8634b462
TT
43482019-09-08 Tom Tromey <tom@tromey.com>
4349
4350 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4351
c7f839cb
SM
43522019-09-07 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4355 Change type to gdb::optional<block_enum>.
4356 (dw2_symtab_iter_init): Change block_index parameter type
4357 to gdb::optional<block_enum>.
4358 (dw2_lookup_symbol): Change block_index parameter
4359 type to block_enum.c
4360 (dw2_debug_names_lookup_symbol): Likewise.
4361 * psymtab.c (psym_lookup_symbol): Likewise.
4362 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4363 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4364 Likewise.
4365
ead0e69a
CB
43662019-09-06 Christian Biesinger <cbiesinger@google.com>
4367
4368 * defs.h (relocate_gdb_directory): Change int to bool in
4369 signature and rename flag to relocatable.
4370 * main.c (relocate_path): Likewise.
4371 (relocate_gdb_directory): Likewise.
4372
b16c44de
AM
43732019-09-06 Alan Modra <amodra@gmail.com>
4374
4375 * coffread.c (coff_symfile_read): Constify filename variable.
4376 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4377 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4378 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4379 * solib.c (reload_shared_libraries_1): Likewise.
4380 * symfile.c (reread_symbols): Likewise.
4381 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4382 * solib-darwin.c (darwin_bfd_open): Likewise.
4383 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4384
06ff036e
AB
43852019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4386
4387 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4388 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4389
4e962e74
TT
43902019-09-03 Tom Tromey <tromey@adacore.com>
4391
4392 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4393 types.
4394 (has_negatives): Unbias a range type bound.
4395 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4396 * gdbtypes.c (operator==): Handle new field.
4397 (create_range_type): Add "bias" parameter.
4398 (create_static_range_type, resolve_dynamic_range): Update.
4399 * gdbtypes.h (struct range_bounds) <bias>: New member.
4400 (create_range_type): Add bias parameter.
4401 * printcmd.c (print_scalar_formatted): Unbias range types.
4402 * value.c (unpack_long): Unbias range types.
4403 (pack_long): Bias range types.
4404
d90b8f26
AH
44052019-09-02 Alan Hayward <alan.hayward@arm.com>
4406
4407 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4408 probe arguments.
4409
fe01123e
AH
44102019-09-02 Alan Hayward <alan.hayward@arm.com>
4411
4412 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4413 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4414 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4415 (compile_probe_arg): Likewise.
4416 * probe.h (get_argument_count): Likewise.
4417 * solib-svr4.c (solib_event_probe_action): Likewise.
4418 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4419
e661ef01
AH
44202019-09-02 Alan Hayward <alan.hayward@arm.com>
4421
4422 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4423 code to here...
4424 (svr4_create_solib_event_breakpoints): ...from here.
4425
47a536d9
SDJ
44262019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4427
4428 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4429 suffix from warning message.
4430
d6a00eba
TT
44312019-08-30 Tom Tromey <tom@tromey.com>
4432
4433 * tui/tui-winsource.h (struct tui_source_window_base)
4434 <refresh_all>: Don't declare.
4435 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4436 Remove.
4437 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4438 tui_show_locator_content.
4439 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4440 declare.
4441 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4442 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4443 declare.
4444
55b2657b
TT
44452019-08-30 Tom Tromey <tom@tromey.com>
4446
4447 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4448
12a8555a
TT
44492019-08-30 Tom Tromey <tom@tromey.com>
4450
4451 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4452 Remove unnecessary forward declarations.
4453
900ac242
TT
44542019-08-30 Tom Tromey <tom@tromey.com>
4455
4456 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4457 rerender.
4458 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4459 tui_show_locator_content.
4460
99ab33fb
TT
44612019-08-30 Tom Tromey <tom@tromey.com>
4462
4463 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4464 (tui_locator_window::rerender): Rewrite using body of previous
4465 tui_show_locator_content.
4466
e594a5d1
TT
44672019-08-30 Tom Tromey <tom@tromey.com>
4468
4469 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4470 set_locator_fullname>: New methods.
4471 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4472 Rename from tui_set_locator_fullname.
4473 (tui_locator_window::set_locator_info): Rename from
4474 tui_set_locator_info. Return bool.
4475 (tui_update_locator_fullname, tui_show_frame_info): Update.
4476
715bb467
TT
44772019-08-30 Tom Tromey <tom@tromey.com>
4478
4479 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4480
772f3f03
TT
44812019-08-30 Tom Tromey <tom@tromey.com>
4482
4483 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4484 call touchwin.
4485
108e13ab
TT
44862019-08-30 Tom Tromey <tom@tromey.com>
4487
4488 * tui/tui-wingeneral.c (box_win): Assume win_info and
4489 win_info->handle cannot be NULL.
4490
cdaa6eb4
TT
44912019-08-30 Tom Tromey <tom@tromey.com>
4492
4493 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4494 refresh_window>: Declare.
4495 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4496 resize.
4497 (tui_data_item_window::rerender): Rename from
4498 tui_display_register.
4499 (tui_data_item_window::refresh_window): New method.
4500 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4501 no-op.
4502
89df7f90
TT
45032019-08-30 Tom Tromey <tom@tromey.com>
4504
4505 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4506 regs_column_count, current_group>: Move later. Now private.
4507 <get_current_group>: New method.
4508 * tui/tui-regs.c (tui_reg_command): Update.
4509 * tui/tui-layout.c (tui_set_layout): Update.
4510
1bf2866a
TT
45112019-08-30 Tom Tromey <tom@tromey.com>
4512
4513 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4514 (tui_data_window::rerender): Don't call
4515 check_and_display_highlight_if_needed.
4516 (tui_data_window::refresh_all): Remove call to
4517 erase_data_content.
4518
0670413d
TT
45192019-08-30 Tom Tromey <tom@tromey.com>
4520
4521 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4522 (tui_data_window::display_registers_from)
4523 (tui_data_window::display_reg_element_at_line)
4524 (tui_data_window::display_registers_from_line): Remove checks of
4525 "empty".
4526
18bb55c7
TT
45272019-08-30 Tom Tromey <tom@tromey.com>
4528
4529 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4530 Don't declare.
4531 * tui/tui-regs.c (tui_data_window::show_registers): Call
4532 rerender.
4533 (tui_data_window::rerender): Rename from display_all_data.
4534 (tui_data_window::rerender): Remove old implementation.
4535
1f6d2f10
TT
45362019-08-30 Tom Tromey <tom@tromey.com>
4537
4538 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4539 text.
4540 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4541
16d01f9c
BW
45422019-08-29 Bernhard Wodok <barto@gmx.net>
4543 Sergio Durigan Junior <sergiodj@redhat.com>
4544
4545 PR win32/24284
4546 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4547
d8f27c60
AB
45482019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4549
4550 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4551 when searching for types.
4552
1f20c35e
AB
45532019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4554
4555 * f-lang.c (f_language_defn): Use f_print_typedef.
4556 * f-lang.h (f_print_typedef): Declare.
4557 * f-typeprint.c (f_print_typedef): Define.
4558
550105b7
CB
45592019-08-27 Christian Biesinger <cbiesinger@google.com>
4560
4561 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4562
4acfdd20
AB
45632019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4564
4565 * cli/cli-utils.c (info_print_options_defs): Delete.
4566 (make_info_print_options_def_group): Delete.
4567 (extract_info_print_options): Delete.
4568 (info_print_command_completer): Delete.
4569 (info_print_args_help): Add extra parameter, and optionally
4570 include text about -n flag.
4571 * cli/cli-utils.h (struct info_print_options): Delete.
4572 (extract_info_print_options): Delete declaration.
4573 (info_print_command_completer): Delete declaration.
4574 (info_print_args_help): Add extra parameter, extend header
4575 comment.
4576 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4577 search_symbols.
4578 * stack.c (struct info_print_options): New type.
4579 (info_print_options_defs): New file scoped variable.
4580 (make_info_print_options_def_group): New static function.
4581 (info_print_command_completer): New static function.
4582 (info_locals_command): Update to use new local functions.
4583 (info_args_command): Likewise.
4584 (_initialize_stack): Add extra parameter to calls to
4585 info_print_args_help.
4586 * symtab.c (search_symbols): Add extra parameter, use this to
4587 possibly excluse non-debug symbols.
4588 (symtab_symbol_info): Add extra parameter, which is passed on to
4589 search_symbols.
4590 (struct info_print_options): New type.
4591 (info_print_options_defs): New file scoped variable.
4592 (make_info_print_options_def_group): New static function.
4593 (info_print_command_completer): New static function.
4594 (info_variables_command): Update to use local functions, and pass
4595 extra parameter through to symtab_symbol_info.
4596 (info_functions_command): Likewise.
4597 (info_types_command): Pass additional argument through to
4598 symtab_symbol_info.
4599 (rbreak_command): Pass extra argument to search_symbols.
4600 (_initialize_symtab): Add extra arguments for calls to
4601 info_print_args_help, and update help text for 'info variables',
4602 'whereis', and 'info functions' commands.
4603 * symtab.h (search_symbols): Add extra argument to declaration.
4604 * NEWS: Mention new flags.
4605
9aa55206
CB
46062019-08-26 Christian Biesinger <cbiesinger@google.com>
4607
4608 * symtab.c (lookup_static_symbol): Call the new function (and move
4609 it down to be next to lookup_global_symbol).
4610 (struct global_sym_lookup_data): Add block_enum member and rename to...
4611 (struct global_or_static_sym_lookup_data): ...this.
4612 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4613 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4614 (lookup_symbol_global_or_static_iterator_cb): ...this.
4615 (lookup_global_or_static_symbol): New function.
4616 (lookup_global_symbol): Call new function.
4617
5c31b358
TV
46182019-08-26 Tom de Vries <tdevries@suse.de>
4619
4620 PR c++/24852
4621 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4622 when pc_probe.prob == NULL.
4623
23c13d42
SM
46242019-08-25 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4627 variable symbol_linkage to symbol_linkage_.
4628
beadd3e8
SM
46292019-08-25 Simon Marchi <simon.marchi@efficios.com>
4630
4631 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4632 represent whether the symbol is static, dynamic, or we don't
4633 know.
4634
e3ec872f
YS
46352019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4636
4637 * gdb/rx-tdep.c (rx_register_names): New.
4638 (rx_register_name): Delete.
4639 (rx_psw_type): Delete.
4640 (rx_fpsw_type): Delete.
4641 (rx_register_type): Delete.
4642 (rx_gdbarch_init): Convert target-descriptions.
4643 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4644 * gdb/features/Makefile: Add rx.xml.
4645 * gdb/features/rx.xml: New.
4646 * gdb/features/rx.c: Generated.
4647 * gdb/NEWS: Mention target description support.
4648
d0509ba4
CB
46492019-08-22 Christian Biesinger <cbiesinger@google.com>
4650
4651 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4652 *slot_ptr.
4653
2d41fa11
SDJ
46542019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4655
4656 * configure.ac: Don't check for 'dlfcn.h' (moved to
4657 gdbsupport/common.m4).
4658 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4659 'gdbsupport/'.
4660 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4661 * compile/compile-c-support.c: Include
4662 'gdbsupport/gdb-dlfcn.h'.
4663 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4664 * gdb-dlfcn.c: Move to...
4665 * gdbsupport/gdb-dlfcn.c: ... here.
4666 * gdb-dlfcn.h: Move to...
4667 * gdbsupport/gdb-dlfcn.h: ... here.
4668
de8af808
SL
46692019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4670
4671 * nios2-tdep.c (struct reg_value): Improve comments. Make
4672 the offset field signed.
4673
27204489
CB
46742019-08-22 Christian Biesinger <cbiesinger@google.com>
4675
4676 * python/lib/gdb/__init__.py (_execute_file): New function.
4677 * python/python.c (python_run_simple_file): Call gdb._execute_file
4678 on Windows.
4679
43771869
AB
46802019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4681
4682 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4683 all uses as this was never set to anything but a zero value.
4684
26c957f1
PA
46852019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4686
4687 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4688
c07aae6e
CB
46892019-08-21 Christian Biesinger <cbiesinger@google.com>
4690
4691 * tui/tui-data.h (tui_gen_win_info): Add an =default
4692 move constructor, required by some GCC versions.
4693
3960cb7a
JF
46942019-08-21 Jinke Fan <fanjinke51@yeah.net>
4695
4696 * go32-nat.c (go32_sysinfo): Add hygon_p.
4697
04c72a68
TT
46982019-08-20 Tom Tromey <tom@tromey.com>
4699
4700 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4701 line_from_reg_element_no, first_reg_element_no_inline,
4702 display_all_data, delete_data_content_windows,
4703 erase_data_content>: Now private.
4704
072272ce
TT
47052019-08-20 Tom Tromey <tom@tromey.com>
4706
4707 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4708 (tui_unhighlight_win, tui_highlight_win)
4709 (tui_win_info::make_window): Update.
4710 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4711
973961bd
TT
47122019-08-20 Tom Tromey <tom@tromey.com>
4713
4714 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4715 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4716 (MAX_PID_WIDTH): Move to tui-stack.c.
4717 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4718 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4719 (MAX_PID_WIDTH): Move from tui-data.h.
4720
ab0e1f1a
TT
47212019-08-20 Tom Tromey <tom@tromey.com>
4722
4723 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4724 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4725 (box_win): Update.
4726 (tui_gen_win_info::make_window): Rename from tui_make_window.
4727 (tui_win_info::make_window): New method.
4728 (tui_gen_win_info::make_visible): Update.
4729 * tui/tui-source.c (tui_source_window::set_contents): Update.
4730 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4731 (tui_data_window::display_registers_from): Update.
4732 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4733 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4734 Declare.
4735 <can_box>: Remove.
4736 <title>: Remove.
4737 (struct tui_win_info) <make_window>: Declare.
4738 <can_box>: Now virtual.
4739 <title>: New member.
4740 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4741 * tui/tui-command.c (tui_cmd_window::resize): Update.
4742
100c2bf3
TT
47432019-08-20 Tom Tromey <tom@tromey.com>
4744
4745 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4746 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4747 (tui_data_window::check_register_values): Update.
4748
fa4dc567
TT
47492019-08-20 Tom Tromey <tom@tromey.com>
4750
4751 * tui/tui-regs.h (struct tui_data_window): Use
4752 DISABLE_COPY_AND_ASSIGN.
4753 <regs_content>: Change type, removing unique_ptr.
4754 <tui_data_window>: Add move constructor.
4755 * tui/tui-regs.c (tui_data_window::show_registers)
4756 (tui_data_window::show_register_group)
4757 (tui_data_window::display_registers_from)
4758 (tui_data_window::display_registers_from)
4759 (tui_data_window::first_data_item_displayed)
4760 (tui_data_window::delete_data_content_windows)
4761 (tui_data_window::rerender, tui_data_window::refresh_window)
4762 (tui_data_window::check_register_values): Update.
4763
ca02d7c8
TT
47642019-08-20 Tom Tromey <tom@tromey.com>
4765
4766 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4767 show_register_group>: Declare.
4768 (tui_show_register_group): Don't declare.
4769 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4770 tui_show_registers.
4771 (tui_data_window::show_register_group): Rename from
4772 tui_show_register_group.
4773 (tui_data_window::check_register_values, tui_reg_command):
4774 Update.
4775 * tui/tui-layout.c (tui_set_layout): Update.
4776
63356bfd
TT
47772019-08-20 Tom Tromey <tom@tromey.com>
4778
4779 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4780 Declare.
4781 (tui_check_register_values): Don't declare.
4782 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4783 from tui_check_register_values.
4784 * tui/tui-hooks.c (tui_register_changed): Update.
4785
42cc14a7
TT
47862019-08-20 Tom Tromey <tom@tromey.com>
4787
4788 * tui/tui-regs.c (tui_reg_layout): Move later.
4789 (tui_show_registers): Don't enable TUI mode or change layout.
4790
b9ad3686
TT
47912019-08-20 Tom Tromey <tom@tromey.com>
4792
4793 * tui/tui-regs.h (struct tui_data_item_window)
4794 <~tui_data_item_window>: Remove.
4795 <content>: Now a unique_xmalloc_ptr.
4796 * tui/tui-regs.c (tui_register_format): Return a
4797 unique_xmalloc_ptr.
4798 (tui_get_register): Update.
4799 (~tui_data_item_window): Remove.
4800 (tui_data_window::display_registers_from, tui_display_register):
4801 Update.
4802 * tui/tui-io.h (tui_expand_tabs): Update.
4803 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4804 Remove "col" parameter.
4805
8e114aab
TT
48062019-08-20 Tom Tromey <tom@tromey.com>
4807
4808 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4809 field.
4810 * tui/tui-regs.c (~tui_data_item_window): Update.
4811
1a4f81dd
TT
48122019-08-20 Tom Tromey <tom@tromey.com>
4813
4814 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4815 earlier.
4816
0f8d8876
TT
48172019-08-20 Tom Tromey <tom@tromey.com>
4818
4819 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4820
605dc2c2
TT
48212019-08-20 Tom Tromey <tom@tromey.com>
4822
4823 * tui/tui-source.h (struct tui_source_window): Update.
4824 * tui/tui-regs.c (tui_show_registers): Update.
4825 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4826 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4827 (NO_REGS_STRING): Remove defines.
4828
aedbe3bb
CM
48292019-08-20 Conrad Meyer <cem@FreeBSD.org>
4830
4831 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4832 unnecessary thread walk if remote doesn't support the packet.
4833
7ce8f214
TT
48342019-08-19 Tom Tromey <tromey@adacore.com>
4835
4836 * python/py-value.c (value_has_field): Fix indentation.
4837
f21c2bd7
TT
48382019-08-19 Tom Tromey <tromey@adacore.com>
4839
4840 * printcmd.c (do_one_display, info_display_command): Update.
4841 * block.h (contained_in): Return bool. Add allow_nested
4842 parameter.
4843 * block.c (contained_in): Return bool. Add allow_nested
4844 parameter.
4845
d806ea2d
TT
48462019-08-19 Tom Tromey <tom@tromey.com>
4847
4848 * configure: Rebuild.
4849 * configure.ac: Disallow the combination of -static-libstdc++ and
4850 source highlight.
4851 * source-cache.c (get_language_name): Handle rust.
4852 (source_cache::get_source_lines): Ignore highlighting exceptions.
4853
398fdd60
TT
48542019-08-16 Tom Tromey <tom@tromey.com>
4855
4856 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4857 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4858 (struct tui_source_window_base) <make_visible, refresh_window,
4859 resize>: Remove methods.
4860 <execution_info>: Remove field.
4861 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4862 (tui_show_source_line, tui_source_window_base)
4863 (~tui_source_window_base): Update.
4864 (tui_source_window_base::resize)
4865 (tui_source_window_base::make_visible)
4866 (tui_source_window_base::refresh_window): Remove.
4867 (tui_source_window_base::update_exec_info): Update.
4868 * tui/tui-source.c (tui_source_window::set_contents): Update.
4869 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4870
e699d331
TT
48712019-08-16 Tom Tromey <tom@tromey.com>
4872
4873 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4874 deprecated_query_hook.
4875
bb01dbfc
TT
48762019-08-16 Tom Tromey <tom@tromey.com>
4877
4878 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4879 (tui_update_source_windows_with_line): Update.
4880 * tui/tui-source.h (struct tui_source_window)
4881 <show_symtab_source>: Declare.
4882 (tui_show_symtab_source): Don't declare.
4883 * tui/tui-source.c (tui_show_symtab_source): Rename from
4884 tui_show_symtab_source.
4885
81c82c4b
TT
48862019-08-16 Tom Tromey <tom@tromey.com>
4887
4888 * tui/tui-winsource.h (struct tui_source_window_base)
4889 <set_contents>: Declare.
4890 * tui/tui-winsource.c
4891 (tui_source_window_base::update_source_window_as_is): Update.
4892 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4893 Declare.
4894 (tui_set_source_content): Don't declare.
4895 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4896 tui_set_source_content.
4897 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4898 Declare.
4899 (tui_set_disassem_content): Don't declare.
4900 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4901 tui_set_disassem_content.
4902
2ddaf614
TT
49032019-08-16 Tom Tromey <tom@tromey.com>
4904
4905 * tui/tui-winsource.h (struct tui_source_window_base)
4906 <update_breakpoint_info>: Declare.
4907 (tui_update_breakpoint_info): Don't declare.
4908 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
4909 (tui_update_all_breakpoint_info): Update.
4910 (tui_source_window_base::update_breakpoint_info): Rename from
4911 tui_update_breakpoint_info.
4912 (tui_source_window_base::update_exec_info): Update.
4913
017f9828
TT
49142019-08-16 Tom Tromey <tom@tromey.com>
4915
4916 * tui/tui-winsource.h (struct tui_source_window_base)
4917 <update_source_window>: Declare.
4918 (tui_update_source_window): Don't declare.
4919 * tui/tui-winsource.c
4920 (tui_source_window_base::update_source_window): Rename from
4921 tui_update_source_window.
4922 (tui_source_window_base::rerender): Update.
4923 * tui/tui-source.c (tui_source_window::maybe_update): Update.
4924 * tui/tui-disasm.c (tui_show_disassem)
4925 (tui_show_disassem_and_update_source)
4926 (tui_disasm_window::maybe_update): Update.
4927
ed8358e9
TT
49282019-08-16 Tom Tromey <tom@tromey.com>
4929
4930 * tui/tui-winsource.h (struct tui_source_window_base)
4931 <update_source_window_as_is>: Declare.
4932 (tui_update_source_window_as_is): Don't declare.
4933 * tui/tui-winsource.c (tui_update_source_window): Update
4934 (tui_source_window_base::update_source_window_as_is): Rename from
4935 tui_update_source_window_as_is.
4936 (tui_source_window_base::refill): Update.
4937 * tui/tui-source.c (tui_show_symtab_source): Update.
4938 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
4939 Update.
4940
20149b6b
TT
49412019-08-16 Tom Tromey <tom@tromey.com>
4942
4943 * tui/tui-winsource.h (tui_update_source_window)
4944 (tui_update_source_window_as_is): Remove "noerror" parameter.
4945 * tui/tui-winsource.c (tui_update_source_window)
4946 (tui_update_source_window_as_is): Remove "noerror" parameter.
4947 (tui_update_source_windows_with_addr)
4948 (tui_update_source_windows_with_line)
4949 (tui_source_window_base::rerender)
4950 (tui_source_window_base::refill): Update.
4951 * tui/tui-source.h (tui_set_source_content)
4952 (tui_show_symtab_source): Remove "noerror" parameter.
4953 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
4954 parameter.
4955 (tui_show_symtab_source): Likewise.
4956 (tui_source_window::maybe_update): Update.
4957 * tui/tui-disasm.c (tui_show_disassem)
4958 (tui_show_disassem_and_update_source)
4959 (tui_disasm_window::do_scroll_vertical)
4960 (tui_disasm_window::maybe_update): Update.
4961
2d83e710
TT
49622019-08-16 Tom Tromey <tom@tromey.com>
4963
4964 * tui/tui.c (tui_is_window_visible): Update.
4965 * tui/tui-wingeneral.c (tui_make_window)
4966 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
4967 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
4968 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
4969 (tui_set_win_height_command, parse_scrolling_args): Update.
4970 * tui/tui-source.c (tui_source_window::style_changed): Update.
4971 * tui/tui-regs.c (tui_show_registers)
4972 (tui_data_window::first_data_item_displayed)
4973 (tui_data_window::delete_data_content_windows)
4974 (tui_check_register_values, tui_reg_command): Update.
4975 * tui/tui-disasm.c (tui_show_disassem): Update.
4976 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
4977 method.
4978 <is_visible>: Remove field.
4979 * tui/tui-data.c (tui_next_win, tui_prev_win)
4980 (tui_delete_invisible_windows): Update.
4981
d4ab829a
TT
49822019-08-16 Tom Tromey <tom@tromey.com>
4983
4984 * tui/tui-winsource.h (struct tui_source_window_base)
4985 <m_has_locator>: Remove.
4986 * tui/tui-layout.c (show_source_disasm_command, show_data)
4987 (show_source_or_disasm_and_command): Update.
4988
aa7ca1bb
AH
49892019-08-16 Alan Hayward <alan.hayward@arm.com>
4990
4991 * NEWS (Other MI changes): New subsection.
4992 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
4993 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
4994 * arch-utils.c (default_get_pc_address_flags): New function.
4995 * arch-utils.h (default_get_pc_address_flags): New declaration.
4996 * gdbarch.sh: Add get_pc_address_flags.
4997 * gdbarch.c: Regenerate.
4998 * gdbarch.h: Likewise.
4999 * stack.c (print_pc): New function.
5000 (print_frame_info) (print_frame): Call print_pc.
5001
6eac171f
TV
50022019-08-16 Tom de Vries <tdevries@suse.de>
5003
5004 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5005 print_objfile_section_info.
5006
3df505f6
TT
50072019-08-15 Tom Tromey <tom@tromey.com>
5008
5009 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5010 calling update_cmdwin_start_line.
5011 * tui/tui-winsource.h (struct tui_source_window_base)
5012 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5013 <rerender>: Declare.
5014 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5015 Call rerender.
5016 (tui_source_window_base::set_new_height): Remove.
5017 (tui_source_window_base::rerender): Rename from
5018 do_make_visible_with_new_height.
5019 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5020 resize method.
5021 (tui_win_info::make_invisible_and_set_new_height)
5022 (tui_win_info::make_visible_with_new_height): Remove.
5023 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5024 Declare.
5025 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5026 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5027 do_make_visible_with_new_height>: Don't declare.
5028 <rerender>: Declare.
5029 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5030 set_new_height.
5031 (tui_data_window::do_make_visible_with_new_height): Remove.
5032 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5033 call tui_show_locator_content.
5034 (tui_gen_win_info::resize): Call rerender.
5035 (show_source_or_disasm_and_command): Don't call
5036 tui_show_locator_content.
5037 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5038 method.
5039 (struct tui_win_info) <rerender>: Declare.
5040 <set_new_height, make_invisible_and_set_new_height,
5041 make_visible_with_new_height>: Don't declare.
5042 * tui/tui-data.c (tui_win_list::rerender): New method.
5043 * tui/tui-command.h (struct tui_cmd_window)
5044 <do_make_visible_with_new_height>: Don't declare.
5045 * tui/tui-command.c
5046 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5047
272560b5
TT
50482019-08-15 Tom Tromey <tromey@adacore.com>
5049
5050 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5051 * ada-lang.c (ada_enum_name): Likewise.
5052
08235187
CB
50532019-08-15 Christian Biesinger <cbiesinger@google.com>
5054
5055 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5056 leading underscore.
5057 (GdbOutputErrorFile): Likewise.
5058 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5059 accordingly.
5060 (execute_unwinders): Rename to have a leading underscore.
5061 (auto_load_packages): Likewise.
5062 (global scope): Adjust call to auto_load_packages accordingly.
5063 (GdbSetPythonDirectory): Likewise.
5064 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5065 instead of execute_unwinders.
5066
db502012
TT
50672019-08-15 Tom Tromey <tom@tromey.com>
5068
5069 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5070 (show_data): Don't change window visibility.
5071 (tui_gen_win_info::resize): Remove special case for command
5072 window. Use wresize, when available.
5073 (show_source_or_disasm_and_command): Don't change window
5074 visibility.
5075 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5076 <make_visible>: New method.
5077 * tui/tui-command.c (tui_cmd_window::resize): New method.
5078
3891b65e
TT
50792019-08-15 Tom Tromey <tom@tromey.com>
5080
5081 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5082 (struct tui_source_windows): New.
5083 * tui/tui-winsource.c (tui_display_main): Update.
5084 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5085 (new_height_ok, parse_scrolling_args): Update.
5086 * tui/tui-layout.c (show_layout, show_data): Update.
5087 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5088 (tui_add_to_source_windows): Don't declare.
5089 * tui/tui-data.c (source_windows, tui_source_windows)
5090 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5091
ee556432
TT
50922019-08-15 Tom Tromey <tom@tromey.com>
5093
5094 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5095 Rename from reset.
5096 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5097 * tui/tui-layout.c (show_source_disasm_command, show_data):
5098 Update.
5099 (tui_gen_win_info::resize): Rename.
5100 (show_source_or_disasm_and_command): Update.
5101 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5102 reset.
5103
46f438e3
TT
51042019-08-15 Tom Tromey <tom@tromey.com>
5105
5106 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5107 * tui/tui-interp.c (tui_interp::init): Don't call
5108 tui_initialize_static_data.
5109 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5110
f4ce562c
TT
51112019-08-15 Tom Tromey <tom@tromey.com>
5112
5113 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5114 examine tui_win_list.
5115
c398c3d0
TT
51162019-08-15 Tom Tromey <tom@tromey.com>
5117
5118 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5119 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5120 tui_clear_source_content.
5121 (tui_clear_source_content): Remove.
5122 (tui_source_window_base::do_erase_source_content): Hoist call to
5123 content.clear().
5124 * tui/tui-stack.c (tui_show_frame_info): Don't call
5125 tui_clear_source_content.
5126
e25d2004
TT
51272019-08-15 Tom Tromey <tom@tromey.com>
5128
5129 * tui/tui-winsource.h (struct tui_source_window_base)
5130 <do_erase_source_content>: New method.
5131 <erase_source_content>: New method.
5132 (tui_erase_source_content): Don't declare.
5133 * tui/tui-winsource.c (tui_clear_source_content): Update.
5134 (tui_source_window_base::do_erase_source_content): Rename from
5135 tui_erase_source_content.
5136 (tui_source_window_base::show_source_content): Update.
5137 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5138 * tui/tui-source.h (struct tui_source_window)
5139 <erase_source_content>: New method.
5140 * tui/tui-disasm.h (struct tui_disasm_window)
5141 <erase_source_content>: New method.
5142
002f15c2
TT
51432019-08-15 Tom Tromey <tom@tromey.com>
5144
5145 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5146 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5147 constructor.
5148 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5149 * tui/tui-source.c (tui_set_source_content): Update.
5150 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5151
c9033fe8
TT
51522019-08-15 Tom Tromey <tom@tromey.com>
5153
5154 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5155 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5156 tui-source.c.
5157 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5158 Declare.
5159 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5160 method.
5161 (tui_source_window::maybe_update): Update.
5162
088f37dd
TT
51632019-08-15 Tom Tromey <tom@tromey.com>
5164
5165 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5166 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5167 tui-disasm.c.
5168 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5169 Declare.
5170 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5171 method.
5172 (tui_disasm_window::maybe_update): Update.
5173
a54700c6
TT
51742019-08-15 Tom Tromey <tom@tromey.com>
5175
5176 * tui/tui-winsource.h (struct tui_source_window_base)
5177 <maybe_update>: Declare.
5178 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5179 method.
5180 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5181 Declare.
5182 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5183 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5184 Declare.
5185 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5186
e2a678a5
TT
51872019-08-15 Tom Tromey <tom@tromey.com>
5188
5189 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5190
f2dda477
TT
51912019-08-15 Tom Tromey <tom@tromey.com>
5192
5193 * tui/tui-wingeneral.c: Include tui-stack.h.
5194 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5195 (struct tui_locator_window): Move from tui-data.h.
5196 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5197 (tui_initialize_static_data): Move from tui-data.c.
5198 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5199 (struct tui_locator_window): Move to tui-stack.c.
5200 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5201 (tui_initialize_static_data): Move to tui-stack.c.
5202
ed4a1084
TT
52032019-08-15 Tom Tromey <tom@tromey.com>
5204
5205 * tui/tui-layout.c (show_source_disasm_command)
5206 (show_source_or_disasm_and_command): Use make_visible method, not
5207 tui_make_window.
5208 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5209 Remove.
5210
65962b20
TT
52112019-08-15 Tom Tromey <tom@tromey.com>
5212
5213 * tui/tui-wingeneral.h (tui_make_window): Update.
5214 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5215 parameter.
5216 (tui_gen_win_info::make_visible): Update.
5217 * tui/tui-regs.c (tui_data_window::display_registers_from):
5218 Update.
5219 * tui/tui-layout.c (show_source_disasm_command)
5220 (show_source_or_disasm_and_command): Update.
5221 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5222 (enum tui_box): Remove.
5223 (struct tui_win_info) <can_box>: New method.
5224 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5225 method.
5226
2208ee91
TV
52272019-08-15 Tom de Vries <tdevries@suse.de>
5228
5229 * linux-nat-trad.c: Include gdbarch.h.
5230
75faf5c4
AH
52312019-08-14 Alan Hayward <alan.hayward@arm.com>
5232
5233 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5234 register sizes.
5235
b1c896b3
TT
52362019-08-14 Tom Tromey <tromey@adacore.com>
5237
5238 * darwin-nat.c: Include gdbarch.h.
5239 * darwin-nat-info.c: Include gdbarch.h.
5240
6405cd73
TT
52412019-08-13 Tom Tromey <tom@tromey.com>
5242
5243 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5244 Remove.
5245 * tui/tui-data.c (tui_initialize_static_data): Update.
5246
5216580d
TT
52472019-08-13 Tom Tromey <tom@tromey.com>
5248
5249 * tui/tui-winsource.h (struct tui_exec_info_window)
5250 <~tui_exec_info_window, maybe_allocate_content, get_content,
5251 m_content>: Remove.
5252 (struct tui_source_window_base) <set_exec_info_content,
5253 show_exec_info_content>: Don't declare.
5254 * tui/tui-winsource.c
5255 (tui_exec_info_window::maybe_allocate_content): Remove.
5256 (tui_source_window_base::update_exec_info): Rename from
5257 set_exec_info_content.
5258 (tui_source_window_base::show_exec_info_content)
5259 (tui_source_window_base::update_exec_info): Remove.
5260
93858ad3
TT
52612019-08-13 Tom Tromey <tom@tromey.com>
5262
5263 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5264 declare.
5265 * tui/tui-winsource.c (tui_update_source_window_as_is)
5266 (tui_update_source_windows_with_addr, tui_erase_source_content):
5267 Update.
5268 (tui_clear_exec_info_content): Remove.
5269
e321e7ce
TT
52702019-08-13 Tom Tromey <tom@tromey.com>
5271
5272 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5273 declare.
5274 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5275 call tui_erase_exec_info_content.
5276 (tui_clear_exec_info_content): Rename from
5277 tui_erase_exec_info_content.
5278 (tui_clear_exec_info_content): Delete.
5279
8270ac62
TT
52802019-08-13 Tom Tromey <tom@tromey.com>
5281
5282 * tui/tui-winsource.h (struct tui_source_window_base)
5283 <show_exec_info_content>: Declare.
5284 (tui_show_exec_info_content): Don't declare.
5285 * tui/tui-winsource.c
5286 (tui_source_window_base::show_exec_info_content): Rename from
5287 tui_show_exec_info_content.
5288 (tui_source_window_base::update_exec_info): Update.
5289
7b56485d
TT
52902019-08-13 Tom Tromey <tom@tromey.com>
5291
5292 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5293 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5294 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5295 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5296 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5297 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5298 ... here.
5299
7ba913dc
TT
53002019-08-13 Tom Tromey <tom@tromey.com>
5301
5302 * tui/tui-winsource.h (struct tui_source_window_base)
5303 <update_exec_info>: Declare.
5304 (tui_update_exec_info): Don't declare.
5305 * tui/tui-winsource.c (tui_update_source_window_as_is)
5306 (tui_source_window_base::refresh_all)
5307 (tui_update_all_breakpoint_info): Update.
5308 (tui_source_window_base::update_exec_info): Rename from
5309 tui_update_exec_info.
5310 * tui/tui-stack.c (tui_show_frame_info): Update.
5311
37a4a131
TT
53122019-08-13 Tom Tromey <tom@tromey.com>
5313
5314 * tui/tui-winsource.h (struct tui_source_window_base)
5315 <set_exec_info_content>: Declare.
5316 (tui_set_exec_info_content): Don't declare.
5317 * tui/tui-winsource.c
5318 (tui_source_window_base::set_exec_info_content): Rename from
5319 tui_set_exec_info_content.
5320 (tui_update_exec_info): Update.
5321
0bd27e07
TT
53222019-08-13 Tom Tromey <tom@tromey.com>
5323
5324 * tui/tui-winsource.h (struct tui_source_window_base)
5325 <show_source_content>: Declare.
5326 (tui_show_source_content): Don't declare.
5327 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5328 (tui_source_window_base::show_source_content): Rename from
5329 tui_show_source_content.
5330 (tui_source_window_base::refresh_all): Update.
5331 * tui/tui-layout.c (show_source_disasm_command)
5332 (show_source_or_disasm_and_command): Update.
5333
b4ef5aeb
TT
53342019-08-13 Tom Tromey <tom@tromey.com>
5335
5336 * tui/tui-winsource.c (tui_erase_source_content)
5337 (tui_show_source_content, tui_source_window_base::refresh_all):
5338 Update.
5339 * tui/tui-wingeneral.h
5340 (tui_check_and_display_highlight_if_needed): Don't declare.
5341 * tui/tui-wingeneral.c
5342 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5343 check_and_display_highlight_if_needed.
5344 * tui/tui-win.c (tui_rehighlight_all)
5345 (tui_win_info::make_visible_with_new_height): Update.
5346 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5347 (tui_data_window::erase_data_content)
5348 (tui_data_window::display_all_data): Update.
5349 * tui/tui-data.h (struct tui_win_info)
5350 <check_and_display_highlight_if_needed>: Declare.
5351
fede5273
TT
53522019-08-13 Tom Tromey <tom@tromey.com>
5353
5354 * tui/tui-win.c (tui_resize_all): Call
5355 tui_delete_invisible_windows.
5356 * tui/tui-layout.c (show_layout): Call
5357 tui_delete_invisible_windows.
5358 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5359 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5360
22c3f490
TT
53612019-08-13 Tom Tromey <tom@tromey.com>
5362
5363 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5364 tui_add_win_to_layout.
5365
16cb7910
TT
53662019-08-13 Tom Tromey <tom@tromey.com>
5367
5368 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5369 * tui/tui-layout.c (tui_default_win_height): Now static.
5370
cc0c3ffb
TT
53712019-08-13 Tom Tromey <tom@tromey.com>
5372
5373 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5374 single switch.
5375 (show_source_disasm_command, show_source_or_disasm_and_command):
5376 Don't check current layout.
5377
3f3ffe54
TT
53782019-08-13 Tom Tromey <tom@tromey.com>
5379
5380 * tui/tui-wingeneral.c (make_all_visible): Remove.
5381 (tui_make_all_invisible): Simplify.
5382 * tui/tui-layout.c (tui_make_all_invisible): Move from
5383 tui-wingeneral.c; simplify.
5384 (show_layout): Hoist call to tui_make_all_invisible.
5385 (show_data): Don't call tui_make_all_invisible.
5386
69258091
TT
53872019-08-13 Tom Tromey <tom@tromey.com>
5388
5389 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5390 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5391
62cf57fe
TT
53922019-08-13 Tom Tromey <tom@tromey.com>
5393
5394 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5395 tui-data.c.
5396 (show_source_disasm_command, show_data)
5397 (show_source_or_disasm_and_command): Don't use
5398 tui_set_current_layout_to.
5399 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5400 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5401 tui-layout.c.
5402 (tui_set_current_layout_to): Remove.
5403
2afade5d
TT
54042019-08-13 Tom Tromey <tom@tromey.com>
5405
5406 * tui/tui-layout.c (tui_set_layout): Update.
5407 * tui/tui-data.h (struct tui_layout_def): Remove.
5408 (tui_layout_def): Don't declare.
5409 * tui/tui-data.c (layout_def): Remove.
5410 (tui_layout_def): Remove.
5411
a3504e96
TT
54122019-08-13 Tom Tromey <tom@tromey.com>
5413
5414 * tui/tui-winsource.h (struct tui_source_window_base)
5415 <clear_detail>: No longer "override".
5416 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5417 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5418 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5419 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5420 Remove.
5421 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5422
29c92911
TT
54232019-08-13 Tom Tromey <tromey@adacore.com>
5424
5425 * tracepoint.c: Don't include readline.h or history.h.
5426
86c6b807
TT
54272019-08-12 Tom Tromey <tom@tromey.com>
5428
5429 * configure: Rebuild.
5430 * configure.ac: Check for readline 7.
5431 * NEWS: Mention readline 7 requirement.
5432 * README: Update.
5433
5db2718c
TT
54342019-08-12 Tom Tromey <tom@tromey.com>
5435
5436 * mingw-hdep.c (gdb_select): Remove readline hack.
5437
dac36daf
PFC
54382019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5439
5440 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5441 when the function fails.
5442
1022c627
AA
54432019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5444
5445 * s390-tdep.c (s390_type_align): New function.
5446 (s390_gdbarch_init): Set it as type_align gdbarch method.
5447
eba4caf2
TV
54482019-08-09 Tom de Vries <tdevries@suse.de>
5449
5450 PR gdb/24591
5451 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5452 pc_low with relocation offset.
5453
123cd851
TT
54542019-08-07 Tom Tromey <tromey@adacore.com>
5455
5456 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5457 (print_frame_args): Update.
5458 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5459 Update.
5460 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5461 * frame.h (struct frame_arg): Add initializers.
5462 <error>: Now a unique_xmalloc_ptr.
5463
3d31bc39
AH
54642019-08-07 Alan Hayward <alan.hayward@arm.com>
5465
5466 * NEWS: Expand the Pointer Authentication entry.
5467 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5468 (aarch64_frame_unmask_lr): ... to this.
5469 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5470 Call aarch64_frame_unmask_lr.
5471 * frame.c (struct frame_info): Add "masked" variable.
5472 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5473 (fprint_frame): Check for masked pc.
5474 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5475 declarations.
5476 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5477 * stack.c (print_frame): Check for masked pc.
5478
0cf9feb9
TT
54792019-08-06 Tom Tromey <tom@tromey.com>
5480
5481 * stabsread.c (patch_block_stabs, read_one_struct_field)
5482 (read_enum_type): Use obstack_strndup.
5483 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5484 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5485 * dwarf2read.c (guess_full_die_structure_name)
5486 (anonymous_struct_prefix): Use obstack_strndup.
5487 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5488 * c-exp.y (yylex): Use obstack_strndup.
5489 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5490 (write_var_or_type): Use obstack_strndup.
5491
efba19b0
TT
54922019-08-06 Tom Tromey <tom@tromey.com>
5493
5494 * symfile.c (reread_symbols): Use obstack_strdup.
5495 * stabsread.c (read_type): Use obstack_strdup.
5496 * gdb_obstack.h (obstack_strdup): New overload.
5497 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5498 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5499 (dwarf2_canonicalize_name): Use obstack_strdup.
5500 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5501 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5502 Use obstack_strdup.
5503
f25102f7
TT
55042019-08-06 Tom Tromey <tom@tromey.com>
5505
5506 * gdb_obstack.h (obstack_strdup): Define.
5507 * gdb_obstack.c (obstack_strdup): Don't define.
5508
021887d8
TT
55092019-08-06 Tom Tromey <tom@tromey.com>
5510
5511 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5512 obstack_strdup.
5513 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5514 obstack_strdup.
5515 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5516 * stabsread.c (common_block_start): Use obstack_strdup.
5517 * objfiles.c (set_objfile_main_name, objfile): Use
5518 obstack_strdup.
5519 * namespace.c (add_using_directive): Use obstack_strdup.
5520 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5521 * jit.c (finalize_symtab): Use obstack_strdup.
5522 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5523 (guess_partial_die_structure_name, partial_die_info::fixup)
5524 (dwarf2_name): Use obstack_strdup.
5525 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5526 obstack_strdup.
5527 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5528 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5529 obstack_strdup.
5530 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5531
d2834edc
PW
55322019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5533
5534 * unittests/help-doc-selftests.c: New file.
5535 * Makefile.in: Add the new file.
5536
590042fc
PW
55372019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5538
5539 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5540 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5541 the full first line, except when FOR_VALUE_PREFIX. In this case,
5542 the trailing '.' is not output, and the first character is uppercased.
5543 (print_help_for_command): Update call to print_doc_line.
5544 (print_doc_of_command): Likewise.
5545 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5546 * cli/cli-option.c (append_indented_doc): Do not append newline.
5547 (build_help_option): Append newline after first appended_indented_doc
5548 only if a second call is done.
5549 (build_help): Append 2 new lines before each option, except the first
5550 one.
5551 * compile/compile.c (_initialize_compile): Add new lines after
5552 %OPTIONS%, when not at the end of the help.
5553 Change help doc or code
5554 producing the help doc to respect the invariants.
5555 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5556 Also removed the new line after 'Options:', as all other commands
5557 do not put an empty line between 'Options:' and the first option.
5558 * printcmd.c (_initialize_printcmd): Likewise.
5559 * stack.c (_initialize_stack): Likewise.
5560 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5561 incorrectly telling COMMAND is optional.
5562 * ada-lang.c (_initialize_ada_language): Change help doc or code
5563 producing the help doc to respect the invariants.
5564 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5565 * breakpoint.c (_initialize_breakpoint): Likewise.
5566 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5567 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5568 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5569 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5570 _initialize_cli_style): Likewise.
5571 * corelow.c (core_target_info): Likewise.
5572 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5573 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5574 * filesystem.c (_initialize_filesystem): Likewise.
5575 * frame.c (_initialize_frame): Likewise.
5576 * gnu-nat.c (add_task_commands): Likewise.
5577 * infcall.c (_initialize_infcall): Likewise.
5578 * infcmd.c (_initialize_infcmd): Likewise.
5579 * interps.c (_initialize_interpreter): Likewise.
5580 * language.c (_initialize_language): Likewise.
5581 * linux-fork.c (_initialize_linux_fork): Likewise.
5582 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5583 * maint.c (_initialize_maint_cmds): Likewise.
5584 * memattr.c (_initialize_mem): Likewise.
5585 * printcmd.c (_initialize_printcmd): Likewise.
5586 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5587 _RegEx): Likewise.
5588 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5589 * record-btrace.c (_initialize_record_btrace): Likewise.
5590 * record-full.c (_initialize_record_full): Likewise.
5591 * record.c (_initialize_record): Likewise.
5592 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5593 * regcache.c (_initialize_regcache): Likewise.
5594 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5595 _initialize_remote): Likewise.
5596 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5597 * serial.c (_initialize_serial): Likewise.
5598 * skip.c (_initialize_step_skip): Likewise.
5599 * source.c (_initialize_source): Likewise.
5600 * stack.c (_initialize_stack): Likewise.
5601 * symfile.c (_initialize_symfile): Likewise.
5602 * symtab.c (_initialize_symtab): Likewise.
5603 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5604 * top.c (init_main): Likewise.
5605 * tracefile-tfile.c (tfile_target_info): Likewise.
5606 * tracepoint.c (_initialize_tracepoint): Likewise.
5607 * tui/tui-win.c (_initialize_tui_win): Likewise.
5608 * utils.c (add_internal_problem_command): Likewise.
5609 * valprint.c (value_print_option_defs): Likewise.
5610
404f2902
FCE
56112019-08-06 Frank Ch. Eigler <fche@redhat.com>
5612
5613 PR build/24886
5614 * configure.ac: Drop enable-libmcheck support.
5615 * configure, config.in: Rebuild.
5616 * libmcheck.m4: Remove.
5617 * acinclude.m4: Don't include it.
5618 * Makefile.in: Don't distribute it.
5619 * top.c (print_gdb_configuration): Don't mention it.
5620
046bebe1
TT
56212019-08-06 Tom Tromey <tom@tromey.com>
5622
5623 * utils.c (set_output_style): Sometimes pass stream to
5624 emit_style_escape.
5625 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5626 * record-btrace.c (btrace_insn_history): Update.
5627 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5628 method.
5629 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5630 Update initializers.
5631 <m_uiout>: New field.
5632 <m_di>: Move lower.
5633 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5634 Remove "uiout" parameter.
5635 (dump_insns): Update.
5636 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5637 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5638
ddbcedf5
CB
56392019-08-06 Christian Biesinger <cbiesinger@google.com>
5640
5641 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5642 (error_in_psymtab_expansion): Likewise.
5643 (lookup_symbol_via_quick_fns): Likewise.
5644 (basic_lookup_transparent_type_quick): Likewise.
5645 (basic_lookup_transparent_type_1): Likewise.
5646
b08b16c8
TT
56472019-08-06 Tom Tromey <tromey@adacore.com>
5648
5649 * source.c (last_source_error): Now bool.
5650 (print_source_lines_base): Make "noprint" bool. Only open
5651 source file when last_source_visited changes.
5652
cb44333d
TT
56532019-08-06 Tom Tromey <tromey@adacore.com>
5654
5655 * annotate.c (annotate_source_line): Use g_source_cache.
5656 * source-cache.c (source_cache::get_plain_source_lines): Change
5657 parameters. Populate m_offset_cache.
5658 (source_cache::ensure): New method.
5659 (source_cache::get_line_charpos): New method.
5660 (extract_lines): Move lower. Change parameters.
5661 (source_cache::get_source_lines): Move lower.
5662 * source-cache.h (class source_cache): Update comment.
5663 <get_line_charpos>: New method.
5664 <get_source_lines>: Update comment.
5665 <clear>: Clear m_offset_cache.
5666 <get_plain_source_lines>: Change parameters.
5667 <ensure>: New method
5668 <m_offset_cache>: New member.
5669 * source.c (forget_cached_source_info_for_objfile): Update.
5670 (info_source_command): Use g_source_cache.
5671 (find_source_lines, open_source_file_with_line_charpos): Remove.
5672 (print_source_lines_base, search_command_helper): Use g_source_cache.
5673 * source.h (open_source_file_with_line_charpos): Don't declare.
5674 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5675 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5676 Use g_source_cache.
5677
872dceaa
TT
56782019-08-06 Tom Tromey <tromey@adacore.com>
5679
5680 * source-cache.c (source_cache::get_plain_source_lines):
5681 Remove "first_line" and "last_line" parameters.
5682 (source_cache::get_source_lines): Cache plain text.
5683 * source-cache.h (class source_cache)
5684 <get_plain_source_lines>: Update.
5685
269249d9
TT
56862019-08-06 Tom Tromey <tromey@adacore.com>
5687
5688 * source-cache.c (extract_lines): No longer a method.
5689 Changed type of parameter. Include final newline.
5690 (selftests::extract_lines_test): New function.
5691 (_initialize_source_cache): Likewise.
5692 * source-cache.h (class source_cache)
5693 <extract_lines>: Don't declare.
5694
c0e8dcd8
TT
56952019-08-06 Tom Tromey <tromey@adacore.com>
5696
5697 * breakpoint.c (init_breakpoint_sal): Update.
5698 (breakpoint): Update.
5699 * breakpoint.h (struct breakpoint) <filter>: Now a
5700 unique_xmalloc_ptr.
5701
0b27c27d
CB
57022019-08-05 Christian Biesinger <cbiesinger@google.com>
5703
5704 * NEWS: Mention dictionary access on blocks.
5705 * python/py-block.c (blpy_getitem): New function.
5706 (block_object_as_mapping): New struct.
5707 (block_object_type): Use new struct for tp_as_mapping field.
5708
4ee94178
CB
57092019-08-05 Christian Biesinger <cbiesinger@google.com>
5710
5711 * objfiles.h (objfile): Add a comment describing partial symbols.
5712
8abfcabc
TT
57132019-08-05 Tom Tromey <tromey@adacore.com>
5714
5715 * compile/compile.c (_initialize_compile): Use _(), not N_().
5716 * thread.c (_initialize_thread): Use _(), not N_().
5717 * stack.c (_initialize_stack): Use _(), not N_().
5718 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5719
2b79f376
SM
57202019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5721
5722 * dwarf2read.c (struct dw2_symtab_iterator):
5723 <want_specific_block>: Remove.
5724 <block_index>: Change type to gdb::optional.
5725 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5726 change type of BLOCK_INDEX parameter to gdb::optional.
5727 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5728 (dw2_lookup_symbol): Don't pass argument for
5729 WANT_SPECIFIC_BLOCK.
5730 (dw2_expand_symtabs_for_function): Don't pass argument for
5731 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5732 (class dw2_debug_names_iterator)
5733 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5734 parameter, change BLOCK_INDEX type to gdb::optional.
5735 <m_want_specific_block>: Remove.
5736 <m_block_index>: Change type to gdb::optional.
5737 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5738 gdb::optional. Re-write in function of gdb::optional.
5739 (dw2_debug_names_lookup_symbol): Don't pass argument for
5740 WANT_SPECIFIC_BLOCK.
5741 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5742 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5743 BLOCK_INDEX.
5744
ae60f04e
PW
57452019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5746
5747 * NEWS: Mention changes to "info sources" command.
5748
28cd9371
PW
57492019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5750
5751 * symtab.c (filename_partial_match_opts): New struct type.
5752 (struct output_source_filename_data): New members
5753 regexp, c_regexp, partial_match.
5754 (output_source_filename): Use new members to decide to print file.
5755 (info_sources_option_defs): New variable.
5756 (make_info_sources_options_def_group, print_info_sources_header,
5757 info_sources_command_completer):
5758 New functions.
5759 (info_sources_command): Read new optional arguments.
5760 (_initialize_symtab): Update info sources help.
5761
ca683e3a
AO
57622019-08-02 Alexandre Oliva <oliva@adacore.com>
5763
5764 * ada-lang.c (exception_support_info_v0): Renamed from...
5765 (default_exception_support_info): ... this. Create new
5766 definition for v1.
5767 (ada_has_this_exception_support): Look up catch_handlers_sym.
5768 (ada_exception_support_info_sniffer): Try v0 after default.
5769
f1264162
TT
57702019-08-01 Tom Tromey <tromey@adacore.com>
5771
5772 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5773 gdbarch.h.
5774
0a7b2485
CB
57752019-08-01 Christian Biesinger <cbiesinger@google.com>
5776
5777 * s12z-tdep.c: Fix include path for s12z-opc.h.
5778
c6bdbeb7
AH
57792019-08-01 Alan Hayward <alan.hayward@arm.com>
5780
5781 * NEWS: Require GNU make 3.82.
5782
a2bd7b82
TT
57832019-07-16 Tom Tromey <tom@tromey.com>
5784
5785 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5786 declare.
5787
aa3b6533
TT
57882019-07-30 Tom Tromey <tromey@adacore.com>
5789
5790 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5791
a1530dc7
KB
57922019-07-30 Kevin Buettner <kevinb@redhat.com>
5793
5794 * printcmd.c (print_address_symbolic): Print negative offsets.
5795 (build_address_symbolic): Force signed arithmetic when computing
5796 offset.
5797
2906593f
CB
57982019-07-30 Christian Biesinger <cbiesinger@google.com>
5799
5800 PR/24474: Add a function to lookup static variables.
5801 * NEWS: Mention this new function.
5802 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5803 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5804 * python/python.c (python_GdbMethods): Add new function.
5805
c620ed88
CB
58062019-07-29 Christian Biesinger <cbiesinger@google.com>
5807
5808 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5809 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5810 (objfpy_lookup_static_symbol): New function.
5811 (objfile_object_methods): Add new functions.
5812
bc4268a5
PW
58132019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5814
5815 * NEWS: Mention 'set|show print frame-info'. Mention new
5816 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5817 backtrace argument. Mention that python frame filtering code
5818 is now consistent with what 'backtrace' command prints.
5819
4b5e8d19
PW
58202019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5821
5822 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5823 comments.
5824 (print_frame_info_auto, print_frame_info_source_line,
5825 print_frame_info_location, print_frame_info_source_and_location,
5826 print_frame_info_location_and_address, print_frame_info_short_location):
5827 New declarations.
5828 (struct frame_print_options): New member print_frame_info.
5829 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5830 * stack.h (get_user_print_what_frame_info): New declaration.
5831 (frame_show_address): New declaration.
5832 * stack.c (print_frame_arguments_choices): New value 'presence'.
5833 (print_frame_info_auto, print_frame_info_source_line,
5834 print_frame_info_location, print_frame_info_source_and_location,
5835 print_frame_info_location_and_address, print_frame_info_short_location,
5836 print_frame_info_choices, print_frame_info_print_what): New definitions.
5837 (print_frame_args): Only print dots for args if print frame-arguments
5838 is 'presence'.
5839 (frame_print_option_defs): New element for "frame-info".
5840 (get_user_print_what_frame_info): New function.
5841 (frame_show_address): Make non static. Move comment to stack.h.
5842 (print_frame_info_to_print_what): New function.
5843 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5844 to decide what to print.
5845 (backtrace_command_1): Handle the new print_frame_arguments_presence
5846 value.
5847 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5848 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5849 (py_print_frame): In non-mi mode, use LOCATION as default for
5850 print_what, similarly to frame information printed directly by
5851 backtrace command. Handle frame-info user option in non MI mode.
5852
6bdfee81
KB
58532019-07-27 Kevin Buettner <kevinb@redhat.com>
5854
5855 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5856 Add case for debugging 32-bit target on 64-bit host. Revise
5857 comment.
5858
98a617f8
KB
58592019-07-27 Kevin Buettner <kevinb@redhat.com>
5860
5861 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5862 instead of find_function_entry_range_from_pc.
5863
567238c9
KB
58642019-07-27 Kevin Buettner <kevinb@redhat.com>
5865
5866 * stack.c (find_frame_funname): Remove code which preferred
5867 minsym over symtab sym in "certain pathological cases".
5868
2dc80cf8
KB
5869 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5870 parameter. Change type of "do_demangle" to bool.
5871 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5872 Pass suitable "prefer_sym_over_minsym" flag to
5873 build_address_symbolic(). Don't output "+" for negative offsets.
5874 * printcmd.c (print_address_symbolic): Update invocation of
5875 build_address_symbolic to include a "prefer_sym_over_minsym"
5876 flag.
5877 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5878 Restrict cases in which use of minimal symbol is preferred to that
5879 of a found symbol. Update comments.
5880
1aff7173
KB
5881 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5882 for entry pc when entry pc is out of range for that FDE.
5883
89b085ac
BC
58842019-07-26 Brian Callahan <bcallah@openbsd.org>
5885
5886 PR gdb/24839:
5887 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5888 type.
5889
f32feb4a
CB
58902019-07-25 Christian Biesinger <cbiesinger@google.com>
5891
5892 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5893 this function's Python signature.
5894
5895
58962019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5897
5898 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5899 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5900 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5901 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5902 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5903
5904
c54e4253
YS
59052019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5906
5907 * h8300-tdep.c (h8300_register_name_common): New.
5908 h8300_register_name): Use h8300_register_name_common.
5909 (h8300s_register_name): Likewise.
5910 (h8300sx_register_name): Likewise.
5911 (h8300h_register_nam): New.
5912 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
5913
5914
40eadf04
SP
59152019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5916
5917 * arm-tdep.c (arm_skip_cmse_entry): New function.
5918 (arm_is_sgstubs_section): New function.
5919 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
5920
bfa2a36d
TT
59212019-07-22 Tom Tromey <tom@tromey.com>
5922
5923 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
5924 Don't self-assign.
5925
a8e9d247
AB
59262019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5927
5928 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
5929 type_print.
5930
eb86c5e2
AB
59312019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5932
5933 * symtab.c (search_symbols): Adjust msymbol matching type arrays
5934 so that GDB doesn't match any msymbols when searching in the
5935 TYPES_DOMAIN.
5936 (print_symbol_info): Print using typedef_print or type_print based
5937 on the type of the symbol. Add updated FIXME comment moved from...
5938 (_initialize_symtab): ... move and update FIXME comment to above.
5939
a8eab7c6
AB
59402019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5941
5942 * NEWS: Mention adding -q option to "info types".
5943 * symtab.c (struct info_types_options): New struct.
5944 (info_types_options_defs): New variable.
5945 (make_info_types_options_def_group): New function.
5946 (info_types_command): Use gdb::option framework to parse options.
5947 (info_types_command_completer): New function.
5948 (_initialize_symtab): Extend the help text on "info types" and
5949 register command completer.
5950
b4603c34
CB
59512019-07-21 Christian Biesinger <cbiesinger@google.com>
5952
5953 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
5954 (lookup_symbol_in_objfile): Change int to block_enum and add a
5955 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
5956
c8cdc1e0
CB
59572019-07-20 Christian Biesinger <cbiesinger@google.com>
5958
5959 * MAINTAINERS (Write After Approval): Add self.
5960
01e175fe
AB
59612019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
5962
5963 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
5964 instruction to the dummy code region.
5965
56f79b63
TT
59662019-07-19 Tom Tromey <tromey@adacore.com>
5967
5968 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
5969 (ARGSUSED, PARAMS, __func__): Remove rules.
5970
4c5aa8e0
AH
59712019-07-19 Alan Hayward <alan.hayward@arm.com>
5972
5973 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
5974 * features/arm/arm-with-iwmmxt.c: Remove.
5975 * features/arm/arm-with-iwmmxt.xml: Remove.
5976 * features/arm/arm-with-m-fpa-layout.c: Remove.
5977 * features/arm/arm-with-m-fpa-layout.xml: Remove.
5978 * features/arm/arm-with-m-vfp-d16.c: Remove.
5979 * features/arm/arm-with-m-vfp-d16.xml: Remove.
5980 * features/arm/arm-with-m.c: Remove.
5981 * features/arm/arm-with-m.xml: Remove.
5982 * features/arm/arm-with-neon.c: Remove.
5983 * features/arm/arm-with-neon.xml: Remove.
5984 * features/arm/arm-with-vfpv2.c: Remove.
5985 * features/arm/arm-with-vfpv2.xml: Remove.
5986 * features/arm/arm-with-vfpv3.c: Remove.
5987 * features/arm/arm-with-vfpv3.xml: Remove.
5988
f42b2617
AH
59892019-07-19 Alan Hayward <alan.hayward@arm.com>
5990
5991 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
5992
f29ec966
AH
59932019-07-19 Alan Hayward <alan.hayward@arm.com>
5994
5995 * arch/aarch32.c (aarch32_create_target_description): Create
5996 target descriptions using features.
5997 * arch/arm.c (arm_create_target_description)
5998 (arm_create_mprofile_target_description): Likewise.
5999 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6000
d105cce5
AH
60012019-07-19 Alan Hayward <alan.hayward@arm.com>
6002
6003 * Makefile.in: Add new files.
6004 * aarch32-tdep.c: New file.
6005 * aarch32-tdep.h: New file.
6006 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6007 Call aarch32_read_description.
6008 * arch/aarch32.c: New file.
6009 * arch/aarch32.h: New file.
6010 * arch/arm.c (arm_create_target_description)
6011 (arm_create_mprofile_target_description): New function.
6012 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6013 (arm_create_target_description)
6014 (arm_create_mprofile_target_description): New declaration.
6015 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6016 read_description functions.
6017 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6018 Likewise.
6019 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6020 * arm-tdep.c (tdesc_arm_list): New variable.
6021 (arm_register_g_packet_guesses): Call create description functions.
6022 (arm_read_description) (arm_read_mprofile_description): New
6023 function.
6024 * arm-tdep.h (arm_read_description)
6025 (arm_read_mprofile_description): Add declaration.
6026 * configure.tgt: Add new files.
6027
afe09f0b
GL
60282019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6029
6030 * top.c (new_ui_command): Open specified terminal just once.
6031
cd215b2e
TT
60322019-07-18 Tom Tromey <tromey@adacore.com>
6033
6034 * symtab.c (main_name): Constify return type.
6035 * symfile.c (set_initial_language): Update.
6036 * symtab.h (main_name): Constify return type.
6037
d8f68fcb
TT
60382019-07-17 Tom Tromey <tom@tromey.com>
6039
6040 * tui/tui-winsource.c (tui_update_source_window)
6041 (tui_update_source_window_as_is)
6042 (tui_update_source_windows_with_line): Remove return.
6043 * tui/tui-disasm.c (tui_show_disassem)
6044 (tui_show_disassem_and_update_source): Remove return.
6045 * tui/tui.c (tui_reset): Remove return.
6046 * tui/tui-wingeneral.c
6047 (tui_check_and_display_highlight_if_needed): Remove return.
6048
ca5af91e
TT
60492019-07-17 Tom Tromey <tom@tromey.com>
6050
6051 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6052
5104fe36
TT
60532019-07-17 Tom Tromey <tom@tromey.com>
6054
6055 * tui/tui-winsource.h (struct tui_exec_info_window)
6056 (struct tui_source_window_base): Move from tui-data.h.
6057 * tui/tui-winsource.c: Move many method definitions from
6058 elsewhere. Remove "structuring" comments.
6059 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6060 (tui_source_window_base::refresh_window): Move to
6061 tui-winsource.c.
6062 * tui/tui-win.c (tui_source_window_base::refresh_all)
6063 (tui_source_window_base::update_tab_width)
6064 (tui_source_window_base::set_new_height)
6065 (tui_source_window_base::do_make_visible_with_new_height): Move to
6066 tui-winsource.c.
6067 * tui/tui-source.h: Update.
6068 * tui/tui-source.c (tui_source_window_base::reset): Move to
6069 tui-winsource.c.
6070 * tui/tui-disasm.h: Update.
6071 * tui/tui-data.h (struct tui_exec_info_window): Move to
6072 tui-winsource.h.
6073 (struct tui_source_window_base): Likewise.
6074 * tui/tui-data.c (tui_source_window_base::clear_detail)
6075 (tui_source_window_base, ~tui_source_window_base): Move to
6076 tui-winsource.c.
6077
daa15dde
TT
60782019-07-17 Tom Tromey <tom@tromey.com>
6079
6080 * tui/tui-win.c (tui_resize_all)
6081 (tui_source_window_base::update_tab_width)
6082 (tui_adjust_win_heights): Update.
6083 (tui_win_info::make_invisible_and_set_new_height): Rename from
6084 make_invisible_and_set_new_height.
6085 * tui/tui-data.h (struct tui_win_info)
6086 <make_invisible_and_set_new_height>: New method.
6087
bfad4537
TT
60882019-07-17 Tom Tromey <tom@tromey.com>
6089
6090 * tui/tui.c: Update.
6091 * tui/tui-source.h (struct tui_source_window): Move from
6092 tui-data.h.
6093 * tui/tui-layout.c: Update.
6094 * tui/tui-disasm.c: Update.
6095 * tui/tui-data.h (struct tui_source_window): Move to
6096 tui-source.h.
6097
88f7e873
TT
60982019-07-17 Tom Tromey <tom@tromey.com>
6099
6100 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6101 tui-data.h.
6102 * tui/tui-data.h (struct tui_disasm_window): Move to
6103 tui-disasm.h.
6104
96bd6233
TT
61052019-07-17 Tom Tromey <tom@tromey.com>
6106
6107 * tui/tui-regs.h (struct tui_data_item_window): Move from
6108 tui-data.h.
6109 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6110 * tui/tui-data.h (struct tui_data_item_window): Move to
6111 tui-regs.h.
6112 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6113
ce38393b
TT
61142019-07-17 Tom Tromey <tom@tromey.com>
6115
6116 * tui/tui.c: Update.
6117 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6118 (tui_cmd_window::max_height): Move to tui-command.c.
6119 * tui/tui-layout.c: Update.
6120 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6121 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6122 tui-command.c.
6123 * tui/tui-command.h (struct tui_cmd_window): Move from
6124 tui-data.h.
6125 * tui/tui-command.c: Remove "structuring" comments.
6126 (tui_cmd_window::clear_detail)
6127 (tui_cmd_window::do_make_visible_with_new_height)
6128 (tui_cmd_window::max_height): Move from elsewhere.
6129
2d8b51cb
TT
61302019-07-17 Tom Tromey <tom@tromey.com>
6131
6132 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6133 Now static.
6134 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6135 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6136
18ab23af
TT
61372019-07-17 Tom Tromey <tom@tromey.com>
6138
6139 * tui/tui.c: Update.
6140 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6141 tui-regs.c.
6142 * tui/tui-windata.h: Remove file.
6143 * tui/tui-windata.c: Remove file.
6144 * tui/tui-win.c (tui_data_window::set_new_height)
6145 (tui_data_window::do_make_visible_with_new_height): Move to
6146 tui-regs.c.
6147 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6148 * tui/tui-regs.c: Remove "structuring" comments.
6149 (tui_data_window::first_data_item_displayed)
6150 (tui_data_window::delete_data_content_windows)
6151 (tui_data_window::erase_data_content)
6152 (tui_data_window::display_all_data)
6153 (tui_data_window::refresh_all)
6154 (tui_data_window::do_scroll_vertical)
6155 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6156 (tui_data_window::do_make_visible_with_new_height)
6157 (tui_data_window::refresh_window): Move from elsewhere.
6158 (_initialize_tui_regs): Move to end of file.
6159 * tui/tui-layout.c: Update.
6160 * tui/tui-hooks.c: Update.
6161 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6162 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6163 tui-regs.c.
6164 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6165
88b7e7cc
TT
61662019-07-17 Tom Tromey <tom@tromey.com>
6167
6168 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6169 seen.
6170
0fcd3711
TT
61712019-07-17 Tom Tromey <tom@tromey.com>
6172
6173 * tui/tui-win.c (tui_source_window_base::set_new_height)
6174 (tui_source_window_base::do_make_visible_with_new_height): Use
6175 m_has_locator field directly.
6176 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6177 method.
6178 (struct tui_source_window_base) <has_locator>: Likewise.
6179
4a38112d
TT
61802019-07-17 Tom Tromey <tom@tromey.com>
6181
6182 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6183 Don't declare.
6184 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6185 Remove.
6186 * tui/tui-win.c (tui_source_window_base::set_new_height)
6187 (tui_source_window_base::set_new_height)
6188 (make_invisible_and_set_new_height)
6189 (tui_source_window_base::do_make_visible_with_new_height)
6190 (tui_source_window_base::do_make_visible_with_new_height):
6191 Update.
6192 * tui/tui-layout.c (show_source_disasm_command, show_data)
6193 (show_source_or_disasm_and_command): Update.
6194 * tui/tui-layout.c (show_layout): Update.
6195
09129226
TT
61962019-07-17 Tom Tromey <tom@tromey.com>
6197
6198 * tui/tui-layout.c (make_data_window): Remove.
6199 (show_data): Unify creation and re-initialization cases.
6200
4a8a5e84
TT
62012019-07-17 Tom Tromey <tom@tromey.com>
6202
6203 * tui/tui-layout.c (make_source_window, make_disasm_window):
6204 Remove.
6205 (show_data): Unify creation and re-initialization cases.
6206
76d2be8e
TT
62072019-07-17 Tom Tromey <tom@tromey.com>
6208
6209 * tui/tui-layout.c (make_command_window): Remove.
6210 (show_source_disasm_command, show_source_or_disasm_and_command):
6211 Unify creation and re-initialization cases.
6212
890b8bde
TT
62132019-07-17 Tom Tromey <tom@tromey.com>
6214
6215 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6216 creation and re-initialization cases.
6217
2cdfa113
TT
62182019-07-17 Tom Tromey <tom@tromey.com>
6219
6220 * tui/tui-regs.c (tui_get_register): Return void.
6221
8e3cfd09
TT
62222019-07-17 Tom Tromey <tom@tromey.com>
6223
6224 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6225 Simplify.
6226
f4e04977
TT
62272019-07-17 Tom Tromey <tom@tromey.com>
6228
6229 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6230 resetting.
6231
0379b883
TT
62322019-07-17 Tom Tromey <tom@tromey.com>
6233
6234 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6235 * tui/tui-regs.c (tui_reg_layout): New function.
6236 (tui_show_registers, tui_reg_command): Use it.
6237 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6238 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6239 parameters.
6240 (tui_layout_command): Remove.
6241
b7fbad91
TT
62422019-07-17 Tom Tromey <tom@tromey.com>
6243
6244 * tui/tui-layout.h (tui/tui-layout): Return void.
6245 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6246
4e1e56b9
TT
62472019-07-17 Tom Tromey <tom@tromey.com>
6248
6249 * tui/tui-layout.c (show_source_disasm_command, show_data):
6250 Update.
6251 (reset_locator): Remove.
6252 (show_source_or_disasm_and_command): Update.
6253
1e0c09ba
TT
62542019-07-17 Tom Tromey <tom@tromey.com>
6255
6256 * tui/tui-source.c (tui_source_window_base::reset): Remove
6257 win_type parameter.
6258 * tui/tui-layout.c (make_command_window, make_source_window)
6259 (make_disasm_window, make_data_window)
6260 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6261 (reset_locator, show_source_or_disasm_and_command): Update.
6262 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6263 win_type parameter.
6264 (struct tui_source_window_base) <reset>: Likewise.
6265
1bf605de
TT
62662019-07-17 Tom Tromey <tom@tromey.com>
6267
6268 * tui/tui-layout.c (show_source_disasm_command): Use
6269 reset_locator.
6270 (reset_locator): New function.
6271 (init_and_make_win): Remove.
6272 (show_source_or_disasm_and_command): Use reset_locator.
6273
098f9ed4
TT
62742019-07-17 Tom Tromey <tom@tromey.com>
6275
6276 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6277 condition.
6278 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6279 Remove condition.
6280 * tui/tui-source.c (tui_source_window_base::reset): New method.
6281 * tui/tui-layout.c (make_command_window): Don't call
6282 init_and_make_win.
6283 (make_source_window, make_disasm_window): Don't call
6284 make_source_or_disasm_window.
6285 (make_data_window): Don't call init_and_make_win. Change calling
6286 convention.
6287 (show_source_disasm_command, show_data): Simplify.
6288 (make_source_or_disasm_window): Remove.
6289 (show_source_or_disasm_and_command): Simplify.
6290 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6291 (struct tui_source_window_base) <reset>: Likewise.
6292 <execution_info>: Remove initializer.
6293 * tui/tui-data.c (tui_source_window_base): Initialize
6294 execution_info.
6295
80110957
TT
62962019-07-17 Tom Tromey <tom@tromey.com>
6297
6298 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6299 variable.
6300
cf82af05
TT
63012019-07-17 Tom Tromey <tom@tromey.com>
6302
6303 * tui/tui.c (tui_rl_other_window): Update.
6304 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6305 superclass method first. Always iterate over regs_content.
6306 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6307 method.
6308 * tui/tui-win.c (tui_set_focus_command): Update.
6309
01aeb396
TT
63102019-07-17 Tom Tromey <tom@tromey.com>
6311
6312 * tui/tui-win.c (tui_set_focus_command): Rename from
6313 tui_set_focus. Call tui_enable.
6314 (tui_set_focus_command): Remove.
6315
fd6c75ee
TT
63162019-07-17 Tom Tromey <tom@tromey.com>
6317
6318 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6319 refresh_window.
6320 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6321 touchwin.
6322 (tui_data_window::refresh_window): Call refresh_window on data
6323 items. Always call superclass refresh_window.
6324 (tui_win_info::refresh): Remove.
6325 (tui_source_window_base::refresh_window): Update.
6326 (tui_refresh_all): Update.
6327 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6328 refresh_window.
6329 (show_source_or_disasm_and_command): Likewise.
6330 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6331 (struct tui_source_window_base) <refresh>: Likewise.
6332
f6cc34a9
TT
63332019-07-17 Tom Tromey <tom@tromey.com>
6334
6335 * tui/tui-winsource.c (tui_clear_source_content)
6336 (tui_show_source_content): Update.
6337 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6338 whether content is empty.
6339 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6340 Remove.
6341
f31ec9af
TT
63422019-07-17 Tom Tromey <tom@tromey.com>
6343
6344 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6345 window's contents.
6346 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6347 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6348
d1b6f1e5
TT
63492019-07-17 Tom Tromey <tom@tromey.com>
6350
6351 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6352 (struct tui_data_item_window): Update.
6353
d9743a13
TT
63542019-07-17 Tom Tromey <tom@tromey.com>
6355
6356 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6357 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6358 defines.
6359
caf0bc4e
TT
63602019-07-17 Tom Tromey <tom@tromey.com>
6361
6362 * tui/tui-winsource.h (tui_erase_source_content)
6363 (tui_clear_source_content): Remove "display_prompt" parameter.
6364 * tui/tui-winsource.c (tui_update_source_window_as_is)
6365 (tui_update_source_windows_with_addr): Update.
6366 (tui_clear_source_content): Remove "display_prompt" parameter.
6367 (tui_erase_source_content): Likewise. Simplify.
6368 (tui_show_source_content): Update.
6369 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6370 * tui/tui-stack.c (tui_show_frame_info): Update.
6371 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6372 Remove defines.
6373
9d391078
TT
63742019-07-17 Tom Tromey <tom@tromey.com>
6375
6376 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6377 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6378 parameter.
6379 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6380 parameter.
6381
a38da35d
TT
63822019-07-17 Tom Tromey <tom@tromey.com>
6383
6384 * tui/tui-winsource.c (tui_clear_source_content)
6385 (tui_show_source_content, tui_show_exec_info_content)
6386 (tui_clear_exec_info_content): Update.
6387 * tui/tui-stack.c (tui_show_locator_content): Update.
6388 (tui_show_frame_info): Update.
6389 * tui/tui-source.h (tui_source_window): Don't declare.
6390 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6391 from tui_source_is_displayed.
6392 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6393 Remove field.
6394 (struct tui_source_window_base) <content_in_use>: New field. Now
6395 bool.
6396 (struct tui_source_window) <showing_source_p>: New method.
6397 (TUI_SRC_WIN): Change cast.
6398 * tui/tui-data.c (tui_initialize_static_data): Update.
6399
c2cd8994
TT
64002019-07-17 Tom Tromey <tom@tromey.com>
6401
6402 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6403 location_matches_p.
6404 * tui/tui-source.c (tui_source_window::location_matches_p): New
6405 method.
6406 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6407 method.
6408 * tui/tui-data.h (struct tui_source_window_base)
6409 <location_matches_p>: New method.
6410 (struct tui_source_window, struct tui_disasm_window)
6411 <location_matches_p>: Likewise.
6412
4dde7b34
TT
64132019-07-17 Tom Tromey <tom@tromey.com>
6414
6415 * tui/tui-win.c (tui_set_win_height_command): Rename from
6416 tui_set_win_height.
6417 (tui_set_win_height_command): Remove.
6418
b73dd877
TT
64192019-07-17 Tom Tromey <tom@tromey.com>
6420
6421 * tui/tui-source.c (tui_source_window): New constructor. Add
6422 observer.
6423 (~tui_source_window): New destructor.
6424 (tui_source_window::style_changed): New method.
6425 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6426 (tui_attach_detach_observers): Update.
6427 * tui/tui-data.h (struct tui_source_window): Make constructor not
6428 inline. Add destructor.
6429 (struct tui_source_window) <style_changed>: New method.
6430 <m_observable>: New member.
6431
ae2b5380
TT
64322019-07-17 Tom Tromey <tom@tromey.com>
6433
6434 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6435 * tui/tui-win.c (tui_resize_all): Fix typo.
6436
1ce3e844
TT
64372019-07-17 Tom Tromey <tom@tromey.com>
6438
6439 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6440 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6441 (tui_refresh_all): Remove "list" parameter. Use foreach.
6442 * tui/tui-win.c (window_name_completer): Use foreach.
6443 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6444 (update_tab_width): Likewise.
6445 * tui/tui-layout.c (show_layout): Update.
6446 * tui/tui-data.h (class tui_window_iterator): New.
6447 (struct all_tui_windows): New.
6448 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6449
fe3eaf1c
TT
64502019-07-17 Tom Tromey <tom@tromey.com>
6451
6452 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6453 parameter. Don't reference globals.
6454 (tui_reg_command): Update.
6455
368c1354
TT
64562019-07-17 Tom Tromey <tom@tromey.com>
6457
6458 * tui/tui-regs.c (tui_show_registers): Simplify.
6459
e80cd204
TT
64602019-07-17 Tom Tromey <tom@tromey.com>
6461
6462 * tui/tui-regs.c (tui_show_registers): Update.
6463 (tui_show_register_group): Add win_info parameter.
6464
aca2dd16
TT
64652019-07-17 Tom Tromey <tom@tromey.com>
6466
6467 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6468 Rename from tui_display_reg_element_at_line.
6469 (tui_data_window::display_registers_from_line): Update.
6470 * tui/tui-data.h (struct tui_data_window)
6471 <display_reg_element_at_line>: New method.
6472
517e9505
TT
64732019-07-17 Tom Tromey <tom@tromey.com>
6474
6475 * tui/tui-regs.h (tui_display_registers_from)
6476 (tui_display_registers_from_line): Don't declare.
6477 * tui/tui-windata.c (tui_data_window::display_all_data)
6478 (tui_data_window::refresh_all)
6479 (tui_data_window::do_scroll_vertical): Update.
6480 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6481 from tui_display_registers_from.
6482 (tui_display_reg_element_at_line): Update.
6483 (tui_data_window::display_registers_from_line): Rename from
6484 tui_display_registers_from_line.
6485 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6486 display_registers_from_line>: New methods.
6487
f76d8b19
TT
64882019-07-17 Tom Tromey <tom@tromey.com>
6489
6490 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6491 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6492 from tui_erase_data_content.
6493 (tui_data_window::display_all_data)
6494 (tui_data_window::refresh_all)
6495 (tui_data_window::do_scroll_vertical): Update.
6496 * tui/tui-regs.c (tui_show_registers): Update.
6497 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6498 New method.
6499
b4094625
TT
65002019-07-17 Tom Tromey <tom@tromey.com>
6501
6502 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6503 declare.
6504 * tui/tui-windata.c
6505 (tui_data_window::delete_data_content_windows): Rename from
6506 tui_delete_data_content_windows.
6507 (tui_data_window::display_all_data)
6508 (tui_data_window::do_scroll_vertical): Update.
6509 * tui/tui-data.h (struct tui_data_window)
6510 <delete_data_content_windows>: New method.
6511
c223a729
TT
65122019-07-17 Tom Tromey <tom@tromey.com>
6513
6514 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6515 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6516
50daf268
TT
65172019-07-17 Tom Tromey <tom@tromey.com>
6518
6519 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6520 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6521 from tui_display_all_data.
6522 * tui/tui-win.c
6523 (tui_data_window::do_make_visible_with_new_height): Update.
6524 * tui/tui-regs.c (tui_show_registers): Update.
6525 * tui/tui-layout.c (tui_set_layout): Update.
6526 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6527 method.
6528
df5f8cab
TT
65292019-07-17 Tom Tromey <tom@tromey.com>
6530
6531 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6532 * tui/tui-windata.c (tui_display_data_from): Remove.
6533 (tui_data_window::refresh_all): Update.
6534
80cb6c27
TT
65352019-07-17 Tom Tromey <tom@tromey.com>
6536
6537 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6538 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6539 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6540 tui_display_registers_from_line.
6541 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6542 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6543 "force_display" parameter.
6544
baff0c28
TT
65452019-07-17 Tom Tromey <tom@tromey.com>
6546
6547 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6548 declare.
6549 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6550 Rename from tui_first_reg_element_no_inline.
6551 (tui_display_reg_element_at_line)
6552 (tui_display_registers_from_line): Update.
6553 * tui/tui-data.h (struct tui_data_window)
6554 <first_reg_element_no_inline>: New method.
6555
3b23c5f2
TT
65562019-07-17 Tom Tromey <tom@tromey.com>
6557
6558 * tui/tui-windata.c (tui_display_data_from)
6559 (tui_data_window::do_scroll_vertical): Update.
6560 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6561 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6562 Rename from tui_line_from_reg_element_no.
6563 (tui_display_registers_from_line): Update.
6564 * tui/tui-data.h (struct tui_data_window)
6565 <line_from_reg_element_no>: New method.
6566
0b5ec218
TT
65672019-07-17 Tom Tromey <tom@tromey.com>
6568
6569 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6570 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6571 tui_last_regs_line_no.
6572 (tui_display_reg_element_at_line)
6573 (tui_display_registers_from_line): Update.
6574 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6575 method.
6576
0807ab7b
TT
65772019-07-17 Tom Tromey <tom@tromey.com>
6578
6579 PR tui/24722:
6580 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6581 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6582 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6583 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6584 (tui_update_breakpoint_info): Likewise.
6585 * tui/tui-hooks.c (tui_event_create_breakpoint)
6586 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6587 Update.
6588
9ad7fdef
TT
65892019-07-17 Tom Tromey <tom@tromey.com>
6590
6591 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6592
5813316f
TT
65932019-07-17 Tom Tromey <tom@tromey.com>
6594
6595 * tui/tui-winsource.c (tui_update_source_window_as_is)
6596 (tui_update_source_windows_with_addr): Update.
6597 * tui/tui-source.h (tui_set_source_content)
6598 (tui_show_symtab_source): Add "win_info" parameter.
6599 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6600 parameter.
6601 (tui_show_symtab_source): Likewise.
6602
00e264e7
TT
66032019-07-17 Tom Tromey <tom@tromey.com>
6604
6605 * tui/tui-wingeneral.c
6606 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6607
06210ce4
TT
66082019-07-17 Tom Tromey <tom@tromey.com>
6609
6610 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6611 (struct tui_cmd_window) <can_scroll>: New method.
6612 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6613 method.
6614
381befee
TT
66152019-07-17 Tom Tromey <tromey@adacore.com>
6616
6617 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6618 do_field_signed>: Rename. Change type of "value".
6619 * ui-out.c (ui_out::field_signed): Rename from field_int.
6620 Change type of "value".
6621 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6622 type of "value".
6623 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6624 do_field_int. Change type of "value".
6625 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6626 do_field_int. Change type of "value".
6627 * tracepoint.c (trace_status_mi, tfind_1)
6628 (print_one_static_tracepoint_marker): Update.
6629 * thread.c (print_thread_info_1, print_selected_thread_frame):
6630 Update.
6631 * stack.c (print_frame, print_frame_info): Update.
6632 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6633 Update.
6634 * source.c (print_source_lines_base): Update.
6635 * skip.c (info_skip_command): Update.
6636 * record-btrace.c (btrace_ui_out_decode_error)
6637 (btrace_call_history_src_line): Update.
6638 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6639 Update.
6640 * progspace.c (print_program_space): Update.
6641 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6642 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6643 do_field_int. Change type of "value".
6644 * mi/mi-out.c (mi_ui_out::do_table_begin)
6645 (mi_ui_out::do_table_header): Update.
6646 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6647 type of "value".
6648 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6649 (mi_cmd_data_list_changed_registers, output_register)
6650 (mi_cmd_data_read_memory, mi_load_progress)
6651 (mi_cmd_trace_frame_collected): Update.
6652 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6653 Update.
6654 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6655 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6656 (mi_cmd_var_list_children, varobj_update_one): Update.
6657 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6658 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6659 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6660 * inferior.c (print_inferior): Update.
6661 * gdb_bfd.c (print_one_bfd): Update.
6662 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6663 Update.
6664 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6665 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6666 do_field_int. Change type of "value".
6667 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6668 do_field_int. Change type of "value".
6669 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6670 (print_one_breakpoint_location, print_it_catch_fork)
6671 (print_one_catch_fork, print_it_catch_vfork)
6672 (print_one_catch_vfork, print_it_catch_solib)
6673 (print_it_catch_exec, print_it_ranged_breakpoint)
6674 (print_mention_watchpoint, print_mention_masked_watchpoint)
6675 (bkpt_print_it, update_static_tracepoint): Update.
6676 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6677 * break-catch-syscall.c (print_it_catch_syscall): Update.
6678 * ada-tasks.c (print_ada_task_info): Update.
6679 * ada-lang.c (print_it_exception, print_mention_exception):
6680 Update.
6681
6b78c3f8
AB
66822019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6683
6684 PR breakpoints/24541
6685 * gdbarch.c: Regenerate.
6686 * gdbarch.h: Regenerate.
6687 * gdbarch.sh: Adjust return type and parameter types for
6688 'stap_adjust_register'.
6689 (i386_stap_adjust_register): Adjust signature and return new
6690 register name.
6691 * stap-probe.c (stap_parse_register_operand): Adjust use of
6692 'gdbarch_stap_adjust_register'.
6693
d72a9b85
TT
66942019-07-17 Tom Tromey <tromey@adacore.com>
6695
6696 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6697 declare VEC.
6698 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6699 std::vector.
6700 (struct s390_process_info): Add initializers.
6701 (s390_add_process): Use new.
6702 (s390_linux_nat_target::low_forget_process): Use delete.
6703 (s390_linux_nat_target::low_new_fork)
6704 (s390_linux_nat_target::stopped_by_watchpoint)
6705 (s390_linux_nat_target::low_prepare_to_resume)
6706 (s390_linux_nat_target::insert_watchpoint)
6707 (s390_linux_nat_target::insert_hw_breakpoint)
6708 (s390_linux_nat_target::remove_watchpoint)
6709 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6710
206e6c58
JB
67112019-07-16 John Baldwin <jhb@FreeBSD.org>
6712
6713 * aarch64-fbsd-nat.c: Include regcache.h.
6714 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6715 argument.
6716 (aarch64_fbsd_nat_target::fetch_registers)
6717 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6718 variable.
6719 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6720
cbde90f2
JB
67212019-07-16 John Baldwin <jhb@FreeBSD.org>
6722
6723 * fbsd-nat.c: Include gdbarch.h.
6724
07128006
TT
67252019-07-15 Tom Tromey <tromey@adacore.com>
6726
6727 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6728
1f77b012
TT
67292019-07-15 Tom Tromey <tromey@adacore.com>
6730
6731 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6732 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6733 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6734 * cli-out.c (cli_ui_out::do_field_int): New method.
6735 * ui-out.c (ui_out::field_unsigned): New method.
6736 * symfile.c (generic_load): Use field_unsigned.
6737 (print_transfer_performance): Likewise.
6738 * record-btrace.c (ui_out_field_uint): Remove.
6739 (btrace_call_history_insn_range, btrace_call_history): Use
6740 field_unsigned.
6741 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6742 field_unsigned.
6743 * ui-out.h (class ui_out) <field_unsigned>: New method.
6744 <do_field_unsigned>: Likewise.
6745
33eca680
TT
67462019-07-15 Tom Tromey <tromey@adacore.com>
6747
6748 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6749 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6750 * target.c (flash_erase_command): Use field_string.
6751 * infrun.c (print_signal_received_reason): Use field_string.
6752 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6753 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6754 field_string.
6755 * ada-tasks.c (print_ada_task_info): Use field_string.
6756
ca8d69be
TT
67572019-07-15 Tom Tromey <tromey@adacore.com>
6758
6759 * target.c (flash_erase_command): Use field_core_addr.
6760 * symfile.c (generic_load): Use field_core_addr.
6761 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6762 Use field_core_addr.
6763 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6764 field_core_addr.
6765
0d4e84ed
AB
67662019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6767
6768 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6769 value if its desired type is smaller than a CORE_ADDR and signed.
6770
9a49df9d
AB
67712019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6772
6773 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6774 of changes to field names, and use new is_reference field to
6775 decide if a property is a reference or not.
6776 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6777 field.
6778 (struct dwarf2_property_baton): Update header comment, rename
6779 'referenced_type' to 'property_type' and update comments.
6780 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6781 default property type, store in property baton, update to take
6782 accound of renamed field.
6783 (read_func_scope): Update call to attr_to_dynamic_prop.
6784 (read_array_type): Likewise.
6785 (dwarf2_per_cu_addr_sized_int_type): New function.
6786 (read_subrange_index_type): Move type finding code to
6787 dwarf2_per_cu_addr_sized_int_type.
6788 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6789 (dwarf2_per_cu_addr_type): New function.
6790 (set_die_type): Update calls to attr_to_dynamic_prop.
6791
b86352cf
AB
67922019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6793
6794 * dwarf2read.c (read_subrange_index_type): New function.
6795 (read_subrange_type): Move code into new function and call it.
6796 * gdbtypes.c (create_range_type): Add some asserts.
6797
603490bf
AB
67982019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6799
6800 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6801 update return statements.
6802 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6803 declaration, and update comment to match.
6804 * gdbtypes.c (resolve_dynamic_array): Update call to
6805 dwarf2_evaluate_property to match new return type.
6806
592f9d27
AB
68072019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6808
6809 * valarith.c (value_subscripted_rvalue): Change lowerbound
6810 parameter type from int to LONGEST.
6811 * value.h (value_subscripted_rvalue): Likewise in declaration.
6812
60cfcb20
AB
68132019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6814
6815 * cli/cli-utils.c (info_print_command_completer): New function.
6816 * cli/cli-utils.h: Add 'completer.h' include, and forward
6817 declaration for 'struct cmd_list_element'.
6818 (info_print_command_completer): Declare.
6819 * stack.c (_initialize_stack): Add completer for 'info locals' and
6820 'info args'.
6821 * symtab.c (_initialize_symtab): Add completer for 'info
6822 variables' and 'info functions'.
6823 * NEWS: Mention completion for additional info commands.
6824
b16507e0
AB
68252019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6826
6827 * cli/cli-utils.c (extract_info_print_args): Delete.
6828 (extract_arg_maybe_quoted): Delete.
6829 (info_print_options_defs): New variable.
6830 (make_info_print_options_def_group): New function.
6831 (extract_info_print_options): Define new function.
6832 * cli/cli-utils.h (extract_info_print_args): Delete.
6833 (struct info_print_options): New structure.
6834 (extract_info_print_options): Declare new function.
6835 * stack.c (info_locals_command): Update to use new
6836 extract_info_print_options, also add a header comment.
6837 (info_args_command): Likewise.
6838 * symtab.c (info_variables_command): Likewise.
6839 (info_functions_command): Likewise.
6840
021d8588
AB
68412019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6842
6843 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6844 to extract string arguments.
6845 * common/common-utils.c (extract_string_maybe_quoted): New function.
6846 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6847
b777eb6d
TT
68482019-07-11 Tom Tromey <tromey@adacore.com>
6849
6850 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6851 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6852 * top.h (gdbinit): Don't declare.
6853 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6854 into...
6855 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6856 * top.c (gdb_init): Don't call init_cli_cmds.
6857 (gdbinit): Remove.
6858 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6859
72ee03ff
TT
68602019-07-11 Tom Tromey <tromey@adacore.com>
6861
6862 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6863 after it has been moved.
6864
00db9531
SM
68652019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6866
6867 * valops.c (value_must_coerce_to_target): Change return type to
6868 bool.
6869 * value.h (value_must_coerce_to_target): Likewise.
6870
f2478a7e
SM
68712019-07-10 Simon Marchi <simon.marchi@efficios.com>
6872
6873 * breakpoint.c (is_hardware_watchpoint): Remove
6874 forward-declaration.
6875 (is_masked_watchpoint): Change return type to bool.
6876 (is_tracepoint): Likewise.
6877 (is_breakpoint): Likewise.
6878 (is_hardware_watchpoint): Likewise.
6879 (is_watchpoint): Likewise.
6880 (is_no_memory_software_watchpoint): Likewise.
6881 (is_catchpoint): Likewise.
6882 (breakpoint_1): Make FILTER parameter's return type bool.
6883 is_masked_watchpoint): Change return type to bool.
6884 (save_breakpoints): Make FILTER parameter's return type bool.
6885 * breakpoint.h (is_breakpoint): Change return type to bool.
6886 (is_watchpoint): Likewise.
6887 (is_catchpoint): Likewise.
6888 (is_tracepoint): Likewise.
6889
0d12e84c
TT
68902019-07-10 Tom Tromey <tom@tromey.com>
6891
6892 * defs.h: Don't include gdbarch.h.
6893 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6894 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6895 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6896 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6897 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6898 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6899 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6900 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6901 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6902 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6903 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6904 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6905 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6906 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6907 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6908 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
6909 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
6910 record-btrace.c, record.h, regcache-dump.c, regcache.h,
6911 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
6912 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
6913 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
6914 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
6915 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
6916 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
6917 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
6918 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
6919 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
6920
f06f1252
TT
69212019-07-10 Tom Tromey <tromey@adacore.com>
6922
6923 * ada-lang.h (is_ada_exception_catchpoint): Declare.
6924 * breakpoint.c (init_ada_exception_breakpoint): Register as
6925 bp_catchpoint.
6926 (print_one_breakpoint_location, print_one_breakpoint): Use
6927 is_ada_exception_catchpoint.
6928 * ada-lang.c (class ada_catchpoint_location): Pass
6929 bp_loc_software_breakpoint to bp_location constructor.
6930 (is_ada_exception_catchpoint): New function.
6931
7a5d944b
TT
69322019-07-10 Tom Tromey <tromey@adacore.com>
6933
6934 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
6935 VEC.
6936 (struct arm_exidx_entry): New method operator<.
6937 (struct arm_exidx_data) <section_maps>: Change type.
6938 (arm_exidx_data_free): Remove.
6939 (arm_exidx_data_key): Change type. Move lower.
6940 (arm_exidx_new_objfile): Update.
6941 (arm_compare_exidx_entries): Remove.
6942 (arm_find_exidx_entry, _initialize_arm_tdep)
6943
48c66e1d
TT
69442019-07-10 Tom Tromey <tromey@adacore.com>
6945
6946 * solib-spu.c (ocl_program_data_key): Change type.
6947 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
6948 Update.
6949
a269fbf1
TT
69502019-07-10 Tom Tromey <tromey@adacore.com>
6951
6952 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
6953 (struct solib_aix_inferior_data) <library_list>: Change type.
6954 (solib_aix_inferior_data_handle): Change type.
6955 (get_solib_aix_inferior_data): Update.
6956 (solib_aix_free_library_list): Remove.
6957 (library_list_start_library): Update.
6958 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
6959 return type.
6960 (solib_aix_get_library_list)
6961 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
6962 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
6963
c294730c
TT
69642019-07-10 Tom Tromey <tromey@adacore.com>
6965
6966 * solib-dsbt.c (struct dsbt_info): Add initializers.
6967 (solib_dsbt_pspace_data): Change type.
6968 (dsbt_pspace_data_cleanup): Remove.
6969 (get_dsbt_info, _initialize_dsbt_solib): Update.
6970
9d52077d
TT
69712019-07-10 Tom Tromey <tromey@adacore.com>
6972
6973 * spu-tdep.c (spu_overlay_data): Change type.
6974 (spu_get_overlay_table, spu_overlay_new_objfile)
6975 (_initialize_spu_tdep): Update.
6976
22a20dca
TT
69772019-07-10 Tom Tromey <tromey@adacore.com>
6978
6979 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
6980 destructor.
6981 (dbx_objfile_data_key): Change type and declare later.
6982 (DBX_SYMFILE_INFO): Rewrite.
6983 * dbxread.c (dbx_objfile_data_key): Change type.
6984 (dbx_symfile_init): Update.
6985 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
6986 (coffstab_build_psymtabs, elfstab_build_psymtabs)
6987 (stabsect_build_psymtabs, _initialize_dbxread): Update.
6988
cb60f420
TT
69892019-07-10 Tom Tromey <tromey@adacore.com>
6990
6991 * jit.c (jit_program_space_key): Change type. Move lower.
6992 (get_jit_program_space_data): Update.
6993 (jit_program_space_data_cleanup): Remove.
6994 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
6995 Update.
6996 (struct jit_program_space_data): Add initializers.
6997
51df2ae3
TT
69982019-07-10 Tom Tromey <tromey@adacore.com>
6999
7000 * solib-darwin.c (struct darwin_info): Add initializers.
7001 (solib_darwin_pspace_data): Change type.
7002 (darwin_pspace_data_cleanup): Remove.
7003 (get_darwin_info, _initialize_darwin_solib): Update.
7004
18101a35
TT
70052019-07-10 Tom Tromey <tromey@adacore.com>
7006
7007 * remote-sim.c (struct sim_inferior_data): Add initializers,
7008 constructor, and destructor.
7009 (sim_inferior_data_key): Change type. Move lower.
7010 (check_for_duplicate_sim_descriptor): Update.
7011 (get_sim_inferior_data): Use new. Update.
7012 (~sim_inferior_data_cleanup): Rename from
7013 sim_inferior_data_cleanup. Simplify.
7014 (gdbsim_close_inferior, simulator_command)
7015 (sim_command_completer, _initialize_remote_sim): Update.
7016 (next_pid, INITIAL_PID): Move earlier.
7017
05b08ac1
TT
70182019-07-10 Tom Tromey <tromey@adacore.com>
7019
7020 * python/python-internal.h (create_thread_object): Return
7021 gdbpy_ref.
7022 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7023 * python/py-inferior.c (struct threadlist_entry): Add
7024 constructor.
7025 <thread_obj>: Now a gdbpy_ref.
7026 (thread_to_thread_object): Update.
7027 (add_thread_object): Use new.
7028 (delete_thread_object): Use delete.
7029 (infpy_threads): Update.
7030 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7031 GIL.
7032
32372d80
TT
70332019-07-10 Tom Tromey <tromey@adacore.com>
7034
7035 * valops.c (value_cast): Specialize error message for Ada.
7036
5c458ae8
SM
70372019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7038
7039 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7040
4c462cb0
SM
70412019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7042
7043 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7044 bpstat_should_step): Return bool, adjust comments.
7045 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7046 bpstat_should_step): Likewise.
7047
89abbcc2
AH
70482019-07-10 Alan Hayward <alan.hayward@arm.com>
7049
7050 * features/Makefile: Use feature target descriptions for Arm.
7051 * features/arm/arm-core.c: Generate new file.
7052 * features/arm/arm-fpa.c: Likewise.
7053 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7054 * features/arm/arm-m-profile.c: Likewise.
7055 * features/arm/arm-vfpv2.c: Likewise.
7056 * features/arm/arm-vfpv3.c: Likewise.
7057 * features/arm/xscale-iwmmxt.c: Likewise.
7058 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7059
166a82be
AH
70602019-07-10 Alan Hayward <alan.hayward@arm.com>
7061
7062 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7063 ptrace earlier.
7064
9fb4c7e9
AH
70652019-07-10 Alan Hayward <alan.hayward@arm.com>
7066
7067 * features/aarch64-pauth.c: Regenerate.
7068
e2d0f980
SM
70692019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7070
7071 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7072 bool.
7073 (bpstat_what): Use false instead of 0.
7074
a38118e5
PA
70752019-07-09 Pedro Alves <palves@redhat.com>
7076
7077 * break-catch-throw.c (is_exception_catchpoint): New.
7078 * breakpoint.c (print_one_breakpoint_location): New parameter
7079 'raw_loc'. Handle it. Use
7080 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7081 looking at the breakpoint's type.
7082 (print_one_breakpoint): If handling "maint info breakpoints", also
7083 print locations of exception catchpoints.
7084 * breakpoint.h (is_exception_catchpoint): Declare.
7085
cb1e4e32
PA
70862019-07-09 Pedro Alves <palves@redhat.com>
7087
7088 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7089 "addr" field.
7090 (allocate_location_exception_catchpoint): New.
7091 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7092 (initialize_throw_catchpoint_ops): Install
7093 allocate_location_exception_catchpoint as allocate_location
7094 method.
7095 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7096 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7097 bp_loc_other.
7098 (breakpoint_address_is_meaningful): Delete.
7099 (bl_address_is_meaningful): New.
7100 (breakpoint_locations_match): Adjust comment.
7101 (bp_location_from_bp_type): New, factored out of...
7102 (bp_location::bp_location(breakpoint *)): ... this.
7103 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7104 factored out of...
7105 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7106 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7107 breakpoint_address_is_meaningful.
7108 (bp_locations_compare): Adjust comment.
7109 (update_global_location_list): Use bl_address_is_meaningful
7110 instead of breakpoint_address_is_meaningful.
7111 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7112 explicit.
7113 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7114 * python/py-breakpoint.c (bppy_get_location): No longer check
7115 whether location is null.
7116
b58a68fe
PA
71172019-07-09 Pedro Alves <palves@redhat.com>
7118
7119 PR c++/15468
7120 * breakpoint.c (print_one_breakpoint_location): Remove
7121 single-location assert.
7122
268a13a5
TT
71232019-07-09 Tom Tromey <tom@tromey.com>
7124
7125 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7126 * configure: Rebuild.
7127 * configure.ac: Change common to gdbsupport.
7128 * gdbsupport: Rename from common.
7129 * acinclude.m4: Change common to gdbsupport.
7130 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7131 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7132 gdbsupport.
7133 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7134 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7135 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7136 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7137 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7138 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7139 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7140 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7141 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7142 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7143 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7144 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7145 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7146 coff-pe-read.c, command.h, compile/compile-c-support.c,
7147 compile/compile-c.h, compile/compile-cplus-symbols.c,
7148 compile/compile-cplus-types.c, compile/compile-cplus.h,
7149 compile/compile-loc2c.c, compile/compile.c, completer.c,
7150 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7151 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7152 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7153 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7154 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7155 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7156 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7157 features/aarch64-core.c, features/aarch64-fpu.c,
7158 features/aarch64-pauth.c, features/aarch64-sve.c,
7159 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7160 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7161 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7162 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7163 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7164 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7165 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7166 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7167 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7168 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7169 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7170 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7171 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7172 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7173 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7174 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7175 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7176 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7177 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7178 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7179 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7180 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7181 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7182 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7183 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7184 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7185 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7186 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7187 minsyms.c, mips-linux-tdep.c, namespace.h,
7188 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7189 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7190 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7191 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7192 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7193 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7194 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7195 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7196 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7197 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7198 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7199 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7200 procfs.c, producer.c, progspace.h, psymtab.h,
7201 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7202 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7203 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7204 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7205 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7206 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7207 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7208 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7209 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7210 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7211 target-memory.c, target.c, target.h, target/waitstatus.c,
7212 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7213 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7214 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7215 unittests/array-view-selftests.c,
7216 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7217 unittests/common-utils-selftests.c,
7218 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7219 unittests/format_pieces-selftests.c,
7220 unittests/function-view-selftests.c,
7221 unittests/lookup_name_info-selftests.c,
7222 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7223 unittests/mkdir-recursive-selftests.c,
7224 unittests/observable-selftests.c,
7225 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7226 unittests/parse-connection-spec-selftests.c,
7227 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7228 unittests/scoped_fd-selftests.c,
7229 unittests/scoped_mmap-selftests.c,
7230 unittests/scoped_restore-selftests.c,
7231 unittests/string_view-selftests.c, unittests/style-selftests.c,
7232 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7233 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7234 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7235 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7236 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7237 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7238
5b0e2db4
AB
72392019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7240
7241 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7242 bool value.
7243 (decode_digits_ordinary): Set explicit_line field in sal.
7244 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7245 symtab_and_line that was set on an explicit line number in
7246 assembler code. Do always update the recorded symtab and line if
7247 we do skip the prologue.
7248
0ba852ab
AB
72492019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7250
7251 * breakpoint.c (set_breakpoint_location_function): Remove
7252 explicit_loc parameter.
7253 (momentary_breakpoint_from_master): Update call to
7254 set_breakpoint_location_function.
7255 (add_location_to_breakpoint): Likewise.
7256
b3a7d171
AB
72572019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7258
7259 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7260 required features based on default bfd type when no specific bfd
7261 is present.
7262
1f6f6e21
PW
72632019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7264
7265 * NEWS: Mention that GDB printf and eval commands can now print
7266 C-style and Ada-style convenience var strings without
7267 calling the inferior.
7268 * printcmd.c (printf_c_string): Locally print GDB internal var
7269 instead of transiting via the inferior.
7270 (printf_wide_c_string): Likewise.
7271
72722019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7273
5862c886 7274 PR breakpoints/25011
ea142fbf
AH
7275 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7276
0598af48
TT
72772019-07-04 Tom Tromey <tom@tromey.com>
7278
7279 PR tui/24724:
7280 * tui/tui-winsource.c (tui_clear_source_content): Update.
7281 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7282 (tui_update_breakpoint_info): Update.
7283 (tui_set_exec_info_content): Update.
7284 * tui/tui-source.c (tui_set_source_content_nil): Update.
7285 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7286 has_break.
7287 * tui/tui-data.h (enum tui_bp_flag): New.
7288 (tui_bp_flags): New enum flags type.
7289 (struct tui_source_element) <break_mode>: Change type. Rename
7290 from has_break.
7291 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7292 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7293 constants.
7294 * tui/tui-winsource.h: Fix comment.
7295
350fab54
AH
72962019-07-04 Alan Hayward <alan.hayward@arm.com>
7297
7298 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7299 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7300 (store_fpregs_to_thread)
7301 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7302 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7303 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7304 (IWMMXT_REGS_SIZE): Add define.
7305 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7306 (fetch_vfp_regs, store_vfp_regs)
7307 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7308 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7309
f0452268
AH
73102019-07-04 Alan Hayward <alan.hayward@arm.com>
7311
7312 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7313 defines.
7314 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7315 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7316 (ARM_INT_REGISTER_SIZE): ...to this.
7317 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7318 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7319 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7320 (arm_linux_collect_gregset, supply_nwfpe_register)
7321 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7322 defines.
7323 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7324 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7325 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7326 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7327 (arm_return_in_memory, arm_store_return_value)
7328 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7329 (arm_record_ld_st_multiple): Likewise.
7330 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7331 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7332
e935475c
AH
73332019-07-04 Alan Hayward <alan.hayward@arm.com>
7334
7335 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7336 AARCH64_DISPLACED_MODIFIED_INSNS.
7337 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7338 (aarch64_displaced_step_copy_insn): Likewise.
7339 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7340 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7341 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7342 ARM_DISPLACED_MODIFIED_INSNS.
7343 * arm-tdep.c (arm_gdbarch_init): Likewise.
7344 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7345 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7346 (struct arm_displaced_step_closure): Use
7347 ARM_DISPLACED_MODIFIED_INSNS.
7348
df0bb381
AH
73492019-07-04 Alan Hayward <alan.hayward@arm.com>
7350
7351 * features/Makefile: Remove unused xml files.
7352 * features/aarch64.xml: Remove.
7353 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7354 * features/i386/amd64-avx-avx512.xml: Remove.
7355 * features/i386/amd64-avx-linux.xml: Remove.
7356 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7357 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7358 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7359 * features/i386/amd64-avx-mpx.xml: Remove.
7360 * features/i386/amd64-avx.xml: Remove.
7361 * features/i386/amd64-linux.xml: Remove.
7362 * features/i386/amd64-mpx-linux.xml: Remove.
7363 * features/i386/amd64-mpx.xml: Remove.
7364 * features/i386/amd64.xml: Remove.
7365 * features/i386/i386-avx-avx512-linux.xml: Remove.
7366 * features/i386/i386-avx-avx512.xml: Remove.
7367 * features/i386/i386-avx-linux.xml: Remove.
7368 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7369 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7370 * features/i386/i386-avx-mpx-linux.xml: Remove.
7371 * features/i386/i386-avx-mpx.xml: Remove.
7372 * features/i386/i386-avx.xml: Remove.
7373 * features/i386/i386-linux.xml: Remove.
7374 * features/i386/i386-mmx-linux.xml: Remove.
7375 * features/i386/i386-mmx.xml: Remove.
7376 * features/i386/i386-mpx-linux.xml: Remove.
7377 * features/i386/i386-mpx.xml: Remove.
7378 * features/i386/i386.xml: Remove.
7379 * features/i386/x32-avx-avx512-linux.xml: Remove.
7380 * features/i386/x32-avx-linux.xml: Remove.
7381 * features/i386/x32-linux.xml: Remove.
7382
edd6266a
AH
73832019-07-04 Alan Hayward <alan.hayward@arm.com>
7384
7385 * regformats/aarch64.dat: Remove.
7386 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7387 * regformats/i386/amd64-avx-linux.dat: Remove.
7388 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7389 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7390 * regformats/i386/amd64-linux.dat: Remove.
7391 * regformats/i386/amd64-mpx-linux.dat: Remove.
7392 * regformats/i386/amd64.dat: Remove.
7393 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7394 * regformats/i386/i386-avx-linux.dat: Remove.
7395 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7396 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7397 * regformats/i386/i386-linux.dat: Remove.
7398 * regformats/i386/i386-mmx-linux.dat: Remove.
7399 * regformats/i386/i386-mpx-linux.dat: Remove.
7400 * regformats/i386/i386.dat: Remove.
7401 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7402 * regformats/i386/x32-avx-linux.dat: Remove.
7403 * regformats/i386/x32-linux.dat: Remove.
7404
2b40fda7
AH
74052019-07-04 Alan Hayward <alan.hayward@arm.com>
7406
7407 * aarch64-tdep.c: Remove xml self tests.
7408 * amd64-linux-tdep.c: Likewise.
7409 * amd64-tdep.c: Likewise.
7410 * i386-linux-tdep.c: Likewise.
7411 * i386-tdep.c: Likewise.
7412
5f4ba3e7
PA
74132019-07-03 Pedro Alves <palves@redhat.com>
7414
7415 PR cli/24732
7416 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7417 (pipe_cmd_option_defs): New.
7418 (make_pipe_cmd_options_def_group): New.
7419 (pipe_command): Use gdb::option::process_options.
7420 (pipe_command_completer): New function.
7421 (_initialize_cli_cmds): Install completer for "pipe" command.
7422
3d9be6f5
PA
74232019-07-03 Pedro Alves <palves@redhat.com>
7424
7425 * cli/cli-option.c (union option_value) <string>: New field.
7426 (struct option_def_and_value): Add ctor, move ctor, dtor and
7427 use DISABLE_COPY_AND_ASSIGN.
7428 (option_def_and_value::clear_value): New.
7429 (parse_option, save_option_value_in_ctx, get_val_type_str)
7430 (add_setshow_cmds_for_options): Handle var_string.
7431 * cli-option.h (union option_def::var_address) <string>: New
7432 field.
7433 (struct string_option_def): New.
7434 * maint-test-options.c (struct test_options_opts): Add default
7435 ctor and use DISABLE_COPY_AND_ASSIGN.
7436 <string_opt>: New field.
7437 (test_options_opts::~test_options_opts): New.
7438 (test_options_opts::dump): Also dump "-string".
7439 (test_options_option_defs): Install "string.
7440
41fc454c
PA
74412019-07-03 Pedro Alves <palves@redhat.com>
7442
7443 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7444 option_value with a null enumeration.
7445 (complete_options): Save the option values in the context.
7446 (save_option_value_in_ctx): New, factored out from ...
7447 (process_options): ... here.
7448 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7449 of the function.
7450 * maint-test-options.c (test_options_opts::dump): New, factored
7451 out from ...
7452 (maintenance_test_options_command_mode): ... here.
7453 (maintenance_test_options_command_completion_result): Delete.
7454 (maintenance_test_options_command_completion_text): Update
7455 comment.
7456 (maintenance_show_test_options_completion_result): Change
7457 prototype. Just print
7458 maintenance_test_options_command_completion_text.
7459 (save_completion_result): New.
7460 (maintenance_test_options_completer_mode): Pass options context to
7461 complete_options, and then save a dump.
7462 (_initialize_maint_test_options): Use add_cmd to install "maint
7463 show test-options-completion-result".
7464
fdbc9870
PA
74652019-07-03 Pedro Alves <palves@redhat.com>
7466
7467 * NEWS (New commands): Mention "with" and "maint with".
7468 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7469 (with_command, with_command_completer): New.
7470 (pipe_command): Adjust to new repeat_previous
7471 interface.
7472 (_initialize_cli_cmds): Install the "with" command and its "w"
7473 alias.
7474 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7475 declarations.
7476 * cli/cli-setshow.c (parse_cli_var_uinteger)
7477 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7478 argument strings for all var_types.
7479 (get_setshow_command_value_string): New, factored out from ...
7480 (do_show_command): ... this.
7481 * cli/cli-setshow.h: Include <string>.
7482 (get_setshow_command_value_string): Declare.
7483 * command.h (repeat_previous): Now returns const char *. Adjust
7484 comment.
7485 * maint.c: Include "cli/cli-cmds.h".
7486 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7487 (_initialize_maint_cmds): Register the "maintenance with" command.
7488 * top.c (repeat_previous): Move bits from pipe_command here:
7489 Return the saved command line, if any; error out if there's no
7490 command to relaunch.
7491
c6ac8931
PA
74922019-07-03 Pedro Alves <palves@redhat.com>
7493
7494 * NEWS (New commands): Mention "maint set/show test-settings"
7495 instead of "maint test-settings".
7496 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7497 (maintenance_test_settings_set_list): Rename to ...
7498 (maintenance_set_test_settings_list): ... this.
7499 (maintenance_test_settings_show_list): Rename to ...
7500 (maintenance_show_test_settings_list): ... this.
7501 (maintenance_test_settings_cmd): Delete.
7502 (maintenance_test_settings_set_cmd): ...
7503 (maintenance_set_test_settings_cmd): ... this.
7504 (maintenance_test_settings_show_cmd): ...
7505 (maintenance_show_test_settings_cmd): ... this.
7506 (maintenance_test_settings_show_value_cmd):
7507 (maintenance_show_test_settings_value_cmd): ... this.
7508 (_initialize_maint_test_settings): No longer install the "maint
7509 test-settings" prefix command. Rename "maint test-settings set"
7510 to "maint set test-settings", and "maint test-settings show" to
7511 "maint show test-settings". Adjust all subcommands.
7512
d1fcf2fd
PA
75132019-07-03 Pedro Alves <palves@redhat.com>
7514
7515 * maint-test-settings.c: Fix file's intro comment. Replace all
7516 references to "test-options" with references to "test-settings",
7517 in comments.
7518
970f9d09
PA
75192019-07-03 Pedro Alves <palves@redhat.com>
7520
7521 * maint-test-settings.c (maintenance_test_settings_xxx)
7522 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7523 New.
7524 (maintenance_test_settings_enums): Use them.
7525 (maintenance_test_settings_enum): Default to
7526 maintenance_test_settings_xxx.
7527 (_initialize_maint_test_settings): Initialize
7528 MAINTENANCE_TEST_SETTINGS_FILENAME.
7529
f3869b1a
SM
75302019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7531
7532 * breakpoint.h (remove_breakpoints_inf): Change return type to
7533 void, move function documentation here.
7534 * breakpoint.c (remove_breakpoints_inf): Change return type to
7535 void, move function documentation to header.
7536
54d66006
PA
75372019-07-02 Pedro Alves <palves@redhat.com>
7538
7539 * NEWS (Completion improvements): Mention "info threads".
7540 * thread.c (struct info_threads_opts, info_threads_option_defs)
7541 (make_info_threads_options_def_group): New.
7542 (info_threads_command): Use gdb::option::process_options.
7543 (info_threads_command_completer): New.
7544 (_initialize_thread): Use gdb::option::build_help to build the
7545 help text for "info threads".
7546
854f6088
SM
75472019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7548
7549 * defs.h (generic_load): Move from here...
7550 * symfile.h (generic_load): ... to here. Rename name parameter
7551 to args.
7552 * symfile.c (generic_load): Add comment.
7553
54ee4252
TT
75542019-07-01 Tom Tromey <tromey@adacore.com>
7555
7556 * dwarf2read.c
7557 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7558 declaration of without_params. Fix formatting.
7559
65392b3e
TT
75602019-07-01 Tom Tromey <tromey@adacore.com>
7561
7562 * ada-exp.y (find_primitive_type): Update.
7563 * ada-lang.h (ada_lookup_symbol): Update.
7564 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7565 parameter.
7566 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7567
7d7571f0
SDJ
75682019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7569
7570 PR breakpoints/24541
7571 * gdbarch.c: Regenerate.
7572 * gdbarch.h: Regenerate.
7573 * gdbarch.sh: Add 'stap_adjust_register'.
7574 * i386-tdep.c: Include '<unordered_set>'.
7575 (i386_stap_adjust_register): New function.
7576 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7577 * stap-probe.c (stap_parse_register_operand): Call
7578 'gdbarch_stap_adjust_register'.
7579
5af5392a
SDJ
75802019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7581
7582 PR python/24742
7583 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7584 * python/python.c (do_start_initialization): Use 'xmalloc'
7585 instead of 'PyMem_Malloc'.
7586
10d06d82
TT
75872019-06-28 Tom Tromey <tromey@adacore.com>
7588
7589 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7590 for Ada.
7591
1b7f24cd
TT
75922019-06-27 Tom Tromey <tromey@adacore.com>
7593
7594 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7595 objfile_key.
7596 (arm_find_mapping_symbol, arm_record_special_symbol)
7597 (_initialize_arm_tdep): Update.
7598 (arm_objfile_data_free): Remove.
7599
3d507ff2
TT
76002019-06-27 Tom Tromey <tromey@adacore.com>
7601
7602 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7603 to cp_print_static_field.
7604
762c164d
TT
76052019-06-26 Tom Tromey <tromey@adacore.com>
7606
7607 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7608 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7609 declare.
7610
aa2f9bcf
AH
76112019-06-26 Alan Hayward <alan.hayward@arm.com>
7612
7613 * features/aarch64-core.c (create_feature_aarch64_core):
7614 Regenerate.
7615 * features/aarch64-core.xml: Add cpsr flags.
7616
3426ae57
AH
76172019-06-26 Alan Hayward <alan.hayward@arm.com>
7618
7619 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7620 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7621
4838e44c
SM
76222019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7623
7624 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7625 field.
7626 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7627 use.
7628 (arm_record_special_symbol): Don't insert new symbol in sorted
7629 position, push it at the end.
7630
54cc7474
SM
76312019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7632
7633 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7634 (arm_mapping_symbol_s): Remove.
7635 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7636 (arm_mapping_symbol_vec): New typedef.
7637 (struct arm_per_objfile): Add constructor.
7638 <section_maps>: Change type to
7639 std::unique_ptr<arm_mapping_symbol_vec[]>.
7640 (arm_compare_mapping_symbols): Remove.
7641 (arm_find_mapping_symbol): Adjust to section_maps type change.
7642 (arm_objfile_data_free): Call delete on arm_per_objfile.
7643 (arm_record_special_symbol): Adjust to section_maps type change.
7644 Allocate arm_per_objfile with new.
7645
b65b566c
PW
76462019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7647
7648 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7649 with the command prefix.
7650
c2fc64f5
TT
76512019-06-25 Tom Tromey <tom@tromey.com>
7652
7653 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7654 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7655
fb54fa76
TT
76562019-06-25 Tom Tromey <tom@tromey.com>
7657
7658 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7659 type.
7660 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7661 protected.
7662
f7952c57
TT
76632019-06-25 Tom Tromey <tom@tromey.com>
7664
7665 * tui/tui-winsource.c
7666 (tui_source_window_base::set_is_exec_point_at): Add check against
7667 LOA_ADDRESS.
7668
17568d78
TT
76692019-06-25 Tom Tromey <tom@tromey.com>
7670
7671 * tui/tui-source.c (tui_set_source_content): Don't check before
7672 xfree.
7673 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7674
53e7cdba
TT
76752019-06-25 Tom Tromey <tom@tromey.com>
7676
7677 * tui/tui-winsource.h (tui_update_source_window_as_is)
7678 (tui_alloc_source_buffer, tui_line_is_displayed)
7679 (tui_addr_is_displayed): Change type of win_info.
7680 * tui/tui-winsource.c (tui_update_source_window_as_is)
7681 (tui_clear_source_content, tui_show_source_line)
7682 (tui_show_source_content, tui_source_window_base::refill)
7683 (tui_source_window_base::set_is_exec_point_at)
7684 (tui_source_window_base::set_is_exec_point_at)
7685 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7686 (tui_alloc_source_buffer, tui_line_is_displayed)
7687 (tui_addr_is_displayed): Change type of win_info. Update.
7688 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7689 (tui_source_window_base::do_make_visible_with_new_height):
7690 Update.
7691 * tui/tui-source.c (tui_set_source_content)
7692 (tui_set_source_content_nil)
7693 (tui_source_window::do_scroll_vertical): Update.
7694 * tui/tui-layout.c (show_layout): Update.
7695 * tui/tui-disasm.c (tui_set_disassem_content)
7696 (tui_disasm_window::do_scroll_vertical): Update.
7697 * tui/tui-data.h (tui_win_content): Remove.
7698 (struct tui_gen_win_info) <content, content_size>: Remove.
7699 (struct tui_source_element): Add initializers and destructor.
7700 (union tui_which_element, struct tui_win_element): Remove.
7701 (struct tui_source_window_base) <content>: New field.
7702 (struct tui_data_window): Remove destructor.
7703 (tui_alloc_content, tui_free_win_content)
7704 (tui_free_all_source_wins_content): Don't declare.
7705 * tui/tui-data.c (tui_initialize_static_data): Update.
7706 (init_content_element, tui_alloc_content): Remove.
7707 (~tui_gen_win_info): Update.
7708 (~tui_data_window, tui_free_all_source_wins_content)
7709 (tui_free_win_content, free_content, free_content_elements):
7710 Remove.
7711
7908abbf
TT
77122019-06-25 Tom Tromey <tom@tromey.com>
7713
7714 * tui/tui-winsource.h (tui_clear_source_content)
7715 (tui_erase_source_content, tui_show_source_content): Change type
7716 of win_info.
7717 * tui/tui-winsource.c (tui_clear_source_content)
7718 (tui_erase_source_content, tui_show_source_content): Change type
7719 of win_info.
7720 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7721 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7722 win_info.
7723 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7724 win_info.
7725 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7726
02c28df0
TT
77272019-06-25 Tom Tromey <tom@tromey.com>
7728
7729 * tui/tui-winsource.c (tui_clear_source_content)
7730 (tui_source_window_base::set_is_exec_point_at): Update.
7731 * tui/tui-source.c (tui_set_source_content_nil): Update.
7732 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7733 a bool.
7734 * tui/tui-data.c (init_content_element): Update.
7735
6658b1bf
TT
77362019-06-25 Tom Tromey <tom@tromey.com>
7737
7738 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7739 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7740 * tui/tui-layout.c (init_and_make_win): Update.
7741 * tui/tui.h (enum tui_win_type): Update.
7742 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7743 tui_win_is_auxillary.
7744 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7745 tui_win_is_auxillary.
7746
21e1c91e
TT
77472019-06-25 Tom Tromey <tom@tromey.com>
7748
7749 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7750 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7751 (tui_delete_data_content_windows, tui_display_all_data)
7752 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7753 Update.
7754 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7755 * tui/tui-regs.c (tui_last_regs_line_no)
7756 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7757 (tui_show_registers): Update.
7758 (tui_show_register_group): Return void. Update.
7759 (tui_display_registers_from, tui_display_reg_element_at_line)
7760 (tui_display_registers_from_line, tui_check_register_values):
7761 Update.
7762 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7763 member.
7764 (struct tui_data_window) <regs_content>: Now a std::vector.
7765 <regs_content_count>: Remove.
7766 (tui_add_content_elements, tui_free_data_content): Don't declare.
7767 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7768 (init_content_element): Remove DATA_WIN case. Add assert.
7769 (tui_add_content_elements): Remove.
7770 (tui_data_window): Update.
7771 (tui_free_data_content): Remove.
7772 (free_content_elements): Remove DATA_WIN case.
7773
115ac53b
TT
77742019-06-25 Tom Tromey <tom@tromey.com>
7775
7776 * tui/tui-data.c (tui_data_item_window): Update.
7777 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7778 * tui/tui-windata.c (tui_display_all_data)
7779 (tui_display_data_from_line): Update.
7780 (tui_check_data_values): Remove.
7781 * tui/tui-regs.c (tui_show_register_group)
7782 (tui_display_reg_element_at_line): Update.
7783 * tui/tui-hooks.c (tui_register_changed)
7784 (tui_refresh_frame_and_register_information): Call
7785 tui_check_register_values.
7786 * tui/tui-data.h (struct tui_data_window) <data_content,
7787 data_content_count, data_type>: Remove.
7788 (enum tui_data_type): Remove.
7789
7790 * tui/tui-data.c (tui_data_window::clear_detail)
7791 (~tui_data_window): Update.
7792
eaf9738b
TT
77932019-06-25 Tom Tromey <tom@tromey.com>
7794
7795 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7796 declare.
7797 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7798 Rename from tui_first_data_item_displayed. Update.
7799 (tui_data_window::refresh_all)
7800 (tui_data_window::do_scroll_vertical): Update.
7801 * tui/tui-data.h (struct tui_data_window)
7802 <first_data_item_displayed>: Declare new method.
7803
31ca4723
TT
78042019-06-25 Tom Tromey <tom@tromey.com>
7805
7806 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7807 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7808 contents...
7809 (tui_initialize_static_data): ...here.
7810
41bcff7f
TT
78112019-06-25 Tom Tromey <tom@tromey.com>
7812
7813 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7814 (tui_display_registers_from, tui_check_register_values): Update.
7815 (tui_display_register): Remove win_info parameter; update.
7816 (tui_get_register): Change type of parameters.
7817 * tui/tui-data.h (struct tui_data_element): Remove.
7818 (union tui_which_element) <data>: Remove.
7819 <data_window>: Change type.
7820 (struct tui_data_item_window): New.
7821 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7822 case. Add assert.
7823 (~tui_data_item_window): New destructor.
7824 (free_content_elements): Remove DATA_ITEM_WIN case.
7825
d2802c33
TT
78262019-06-25 Tom Tromey <tom@tromey.com>
7827
7828 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7829 Remove.
7830
dd835f8b
TT
78312019-06-25 Tom Tromey <tom@tromey.com>
7832
7833 * tui/tui-data.h (struct tui_command_element): Remove.
7834 (union tui_which_element) <command>: Remove.
7835 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7836 assert.
7837 (free_content_elements): Remove CMD_WIN case.
7838
bd7db367
TT
78392019-06-25 Tom Tromey <tom@tromey.com>
7840
7841 * tui/tui-layout.c (tui_set_layout): Update.
7842 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7843 * tui/tui-data.c (layout_def): Update.
7844
3add462f
TT
78452019-06-25 Tom Tromey <tom@tromey.com>
7846
7847 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7848 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7849 (tui_source_window_base::set_new_height): Update.
7850 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7851 Update.
7852 (tui_set_locator_fullname, tui_set_locator_info)
7853 (tui_show_frame_info): Update.
7854 * tui/tui-source.c (tui_set_source_content)
7855 (tui_source_is_displayed): Update.
7856 * tui/tui-layout.c (show_source_disasm_command, show_data)
7857 (show_source_or_disasm_and_command): Update.
7858 * tui/tui-disasm.c (tui_set_disassem_content)
7859 (tui_get_begin_asm_address): Update.
7860 * tui/tui-data.h (struct tui_locator_element): Remove.
7861 (union tui_which_element) <locator>: Remove.
7862 (struct tui_locator_window): New.
7863 (tui_locator_win_info_ptr): Change return type.
7864 * tui/tui-data.c (_locator): Change type.
7865 (tui_locator_win_info_ptr): Change return type.
7866 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7867 (tui_alloc_content): Add assert.
7868
489e9d8b
TT
78692019-06-25 Tom Tromey <tom@tromey.com>
7870
7871 * tui/tui-winsource.c
7872 (tui_exec_info_window::maybe_allocate_content): New method.
7873 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7874 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7875 (make_source_or_disasm_window): Add cast.
7876 * tui/tui-data.h (union tui_which_element) <simple_string>:
7877 Remove.
7878 (struct tui_source_info): New.
7879 (struct tui_source_window_base) <execution_info>: Change type.
7880 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7881 case, and add assert.
7882 (tui_alloc_content): Add assert.
7883
c3fabb7d
TT
78842019-06-25 Tom Tromey <tom@tromey.com>
7885
7886 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7887 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7888 * tui/tui-data.c (tui_alloc_win_info): Remove.
7889
bbc228ee
TT
78902019-06-25 Tom Tromey <tom@tromey.com>
7891
7892 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7893 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7894 can_highlight.
7895
5fcee43a
TT
78962019-06-25 Tom Tromey <tom@tromey.com>
7897
7898 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7899 make_visible_with_new_height method.
7900 (tui_win_info::make_visible_with_new_height): New method.
7901 (tui_source_window_base::do_make_visible_with_new_height)
7902 (tui_data_window::do_make_visible_with_new_height)
7903 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7904 (make_visible_with_new_height): Remove.
7905 (tui_resize_all, tui_adjust_win_heights): Use
7906 make_visible_with_new_height method.
7907 * tui/tui-data.h (struct tui_win_info)
7908 <do_make_visible_with_new_height, make_visible_with_new_height>:
7909 New methods.
7910 (struct tui_source_window_base, struct tui_data_window)
7911 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
7912 methods.
7913
d83f1fe6
TT
79142019-06-25 Tom Tromey <tom@tromey.com>
7915
7916 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
7917 method.
7918 (update_tab_width): Call update_tab_width method.
7919 * tui/tui-data.h (struct tui_win_info)
7920 (struct tui_source_window_base) <update_tab_width>: New methods.
7921
17374de4
TT
79222019-06-25 Tom Tromey <tom@tromey.com>
7923
7924 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
7925 parameter.
7926 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
7927 parameter.
7928 (tui_gen_win_info::make_visible): Update.
7929 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
7930 parameter.
7931 * tui/tui-data.h (enum tui_box): New enum.
7932 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
7933
f936bca2
TT
79342019-06-25 Tom Tromey <tom@tromey.com>
7935
7936 * tui/tui-layout.c (make_source_or_disasm_window): Always use
7937 init_and_make_win for EXEC_INFO_WIN.
7938 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
7939 longer inline.
7940 (struct tui_win_info) <~tui_win_info>: Inline.
7941 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7942 Don't declare.
7943 * tui/tui-data.c (source_win, disasm_win): Remove globals.
7944 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
7945 Remove.
7946 (tui_initialize_static_data): Update.
7947 (~tui_gen_win_info): Handle more cleanup here.
7948 (~tui_source_window_base): Delete "execution_info".
7949 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
7950
d6ba6a11
TT
79512019-06-25 Tom Tromey <tom@tromey.com>
7952
7953 * tui/tui-layout.c (make_command_window): Don't set
7954 can_highlight.
7955 (show_source_disasm_command): Call the reset method.
7956 (show_data): Don't set can_highlight. Call the reset method.
7957 (tui_gen_win_info::reset): Rename from init_gen_win_info
7958 (init_and_make_win): Simplify. Return tui_gen_win_info.
7959 (show_source_or_disasm_and_command): Call the reset method.
7960 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
7961 (struct tui_cmd_window): Set can_highlight.
7962
48a3bd16
TT
79632019-06-25 Tom Tromey <tom@tromey.com>
7964
7965 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
7966 from make_visible.
7967 (tui_make_visible, tui_make_invisible): Rewrite.
7968 (tui_win_info::make_visible): Remove.
7969 (tui_source_window_base::make_visible): Update.
7970 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
7971 method. Moved from...
7972 (struct tui_win_info) <make_visible>: ...here.
7973
c3bd716f
TT
79742019-06-25 Tom Tromey <tom@tromey.com>
7975
7976 * tui/tui-winsource.c
7977 (tui_source_window_base::do_scroll_horizontal): Remove direction
7978 parameter.
7979 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
7980 direction parameter.
7981 * tui/tui-win.c (tui_win_info::forward_scroll)
7982 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
7983 (tui_win_info::right_scroll): Update.
7984 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
7985 direction parameter.
7986 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
7987 direction parameter.
7988 * tui/tui-data.h (enum tui_scroll_direction): Remove.
7989 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
7990 Remove direction parameter.
7991 (struct tui_source_window_base, struct tui_source_window)
7992 (struct tui_disasm_window, struct tui_data_window)
7993 (struct tui_cmd_window): Update.
7994
21c32dca
TT
79952019-06-25 Tom Tromey <tom@tromey.com>
7996
7997 * tui/tui-winsource.h (tui_set_exec_info_content)
7998 (tui_show_exec_info_content, tui_erase_exec_info_content)
7999 (tui_clear_exec_info_content, tui_update_exec_info): Change
8000 argument to tui_source_window_base.
8001 * tui/tui-winsource.c (tui_set_exec_info_content)
8002 (tui_show_exec_info_content, tui_erase_exec_info_content)
8003 (tui_clear_exec_info_content, tui_update_exec_info): Change
8004 argument to tui_source_window_base.
8005
73fbdc65
TT
80062019-06-25 Tom Tromey <tom@tromey.com>
8007
8008 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8009 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8010
33325343
TT
80112019-06-25 Tom Tromey <tom@tromey.com>
8012
8013 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8014 check.
8015
29d2c474
TT
80162019-06-25 Tom Tromey <tom@tromey.com>
8017
8018 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8019 type to void.
8020 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8021 type to void.
8022 * tui/tui-source.c (tui_set_source_content): Update.
8023 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8024
152f3f4b
TT
80252019-06-25 Tom Tromey <tom@tromey.com>
8026
8027 * tui/tui-win.c (window_name_completer, tui_set_focus)
8028 (tui_all_windows_info): Use name method.
8029 * tui/tui-data.h (struct tui_gen_win_info)
8030 (struct tui_source_window, struct tui_disasm_window)
8031 (struct tui_data_window, struct tui_cmd_window) <name>: New
8032 method.
8033 (tui_win_name): Don't declare.
8034 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8035 (tui_win_name): Remove.
8036
be4da588
TT
80372019-06-25 Tom Tromey <tom@tromey.com>
8038
8039 * tui/tui-winsource.h (tui_update_source_window)
8040 (tui_update_source_window_as_is): Change parameter type.
8041 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8042 to be a tui_source_window_base.
8043 (tui_update_source_window_as_is): Likewise.
8044 * tui/tui-win.c (make_visible_with_new_height): Update.
8045
5b81daba
TT
80462019-06-25 Tom Tromey <tom@tromey.com>
8047
8048 * tui/tui-winsource.c (tui_erase_source_content)
8049 (tui_show_source_content, tui_show_exec_info_content)
8050 (tui_erase_exec_info_content): Use refresh_window method.
8051 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8052 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8053 from tui_refresh_win.
8054 (tui_data_window::refresh_window): New method.
8055 (tui_win_info::refresh, tui_source_window_base::refresh)
8056 (tui_refresh_all): Use refresh_window method.
8057 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8058 method.
8059 * tui/tui-regs.c (tui_display_register): Call refresh_window
8060 method.
8061 * tui/tui-layout.c (show_source_disasm_command)
8062 (show_source_or_disasm_and_command): Call refresh_window method.
8063 * tui/tui-data.h (struct tui_gen_win_info)
8064 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8065 New method.
8066
cb2ce893
TT
80672019-06-25 Tom Tromey <tom@tromey.com>
8068
8069 * tui/tui.c (tui_rl_other_window, tui_enable)
8070 (tui_is_window_visible, tui_get_command_dimension): Update.
8071 * tui/tui-winsource.c (tui_update_source_window_as_is)
8072 (tui_clear_source_content, tui_erase_source_content)
8073 (tui_show_source_line, tui_source_window_base::refill)
8074 (tui_source_window_base::do_scroll_horizontal)
8075 (tui_source_window_base::set_is_exec_point_at)
8076 (tui_update_breakpoint_info, tui_set_exec_info_content)
8077 (tui_alloc_source_buffer, tui_line_is_displayed)
8078 (tui_addr_is_displayed): Update.
8079 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8080 (tui_check_and_display_highlight_if_needed)
8081 (tui_win_info::make_visible, tui_win_info::refresh)
8082 (tui_refresh_all): Update.
8083 * tui/tui-windata.c (tui_first_data_item_displayed)
8084 (tui_delete_data_content_windows, tui_erase_data_content)
8085 (tui_display_all_data, tui_data_window::refresh_all)
8086 (tui_check_data_values): Update.
8087 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8088 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8089 (tui_win_info::backward_scroll, tui_refresh_all_win)
8090 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8091 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8092 (tui_source_window_base::set_new_height)
8093 (tui_data_window::set_new_height)
8094 (make_invisible_and_set_new_height)
8095 (make_visible_with_new_height, new_height_ok)
8096 (parse_scrolling_args): Update.
8097 * tui/tui-stack.c (tui_show_frame_info): Update.
8098 * tui/tui-source.c (tui_set_source_content)
8099 (tui_set_source_content_nil, tui_source_is_displayed)
8100 (tui_source_window::do_scroll_vertical): Update.
8101 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8102 (tui_display_registers_from, tui_display_reg_element_at_line)
8103 (tui_check_register_values, tui_reg_command): Update.
8104 * tui/tui-layout.c (tui_default_win_height)
8105 (show_source_disasm_command, show_data, init_and_make_win)
8106 (show_source_or_disasm_and_command): Update.
8107 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8108 (tui_redisplay_readline, tui_mld_flush)
8109 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8110 (tui_getc): Update.
8111 * tui/tui-disasm.c (tui_set_disassem_content)
8112 (tui_disasm_window::do_scroll_vertical): Update.
8113 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8114 Now virtual.
8115 (struct tui_win_info): Derive from tui_gen_win_info.
8116 <~tui_win_info>: Mark as override.
8117 <generic>: Remove member.
8118 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8119 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8120 (~tui_data_window, ~tui_win_info)
8121 (tui_free_all_source_wins_content): Update.
8122 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8123
ab313b35
TT
81242019-06-25 Tom Tromey <tom@tromey.com>
8125
8126 * tui/tui-layout.c (init_and_make_win): Use new.
8127 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8128 destructor, initializers.
8129 (tui_alloc_generic_win_info): Don't declare.
8130 * tui/tui-data.c (_locator): Add argument to constructor.
8131 (source_win, disasm_win): New globals.
8132 (exec_info): Remove.
8133 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8134 Update.
8135 (tui_alloc_generic_win_info): Remove.
8136 (init_content_element): Use new.
8137 (tui_win_info::tui_win_info): Update.
8138 (free_content_elements) <case DATA_WIN>: Use delete.
8139
dc2c33e4
TT
81402019-06-25 Tom Tromey <tom@tromey.com>
8141
8142 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8143 * tui/tui-windata.c (tui_first_data_item_displayed)
8144 (tui_delete_data_content_windows): Update.
8145 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8146 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8147 (tui_display_registers_from, tui_check_register_values): Update.
8148 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8149 pointer.
8150 * tui/tui-data.c (init_content_element): Update. Allocate the new
8151 window.
8152 (tui_free_data_content): Update.
8153 (free_content_elements) <case DATA_WIN>: Free the window.
8154
214a5cbe
TT
81552019-06-25 Tom Tromey <tom@tromey.com>
8156
8157 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8158 Update.
8159 * tui/tui-layout.c (make_command_window)
8160 (show_source_disasm_command, show_data, init_and_make_win)
8161 (show_source_or_disasm_and_command): Update.
8162 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8163 method.
8164 <can_highight, is_highlighted>: Now bool.
8165 (tui_set_win_highlight): Don't declare.
8166 * tui/tui-data.c (tui_set_win_highlight): Remove.
8167
8e2daf15
TT
81682019-06-25 Tom Tromey <tom@tromey.com>
8169
8170 * tui/tui-wingeneral.c (make_visible): Remove check of window
8171 type.
8172
8903bd8a
TT
81732019-06-25 Tom Tromey <tom@tromey.com>
8174
8175 * tui/tui-win.c (tui_win_info::max_height)
8176 (tui_cmd_window::max_height): New methods.
8177 (new_height_ok): Call max_height.
8178 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8179 <max_height>: New method.
8180
3f02ce1e
TT
81812019-06-25 Tom Tromey <tom@tromey.com>
8182
8183 * tui/tui-win.c (tui_source_window_base::set_new_height)
8184 (tui_data_window::set_new_height): New methods.
8185 (make_invisible_and_set_new_height): Call set_new_height method.
8186 * tui/tui-data.h (struct tui_win_info)
8187 (struct tui_source_window_base, struct tui_data_window)
8188 <set_new_height>: New method.
8189
1825f487
TT
81902019-06-25 Tom Tromey <tom@tromey.com>
8191
8192 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8193 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8194 tui_refresh_data_win.
8195 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8196 method.
8197 (tui_refresh_all_win): Call the refresh_all method.
8198 (tui_set_focus): Likewise.
8199 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8200 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8201 Likewise.
8202
ad54d15b
TT
82032019-06-25 Tom Tromey <tom@tromey.com>
8204
8205 * tui/tui-winsource.h (tui_refill_source_window)
8206 (tui_set_is_exec_point_at): Don't declare.
8207 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8208 (tui_source_window_base::refill): Rename from
8209 tui_refill_source_window.
8210 (tui_source_window_base::do_scroll_horizontal): Update.
8211 (tui_source_window_base::set_is_exec_point_at): Rename from
8212 tui_set_is_exec_point_at.
8213 (tui_update_all_breakpoint_info): Update.
8214 * tui/tui-stack.c (tui_show_frame_info): Update.
8215 * tui/tui-layout.c (show_data): Add cast.
8216 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8217 * tui/tui-data.h (struct tui_source_window_base) <refill,
8218 set_is_exec_point_at>: New methods.
8219 (tui_source_windows, tui_add_to_source_windows): Update types.
8220 (tui_add_to_source_windows): Remove redundant declaration.
8221 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8222 (tui_source_windows): Change return type.
8223 (tui_clear_source_windows_detail): Update.
8224 (tui_add_to_source_windows): Change type of parameter.
8225 (tui_free_all_source_wins_content): Update.
8226
2042b506
TT
82272019-06-25 Tom Tromey <tom@tromey.com>
8228
8229 * tui/tui-wingeneral.c (tui_win_info::refresh)
8230 (tui_source_window_base::refresh): New methods.
8231 (tui_refresh_all): Call the refresh method.
8232 * tui/tui-data.h (struct tui_win_info)
8233 (struct tui_source_window_base) <refresh>: New method.
8234
56122977
TT
82352019-06-25 Tom Tromey <tom@tromey.com>
8236
8237 * tui/tui.h (tui_is_window_visible): Return bool.
8238 * tui/tui.c (tui_is_window_visible): Return bool.
8239 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8240 (tui_make_visible, tui_make_invisible)
8241 (tui_win_info::make_visible)
8242 (tui_source_window_base::make_visible, make_all_visible)
8243 (tui_make_all_visible, tui_make_all_invisible): Update.
8244 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8245 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8246 bool.
8247 (struct tui_win_info, struct tui_source_window_base)
8248 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8249 * tui/tui-data.c (tui_init_generic_part): Update.
8250
cda37efb
TT
82512019-06-25 Tom Tromey <tom@tromey.com>
8252
8253 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8254 (tui_source_window_base::make_visible): New methods.
8255 (make_all_visible): Make method call.
8256 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8257 (struct tui_source_window_base, struct tui_cmd_window): Override
8258 make_visible.
8259 (tui_win_is_source_type): Don't declare.
8260 * tui/tui-data.c (tui_win_is_source_type): Remove.
8261
6a0ee02c
TT
82622019-06-25 Tom Tromey <tom@tromey.com>
8263
8264 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8265 NULL check.
8266
63901aec
TT
82672019-06-25 Tom Tromey <tom@tromey.com>
8268
8269 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8270 Inline constructor. Add initializers for members.
8271 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8272 constructors; now inline in class.
8273
ceb13a13
TT
82742019-06-25 Tom Tromey <tom@tromey.com>
8275
8276 * tui/tui-regs.c (tui_show_registers): Update.
8277 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8278 bool.
8279 * tui/tui-data.c (tui_data_window::clear_detail)
8280 (tui_data_window): Update.
8281
238eb706
TT
82822019-06-25 Tom Tromey <tom@tromey.com>
8283
8284 * tui/tui-windata.c (tui_display_all_data)
8285 (tui_display_data_from_line, tui_display_data_from)
8286 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8287 Update.
8288 * tui/tui-regs.c (tui_last_regs_line_no)
8289 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8290 (tui_show_registers, tui_show_register_group)
8291 (tui_display_registers_from, tui_display_reg_element_at_line)
8292 (tui_display_registers_from_line, tui_check_register_values)
8293 (tui_reg_next, tui_reg_prev): Update.
8294 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8295 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8296 tui_data_window.
8297 (struct tui_win_info) <detail>: Remove. Add new fields from
8298 tui_data_info.
8299 (TUI_DATA_WIN): Add cast.
8300 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8301 (~tui_data_window): Simplify.
8302
81491aa0
TT
83032019-06-25 Tom Tromey <tom@tromey.com>
8304
8305 * tui/tui-layout.c (show_source_disasm_command)
8306 (show_source_or_disasm_and_command): Update.
8307 * tui/tui-io.c (update_cmdwin_start_line)
8308 (tui_redisplay_readline): Update.
8309 * tui/tui-data.h (struct tui_command_info): Remove.
8310 (struct tui_win_info) <detail>: Remove command_info member.
8311 (struct tui_data_window) <start_line>: New member, from
8312 tui_command_info.
8313 (TUI_CMD_WIN): Add casts.
8314
e6e41501
TT
83152019-06-25 Tom Tromey <tom@tromey.com>
8316
8317 * tui/tui-winsource.c (tui_update_source_window)
8318 (tui_refill_source_window)
8319 (tui_source_window_base::do_scroll_horizontal)
8320 (tui_update_breakpoint_info, tui_set_exec_info_content)
8321 (tui_show_exec_info_content, tui_erase_exec_info_content)
8322 (tui_clear_exec_info_content): Update.
8323 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8324 Update.
8325 * tui/tui-win.c (make_invisible_and_set_new_height)
8326 (make_visible_with_new_height): Update.
8327 * tui/tui-source.c (tui_set_source_content)
8328 (tui_show_symtab_source): Update.
8329 * tui/tui-layout.c (extract_display_start_addr)
8330 (show_source_disasm_command, show_data)
8331 (make_source_or_disasm_window)
8332 (show_source_or_disasm_and_command): Update.
8333 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8334 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8335 "gdbarch".
8336 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8337 to tui_source_window_base.
8338 (struct tui_win_info) <detail>: Remove source_info member.
8339 (struct tui_source_window_base) <has_locator>: Inline.
8340 Move contents from tui_source_info; rename has_locator member to
8341 m_has_locator.
8342 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8343 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8344 header file.
8345 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8346 Simplify.
8347 (tui_free_all_source_wins_content): Cast to
8348 tui_source_window_base.
8349
44f0e208
TT
83502019-06-25 Tom Tromey <tom@tromey.com>
8351
8352 * tui/tui-win.c (make_invisible_and_set_new_height)
8353 (make_visible_with_new_height): Call has_locator method.
8354 * tui/tui-layout.c (show_source_disasm_command, show_data)
8355 (show_source_or_disasm_and_command): Update for bool change.
8356 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8357 (tui_win_info) <has_locator>: New method.
8358 (struct tui_source_window_base) <has_locator>: New method.
8359 (tui_win_has_locator): Don't declare.
8360 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8361 from tui_win_has_locator.
8362 (tui_source_window_base): Use false, not FALSE.
8363
7778b912
TT
83642019-06-25 Tom Tromey <tom@tromey.com>
8365
8366 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8367 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8368 clear_detail method directly.
8369 (tui_clear_win_detail): Remove.
8370
f83d391c
TT
83712019-06-25 Tom Tromey <tom@tromey.com>
8372
8373 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8374 "this", not TUI_DISASM_WIN.
8375
13446e05
TT
83762019-06-25 Tom Tromey <tom@tromey.com>
8377
8378 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8379 declare.
8380 * tui/tui-winsource.c
8381 (tui_source_window_base::do_scroll_horizontal): Rename from
8382 tui_horizontal_source_scroll.
8383 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8384 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8385 from tui_vertical_data_scroll.
8386 * tui/tui-win.h (tui_scroll): Don't declare.
8387 * tui/tui-win.c (tui_win_info::forward_scroll)
8388 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8389 (tui_win_info::right_scroll): Rename and update.
8390 (tui_scroll_forward_command, tui_scroll_backward_command)
8391 (tui_scroll_left_command, tui_scroll_right_command): Update.
8392 (tui_scroll): Remove.
8393 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8394 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8395 from tui_vertical_source_scroll.
8396 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8397 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8398 from tui_vertical_disassem_scroll.
8399 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8400 do_scroll_horizontal>: New methods.
8401 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8402 Likewise.
8403 (struct tui_source_window_base): Add do_scroll_horizontal.
8404 (struct tui_source_window, struct tui_disasm_window): Add
8405 do_scroll_vertical.
8406 (struct tui_data_window, struct tui_cmd_window): Add
8407 do_scroll_horizontal and do_scroll_vertical.
8408 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8409
5cf82909
TT
84102019-06-25 Tom Tromey <tom@tromey.com>
8411
8412 * tui/tui-data.h (struct tui_source_window_base): New struct.
8413 (struct tui_source_window): Derive from tui_source_window_base.
8414 (struct tui_disasm_window): New struct.
8415 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8416 from tui_source_window::clear_detail.
8417 (tui_source_window_base): Rename from tui_source_window.
8418 (~tui_source_window_base): Rename from ~tui_source_window.
8419 (tui_alloc_win_info): Create a tui_disasm_window.
8420
ee1d42d6
TT
84212019-06-25 Tom Tromey <tom@tromey.com>
8422
8423 * tui/tui-data.h (struct tui_source_window)
8424 (struct tui_data_window): Declare destructors.
8425 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8426 destructors.
8427 (tui_win_info): Simplify.
8428
b4eb2452
TT
84292019-06-25 Tom Tromey <tom@tromey.com>
8430
8431 * tui/tui-winsource.c (tui_display_main)
8432 (tui_update_source_windows_with_addr)
8433 (tui_update_all_breakpoint_info): Update.
8434 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8435 (new_height_ok, parse_scrolling_args): Update.
8436 * tui/tui-stack.c (tui_show_frame_info): Update.
8437 * tui/tui-data.h (struct tui_list): Remove.
8438 (tui_source_windows): Return a reference to a std::vector.
8439 * tui/tui-data.c (source_windows): Now a std::vector.
8440 (tui_source_windows): Change return type.
8441 (tui_clear_source_windows): Rewrite.
8442 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8443 (tui_free_all_source_wins_content): Rewrite.
8444
8761a91b
TT
84452019-06-25 Tom Tromey <tom@tromey.com>
8446
8447 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8448 (struct tui_data_window, struct tui_cmd_window): Declare
8449 clear_detail method.
8450 * tui/tui-data.c (tui_source_window::clear_detail)
8451 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8452 methods.
8453 (tui_clear_win_detail): Simplify.
8454
0ed69eda
TT
84552019-06-25 Tom Tromey <tom@tromey.com>
8456
8457 * tui/tui-layout.c (make_source_window, make_disasm_window)
8458 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8459 Return the new window.
8460 (show_source_disasm_command, show_data)
8461 (show_source_or_disasm_and_command): Update.
8462
82432e10
TT
84632019-06-25 Tom Tromey <tom@tromey.com>
8464
8465 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8466 parameter. Return the new window.
8467 (show_source_disasm_command): Update and remove NULL check.
8468 (show_source_or_disasm_and_command): Update.
8469
ec328aa5
TT
84702019-06-25 Tom Tromey <tom@tromey.com>
8471
8472 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8473
33b906ab
TT
84742019-06-25 Tom Tromey <tom@tromey.com>
8475
8476 * tui/tui-data.h (struct tui_win_info): Make constructor
8477 protected. Make destructor virtual. Add initializers.
8478 (tui_source_window, tui_data_window, tui_cmd_window): New
8479 classes.
8480 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8481 constructor. Add "type" parameter.
8482 (tui_source_window, tui_data_window, tui_cmd_window): New
8483 constructors.
8484 (tui_alloc_win_info): Instantiate the appropriate subclass.
8485
e7e11af4
TT
84862019-06-25 Tom Tromey <tom@tromey.com>
8487
8488 * tui/tui-win.c (tui_resize_all): Use delete.
8489 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8490 destructor.
8491 (tui_free_window): Don't declare.
8492 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8493 Update.
8494
6792b55e
TT
84952019-06-25 Tom Tromey <tom@tromey.com>
8496
8497 * tui/tui-data.h (struct tui_win_info): Add constructor.
8498 * tui/tui-data.c (tui_alloc_win_info): Use new.
8499 (tui_free_window): Use delete.
8500
f95675e1
TT
85012019-06-22 Tom Tromey <tom@tromey.com>
8502
8503 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8504 declare.
8505 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8506
5bff081c
TT
85072019-06-22 Tom Tromey <tom@tromey.com>
8508
8509 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8510 declare.
8511 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8512
47e3f474
TV
85132019-06-22 Tom de Vries <tdevries@suse.de>
8514
8515 * dwarf2read.c (create_addrmap_from_aranges)
8516 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8517 instead of '%zu'.
8518
fd5866f6
SM
85192019-06-21 Simon Marchi <simon.marchi@efficios.com>
8520
8521 * dwarf2read.h (dwarf2_section_info_def): Remove.
8522 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8523 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8524 std::vector<dwarf2_section_info>.
8525 (struct dwo_file) <~dwo_file>: Remove.
8526 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8527 types field.
8528 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8529 (dwarf2_read_debug_names): Likewise.
8530 (create_debug_types_hash_table): Change parameter type to
8531 array_view, adjust code accordingly.
8532 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8533 (partial_die_info::fixup): Likewise.
8534 (determine_prefix): Likewise.
8535 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8536
fb1eb2f9
SM
85372019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8538
8539 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8540 gdb_bfd_ref_ptr.
8541 <~dwo_file>: Remove call to gdb_bfd_unref.
8542 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8543 gdb_bfd_ref_ptr::get.
8544
51ac9db5
SM
85452019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8546
8547 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8548 type to htab_up.
8549 * dwarf2read.c (struct dwo_file): Initialize fields.
8550 <~dwo_file>: New.
8551 (free_dwo_file): Remove, move content to ~dwo_file.
8552 (struct dwo_file_deleter): Remove.
8553 (dwo_file_up>: Remove custom deleter.
8554 (free_dwo_files): Remove.
8555 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8556 dwo_files.
8557 (process_skeletonless_type_units): Call unique_ptr::get.
8558 (allocate_dwo_file_hash_table): Add deleter to created hash
8559 table. Change return type to htab_up.
8560 (lookup_dwo_file_slot): Don't memset dwo_file, call
8561 unique_ptr::get.
8562 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8563 (create_dwo_unit_in_dwp_v2): Likewise.
8564 (open_and_init_dwo_file): Likewise.
8565 (free_dwo_file_from_slot): Remove.
8566
dc4ccb6f
SM
85672019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8568
8569 * dwarf2read.h (struct dwarf2_section_info) <readin,
8570 is_virtual>: Change type to bool.
8571 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8572 true instead of 1.
8573
e6a1c5cb
TT
85742019-06-19 Tom Tromey <tom@tromey.com>
8575
8576 * tui/tui-data.h (tui_init_content_element): Don't declare.
8577
6f6ffbeb
TT
85782019-06-19 Tom Tromey <tom@tromey.com>
8579
8580 * tui/tui-data.h (tui_init_win_info): Don't declare.
8581
f23f598e
TV
85822019-06-19 Tom de Vries <tdevries@suse.de>
8583
8584 * dwarf2read.h (abstract_to_concrete): Change type to
8585 std::unordered_map<sect_offset, std::vector<sect_offset>,
8586 gdb::hash_enum<sect_offset>>.
8587
680e1bee
TT
85882019-06-19 Tom Tromey <tromey@adacore.com>
8589
8590 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8591 EVAL_AVOID_SIDE_EFFECTS specially.
8592
dcf37923
TT
85932019-06-19 Tom Tromey <tromey@adacore.com>
8594
8595 * source-cache.c (highlighter): New global.
8596 (source_cache::get_source_lines): Create a highlighter on demand.
8597
494986d5
AB
85982019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8599
8600 * defs.h (deprecated_interactive_hook): Delete declaration.
8601 * interps.c (clear_interpreter_hooks): Remove use of
8602 deprecated_interactive_hook.
8603 * top.c (deprecated_interactive_hook): Delete definition.
8604 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8605
3360b6e7
TV
86062019-06-18 Tom de Vries <tdevries@suse.de>
8607
8608 PR gdb/24515
8609 * dwarf2read.h (abstract_to_concrete): Change type from
8610 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8611 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8612 * dwarf2read.c (read_variable): Update.
8613 (dwarf2_fetch_die_loc_sect_off): Update.
8614
310b3441
TV
86152019-06-17 Tom de Vries <tdevries@suse.de>
8616
8617 PR gdb/24617
8618 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8619 accessing parent[parent_len - 1].
8620
ba9777be
PP
86212019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8622
8623 PR gdb/24364
8624 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8625 call dtrace_process_dof with NULL dof.
8626
2b9f6e89
TV
86272019-06-16 Tom de Vries <tdevries@suse.de>
8628
8629 PR gdb/24445
8630 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8631
431b3ead
TT
86322019-06-16 Tom Tromey <tom@tromey.com>
8633
8634 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8635 (make_all_visible): Use address of member.
8636
d04b44a1
TT
86372019-06-16 Tom Tromey <tom@tromey.com>
8638
8639 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8640 (tui_free_window, free_content, free_content_elements): Remove
8641 unnecessary cast.
8642 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8643 cast.
8644 * tui/tui-regs.c (tui_show_register_group)
8645 (tui_display_registers_from, tui_display_reg_element_at_line):
8646 Remove unnecessary cast.
8647
bf5142e7
AB
86482019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8649
8650 * linux-nat.c (normal_mask): Delete.
8651 (_initialize_linux_nat): Don't initialise normal_mask.
8652
c4973306
SM
86532019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8654
8655 PR gdb/24445
8656 * dwarf-index-write.h (write_psymtabs_to_index): Add
8657 dwz_basename parameter.
8658 * dwarf-index-write.c (write_gdbindex): Move file writing to
8659 write_gdbindex_1. Change return type void.
8660 (assert_file_size): Move up, remove filename parameter.
8661 (write_gdbindex_1): New function.
8662 (write_debug_names): Change return type to void, call
8663 assert_file_size.
8664 (struct index_wip_file): New struct.
8665 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8666 file logic to index_wip_file. Write index for dwz file if
8667 needed.
8668 (save_gdb_index_command): Pass basename of dwz file, if present.
8669 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8670 build-id of dwz file, if present.
8671 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8672 (dwarf2_get_dwz_file): Likewise.
8673 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8674 (dwarf2_get_dwz_file): Likewise.
8675
395f9c91
TT
86762019-06-16 Tom Tromey <tom@tromey.com>
8677
8678 * coffread.c (process_coff_symbol): Use xstrdup.
8679 * value.c (create_internalvar): Use xstrdup.
8680
cafb3438
TT
86812019-06-16 Tom Tromey <tom@tromey.com>
8682
8683 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8684 * breakpoint.c (stopin_command, stopat_command)
8685 (until_break_command, decode_location_default): Remove unnecessary
8686 cast.
8687 * utils.c (subset_compare): Remove unnecessary cast.
8688 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8689 cast.
8690 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8691 cast.
8692 * infcmd.c (path_command): Remove unnecessary cast.
8693 * coffread.c (decode_type): Remove unnecessary cast.
8694 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8695 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8696 * tui/tui-stack.c (tui_show_locator_content)
8697 (tui_show_frame_info): Remove unnecessary cast.
8698 * tui/tui-win.c (tui_scroll_forward_command)
8699 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8700 (parse_scrolling_args): Remove unnecessary cast.
8701 * tui/tui-data.c (init_win_info, tui_del_window)
8702 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8703 (free_content_elements): Remove unnecessary cast.
8704 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8705 unnecessary cast.
8706 * tui/tui-source.c (tui_set_source_content)
8707 (tui_vertical_source_scroll): Remove unnecessary cast.
8708 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8709 cast.
8710 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8711 * tui/tui-regs.c (tui_display_registers_from)
8712 (tui_display_register): Remove unnecessary cast.
8713 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8714 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8715 (make_visible): Remove unnecessary cast.
8716 * tui/tui-winsource.c (tui_erase_source_content)
8717 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8718 unnecessary cast.
8719 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8720 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8721 * stabsread.c (read_type, read_array_type, read_range_type):
8722 Remove unnecessary cast.
8723 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8724 (parse_symbol, parse_type, upgrade_type, parse_external)
8725 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8726 unnecessary cast.
8727 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8728
730ead81
TT
87292019-06-16 Tom Tromey <tom@tromey.com>
8730
8731 * tui/tui-data.c (tui_alloc_generic_win_info)
8732 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8733 checks.
8734
584a927c
AB
87352019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8736 Andrew Burgess <andrew.burgess@embecosm.com>
8737
8738 * f-typeprint.c (f_print_type): Don't return early for not
8739 associated or not allocated types.
8740 (f_type_print_varspec_suffix): Add print_rank parameter and print
8741 ranks of array types in case they dangling.
8742 (f_type_print_base): Add print_rank parameter.
8743
30056ea0
AB
87442019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8745
8746 * NEWS: Mention new MI commands.
8747 * break-catch-throw.c (enum exception_event_kind): Move to
8748 breakpoint.h.
8749 (print_mention_exception_catchpoint): Output text as a single
8750 message.
8751 (catch_exception_command_1): Rename to...
8752 (catch_exception_event): ...this, make non-static, update header
8753 command, and change some parameter types.
8754 (catch_catch_command): Update for changes to
8755 catch_exception_command_1.
8756 (catch_throw_command): Likewise.
8757 (catch_rethrow_command): Likewise.
8758 * breakpoint.c (enum exception_event_kind): Delete.
8759 * breakpoint.h (enum exception_event_kind): Moved here from
8760 break-catch-throw.c.
8761 (catch_exception_event): Declare.
8762 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8763 (mi_cmd_catch_throw): New function.
8764 (mi_cmd_catch_rethrow): New function.
8765 (mi_cmd_catch_catch): New function.
8766 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8767 'catch-catch' entries.
8768 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8769 (mi_cmd_catch_rethrow): Declare.
8770 (mi_cmd_catch_catch): Declare.
8771
ec8e2b6d
AB
87722019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8773
8774 * annotate.c (annotate_source_line): Change return type to void,
8775 update implementation to match.
8776 * annotate.h (annotate_source_line): Change return type to void,
8777 update header comment.
8778 * stack.c (print_frame_info): Don't change what frame information
8779 is printed based on whether annotations are on or not.
8780
0d3abd8c
AB
87812019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8782
8783 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8784 (annotate_source): Make static.
8785 (annotate_source_line): Moved from source.c and renamed from
8786 identify_source_line. Update the return type.
8787 * annotate.h (annotate_source): Delete declaration.
8788 (annotate_source_line): Declaration moved from source.h, and
8789 renamed from identify_source_line. Return type updated.
8790 * source.c (identify_source_line): Moved to annotate.c and renamed
8791 to annotate_source_line.
8792 (info_line_command): Remove check of annotation_level.
8793 * source.h (identify_source_line): Move declaration to annotate.h
8794 and rename to annotate_source_line.
8795 * stack.c: Add 'annotate.h' include.
8796 (print_frame_info): Remove check of annotation_level before
8797 calling annotate_source_line.
8798
00df30ae
AB
87992019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8800
8801 * source-cache.c (source_cache::get_plain_source_lines): Use
8802 open_source_file_with_line_charpos instead of just
8803 open_source_file, remove call to find_source_lines.
8804 (source_cache::get_source_lines): Likewise.
8805 * source.c (find_source_lines): Make static.
8806 (get_filename_and_charpos): Renamed into...
8807 (open_source_file_with_line_charpos): ..this along with changes to
8808 return a scoped_fd, and some other minor clean ups.
8809 (identify_source_line): Use open_source_file_with_line_charpos.
8810 (search_command_helper): Use open_source_file_with_line_charpos
8811 instead of just open_source_file, remove call to
8812 find_source_lines.
8813 * source.h (open_source_file_with_line_charpos): Declare new
8814 function.
8815 (find_source_lines): Delete declaration.
8816
afda45a2
AB
88172019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8818
8819 * source.c (get_filename_and_charpos): Remove fullname
8820 parameter.
8821 (identify_source_line): Update call to get_filename_and_charpos.
8822
0735b091
TT
88232019-06-14 Tom Tromey <tromey@adacore.com>
8824
8825 PR gdb/24502:
8826 * ui-style.h (skip_ansi_escape): Update comment.
8827 * ui-file.h (class no_terminal_escape_file): New class.
8828 * ui-file.c (no_terminal_escape_file::write)
8829 (no_terminal_escape_file::puts): New methods.
8830 * cli/cli-logging.c (handle_redirections): Use
8831 no_terminal_escape_file.
8832
52ce35e2
TT
88332019-06-14 Tom Tromey <tromey@adacore.com>
8834
8835 * NEWS: Move convenience variable news above Python news.
8836
73cc7272
TT
88372019-06-14 Tom Tromey <tom@tromey.com>
8838
8839 * gnulib: Move directory to top-level.
8840 * configure.ac: Don't configure gnulib.
8841 * configure: Rebuild.
8842 * common/common-defs.h: Use new path to gnulib.
8843 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8844 (GNULIB_H): Remove.
8845 (INCGNU): Look in new gnulib location.
8846 (HFILES_NO_SRCDIR): Remove gnulib files.
8847 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8848 (generated_files): Remove GNULIB_H.
8849 ($(LIBGNU), all-lib): Remove targets.
8850 (distclean): Don't mention GNULIB_BUILDDIR.
8851 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8852
f5686554
TT
88532019-06-14 Tom Tromey <tromey@adacore.com>
8854
8855 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8856 Warn if symbol file does not provide any symbols.
8857
a0c1ffed
TT
88582019-06-14 Tom Tromey <tromey@adacore.com>
8859
8860 * source.c (find_and_open_source): Respect basenames_may_differ.
8861
7c39e397
AB
88622019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8863
8864 * annotate.c (annotate_breakpoints_invalid): Make use of
8865 scoped_restore_terminal_state.
8866 (annotate_frames_invalid): Likewise.
8867
f411722c
TT
88682019-06-14 Tom Tromey <tromey@adacore.com>
8869
8870 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8871 allow assignment to an internalvar.
8872
4268ec18
TT
88732019-06-14 Tom Tromey <tromey@adacore.com>
8874
8875 * ada-lex.l: Allow "_" in attribute names.
8876
abdb711e
TT
88772019-06-14 Tom Tromey <tromey@adacore.com>
8878
8879 PR gdb/24653:
8880 * regcache.c (registers_changed): Don't call alloca.
8881 * top.c (execute_command): Don't call alloca.
8882
4c048731
PA
88832019-06-13 Pedro Alves <palves@redhat.com>
8884
8885 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8886 'expression'. When parsing an expression, error out if there's
8887 junk after "unlimited".
8888 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8889 (do_set_command): Adjust calls to is_unlimited_literal.
8890
66eb1ed3
PA
88912019-06-13 Pedro Alves <palves@redhat.com>
8892
8893 * compile/compile.c (make_compile_options_def_group): Add braces
8894 around array_view initializer.
8895 * thread.c (make_thread_apply_all_options_def_group)
8896 (make_thread_apply_all_options_def_group): Likewise.
8897
3345721a
PA
88982019-06-13 Pedro Alves <palves@redhat.com>
8899
8900 * NEWS (New commands): Mention "maint test-options
8901 require-delimiter", "maint test-options unknown-is-error", "maint
8902 test-options unknown-is-operand" and "maint show
8903 test-options-completion-result".
8904 (New command options, command completion): New section.
8905 (Completion improvements): New section.
8906 Mention that you can abbreviate "unlimited".
8907
6206060d
PA
89082019-06-13 Pedro Alves <palves@redhat.com>
8909
8910 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
8911 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
8912 * unittests/cli-utils-selftests.c (test_parse_flags)
8913 (test_parse_flags_qcs): Delete.
8914 (test_cli_utils): Don't call deleted functions.
8915
6665660a
PA
89162019-06-13 Pedro Alves <palves@redhat.com>
8917
8918 * thread.c: Include "cli/cli-option.h".
8919 (tp_array_compar_ascending): Global.
8920 (tp_array_compar): Delete function.
8921 (tp_array_compar_ascending, tp_array_compar_descending): New
8922 functions.
8923 (ascending_option_def, qcs_flag_option_def)
8924 (thr_qcs_flags_option_defs)
8925 (make_thread_apply_all_options_def_group)
8926 (make_thread_apply_options_def_group): New.
8927 (thread_apply_all_command): Use gdb::option::process_options.
8928 (thread_apply_command_completer)
8929 (thread_apply_all_command_completer): New.
8930 (thread_apply_command): Use gdb::option::process_options.
8931 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
8932 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
8933 to generate help text of "thread apply". Adjust "taas"'s help.
8934 * tid-parse.c (tid_range_parser::in_thread_range): New method.
8935 * tid-parse.h (tid_range_parser::in_thread_range): New method.
8936
f7e13587
PA
89372019-06-13 Pedro Alves <palves@redhat.com>
8938
8939 * thread.c (thread_apply_command): Check for invalid TID with
8940 isdigit instead of !isalpha.
8941
5d707134
PA
89422019-06-13 Pedro Alves <palves@redhat.com>
8943
8944 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
8945 (validate_flags_qcs): New.
8946 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
8947 (validate_flags_qcs): Declare.
8948 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
8949 (make_frame_apply_options_def_group): New.
8950 (frame_apply_command_count): Process options with
8951 gdb::option::process_options.
8952 (frame_apply_completer): New.
8953 (frame_apply_level_completer, frame_apply_all_completer)
8954 (frame_apply_completer): New.
8955 (_initialize_stack): Update help of "frame apply", "frame apply
8956 level", "frame apply all" and "faas" to mention supported options
8957 and install command completers.
8958 * stack.h (frame_apply_all_completer): Declare.
8959 * thread.c: Include "stack.h".
8960 (tfaas_command): Add "--".
8961 (_initialize_thread): Update help "tfaas" to mention supported
8962 options and install command completer.
8963
272d4594
PA
89642019-06-13 Pedro Alves <palves@redhat.com>
8965
8966 * completer.c (complete_nested_command_line): New.
8967 (gdb_completion_word_break_characters_throw): Add assertion.
8968 * completer.h (complete_nested_command_line): Declare.
8969
90a1ef87
PA
89702019-06-13 Pedro Alves <palves@redhat.com>
8971
8972 * stack.c (parse_backtrace_qualifiers): New.
8973 (backtrace_command): Use it.
8974 (backtrace_command_completer): Complete on qualifiers.
8975
d4c16835
PA
89762019-06-13 Pedro Alves <palves@redhat.com>
8977
8978 * frame.c: Include "cli/cli-option.h.
8979 (user_set_backtrace_options): New.
8980 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
8981 Delete.
8982 (get_prev_frame): Adjust.
8983 (boolean_option_def, uinteger_option_def)
8984 (set_backtrace_option_defs): New.
8985 (_initialize_frame): Adjust and use
8986 gdb::option::add_setshow_cmds_for_options to install "set
8987 backtrace past-main" and "set backtrace past-entry".
8988 * frame.h: Include "cli/cli-option.h".
8989 (struct frame_print_options): Forward declare.
8990 (print_frame_arguments_all, print_frame_arguments_scalars)
8991 (print_frame_arguments_none): Declare.
8992 (print_entry_values): Delete declaration.
8993 (struct frame_print_options, user_frame_print_options): New.
8994 (struct set_backtrace_options): New.
8995 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
8996 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8997 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8998 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
8999 (list_args_or_locals): Add frame_print_options parameter.
9000 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9001 * python/py-framefilter.c (enumerate_args): Pass down
9002 USER_FRAME_PRINT_OPTIONS.
9003 * stack.c: Include "cli/cli-option.h".
9004 (print_frame_arguments_all, print_frame_arguments_scalars)
9005 (print_frame_arguments_none): Declare.
9006 (print_raw_frame_arguments, print_entry_values): Delete.
9007 (user_frame_print_options): New.
9008 (boolean_option_def, enum_option_def, frame_print_option_defs):
9009 New.
9010 (struct backtrace_cmd_options): New.
9011 (bt_flag_option_def): New.
9012 (backtrace_command_option_defs): New.
9013 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9014 (print_frame_arg, read_frame_arg, print_frame_args)
9015 (print_frame_info, print_frame): Add frame_print_options parameter
9016 and use it.
9017 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9018 (backtrace_command_1): Add frame_print_options and
9019 backtrace_cmd_options parameters and use them.
9020 (make_backtrace_options_def_group): New.
9021 (backtrace_command): Process command options with
9022 gdb::option::process_options.
9023 (backtrace_command_completer): New.
9024 (_initialize_stack): Extend "backtrace"'s help to mention
9025 supported options. Install completer for "backtrace".
9026 Install some settings commands with add_setshow_cmds_for_options.
9027
2daf894e
PA
90282019-06-13 Pedro Alves <palves@redhat.com>
9029
9030 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9031 and that "set/show print raw frame-arguments" are now deprecated.
9032
9033 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9034 command.
9035 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9036 * stack.c (_initialize_stack): Install "set/show print
9037 raw-frame-arguments", and deprecate "set/show print raw
9038 frame-arguments".
9039 * valprint.c (_initialize_valprint): Deprecate "set/show print
9040 raw".
9041
e6ed716c
PA
90422019-06-13 Pedro Alves <palves@redhat.com>
9043
9044 * compile/compile.c (struct compile_options): New.
9045 (compile_flag_option_def, compile_command_option_defs)
9046 (make_compile_options_def_group): New.
9047 (compile_file_command): Handle options with
9048 gdb::option::process_options.
9049 (compile_file_command_completer): New function.
9050 (compile_code_command): Handle options with
9051 gdb::option::process_options.
9052 (compile_code_command_completer): New function.
9053 (_initialize_compiler): Install completers for "compile code" and
9054 "compile file". Mention available options in "compile code" and
9055 "compile code"'s help.
9056 * completer.c (advance_to_completion_word): New, factored out from
9057 ...
9058 (advance_to_expression_complete_word_point): ... this.
9059 (advance_to_filename_complete_word_point): New.
9060 * completer.h (advance_to_filename_complete_word_point): New
9061 declaration.
9062
7d8062de
PA
90632019-06-13 Pedro Alves <palves@redhat.com>
9064
9065 * compile/compile.c: Include "cli/cli-option.h".
9066 (compile_print_value): Scope data pointer is now a
9067 value_print_options pointer; adjust.
9068 (compile_print_command): Process options. Scope data pointer is
9069 now a value_print_options pointer; adjust.
9070 (_initialize_compile): Update "compile print"'s help to include
9071 supported options. Install a completer for "compile print".
9072 * cp-valprint.c (show_vtblprint, show_objectprint)
9073 (show_static_field_print): Delete.
9074 (_initialize_cp_valprint): Don't install "set print
9075 static-members", "set print vtbl", "set print object" here.
9076 * printcmd.c: Include "cli/cli-option.h" and
9077 "common/gdb_optional.h".
9078 (print_command_parse_format): Rework to fill in a
9079 value_print_options instead of a format_data.
9080 (print_value): Change parameter type from format_data pointer to
9081 value_print_options reference. Adjust.
9082 (print_command_1): Process options. Adjust to pass down a
9083 value_print_options.
9084 (print_command_completer): New.
9085 (_initialize_printcmd): Install print_command_completer as
9086 handle_brkchars completer for the "print" command. Update
9087 "print"'s help to include supported options.
9088 * valprint.c: Include "cli/cli-option.h".
9089 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9090 here from cp-valprint.c.
9091 (boolean_option_def, uinteger_option_def)
9092 (value_print_option_defs, make_value_print_options_def_group):
9093 New. Use gdb::option::add_setshow_cmds_for_options to install
9094 "set print elements", "set print null-stop", "set print repeats",
9095 "set print pretty", "set print union", "set print array", "set
9096 print address", "set print symbol", "set print array-indexes".
9097 * valprint.h: Include <string> and "cli/cli-option.h".
9098 (make_value_print_options_def_group): Declare.
9099 (print_value): Change parameter type from format_data pointer to
9100 value_print_options reference.
9101 (print_command_completer): Declare.
9102
9d0faba9
PA
91032019-06-13 Pedro Alves <palves@redhat.com>
9104
9105 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9106 (COMMON_SFILES): Add maint-test-settings.c.
9107 * cli/cli-decode.c (boolean_enums): New global, factored out from
9108 ...
9109 (add_setshow_boolean_cmd): ... here.
9110 * cli/cli-decode.h (boolean_enums): Declare.
9111 * cli/cli-option.c: New file.
9112 * cli/cli-option.h: New file.
9113 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9114 factored out from ...
9115 (parse_cli_boolean_value(const char *)): ... this.
9116 (is_unlimited_literal): Change parameter type to pointer to
9117 pointer. Adjust and advance ARG pointer.
9118 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9119 (parse_cli_var_enum): New, factored out from ...
9120 (do_set_command): ... this. Adjust.
9121 * cli/cli-setshow.h (parse_cli_boolean_value)
9122 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9123 (parse_cli_var_enum): Declare.
9124 * cli/cli-utils.c: Include "cli/cli-option.h".
9125 (get_ulongest): New.
9126 * cli/cli-utils.h (get_ulongest): Declare.
9127 (check_for_argument): New overloads.
9128 * maint-test-options.c: New file.
9129
2c722807
PA
91302019-06-13 Pedro Alves <palves@redhat.com>
9131
9132 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9133 parse a range if "-" is at the end of the string.
9134
dee7b4c8
PA
91352019-06-13 Pedro Alves <palves@redhat.com>
9136
9137 * cli/cli-setshow.c (parse_auto_binary_operation)
9138 (parse_cli_boolean_value): Don't allow "o".
9139
dca0f6c0
PA
91402019-06-13 Pedro Alves <palves@redhat.com>
9141
9142 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9143 * NEWS: Mention maint test-settings KIND.
9144 * maint-test-settings.c: New file.
9145
597bf39d
PA
91462019-06-13 Pedro Alves <palves@redhat.com>
9147
9148 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9149 completer.
9150 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9151 "set" completers.
9152
48c410fb
PA
91532019-06-13 Pedro Alves <palves@redhat.com>
9154
9155 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9156 after item.
9157
93bcb043
PA
91582019-06-13 Pedro Alves <palves@redhat.com>
9159
9160 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9161
cbba3ecd
PA
91622019-06-13 Pedro Alves <palves@redhat.com>
9163
9164 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9165 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9166 call.
9167 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9168 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9169 calls.
9170 (check_for_argument): Skip spaces after argument.
9171
b9a3f842
PA
91722019-06-13 Pedro Alves <palves@redhat.com>
9173
9174 * thread.c (thread_apply_command): Adjust TID parsing.
9175 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9176 detected before end of string.
9177 (tid_is_in_list): Error out if LIST is invalid.
9178
3844e605
PA
91792019-06-13 Pedro Alves <palves@redhat.com>
9180
9181 * completer.c (complete_line_internal_1): Rewind completion word
9182 point.
9183 (completion_tracker::advance_custom_word_point_by): Change
9184 parameter type to int.
9185 * completer.h (completion_tracker::advance_custom_word_point_by):
9186 Likewise.
9187
00b56dbe
PA
91882019-06-13 Pedro Alves <palves@redhat.com>
9189
9190 * completer.c (advance_to_completion_word): Handle delimiters.
9191
d106773e
PA
91922019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9193
9194 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9195
08f10e02
TT
91962019-06-11 Tom Tromey <tom@tromey.com>
9197
9198 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9199 (xmalloc_failed): Move to alloc.c.
9200 * alloc.c: New file.
9201 * Makefile.in (COMMON_SFILES): Add alloc.c.
9202
1c7fe951
TT
92032019-06-11 Tom Tromey <tom@tromey.com>
9204
9205 * nat/linux-waitpid.c: Don't include server.h.
9206 (linux_debug): Remove.
9207 (my_waitpid): Update.
9208
89549d7f
TT
92092019-06-11 Tom Tromey <tromey@adacore.com>
9210
9211 * infcall.c (_initialize_infcall): Remove trailing newline from
9212 help.
9213 * user-regs.c (_initialize_user_regs): Remove trailing newline
9214 from help.
9215 * typeprint.c (_initialize_typeprint): Remove trailing newline
9216 from help.
9217 * reverse.c (_initialize_reverse): Remove trailing newlines from
9218 help.
9219 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9220 from help.
9221 * language.c (add_set_language_command): Remove trailing newline
9222 from help.
9223 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9224 help.
9225 * disasm.c (_initialize_disasm): Remove trailing newline from
9226 help.
9227 * top.c (init_main): Remove trailing newline from help.
9228 * interps.c (_initialize_interpreter): Remove trailing newline
9229 from help.
9230 * btrace.c (_initialize_btrace): Remove trailing newlines from
9231 help.
9232 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9233 from help.
9234 * python/python.c (_initialize_python): Remove trailing newline
9235 from help.
9236 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9237 help.
9238 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9239 from help. Reformat some text.
9240 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9241 from help.
9242 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9243 newline from help.
9244
86108c13
TT
92452019-06-11 Tom Tromey <tromey@adacore.com>
9246
9247 * darwin-nat.c (darwin_decode_exception_message)
9248 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9249
a7067863
AB
92502019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9251
9252 * valops.c (value_slice): Check for not allocated or not
9253 associated values.
9254
9ab08412
TV
92552019-06-10 Tom de Vries <tdevries@suse.de>
9256
9257 PR gdb/24618
9258 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9259 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9260 invalid.
9261
f19e22e9
TV
92622019-06-10 Tom de Vries <tdevries@suse.de>
9263
9264 PR gdb/24611
9265 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9266 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9267
e99f9db0
TV
92682019-06-10 Tom de Vries <tdevries@suse.de>
9269
9270 PR symtab/24545
9271 * symtab.c (struct demangled_name_entry): Add language field.
9272 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9273 static minimal symbol". Set and use language field.
9274
9bf7038b
TT
92752019-06-10 Tom Tromey <tromey@adacore.com>
9276
9277 * ada-lang.c (_initialize_ada_language): Update help text.
9278
422186a9
TT
92792019-06-10 Tom Tromey <tromey@adacore.com>
9280
9281 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9282 with a newline.
9283 * guile/guile.c (handle_boot_error): Don't end warning with a
9284 newline.
9285 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9286 warning with a newline.
9287 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9288 newline.
9289 (s12z_frame_cache): Likewise.
9290 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9291 a newline.
9292 * solib-svr4.c (disable_probes_interface): Don't end warning with
9293 a newline.
9294 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9295 newline.
9296 * python/python.c (do_finish_initialization): Don't end warning
9297 with a newline.
9298
25ce02ee
TT
92992019-06-10 Tom Tromey <tom@tromey.com>
9300
9301 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9302 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9303 gdbpy_enter.
9304
caa429d8
TT
93052019-06-10 Tom Tromey <tromey@adacore.com>
9306
9307 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9308 data.
9309 (elf_new_init): Don't call stabsread_new_init.
9310 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9311 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9312 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9313
81873cc8
TV
93142019-06-10 Tom de Vries <tdevries@suse.de>
9315
9316 PR symtab/16264
9317 PR symtab/24517
9318 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9319
4fa0265e
РИ
93202019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9321
9322 * source.c (find_and_open_source): Also rewrite relative file
9323 names.
9324
1a3da2cd
AB
93252019-04-26 Amos Bird <amosbird@gmail.com>
9326
9327 * annotate.c (annotate_thread_exited): Add "thread-exited"
9328 annotation.
9329
3847a7bf
TT
93302019-06-06 Tom Tromey <tromey@adacore.com>
9331
9332 * maint.h (class scoped_command_stats): Use
9333 DISABLE_COPY_AND_ASSIGN.
9334 <print_time>: New method.
9335 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9336 print_time.
9337 (scoped_command_stats::print_time): New method.
9338
312617a3
AB
93392019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9340
9341 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9342 instructions of lengths 6 or 8 bytes.
9343
b02f78f9
PA
93442019-06-04 Pedro Alves <palves@redhat.com>
9345
9346 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9347
9348 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9349 * breakpoint.c (condition_completer): Likewise.
9350 * cli/cli-dump.c (scan_expression): Likewise.
9351 * common/filestuff.c (mkdir_recursive): Likewise.
9352 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9353 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9354 (gdb_abspath): Likewise.
9355 * compile/compile-cplus-types.c
9356 (compile_cplus_instance::decl_name): Likewise.
9357 * completer.c (complete_explicit_location):
9358 (signal_completer, reg_or_group_completer_1): Likewise.
9359 * cp-support.c (cp_remove_params_if_any): Likewise.
9360 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9361 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9362 * infcmd.c (strip_bg_char): Likewise.
9363 * linespec.c (copy_token_string): Likewise.
9364 * mi/mi-main.c (output_cores): Likewise.
9365 * psymtab.c (psymtab_search_name):
9366 * symfile.c (test_set_ext_lang_command): Likewise.
9367 * target.c (target_fileio_read_stralloc): Likewise.
9368 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9369 * value.c (complete_internalvar): Likewise.
9370
e1f2e1a2
CB
93712019-06-04 Christian Biesinger <cbiesinger@google.com>
9372
9373 Add objfile property to gdb.Type.
d3238f7d
PA
9374 * NEWS: Mention Python API addition.
9375 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9376
e664d728
PW
93772019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9378
9379 * NEWS: Mention the new set|show style [title|highlight].
9380 Mention changes to "show style", "help" and "apropos".
9381
66d8c862
PW
93822019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9383
9384 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9385 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9386 instead of print_help_for_command.
9387 (print_doc_of_command): New function.
9388 (help_list): Add 'apropos -v word' suggestion.
9389 (print_help_for_command): Style the command name using title style.
9390 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9391 (_initialize_cli_cmds): Describe -v in apropos_command help.
9392
9303eb2f
PW
93932019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9394
9395 * cli/cli-style.h (cli_style_option): Add name in constructor,
9396 add m_name class member, add constructor with intensity,
9397 add name class function.
9398 (cli_style_option::add_setshow_commands): Remove name argument.
9399 (highlight_style, title_style): New styles.
9400 * cli/cli-style.c (do_show): New function that shows a style
9401 characteristic styling the style name with itself.
9402 (set_style_name): New function.
9403 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9404 Update all callers according to the changes in cli/cli-style.h.
9405 * utils.h (fputs_highlighted): New function.
9406 * utils.c (fputs_highlighted): Likewise.
9407
e2c52041
PW
94082019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9409
9410 * NEWS: Mention new pipe command and new convenience variables.
9411
947d3946
PW
94122019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9413
9414 * cli/cli-cmds.c (pipe_command): New function.
9415 (_initialize_cli_cmds): Call add_com for pipe_command.
9416 Define | as an alias for pipe.
9417 (exit_status_set_internal_vars): New function.
9418 (shell_escape): Call exit_status_set_internal_vars.
9419 cli/cli-decode.c (find_command_name_length): Recognize | as
9420 a single character command.
9421
b8fd0918
PW
94222019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9423
9424 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9425 top.c (execute_command_to_ui_file): New function, mostly a copy
9426 of execute_command_to_string.
9427 (execute_command_to_string): Implement by calling
9428 execute_command_to_ui_file.
9429
68bb5386
PW
94302019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9431
9432 * top.h (saved_command_line): Remove declaration.
9433 * top.c (previous_saved_command_line, previous_repeat_arguments):
9434 New variables.
9435 (saved_command_line): Make static, define together with other
9436 'repeat variables'.
9437 (dont_repeat): Clear repeat_arguments.
9438 (repeat_previous, get_saved_command_line, save_command_line):
9439 New functions.
9440 (gdb_init): Initialize saved_command_line
9441 and previous_saved_command_line.
9442 * main.c (captured_main_1): Remove saved_command_line initialization.
9443 * event-top.c (handle_line_of_input): Update to use
9444 the new 'repeat' related functions instead of direct access to
9445 saved_command_line.
9446 * command.h (repeat_previous, get_saved_command_line,
9447 save_command_line): New declarations.
9448 (dont_repeat): Add comment.
9449
bfcdb852
TT
94502019-05-30 Tom Tromey <tromey@adacore.com>
9451
9452 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9453 Fix comment.
9454 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9455
0ef209f2
JV
94562019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9457
9458 PR cli/24587
9459 * completer.c (complete): Initialize variable word.
9460
955b06fa
SDJ
94612019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9462
9463 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9464 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9465 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9466 'body' is NULL to the outter 'if', protecting the '!is_define'
9467 situation as well.
9468
fa9c3fa0
TT
94692019-05-29 Tom Tromey <tromey@adacore.com>
9470
9471 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9472 (dwarf_unknown): New function.
9473 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9474 (dwarf_type_encoding_name): Use dwarf_unknown.
9475
4330d61d
TT
94762019-05-29 Tom Tromey <tromey@adacore.com>
9477
9478 PR c++/20020:
9479 * cp-valprint.c (cp_print_value_fields): Call
9480 cp_print_static_field inside "try".
9481
33a6bc35
TT
94822019-05-29 Tom Tromey <tromey@adacore.com>
9483
9484 * inflow.c (struct terminal_info): Add default operator=.
9485 * configure: Rebuild.
9486 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9487 -Wdeprecated-copy-dtor, -Wredundant-move.
9488
000439d5
TT
94892019-05-29 Tom Tromey <tromey@adacore.com>
9490
9491 * NEWS: Add entry.
9492 * infcmd.c (print_return_value_1): Handle finish_print
9493 option.
9494 (show_print_finish): New function.
9495 (_initialize_infcmd): Add "set/show print finish" commands.
9496 * valprint.c (user_print_options): Initialize new member.
9497 * valprint.h (struct value_print_options) <finish_print>: New
9498 member.
9499
c0e70c62
TT
95002019-05-28 Tom Tromey <tromey@adacore.com>
9501
9502 * ada-lang.c (ada_remove_Xbn_suffix)
9503 (find_old_style_renaming_symbol)
9504 (parse_old_style_renaming): Remove.
9505 (ada_find_renaming_symbol): Don't call
9506 find_old_style_renaming_symbol.
9507 (ada_is_renaming_symbol): Rename from
9508 ada_find_renaming_symbol. Remove "block" parameter. Return
9509 bool. Now static.
9510 (ada_read_var_value): Update and simplify.
9511 * ada-exp.y (write_var_or_type): Remove old code.
9512
766f8836
AH
95132019-05-28 Alan Hayward <alan.hayward@arm.com>
9514
68255adc 9515 PR gdb/25010
766f8836
AH
9516 * event-top.c: Remove include comment.
9517 * inflow.c (class scoped_ignore_sigttou): Move from here...
9518 * inflow.h (class scoped_ignore_sigttou): ...to here.
9519 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9520 * top.c: Remove include comment.
9521
eb41253a
TT
95222019-05-27 Tom Tromey <tom@tromey.com>
9523
9524 * NEWS: Fix typo.
9525
4ca51187
TT
95262019-05-22 Tom Tromey <tromey@adacore.com>
9527
9528 * target.c (target_follow_exec): Constify parameter.
9529 * target-delegates.c: Rebuild.
9530 * remote.c (remote_target::follow_exec): Constify parameter.
9531 * infrun.c (follow_exec): Constify parameter.
9532 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9533 (target_follow_exec): Likewise.
9534
8fca4da0
AH
95352019-05-22 Alan Hayward <alan.hayward@arm.com>
9536
9537 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9538 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9539
b7060614
AH
95402019-05-22 Alan Hayward <alan.hayward@arm.com>
9541
9542 * NEWS: Add debugredirect and testsuite sections.
9543
0a5954bd
SC
95442019-05-22 Simon Cook <simon.cook@embecosm.com>
9545
9546 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9547 target descriptions using exclusively floating point register name
9548 aliases.
9549
dc42e902
AB
95502019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9551
9552 PR gdb/18644:
9553 * f-lang.c (build_fortran_types): Handle the case where
9554 gdbarch_floatformat_for_type returns a nullptr.
9555
fb7806c7
TV
95562019-05-21 Tom de Vries <tdevries@suse.de>
9557
9558 PR cli/24587
9559 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9560
34d11c68
AB
95612019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9562
9563 PR gdb/18644:
9564 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9565 16-byte floats.
9566 * i386-tdep.c (i386_floatformat_for_type): Use
9567 floatformats_ia64_quad for the 16-byte floating point component
9568 within a fortran 32-byte complex number.
9569
122cf0f2
AB
95702019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9571
9572 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9573 delete default constructor.
9574 (find_partial_die): Update to return const struct.
9575 (partial_die_parent_scope): Move variable declaration into scope
9576 of its use and change its type to auto.
9577 (guess_partial_die_structure_name): Likewise.
9578 (partial_die_info::fixup): Likewise.
9579
33d0e35a
TT
95802019-05-17 Tom Tromey <tromey@adacore.com>
9581
9582 * source.c (find_and_open_source): Remove cast.
9583
a45575b0
TT
95842019-05-17 Tom Tromey <tromey@adacore.com>
9585
9586 * annotate.c (annotate_source): Make "filename" const.
9587 * annotate.h (annotate_source): Use const.
9588
81f47ac2
AH
95892019-05-17 Alan Hayward <alan.hayward@arm.com>
9590
9591 * disasm.c (set_disassembler_options): Send errors to stderr.
9592
ca1285d1
AH
95932019-05-17 Alan Hayward <alan.hayward@arm.com>
9594
9595 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9596 (cli_interp_base::set_logging): Check debug_redirect.
9597 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9598 * cli/cli-logging.c (debug_redirect): Add static variable.
9599 (pop_output_files): Add default param.
9600 (handle_redirections): Print debug setting.
9601 (show_logging_command): Likewise.
9602 (_initialize_cli_logging): Add debugredirect command.
9603 * interps.c (current_interp_set_logging): Add debug_redirect
9604 parameter.
9605 * interps.h (set_logging): Add debug_redirect parameter.
9606 (current_interp_set_logging): Likewise.
9607 * mi/mi-common.h: Likewise.
9608 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9609
96102019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9611 Tom Tromey <tromey@adacore.com>
9612
9613 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9614 directly.
9615 * cli/cli-interp.h (make_logging_output): Remove declaration.
9616 * cli/cli-logging.c (make_logging_output): Remove function.
9617 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9618 directly.
9619 * ui-file.c (tee_file::tee_file): Remove bools.
9620 (tee_file::~tee_file): Remove deletes.
9621 * ui-file.h (tee_file): Remove bools.
9622
26648588
JV
96232019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9624
9625 * mi/mi-cmds.h (mi_cmd_complete): New function.
9626 * mi/mi-main.c (mi_cmd_complete): Likewise.
9627 * mi/mi-cmds.c: Define new MI command -complete.
9628 * NEWS: Mention new -complete command.
9629
6e035501
JV
96302019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9631
9632 * completer.h (complete): New function.
9633 * completer.c (complete): Likewise.
9634 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9635 function defined in completer.h.
9636
7d0e2ece
JV
96372019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9638
e79be6e5 9639 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9640
fb816e8b
TV
96412019-05-17 Tom de Vries <tdevries@suse.de>
9642
9643 PR gdb/24094
9644 * dwarf2read.c (struct cu_partial_die_info): New struct.
9645 (find_partial_die): Return cu_partial_die_info.
9646 (partial_die_parent_scope, guess_partial_die_structure_name)
9647 (partial_die_info::fixup): Handle new return type of find_partial_die.
9648
677052f2
SDJ
96492019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9650
a1726c38 9651 PR breakpoints/24541
677052f2
SDJ
9652 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9653 "std::string", simplifying the algorithm.
9654
f3da9116
SDJ
96552019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9656
9657 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9658 (stap_static_probe_ops::get_probes): Likewise.
9659
f1bb75ab
SDJ
96602019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9661
9662 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9663 '-')" and "else if".
9664 (stap_parse_single_operand): Join checks for
9665 "gdbarch_stap_parse_special_token_p" and
9666 "gdbarch_stap_parse_special_token" in the same "if" statement.
9667 Invert check when verifying for operation on register
9668 displacement.
9669
3ca58cde
SDJ
96702019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9671
9672 * stap-probe.c (stap_get_opcode): Update comment.
9673 (stap_get_expected_argument_type): Likewise.
9674 (handle_stap_probe): Likewise.
9675
af2d9bee
SDJ
96762019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9677
9678 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9679 return type to 'bool'. Adjust comment. Use 'bool' when
9680 appropriate.
9681 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9682 * stap-probe.c (stap_parse_argument_1): Likewise.
9683 (stap_is_operator): Likewise.
9684 (stap_is_generic_prefix): Likewise.
9685 (stap_is_register_prefix): Likewise.
9686 (stap_is_register_indirection_prefix): Likewise.
9687 (stap_is_integer_prefix): Likewise.
9688 (stap_generic_check_suffix): Likewise.
9689 (stap_check_integer_suffix): Likewise.
9690 (stap_check_register_suffix): Likewise.
9691 (stap_check_register_indirection_suffix): Likewise.
9692 (stap_parse_register_operand): Likewise.
9693 (stap_parse_single_operand): Likewise.
9694 (stap_parse_argument_1): Likewise.
9695 (stap_probe::get_argument_count): Likewise.
9696 (stap_is_operator): Likewise.
9697
61c9c421
TT
96982019-05-16 Tom Tromey <tromey@adacore.com>
9699
9700 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9701 keyword to foreach.
9702
9ddc1af1
SM
97032019-05-15 Simon Marchi <simon.marchi@efficios.com>
9704
9705 * linux-thread-db.c (try_thread_db_load_1): Change return type
9706 to bool.
9707 (try_thread_db_load): Likewise.
9708 (try_thread_db_load_from_pdir_1): Likewise.
9709 (try_thread_db_load_from_pdir): Likewise.
9710 (try_thread_db_load_from_sdir): Likewise.
9711 (try_thread_db_load_from_dir): Likewise.
9712 (thread_db_load_search): Likewise.
9713 (has_libpthread): Likewise.
9714 (thread_db_load): Likewise.
9715
7bede828
SDJ
97162019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9717
9718 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9719 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9720 NULL, and complain/return if that's the case.
9721
c5358db4
JD
97222019-05-15 John Darrington <john@darrington.wattle.id.au>
9723
9724 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9725 (advance, posn, abstract_read_memory): New functions.
9726 [struct mem_read_abstraction]: New struct.
9727 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9728
c408a94f
TT
97292019-05-14 Tom Tromey <tromey@adacore.com>
9730
9731 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9732 value is not lval_memory.
9733
e7bd7fba
TT
97342019-05-14 Tom Tromey <tromey@adacore.com>
9735
9736 * solib.c (info_sharedlibrary_command): Style the file name.
9737
a6d0f249
AH
97382019-05-14 Alan Hayward <alan.hayward@arm.com>
9739
9740 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9741 (aarch64_vnv_type): Likewise.
9742 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9743 * common/tdesc.c: Likewise.
9744 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9745 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9746 * features/aarch64-fpu.xml: Add ieee half view.
9747 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9748 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9749 * gdbtypes.h (struct builtin_type): Likewise.
9750 (struct objfile_type): Likewise.
9751
66b8bb74
SM
97522019-05-12 Paul Naert <paul.naert@polymtl.ca>
9753
9754 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9755 typo.
9756 * location.h (string_to_event_location): Likewise.
9757
21c219fd
JB
97582019-05-11 Joel Brobecker <brobecker@adacore.com>
9759
9760 GDB 8.3 released.
9761
13674803
SM
97622019-05-10 Simon Marchi <simon.marchi@efficios.com>
9763
9764 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9765 New variable declaration.
9766 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9767 New variable.
9768 (print_one_breakpoint): Use ui_out::test_flags and new global
9769 variable to compute use_fixed_output.
9770 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9771 Remove.
9772 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9773 (mi_multi_location_breakpoint_output_fixed): Remove.
9774 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9775 new variable.
9776 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9777 fix_multi_location_breakpoint_output flag if version >= 3.
9778 * ui-out.h (enum ui_out_flag)
9779 <fix_multi_location_breakpoint_output>: New enumerator.
9780
a9eac7f9
SM
97812019-05-10 Simon Marchi <simon.marchi@efficios.com>
9782
9783 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9784
71bed2db
TT
97852019-05-10 Tom Tromey <tromey@adacore.com>
9786
9787 * ada-lang.c (catch_ada_completer): New function.
9788 (_initialize_ada_language): Use it.
9789
24c54127
TT
97902019-05-10 Tom Tromey <tromey@adacore.com>
9791
9792 * thread.c (print_thread_info): Make "requested_threads" const.
9793 * gdbthread.h (print_thread_info): Make "requested_threads"
9794 const.
9795 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9796 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9797
7a102139
TT
97982019-05-08 Tom Tromey <tom@tromey.com>
9799
9800 * gdbtypes.c (objfile_type_data): Change type.
9801 (objfile_type, _initialize_gdbtypes): Update.
9802
924d79e2
TT
98032019-05-08 Tom Tromey <tom@tromey.com>
9804
9805 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9806 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9807 (_initialize_dwarf2_frame): Update.
9808
4c58e337
TT
98092019-05-08 Tom Tromey <tom@tromey.com>
9810
9811 * objc-lang.c (objc_objfile_data): Change type.
9812 (find_methods): Update.
9813 (_initialize_objc_lang): Remove.
9814
d772d2ab
TT
98152019-05-08 Tom Tromey <tom@tromey.com>
9816
9817 * stabsread.c (rs6000_builtin_type_data): Change type.
9818 (rs6000_builtin_type, _initialize_stabsread): Update.
9819
d11d83f4
TT
98202019-05-08 Tom Tromey <tom@tromey.com>
9821
9822 * mips-tdep.c (mips_pdr_data): Remove.
9823 (_initialize_mips_tdep): Update.
9824
9a73f0ad
TT
98252019-05-08 Tom Tromey <tom@tromey.com>
9826
9827 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9828 (hppa_init_objfile_priv_data, read_unwind_info)
9829 (find_unwind_entry, _initialize_hppa_tdep): Update.
9830
8127a2fa
TT
98312019-05-08 Tom Tromey <tom@tromey.com>
9832
9833 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9834 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9835 on obstack.
9836 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9837
91d3055d
TT
98382019-05-08 Tom Tromey <tom@tromey.com>
9839
9840 * mdebugread.c (basic_type_data): Change type.
9841 (basic_type, _initialize_mdebugread): Update.
9842
31930bd3
TT
98432019-05-08 Tom Tromey <tom@tromey.com>
9844
9845 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9846
bdb3ed9e
TT
98472019-05-08 Tom Tromey <tom@tromey.com>
9848
9849 * nto-tdep.c (nto_inferior_data_reg): Change type.
9850 (nto_inferior_data): Update.
9851 (nto_inferior_data_cleanup, nto_new_inferior_data)
9852 (_initialize_nto_tdep): Remove.
9853 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9854
f37b313d
TT
98552019-05-08 Tom Tromey <tom@tromey.com>
9856
9857 * ada-lang.c (struct ada_inferior_data): Add initializers.
9858 (ada_inferior_data): Change type.
9859 (ada_inferior_data_cleanup): Remove.
9860 (get_ada_inferior_data, ada_inferior_exit)
9861 (struct ada_pspace_data): Add initializers, destructor.
9862 (ada_pspace_data_handle): Change type.
9863 (get_ada_pspace_data): Update.
9864 (ada_pspace_data_cleanup): Remove.
9865
24699405
TT
98662019-05-08 Tom Tromey <tom@tromey.com>
9867
9868 * coffread.c (struct coff_symfile_info): Add initializers.
9869 (coff_objfile_data_key): Move lower. Change type.
9870 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9871 Update.
9872 (coff_free_info): Remove.
9873
d4e05d2f
TT
98742019-05-08 Tom Tromey <tom@tromey.com>
9875
9876 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9877 (fbsd_pspace_data_handle): Move lower. Change type.
9878 (get_fbsd_pspace_data): Update.
9879 (fbsd_pspace_data_cleanup): Remove.
9880 (_initialize_fbsd_tdep): Update.
9881
14ef6690
TT
98822019-05-08 Tom Tromey <tom@tromey.com>
9883
9884 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9885 (get_ada_tasks_pspace_data): Update.
9886 (ada_tasks_pspace_data_cleanup): Remove.
9887 (_initialize_tasks): Update.
9888 (ada_tasks_inferior_data_handle): Change type.
9889 (get_ada_tasks_inferior_data): Update.
9890 (ada_tasks_inferior_data_cleanup): Remove.
9891 (struct ada_tasks_pspace_data): Add initializers.
9892
814cf43a
TT
98932019-05-08 Tom Tromey <tom@tromey.com>
9894
9895 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9896 * symfile-debug.c (debug_sym_get_probes): Change type.
9897 * stap-probe.c (handle_stap_probe):
9898 (stap_static_probe_ops::get_probes): Change type.
9899 * probe.h (class static_probe_ops) <get_probes>: Change type.
9900 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9901 (parse_probes_in_pspace): Update.
9902 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9903 Update.
9904 (any_static_probe_ops::get_probes): Change type.
9905 * elfread.c (elfread_data): New typedef.
9906 (probe_key): Change type.
9907 (elf_get_probes): Likewise. Update.
9908 (probe_key_free): Remove.
9909 (_initialize_elfread): Update.
9910 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
9911 Change type.
9912 (dtrace_process_dof_probe, dtrace_process_dof)
9913 (dtrace_static_probe_ops::get_probe): Change type.
9914
02dc647e
TT
99152019-05-08 Tom Tromey <tom@tromey.com>
9916
9917 * xcoffread.c (struct xcoff_symfile_info): Rename from
9918 coff_symfile_info. Add initializers.
9919 (xcoff_objfile_data_key): Move lower. Change type.
9920 (XCOFF_DATA): Rewrite.
9921 (xcoff_free_info): Remove.
9922 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
9923 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
9924 (xcoff_initial_scan): Update.
9925
09232438
TT
99262019-05-08 Tom Tromey <tom@tromey.com>
9927
9928 * solib-svr4.c (struct svr4_info): Add initializers and
9929 destructor.
9930 <probes_table>: Now an htab_up.
9931 (solib_svr4_pspace_data): Change type.
9932 (free_probes_table): Simplify.
9933 (~svr4_info): Rename from svr4_pspace_data_cleanup.
9934 (get_svr4_info, probes_table_htab_remove_objfile_probes)
9935 (probes_table_remove_objfile_probes, register_solib_event_probe)
9936 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
9937 (_initialize_svr4_solib): Update.
9938
7b4a314f
TT
99392019-05-08 Tom Tromey <tom@tromey.com>
9940
9941 * remote.c (remote_pspace_data): Change type.
9942 (remote_pspace_data_cleanup): Remove.
9943 (get_remote_exec_file, set_pspace_remote_exec_file)
9944 (_initialize_remote): Update.
9945
51d3063a
TT
99462019-05-08 Tom Tromey <tom@tromey.com>
9947
9948 * breakpoint.c (breakpoint_objfile_key): Change type.
9949 (get_breakpoint_objfile_data): Update.
9950 (free_breakpoint_objfile_data): Remove.
9951 (_initialize_breakpoint): Update.
9952
89fb8848
TT
99532019-05-08 Tom Tromey <tom@tromey.com>
9954
9955 * linux-tdep.c (struct linux_info): Add initializers.
9956 (linux_inferior_data): Move. Change type.
9957 (invalidate_linux_cache_inf): Update.
9958 (linux_inferior_data_cleanup): Remove.
9959 (get_linux_inferior_data, _initialize_linux_tdep): Update.
9960
e9b89e2d
TT
99612019-05-08 Tom Tromey <tom@tromey.com>
9962
9963 * auxv.c (auxv_inferior_data): Move. Change type.
9964 (auxv_inferior_data_cleanup): Remove.
9965 (invalidate_auxv_cache_inf): Rewrite.
9966 (get_auxv_inferior_data, _initialize_auxv): Update.
9967
8c42777c
TT
99682019-05-08 Tom Tromey <tom@tromey.com>
9969
9970 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
9971 (symfile_debug_objfile_data_key): Change type.
9972 (symfile_debug_installed, debug_qf_has_symbols)
9973 (debug_qf_find_last_source_symtab)
9974 (debug_qf_forget_cached_source_info)
9975 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
9976 (debug_qf_print_stats, debug_qf_dump)
9977 (debug_qf_expand_symtabs_for_function)
9978 (debug_qf_expand_all_symtabs)
9979 (debug_qf_expand_symtabs_with_fullname)
9980 (debug_qf_map_matching_symbols)
9981 (debug_qf_expand_symtabs_matching)
9982 (debug_qf_find_pc_sect_compunit_symtab)
9983 (debug_qf_map_symbol_filenames)
9984 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
9985 (debug_sym_new_init, debug_sym_init, debug_sym_read)
9986 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
9987 (debug_sym_read_linetable, debug_sym_relocate): Update.
9988 (symfile_debug_free_objfile): Remove.
9989 (install_symfile_debug_logging, _initialize_symfile_debug):
9990 Update.
9991
5bfd760d
TT
99922019-05-08 Tom Tromey <tom@tromey.com>
9993
9994 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
9995 allocate_on_obstack.
9996 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
9997 (get_dwarf2_per_objfile): Update.
9998 (set_dwarf2_per_objfile): Remove.
9999 (dwarf2_has_info, dwarf2_get_section_info): Update.
10000 (dwarf2_free_objfile): Remove.
10001 (_initialize_dwarf2_read): Update.
10002
e85e19b4
TT
100032019-05-08 Tom Tromey <tom@tromey.com>
10004
10005 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10006 initializers.
10007 <unsupported_script_warning_printed,
10008 script_not_found_warning_printed>: Now bool.
10009 (auto_load_pspace_data): Change type.
10010 (~auto_load_pspace_info): Rename from
10011 auto_load_pspace_data_cleanup.
10012 (get_auto_load_pspace_data, init_loaded_scripts_info)
10013 (clear_section_scripts, maybe_print_unsupported_script_warning)
10014 (maybe_print_script_not_found_warning, _initialize_auto_load):
10015 Update.
10016
f6aa7436
TT
100172019-05-08 Tom Tromey <tom@tromey.com>
10018
10019 * objfiles.c (objfile_pspace_info): Add destructor and
10020 initializers.
10021 (objfiles_pspace_data): Change type.
10022 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10023 (get_objfile_pspace_data): Update.
10024 (objfiles_bfd_data): Change type.
10025 (get_objfile_bfd_data): Update.
10026 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10027
6ae614f6
TT
100282019-05-08 Tom Tromey <tom@tromey.com>
10029
10030 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10031 Change type.
10032 (get_catch_syscall_inferior_data): Update.
10033 (catch_syscall_inferior_data_cleanup): Remove.
10034 (_initialize_break_catch_syscall): Update.
10035
6509b8eb
TT
100362019-05-08 Tom Tromey <tom@tromey.com>
10037
10038 * inflow.c (struct terminal_info): Add destructor and
10039 initializers.
10040 (inflow_inferior_data): Change type.
10041 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10042 (get_inflow_inferior_data, inflow_inferior_exit)
10043 (swap_terminal_info, _initialize_inflow): Update.
10044
35632941
TT
100452019-05-08 Tom Tromey <tom@tromey.com>
10046
10047 * target-dcache.c (target_dcache_cleanup): Remove.
10048 (target_dcache_aspace_key): Change type.
10049 (target_dcache_init_p, target_dcache_invalidate)
10050 (target_dcache_get, target_dcache_get_or_init)
10051 (_initialize_target_dcache): Update.
10052 * dcache.h (struct dcache_deleter): New.
10053
3017b94d
TT
100542019-05-08 Tom Tromey <tom@tromey.com>
10055
10056 * symtab.c (struct symbol_cache): Add destructor and
10057 initializers.
10058 (symbol_cache_key): Move. Change type.
10059 (make_symbol_cache, free_symbol_cache): Remove.
10060 (get_symbol_cache): Update.
10061 (symbol_cache_cleanup): Remove.
10062 (ALL_PSPACES, symbol_cache_flush)
10063 (maintenance_print_symbol_cache)
10064 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10065 Update.
10066
a32ad8c5
TT
100672019-05-08 Tom Tromey <tom@tromey.com>
10068
10069 * symtab.c (struct main_info): Add destructor and initializers.
10070 (main_progspace_key): Move. Change type.
10071 (get_main_info): Update.
10072 (main_info_cleanup): Remove.
10073 (_initialize_symtab): Update.
10074
5f6e90a0
TT
100752019-05-08 Tom Tromey <tom@tromey.com>
10076
10077 * registry.h (DECLARE_REGISTRY): Define the _key class.
10078
1bd0c6e4
AB
100792019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10080
10081 * NEWS: Merge two 'New commands' sections.
10082
2228ef77
XR
100832019-05-08 Joel Brobecker <brobecker@adacore.com>
10084
10085 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10086 parameter and use Ada language definition instead.
10087 (ada_val_print_ptr): Remove unused language parameter.
10088 (ada_val_print_num): Remove language parameter and use Ada language
10089 definition instead.
10090 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10091 parameter.
10092 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10093 parameter and use Ada language definition instead.
10094 (ada_val_print_1): Update all ada_val_print_xxx calls.
10095 Remove language parameter.
10096 (ada_val_print): Update ada_val_print_1 call.
10097
60fcc1c3
TT
100982019-05-08 Tom Tromey <tromey@adacore.com>
10099
10100 * remote.c (remote_hw_watchpoint_limit)
10101 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10102 Now static.
10103
ed2b7c17
TT
101042019-05-08 Tom Tromey <tromey@adacore.com>
10105
10106 * maint.c (_initialize_maint_cmds): Move initialization code to
10107 remote.c.
10108 (watchdog, show_watchdog): Move to remote.c.
10109 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10110 "watchdog" static.
10111 (_initialize_remote): Move initialization code from maint.c.
10112 * defs.h (watchdog): Don't declare.
10113
b0be6c91
TT
101142019-05-08 Tom Tromey <tromey@adacore.com>
10115
10116 * tui/tui-interp.c: Include main.h.
10117 * interps.c: Include main.h.
10118 * main.h (interpreter_p): Declare.
10119 * defs.h (interpreter_p): Don't declare.
10120
587ee17b
TT
101212019-05-08 Tom Tromey <tromey@adacore.com>
10122
10123 * dwarf2loc.c: Include dwarf2read.h.
10124 * defs.h (read_unsigned_leb128): Don't declare.
10125 * dwarf2read.h (read_unsigned_leb128): Declare.
10126
ca1df239
TT
101272019-05-08 Tom Tromey <tromey@adacore.com>
10128
10129 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10130 method.
10131
99f20f08
TT
101322019-05-08 Tom Tromey <tromey@adacore.com>
10133
10134 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10135 when no wrap column is set.
10136
80e55b13
TT
101372019-05-08 Tom Tromey <tromey@adacore.com>
10138
10139 * c-lang.c (c_get_string): Handle non-C-style arrays.
10140
9d3421af
TT
101412019-05-08 Tom Tromey <tromey@adacore.com>
10142
10143 * typeprint.c (print_offset_data::update): Print the bit offset,
10144 not the number of bits remaining.
10145
844333e2
TT
101462019-05-08 Tom Tromey <tromey@adacore.com>
10147
10148 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10149 padding at end of comment.
10150
988915ee
TT
101512019-05-08 Tom Tromey <tromey@adacore.com>
10152
10153 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10154 Compare main types.
10155
26bfd823
TT
101562019-05-06 Tom Tromey <tom@tromey.com>
10157
10158 * common/scoped_mmap.c: Include common-defs.h.
10159 * common/scoped_mmap.h: Don't include config.h.
10160
89055eaa
TT
101612019-05-04 Tom Tromey <tom@tromey.com>
10162
10163 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10164 (struct aarch64_call_info): Add initializers.
10165 <si>: Now a std::vector.
10166 (pass_on_stack, aarch64_push_dummy_call): Update.
10167
5da01df5
TT
101682019-05-04 Simon Marchi <simon.marchi@efficios.com>
10169 Tom Tromey <tom@tromey.com>
10170
10171 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10172 (ppc_threads): Now a std::vector. Now static.
10173 (hwdebug_find_thread_points_by_tid)
10174 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10175 Update.
10176
fbdf05a1
TT
101772019-05-04 Tom Tromey <tom@tromey.com>
10178
10179 * arc-tdep.c (arc_tdesc_init): Return bool.
10180
06d16ec9
TT
101812019-05-04 Tom Tromey <tom@tromey.com>
10182
10183 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10184 Use gdb_assert_not_reached.
10185
9c056022
TT
101862019-05-04 Tom Tromey <tom@tromey.com>
10187
10188 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10189 "false".
10190
fa9c2a59
TT
101912019-05-04 Tom Tromey <tom@tromey.com>
10192
10193 * arc-tdep.c (arc_tdesc_init): Use bool.
10194
e2eb806a
TT
101952019-05-04 Tom Tromey <tom@tromey.com>
10196
10197 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10198
6fe87677
TT
101992019-05-04 Tom Tromey <tom@tromey.com>
10200
10201 * cli/cli-cmds.c (valid_command_p): Return bool.
10202
7f008c9e
TT
102032019-05-04 Tom Tromey <tom@tromey.com>
10204
10205 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10206 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10207
b6484282
RT
102082019-05-04 Raul Tambre <raul@tambre.ee>
10209
10210 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10211 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10212 operator for comparison.
10213
af97b416
TT
102142019-05-04 Tom Tromey <tom@tromey.com>
10215
10216 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10217 (lookup_partial_symbol, print_partial_symbols)
10218 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10219 (psymbol_compare): Update.
10220 (add_psymbol_to_bcache): Clear the entire psymbol.
10221 (maintenance_check_psymtabs): Update.
10222 * psympriv.h (struct partial_symbol): Don't derive from
10223 general_symbol_info.
10224 <obj_section, unrelocated_address, address,
10225 set_unrelocated_address>: Update.
10226 <ginfo>: New member.
10227 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10228 (debug_names::write_psymbols): Update.
10229
9d6d4be8
TV
102302019-05-04 Tom de Vries <tdevries@suse.de>
10231
10232 * contrib/cc-with-tweaks.sh: Support -n arg.
10233
66452beb
PW
102342019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10235
10236 * corelow.c (core_target::detach): Ensure frame cache and
10237 register caches are cleared.
10238 inferior.c (exit_inferior_1): Likewise.
10239
bde09ab7
TT
102402019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10241 Tom Tromey <tom@tromey.com>
10242
10243 * dictionary.c (collate_pending_symbols_by_language): Remove
10244 "struct" from foreach.
10245 * symtab.c (lookup_global_symbol_from_objfile)
10246 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10247 foreach.
10248 * ser-tcp.c (net_open): Remove "struct" from foreach.
10249 * objfiles.c (objfile_relocate, objfile_rebase)
10250 (objfile_has_symbols): Remove "struct" from foreach.
10251 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10252 from foreach.
10253 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10254 foreach.
10255 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10256 "struct" from foreach.
10257 * ada-lang.c (create_excep_cond_exprs)
10258 (ada_exception_catchpoint_cond_string): Remove "struct" from
10259 foreach.
10260
222a8d25
TT
102612019-05-03 Tom Tromey <tromey@adacore.com>
10262
10263 * ada-exp.y (convert_char_literal): Check suffix of each
10264 enumerator.
10265
fcd60b84
DP
102662019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10267
10268 PR ada/21406:
10269 * ada-exp.y (yywrap): Don't define.
10270 * ada-lex.l (%option): Add noyywrap
10271 (yywrap): Remove.
10272
5f2459c2
EZ
102732019-05-03 Eli Zaretskii <eliz@gnu.org>
10274
353ea2d1
EZ
10275 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10276 _WIN32_WINNT to the XP level, unless already defined to a higher
10277 level.
10278
10279 * unittests/parse-connection-spec-selftests.c:
10280 * ser-tcp.c:
10281 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10282 override.
10283
5f2459c2
EZ
10284 * symfile.c (find_separate_debug_file): Remove colon from the
10285 drive spec of DOS/Windows file names of the target, so that the
10286 file name produced from DEBUGDIR and the target's directory will
10287 be valid on DOS/Windows systems.
10288
80062eb9
AB
102892019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10290
10291 * rust-lang.c (val_print_struct): Handle printing structures
10292 containing strings.
10293
b8c05e85
TT
102942019-05-02 Tom Tromey <tromey@adacore.com>
10295
10296 * valarith.c (_initialize_valarith): Remove.
10297
4504bbde
TT
102982019-05-01 Tom Tromey <tromey@adacore.com>
10299
10300 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10301 bitfields.
10302
d48e62f4
TT
103032019-05-01 Tom Tromey <tromey@adacore.com>
10304
10305 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10306 for big-endian copies.
10307
15f18d14
AT
103082019-04-30 Ali Tamur <tamur@google.com>
10309 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10310 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10311 (read_3_bytes): New function.
10312
ab4ee614
JB
103132019-04-30 Joel Brobecker <brobecker@adacore.com>
10314
10315 * windows-nat.c (main_thread_id): Delete.
10316 (handle_output_debug_string): Replace main_thread_id by
10317 current_event.dwThreadId.
10318 (fake_create_process): Likewise.
10319 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10320 Do not set main_thread_id.
10321 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10322 current_event.dwThreadId.
10323 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10324
8ed5b76e
JB
103252019-04-30 Joel Brobecker <brobecker@adacore.com>
10326
10327 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10328 Use current_event.dwThreadId instead of main_thread_id.
10329
2ff0a947
TT
103302019-04-30 Tom Tromey <tromey@adacore.com>
10331
10332 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10333 (create_excep_cond_exprs): Iterate over program spaces.
10334 (ada_exception_catchpoint_cond_string): Examine all minimal
10335 symbols for exception types.
10336
a776957c
TT
103372019-04-30 Tom Tromey <tromey@adacore.com>
10338
10339 PR c++/24470:
10340 * dwarf2read.c (process_structure_scope): Handle case where type
10341 has template parameters but no symbol was created.
10342
bc68014d
AB
103432019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10344 Chris January <chris.january@arm.com>
10345
10346 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10347 qualifier.
10348 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10349
f1fdc960
AB
103502019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10351
10352 * f-typeprint.c (f_print_type): Update rules for printing
10353 whitespace.
10354 (f_type_print_varspec_suffix): Likewise.
10355
bf7a4de1
AB
103562019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10357 Chris January <chris.january@arm.com>
10358
10359 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10360 function arguments.
10361
bbe75b9d
AB
103622019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10363
10364 * f-lang.c (build_fortran_types): Change name of void type to
10365 lower case.
10366 * f-typeprint.c (f_type_print_base): Print the name of the void
10367 type, rather than a fixed string.
10368 * f-valprint.c (f_decorations): Use lower case void string.
10369
1db455a7
AB
103702019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10371 Chris January <chris.january@arm.com>
10372
10373 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10374 types for Fortran.
10375
b6d03bb2
AB
103762019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10377 Chris January <chris.january@arm.com>
10378 David Lecomber <david.lecomber@arm.com>
10379
10380 * f-exp.y (BINOP_INTRINSIC): New token.
10381 (exp): New parser rule handling BINOP_INTRINSIC.
10382 (f77_keywords): Add new builtin procedures.
10383 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10384 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10385 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10386 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10387 (print_unop_subexp_f): New function.
10388 (print_binop_subexp_f): New function.
10389 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10390 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10391 (dump_subexp_body_f): Likewise.
10392 (operator_check_f): Likewise.
10393 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10394 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10395
83228e93
AB
103962019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10397
10398 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10399 UNOP_KIND.
10400 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10401 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10402 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10403 (operator_length_f): New fuction.
10404 (print_subexp_f): New function.
10405 (op_name_f): New function.
10406 (dump_subexp_body_f): New function.
10407 (operator_check_f): New function.
10408 (exp_descriptor_f): Replace standard expression handling functions
10409 with new functions.
10410 * gdb/fortran-operator.def: New file.
10411 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10412 * gdb/std-operator.def: Remove UNOP_KIND.
10413
6fdcd7cc
AB
104142019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10415
10416 * std-operator.def: Remove unbalanced, stray double quote
10417 character.
10418
2e62ab40
AB
104192019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10420 Chris January <chris.january@arm.com>
10421 Daniel Everett <daniel.everett@arm.com>
10422 Nick Forrington <nick.forrington@arm.com>
10423 Richard Bunt <richard.bunt@arm.com>
10424
10425 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10426 of depth when printing anonymous structs or unions.
10427 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10428 Don't print either the top-level value, or the children if the
10429 max-depth is exceeded.
10430 (ppscm_print_children): When printing the key of a map, allow one
10431 extra level of depth.
10432 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10433 print either the top-level value, or the children if the max-depth
10434 is exceeded.
10435 (print_children): When printing the key of a map, allow one extra
10436 level of depth.
10437 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10438 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10439 (user_print_options): Initialise max_depth field.
10440 (val_print_scalar_or_string_type_p): New function.
10441 (val_print): Check to see if the max depth has been reached.
10442 (val_print_check_max_depth): Define new function.
10443 (show_print_max_depth): New function.
10444 (_initialize_valprint): Add 'print max-depth' option.
10445 * valprint.h (struct value_print_options) <max_depth>: New field.
10446 (val_print_check_max_depth): Declare new function.
10447 * NEWS: Document new feature.
10448
4be290b2
AB
104492019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10450
10451 * ada-lang.c (ada_language_defn): Initialise new field.
10452 * c-lang.c (c_is_string_type_p): New function.
10453 (c_language_defn): Initialise new field.
10454 (cplus_language_defn): Initialise new field.
10455 (asm_language_defn): Initialise new field.
10456 (minimal_language_defn): Initialise new field.
10457 * c-lang.h (c_is_string_type_p): Declare new function.
10458 * d-lang.c (d_language_defn): Initialise new field.
10459 * f-lang.c (f_is_string_type_p): New function.
10460 (f_language_defn): Initialise new field.
10461 * go-lang.c (go_is_string_type_p): New function.
10462 (go_language_defn): Initialise new field.
10463 * language.c (default_is_string_type_p): New function.
10464 (unknown_language_defn): Initialise new field.
10465 (auto_language_defn): Initialise new field.
10466 * language.h (struct language_defn) <la_is_string_type_p>: New
10467 member variable.
10468 (default_is_string_type_p): Declare new function.
10469 * m2-lang.c (m2_language_defn): Initialise new field.
10470 * objc-lang.c (objc_language_defn): Initialise new field.
10471 * opencl-lang.c (opencl_language_defn): Initialise new field.
10472 * p-lang.c (pascal_is_string_type_p): New function.
10473 (pascal_language_defn): Initialise new field.
10474 * rust-lang.c (rust_is_string_type_p): New function.
10475 (rust_language_defn): Initialise new field.
10476
721b08c6
AB
104772019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10478
10479 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10480 New field.
10481 * ada-lang.c (ada_language_defn): Initialise new field.
10482 * c-lang.c (c_language_defn): Likewise.
10483 (cplus_language_defn): Likewise.
10484 (asm_language_defn): Likewise.
10485 (minimal_language_defn): Likewise.
10486 * d-lang.c (d_language_defn): Likewise.
10487 * f-lang.c (f_language_defn): Likewise.
10488 * go-lang.c (go_language_defn): Likewise.
10489 * language.c (unknown_language_defn): Likewise.
10490 (auto_language_defn): Likewise.
10491 * m2-lang.c (m2_language_defn): Likewise.
10492 * objc-lang.c (objc_language_defn): Likewise.
10493 * opencl-lang.c (opencl_language_defn): Likewise.
10494 * p-lang.c (pascal_language_defn): Likewise.
10495 * rust-lang.c (rust_language_defn): Likewise.
10496
fc913e53
AB
104972019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10498
10499 * ada-lang.c (ada_is_character_type): Change return type to bool.
10500 (ada_is_string_type): Likewise.
10501 * ada-lang.h (ada_is_character_type): Update declaration
10502 (ada_is_string_type): Likewise.
10503
fa731fa0
PW
105042019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10505
10506 Support style in 'frame|thread apply'
10507
10508 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10509 * record.c (record_start, record_stop): Update callers of
10510 execute_command_to_string with false.
10511 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10512 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10513 methods.
10514 (class string_file): New constructor with term_out parameter.
10515 Override methods term_out and can_emit_style_escape. New member
10516 term_out.
10517 (class stdio_file): Override can_emit_style_escape.
10518 (class tee_file): Override term_out and can_emit_style_escape.
10519 * utils.h (can_emit_style_escape): Remove.
10520 * utils.c (can_emit_style_escape): Likewise.
10521 Update all callers of can_emit_style_escape (SOMESTREAM) to
10522 SOMESTREAM->can_emit_style_escape.
10523 * source-cache.c (source_cache::get_source_lines): Likewise.
10524 * stack.c (frame_apply_command_count): Call execute_command_to_string
10525 passing the term_out characteristic of the current gdb_stdout.
10526 * thread.c (thr_try_catch_cmd): Likewise.
10527 * top.c (execute_command_to_string): pass term_out parameter
10528 to construct the string_file for the command output.
10529 * ui-file.c (term_cli_styling): New function (most code moved
10530 from utils.c can_emit_style_escape).
10531 (string_file::string_file, string_file::can_emit_style_escape,
10532 stdio_file::can_emit_style_escape, tee_file::term_out,
10533 tee_file::can_emit_style_escape): New functions.
10534
136afab8
PW
105352019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10536
10537 * NEWS: Mention the new set|show may-call-functions.
10538 * infcall.c (may_call_functions_p): New variable.
10539 (show_may_call_functions_p): New function.
10540 (call_function_by_hand_dummy): Throws an error if not
10541 may-call-functions.
10542 (_initialize_infcall): Call add_setshow_boolean_cmd for
10543 may-call-functions.
10544
725cbb63
KS
105452019-04-25 Keith Seitz <keiths@redhat.com>
10546
10547 PR c++/24367
10548 * cp-support.c (inspect_type): Don't attempt substitutions
10549 of symbol with the same name.
10550
3d1cbb78
TT
105512019-04-25 Tom Tromey <tromey@adacore.com>
10552
10553 PR gdb/24475:
10554 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10555 static.
10556
94aeb44b
TT
105572019-04-25 Tom Tromey <tromey@adacore.com>
10558
10559 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10560 rvalue reference.
10561 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10562 (gdb_xml_parser::parse): Use std::move.
10563 * python/python-internal.h (gdbpy_convert_exception): Take a const
10564 reference.
10565 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10566 std::move.
10567 * python/py-utils.c (gdbpy_convert_exception): Take a const
10568 reference.
10569 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10570 Use std::move.
10571 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10572 Use std::move.
10573 * mi/mi-main.c (mi_print_exception): Take a const reference.
10574 * main.c (handle_command_errors): Take a const reference.
10575 * linespec.c (parse_linespec): Use std::move.
10576 * infcall.c (run_inferior_call): Use std::move.
10577 (call_function_by_hand_dummy): Use std::move.
10578 * exec.c (try_open_exec_file): Use std::move.
10579 * exceptions.h (exception_print, exception_fprintf)
10580 (exception_print_same): Update.
10581 * exceptions.c (print_exception, exception_print)
10582 (exception_fprintf, exception_print_same): Change parameters to
10583 const reference.
10584 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10585 * common/new-op.c: Use std::move.
10586 * common/common-exceptions.h (struct gdb_exception): Add move
10587 constructor.
10588 (struct gdb_exception_error, struct gdb_exception_quit, struct
10589 gdb_quit_bad_alloc): Change constructor to move constructor.
10590 (throw_exception): Change parameter to rvalue reference.
10591 * common/common-exceptions.c (throw_exception): Take rvalue
10592 reference.
10593 * cli/cli-interp.c (safe_execute_command): Use std::move.
10594 * breakpoint.c (insert_bp_location, location_to_sals): Use
10595 std::move.
10596
680d7fd5
TT
105972019-04-25 Tom Tromey <tromey@adacore.com>
10598
10599 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10600 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10601 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10602 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10603 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10604 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10605 guile/scm-value.c: Use unpack.
10606 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10607 gdbscm_gdb_exception.
10608 (gdbscm_throw_gdb_exception): Likewise.
10609 (struct gdbscm_gdb_exception): New.
10610 (unpack): New function.
10611 (gdbscm_wrap): Use unpack.
10612
c6fdd8b2
TT
106132019-04-25 Tom Tromey <tromey@adacore.com>
10614
10615 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10616 (gdb_rl_callback_handler): Use std::move.
10617 * common/common-exceptions.h (struct gdb_exception): Add move
10618 assignment operator.
10619 (throw_exception_sjlj): Change "exception" to const reference.
10620 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10621 (throw_exception_sjlj): Change "exception" to const reference.
10622
cc06b668
TT
106232019-04-25 Tom Tromey <tromey@adacore.com>
10624
10625 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10626 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10627 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10628 Update.
10629 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10630 Update.
10631 * mi/mi-interp.c (mi_interp::exec): Update.
10632 * linespec.c (parse_linespec): Update.
10633 * infcall.c (run_inferior_call): Update.
10634 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10635 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10636 (gdbscm_lookup_global_symbol): Update.
10637 * guile/scm-param.c (gdbscm_parameter_value): Update.
10638 * guile/scm-frame.c (gdbscm_frame_read_register)
10639 (gdbscm_frame_read_var): Update.
10640 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10641 * exec.c (try_open_exec_file): Update.
10642 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10643 (gdb_rl_callback_handler): Update.
10644 * common/common-exceptions.h (exception_none): Don't declare.
10645 * common/common-exceptions.c (exception_none): Don't define.
10646 (struct catcher) <exception>: Update.
10647 * cli/cli-interp.c (safe_execute_command): Update.
10648 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10649
cf532bd1
AT
106502019-04-25 Ali Tamur <tamur@google.com>
10651
10652 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10653 (read_attribute_value): Likewise.
10654 (dwarf2_read_addr_index): Update comment.
10655 (read_str_index): Add DW_FORM_strx.
10656 (dwarf2_string_attr): Likewise.
10657 (dwarf2_const_value_attr): Likewise.
10658 (dump_die_shallow): Likewise.
10659 (dwarf2_fetch_constant_bytes): Likewise.
10660 (skip_form_bytes): Likewise.
10661 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10662
82433e3e
SDJ
106632019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10664
10665 PR corefiles/11608
10666 PR corefiles/18187
10667 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10668 OFFSET. Verify if current mapping contains an ELF header.
10669 (linux_find_memory_regions_full): Adjust call to
10670 dump_mapping_p.
10671
723adb65
SL
106722019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10673 Kang Li <kanglictf@gmail.com>
10674
10675 PR gdb/21600
10676
10677 * dwarf2-frame.c (read_initial_length): Be consistent about using
10678 unsigned representation of length.
10679 (decode_frame_entry_1): Likewise. Check for wraparound of
10680 end pointer as well as buffer overflow.
10681
596179f7
SDJ
106822019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10683
10684 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10685 "vq".
10686
a59240a4
TT
106872019-04-24 Tom Tromey <tromey@adacore.com>
10688
10689 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10690
f872fdbb
AB
106912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10692
10693 * s12z-tdep.c (s12z_unwind_pc): Delete.
10694 (s12z_unwind_sp): Delete.
10695 (s12z_gdbarch_init): Don't register deleted functions with
10696 gdbarch.
10697
b614e6f3
AB
106982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10699
10700 * rl78-tdep.c (rl78_unwind_sp): Delete.
10701 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10702
14faed38
AB
107032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10704
10705 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10706 (xstormy16_unwind_pc): Delete.
10707 (xstormy16_dummy_id): Delete.
10708 (xstormy16_gdbarch_init): Don't register deleted functions with
10709 gdbarch.
10710
541aad8a
AB
107112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10712
10713 * vax-tdep.c (vax_unwind_pc): Delete.
10714 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10715
29222070
AB
107162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10717
10718 * v850-tdep.c (v850_unwind_sp): Delete.
10719 (v850_unwind_pc): Delete.
10720 (v850_dummy_id): Delete.
10721 (v850_gdbarch_init): Don't register deleted functions with
10722 gdbarch.
10723
0f534d76
AB
107242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10725
10726 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10727 (tilegx_unwind_pc): Delete.
10728 (tilegx_unwind_dummy_id): Delete.
10729 (tilegx_gdbarch_init): Don't register deleted functions with
10730 gdbarch.
10731
1ba7b7f9
AB
107322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10733
10734 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10735 (tic6x_dummy_id): Delete.
10736 (tic6x_gdbarch_init): Don't register deleted functions with
10737 gdbarch.
10738
d31f262c
AB
107392019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10740
10741 * sparc-tdep.c (sparc_unwind_pc): Delete.
10742 (sparc32_gdbarch_init): Don't register deleted function with
10743 gdbarch.
10744
6d14d64d
AB
107452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10746
10747 * sh-tdep.c (sh_unwind_sp): Delete.
10748 (sh_unwind_pc): Delete.
10749 (sh_dummy_id): Delete.
10750 (sh_gdbarch_init): Don't register deleted functions with
10751 gdbarch.
10752
a40dde9d
AB
107532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10754
10755 * score-tdep.c (score_unwind_sp): Delete.
10756 (score_unwind_pc): Delete.
10757 (score_dummy_id): Delete.
10758 (score_gdbarch_init): Don't register deleted functions with
10759 gdbarch.
10760
47c47d69
AB
107612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10762
10763 * rx-tdep.c (rx_unwind_pc): Delete.
10764 (rx_unwind_sp): Delete.
10765 (rx_dummy_id): Delete.
10766 (rx_gdbarch_init): Don't register deleted functions with
10767 gdbarch. Update comment.
10768
833a4480
AB
107692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10770
10771 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10772 (rs6000_dummy_id): Delete.
10773 (rs6000_gdbarch_init): Don't register deleted functions with
10774 gdbarch.
10775
3f2cef49
AB
107762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10777
10778 * or1k-tdep.c (or1k_dummy_id): Delete.
10779 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10780
96acf884
AB
107812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10782
10783 * nios2-tdep.c (nios2_dummy_id): Delete.
10784 (nios2_unwind_sp): Delete.
10785 (nios2_gdbarch_init): Don't register deleted functions with
10786 gdbarch.
10787
ca0ab0aa
AB
107882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10789
10790 * nds32-tdep.c (nds32_dummy_id): Delete.
10791 (nds32_unwind_pc): Delete.
10792 (nds32_unwind_sp): Delete.
10793 (nds32_gdbarch_init): Don't register deleted functions with
10794 gdbarch.
10795
c8259044
AB
107962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10797
10798 * msp430-tdep.c (msp430_unwind_pc): Delete.
10799 (msp430_unwind_sp): Delete.
10800 (msp430_dummy_id): Delete.
10801 (msp430_gdbarch_init): Don't register deleted functions with
10802 gdbarch.
10803
27f113c8
AB
108042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10805
10806 * moxie-tdep.c (moxie_unwind_sp): Delete.
10807 (moxie_unwind_pc): Delete.
10808 (moxie_dummy_id): Delete.
10809 (moxie_gdbarch_init): Don't register deleted functions with
10810 gdbarch.
10811
aee6c3cd
AB
108122019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10813
10814 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10815 (mn10300_unwind_pc): Delete.
10816 (mn10300_unwind_sp): Delete.
10817 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10818 mn10300_unwind_sp.
10819 (mn10300_frame_unwind_init): Don't register deleted functions with
10820 gdbarch.
10821
8e2b5aea
AB
108222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10823
10824 * mep-tdep.c (mep_unwind_pc): Delete.
10825 (mep_unwind_sp): Delete.
10826 (mep_dummy_id): Delete.
10827 (mep_gdbarch_init): Don't register deleted functions with
10828 gdbarch.
10829
43cf3ede
AB
108302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10831
10832 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10833 (m68hc11_unwind_sp): Delete.
10834 (m68hc11_gdbarch_init): Don't register deleted functions with
10835 gdbarch.
10836
5e79b7bb
AB
108372019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10838
10839 * m32r-tdep.c (m32r_unwind_sp): Delete.
10840 (m32r_unwind_pc): Delete.
10841 (m32r_dummy_id): Delete.
10842 (m32r_gdbarch_init): Don't register deleted functions with
10843 gdbarch.
10844
89b268d8
AB
108452019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10846
10847 * m32c-tdep.c (m32c_unwind_pc): Delete.
10848 (m32c_unwind_sp): Delete.
10849 (m32c_dummy_id): Delete.
10850 (m32c_gdbarch_init): Don't register deleted functions with
10851 gdbarch.
10852
946c28d2
AB
108532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10854
10855 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10856 (lm32_unwind_pc): Delete.
10857 (lm32_dummy_id): Delete.
10858 (lm32_gdbarch_init): Don't register deleted functions with
10859 gdbarch.
10860
bf12844a
AB
108612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10862
10863 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10864 (iq2000_unwind_pc): Delete.
10865 (iq2000_dummy_id): Delete.
10866 (iq2000_gdbarch_init): Don't register deleted functions with
10867 gdbarch.
10868
ecbc06d2
AB
108692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10870
10871 * nds32-tdep.c (nds32_type_align): Delete.
10872 (nds32_push_dummy_call): Use type_align instead.
10873
030197b4
AB
108742019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10875
10876 * arm-tdep.c (arm_type_align): Only handle vector override case.
10877 (arm_push_dummy_call): Use type_align.
10878 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10879
b907456c
AB
108802019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10881
10882 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10883 case.
10884 (pass_on_stack): Use type_align.
10885 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10886 function.
10887
9e97ba43
TT
108882019-04-23 Tom Tromey <tromey@adacore.com>
10889
10890 * dwarf2read.c (line_header::file_name_at): Remove unused
10891 overload.
10892
6892f601
TV
108932019-04-23 Tom de Vries <tdevries@suse.de>
10894
10895 PR gdb/24438
10896 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10897 invocation.
10898
336d760d
AT
10899
109002019-03-27 Ali Tamur <tamur@google.com>
10901
10902 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10903 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10904 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10905 (dwarf_expr_context::get_addr_index): Likewise
10906 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10907 (symbol_needs_eval_context::get_addr_index): Likewise
10908 (disassemble_dwarf_expression): Add DW_OP_addrx
10909 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
10910 (read_cutu_die_from_dwo): Update comment
10911 (skip_one_die): Add DW_FORM_addrx
10912 (read_attribute_value): Likewise
10913 (var_decode_location): Add DW_OP_addrx
10914 (dwarf2_const_value_attr): Add DW_FORM_addrx
10915 (dump_die_shallow): Likewise
10916 (dwarf2_fetch_constant_bytes): Likewise
10917 (decode_locdesc): Add DW_OP_addrx
10918 (skip_form_bytes): Add DW_FORM_addrx
10919
ad9d13f8
AT
109202019-04-22 Ali Tamur <tamur@google.com>
10921
10922 * MAINTAINERS (Write After Approval): Add self.
10923
d70cc3ba
SM
109242019-04-22 Simon Marchi <simon.marchi@efficios.com>
10925
10926 * solib-svr4.c (get_svr4_info): Add pspace parameter.
10927 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
10928 (open_symbol_file_object): Likewise.
10929 (svr4_default_sos): Add info parameter.
10930 (svr4_read_so_list): Likewise.
10931 (svr4_current_sos_direct): Adjust functions calls to pass down
10932 info.
10933 (svr4_current_sos_1): Add info parameter.
10934 (svr4_current_sos): Call get_svr4_info, pass info down to
10935 svr4_current_sos_1.
10936 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
10937 get_svr4_info.
10938 (svr4_in_dynsym_resolve_code): Pass current_program_space to
10939 get_svr4_info.
10940 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
10941 to get_svr4_info.
10942 (probes_table_remove_objfile_probes): Likewise.
10943 (register_solib_event_probe): Add info parameter.
10944 (solist_update_incremental): Pass info parameter down to
10945 svr4_read_so_list.
10946 (disable_probes_interface): Add info parameter.
10947 (svr4_handle_solib_event): Pass current_program_space to
10948 get_svr4_info. Adjust disable_probes_interface cleanup.
10949 (svr4_create_probe_breakpoints): Add info parameter, pass it
10950 down to register_solib_event_probe.
10951 (svr4_create_solib_event_breakpoints): Add info parameter,
10952 pass it down to svr4_create_probe_breakpoints.
10953 (enable_break): Pass info down to
10954 svr4_create_solib_event_breakpoints.
10955 (svr4_solib_create_inferior_hook): Pass current_program_space to
10956 get_svr4_info.
10957 (svr4_clear_solib): Likewise.
10958
7905fc35
PA
109592019-04-22 Pedro Alves <palves@redhat.com>
10960
10961 * solib-svr4.c (svr4_free_objfile_observer): New.
10962 (probe_and_action::objfile): New field.
10963 (probes_table_htab_remove_objfile_probes)
10964 (probes_table_remove_objfile_probes): New functions.
10965 (register_solib_event_probe): Add 'objfile' parameter. Store it
10966 in the new probe_and_action. Don't store the probe in 'lookup'.
10967 (svr4_create_probe_breakpoints): Pass objfile to
10968 register_solib_event_probe.
10969 (_initialize_svr4_solib): Register a free_objfile observer.
10970
fb881986
TT
109712019-04-19 Tom Tromey <tom@tromey.com>
10972
10973 * common/queue.h: Remove.
10974
8732db6c
TT
109752019-04-19 Tom Tromey <tom@tromey.com>
10976
10977 * event-loop.c: Don't include "common/queue.h".
10978
97dfbadd
TT
109792019-04-19 Tom Tromey <tom@tromey.com>
10980
10981 * remote.c (remote_target): Use delete.
10982 * remote-notif.h: Include <list>, not "common/queue.h".
10983 (notif_client_p): Remove typedef.
10984 (remote_notif_state): Add constructor, destructor, initializer.
10985 <notif_queue>: Now a std::list.
10986 (remote_notif_state_xfree): Don't declare.
10987 * remote-notif.c (remote_notif_process, handle_notification)
10988 (remote_notif_state_allocate): Update.
10989 (~remote_notif_state): Rename from remote_notif_state_xfree.
10990
cf250e36
TT
109912019-04-19 Tom Tromey <tom@tromey.com>
10992
10993 * symfile.c (reread_symbols): Update.
10994 * objfiles.c (objfile_register_static_link)
10995 (objfile_lookup_static_link): Update
10996 (~objfile) Don't delete static_links.
10997 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
10998
61f4b350
TT
109992019-04-19 Tom Tromey <tom@tromey.com>
11000
11001 * type-stack.h (struct type_stack) <insert>: Constify string.
11002 * type-stack.c (type_stack::insert): Constify string.
11003 * gdbtypes.h (lookup_template_type): Update.
11004 (address_space_name_to_int): Update.
11005 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11006 const.
11007 (lookup_template_type): Make name const.
11008 * c-exp.y: Update rules.
11009 (lex_one_token, classify_name, classify_inner_name)
11010 (c_print_token): Update.
11011 * p-exp.y: Update rules.
11012 (yylex): Update.
11013 * f-exp.y: Update rules.
11014 (yylex): Update.
11015 * d-exp.y: Update rules.
11016 (lex_one_token, classify_name, classify_inner_name): Update.
11017 * parse.c (write_dollar_variable, copy_name): Return std::string.
11018 * parser-defs.h (copy_name): Change return type.
11019 * m2-exp.y: Update rules.
11020 (yylex): Update.
11021 * go-exp.y (lex_one_token): Update.
11022 Update rules.
11023 (classify_unsafe_function, classify_packaged_name)
11024 (classify_name, yylex): Update.
11025
189b8c2e
ST
110262019-04-19 Sergei Trofimovich <siarheit@google.com>
11027
11028 * configure.ac: add --enable-source-highlight switch.
11029 * configure: Regenerate.
11030 * top.c (print_gdb_version): plumb --enable-source-highlight
11031 status to "show configuration".
11032
8ecb59f8
TT
110332019-04-19 Tom Tromey <tromey@adacore.com>
11034
11035 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11036 Check ADA_TYPE_P.
11037 (empty_record, ada_template_to_fixed_record_type_1)
11038 (template_to_static_fixed_type)
11039 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11040 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11041 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11042 macros.
11043
62160ec9
TT
110442019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11045
11046 PR symtab/24423:
11047 * source.c (print_source_lines_base): Advance "iter" when a
11048 control character is seen.
11049
f2ae8bc8
PW
110502019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11051
11052 * inferior.h (struct infcall_suspend_state_deleter):
11053 Catch exception in destructor to avoid crash.
11054
d563b953
PW
110552019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11056
11057 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11058 close to the add_com "shell".
11059
dc34c897
TT
110602019-04-18 Tom Tromey <tromey@adacore.com>
11061
11062 * process-stratum-target.h (class process_stratum_target)
11063 <stratum>: Add "final".
11064
a12e5744
TT
110652019-04-17 Tom Tromey <tromey@adacore.com>
11066
11067 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11068 against nullptr before use.
11069
a7e559cc
AH
110702019-04-17 Alan Hayward <alan.hayward@arm.com>
11071
11072 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11073
c01660c6
AB
110742019-04-17 Jim Wilson <jimw@sifive.com>
11075 Andrew Burgess <andrew.burgess@embecosm.com>
11076
11077 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11078 code read might fail, assume 4-byte breakpoint in that case.
11079
4aa866af
LS
110802019-04-15 Leszek Swirski <leszeks@google.com>
11081
11082 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11083 rather than a hand-rolled POD check when checking for forced MEMORY
11084 classification.
11085
48574d91
AH
110862019-04-15 Alan Hayward <alan.hayward@arm.com>
11087
11088 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11089 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11090 function.
11091 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11092 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11093 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11094 declaration.
11095
4da037ef
AH
110962019-04-15 Alan Hayward <alan.hayward@arm.com>
11097
11098 * aarch64-linux-nat.c
11099 (aarch64_linux_nat_target::thread_architecture): Add override.
11100 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11101 each VQ.
11102
ccb8d7e8
AH
111032019-04-15 Alan Hayward <alan.hayward@arm.com>
11104
11105 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11106
35add35e
AB
111072019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11108
11109 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11110 target types of size 96-bits, add some additional comments, and
11111 check that the builtin type we found was the correct size.
11112
51196bbc
EZ
111132019-04-12 Eli Zaretskii <eliz@gnu.org>
11114
11115 * utils.c (prompt_for_continue): Don't restore the styling at the
11116 end, as applied_style has the wrong value. This fixes styling in
11117 long lists of file names that are interrupted by the "Continue?"
11118 prompt.
11119
62253a61
AB
111202019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11121
11122 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11123 * c-lang.c (c_language_defn): Likewise.
11124 (cplus_language_defn): Likewise.
11125 (asm_language_defn): Likewise.
11126 (minimal_language_defn): Likewise.
11127 * d-lang.c (d_language_defn): Likewise.
11128 * f-lang.c (f_language_defn): Likewise.
11129 * go-lang.c (go_language_defn): Likewise.
11130 * language.c (unknown_language_defn): Likewise.
11131 (auto_language_defn): Likewise.
11132 * language.h (struct language_defn): Remove la_magic field.
11133 (LANG_MAGIC): Delete.
11134 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11135 * objc-lang.c (objc_language_defn): Likewise.
11136 * opencl-lang.c (opencl_language_defn): Likewise.
11137 * p-lang.c (pascal_language_defn): Likewise.
11138 * rust-lang.c (rust_language_defn): Likewise.
11139
a9158a86
AB
111402019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11141
11142 * riscv-tdep.c (riscv_type_align): New function.
11143 (riscv_type_alignment): Delete.
11144 (riscv_arg_location): Use 'type_align'.
11145 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11146
41077b66
AB
111472019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11148
11149 * gdbtypes.c (type_align): A struct with no non-static fields also
11150 has alignment of 1.
11151
9f0272f8
AB
111522019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11153
11154 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11155 component to 0.
11156 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11157 member.
11158 (riscv_struct_info::analyse): New implementation using new
11159 analyse_inner member function.
11160 (riscv_struct_info::field_offset): New member function.
11161 (riscv_struct_info::m_offsets): New member variable.
11162 (riscv_struct_info::analyse_inner): New private member function,
11163 takes the old implementation of riscv_struct_info::analyse but
11164 extended to track field offsets.
11165 (riscv_call_arg_struct): Update the struct folding special cases
11166 to handle cases where empty C++ structs, which are non-zero
11167 length, are found.
11168 (riscv_arg_location): Initialise the length of each location, a
11169 non-zero length now indicates the location is in use.
11170 (riscv_push_dummy_call): Allow for the first location having a
11171 non-zero offset when setting up arguments.
11172 (riscv_return_value): Likewise, but for return values.
11173
02cf60c7
TT
111742019-04-11 Tom Tromey <tromey@adacore.com>
11175
11176 * utils.c (internal_vproblem): Make "msg" const.
11177
68811f8f
AH
111782019-04-11 Alan Hayward <alan.hayward@arm.com>
11179
11180 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11181 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11182 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11183 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11184
3f52fdbc
KB
111852019-04-10 Kevin Buettner <kevinb@redhat.com>
11186
11187 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11188 function.
11189 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11190 of amd64_collect_native_gregset.
11191 (amd64_linux_nat_target::store_registers): Likewise.
11192
e9ad22ee
TT
111932019-04-10 Tom Tromey <tom@tromey.com>
11194
11195 * symtab.c (lookup_global_symbol_from_objfile)
11196 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11197 * objfiles.h (class separate_debug_iterator): New.
11198 (class separate_debug_range): New.
11199 (struct objfile) <separate_debug_objfiles>: New method.
11200 (objfile_separate_debug_iterate): Don't declare.
11201 * objfiles.c (separate_debug_iterator::operator++): Rename from
11202 objfile_separate_debug_iterate.
11203 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11204 iterator.
11205 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11206 iterator.
11207
ee371134
TT
112082019-04-10 Tom Tromey <tom@tromey.com>
11209
11210 * symfile.c (reread_symbols): Remove old comment.
11211 * objfiles.c (free_all_objfiles): Fix a typo.
11212
bf227d61
TT
112132019-04-10 Tom Tromey <tom@tromey.com>
11214
11215 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11216 * minsyms.c (lookup_minimal_symbol): Use foreach.
11217 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11218 (lookup_minimal_symbol_solib_trampoline): Likewise.
11219 * symfile.c (reread_symbols): Use foreach.
11220
8dc433a0
TT
112212019-04-09 Ivan Begert <ivanbegert@gmail.com>
11222 Tom Tromey <tromey@adacore.com>
11223
11224 PR rust/24414:
11225 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11226 (rust_lex_int_test): Change "value" to be LONGEST.
11227 (rust_lex_tests): Add test for long integer literal.
11228
9ab8741a
TT
112292019-04-09 Tom Tromey <tromey@adacore.com>
11230
11231 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11232 to bool.
11233 (extended_remote_target::attach): Update.
11234 (remote_target::remote_notice_new_inferior): Update.
11235 (remote_target::add_current_inferior_and_thread): Update.
11236 * inferior.c (exit_inferior_1): Use "false".
11237 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11238
e242fd12
SM
112392019-04-09 Simon Marchi <simon.marchi@efficios.com>
11240
9ca1957f 11241 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11242 the "start" command.
11243
2b0c8b01
KB
112442019-04-08 Kevin Buettner <kevinb@redhat.com>
11245
11246 * python/py-inferior.c (infpy_thread_from_thread_handle):
11247 Adjust comments to reflect renaming of thread_from_thread_handle
11248 to thread_from_handle. Adjust keywords. Fix type error message.
11249 (inferior_object_methods): Add thread_from_handle. Retain
11250 thread_from_thread_handle, but mark it as deprecated.
11251
50a82723
KB
112522019-04-08 Kevin Buettner <kevinb@redhat.com>
11253
11254 * gdbthread.h (find_thread_by_handle): Revise declaration.
11255 * thread.c (find_thread_by_handle): Likewise. Adjust
11256 implementation too.
11257 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11258 support for buffer objects as handles.
11259
cf63b016
KB
112602019-04-08 Kevin Buettner <kevinb@redhat.com>
11261
11262 * python/py-infthread.c (thpy_thread_handle): New function.
11263 (thread_object_methods): Register thpy_thread_handle.
11264
3d6c6204
KB
112652019-04-08 Kevin Buettner <kevinb@redhat.com>
11266
11267 * gdbthread.h (thread_to_thread_handle): Declare.
11268 * thread.c (gdbtypes.h): Include.
11269 (thread_to_thread_handle): New function.
11270
11271 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11272 (target_thread_info_to_thread_handle): Declare.
11273 * target.c (target_thread_info_to_thread_handle): New function.
11274 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11275 * target-delegates.c: Regenerate.
11276
11277 * linux-thread-db.c (class thread_db_target): Add method
11278 thread_info_to_thread_handle.
11279 (thread_db_target::thread_info_to_thread_handle): Define.
11280 * remote.c (class remote_target): Add new method
11281 thread_info_to_thread_handle.
11282 (remote_target::thread_info_to_thread_handle): Define.
11283
56be6ea8
PA
112842019-04-08 Pedro Alves <palves@redhat.com>
11285
11286 * common/common-exceptions.c (throw_exception): Don't create
11287 named object to throw; throw directly.
11288 (throw_it): Likewise. Don't initialize gdb_exception::message
11289 here, with new; pass FMT and AP to the ctor instead.
11290 * common/common-exceptions.h: Include <string>.
11291 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11292 const char *, va_list)): New ctor. Use std::make_shared.
11293 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11294 errors)): Delete.
11295 (gdb_exception_error::gdb_exception_error(enum errors, const char
11296 *, va_list)): New.
11297 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11298 Add assertion.
11299 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11300 errors)): Delete.
11301 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11302 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11303 Add assertion.
11304
eedc3f4f
TT
113052019-04-08 Tom Tromey <tom@tromey.com>
11306
11307 * valops.c (value_rtti_indirect_type): Replace throw_exception
11308 with throw.
11309 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11310 with throw.
11311 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11312 throw.
11313 * target.c (target_translate_tls_address): Replace throw_exception
11314 with throw.
11315 * stack.c (frame_apply_command_count): Replace throw_exception
11316 with throw.
11317 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11318 throw.
11319 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11320 with throw.
11321 * rs6000-tdep.c (rs6000_frame_cache)
11322 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11323 * remote.c: Replace throw_exception with throw.
11324 * record-full.c (record_full_message, record_full_wait_1)
11325 (record_full_restore): Replace throw_exception with throw.
11326 * record-btrace.c:
11327 (get_thread_current_frame_id, record_btrace_start_replaying)
11328 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11329 (cmd_record_btrace_start): Replace throw_exception with throw.
11330 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11331 throw.
11332 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11333 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11334 * linespec.c:
11335 (find_linespec_symbols): Replace throw_exception with throw.
11336 * infrun.c (displaced_step_prepare, resume): Replace
11337 throw_exception with throw.
11338 * infcmd.c (post_create_inferior): Replace throw_exception with
11339 throw.
11340 * inf-loop.c (inferior_event_handler): Replace throw_exception
11341 with throw.
11342 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11343 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11344 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11345 (get_prev_frame_always, get_frame_pc_if_available)
11346 (get_frame_address_in_block_if_available, get_frame_language):
11347 Replace throw_exception with throw.
11348 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11349 throw_exception with throw.
11350 * eval.c (fetch_subexp_value, evaluate_var_value)
11351 (evaluate_funcall, evaluate_subexp_standard): Replace
11352 throw_exception with throw.
11353 * dwarf2loc.c (call_site_find_chain)
11354 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11355 Replace throw_exception with throw.
11356 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11357 with throw.
11358 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11359 throw.
11360 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11361 * completer.c (complete_line_internal): Replace throw_exception
11362 with throw.
11363 * compile/compile-object-run.c (compile_object_run): Replace
11364 throw_exception with throw.
11365 * cli/cli-script.c (process_next_line): Replace throw_exception
11366 with throw.
11367 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11368 (btrace_enable, btrace_maint_update_pt_packets): Replace
11369 throw_exception with throw.
11370 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11371 throw_exception with throw.
11372 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11373 throw_exception with throw.
11374 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11375 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11376 * aarch64-tdep.c (aarch64_make_prologue_cache)
11377 (aarch64_make_stub_cache): Replace throw_exception with throw.
11378
26003a20
TT
113792019-04-08 Tom Tromey <tom@tromey.com>
11380
11381 * common/common-exceptions.c (throw_exception): Rename from
11382 throw_exception_cxx. Remove old copy. Make argument const.
11383 (throw_it): Create and throw exception objects directly.
11384 * common/common-exceptions.h (throw_exception): Make argument
11385 const.
11386 (struct gdb_exception_error): Add constructor.
11387 (struct gdb_exception_quit): Add constructor.
11388
d272eb37
TT
113892019-04-08 Tom Tromey <tom@tromey.com>
11390
11391 * common/common-exceptions.h (exception_rethrow): Don't declare.
11392 (TRY_SJLJ): Update comment.
11393 (TRY, CATCH, END_CATCH): Remove.
11394 * common/common-exceptions.c (exception_rethrow): Remove.
11395
230d2906
TT
113962019-04-08 Tom Tromey <tom@tromey.com>
11397
11398 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11399 Remove.
11400 (gdb_exception_error): Rename from
11401 gdb_exception_RETURN_MASK_ERROR.
11402 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11403 (gdb_quit_bad_alloc): Update.
11404 * aarch64-tdep.c: Update.
11405 * ada-lang.c: Update.
11406 * ada-typeprint.c: Update.
11407 * ada-valprint.c: Update.
11408 * amd64-tdep.c: Update.
11409 * arch-utils.c: Update.
11410 * break-catch-throw.c: Update.
11411 * breakpoint.c: Update.
11412 * btrace.c: Update.
11413 * c-varobj.c: Update.
11414 * cli/cli-cmds.c: Update.
11415 * cli/cli-interp.c: Update.
11416 * cli/cli-script.c: Update.
11417 * common/common-exceptions.c: Update.
11418 * common/new-op.c: Update.
11419 * common/selftest.c: Update.
11420 * compile/compile-c-symbols.c: Update.
11421 * compile/compile-cplus-symbols.c: Update.
11422 * compile/compile-object-load.c: Update.
11423 * compile/compile-object-run.c: Update.
11424 * completer.c: Update.
11425 * corelow.c: Update.
11426 * cp-abi.c: Update.
11427 * cp-support.c: Update.
11428 * cp-valprint.c: Update.
11429 * darwin-nat.c: Update.
11430 * disasm-selftests.c: Update.
11431 * dtrace-probe.c: Update.
11432 * dwarf-index-cache.c: Update.
11433 * dwarf-index-write.c: Update.
11434 * dwarf2-frame-tailcall.c: Update.
11435 * dwarf2-frame.c: Update.
11436 * dwarf2loc.c: Update.
11437 * dwarf2read.c: Update.
11438 * eval.c: Update.
11439 * event-loop.c: Update.
11440 * event-top.c: Update.
11441 * exec.c: Update.
11442 * f-valprint.c: Update.
11443 * fbsd-tdep.c: Update.
11444 * frame-unwind.c: Update.
11445 * frame.c: Update.
11446 * gdbtypes.c: Update.
11447 * gnu-v3-abi.c: Update.
11448 * guile/guile-internal.h: Update.
11449 * guile/scm-block.c: Update.
11450 * guile/scm-breakpoint.c: Update.
11451 * guile/scm-cmd.c: Update.
11452 * guile/scm-disasm.c: Update.
11453 * guile/scm-frame.c: Update.
11454 * guile/scm-lazy-string.c: Update.
11455 * guile/scm-math.c: Update.
11456 * guile/scm-param.c: Update.
11457 * guile/scm-ports.c: Update.
11458 * guile/scm-pretty-print.c: Update.
11459 * guile/scm-symbol.c: Update.
11460 * guile/scm-symtab.c: Update.
11461 * guile/scm-type.c: Update.
11462 * guile/scm-value.c: Update.
11463 * i386-linux-tdep.c: Update.
11464 * i386-tdep.c: Update.
11465 * inf-loop.c: Update.
11466 * infcall.c: Update.
11467 * infcmd.c: Update.
11468 * infrun.c: Update.
11469 * jit.c: Update.
11470 * language.c: Update.
11471 * linespec.c: Update.
11472 * linux-fork.c: Update.
11473 * linux-nat.c: Update.
11474 * linux-tdep.c: Update.
11475 * linux-thread-db.c: Update.
11476 * main.c: Update.
11477 * mi/mi-cmd-break.c: Update.
11478 * mi/mi-cmd-stack.c: Update.
11479 * mi/mi-interp.c: Update.
11480 * mi/mi-main.c: Update.
11481 * objc-lang.c: Update.
11482 * p-valprint.c: Update.
11483 * parse.c: Update.
11484 * ppc-linux-tdep.c: Update.
11485 * printcmd.c: Update.
11486 * python/py-arch.c: Update.
11487 * python/py-breakpoint.c: Update.
11488 * python/py-cmd.c: Update.
11489 * python/py-finishbreakpoint.c: Update.
11490 * python/py-frame.c: Update.
11491 * python/py-framefilter.c: Update.
11492 * python/py-gdb-readline.c: Update.
11493 * python/py-inferior.c: Update.
11494 * python/py-infthread.c: Update.
11495 * python/py-lazy-string.c: Update.
11496 * python/py-linetable.c: Update.
11497 * python/py-objfile.c: Update.
11498 * python/py-param.c: Update.
11499 * python/py-prettyprint.c: Update.
11500 * python/py-progspace.c: Update.
11501 * python/py-record-btrace.c: Update.
11502 * python/py-record.c: Update.
11503 * python/py-symbol.c: Update.
11504 * python/py-type.c: Update.
11505 * python/py-unwind.c: Update.
11506 * python/py-utils.c: Update.
11507 * python/py-value.c: Update.
11508 * python/python.c: Update.
11509 * record-btrace.c: Update.
11510 * record-full.c: Update.
11511 * remote-fileio.c: Update.
11512 * remote.c: Update.
11513 * riscv-tdep.c: Update.
11514 * rs6000-aix-tdep.c: Update.
11515 * rs6000-tdep.c: Update.
11516 * rust-exp.y: Update.
11517 * rust-lang.c: Update.
11518 * s390-tdep.c: Update.
11519 * selftest-arch.c: Update.
11520 * solib-dsbt.c: Update.
11521 * solib-frv.c: Update.
11522 * solib-spu.c: Update.
11523 * solib-svr4.c: Update.
11524 * solib.c: Update.
11525 * sparc64-linux-tdep.c: Update.
11526 * stack.c: Update.
11527 * symfile-mem.c: Update.
11528 * symmisc.c: Update.
11529 * target.c: Update.
11530 * thread.c: Update.
11531 * top.c: Update.
11532 * tracefile-tfile.c: Update.
11533 * tui/tui.c: Update.
11534 * typeprint.c: Update.
11535 * unittests/cli-utils-selftests.c: Update.
11536 * unittests/parse-connection-spec-selftests.c: Update.
11537 * valops.c: Update.
11538 * valprint.c: Update.
11539 * value.c: Update.
11540 * varobj.c: Update.
11541 * windows-nat.c: Update.
11542 * x86-linux-nat.c: Update.
11543 * xml-support.c: Update.
11544
a70b8144
TT
115452019-04-08 Tom Tromey <tom@tromey.com>
11546
11547 * xml-support.c: Use C++ exception handling.
11548 * x86-linux-nat.c: Use C++ exception handling.
11549 * windows-nat.c: Use C++ exception handling.
11550 * varobj.c: Use C++ exception handling.
11551 * value.c: Use C++ exception handling.
11552 * valprint.c: Use C++ exception handling.
11553 * valops.c: Use C++ exception handling.
11554 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11555 handling.
11556 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11557 * typeprint.c: Use C++ exception handling.
11558 * tui/tui.c: Use C++ exception handling.
11559 * tracefile-tfile.c: Use C++ exception handling.
11560 * top.c: Use C++ exception handling.
11561 * thread.c: Use C++ exception handling.
11562 * target.c: Use C++ exception handling.
11563 * symmisc.c: Use C++ exception handling.
11564 * symfile-mem.c: Use C++ exception handling.
11565 * stack.c: Use C++ exception handling.
11566 * sparc64-linux-tdep.c: Use C++ exception handling.
11567 * solib.c: Use C++ exception handling.
11568 * solib-svr4.c: Use C++ exception handling.
11569 * solib-spu.c: Use C++ exception handling.
11570 * solib-frv.c: Use C++ exception handling.
11571 * solib-dsbt.c: Use C++ exception handling.
11572 * selftest-arch.c: Use C++ exception handling.
11573 * s390-tdep.c: Use C++ exception handling.
11574 * rust-lang.c: Use C++ exception handling.
11575 * rust-exp.y: Use C++ exception handling.
11576 * rs6000-tdep.c: Use C++ exception handling.
11577 * rs6000-aix-tdep.c: Use C++ exception handling.
11578 * riscv-tdep.c: Use C++ exception handling.
11579 * remote.c: Use C++ exception handling.
11580 * remote-fileio.c: Use C++ exception handling.
11581 * record-full.c: Use C++ exception handling.
11582 * record-btrace.c: Use C++ exception handling.
11583 * python/python.c: Use C++ exception handling.
11584 * python/py-value.c: Use C++ exception handling.
11585 * python/py-utils.c: Use C++ exception handling.
11586 * python/py-unwind.c: Use C++ exception handling.
11587 * python/py-type.c: Use C++ exception handling.
11588 * python/py-symbol.c: Use C++ exception handling.
11589 * python/py-record.c: Use C++ exception handling.
11590 * python/py-record-btrace.c: Use C++ exception handling.
11591 * python/py-progspace.c: Use C++ exception handling.
11592 * python/py-prettyprint.c: Use C++ exception handling.
11593 * python/py-param.c: Use C++ exception handling.
11594 * python/py-objfile.c: Use C++ exception handling.
11595 * python/py-linetable.c: Use C++ exception handling.
11596 * python/py-lazy-string.c: Use C++ exception handling.
11597 * python/py-infthread.c: Use C++ exception handling.
11598 * python/py-inferior.c: Use C++ exception handling.
11599 * python/py-gdb-readline.c: Use C++ exception handling.
11600 * python/py-framefilter.c: Use C++ exception handling.
11601 * python/py-frame.c: Use C++ exception handling.
11602 * python/py-finishbreakpoint.c: Use C++ exception handling.
11603 * python/py-cmd.c: Use C++ exception handling.
11604 * python/py-breakpoint.c: Use C++ exception handling.
11605 * python/py-arch.c: Use C++ exception handling.
11606 * printcmd.c: Use C++ exception handling.
11607 * ppc-linux-tdep.c: Use C++ exception handling.
11608 * parse.c: Use C++ exception handling.
11609 * p-valprint.c: Use C++ exception handling.
11610 * objc-lang.c: Use C++ exception handling.
11611 * mi/mi-main.c: Use C++ exception handling.
11612 * mi/mi-interp.c: Use C++ exception handling.
11613 * mi/mi-cmd-stack.c: Use C++ exception handling.
11614 * mi/mi-cmd-break.c: Use C++ exception handling.
11615 * main.c: Use C++ exception handling.
11616 * linux-thread-db.c: Use C++ exception handling.
11617 * linux-tdep.c: Use C++ exception handling.
11618 * linux-nat.c: Use C++ exception handling.
11619 * linux-fork.c: Use C++ exception handling.
11620 * linespec.c: Use C++ exception handling.
11621 * language.c: Use C++ exception handling.
11622 * jit.c: Use C++ exception handling.
11623 * infrun.c: Use C++ exception handling.
11624 * infcmd.c: Use C++ exception handling.
11625 * infcall.c: Use C++ exception handling.
11626 * inf-loop.c: Use C++ exception handling.
11627 * i386-tdep.c: Use C++ exception handling.
11628 * i386-linux-tdep.c: Use C++ exception handling.
11629 * guile/scm-value.c: Use C++ exception handling.
11630 * guile/scm-type.c: Use C++ exception handling.
11631 * guile/scm-symtab.c: Use C++ exception handling.
11632 * guile/scm-symbol.c: Use C++ exception handling.
11633 * guile/scm-pretty-print.c: Use C++ exception handling.
11634 * guile/scm-ports.c: Use C++ exception handling.
11635 * guile/scm-param.c: Use C++ exception handling.
11636 * guile/scm-math.c: Use C++ exception handling.
11637 * guile/scm-lazy-string.c: Use C++ exception handling.
11638 * guile/scm-frame.c: Use C++ exception handling.
11639 * guile/scm-disasm.c: Use C++ exception handling.
11640 * guile/scm-cmd.c: Use C++ exception handling.
11641 * guile/scm-breakpoint.c: Use C++ exception handling.
11642 * guile/scm-block.c: Use C++ exception handling.
11643 * guile/guile-internal.h: Use C++ exception handling.
11644 * gnu-v3-abi.c: Use C++ exception handling.
11645 * gdbtypes.c: Use C++ exception handling.
11646 * frame.c: Use C++ exception handling.
11647 * frame-unwind.c: Use C++ exception handling.
11648 * fbsd-tdep.c: Use C++ exception handling.
11649 * f-valprint.c: Use C++ exception handling.
11650 * exec.c: Use C++ exception handling.
11651 * event-top.c: Use C++ exception handling.
11652 * event-loop.c: Use C++ exception handling.
11653 * eval.c: Use C++ exception handling.
11654 * dwarf2read.c: Use C++ exception handling.
11655 * dwarf2loc.c: Use C++ exception handling.
11656 * dwarf2-frame.c: Use C++ exception handling.
11657 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11658 * dwarf-index-write.c: Use C++ exception handling.
11659 * dwarf-index-cache.c: Use C++ exception handling.
11660 * dtrace-probe.c: Use C++ exception handling.
11661 * disasm-selftests.c: Use C++ exception handling.
11662 * darwin-nat.c: Use C++ exception handling.
11663 * cp-valprint.c: Use C++ exception handling.
11664 * cp-support.c: Use C++ exception handling.
11665 * cp-abi.c: Use C++ exception handling.
11666 * corelow.c: Use C++ exception handling.
11667 * completer.c: Use C++ exception handling.
11668 * compile/compile-object-run.c: Use C++ exception handling.
11669 * compile/compile-object-load.c: Use C++ exception handling.
11670 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11671 * compile/compile-c-symbols.c: Use C++ exception handling.
11672 * common/selftest.c: Use C++ exception handling.
11673 * common/new-op.c: Use C++ exception handling.
11674 * cli/cli-script.c: Use C++ exception handling.
11675 * cli/cli-interp.c: Use C++ exception handling.
11676 * cli/cli-cmds.c: Use C++ exception handling.
11677 * c-varobj.c: Use C++ exception handling.
11678 * btrace.c: Use C++ exception handling.
11679 * breakpoint.c: Use C++ exception handling.
11680 * break-catch-throw.c: Use C++ exception handling.
11681 * arch-utils.c: Use C++ exception handling.
11682 * amd64-tdep.c: Use C++ exception handling.
11683 * ada-valprint.c: Use C++ exception handling.
11684 * ada-typeprint.c: Use C++ exception handling.
11685 * ada-lang.c: Use C++ exception handling.
11686 * aarch64-tdep.c: Use C++ exception handling.
11687
3d6e9d23
TT
116882019-04-08 Tom Tromey <tom@tromey.com>
11689
11690 * xml-support.c (gdb_xml_parser::parse): Update.
11691 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11692 * value.c (show_convenience): Update.
11693 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11694 (test_parse_flags_qcs): Update.
11695 * thread.c (thr_try_catch_cmd): Update.
11696 * target.c (target_translate_tls_address): Update.
11697 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11698 (info_frame_command_core, frame_apply_command_count): Update.
11699 * rust-exp.y (rust_lex_exception_test): Update.
11700 * riscv-tdep.c (riscv_print_one_register_info): Update.
11701 * remote.c (remote_target::enable_btrace): Update.
11702 * record-btrace.c (record_btrace_enable_warn): Update.
11703 * python/py-utils.c (gdbpy_convert_exception): Update.
11704 * printcmd.c (do_one_display, print_variable_and_value): Update.
11705 * mi/mi-main.c (mi_print_exception): Update.
11706 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11707 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11708 * linux-nat.c (linux_nat_target::attach): Update.
11709 * linux-fork.c (class scoped_switch_fork_info): Update.
11710 * infrun.c (displaced_step_prepare): Update.
11711 * infcall.c (call_function_by_hand_dummy): Update.
11712 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11713 * gnu-v3-abi.c (print_one_vtable): Update.
11714 * frame.c (get_prev_frame_always): Update.
11715 * f-valprint.c (info_common_command_for_block): Update.
11716 * exec.c (try_open_exec_file): Update.
11717 * exceptions.c (print_exception, exception_print)
11718 (exception_fprintf, exception_print_same): Update.
11719 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11720 * dwarf-index-cache.c (index_cache::store)
11721 (index_cache::lookup_gdb_index): Update.
11722 * darwin-nat.c (maybe_cache_shell): Update.
11723 * cp-valprint.c (cp_print_value_fields): Update.
11724 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11725 (gcc_cplus_symbol_address): Update.
11726 * compile/compile-c-symbols.c (gcc_convert_symbol)
11727 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11728 * common/selftest.c: Update.
11729 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11730 a std::string.
11731 (exception_try_scope_entry, exception_try_scope_exit): Don't
11732 declare.
11733 (struct exception_try_scope): Remove.
11734 (TRY): Don't use exception_try_scope.
11735 (struct gdb_exception): Add constructor, operator=.
11736 <what>: New method.
11737 (struct gdb_exception_RETURN_MASK_ALL)
11738 (struct gdb_exception_RETURN_MASK_ERROR)
11739 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11740 (struct gdb_quit_bad_alloc): Update.
11741 * common/common-exceptions.c (exception_none): Change
11742 initializer.
11743 (struct catcher) <state, exception>: Initialize inline.
11744 <prev>: Remove member.
11745 (current_catcher): Remove.
11746 (catchers): New global.
11747 (exceptions_state_mc_init): Simplify.
11748 (catcher_pop): Remove.
11749 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11750 (try_scope_depth, exception_try_scope_entry)
11751 (exception_try_scope_exit): Remove.
11752 (throw_exception_sjlj): Update.
11753 (exception_messages, exception_messages_size): Remove.
11754 (throw_it): Simplify.
11755 (gdb_exception_sliced_copy): Remove.
11756 (throw_exception_cxx): Update.
11757 * cli/cli-script.c (script_from_file): Update.
11758 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11759 Update.
11760 * ada-valprint.c (ada_val_print): Update.
11761 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11762 (create_excep_cond_exprs): Update.
11763
c5c10118
TT
117642019-04-08 Tom Tromey <tom@tromey.com>
11765
11766 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11767 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11768 (TRY, CATCH, END_CATCH): Remove some definitions.
11769 * common/common-exceptions.c: Don't use GDB_XCPT.
11770 (catcher_list_size): Remove.
11771 (throw_exception, throw_it): Simplify.
11772
4de283e4
TT
117732019-04-05 Tom Tromey <tom@tromey.com>
11774
11775 Revert the header-sorting patch.
11776 * ft32-tdep.c: Revert.
11777 * frv-tdep.c: Revert.
11778 * frv-linux-tdep.c: Revert.
11779 * frame.c: Revert.
11780 * frame-unwind.c: Revert.
11781 * frame-base.c: Revert.
11782 * fork-child.c: Revert.
11783 * findvar.c: Revert.
11784 * findcmd.c: Revert.
11785 * filesystem.c: Revert.
11786 * filename-seen-cache.h: Revert.
11787 * filename-seen-cache.c: Revert.
11788 * fbsd-tdep.c: Revert.
11789 * fbsd-nat.h: Revert.
11790 * fbsd-nat.c: Revert.
11791 * f-valprint.c: Revert.
11792 * f-typeprint.c: Revert.
11793 * f-lang.c: Revert.
11794 * extension.h: Revert.
11795 * extension.c: Revert.
11796 * extension-priv.h: Revert.
11797 * expprint.c: Revert.
11798 * exec.h: Revert.
11799 * exec.c: Revert.
11800 * exceptions.c: Revert.
11801 * event-top.c: Revert.
11802 * event-loop.c: Revert.
11803 * eval.c: Revert.
11804 * elfread.c: Revert.
11805 * dwarf2read.h: Revert.
11806 * dwarf2read.c: Revert.
11807 * dwarf2loc.c: Revert.
11808 * dwarf2expr.h: Revert.
11809 * dwarf2expr.c: Revert.
11810 * dwarf2-frame.c: Revert.
11811 * dwarf2-frame-tailcall.c: Revert.
11812 * dwarf-index-write.h: Revert.
11813 * dwarf-index-write.c: Revert.
11814 * dwarf-index-common.c: Revert.
11815 * dwarf-index-cache.h: Revert.
11816 * dwarf-index-cache.c: Revert.
11817 * dummy-frame.c: Revert.
11818 * dtrace-probe.c: Revert.
11819 * disasm.h: Revert.
11820 * disasm.c: Revert.
11821 * disasm-selftests.c: Revert.
11822 * dictionary.c: Revert.
11823 * dicos-tdep.c: Revert.
11824 * demangle.c: Revert.
11825 * dcache.h: Revert.
11826 * dcache.c: Revert.
11827 * darwin-nat.h: Revert.
11828 * darwin-nat.c: Revert.
11829 * darwin-nat-info.c: Revert.
11830 * d-valprint.c: Revert.
11831 * d-namespace.c: Revert.
11832 * d-lang.c: Revert.
11833 * ctf.c: Revert.
11834 * csky-tdep.c: Revert.
11835 * csky-linux-tdep.c: Revert.
11836 * cris-tdep.c: Revert.
11837 * cris-linux-tdep.c: Revert.
11838 * cp-valprint.c: Revert.
11839 * cp-support.c: Revert.
11840 * cp-namespace.c: Revert.
11841 * cp-abi.c: Revert.
11842 * corelow.c: Revert.
11843 * corefile.c: Revert.
11844 * continuations.c: Revert.
11845 * completer.h: Revert.
11846 * completer.c: Revert.
11847 * complaints.c: Revert.
11848 * coffread.c: Revert.
11849 * coff-pe-read.c: Revert.
11850 * cli-out.h: Revert.
11851 * cli-out.c: Revert.
11852 * charset.c: Revert.
11853 * c-varobj.c: Revert.
11854 * c-valprint.c: Revert.
11855 * c-typeprint.c: Revert.
11856 * c-lang.c: Revert.
11857 * buildsym.c: Revert.
11858 * buildsym-legacy.c: Revert.
11859 * build-id.h: Revert.
11860 * build-id.c: Revert.
11861 * btrace.c: Revert.
11862 * bsd-uthread.c: Revert.
11863 * breakpoint.h: Revert.
11864 * breakpoint.c: Revert.
11865 * break-catch-throw.c: Revert.
11866 * break-catch-syscall.c: Revert.
11867 * break-catch-sig.c: Revert.
11868 * blockframe.c: Revert.
11869 * block.c: Revert.
11870 * bfin-tdep.c: Revert.
11871 * bfin-linux-tdep.c: Revert.
11872 * bfd-target.c: Revert.
11873 * bcache.c: Revert.
11874 * ax-general.c: Revert.
11875 * ax-gdb.h: Revert.
11876 * ax-gdb.c: Revert.
11877 * avr-tdep.c: Revert.
11878 * auxv.c: Revert.
11879 * auto-load.c: Revert.
11880 * arm-wince-tdep.c: Revert.
11881 * arm-tdep.c: Revert.
11882 * arm-symbian-tdep.c: Revert.
11883 * arm-pikeos-tdep.c: Revert.
11884 * arm-obsd-tdep.c: Revert.
11885 * arm-nbsd-tdep.c: Revert.
11886 * arm-nbsd-nat.c: Revert.
11887 * arm-linux-tdep.c: Revert.
11888 * arm-linux-nat.c: Revert.
11889 * arm-fbsd-tdep.c: Revert.
11890 * arm-fbsd-nat.c: Revert.
11891 * arm-bsd-tdep.c: Revert.
11892 * arch-utils.c: Revert.
11893 * arc-tdep.c: Revert.
11894 * arc-newlib-tdep.c: Revert.
11895 * annotate.h: Revert.
11896 * annotate.c: Revert.
11897 * amd64-windows-tdep.c: Revert.
11898 * amd64-windows-nat.c: Revert.
11899 * amd64-tdep.c: Revert.
11900 * amd64-sol2-tdep.c: Revert.
11901 * amd64-obsd-tdep.c: Revert.
11902 * amd64-obsd-nat.c: Revert.
11903 * amd64-nbsd-tdep.c: Revert.
11904 * amd64-nbsd-nat.c: Revert.
11905 * amd64-nat.c: Revert.
11906 * amd64-linux-tdep.c: Revert.
11907 * amd64-linux-nat.c: Revert.
11908 * amd64-fbsd-tdep.c: Revert.
11909 * amd64-fbsd-nat.c: Revert.
11910 * amd64-dicos-tdep.c: Revert.
11911 * amd64-darwin-tdep.c: Revert.
11912 * amd64-bsd-nat.c: Revert.
11913 * alpha-tdep.c: Revert.
11914 * alpha-obsd-tdep.c: Revert.
11915 * alpha-nbsd-tdep.c: Revert.
11916 * alpha-mdebug-tdep.c: Revert.
11917 * alpha-linux-tdep.c: Revert.
11918 * alpha-linux-nat.c: Revert.
11919 * alpha-bsd-tdep.c: Revert.
11920 * alpha-bsd-nat.c: Revert.
11921 * aix-thread.c: Revert.
11922 * agent.c: Revert.
11923 * addrmap.c: Revert.
11924 * ada-varobj.c: Revert.
11925 * ada-valprint.c: Revert.
11926 * ada-typeprint.c: Revert.
11927 * ada-tasks.c: Revert.
11928 * ada-lang.c: Revert.
11929 * aarch64-tdep.c: Revert.
11930 * aarch64-ravenscar-thread.c: Revert.
11931 * aarch64-newlib-tdep.c: Revert.
11932 * aarch64-linux-tdep.c: Revert.
11933 * aarch64-linux-nat.c: Revert.
11934 * aarch64-fbsd-tdep.c: Revert.
11935 * aarch64-fbsd-nat.c: Revert.
11936 * aarch32-linux-nat.c: Revert.
11937
d55e5aa6
TT
119382019-04-05 Tom Tromey <tom@tromey.com>
11939
11940 * ft32-tdep.c: Sort headers.
11941 * frv-tdep.c: Sort headers.
11942 * frv-linux-tdep.c: Sort headers.
11943 * frame.c: Sort headers.
11944 * frame-unwind.c: Sort headers.
11945 * frame-base.c: Sort headers.
11946 * fork-child.c: Sort headers.
11947 * findvar.c: Sort headers.
11948 * findcmd.c: Sort headers.
11949 * filesystem.c: Sort headers.
11950 * filename-seen-cache.h: Sort headers.
11951 * filename-seen-cache.c: Sort headers.
11952 * fbsd-tdep.c: Sort headers.
11953 * fbsd-nat.h: Sort headers.
11954 * fbsd-nat.c: Sort headers.
11955 * f-valprint.c: Sort headers.
11956 * f-typeprint.c: Sort headers.
11957 * f-lang.c: Sort headers.
11958 * extension.h: Sort headers.
11959 * extension.c: Sort headers.
11960 * extension-priv.h: Sort headers.
11961 * expprint.c: Sort headers.
11962 * exec.h: Sort headers.
11963 * exec.c: Sort headers.
11964 * exceptions.c: Sort headers.
11965 * event-top.c: Sort headers.
11966 * event-loop.c: Sort headers.
11967 * eval.c: Sort headers.
11968 * elfread.c: Sort headers.
11969 * dwarf2read.h: Sort headers.
11970 * dwarf2read.c: Sort headers.
11971 * dwarf2loc.c: Sort headers.
11972 * dwarf2expr.h: Sort headers.
11973 * dwarf2expr.c: Sort headers.
11974 * dwarf2-frame.c: Sort headers.
11975 * dwarf2-frame-tailcall.c: Sort headers.
11976 * dwarf-index-write.h: Sort headers.
11977 * dwarf-index-write.c: Sort headers.
11978 * dwarf-index-common.c: Sort headers.
11979 * dwarf-index-cache.h: Sort headers.
11980 * dwarf-index-cache.c: Sort headers.
11981 * dummy-frame.c: Sort headers.
11982 * dtrace-probe.c: Sort headers.
11983 * disasm.h: Sort headers.
11984 * disasm.c: Sort headers.
11985 * disasm-selftests.c: Sort headers.
11986 * dictionary.c: Sort headers.
11987 * dicos-tdep.c: Sort headers.
11988 * demangle.c: Sort headers.
11989 * dcache.h: Sort headers.
11990 * dcache.c: Sort headers.
11991 * darwin-nat.h: Sort headers.
11992 * darwin-nat.c: Sort headers.
11993 * darwin-nat-info.c: Sort headers.
11994 * d-valprint.c: Sort headers.
11995 * d-namespace.c: Sort headers.
11996 * d-lang.c: Sort headers.
11997 * ctf.c: Sort headers.
11998 * csky-tdep.c: Sort headers.
11999 * csky-linux-tdep.c: Sort headers.
12000 * cris-tdep.c: Sort headers.
12001 * cris-linux-tdep.c: Sort headers.
12002 * cp-valprint.c: Sort headers.
12003 * cp-support.c: Sort headers.
12004 * cp-namespace.c: Sort headers.
12005 * cp-abi.c: Sort headers.
12006 * corelow.c: Sort headers.
12007 * corefile.c: Sort headers.
12008 * continuations.c: Sort headers.
12009 * completer.h: Sort headers.
12010 * completer.c: Sort headers.
12011 * complaints.c: Sort headers.
12012 * coffread.c: Sort headers.
12013 * coff-pe-read.c: Sort headers.
12014 * cli-out.h: Sort headers.
12015 * cli-out.c: Sort headers.
12016 * charset.c: Sort headers.
12017 * c-varobj.c: Sort headers.
12018 * c-valprint.c: Sort headers.
12019 * c-typeprint.c: Sort headers.
12020 * c-lang.c: Sort headers.
12021 * buildsym.c: Sort headers.
12022 * buildsym-legacy.c: Sort headers.
12023 * build-id.h: Sort headers.
12024 * build-id.c: Sort headers.
12025 * btrace.c: Sort headers.
12026 * bsd-uthread.c: Sort headers.
12027 * breakpoint.h: Sort headers.
12028 * breakpoint.c: Sort headers.
12029 * break-catch-throw.c: Sort headers.
12030 * break-catch-syscall.c: Sort headers.
12031 * break-catch-sig.c: Sort headers.
12032 * blockframe.c: Sort headers.
12033 * block.c: Sort headers.
12034 * bfin-tdep.c: Sort headers.
12035 * bfin-linux-tdep.c: Sort headers.
12036 * bfd-target.c: Sort headers.
12037 * bcache.c: Sort headers.
12038 * ax-general.c: Sort headers.
12039 * ax-gdb.h: Sort headers.
12040 * ax-gdb.c: Sort headers.
12041 * avr-tdep.c: Sort headers.
12042 * auxv.c: Sort headers.
12043 * auto-load.c: Sort headers.
12044 * arm-wince-tdep.c: Sort headers.
12045 * arm-tdep.c: Sort headers.
12046 * arm-symbian-tdep.c: Sort headers.
12047 * arm-pikeos-tdep.c: Sort headers.
12048 * arm-obsd-tdep.c: Sort headers.
12049 * arm-nbsd-tdep.c: Sort headers.
12050 * arm-nbsd-nat.c: Sort headers.
12051 * arm-linux-tdep.c: Sort headers.
12052 * arm-linux-nat.c: Sort headers.
12053 * arm-fbsd-tdep.c: Sort headers.
12054 * arm-fbsd-nat.c: Sort headers.
12055 * arm-bsd-tdep.c: Sort headers.
12056 * arch-utils.c: Sort headers.
12057 * arc-tdep.c: Sort headers.
12058 * arc-newlib-tdep.c: Sort headers.
12059 * annotate.h: Sort headers.
12060 * annotate.c: Sort headers.
12061 * amd64-windows-tdep.c: Sort headers.
12062 * amd64-windows-nat.c: Sort headers.
12063 * amd64-tdep.c: Sort headers.
12064 * amd64-sol2-tdep.c: Sort headers.
12065 * amd64-obsd-tdep.c: Sort headers.
12066 * amd64-obsd-nat.c: Sort headers.
12067 * amd64-nbsd-tdep.c: Sort headers.
12068 * amd64-nbsd-nat.c: Sort headers.
12069 * amd64-nat.c: Sort headers.
12070 * amd64-linux-tdep.c: Sort headers.
12071 * amd64-linux-nat.c: Sort headers.
12072 * amd64-fbsd-tdep.c: Sort headers.
12073 * amd64-fbsd-nat.c: Sort headers.
12074 * amd64-dicos-tdep.c: Sort headers.
12075 * amd64-darwin-tdep.c: Sort headers.
12076 * amd64-bsd-nat.c: Sort headers.
12077 * alpha-tdep.c: Sort headers.
12078 * alpha-obsd-tdep.c: Sort headers.
12079 * alpha-nbsd-tdep.c: Sort headers.
12080 * alpha-mdebug-tdep.c: Sort headers.
12081 * alpha-linux-tdep.c: Sort headers.
12082 * alpha-linux-nat.c: Sort headers.
12083 * alpha-bsd-tdep.c: Sort headers.
12084 * alpha-bsd-nat.c: Sort headers.
12085 * aix-thread.c: Sort headers.
12086 * agent.c: Sort headers.
12087 * addrmap.c: Sort headers.
12088 * ada-varobj.c: Sort headers.
12089 * ada-valprint.c: Sort headers.
12090 * ada-typeprint.c: Sort headers.
12091 * ada-tasks.c: Sort headers.
12092 * ada-lang.c: Sort headers.
12093 * aarch64-tdep.c: Sort headers.
12094 * aarch64-ravenscar-thread.c: Sort headers.
12095 * aarch64-newlib-tdep.c: Sort headers.
12096 * aarch64-linux-tdep.c: Sort headers.
12097 * aarch64-linux-nat.c: Sort headers.
12098 * aarch64-fbsd-tdep.c: Sort headers.
12099 * aarch64-fbsd-nat.c: Sort headers.
12100 * aarch32-linux-nat.c: Sort headers.
12101
699bd4cf
TT
121022019-04-04 Tom Tromey <tom@tromey.com>
12103
12104 * varobj.c (varobj_create): Update.
12105 * rust-exp.y (struct rust_parser) <update_innermost_block,
12106 lookup_symbol>: New methods.
12107 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12108 Rename.
12109 (rust_parser::rust_lookup_type)
12110 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12111 * printcmd.c (display_command, do_one_display): Update.
12112 * parser-defs.h (struct parser_state) <parser_state>: Add
12113 "tracker" parameter.
12114 (block_tracker): New member.
12115 (class innermost_block_tracker) <innermost_block_tracker>: Add
12116 "types" parameter.
12117 <reset>: Remove method.
12118 (innermost_block): Don't declare.
12119 (null_post_parser): Update.
12120 * parse.c (innermost_block): Remove global.
12121 (write_dollar_variable): Update.
12122 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12123 Remove "tracker_types" parameter.
12124 (parse_expression): Add "tracker" parameter.
12125 (parse_expression_for_completion): Update.
12126 (null_post_parser): Add "tracker" parameter.
12127 * p-exp.y: Update rules.
12128 * m2-exp.y: Update rules.
12129 * language.h (struct language_defn) <la_post_parser>: Add
12130 "tracker" parameter.
12131 * go-exp.y: Update rules.
12132 * f-exp.y: Update rules.
12133 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12134 parameter.
12135 * d-exp.y: Update rules.
12136 * c-exp.y: Update rules.
12137 * breakpoint.c (set_breakpoint_condition): Create an
12138 innermost_block_tracker.
12139 (watch_command_1): Likewise.
12140 * ada-lang.c (resolve): Add "tracker" parameter.
12141 (resolve_subexp): Likewise.
12142 * ada-exp.y (write_var_from_sym): Update.
12143
dac43e32
TT
121442019-04-04 Tom Tromey <tom@tromey.com>
12145
12146 * type-stack.h: New file.
12147 * type-stack.c: New file.
12148 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12149 type-stack.h.
12150 (insert_into_type_stack, insert_type, push_type, push_type_int)
12151 (insert_type_address_space, pop_type, pop_type_int)
12152 (pop_typelist, pop_type_stack, append_type_stack)
12153 (push_type_stack, get_type_stack, push_typelist)
12154 (follow_type_instance_flags, follow_types): Don't declare.
12155 * parse.c (type_stack): Remove global.
12156 (parse_exp_in_context): Update.
12157 (insert_into_type_stack, insert_type, push_type, push_type_int)
12158 (insert_type_address_space, pop_type, pop_type_int)
12159 (pop_typelist, pop_type_stack, append_type_stack)
12160 (push_type_stack, get_type_stack, push_typelist)
12161 (follow_type_instance_flags, follow_types): Remove (moved to
12162 type-stack.c).
12163 * f-exp.y (type_stack): New global.
12164 Update rules.
12165 (push_kind_type, f_parse): Update.
12166 * d-exp.y (type_stack): New global.
12167 Update rules.
12168 (d_parse): Update.
12169 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12170 Update rules.
12171 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12172 (HFILES_NO_SRCDIR): Add type-stack.h.
12173
2a612529
TT
121742019-04-04 Tom Tromey <tom@tromey.com>
12175
12176 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12177 (rust_parser::convert_ast_to_expression, rust_parse)
12178 (rust_lex_test_completion, rust_lex_tests): Update.
12179 * parser-defs.h (struct expr_completion_state): New.
12180 (struct parser_state) <parser_state>: Add completion parameter.
12181 <mark_struct_expression, mark_completion_tag>: New methods.
12182 <parse_completion, m_completion_state>: New members.
12183 (prefixify_expression, null_post_parser): Update.
12184 (mark_struct_expression, mark_completion_tag): Don't declare.
12185 * parse.c (parse_completion, expout_last_struct)
12186 (expout_tag_completion_type, expout_completion_name): Remove
12187 globals.
12188 (parser_state::mark_struct_expression)
12189 (parser_state::mark_completion_tag): Now methods.
12190 (prefixify_expression): Add last_struct parameter.
12191 (prefixify_subexp): Likewise.
12192 (parse_exp_1): Update.
12193 (parse_exp_in_context): Add cstate parameter. Update.
12194 (parse_expression_for_completion): Create an
12195 expr_completion_state.
12196 (null_post_parser): Add "completion" parameter.
12197 * p-exp.y: Update rules.
12198 (yylex): Update.
12199 * language.h (struct language_defn) <la_post_parser>: Add
12200 "completing" parameter.
12201 * go-exp.y: Update rules.
12202 (lex_one_token): Update.
12203 * expression.h (parse_completion): Don't declare.
12204 * d-exp.y: Update rules.
12205 (lex_one_token): Update rules.
12206 * c-exp.y: Update rules.
12207 (lex_one_token): Update.
12208 * ada-lang.c (resolve): Add "parse_completion" parameter.
12209 (resolve_subexp): Likewise.
12210 (ada_resolve_function): Likewise.
12211
43476f0b
TT
122122019-04-04 Tom Tromey <tom@tromey.com>
12213
12214 * parser-defs.h (struct parser_state) <start_arglist,
12215 end_arglist>: New methods.
12216 <arglist_len, m_funcall_chain>: New members.
12217 (arglist_len, start_arglist, end_arglist): Don't declare.
12218 * parse.c (arglist_len, funcall_chain): Remove global.
12219 (start_arglist, end_arglist): Remove functions.
12220 (parse_exp_in_context): Update.
12221 * p-exp.y: Update rules.
12222 * m2-exp.y: Update rules.
12223 * go-exp.y: Update rules.
12224 * f-exp.y: Update rules.
12225 * d-exp.y: Update rules.
12226 * c-exp.y: Update rules.
12227
5776fca3
TT
122282019-04-04 Tom Tromey <tom@tromey.com>
12229
12230 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12231 lex_operator, push_back>: New methods.
12232 Update all rules.
12233 (rust_parser::lex_hex, lex_escape): Rename and update.
12234 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12235 (rust_parser::lex_operator): Rename and update.
12236 (rust_parser::lex_number, rustyylex, rustyyerror)
12237 (rust_lex_test_init, rust_lex_test_sequence)
12238 (rust_lex_test_push_back, rust_lex_tests): Update.
12239 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12240 parameter.
12241 <lexptr, prev_lexptr>: New members.
12242 (lexptr, prev_lexptr): Don't declare.
12243 * parse.c (lexptr, prev_lexptr): Remove globals.
12244 (parse_exp_in_context): Update.
12245 * p-exp.y (yylex, yyerror): Update.
12246 * m2-exp.y (parse_number, yylex, yyerror): Update.
12247 * go-exp.y (lex_one_token, yyerror): Update.
12248 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12249 * d-exp.y (lex_one_token, yyerror): Update.
12250 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12251 (lex_one_token, yyerror): Update.
12252 * ada-lex.l (YY_INPUT): Update.
12253 (rewind_to_char): Update.
12254 * ada-exp.y (yyerror): Update.
12255
8621b685
TT
122562019-04-04 Tom Tromey <tom@tromey.com>
12257
12258 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12259 * parser-defs.h (struct parser_state) <parser_state>: Add new
12260 parameter.
12261 <comma_terminates>: New member.
12262 (comma_terminates): Don't declare global.
12263 * parse.c (comma_terminates): Remove global.
12264 (parse_exp_in_context): Update.
12265 * p-exp.y (yylex): Update.
12266 * m2-exp.y (yylex): Update.
12267 * go-exp.y (lex_one_token): Update.
12268 * f-exp.y (yylex): Update.
12269 * d-exp.y (lex_one_token): Update.
12270 * c-exp.y (lex_one_token): Update.
12271 * ada-lex.l: Update.
12272
28aaf3fd
TT
122732019-04-04 Tom Tromey <tom@tromey.com>
12274
12275 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12276 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12277 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12278 * parser-defs.h (paren_depth): Don't declare.
12279 * parse.c (paren_depth): Remove global.
12280 (parse_exp_in_context): Update.
12281 * p-exp.y (paren_depth): New global.
12282 (pascal_parse): Initialize it.
12283 * m2-exp.y (paren_depth): New global.
12284 (m2_parse): Initialize it.
12285 * go-exp.y (paren_depth): New global.
12286 (go_parse): Initialize it.
12287 * f-exp.y (paren_depth): New global.
12288 (f_parse): Initialize it.
12289 * d-exp.y (paren_depth): New global.
12290 (d_parse): Initialize it.
12291 * c-exp.y (paren_depth): New global.
12292 (c_parse): Initialize it.
12293 * ada-lex.l (paren_depth): New global.
12294 (lexer_init): Initialize it.
12295
1e58a4a4
TT
122962019-04-04 Tom Tromey <tom@tromey.com>
12297
12298 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12299 (rust_parser::convert_ast_to_type)
12300 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12301 * parser-defs.h (struct parser_state) <parser_state>: Add
12302 parameters. Initialize new members.
12303 <expression_context_block, expression_context_pc>: New members.
12304 * parse.c (expression_context_block, expression_context_pc):
12305 Remove globals.
12306 (parse_exp_in_context): Update.
12307 * p-exp.y: Update all rules.
12308 (yylex): Update.
12309 * m2-exp.y: Update all rules.
12310 (yylex): Update.
12311 * go-exp.y (yylex): Update.
12312 * f-exp.y (yylex): Update.
12313 * d-exp.y: Update all rules.
12314 (yylex): Update.
12315 * c-exp.y: Update all rules.
12316 (lex_one_token, classify_name, yylex, c_parse): Update.
12317 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12318
37eedb39
TT
123192019-04-04 Tom Tromey <tom@tromey.com>
12320
12321 * gdbarch.h, gdbarch.c: Rebuild.
12322 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12323 * stap-probe.h:
12324 (struct stap_parse_info): Replace "parser_state" with
12325 "expr_builder".
12326 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12327 (parser_state): New class.
12328 * parse.c (expr_builder): Rename.
12329 (expr_builder::release): Rename.
12330 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12331 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12332 (write_exp_elt_longcst, write_exp_elt_floatcst)
12333 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12334 (write_exp_string_vector, write_exp_bitstring)
12335 (write_exp_msymbol, mark_struct_expression)
12336 (write_dollar_variable)
12337 (insert_type_address_space, increase_expout_size): Replace
12338 "parser_state" with "expr_builder".
12339 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12340 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12341 "parser_state" with "expr_builder".
12342
73923d7e
TT
123432019-04-04 Tom Tromey <tom@tromey.com>
12344
12345 * rust-exp.y: Replace "parse_language" with method call.
12346 * p-exp.y:
12347 (yylex): Replace "parse_language" with method call.
12348 * m2-exp.y:
12349 (yylex): Replace "parse_language" with method call.
12350 * go-exp.y (classify_name): Replace "parse_language" with method
12351 call.
12352 * f-exp.y (yylex): Replace "parse_language" with method call.
12353 * d-exp.y (lex_one_token): Replace "parse_language" with method
12354 call.
12355 * c-exp.y:
12356 (lex_one_token, classify_name, yylex): Replace "parse_language"
12357 with method call.
12358 * ada-exp.y (find_primitive_type, type_char)
12359 (type_system_address): Replace "parse_language" with method call.
12360
fa9f5be6
TT
123612019-04-04 Tom Tromey <tom@tromey.com>
12362
12363 * rust-exp.y: Replace "parse_gdbarch" with method call.
12364 * parse.c (write_dollar_variable, insert_type_address_space):
12365 Replace "parse_gdbarch" with method call.
12366 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12367 call.
12368 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12369 call.
12370 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12371 "parse_gdbarch" with method call.
12372 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12373 with method call.
12374 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12375 "parse_gdbarch" with method call.
12376 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12377 "parse_gdbarch" with method call.
12378 * c-exp.y (parse_type, parse_number, classify_name): Replace
12379 "parse_gdbarch" with method call.
12380 * ada-lex.l: Replace "parse_gdbarch" with method call.
12381 * ada-exp.y (parse_type, find_primitive_type, type_char)
12382 (type_system_address): Replace "parse_gdbarch" with method call.
12383
1201a264
TT
123842019-04-04 Tom Tromey <tom@tromey.com>
12385
12386 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12387 * stap-probe.c (stap_parse_argument): Update.
12388 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12389 initial_size parameter.
12390 * rust-exp.y (rust_lex_tests): Update.
12391 * parse.c (parser_state): Update.
12392 (parse_exp_in_context): Update.
12393 * parser-defs.h (struct parser_state) <parser_state>: Remove
12394 "initial_size" parameter.
12395
e3980ce2
TT
123962019-04-04 Tom Tromey <tom@tromey.com>
12397
12398 * parser-defs.h (increase_expout_size): Don't declare.
12399 * parse.c (increase_expout_size): Now static.
12400
e9f8e3f1
TS
124012019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12402
12403 * gnu-nat.c (gnu_nat_target::wait): Fix
12404 target_waitstatus_to_string call.
12405
d7df6549
AB
124062019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12407
12408 * eval.c (evaluate_subexp_standard): Handle internal functions
12409 during Fortran function call handling.
12410
8bdc1658
AB
124112019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12412
12413 * NEWS: Mention new internal functions.
12414 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12415 (read_base_type): Use dwarf2_init_complex_target_type.
12416 * value.c (creal_internal_fn): New function.
12417 (cimag_internal_fn): New function.
12418 (_initialize_values): Register new internal functions.
12419
c29705b7
PW
124202019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12421
12422 * infrun.c (stop_all_threads): If debug_infrun, always
12423 trace the wait status after wait_one, using
12424 target_waitstatus_to_string and target_pid_to_str.
12425 (handle_inferior_event): Replace various trace of
12426 wait status kind by a single trace.
12427 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12428 wait status kind image by target_waitstatus_to_string.
12429 * target/waitstatus.c (target_waitstatus_to_string): Fix
12430 obsolete comment.
12431
05caa1d2
TT
124322019-04-01 Tom Tromey <tromey@adacore.com>
12433
12434 PR symtab/23331:
12435 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12436
9d1447e0
SDJ
124372019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12438 Pedro Alves <palves@redhat.com>
12439
12440 * top.c (quit_force): Call 'finalize_values'.
12441 * value.c (finalize_values): New function.
12442 * value.h (finalize_values): Declare.
12443
7734102d
EZ
124442019-03-30 Eli Zaretskii <eliz@gnu.org>
12445
12446 * NEWS: Announce $_gdb_major and $_gdb_minor.
12447
12448 * top.c (init_gdb_version_vars): New function.
12449 (gdb_init): Call init_gdb_version_vars.
12450
188e1fa9
TT
124512019-03-29 Tom Tromey <tromey@adacore.com>
12452
12453 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12454 help text. Remove dead code.
12455
2880242d
KS
124562019-03-29 Keith Seitz <keiths@redhat.com>
12457
12458 From Siddhesh Poyarekar:
12459 * f-lang.h (f77_get_upperbound): Return LONGEST.
12460 (f77_get_lowerbound): Likewise.
12461 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12462 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12463 print them.
12464 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12465 plongest to format print it.
12466 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12467 (f77_get_upperbound): Likewise.
12468 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12469 LOWER_BOUND to LONGEST.
12470 (f77_create_arrayprint_offset_tbl): Likewise.
12471
cc1defb1
KS
124722019-03-29 Keith Seitz <keiths@redhat.com>
12473
12474 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12475 %s/pulongest for TYPE_LENGTH instead of %d in format
12476 strings.
12477 * ada-typerint.c (ada_print_type): Likewise.
12478 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12479 * compile/compile-c-support.c (generate_register_struct): Likewise.
12480 * gdbtypes.c (recursive_dump_type): Likewise.
12481 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12482 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12483 instead of %d in format strings.
12484 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12485 to std::min to ULONGEST.
12486 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12487 instead of %d in format strings.
12488 * tracepoint.c (info_scope_command): Likewise.
12489 * typeprint.c (print_offset_data::update)
12490 (print_offset_data::finish): Likewise.
12491 * xtensa-tdep.c (xtensa_store_return_value)
12492 (xtensa_push_dummy_call): Likewise.
12493
e432ccf1
JT
124942019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12495
12496 * windows-nat.c (display_selector): Fixed format specifications
12497 for 64-bit Cygwin.
12498
65d2b333
PW
124992019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12500
12501 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12502
f489207e
SL
125032019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12504
12505 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12506 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12507 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12508 (nios2_linux_init_abi): Install it.
12509
bffa1015
AH
125102019-03-28 Alan Hayward <alan.hayward@arm.com>
12511
12512 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12513
fc96163a
AH
125142019-03-28 Alan Hayward <alan.hayward@arm.com>
12515
12516 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12517
20dc7e9b
PW
125182019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12519 Tom Tromey <tromey@adacore.com>
12520
12521 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12522
7f5331a8
JB
125232019-03-26 Joel Brobecker <brobecker@adacore.com>
12524
12525 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12526 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12527 method to compute the bounds of range types. Also print "[evaluated]"
12528 if the bounds' values come from a dynamic evaluation.
12529
18c77628
AB
125302019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12531
12532 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12533 whitespace when pretty printing is on.
12534
53c973f2
AH
125352019-03-26 Alan Hayward <alan.hayward@arm.com>
12536
e79be6e5 12537 * ppc-linux-nat.c: Add include.
53c973f2 12538
d851aa71
AH
125392019-03-26 Alan Hayward <alan.hayward@arm.com>
12540
e79be6e5 12541 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12542
2fe7bab7
AH
125432019-03-26 Alan Hayward <alan.hayward@arm.com>
12544
e79be6e5 12545 * arm-linux-nat.c: Add include.
2fe7bab7 12546
068ef30e
SM
125472019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12548
12549 * source-cache.c (source_cache::get_source_lines): Re-read
12550 fullname after calling open_source_file.
12551
81a24d04
JB
125522019-03-25 John Baldwin <jhb@FreeBSD.org>
12553
12554 * NEWS: Mention TLS support for FreeBSD.
12555
79e7ae11
TT
125562019-03-25 Tom Tromey <tromey@adacore.com>
12557
12558 * minsyms.c (BUNCH_SIZE): Update comment.
12559 (~minimal_symbol_reader): Remove old comment.
12560 (compact_minimal_symbols): Update comment.
12561 (minimal_symbol_reader::install): Remove old comment. Update
12562 other comments.
12563
d45963c2
AH
125642019-03-25 Alan Hayward <alan.hayward@arm.com>
12565
12566 * s390-linux-nat.c: Add include.
12567
0f83012e
AH
125682019-03-25 Alan Hayward <alan.hayward@arm.com>
12569
12570 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12571 Call linux_get_hwcap.
12572 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12573 Likewise.
12574 (aarch64_linux_get_hwcap): Remove function.
12575 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12576 declaration.
12577 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12578 linux_get_hwcap.
12579 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12580 * linux-tdep.c (linux_get_hwcap): Add function.
12581 (linux_get_hwcap2): Likewise.
12582 * linux-tdep.h (linux_get_hwcap): Add declaration.
12583 (linux_get_hwcap2): Likewise.
12584 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12585 (ppc_linux_get_hwcap2): Likewise.
12586 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12587 linux_get_hwcap.
12588 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12589 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12590 (ppc_linux_nat_target::read_description): Likewise.
12591 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12592 * s390-linux-nat.c: Likewise.
12593 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12594
6640a367
TT
125952019-03-24 Tom Tromey <tom@tromey.com>
12596
12597 * ada-lang.c (standard_lookup): Simplify initialization.
12598 (ada_lookup_symbol_nonlocal): Simplify return.
12599 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12600 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12601 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12602 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12603 initialization.
12604 * solib.c (solib_global_lookup): Simplify.
12605 * symtab.c (null_block_symbol): Remove.
12606 (symbol_cache_lookup): Simplify returns.
12607 (lookup_language_this): Simplify returns.
12608 (lookup_symbol_aux): Simplify return.
12609 (lookup_local_symbol): Simplify returns.
12610 (lookup_global_symbol_from_objfile): Simplify return.
12611 (lookup_symbol_in_objfile_symtabs)
12612 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12613 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12614 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12615 * cp-namespace.c (cp_lookup_bare_symbol)
12616 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12617 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12618 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12619 (cp_lookup_symbol_via_imports): Simplify initialization.
12620 (find_symbol_in_baseclass): Likewise.
12621 * symtab.h (null_block_symbol): Remove.
12622 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12623 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12624 (d_lookup_symbol_module): Likewise.
12625 (find_symbol_in_baseclass): Simplify initialization.
12626
a930ebcd
TT
126272019-03-24 Tom Tromey <tom@tromey.com>
12628
12629 * expression.h: Don't include symtab.h.
12630 (struct block): Forward declare.
12631
582942f4
TT
126322019-03-24 Tom Tromey <tom@tromey.com>
12633
12634 * c-exp.y (typebase): Remove casts.
12635 * gdbtypes.c (lookup_unsigned_typename, )
12636 (lookup_signed_typename): Remove cast.
12637 * eval.c (parse_to_comma_and_eval): Remove cast.
12638 * parse.c (write_dollar_variable): Remove cast.
12639 * block.h (struct block) <superblock>: Now const.
12640 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12641 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12642 (map_block): Make "block" const.
12643 * symfile.h (struct quick_symbol_functions)
12644 <map_matching_symbols>: Constify block argument to "callback".
12645 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12646 const.
12647 (find_pc_sect_compunit_symtab): Make "b" const.
12648 (find_symbol_at_address): Likewise.
12649 (search_symbols): Likewise.
12650 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12651 (dw2_debug_names_lookup_symbol): Likewise.
12652 (dw2_map_matching_symbols): Update.
12653 * p-valprint.c (pascal_val_print): Remove "block".
12654 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12655 (aux_add_nonlocal_symbols): Make "block" const.
12656 (resolve_subexp): Remove cast.
12657 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12658 const.
12659 (iterate_over_file_blocks): Likewise.
12660 * f-exp.y (%union) <bval>: Remove.
12661 * coffread.c (patch_opaque_types): Make "b" const.
12662 * spu-tdep.c (spu_catch_start): Make "block" const.
12663 * c-valprint.c (print_unpacked_pointer): Remove "block".
12664 * symmisc.c (dump_symtab_1): Make "b" const.
12665 (block_depth): Make "block" const.
12666 * d-exp.y (%union) <bval>: Remove.
12667 * cp-support.h (cp_lookup_rtti_type): Update.
12668 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12669 * psymtab.c (psym_lookup_symbol): Make "block" const.
12670 (maintenance_check_psymtabs): Make "b" const.
12671 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12672 (enumerate_locals, enumerate_args): Update.
12673 * python/py-symtab.c (stpy_global_block): Make "block" const.
12674 (stpy_static_block): Likewise.
12675 * inline-frame.c (block_starting_point_at): Make "new_block"
12676 const.
12677 * block.c (find_block_in_blockvector): Make return type const.
12678 (blockvector_for_pc_sect): Make "b" const.
12679 (find_block_in_blockvector): Make "b" const.
12680
7ad417dd
TT
126812019-03-23 Tom Tromey <tom@tromey.com>
12682
12683 * varobj.c (varobj_create): Update.
12684 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12685 * printcmd.c (display_command, do_one_display): Don't reset
12686 innermost_block.
12687 * parser-defs.h (enum innermost_block_tracker_type): Move to
12688 expression.h.
12689 (innermost_block): Update comment.
12690 * parse.c (parse_exp_1): Add tracker_types parameter.
12691 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12692 tracker_types parameter. Reset innermost_block.
12693 (parse_exp_in_context): Remove.
12694 (parse_expression_for_completion): Update.
12695 * objfiles.c (~objfile): Don't reset expression_context_block or
12696 innermost_block.
12697 * expression.h (enum innermost_block_tracker_type): Move from
12698 parser-defs.h.
12699 (parse_exp_1): Add tracker_types parameter.
12700 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12701 reset innermost_block.
12702
b366c208
TT
127032019-03-23 Tom Tromey <tom@tromey.com>
12704
12705 * objfiles.h: Include bcache.h.
12706
9bb9b2f9
TT
127072019-03-23 Tom Tromey <tom@tromey.com>
12708
12709 * linespec.c (get_current_search_block): Use
12710 scoped_restore_current_language.
12711 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12712
59c28372
AH
127132019-03-22 Alan Hayward <alan.hayward@arm.com>
12714 Jiong Wang <jiong.wang@arm.com>
12715
12716 * aarch64-linux-tdep.c
12717 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12718 section.
12719 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12720
17e116a7
AH
127212019-03-22 Alan Hayward <alan.hayward@arm.com>
12722 Jiong Wang <jiong.wang@arm.com>
12723
12724 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12725 instructions.
12726 (aarch64_analyze_prologue_test): Add PACIASP test.
12727 (aarch64_prologue_prev_register): Unmask PC value.
12728
11e1b75f
AH
127292019-03-22 Alan Hayward <alan.hayward@arm.com>
12730 Jiong Wang <jiong.wang@arm.com>
12731
12732 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12733 (aarch64_dwarf2_prev_register): Unmask PC value.
12734 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12735 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12736 DW_CFA_AARCH64_negate_ra_state.
12737 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12738
34dcc7cf
AH
127392019-03-22 Alan Hayward <alan.hayward@arm.com>
12740 Jiong Wang <jiong.wang@arm.com>
12741
12742 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12743 registers.
12744 (aarch64_pseudo_register_name): Likewise.
12745 (aarch64_pseudo_register_type): Likewise.
12746 (aarch64_pseudo_register_reggroup_p): Likewise.
12747 (aarch64_gdbarch_init): Add pauth registers.
12748 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12749 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12750 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12751 (struct gdbarch_tdep): Add regnum for ra_state.
12752
1ef53e6b
AH
127532019-03-22 Alan Hayward <alan.hayward@arm.com>
12754 Jiong Wang <jiong.wang@arm.com>
12755
12756 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12757
76bed0fd
AH
127582019-03-22 Alan Hayward <alan.hayward@arm.com>
12759 Jiong Wang <jiong.wang@arm.com>
12760
12761 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12762 function.
12763 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12764 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12765 (aarch64_gdbarch_init): Add puth registers.
12766 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12767 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12768 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12769
ee4fbcfa
AH
127702019-03-22 Alan Hayward <alan.hayward@arm.com>
12771 Jiong Wang <jiong.wang@arm.com>
12772
12773 * aarch64-linux-nat.c
12774 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12775 * aarch64-linux-tdep.c
12776 (aarch64_linux_core_read_description): Likewise.
12777 (aarch64_linux_get_hwcap): New function.
12778 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12779 (aarch64_linux_get_hwcap): New declaration.
12780
6dc0ebde
AH
127812019-03-22 Alan Hayward <alan.hayward@arm.com>
12782 Jiong Wang <jiong.wang@arm.com>
12783
12784 * aarch64-linux-nat.c
12785 (aarch64_linux_nat_target::read_description): Add pauth param.
12786 * aarch64-linux-tdep.c
12787 (aarch64_linux_core_read_description): Likewise.
12788 * aarch64-tdep.c (struct target_desc): Add in pauth.
12789 (aarch64_read_description): Add pauth param.
12790 (aarch64_gdbarch_init): Likewise.
12791 * aarch64-tdep.h (aarch64_read_description): Likewise.
12792 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12793 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12794 * features/Makefile: Add new files.
12795 * features/aarch64-pauth.c: New file.
12796 * features/aarch64-pauth.xml: New file.
12797
595915c1
TT
127982019-03-20 Tom Tromey <tromey@adacore.com>
12799
12800 * infrun.c (handle_inferior_event): Rename from
12801 handle_inferior_event_1. Create a scoped_value_mark.
12802 (handle_inferior_event): Remove.
12803
4c7d57e7
TT
128042019-03-19 Tom Tromey <tromey@adacore.com>
12805
12806 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12807 * infrun.h (print_stop_event): Add "displays" parameter.
12808 * infrun.c (print_stop_event): Add "displays" parameter.
12809
cb246234
PA
128102019-03-19 Pedro Alves <palves@redhat.com>
12811
12812 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12813 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12814 to -1. Fix TABs vs spaces.
12815 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12816 * tui/tui-out.h (tui_ui_out) Add intro comments.
12817 <m_line, m_start_of_line>: In-class initialize, and add describing
12818 comment.
12819
3a0e45b2
AH
128202019-03-18 Alan Hayward <alan.hayward@arm.com>
12821
12822 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12823 variable names.
12824 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12825
5371b850
PA
128262019-03-18 Pedro Alves <palves@redhat.com>
12827 Eli Zaretskii <eliz@gnu.org>
12828
12829 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12830 m_line and m_start_of_line.
12831
b17c4cd0
EZ
128322019-03-18 Eli Zaretskii <eliz@gnu.org>
12833
12834 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12835 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12836 it returns a newline. This fixes a regression in TU mode, whereby
12837 the next line is output on the same screen line as the user input.
12838
4bd56d18
TT
128392019-03-18 Tom Tromey <tromey@adacore.com>
12840
12841 * minsyms.c (minimal_symbol_reader::install): Remove call to
12842 obstack_blank.
12843
55c10aca
PA
128442019-03-18 Pedro Alves <palves@redhat.com>
12845
12846 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12847 New globals.
12848 (apply_style): New, factored out from ...
12849 (apply_ansi_escape): ... this. Handle reverse video mode.
12850 (tui_set_reverse_mode): New function.
12851 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12852 * tui/tui-winsource.c (tui_show_source_line): Use
12853 tui_set_reverse_mode instead of setting A_STANDOUT.
12854 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12855 New setter methods.
12856
647bb750
HD
128572019-03-18 Hannes Domani <ssbssa@yahoo.de>
12858
12859 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12860 Handle tabs.
12861
bff8c71f
TT
128622019-03-18 Tom Tromey <tromey@adacore.com>
12863
12864 * ada-lang.c (empty_array): Add "high" parameter.
12865 (ada_evaluate_subexp): Update.
12866
58785d98
ST
128672019-03-17 Sergei Trofimovich <siarheit@google.com>
12868
12869 * unittests/string_view-selftests.c: Define
12870 _initialize_string_view_selftests unconditionally.
12871
d4cbef22
ВМ
128722019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12873
12874 PR gdb/24350
12875 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12876
fce4c071
ВМ
128772019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12878
12879 PR gdb/24351
12880 * windows-nat.c (display_selector): Fix format specifiers.
12881
f7f0a123
EZ
128822019-03-17 Eli Zaretskii <eliz@gnu.org>
12883
12884 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12885 tui_refill_source_window instead of tui_refresh_win, to update the
12886 current execution line. This fixes redisplay of the current line
12887 when stepping through the code with "next" or "step".
12888
ab42892f
EZ
128892019-03-16 Eli Zaretskii <eliz@gnu.org>
12890
12891 * source-cache.c (source_cache::get_source_lines): Call
12892 find_source_lines to initialize s->nlines. This fixes vertical
12893 scrolling of TUI source window when the DOWN arrow is pressed.
12894
8d8c087f
PW
128952019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12896
12897 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12898 linux-thread-db.c (_initialize_thread_db): Likewise.
12899
798e1c30
EZ
129002019-03-16 Eli Zaretskii <eliz@gnu.org>
12901
12902 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12903 wclrtoeol in tui_show_source_line". This reverts changes made in
12904 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12905
eefba3da
TT
129062019-03-15 Tom Tromey <tom@tromey.com>
12907
12908 * symtab.h (struct minimal_symbol): Derive from
12909 general_symbol_info.
12910 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
12911 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
12912 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
12913 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
12914 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
12915 (MSYMBOL_SEARCH_NAME): Update.
12916 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
12917 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
12918 * minsyms.c (minimal_symbol_reader::record_full): Update.
12919
0de2420c
TT
129202019-03-15 Tom Tromey <tom@tromey.com>
12921
12922 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
12923
042d75e4
TT
129242019-03-15 Tom Tromey <tom@tromey.com>
12925
12926 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
12927 unique_xmalloc_ptr.
12928 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
12929 Update.
12930 * minsyms.c (lookup_minimal_symbol_by_pc_section)
12931 (build_minimal_symbol_hash_tables)
12932 (minimal_symbol_reader::install): Update.
12933
db92718b
TT
129342019-03-15 Tom Tromey <tom@tromey.com>
12935
12936 * symtab.c (create_demangled_names_hash): Update.
12937 (symbol_set_names): Update.
12938 * objfiles.h (struct objfile_per_bfd_storage)
12939 <demangled_names_hash>: Now an htab_up.
12940 * objfiles.c (objfile_per_bfd_storage): Simplify.
12941
d6797f46
TT
129422019-03-15 Tom Tromey <tom@tromey.com>
12943
12944 * objfiles.h (struct objfile_per_bfd_storage): Declare
12945 destructor.
12946 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
12947 New.
12948 (get_objfile_bfd_data): Use new. Don't initialize
12949 language_of_main.
12950 (free_objfile_per_bfd_storage): Remove.
12951 (objfile_bfd_data_free, objfile::~objfile): Use delete.
12952
741d7538
TT
129532019-03-15 Tom Tromey <tom@tromey.com>
12954
12955 * symfile.c (reread_symbols): Update.
12956 * objfiles.c (objfile::objfile): Update.
12957 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
12958 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
12959 comment.
12960 (minimal_symbol_reader::install): Update.
12961 (terminate_minimal_symbol_table): Remove.
12962 * jit.c (jit_object_close_impl): Update.
12963
788c80d1
TT
129642019-03-15 Tom Tromey <tom@tromey.com>
12965
12966 * minsyms.c (minimal_symbol_reader::record_full): Remove some
12967 initializations.
12968
1b7a07cb
TT
129692019-03-15 Tom Tromey <tom@tromey.com>
12970
12971 * objfiles.h (struct objfile_per_bfd_storage)
12972 <demangled_hash_languages>: Now a bitset.
12973 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
12974 (lookup_minimal_symbol): Update.
12975
3db066bc
TT
129762019-03-15 Tom Tromey <tom@tromey.com>
12977
12978 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
12979 Don't return the symbol.
12980 * coffread.c (record_minimal_symbol): Use record_full.
12981
3fff2c37
EZ
129822019-03-14 Eli Zaretskii <eliz@gnu.org>
12983
12984 The MS-Windows port of ncurses fails to switch to a color pair if
12985 one or both of the colors are the implicit default colors. This
12986 change records the default colors when TUI is initialized, and
12987 then specifies them explicitly when a color pair uses the default
12988 colors. This allows color styling in TUI mode on MS-Windows.
12989
12990 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
12991 ncurses_norm_attr.
12992 (tui_initialize_io) [__MINGW32__]: Record the default terminal
12993 colors in ncurses_norm_attr.
12994 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
12995 "none", replace it with the default color recorded in
12996 ncurses_norm_attr.
12997
3b336828
TT
129982019-03-14 Tom Tromey <tromey@adacore.com>
12999
13000 * source-cache.h (class source_cache) <get_source_lines>: Return
13001 std::string.
13002 * source-cache.c (source_cache::extract_lines): Handle case where
13003 first_pos==npos. Return std::string.
13004 (source_cache::get_source_lines): Update.
13005
d085f989
TT
130062019-03-14 Tom Tromey <tromey@adacore.com>
13007
13008 * NEWS: Add item for "style sources" commands.
13009 * source-cache.c (source_cache::get_source_lines): Check
13010 source_styling.
13011 * cli/cli-style.c (source_styling): New global.
13012 (_initialize_cli_style): Add "style sources" commands.
13013 (show_style_sources): New function.
13014 * cli/cli-style.h (source_styling): Declare.
13015
6f11e682
TT
130162019-03-14 Pedro Alves <palves@redhat.com>
13017 Tom Tromey <tromey@adacore.com>
13018
13019 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13020 * tui/tui-winsource.c (tui_refill_source_window): New function,
13021 from...
13022 (tui_horizontal_source_scroll): ... here. Move some logic.
13023 * cli/cli-style.c (set_style_enabled): Notify new observable.
13024 * tui/tui-hooks.c (tui_redisplay_source): New function.
13025 (tui_attach_detach_observers): Attach or detach
13026 tui_redisplay_source.
13027 * observable.h (source_styling_changed): New observable.
13028 * observable.c: Define source_styling_changed observable.
13029
a068643d
TT
130302019-03-13 Tom Tromey <tromey@adacore.com>
13031
13032 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13033 (i386_gnu_nat_target::store_registers): Update.
13034 * target-debug.h (target_debug_print_std_string): New macro.
13035 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13036 * windows-tdep.c (display_one_tib): Update.
13037 * tui/tui-stack.c (tui_make_status_line): Update.
13038 * top.c (print_inferior_quit_action): Update.
13039 * thread.c (thr_try_catch_cmd): Update.
13040 (add_thread_with_info): Update.
13041 (thread_target_id_str): Update.
13042 (thr_try_catch_cmd): Update.
13043 (thread_command): Update.
13044 (thread_find_command): Update.
13045 * record-btrace.c (record_btrace_target::info_record)
13046 (record_btrace_resume_thread, record_btrace_target::resume)
13047 (record_btrace_cancel_resume, record_btrace_step_thread)
13048 (record_btrace_target::wait, record_btrace_target::wait)
13049 (record_btrace_target::wait, record_btrace_target::stop): Update.
13050 * progspace.c (print_program_space): Update.
13051 * process-stratum-target.c
13052 (process_stratum_target::thread_address_space): Update.
13053 * linux-fork.c (linux_fork_mourn_inferior)
13054 (detach_checkpoint_command, info_checkpoints_command)
13055 (linux_fork_context): Update.
13056 (linux_fork_detach): Update.
13057 (class scoped_switch_fork_info): Update.
13058 (delete_checkpoint_command): Update.
13059 * infrun.c (follow_fork_inferior): Update.
13060 (follow_fork_inferior): Update.
13061 (proceed_after_vfork_done): Update.
13062 (handle_vfork_child_exec_or_exit): Update.
13063 (follow_exec): Update.
13064 (displaced_step_prepare_throw): Update.
13065 (displaced_step_restore): Update.
13066 (start_step_over): Update.
13067 (resume_1): Update.
13068 (clear_proceed_status_thread): Update.
13069 (proceed): Update.
13070 (print_target_wait_results): Update.
13071 (do_target_wait): Update.
13072 (context_switch): Update.
13073 (stop_all_threads): Update.
13074 (restart_threads): Update.
13075 (finish_step_over): Update.
13076 (handle_signal_stop): Update.
13077 (switch_back_to_stepped_thread): Update.
13078 (keep_going_pass_signal): Update.
13079 (print_exited_reason): Update.
13080 (normal_stop): Update.
13081 * inferior.c (inferior_pid_to_str): Change return type.
13082 (print_selected_inferior): Update.
13083 (add_inferior): Update.
13084 (detach_inferior): Update.
13085 * dummy-frame.c (fprint_dummy_frames): Update.
13086 * dcache.c (dcache_info_1): Update.
13087 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13088 (btrace_fetch, btrace_clear): Update.
13089 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13090 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13091 type.
13092 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13093 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13094 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13095 * gdbarch.c, gdbarch.h: Rebuild.
13096 * gdbarch.sh (core_pid_to_str): Change return type.
13097 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13098 return type.
13099 (windows_nat_target::pid_to_str): Change return type.
13100 (windows_delete_thread): Update.
13101 (windows_nat_target::attach): Update.
13102 (windows_nat_target::files_info): Update.
13103 * target-delegates.c: Rebuild.
13104 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13105 return type.
13106 (sol_thread_target::pid_to_str): Change return type.
13107 * remote.c (class remote_target) <pid_to_str>: Change return
13108 type.
13109 (remote_target::pid_to_str): Change return type.
13110 (extended_remote_target::attach, remote_target::remote_stop_ns)
13111 (remote_target::remote_notif_remove_queued_reply)
13112 (remote_target::push_stop_reply, remote_target::disable_btrace):
13113 Update.
13114 (extended_remote_target::attach): Update.
13115 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13116 type.
13117 (gdbsim_target::pid_to_str): Change return type.
13118 * ravenscar-thread.c (struct ravenscar_thread_target)
13119 <pid_to_str>: Change return type.
13120 (ravenscar_thread_target::pid_to_str): Change return type.
13121 * procfs.c (class procfs_target) <pid_to_str>: Change return
13122 type.
13123 (procfs_target::pid_to_str): Change return type.
13124 (procfs_target::attach): Update.
13125 (procfs_target::detach): Update.
13126 (procfs_target::fetch_registers): Update.
13127 (procfs_target::store_registers): Update.
13128 (procfs_target::wait): Update.
13129 (procfs_target::files_info): Update.
13130 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13131 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13132 return type.
13133 (nto_procfs_target::pid_to_str): Change return type.
13134 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13135 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13136 return type.
13137 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13138 (exit_lwp): Update.
13139 (attach_proc_task_lwp_callback, get_detach_signal)
13140 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13141 (linux_nat_target::resume, wait_lwp, stop_callback)
13142 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13143 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13144 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13145 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13146 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13147 type.
13148 (inf_ptrace_target::attach): Update.
13149 (inf_ptrace_target::files_info): Update.
13150 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13151 type.
13152 (go32_nat_target::pid_to_str): Change return type.
13153 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13154 (gnu_nat_target::wait): Update.
13155 (gnu_nat_target::wait): Update.
13156 (gnu_nat_target::resume): Update.
13157 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13158 (fbsd_nat_target::wait): Update.
13159 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13160 type.
13161 (darwin_nat_target::attach): Update.
13162 * corelow.c (class core_target) <pid_to_str>: Change return type.
13163 (core_target::pid_to_str): Change return type.
13164 * target.c (normal_pid_to_str): Change return type.
13165 (default_pid_to_str): Likewise.
13166 (target_pid_to_str): Change return type.
13167 (target_translate_tls_address): Update.
13168 (target_announce_detach): Update.
13169 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13170 return type.
13171 (bsd_uthread_target::pid_to_str): Change return type.
13172 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13173 type.
13174 (bsd_kvm_target::pid_to_str): Change return type.
13175 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13176 return type.
13177 (aix_thread_target::pid_to_str): Change return type.
13178 * target.h (struct target_ops) <pid_to_str>: Change return type.
13179 (target_pid_to_str, normal_pid_to_str): Likewise.
13180 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13181 type.
13182 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13183 type.
13184 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13185 return type.
13186 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13187 type.
13188 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13189 type.
13190 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13191 return type.
13192
b4be1b06
SM
131932019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13194
13195 * NEWS: Mention that the new default MI version is 3. Mention
13196 changes to the output of commands and events that deal with
13197 multi-location breakpoints.
13198 * breakpoint.c: Include "mi/mi-out.h".
13199 (print_one_breakpoint): Change output syntax if using MI version
13200 >= 3.
13201 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13202 New.
13203 (mi_multi_location_breakpoint_output_fixed): New.
13204 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13205 (mi_cmd_fix_multi_location_breakpoint_output): New.
13206 (mi_multi_location_breakpoint_output_fixed): New.
13207 * mi/mi-cmds.c (mi_cmds): Register command
13208 -fix-multi-location-breakpoint-output.
13209 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13210 interpreter "mi".
13211
8e5e5494
SM
132122019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13213
13214 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13215 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13216 instantiate mi_ui_out based on interpreter name.
13217 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13218 * mi/mi-main.c (mi_load_progress): Likewise.
13219
197df35e
JB
132202019-03-12 John Baldwin <jhb@FreeBSD.org>
13221
13222 * NEWS: Combine separate "New targets" sections for 8.3.
13223
8399425f
JB
132242019-03-12 John Baldwin <jhb@FreeBSD.org>
13225
13226 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13227 (ppcfbsd_init_abi): Install gdbarch
13228 "fetch_tls_load_module_address" and "get_thread_local_address"
13229 methods.
13230
b0f87ed0
JB
132312019-03-12 John Baldwin <jhb@FreeBSD.org>
13232
13233 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13234 (riscv_fbsd_init_abi): Install gdbarch
13235 "fetch_tls_load_module_address" and "get_thread_local_address"
13236 methods.
13237
ce25aa57
JB
132382019-03-12 John Baldwin <jhb@FreeBSD.org>
13239
13240 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13241 (i386fbsd_init_abi): Install gdbarch
13242 "fetch_tls_load_module_address" and "get_thread_local_address"
13243 methods.
13244
f5424cfa
JB
132452019-03-12 John Baldwin <jhb@FreeBSD.org>
13246
13247 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13248 (amd64fbsd_init_abi): Install gdbarch
13249 "fetch_tls_load_module_address" and "get_thread_local_address"
13250 methods.
13251
945f3901
JB
132522019-03-12 John Baldwin <jhb@FreeBSD.org>
13253
13254 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13255 (struct fbsd_pspace_data): New type.
13256 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13257 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13258 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13259 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13260 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13261
ef0bd204
JB
132622019-03-12 John Baldwin <jhb@FreeBSD.org>
13263
13264 * gdbtypes.c (lookup_struct_elt): New function.
13265 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13266 * gdbtypes.h (struct struct_elt): New type.
13267 (lookup_struct_elt): New prototype.
13268
36c53a02
JB
132692019-03-12 John Baldwin <jhb@FreeBSD.org>
13270
13271 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13272 remove disabled code block.
13273
6e056c81
JB
132742019-03-12 John Baldwin <jhb@FreeBSD.org>
13275
13276 * gdbarch.sh (get_thread_local_address): New method.
13277 * gdbarch.h, gdbarch.c: Regenerate.
13278 * target.c (target_translate_tls_address): Use
13279 gdbarch_get_thread_local_address if present instead of
13280 target::get_thread_local_address.
13281
cd250a18
JB
132822019-03-12 John Baldwin <jhb@FreeBSD.org>
13283
13284 * target.h (target::get_thread_local_address): Update comment.
13285
df22c1e5
JB
132862019-03-12 John Baldwin <jhb@FreeBSD.org>
13287
13288 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13289 objfile->separate_debug_objfile_backlink if not NULL.
13290
dd6876c9
JB
132912019-03-12 John Baldwin <jhb@FreeBSD.org>
13292
13293 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13294 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13295 (amd64bsd_store_inferior_registers): Likewise.
13296 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13297 Enable segment base registers.
13298 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13299 PT_GETFSBASE and PT_GETGSBASE.
13300 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13301 PT_SETGSBASE.
13302 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13303 segment base registers.
13304 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13305
1163a4b7
JB
133062019-03-12 John Baldwin <jhb@FreeBSD.org>
13307
13308 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13309 Update calls to i386_target_description to add 'segments'
13310 parameter.
13311 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13312 add segment base registers.
13313 * arch/i386.c (i386_create_target_description): Add 'segments'
13314 parameter to enable segment base registers.
13315 * arch/i386.h (i386_create_target_description): Likewise.
13316 * features/i386/32bit-segments.xml: New file.
13317 * features/i386/32bit-segments.c: Generate.
13318 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13319 call to i386_target_description to add 'segments' parameter.
13320 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13321 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13322 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13323 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13324 if feature is present.
13325 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13326 Add 'segments' parameter to call to i386_target_description.
13327 (i386_target_description): Add 'segments' parameter to enable
13328 segment base registers.
13329 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13330 to call to i386_target_description.
13331 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13332 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13333 Define I386_NUM_REGS.
13334 (i386_target_description): Add 'segments' parameter to enable
13335 segment base registers.
13336
3a350822
EZ
133372019-03-12 Eli Zaretskii <eliz@gnu.org>
13338
13339 PR/24325
13340 * source-cache.c: #undef open and close, to avoid unresolved
13341 externals during linking.
13342
ffdd69cf
TT
133432019-03-12 Tom Tromey <tromey@adacore.com>
13344
13345 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13346 const. Add initializers.
13347 (_initialize_remote): Don't initialize ptid globals.
13348
ec148c57
PA
133492019-03-12 Pedro Alves <palves@redhat.com>
13350
13351 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13352
32764270
PA
133532019-03-12 Pedro Alves <palves@redhat.com>
13354
13355 * cp-name-parser.y (main): Remove unused 'len' variable.
13356
17547186
TT
133572019-03-12 Tom Tromey <tromey@adacore.com>
13358
13359 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13360 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13361
d3a70e03
TT
133622019-03-12 Tom Tromey <tromey@adacore.com>
13363
13364 * linux-nat.c (iterate_over_lwps): Update.
13365 (stop_callback): Remove parameter.
13366 (stop_wait_callback, detach_callback, resume_set_callback)
13367 (select_singlestep_lwp_callback, set_ignore_sigint)
13368 (status_callback, resumed_callback, resume_clear_callback)
13369 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13370 data parameter.
13371 (linux_nat_target::detach, linux_nat_target::resume)
13372 (linux_stop_and_wait_all_lwps, select_event_lwp)
13373 (linux_nat_filter_event, linux_nat_wait_1)
13374 (linux_nat_target::kill, linux_nat_target::stop)
13375 (linux_nat_target::stop): Update.
13376 (linux_nat_resume_callback): Change type.
13377 (resume_stopped_resumed_lwps, count_events_callback)
13378 (select_event_lwp_callback): Likewise.
13379 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13380 * arm-linux-nat.c (struct update_registers_data): Remove.
13381 (update_registers_callback): Change type.
13382 (arm_linux_insert_hw_breakpoint1): Update.
13383 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13384 parameter.
13385 (x86_linux_dr_set_addr): Update.
13386 (x86_linux_dr_set_control): Update.
13387 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13388 (iterate_over_lwps): Use gdb::function_view.
13389 * nat/aarch64-linux-hw-point.c (struct
13390 aarch64_dr_update_callback_param): Remove.
13391 (debug_reg_change_callback): Change type.
13392 (aarch64_notify_debug_reg_change): Update.
13393 * s390-linux-nat.c (s390_refresh_per_info): Update.
13394
82cb27ff
TT
133952019-03-11 Tom Tromey <tromey@adacore.com>
13396
13397 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13398 redundant assignment to "this_cu".
13399
568c0683
SM
134002019-03-08 Simon Marchi <simon.marchi@efficios.com>
13401
13402 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13403
f09ce22d
SM
134042019-03-08 Simon Marchi <simon.marchi@efficios.com>
13405
13406 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13407 from...
13408 (rank_one_type): ... this.
13409
595f96a9
SM
134102019-03-08 Simon Marchi <simon.marchi@efficios.com>
13411
13412 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13413 from...
13414 (rank_one_type): ... this.
13415
2598a94b
SM
134162019-03-08 Simon Marchi <simon.marchi@efficios.com>
13417
13418 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13419 from...
13420 (rank_one_type): ... this.
13421
7f17b20d
SM
134222019-03-08 Simon Marchi <simon.marchi@efficios.com>
13423
13424 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13425 from...
13426 (rank_one_type): ... this.
13427
2c509035
SM
134282019-03-08 Simon Marchi <simon.marchi@efficios.com>
13429
13430 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13431 from...
13432 (rank_one_type): ... this.
13433
0dd322dc
SM
134342019-03-08 Simon Marchi <simon.marchi@efficios.com>
13435
13436 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13437 from...
13438 (rank_one_type): ... this.
13439
41ea4728
SM
134402019-03-08 Simon Marchi <simon.marchi@efficios.com>
13441
13442 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13443 from...
13444 (rank_one_type): ... this.
13445
793cd1d2
SM
134462019-03-08 Simon Marchi <simon.marchi@efficios.com>
13447
13448 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13449 from...
13450 (rank_one_type): ... this.
13451
34910087
SM
134522019-03-08 Simon Marchi <simon.marchi@efficios.com>
13453
13454 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13455 from...
13456 (rank_one_type): ... this.
13457
f1f832d6
SM
134582019-03-08 Simon Marchi <simon.marchi@efficios.com>
13459
13460 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13461 from...
13462 (rank_one_type): ... this.
13463
b9f4512f
SM
134642019-03-08 Simon Marchi <simon.marchi@efficios.com>
13465
13466 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13467 from...
13468 (rank_one_type): ... this.
13469
9293fc63
SM
134702019-03-08 Simon Marchi <simon.marchi@efficios.com>
13471
13472 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13473 from...
13474 (rank_one_type): ... this.
13475
e3abbe7e
PW
134762019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13477
13478 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13479 inferior-events' shows the example events.
13480
e4adb939
EZ
134812019-03-08 Eli Zaretskii <eliz@gnu.org>
13482
13483 Support styling on native MS-Windows console
13484
13485 PR/24315
13486 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13487 on MS-Windows if $TERM is not defined.
13488
13489 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13490
13491 * posix-hdep.c (gdb_console_fputs):
13492 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13493 functions.
13494 * ui-file.h (gdb_console_fputs): Add prototype.
13495
13496 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13497 back to fputs only if the former returns zero.
13498
25629dfd
TT
134992019-03-07 Tom Tromey <tom@tromey.com>
13500
13501 * symmisc.c (print_symbol_bcache_statistics): Update.
13502 (print_objfile_statistics): Update.
13503 * symfile.c (allocate_symtab): Update.
13504 * stabsread.c: Don't include bcache.h.
13505 * psymtab.h (struct psymbol_bcache): Don't declare.
13506 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13507 (psymbol_bcache_init, psymbol_bcache_free)
13508 (psymbol_bcache_get_bcache): Don't declare.
13509 * psymtab.c (struct psymbol_bcache): Remove.
13510 (psymtab_storage::psymtab_storage): Update.
13511 (psymtab_storage::~psymtab_storage): Update.
13512 (psymbol_bcache_init, psymbol_bcache_free)
13513 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13514 (add_psymbol_to_bcache): Update.
13515 (allocate_psymtab): Update.
13516 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13517 macro_cache>: No longer pointers.
13518 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13519 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13520 * macrotab.c (macro_bcache): Update.
13521 * macroexp.c: Don't include bcache.h.
13522 * gdbtypes.c (check_types_worklist): Update.
13523 (types_deeply_equal): Remove TRY/CATCH. Update.
13524 * elfread.c (elf_symtab_read): Update.
13525 * dwarf2read.c: Don't include bcache.h.
13526 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13527 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13528 (print_bcache_statistics, bcache_memory_used): Don't declare.
13529 (struct bcache): Move from bcache.c. Add constructor, destructor,
13530 methods. Rename all data members.
13531 * bcache.c (struct bcache): Move to bcache.h.
13532 (bcache::expand_hash_table): Rename from expand_hash_table.
13533 (bcache): Remove.
13534 (bcache::insert): Rename from bcache_full.
13535 (bcache::compare): Rename from bcache_compare.
13536 (bcache_xmalloc): Remove.
13537 (bcache::~bcache): Rename from bcache_xfree.
13538 (bcache::print_statistics): Rename from print_bcache_statistics.
13539 (bcache::memory_used): Rename from bcache_memory_used.
13540
fe726667
PA
135412019-03-07 Pedro Alves <palves@redhat.com>
13542
13543 * infrun.c (normal_stop): Also check for
13544 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13545
7584bb30
AB
135462019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13547
13548 * f-lang.c (value_from_host_double): Moved to...
13549 * value.c (value_from_host_double): ...here.
13550 * value.h (value_from_host_double): Declare.
13551 * guile/scm-math.c (vlscm_convert_typed_number): Use
13552 value_from_host_double.
13553 (vlscm_convert_number): Likewise.
13554 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13555 * python/py-value.c (convert_value_from_python): Likewise.
13556
a7b1986e
TT
135572019-03-06 Tom Tromey <tom@tromey.com>
13558
13559 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13560
0ccf4211
TT
135612019-03-06 Tom Tromey <tom@tromey.com>
13562
13563 * utils.h (free_current_contents): Don't declare.
13564 * utils.c (free_current_contents): Remove.
13565
fe7b42e5
TT
135662019-03-06 Tom Tromey <tom@tromey.com>
13567
13568 * top.c (quit_force): Update.
13569 * main.c (captured_command_loop): Update.
13570 * common/new-op.c (operator new): Update.
13571 * common/common-exceptions.c (struct catcher)
13572 <save_cleanup_chain>: Remove member.
13573 (exceptions_state_mc_init): Update.
13574 (exception_try_scope_entry): Return nullptr.
13575 (exception_try_scope_exit, exception_rethrow)
13576 (throw_exception_sjlj, throw_exception_cxx): Update.
13577 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13578 (all_cleanups, do_cleanups, discard_cleanups)
13579 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13580 (restore_cleanups, restore_final_cleanups): Don't declare.
13581 (do_final_cleanups): Remove parameter.
13582 * common/cleanups.c (cleanup_chain, make_cleanup)
13583 (make_cleanup_dtor, all_cleanups, do_cleanups)
13584 (discard_my_cleanups, discard_cleanups)
13585 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13586 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13587 (null_cleanup): Remove.
13588 (do_final_cleanups): Remove parameter.
13589
c6321f19
TT
135902019-03-06 Tom Tromey <tom@tromey.com>
13591
13592 * remote.c (remote_target::remote_parse_stop_reply): Use
13593 unique_xmalloc_ptr.
13594
61b30099
TT
135952019-03-06 Tom Tromey <tom@tromey.com>
13596
13597 * stabsread.c (struct stabs_field_info): Rename from field_info.
13598 <list, fnlist>: Add initializers.
13599 <obstack>: New member.
13600 (read_member_functions, read_struct_fields, read_baseclasses):
13601 Allocate on obstack. Don't use cleanups.
13602 (read_one_struct_field, read_member_functions, read_struct_fields)
13603 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13604 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13605 (read_struct_type): Update.
13606
6cceac94
TT
136072019-03-06 Tom Tromey <tom@tromey.com>
13608
13609 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13610 * common/filestuff.h (make_cleanup_close): Don't declare.
13611 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13612 Remove.
13613
72412762
TT
136142019-03-06 Tom Tromey <tom@tromey.com>
13615
13616 * solib-aix.c: Use make_scope_exit.
13617
2b6ff1c0
TT
136182019-03-06 Tom Tromey <tom@tromey.com>
13619
13620 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13621 Use make_scope_exit.
13622
d01c5877
TT
136232019-03-06 Tom Tromey <tom@tromey.com>
13624
13625 * solib-svr4.c (disable_probes_interface): Remove parameter.
13626 (svr4_handle_solib_event): Use make_scope_exit.
13627
32603266
TT
136282019-03-06 Tom Tromey <tom@tromey.com>
13629
13630 * remote.c (struct stop_reply_deleter): Remove.
13631 (stop_reply_up): Update.
13632 (struct stop_reply): Derive from notif_event. Don't typedef.
13633 <regcache>: Now a std::vector.
13634 (stop_reply_xfree): Remove.
13635 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13636 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13637 (remote_target::discard_pending_stop_replies): Use delete.
13638 (remote_target::remote_parse_stop_reply): Update.
13639 (remote_target::process_stop_reply): Update.
13640 * remote-notif.h (struct notif_event): Add virtual destructor.
13641 Remove "dtr" member.
13642 (struct notif_client) <alloc_event>: Return a unique_ptr.
13643 (notif_event_xfree): Don't declare.
13644 (notif_event_up): New typedef.
13645 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13646 (notif_event_xfree, do_notif_event_xfree): Remove.
13647 (remote_notif_state_xfree): Update.
13648
9799571e
TT
136492019-03-06 Tom Tromey <tom@tromey.com>
13650
13651 * infrun.c (displaced_step_clear_cleanup): Now a
13652 forward_scope_exit type.
13653 (displaced_step_prepare_throw): Update.
13654 (displaced_step_fixup): Update.
13655
09e3c4ca
TT
136562019-03-06 Tom Tromey <tom@tromey.com>
13657
13658 * inferior.h (class inferior): Update comment.
13659 * gdbthread.h (class thread_info): Update comment.
13660
e2a03548
TT
136612019-03-06 Joel Brobecker <brobecker@adacore.com>
13662 Tom Tromey <tom@tromey.com>
13663
13664 * stabsread.h (struct stab_section_list): Remove.
13665 (coffstab_build_psymtabs): Update.
13666 * dbxread.c (symbuf_sections): Now a std::vector.
13667 (sect_idx): New global.
13668 (fill_symbuf): Update.
13669 (coffstab_build_psymtabs): Change type of stabsects parameter.
13670 Update.
13671 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13672 std::vector.
13673 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13674 (coff_locate_sections): Update.
13675 (coff_symfile_read): Remove cleanups. Update.
13676 (init_stringtab): Add storage parameter.
13677 (free_stringtab, free_stringtab_cleanup): Remove.
13678 (init_lineno): Add storage parameter.
13679 (free_linetab, free_linetab_cleanup): Remove.
13680
b7e60d85
PA
136812019-03-06 Pedro Alves <palves@redhat.com>
13682
13683 * linux-fork.c (fork_info::clobber_regs): Delete.
13684 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13685 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13686 comment. Adjust.
13687 (scoped_switch_fork_info::scoped_switch_fork_info)
13688 (checkpoint_command, linux_fork_context): Adjust
13689 fork_save_infrun_state calls.
13690
e52c971f
PA
136912019-03-06 Pedro Alves <palves@redhat.com>
13692
13693 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13694 (inf_has_multiple_threads): Return 'bool' and rewrite using
13695 inferior_info::threads().
13696
06974e6c
PA
136972019-03-06 Pedro Alves <palves@redhat.com>
13698
13699 * linux-fork.c: Include <list>.
13700 (fork_list): Now a std::list instance.
13701 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13702 (forks_exist_p, find_last_fork): Adjust.
13703 (new_fork): Delete.
13704 (one_fork_p): New.
13705 (add_fork): Adjust.
13706 (free_fork): Delete, folded into fork_info::~fork_info().
13707 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13708 Adjust.
13709 (init_fork_list): Delete.
13710 (linux_fork_killall, linux_fork_mourn_inferior)
13711 (linux_fork_detach, info_checkpoints_command): Adjust.
13712 (_initialize_linux_fork): No longer call init_fork_list.
13713
72f31aea
PA
137142019-03-06 Pedro Alves <palves@redhat.com>
13715
13716 * linux-fork.c (new_fork): New, split out of ...
13717 (add_fork): ... this. Return void. Move "first fork" special
13718 case from here, to ...
13719 (checkpoint_command): ... here.
13720 * linux-linux.h (add_fork): Return void.
13721
efbecbc1
AB
137222019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13723
13724 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13725
0841c79a
AB
137262019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13727 Chris January <chris.january@arm.com>
13728 David Lecomber <david.lecomber@arm.com>
13729
13730 * f-exp.y: New token, UNOP_INTRINSIC.
13731 (exp): New pattern using UNOP_INTRINSIC token.
13732 (f77_keywords): Add 'abs' keyword.
13733 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13734 (value_from_host_double): New function.
13735 (evaluate_subexp_f): Support UNOP_ABS.
13736
4a270568
AB
137372019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13738
13739 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13740 types.
13741
067630bd
AB
137422019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13743
13744 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13745 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13746 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13747
3be47f7a
AB
137482019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13749
13750 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13751
4d00f5d8
AB
137522019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13753 Chris January <chris.january@arm.com>
13754
13755 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13756 * f-exp.y: Define 'KIND' token.
13757 (exp): New pattern for KIND expressions.
13758 (ptype): Handle types with a kind extension.
13759 (direct_abs_decl): Extend to spot kind extensions.
13760 (f77_keywords): Add 'kind' to the list.
13761 (push_kind_type): New function.
13762 (convert_to_kind_type): New function.
13763 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13764 * parse.c (operator_length_standard): Likewise.
13765 * parser-defs.h (enum type_pieces): Add tp_kind.
13766 * std-operator.def: Add UNOP_KIND.
13767
e454224f
AB
137682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13769
13770 * f-exp.y (f_parse): Set yydebug.
13771
9dad4a58
AB
137722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13773
13774 * f-lang.c (evaluate_subexp_f): New function.
13775 (exp_descriptor_f): New global.
13776 (f_language_defn): Use exp_descriptor_f instead of
13777 exp_descriptor_standard.
13778
c8f91604
AB
137792019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13780
13781 * f-exp.y (struct token): Add comments.
13782 (dot_ops): Remove uppercase versions and the end marker.
13783 (f77_keywords): Likewise.
13784 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13785 entries in the dot_ops array are case insensitive, and use
13786 strncasecmp to compare strings. Also some whitespace cleanup in
13787 this area. Similar for the f77_keywords array, except entries in
13788 this list might be case sensitive.
13789
dd9f2c76
AB
137902019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13791
13792 * f-exp.y (struct f77_boolean_val): Add comments.
13793 (boolean_values): Remove uppercase versions, and end marker.
13794 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13795 and use strncasecmp to achieve case insensitivity. Additionally,
13796 perform whitespace cleanup around this code.
13797
67a3048c
TT
137982019-03-06 Tom Tromey <tromey@adacore.com>
13799
13800 * remote-sim.c (gdbsim_target_open): Use result of
13801 gdb_argv::release.
13802
aa3cfbda
RB
138032019-03-06 Richard Bunt <richard.bunt@arm.com>
13804 Dirk Schubert <dirk.schubert@arm.com>
13805 Chris January <chris.january@arm.com>
13806
13807 * eval.c (evaluate_subexp_standard): Call Fortran argument
13808 wrapping logic.
13809 * f-lang.c (struct value): A value which can be passed into a
13810 Fortran function call.
13811 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13812 where appropriate.
13813 (struct type): Value ready for a Fortran function call.
13814 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13815 is needed.
13816 * f-lang.h (fortran_argument_convert): Declaration.
13817 (fortran_preserve_arg_pointer): Declaration.
13818 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13819
ea38e5df
TT
138202019-03-05 Tom Tromey <tromey@adacore.com>
13821
13822 * python/py-prettyprint.c (print_string_repr): Remove #if.
13823 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13824
06b5b831
TT
138252019-03-05 Tom Tromey <tromey@adacore.com>
13826
13827 * target.c (the_dummy_target): Move later. Change type to
13828 "dummy_target".
13829 (initialize_targets): Don't initialize the_dummy_target.
13830
edbd9e45
TT
138312019-03-05 Tom Tromey <tromey@adacore.com>
13832
13833 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13834 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13835
c119e040
TT
138362019-03-05 Tom Tromey <tromey@adacore.com>
13837
13838 * windows-nat.c (windows_nat_target::attach)
13839 (windows_nat_target::detach): Don't call gdb_flush.
13840 * valprint.c (generic_val_print, val_print, val_print_string):
13841 Don't call gdb_flush.
13842 * utils.c (defaulted_query): Don't call gdb_flush.
13843 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13844 * target.c (target_announce_detach): Don't call gdb_flush.
13845 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13846 * remote.c (extended_remote_target::attach): Don't call
13847 gdb_flush.
13848 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13849 * printcmd.c (do_examine): Don't call gdb_flush.
13850 (info_display_command): Don't call gdb_flush.
13851 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13852 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13853 * memattr.c (info_mem_command): Don't call gdb_flush.
13854 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13855 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13856 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13857 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13858 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13859 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13860 (gnu_nat_target::detach): Don't call gdb_flush.
13861 * f-valprint.c (f_val_print): Don't call gdb_flush.
13862 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13863 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13864 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13865 gdb_flush.
13866 * c-valprint.c (c_val_print): Don't call gdb_flush.
13867 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13868
895dafa6
TT
138692019-03-05 Tom Tromey <tromey@adacore.com>
13870
13871 * varobj.c (update_dynamic_varobj_children): Update.
13872 (install_default_visualizer): Use reset, not release.
13873 * value.c (set_internalvar): Update.
13874 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13875 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13876 ATTRIBUTE_UNUSED_RESULT.
13877
88a774b9
TT
138782019-03-05 Tom Tromey <tromey@adacore.com>
13879
13880 * remote.c (class scoped_remote_fd) <release>: Add
13881 ATTRIBUTE_UNUSED_RESULT.
13882
4e4a8b93
TT
138832019-03-05 Tom Tromey <tromey@adacore.com>
13884
13885 * macroexp.c (struct macro_buffer) <release>: Add
13886 ATTRIBUTE_UNUSED_RESULT.
13887
083eef1f
TT
138882019-03-05 Tom Tromey <tromey@adacore.com>
13889
13890 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13891 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13892 ATTRIBUTE_UNUSED_RESULT.
13893
3cabd438
TT
138942019-03-05 Tom Tromey <tromey@adacore.com>
13895
13896 * common/scoped_fd.h (class scoped_fd) <release>: Add
13897 ATTRIBUTE_UNUSED_RESULT.
13898
41e3300a
TT
138992019-03-05 Tom Tromey <tromey@adacore.com>
13900
13901 * parser-defs.h (struct parser_state) <release>: Add
13902 ATTRIBUTE_UNUSED_RESULT.
13903
18cb7c9f
TT
139042019-03-05 Tom Tromey <tromey@adacore.com>
13905
13906 * utils.h (class gdb_argv) <release>: Add
13907 ATTRIBUTE_UNUSED_RESULT.
13908 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
13909
41fa577f
EZ
139102019-03-02 Eli Zaretskii <eliz@gnu.org>
13911
a6a4b2c6
EZ
13912 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
13913 for-loop range, to avoid compiler warnings.
13914
13915 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
13916 avoid compiler warnings about unused variables.
13917
742a7df5
EZ
13918 * NEWS: Mention end of support for native debugging on MS-Windows
13919 before XP.
13920
41fa577f
EZ
13921 PR gdb/24292
13922 * common/netstuff.c:
13923 * gdbserver/gdbreplay.c
13924 * gdbserver/remote-utils.c:
13925 * ser-tcp.c:
13926 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
13927 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
13928 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
13929 'getaddrinfo' and 'freeaddrinfo' were not available before
13930 Windows XP, and mingw.org's MinGW headers by default define
13931 _WIN32_WINNT to 0x500.
13932
827f438f
GB
139332019-03-01 Gary Benson <gbenson@redhat.com>
13934
13935 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
13936
92137da0
RO
139372019-02-28 Brian Vandenberg <phantall@gmail.com>
13938 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13939
13940 PR gdb/8527
13941 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
13942 set_sigint_trap, clear_sigint_trap.
13943
799efbe8
PW
139442019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13945
13946 * target.c (target_detach): Clear the regcache and the
13947 frame cache.
13948
8ed25214
PA
139492019-02-27 Pedro Alves <palves@redhat.com>
13950
13951 * utils.c (set_screen_size): When we cap the height/width sizes,
13952 tweak the corresponding command variable to show "unlimited":
13953
23031e31
SJ
139542019-02-27 Saagar Jha <saagar@saagarjha.com>
13955 Pedro Alves <palves@redhat.com>
13956
13957 * utils.c (set_screen_size): Reduce "infinite" rows and columns
13958 before calling rl_set_screen_size.
13959
6c28e44a
TT
139602019-02-27 Tom Tromey <tromey@adacore.com>
13961
13962 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
13963 define.
13964 * python/py-value.c: Remove Python 2.4 workaround.
13965 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
13966 workaround.
13967 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
13968 Python 2.4 workaround.
13969 * python/python-internal.h: Remove Python 2.4 comment.
13970 (Py_ssize_t): Don't define.
13971 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
13972 (gdb_Py_DECREF): Remove Python 2.4 workaround.
13973 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
13974 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
13975 * python/python.c (do_start_initialization): Remove Python 2.4
13976 workaround.
13977 * python/py-prettyprint.c (class dummy_python_frame): Remove.
13978 (print_children): Remove Python 2.4 workaround.
13979 * python/py-inferior.c (buffer_procs): Remove Python 2.4
13980 workaround.
13981 (CHARBUFFERPROC_NAME): Remove.
13982 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
13983 Python 2.4 workaround.
13984
2c3fc25d 139852019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 13986
2c3fc25d
KB
13987 * NEWS: Note minimum Python version.
13988
6ca62222
KB
139892019-02-27 Kevin Buettner <kevinb@redhat.com>
13990
13991 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
13992 code from these functions. Remove corresponding ifdefs. Use
13993 Py_buffer_up instead of explicit calls to PyBuffer_Release.
13994 Remove gotos and target of gotos.
13995 (infpy_search_memory): Likewise.
13996
f4bc7d2c
AB
139972019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13998
13999 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14000 (hppa_gdbarch_init): Don't register deleted functions with
14001 gdbarch.
14002
9734a586
AB
140032019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14004
14005 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14006 (h8300_unwind_sp): Delete.
14007 (h8300_dummy_id): Delete.
14008 (h8300_gdbarch_init): Don't register deleted functions with
14009 gdbarch.
14010
68b867f3
AB
140112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14012
14013 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14014 (ft32_unwind_pc): Delete.
14015 (ft32_unwind_sp): Delete.
14016 (ft32_gdbarch_init): Don't register deleted functions with
14017 gdbarch.
14018
2fbe7ad0
AB
140192019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14020
14021 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14022 (frv_unwind_pc): Delete.
14023 (frv_unwind_sp): Delete.
14024 (frv_gdbarch_init): Don't register deleted functions with
14025 gdbarch.
14026
76055cbe
AB
140272019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14028
14029 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14030 (riscv_unwind_pc): Delete.
14031 (riscv_unwind_sp): Delete.
14032 (riscv_gdbarch_init): Don't register deleted functions with
14033 gdbarch.
14034
4133e5a1
AB
140352019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14036
14037 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14038 (csky_unwind_pc): Delete.
14039 (csky_unwind_sp): Delete.
14040 (csky_gdbarch_init): Don't register deleted functions with
14041 gdbarch.
14042
8010f576
AB
140432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14044
14045 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14046 (cris_unwind_pc): Delete.
14047 (cris_unwind_sp): Delete.
14048 (cris_gdbarch_init): Don't register deleted functions with
14049 gdbarch.
14050
b56bf084
AB
140512019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14052
14053 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14054 (bfin_unwind_pc): Delete.
14055 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14056
a19a650f
AB
140572019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14058
14059 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14060 (arm_unwind_pc): Delete.
14061 (arm_unwind_sp): Delete.
14062 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14063
f8278c3c
AB
140642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14065
14066 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14067 (arc_unwind_pc): Delete.
14068 (arc_unwind_sp): Delete.
14069 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14070
480e46cf
AB
140712019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14072
14073 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14074 (alpha_unwind_pc): Delete.
14075 (alpha_gdbarch_init): Don't register deleted functions with
14076 gdbarch.
14077
7a995095
AB
140782019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14079
14080 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14081 (aarch64_unwind_pc): Delete.
14082 (aarch64_unwind_sp): Delete.
14083 (aarch64_gdbarch_init): Don't register deleted functions with
14084 gdbarch.
14085
bf9a735e
AB
140862019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14087
14088 * gdbtypes.c (type_align): Don't consider static members when
14089 computing structure alignment.
14090
5561fc30
AB
140912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14092
14093 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14094 return 0 for other types.
14095 * arch-utils.c (default_type_align): Always return 0.
14096 * gdbarch.h: Regenerate.
14097 * gdbarch.sh (type_align): Extend comment.
14098 * gdbtypes.c (type_align): Add additional comments, always call
14099 gdbarch_type_align before applying the default rules.
14100 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14101 generic code will then apply a suitable default.
14102 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14103 types, return 0 for other types.
14104
9335e75a
JB
141052019-02-27 Joel Brobecker <brobecker@adacore.com>
14106
14107 * NEWS: Create a new section for the next release branch.
14108 Rename the section of the current branch, now that it has
14109 been cut.
14110
3d34d8de
JB
141112019-02-27 Joel Brobecker <brobecker@adacore.com>
14112
14113 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14114 * version.in: Bump version to 8.3.50.DATE-git.
14115
143420fb
SM
141162019-02-26 Simon Marchi <simon.marchi@efficios.com>
14117
14118 * aix-thread.c (ptid_cmp): Remove unused variable.
14119 (get_signaled_thread): Likewise.
14120 (store_regs_user_thread): Likewise.
14121 (store_regs_kernel_thread): Likewise.
14122 (fetch_regs_kernel_thread): Remove shadowed variable.
14123
172fb711
AB
141242019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14125
14126 * features/riscv/32bit-cpu.xml: Add register numbers.
14127 * features/riscv/32bit-fpu.c: Regenerate.
14128 * features/riscv/32bit-fpu.xml: Add register numbers.
14129 * features/riscv/64bit-cpu.xml: Add register numbers.
14130 * features/riscv/64bit-fpu.c: Regenerate.
14131 * features/riscv/64bit-fpu.xml: Add register numbers.
14132
26c89782
KB
141332019-02-26 Kevin Buettner <kevinb@redhat.com>
14134
af54ade9 14135 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14136 * python/py-value.c (convert_buffer_and_type_to_value): New
14137 function.
14138 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14139 Add support for handling an optional second argument. Call
14140 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14141 * python/python-internal.h (Py_buffer_deleter): New struct.
14142 (Py_buffer_up): New typedef.
14143
0f58c9e8
JB
141442019-02-25 John Baldwin <jhb@FreeBSD.org>
14145
14146 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14147 instead of releasing ownership.
14148
0a0f4c01
JR
141492019-02-25 Jordan Rupprecht <rupprecht@google.com>
14150
14151 * dwarf2read.c (open_and_init_dwp_file): Call
14152 elf_numsections instead of bfd_count_sections to initialize
14153 dwp_file->num_sections.
14154
cd5a152c
TT
141552019-02-25 Tom Tromey <tromey@adacore.com>
14156
14157 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14158
8a6a8513
SDJ
141592019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14160
14161 * gcore.in: Add '--readnever' option when invoking GDB.
14162
04dcda9c
SM
141632019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14164
14165 * MAINTAINERS: Update my email address.
14166
07bc701d
SM
141672019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14168
14169 * build-id.c (build_id_to_debug_bfd_1): New function.
14170 (build_id_to_debug_bfd): Look for separate debug file in
14171 sysroot.
14172
c6f4a5d0
AB
141732019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14174
14175 * gdbarch.sh: Update the copyright year range that is placed into
14176 generated files.
14177
9600246d
KS
141782019-02-22 Keith Seitz <keiths@redhat.com>
14179
14180 PR symtab/23853
14181 * linespec.c (create_sals_line_offset): Search for the default
14182 symtab's filename instead of its fullname.
14183
7557a514
AH
141842019-02-21 Alan Hayward <alan.hayward@arm.com>
14185
14186 * NEWS: Update style defaults.
14187
ee2bcb0c
AH
141882019-02-21 Alan Hayward <alan.hayward@arm.com>
14189
14190 * main.c (captured_main_1): Disable styling in batch mode.
14191
0c95f9ed
TT
141922019-02-20 Tom Tromey <tom@tromey.com>
14193
14194 * symtab.c (symtab_symbol_info): Fix typos.
14195
c763b894
TT
141962019-02-20 Tom Tromey <tromey@adacore.com>
14197
14198 * findcmd.c (_initialize_mem_search): Use upper case for
14199 metasyntactic variables.
14200
0ef8a082
AH
142012019-02-20 Alan Hayward <alan.hayward@arm.com>
14202
14203 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14204 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14205
6caa91b6
SM
142062019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14207
14208 * top.h (source_file_name): Change to std::string.
14209 * top.c (source_file_name): Likewise.
14210 (command_line_input): Adjust.
14211 * cli/cli-script.c (script_from_file): Adjust.
14212
98814c6c
TT
142132019-02-19 Tom Tromey <tromey@adacore.com>
14214
14215 * ravenscar-thread.c
14216 (ravenscar_thread_target::update_thread_list): Don't call
14217 ada_build_task_list.
14218 * ada-lang.h (ada_build_task_list): Don't declare.
14219 * ada-tasks.c (struct ada_tasks_inferior_data)
14220 <task_list_valid_p>: Now bool.
14221 (read_known_tasks, ada_task_list_changed)
14222 (ada_tasks_invalidate_inferior_data): Update.
14223 (read_known_tasks_array): Return bool.
14224 (read_known_tasks_list): Likewise.
14225 (read_known_tasks): Return void.
14226 (ada_build_task_list): Now static.
14227
70cd633e
AB
142282019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14229
14230 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14231 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14232
040b3e95
PW
142332019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14234
14235 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14236 variant for ada_tasks_pspace_data_handle and
14237 ada_tasks_inferior_data_handle.
14238 (ada_tasks_pspace_data_cleanup): New function.
14239 (ada_tasks_inferior_data_cleanup): New function.
14240
9409233b
TT
142412019-02-17 Tom Tromey <tom@tromey.com>
14242
14243 * macrotab.h (macro_source_fullname): Return a std::string.
14244 * macrotab.c (macro_include, check_for_redefinition)
14245 (macro_undef, macro_lookup_definition, foreach_macro)
14246 (foreach_macro_in_scope): Update.
14247 (macro_source_fullname): Return a std::string.
14248 * macrocmd.c (show_pp_source_pos): Update.
14249
6506371f
TT
142502019-02-17 Tom Tromey <tom@tromey.com>
14251
14252 * macrocmd.c (show_pp_source_pos): Style the file names.
14253
0c820d67
TT
142542019-02-17 Tom Tromey <tom@tromey.com>
14255
14256 PR tui/24197:
14257 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14258
a0087920
TT
142592019-02-17 Tom Tromey <tom@tromey.com>
14260
14261 * ada-lang.c (user_select_syms): Use filtered printing.
14262 * utils.c (wrap_style): New global.
14263 (desired_style): Remove.
14264 (emit_style_escape): Add stream parameter.
14265 (set_output_style, reset_terminal_style, prompt_for_continue):
14266 Update.
14267 (flush_wrap_buffer): Only flush gdb_stdout.
14268 (wrap_here): Set wrap_style.
14269 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14270 treat escape sequences as a character. Change when wrap buffer is
14271 flushed.
14272 (fputs_styled): Do not set the output style when the default is
14273 requested.
14274 * ui-style.h (struct ui_file_style) <is_default>: New method.
14275 * source.c (print_source_lines_base): Emit escape sequences in one
14276 piece.
14277
75ba10dc
JB
142782019-02-17 Joel Brobecker <brobecker@adacore.com>
14279
14280 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14281 integers and enumeration types.
14282
a2cd4f14
JB
142832019-02-17 Joel Brobecker <brobecker@adacore.com>
14284
14285 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14286 instead of lookup_symbol_in_language
14287 (do_exact_match): New function.
14288 (ada_get_symbol_name_matcher): Return do_exact_match when
14289 doing a verbatim match.
14290
485b851b
TT
142912019-02-15 Tom Tromey <tromey@adacore.com>
14292
14293 * ravenscar-thread.c (ravenscar_thread_target::resume)
14294 (ravenscar_thread_target::wait): Special case wildcard requests.
14295
0b790b1e
TT
142962019-02-15 Tom Tromey <tromey@adacore.com>
14297
14298 * ravenscar-thread.c (base_ptid): Remove.
14299 (struct ravenscar_thread_target) <close>: New method.
14300 <m_base_ptid>: New member.
14301 <update_inferior_ptid, active_task, task_is_currently_active,
14302 runtime_initialized>: Declare methods.
14303 <ravenscar_thread_target>: Add constructor.
14304 (ravenscar_thread_target::task_is_currently_active)
14305 (ravenscar_thread_target::update_inferior_ptid)
14306 (ravenscar_runtime_initialized): Rename. Now methods.
14307 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14308 (ravenscar_thread_target::update_thread_list): Update.
14309 (ravenscar_thread_target::active_task): Now method.
14310 (ravenscar_thread_target::store_registers)
14311 (ravenscar_thread_target::prepare_to_store)
14312 (ravenscar_thread_target::prepare_to_store)
14313 (ravenscar_thread_target::mourn_inferior): Update.
14314 (ravenscar_inferior_created): Use "new" to create target.
14315 (ravenscar_thread_target::get_ada_task_ptid): Update.
14316 (_initialize_ravenscar): Don't initialize base_ptid.
14317 (ravenscar_ops): Remove global.
14318
dea57a62
TT
143192019-02-15 Tom Tromey <tromey@adacore.com>
14320
14321 * target.h (push_target): Declare new overload.
14322 * target.c (push_target): New overload, taking an rvalue reference.
14323 * remote.c (remote_target::open_1): Use push_target overload.
14324 * corelow.c (core_target_open): Use push_target overload.
14325
989f3c58
TT
143262019-02-15 Tom Tromey <tromey@adacore.com>
14327
14328 * ravenscar-thread.c (is_ravenscar_task)
14329 (ravenscar_task_is_currently_active): Return bool.
14330 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14331 (_initialize_ravenscar): Remove "(void)".
14332 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14333 Return bool.
14334
6cbcc006
TT
143352019-02-15 Tom Tromey <tromey@adacore.com>
14336
14337 * ravenscar-thread.c (ravenscar_runtime_initializer)
14338 (has_ravenscar_runtime, get_running_thread_id)
14339 (ravenscar_thread_target::resume): Fix indentation.
14340
7657f14d
TT
143412019-02-15 Tom Tromey <tromey@adacore.com>
14342
14343 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14344 from ravenscar_arch_ops.
14345 (sparc_ravenscar_ops::fetch_registers)
14346 (sparc_ravenscar_ops::store_registers): Now methods.
14347 (sparc_ravenscar_prepare_to_store): Remove.
14348 (sparc_ravenscar_ops): Redefine.
14349 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14350 methods and destructor. Remove members.
14351 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14352 (ravenscar_thread_target::store_registers)
14353 (ravenscar_thread_target::prepare_to_store): Update.
14354 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14355 Remove.
14356 (struct ppc_ravenscar_powerpc_ops): Derive from
14357 ravenscar_arch_ops.
14358 (ppc_ravenscar_powerpc_ops::fetch_registers)
14359 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14360 (ppc_ravenscar_powerpc_ops): Redefine.
14361 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14362 (ppc_ravenscar_e500_ops::fetch_registers)
14363 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14364 (ppc_ravenscar_e500_ops): Redefine.
14365 * aarch64-ravenscar-thread.c
14366 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14367 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14368 (aarch64_ravenscar_fetch_registers)
14369 (aarch64_ravenscar_store_registers): Now methods.
14370 (aarch64_ravenscar_ops): Redefine.
14371
5b6ea500
TT
143722019-02-15 Tom Tromey <tromey@adacore.com>
14373
14374 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14375 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14376 (ravenscar_thread_target::stopped_by_watchpoint)
14377 (ravenscar_thread_target::stopped_data_address)
14378 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14379
e397fd39
TT
143802019-02-15 Tom Tromey <tromey@adacore.com>
14381
14382 * ravenscar-thread.c: Fix some typos.
14383
cc12f4a8
TT
143842019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14385 Tom Tromey <tromey@adacore.com>
14386
14387 * ada-lang.c (ada_exception_sal): Change addr_string to a
14388 std::string.
14389 (create_ada_exception_catchpoint): Update.
14390
5f486660
TT
143912019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14392 Tom Tromey <tromey@adacore.com>
14393
14394 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14395 (bp_location_ops): Remove.
14396 (base_breakpoint_allocate_location): Update.
14397 (free_bp_location): Update.
14398 * ada-lang.c (class ada_catchpoint_location)
14399 <ada_catchpoint_location>: Remove ops parameter.
14400 (ada_catchpoint_location_dtor): Remove.
14401 (ada_catchpoint_location_ops): Remove.
14402 (allocate_location_exception): Update.
14403 * breakpoint.h (struct bp_location_ops): Remove.
14404 (class bp_location) <bp_location>: Remove bp_location_ops
14405 parameter.
14406 <~bp_location>: Add destructor.
14407 <ops>: Remove.
14408
b671c7fb
TS
144092019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14410 Pedro Alves <palves@redhat.com>
14411
14412 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14413 'PATH_MAX'.
14414
8071c5ce
DM
144152019-02-14 David Michael <fedora.dm0@gmail.com>
14416 Samuel Thibault <samuel.thibault@gnu.org>
14417 Thomas Schwinge <thomas@codesourcery.com>
14418
14419 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14420 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14421
b1041ae0
TS
144222019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14423
924514e1
TS
14424 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14425 (check_empty): Use "const char *".
14426
c29ee8d4
TS
14427 * gnu-nat.c (gnu_nat_target::detach): Instead of
14428 'detach_inferior (pid)' call
14429 'detach_inferior (find_inferior_pid (pid))'.
14430
6c6ef69f
TS
14431 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14432 'nat/fork-inferior.o'.
14433 * gnu-nat.c: #include "nat/fork-inferior.h".
14434
2d0a338c
TS
14435 * gnu-nat.c (gnu_nat_target::detach): Instead of
14436 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14437 * gnu-nat.h: #include "inf-child.h".
14438 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14439 'i386_gnu_nat_target::fetch_registers'.
14440 (gnu_store_registers): Rename/move to
14441 'i386_gnu_nat_target::store_registers'.
14442
cabb5f06
TS
14443 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14444 * gnu-nat.h (mach_thread_info): New function.
14445 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14446
b1041ae0
TS
14447 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14448
2988d01e
KF
144492019-02-14 Frederic Konrad <konrad@adacore.com>
14450
14451 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14452
c559d709
JB
144532019-02-14 Joel Brobecker <brobecker@adacore.com>
14454
14455 * windows-nat.c (windows_add_thread): Add new parameter
14456 "main_thread_p" with default value set to false. Update
14457 function documentation as well as all callers.
14458 (windows_delete_thread): Likewise.
14459 (fake_create_process): Update call to windows_add_thread.
14460 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14461 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14462 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14463 call to windows_delete_thread.
14464
007024cc
SM
144652019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14466
14467 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14468
f62318e9
JB
144692019-02-12 John Baldwin <jhb@FreeBSD.org>
14470
14471 * symfile.c (find_separate_debug_file): Use canonical path of
14472 sysroot with child_path instead of gdb_sysroot if it is valid.
14473
cd4b7848
JB
144742019-02-12 John Baldwin <jhb@FreeBSD.org>
14475
14476 * symfile.c (find_separate_debug_file): Use child_path to
14477 determine if an object file is under a sysroot.
14478
efac4bfe
JB
144792019-02-12 John Baldwin <jhb@FreeBSD.org>
14480
14481 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14482 unittests/child-path-selftests.c.
14483 * common/pathstuff.c (child_path): New function.
14484 * common/pathstuff.h (child_path): New prototype.
14485 * unittests/child-path-selftests.c: New file.
14486
402d2bfe
JB
144872019-02-12 John Baldwin <jhb@FreeBSD.org>
14488
14489 * symfile.c (find_separate_debug_file): Look for separate debug
14490 files in debug directories under the sysroot.
14491
1ed9f74e
PW
144922019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14493
14494 * symtab.h (struct minimal_symbol data_p): New const method.
14495 (struct minimal_symbol text_p): Likewise.
14496 * symtab.c (output_source_filename): Use file name style
14497 to print file name.
14498 (print_symbol_info): Likewise.
14499 (print_msymbol_info): Use address style to print addresses.
14500 Use function name style to print executable text symbols.
14501 (expand_symtab_containing_pc): Use data_p.
14502 (find_pc_sect_compunit_symtab): Likewise.
14503
2636d81d
PW
145042019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14505
14506 * breakpoint.c (describe_other_breakpoints): Use address style
14507 to print addresses.
14508 (say_where): Likewise.
14509
ac8c53cc
PW
145102019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14511
14512 * ada-typeprint.c (print_func_type): Print function name
14513 style to print function name.
14514 * c-typeprint.c (c_print_type_1): Likewise.
14515
ea638c43
AH
145162019-02-11 Alan Hayward <alan.hayward@arm.com>
14517
14518 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14519 for execve.
14520
ab759ca8
PW
145212019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14522
14523 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14524 type_stack.
14525
aff29d1c
JB
145262019-02-10 Joel Brobecker <brobecker@adacore.com>
14527
14528 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14529 TYPE_CODE_REF types.
14530
617126bc
JW
145312019-02-08 Jim Wilson <jimw@sifive.com>
14532
14533 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14534 (riscv_linux_fregset): New.
14535 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14536
46e3ed7f
TT
145372019-02-07 Tom Tromey <tom@tromey.com>
14538
14539 * thread.c (thread_cancel_execution_command): Update.
14540 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14541 methods.
14542 (struct thread_fsm_ops): Remove.
14543 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14544 (thread_fsm_should_stop, thread_fsm_return_value)
14545 (thread_fsm_set_finished, thread_fsm_finished_p)
14546 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14547 Don't declare.
14548 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14549 * infrun.c (clear_proceed_status_thread)
14550 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14551 (print_stop_event): Update.
14552 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14553 Add constructor.
14554 (step_command_fsm_ops): Remove.
14555 (new_step_command_fsm): Remove.
14556 (step_1): Update.
14557 (step_command_fsm::should_stop): Rename from
14558 step_command_fsm_should_stop.
14559 (step_command_fsm::clean_up): Rename from
14560 step_command_fsm_clean_up.
14561 (step_command_fsm::do_async_reply_reason): Rename from
14562 step_command_fsm_async_reply_reason.
14563 (struct until_next_fsm): Inherit from thread_fsm. Add
14564 constructor.
14565 (until_next_fsm_ops): Remove.
14566 (new_until_next_fsm): Remove.
14567 (until_next_fsm::should_stop): Rename from
14568 until_next_fsm_should_stop.
14569 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14570 (until_next_fsm::do_async_reply_reason): Rename from
14571 until_next_fsm_async_reply_reason.
14572 (struct finish_command_fsm): Inherit from thread_fsm. Add
14573 constructor. Change type of breakpoint.
14574 (finish_command_fsm_ops): Remove.
14575 (new_finish_command_fsm): Remove.
14576 (finish_command_fsm::should_stop): Rename from
14577 finish_command_fsm_should_stop.
14578 (finish_command_fsm::clean_up): Rename from
14579 finish_command_fsm_clean_up.
14580 (finish_command_fsm::return_value): Rename from
14581 finish_command_fsm_return_value.
14582 (finish_command_fsm::do_async_reply_reason): Rename from
14583 finish_command_fsm_async_reply_reason.
14584 (finish_command): Update.
14585 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14586 Add constructor.
14587 (call_thread_fsm_ops): Remove.
14588 (call_thread_fsm::call_thread_fsm): Rename from
14589 new_call_thread_fsm.
14590 (call_thread_fsm::should_stop): Rename from
14591 call_thread_fsm_should_stop.
14592 (call_thread_fsm::should_notify_stop): Rename from
14593 call_thread_fsm_should_notify_stop.
14594 (run_inferior_call, call_function_by_hand_dummy): Update.
14595 * cli/cli-interp.c (should_print_stop_to_console): Update.
14596 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14597 Add constructor. Change type of location_breakpoint,
14598 caller_breakpoint.
14599 (until_break_fsm_ops): Remove.
14600 (new_until_break_fsm): Remove.
14601 (until_break_fsm::should_stop): Rename from
14602 until_break_fsm_should_stop.
14603 (until_break_fsm::clean_up): Rename from
14604 until_break_fsm_clean_up.
14605 (until_break_fsm::do_async_reply_reason): Rename from
14606 until_break_fsm_async_reply_reason.
14607 (until_break_command): Update.
14608 * thread-fsm.c: Remove.
14609 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14610
1a5c2598
TT
146112019-02-07 Tom Tromey <tom@tromey.com>
14612
14613 * yy-remap.h: Add include guard.
14614 * xtensa-tdep.h: Add include guard.
14615 * xcoffread.h: Rename include guard.
14616 * varobj-iter.h: Add include guard.
14617 * tui/tui.h: Rename include guard.
14618 * tui/tui-winsource.h: Rename include guard.
14619 * tui/tui-wingeneral.h: Rename include guard.
14620 * tui/tui-windata.h: Rename include guard.
14621 * tui/tui-win.h: Rename include guard.
14622 * tui/tui-stack.h: Rename include guard.
14623 * tui/tui-source.h: Rename include guard.
14624 * tui/tui-regs.h: Rename include guard.
14625 * tui/tui-out.h: Rename include guard.
14626 * tui/tui-layout.h: Rename include guard.
14627 * tui/tui-io.h: Rename include guard.
14628 * tui/tui-hooks.h: Rename include guard.
14629 * tui/tui-file.h: Rename include guard.
14630 * tui/tui-disasm.h: Rename include guard.
14631 * tui/tui-data.h: Rename include guard.
14632 * tui/tui-command.h: Rename include guard.
14633 * tic6x-tdep.h: Add include guard.
14634 * target/waitstatus.h: Rename include guard.
14635 * target/wait.h: Rename include guard.
14636 * target/target.h: Rename include guard.
14637 * target/resume.h: Rename include guard.
14638 * target-float.h: Rename include guard.
14639 * stabsread.h: Add include guard.
14640 * rs6000-tdep.h: Add include guard.
14641 * riscv-fbsd-tdep.h: Add include guard.
14642 * regformats/regdef.h: Rename include guard.
14643 * record.h: Rename include guard.
14644 * python/python.h: Rename include guard.
14645 * python/python-internal.h: Rename include guard.
14646 * python/py-stopevent.h: Rename include guard.
14647 * python/py-ref.h: Rename include guard.
14648 * python/py-record.h: Rename include guard.
14649 * python/py-record-full.h: Rename include guard.
14650 * python/py-record-btrace.h: Rename include guard.
14651 * python/py-instruction.h: Rename include guard.
14652 * python/py-events.h: Rename include guard.
14653 * python/py-event.h: Rename include guard.
14654 * procfs.h: Add include guard.
14655 * proc-utils.h: Add include guard.
14656 * p-lang.h: Add include guard.
14657 * or1k-tdep.h: Rename include guard.
14658 * observable.h: Rename include guard.
14659 * nto-tdep.h: Rename include guard.
14660 * nat/x86-linux.h: Rename include guard.
14661 * nat/x86-linux-dregs.h: Rename include guard.
14662 * nat/x86-gcc-cpuid.h: Add include guard.
14663 * nat/x86-dregs.h: Rename include guard.
14664 * nat/x86-cpuid.h: Rename include guard.
14665 * nat/ppc-linux.h: Rename include guard.
14666 * nat/mips-linux-watch.h: Rename include guard.
14667 * nat/linux-waitpid.h: Rename include guard.
14668 * nat/linux-ptrace.h: Rename include guard.
14669 * nat/linux-procfs.h: Rename include guard.
14670 * nat/linux-osdata.h: Rename include guard.
14671 * nat/linux-nat.h: Rename include guard.
14672 * nat/linux-namespaces.h: Rename include guard.
14673 * nat/linux-btrace.h: Rename include guard.
14674 * nat/glibc_thread_db.h: Rename include guard.
14675 * nat/gdb_thread_db.h: Rename include guard.
14676 * nat/gdb_ptrace.h: Rename include guard.
14677 * nat/fork-inferior.h: Rename include guard.
14678 * nat/amd64-linux-siginfo.h: Rename include guard.
14679 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14680 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14681 * nat/aarch64-linux.h: Rename include guard.
14682 * nat/aarch64-linux-hw-point.h: Rename include guard.
14683 * mn10300-tdep.h: Add include guard.
14684 * mips-linux-tdep.h: Add include guard.
14685 * mi/mi-parse.h: Rename include guard.
14686 * mi/mi-out.h: Rename include guard.
14687 * mi/mi-main.h: Rename include guard.
14688 * mi/mi-interp.h: Rename include guard.
14689 * mi/mi-getopt.h: Rename include guard.
14690 * mi/mi-console.h: Rename include guard.
14691 * mi/mi-common.h: Rename include guard.
14692 * mi/mi-cmds.h: Rename include guard.
14693 * mi/mi-cmd-break.h: Rename include guard.
14694 * m2-lang.h: Add include guard.
14695 * location.h: Rename include guard.
14696 * linux-record.h: Rename include guard.
14697 * linux-nat.h: Add include guard.
14698 * linux-fork.h: Add include guard.
14699 * i386-darwin-tdep.h: Rename include guard.
14700 * hppa-linux-offsets.h: Add include guard.
14701 * guile/guile.h: Rename include guard.
14702 * guile/guile-internal.h: Rename include guard.
14703 * gnu-nat.h: Rename include guard.
14704 * gdb-stabs.h: Rename include guard.
14705 * frv-tdep.h: Add include guard.
14706 * f-lang.h: Add include guard.
14707 * event-loop.h: Add include guard.
14708 * darwin-nat.h: Rename include guard.
14709 * cp-abi.h: Rename include guard.
14710 * config/sparc/nm-sol2.h: Rename include guard.
14711 * config/nm-nto.h: Rename include guard.
14712 * config/nm-linux.h: Add include guard.
14713 * config/i386/nm-i386gnu.h: Rename include guard.
14714 * config/djgpp/nl_types.h: Rename include guard.
14715 * config/djgpp/langinfo.h: Rename include guard.
14716 * compile/gcc-cp-plugin.h: Add include guard.
14717 * compile/gcc-c-plugin.h: Add include guard.
14718 * compile/compile.h: Rename include guard.
14719 * compile/compile-object-run.h: Rename include guard.
14720 * compile/compile-object-load.h: Rename include guard.
14721 * compile/compile-internal.h: Rename include guard.
14722 * compile/compile-cplus.h: Rename include guard.
14723 * compile/compile-c.h: Rename include guard.
14724 * common/xml-utils.h: Rename include guard.
14725 * common/x86-xstate.h: Rename include guard.
14726 * common/version.h: Rename include guard.
14727 * common/vec.h: Rename include guard.
14728 * common/tdesc.h: Rename include guard.
14729 * common/selftest.h: Rename include guard.
14730 * common/scoped_restore.h: Rename include guard.
14731 * common/scoped_mmap.h: Rename include guard.
14732 * common/scoped_fd.h: Rename include guard.
14733 * common/safe-iterator.h: Rename include guard.
14734 * common/run-time-clock.h: Rename include guard.
14735 * common/refcounted-object.h: Rename include guard.
14736 * common/queue.h: Rename include guard.
14737 * common/ptid.h: Rename include guard.
14738 * common/print-utils.h: Rename include guard.
14739 * common/preprocessor.h: Rename include guard.
14740 * common/pathstuff.h: Rename include guard.
14741 * common/observable.h: Rename include guard.
14742 * common/netstuff.h: Rename include guard.
14743 * common/job-control.h: Rename include guard.
14744 * common/host-defs.h: Rename include guard.
14745 * common/gdb_wait.h: Rename include guard.
14746 * common/gdb_vecs.h: Rename include guard.
14747 * common/gdb_unlinker.h: Rename include guard.
14748 * common/gdb_unique_ptr.h: Rename include guard.
14749 * common/gdb_tilde_expand.h: Rename include guard.
14750 * common/gdb_sys_time.h: Rename include guard.
14751 * common/gdb_string_view.h: Rename include guard.
14752 * common/gdb_splay_tree.h: Rename include guard.
14753 * common/gdb_setjmp.h: Rename include guard.
14754 * common/gdb_ref_ptr.h: Rename include guard.
14755 * common/gdb_optional.h: Rename include guard.
14756 * common/gdb_locale.h: Rename include guard.
14757 * common/gdb_assert.h: Rename include guard.
14758 * common/filtered-iterator.h: Rename include guard.
14759 * common/filestuff.h: Rename include guard.
14760 * common/fileio.h: Rename include guard.
14761 * common/environ.h: Rename include guard.
14762 * common/common-utils.h: Rename include guard.
14763 * common/common-types.h: Rename include guard.
14764 * common/common-regcache.h: Rename include guard.
14765 * common/common-inferior.h: Rename include guard.
14766 * common/common-gdbthread.h: Rename include guard.
14767 * common/common-exceptions.h: Rename include guard.
14768 * common/common-defs.h: Rename include guard.
14769 * common/common-debug.h: Rename include guard.
14770 * common/cleanups.h: Rename include guard.
14771 * common/buffer.h: Rename include guard.
14772 * common/btrace-common.h: Rename include guard.
14773 * common/break-common.h: Rename include guard.
14774 * cli/cli-utils.h: Rename include guard.
14775 * cli/cli-style.h: Rename include guard.
14776 * cli/cli-setshow.h: Rename include guard.
14777 * cli/cli-script.h: Rename include guard.
14778 * cli/cli-interp.h: Rename include guard.
14779 * cli/cli-decode.h: Rename include guard.
14780 * cli/cli-cmds.h: Rename include guard.
14781 * charset-list.h: Add include guard.
14782 * buildsym-legacy.h: Rename include guard.
14783 * bfin-tdep.h: Add include guard.
14784 * ax.h: Rename include guard.
14785 * arm-linux-tdep.h: Add include guard.
14786 * arm-fbsd-tdep.h: Add include guard.
14787 * arch/xtensa.h: Rename include guard.
14788 * arch/tic6x.h: Add include guard.
14789 * arch/i386.h: Add include guard.
14790 * arch/arm.h: Rename include guard.
14791 * arch/arm-linux.h: Rename include guard.
14792 * arch/arm-get-next-pcs.h: Rename include guard.
14793 * arch/amd64.h: Add include guard.
14794 * arch/aarch64-insn.h: Rename include guard.
14795 * arch-utils.h: Rename include guard.
14796 * annotate.h: Add include guard.
14797 * amd64-darwin-tdep.h: Rename include guard.
14798 * aarch64-linux-tdep.h: Add include guard.
14799 * aarch64-fbsd-tdep.h: Add include guard.
14800 * aarch32-linux-nat.h: Add include guard.
14801
ab9268d2
PW
148022019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14803
14804 * macrotab.c (macro_define_internal): New function that
14805 factorizes macro_define_object_internal and macro_define_function
14806 code.
14807 (macro_define_object_internal): Use macro_define_internal.
14808 (macro_define_function): Likewise.
14809
bb0da2b4
PW
148102019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14811
14812 * macrocmd.c (extract_identifier): Return
14813 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14814 callers.
14815
424eb552
JB
148162019-02-06 John Baldwin <jhb@FreeBSD.org>
14817
14818 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14819
1688cb29
TT
148202019-02-05 Tom Tromey <tom@tromey.com>
14821
14822 * target.c (target_stack::unpush): Move assertion earlier.
14823
b5eba2d8
TT
148242019-01-30 Tom Tromey <tom@tromey.com>
14825
14826 PR python/23615:
14827 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14828 (gdbpy_parse_and_eval): Likewise.
14829 * python/python-internal.h (gdbpy_allow_threads): New class.
14830
7054e2ff
JB
148312019-01-28 John Baldwin <jhb@FreeBSD.org>
14832
14833 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14834 (aarch64_fbsd_fpregmap): Move earlier.
14835 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14836 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14837 instead of individual calls to trad_frame_set_reg_addr.
14838 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14839 earlier.
14840 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14841 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14842 instead of individual calls to trad_frame_set_reg_addr.
14843
36c25ffa
AH
148442019-01-28 Alan Hayward <alan.hayward@arm.com>
14845
14846 * CONTRIBUTE: Replace contribution list with wiki link.
14847
a0707f3c
TT
148482019-01-25 Tom Tromey <tom@tromey.com>
14849
14850 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14851
0747795c
TT
148522019-01-25 Tom Tromey <tom@tromey.com>
14853
14854 * xtensa-linux-nat.c: Fix common/ includes.
14855 * xml-support.h: Fix common/ includes.
14856 * xml-support.c: Fix common/ includes.
14857 * x86-linux-nat.c: Fix common/ includes.
14858 * windows-nat.c: Fix common/ includes.
14859 * varobj.h: Fix common/ includes.
14860 * varobj.c: Fix common/ includes.
14861 * value.c: Fix common/ includes.
14862 * valops.c: Fix common/ includes.
14863 * utils.c: Fix common/ includes.
14864 * unittests/xml-utils-selftests.c: Fix common/ includes.
14865 * unittests/utils-selftests.c: Fix common/ includes.
14866 * unittests/unpack-selftests.c: Fix common/ includes.
14867 * unittests/tracepoint-selftests.c: Fix common/ includes.
14868 * unittests/style-selftests.c: Fix common/ includes.
14869 * unittests/string_view-selftests.c: Fix common/ includes.
14870 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14871 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14872 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14873 * unittests/rsp-low-selftests.c: Fix common/ includes.
14874 * unittests/parse-connection-spec-selftests.c: Fix common/
14875 includes.
14876 * unittests/optional-selftests.c: Fix common/ includes.
14877 * unittests/offset-type-selftests.c: Fix common/ includes.
14878 * unittests/observable-selftests.c: Fix common/ includes.
14879 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14880 * unittests/memrange-selftests.c: Fix common/ includes.
14881 * unittests/memory-map-selftests.c: Fix common/ includes.
14882 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14883 * unittests/function-view-selftests.c: Fix common/ includes.
14884 * unittests/environ-selftests.c: Fix common/ includes.
14885 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14886 * unittests/common-utils-selftests.c: Fix common/ includes.
14887 * unittests/cli-utils-selftests.c: Fix common/ includes.
14888 * unittests/array-view-selftests.c: Fix common/ includes.
14889 * ui-file.c: Fix common/ includes.
14890 * tui/tui-io.c: Fix common/ includes.
14891 * tracepoint.h: Fix common/ includes.
14892 * tracepoint.c: Fix common/ includes.
14893 * tracefile-tfile.c: Fix common/ includes.
14894 * top.h: Fix common/ includes.
14895 * top.c: Fix common/ includes.
14896 * thread.c: Fix common/ includes.
14897 * target/waitstatus.h: Fix common/ includes.
14898 * target/waitstatus.c: Fix common/ includes.
14899 * target.h: Fix common/ includes.
14900 * target.c: Fix common/ includes.
14901 * target-memory.c: Fix common/ includes.
14902 * target-descriptions.c: Fix common/ includes.
14903 * symtab.h: Fix common/ includes.
14904 * symfile.c: Fix common/ includes.
14905 * stap-probe.c: Fix common/ includes.
14906 * spu-linux-nat.c: Fix common/ includes.
14907 * sparc-nat.c: Fix common/ includes.
14908 * source.c: Fix common/ includes.
14909 * solib.c: Fix common/ includes.
14910 * solib-target.c: Fix common/ includes.
14911 * ser-unix.c: Fix common/ includes.
14912 * ser-tcp.c: Fix common/ includes.
14913 * ser-pipe.c: Fix common/ includes.
14914 * ser-base.c: Fix common/ includes.
14915 * selftest-arch.c: Fix common/ includes.
14916 * s12z-tdep.c: Fix common/ includes.
14917 * rust-exp.y: Fix common/ includes.
14918 * rs6000-aix-tdep.c: Fix common/ includes.
14919 * riscv-tdep.c: Fix common/ includes.
14920 * remote.c: Fix common/ includes.
14921 * remote-notif.h: Fix common/ includes.
14922 * remote-fileio.h: Fix common/ includes.
14923 * remote-fileio.c: Fix common/ includes.
14924 * regcache.h: Fix common/ includes.
14925 * regcache.c: Fix common/ includes.
14926 * record-btrace.c: Fix common/ includes.
14927 * python/python.c: Fix common/ includes.
14928 * python/py-type.c: Fix common/ includes.
14929 * python/py-inferior.c: Fix common/ includes.
14930 * progspace.h: Fix common/ includes.
14931 * producer.c: Fix common/ includes.
14932 * procfs.c: Fix common/ includes.
14933 * proc-api.c: Fix common/ includes.
14934 * printcmd.c: Fix common/ includes.
14935 * ppc-linux-nat.c: Fix common/ includes.
14936 * parser-defs.h: Fix common/ includes.
14937 * osdata.c: Fix common/ includes.
14938 * obsd-nat.c: Fix common/ includes.
14939 * nat/x86-linux.c: Fix common/ includes.
14940 * nat/x86-linux-dregs.c: Fix common/ includes.
14941 * nat/x86-dregs.h: Fix common/ includes.
14942 * nat/x86-dregs.c: Fix common/ includes.
14943 * nat/ppc-linux.c: Fix common/ includes.
14944 * nat/mips-linux-watch.h: Fix common/ includes.
14945 * nat/mips-linux-watch.c: Fix common/ includes.
14946 * nat/linux-waitpid.c: Fix common/ includes.
14947 * nat/linux-ptrace.h: Fix common/ includes.
14948 * nat/linux-ptrace.c: Fix common/ includes.
14949 * nat/linux-procfs.c: Fix common/ includes.
14950 * nat/linux-personality.c: Fix common/ includes.
14951 * nat/linux-osdata.c: Fix common/ includes.
14952 * nat/linux-namespaces.c: Fix common/ includes.
14953 * nat/linux-btrace.h: Fix common/ includes.
14954 * nat/linux-btrace.c: Fix common/ includes.
14955 * nat/fork-inferior.c: Fix common/ includes.
14956 * nat/amd64-linux-siginfo.c: Fix common/ includes.
14957 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
14958 * nat/aarch64-linux.c: Fix common/ includes.
14959 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
14960 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
14961 * namespace.h: Fix common/ includes.
14962 * mips-linux-tdep.c: Fix common/ includes.
14963 * minsyms.c: Fix common/ includes.
14964 * mi/mi-parse.h: Fix common/ includes.
14965 * mi/mi-main.c: Fix common/ includes.
14966 * mi/mi-cmd-env.c: Fix common/ includes.
14967 * memrange.h: Fix common/ includes.
14968 * memattr.c: Fix common/ includes.
14969 * maint.h: Fix common/ includes.
14970 * maint.c: Fix common/ includes.
14971 * main.c: Fix common/ includes.
14972 * machoread.c: Fix common/ includes.
14973 * location.c: Fix common/ includes.
14974 * linux-thread-db.c: Fix common/ includes.
14975 * linux-nat.c: Fix common/ includes.
14976 * linux-fork.c: Fix common/ includes.
14977 * inline-frame.c: Fix common/ includes.
14978 * infrun.c: Fix common/ includes.
14979 * inflow.c: Fix common/ includes.
14980 * inferior.h: Fix common/ includes.
14981 * inferior.c: Fix common/ includes.
14982 * infcmd.c: Fix common/ includes.
14983 * inf-ptrace.c: Fix common/ includes.
14984 * inf-child.c: Fix common/ includes.
14985 * ia64-linux-nat.c: Fix common/ includes.
14986 * i387-tdep.c: Fix common/ includes.
14987 * i386-tdep.c: Fix common/ includes.
14988 * i386-linux-tdep.c: Fix common/ includes.
14989 * i386-linux-nat.c: Fix common/ includes.
14990 * i386-go32-tdep.c: Fix common/ includes.
14991 * i386-fbsd-tdep.c: Fix common/ includes.
14992 * i386-fbsd-nat.c: Fix common/ includes.
14993 * guile/scm-type.c: Fix common/ includes.
14994 * guile/guile.c: Fix common/ includes.
14995 * go32-nat.c: Fix common/ includes.
14996 * gnu-nat.c: Fix common/ includes.
14997 * gdbthread.h: Fix common/ includes.
14998 * gdbarch-selftests.c: Fix common/ includes.
14999 * gdb_usleep.c: Fix common/ includes.
15000 * gdb_select.h: Fix common/ includes.
15001 * gdb_bfd.c: Fix common/ includes.
15002 * gcore.c: Fix common/ includes.
15003 * fork-child.c: Fix common/ includes.
15004 * findvar.c: Fix common/ includes.
15005 * fbsd-nat.c: Fix common/ includes.
15006 * event-top.c: Fix common/ includes.
15007 * event-loop.c: Fix common/ includes.
15008 * dwarf2read.c: Fix common/ includes.
15009 * dwarf2loc.c: Fix common/ includes.
15010 * dwarf2-frame.c: Fix common/ includes.
15011 * dwarf-index-cache.c: Fix common/ includes.
15012 * dtrace-probe.c: Fix common/ includes.
15013 * disasm-selftests.c: Fix common/ includes.
15014 * defs.h: Fix common/ includes.
15015 * csky-tdep.c: Fix common/ includes.
15016 * cp-valprint.c: Fix common/ includes.
15017 * cp-support.h: Fix common/ includes.
15018 * cp-support.c: Fix common/ includes.
15019 * corelow.c: Fix common/ includes.
15020 * completer.h: Fix common/ includes.
15021 * completer.c: Fix common/ includes.
15022 * compile/compile.c: Fix common/ includes.
15023 * compile/compile-loc2c.c: Fix common/ includes.
15024 * compile/compile-cplus-types.c: Fix common/ includes.
15025 * compile/compile-cplus-symbols.c: Fix common/ includes.
15026 * command.h: Fix common/ includes.
15027 * cli/cli-dump.c: Fix common/ includes.
15028 * cli/cli-cmds.c: Fix common/ includes.
15029 * charset.c: Fix common/ includes.
15030 * build-id.c: Fix common/ includes.
15031 * btrace.h: Fix common/ includes.
15032 * btrace.c: Fix common/ includes.
15033 * breakpoint.h: Fix common/ includes.
15034 * breakpoint.c: Fix common/ includes.
15035 * ax.h:
15036 (enum agent_op): Fix common/ includes.
15037 * ax-general.c (struct aop_map): Fix common/ includes.
15038 * ax-gdb.c: Fix common/ includes.
15039 * auxv.c: Fix common/ includes.
15040 * auto-load.c: Fix common/ includes.
15041 * arm-tdep.c: Fix common/ includes.
15042 * arch/riscv.c: Fix common/ includes.
15043 * arch/ppc-linux-common.c: Fix common/ includes.
15044 * arch/i386.c: Fix common/ includes.
15045 * arch/arm.c: Fix common/ includes.
15046 * arch/arm-linux.c: Fix common/ includes.
15047 * arch/arm-get-next-pcs.c: Fix common/ includes.
15048 * arch/amd64.c: Fix common/ includes.
15049 * arch/aarch64.c: Fix common/ includes.
15050 * arch/aarch64-insn.c: Fix common/ includes.
15051 * arch-utils.c: Fix common/ includes.
15052 * amd64-windows-tdep.c: Fix common/ includes.
15053 * amd64-tdep.c: Fix common/ includes.
15054 * amd64-sol2-tdep.c: Fix common/ includes.
15055 * amd64-obsd-tdep.c: Fix common/ includes.
15056 * amd64-nbsd-tdep.c: Fix common/ includes.
15057 * amd64-linux-tdep.c: Fix common/ includes.
15058 * amd64-linux-nat.c: Fix common/ includes.
15059 * amd64-fbsd-tdep.c: Fix common/ includes.
15060 * amd64-fbsd-nat.c: Fix common/ includes.
15061 * amd64-dicos-tdep.c: Fix common/ includes.
15062 * amd64-darwin-tdep.c: Fix common/ includes.
15063 * agent.c: Fix common/ includes.
15064 * ada-lang.h: Fix common/ includes.
15065 * ada-lang.c: Fix common/ includes.
15066 * aarch64-tdep.c: Fix common/ includes.
15067
2f5c153e
TT
150682019-01-25 Tom Tromey <tom@tromey.com>
15069
15070 * common/create-version.sh: Use common/version.h.
15071
adc6a863
PA
150722019-01-24 Pedro Alves <palves@redhat.com>
15073
15074 * infrun.c (signal_stop, signal_print, signal_program)
15075 (signal_catch, signal_pass): Now arrays instead of pointers.
15076 (update_signals_program_target, do_target_resume)
15077 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15078 * linux-nat.c (linux_nat_target::pass_signals)
15079 (linux_nat_target::create_inferior, linux_nat_target::attach):
15080 Adjust.
15081 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15082 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15083 * procfs.c (procfs_target::pass_signals): Adjust.
15084 * record-full.c (record_full_target::resume): Adjust.
15085 * remote.c (remote_target::pass_signals)
15086 (remote_target::program_signals): Adjust.
15087 * target-debug.h (target_debug_print_signals): Now takes a
15088 gdb::array_view as parameter. Adjust.
15089 * target.h (target_ops) <pass_signals, program_signals>: Replace
15090 pointer and length parameters with gdb::array_view.
15091 (target_pass_signals, target_program_signals): Likewise.
15092 * target-delegates.c: Regenerate.
15093
3046d67a
PA
150942019-01-24 Pedro Alves <palves@redhat.com>
15095
15096 * common/forward-scope-exit.h
15097 (forward_scope_exit::forward_scope_exit): Pass arguments to
15098 m_bind_function directly, instead of creating a std::bind and
15099 copying that.
15100
353229bf
AH
151012019-01-24 Alan Hayward <alan.hayward@arm.com>
15102
15103 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15104 for static members.
15105 (pass_in_v_vfp_candidate): Likewise.
15106
311dc83a
TT
151072019-01-23 Tom Tromey <tom@tromey.com>
15108 Pedro Alves <palves@redhat.com>
15109
15110 * regcache.c (class regcache_invalidator): Remove.
15111 (regcache::raw_write): Use make_scope_exit.
15112
296bd123
TT
151132019-01-23 Tom Tromey <tom@tromey.com>
15114
15115 * ui-out.h (class ui_out_emit_type): Update comment.
15116
979a0d13
TT
151172019-01-23 Tom Tromey <tom@tromey.com>
15118
15119 * infrun.c (fetch_inferior_event): Update comment.
15120
d238133d
TT
151212019-01-23 Tom Tromey <tom@tromey.com>
15122 Pedro Alves <palves@redhat.com>
15123
15124 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15125 parameter.
15126 (fetch_inferior_event): Use SCOPE_EXIT.
15127
15128
9885e6bb
TT
151292019-01-23 Tom Tromey <tom@tromey.com>
15130 Pedro Alves <palves@redhat.com>
15131
15132 * infrun.c (disable_thread_events): Delete.
15133 (stop_all_threads): Use SCOPE_EXIT.
15134
286526c1
TT
151352019-01-23 Tom Tromey <tom@tromey.com>
15136 Pedro Alves <palves@redhat.com>
15137
15138 * symfile.c: Include forward-scope-exit.h.
15139 (clear_symtab_users_cleanup): Replace forward declaration with
15140 a FORWARD_SCOPE_EXIT.
15141 (syms_from_objfile_1): Use the forward_scope_exit and
15142 gdb::optional instead of cleanup_function.
15143 (reread_symbols): Use the forward_scope_exit instead of
15144 cleanup_function.
15145 (clear_symtab_users_cleanup): Remove function.
15146
1db93f14
TT
151472019-01-23 Tom Tromey <tom@tromey.com>
15148 Pedro Alves <palves@redhat.com>
15149
15150 * linux-nat.c: Include scope-exit.h.
15151 (cleanup_target_stop): Remove.
15152 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15153 SCOPE_EXIT.
15154
2cc83d1e
TT
151552019-01-23 Tom Tromey <tom@tromey.com>
15156 Pedro Alves <palves@redhat.com>
15157
15158 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15159 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15160
694c6bf5
TT
151612019-01-23 Tom Tromey <tom@tromey.com>
15162 Andrew Burgess <andrew.burgess@embecosm.com>
15163 Pedro Alves <palves@redhat.com>
15164
15165 * infrun.c (fetch_inferior_event): Use scope_exit.
15166 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15167 * top.c (execute_command): Use scope_exit.
15168 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15169 * utils.c (do_bpstat_clear_actions_cleanup)
15170 (make_bpstat_clear_actions_cleanup): Remove.
15171
4c41382a
TT
151722019-01-23 Tom Tromey <tom@tromey.com>
15173 Pedro Alves <palves@redhat.com>
15174
15175 * infrun.c: Include "common/scope-exit.h"
15176 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15177 (wait_for_inferior): Use SCOPE_EXIT.
15178 (fetch_inferior_event): Use scope_exit.
15179
89f8fb50
TT
151802019-01-23 Tom Tromey <tom@tromey.com>
15181 Pedro Alves <palves@redhat.com>
15182
15183 * breakpoint.c (create_breakpoint): Remove cleanup.
15184
5419bdae
TT
151852019-01-23 Tom Tromey <tom@tromey.com>
15186 Andrew Burgess <andrew.burgess@embecosm.com>
15187 Pedro Alves <palves@redhat.com>
15188
e587ef42
PA
151892019-01-23 Pedro Alves <palves@redhat.com>
15190
15191 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15192
77f0e74c
PA
151932019-01-23 Pedro Alves <palves@redhat.com>
15194 Andrew Burgess <andrew.burgess@embecosm.com>
15195
15196 * gdbthread.h: Include "common/forward-scope-exit.h".
15197 (scoped_finish_thread_state): Redefine custom class in terms of
15198 forward_scope_exit.
15199
5b9b3e53
PA
152002019-01-23 Pedro Alves <palves@redhat.com>
15201 Andrew Burgess <andrew.burgess@embecosm.com>
15202
15203 * common/forward-scope-exit.h: New file.
15204
54b65c9b
PA
152052019-01-23 Pedro Alves <palves@redhat.com>
15206 Andrew Burgess <andrew.burgess@embecosm.com>
15207 Tom Tromey <tom@tromey.com>
15208
15209 * common/scope-exit.h: New file.
15210
cf08fb29
PA
152112019-01-23 Pedro Alves <palves@redhat.com>
15212
15213 * common/preprocessor.h (ESC): Rename to ...
15214 (ESC_PARENS): ... this.
15215 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15216 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15217
ae73e2e2
TT
152182019-01-23 Tom Tromey <tom@tromey.com>
15219
15220 * language.h (class scoped_switch_to_sym_language_if_auto):
15221 Initialize m_lang in both cases.
15222
6594e122
AH
152232019-01-23 Alan Hayward <alan.hayward@arm.com>
15224
15225 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15226 with XCNEW.
15227
a7c9855d
TT
152282019-01-22 Tom Tromey <tom@tromey.com>
15229
15230 * corelow.c: Do not include sys/file.h.
15231
93cc1d53
TT
152322019-01-22 Tom Tromey <tom@tromey.com>
15233
15234 * tui/tui-wingeneral.h: Include gdb_curses.h.
15235
38561778
TT
152362019-01-22 Tom Tromey <tom@tromey.com>
15237
15238 * source-cache.h (class source_cache) <get_source_lines,
15239 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15240
37b3ab5b
TT
152412019-01-22 Tom Tromey <tom@tromey.com>
15242
15243 * remote-fileio.h (struct remote_target): Declare.
15244
3fabc016
TT
152452019-01-22 Tom Tromey <tom@tromey.com>
15246
15247 * python/py-arch.c: Do not include py-ref.h.
15248 * python/py-bpevent.c: Do not include py-ref.h.
15249 * python/py-cmd.c: Do not include py-ref.h.
15250 * python/py-continueevent.c: Do not include py-ref.h.
15251 * python/py-event.h: Do not include py-ref.h.
15252 * python/py-evtregistry.c: Do not include py-ref.h.
15253 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15254 * python/py-frame.c: Do not include py-ref.h.
15255 * python/py-framefilter.c: Do not include py-ref.h.
15256 * python/py-function.c: Do not include py-ref.h.
15257 * python/py-infevents.c: Do not include py-ref.h.
15258 * python/py-linetable.c: Do not include py-ref.h.
15259 * python/py-objfile.c: Do not include py-ref.h.
15260 * python/py-param.c: Do not include py-ref.h.
15261 * python/py-prettyprint.c: Do not include py-ref.h.
15262 * python/py-progspace.c: Do not include py-ref.h.
15263 * python/py-symbol.c: Do not include py-ref.h.
15264 * python/py-symtab.c: Do not include py-ref.h.
15265 * python/py-type.c: Do not include py-ref.h.
15266 * python/py-unwind.c: Do not include py-ref.h.
15267 * python/py-utils.c: Do not include py-ref.h.
15268 * python/py-value.c: Do not include py-ref.h.
15269 * python/py-varobj.c: Do not include py-ref.h.
15270 * python/py-xmethods.c: Do not include py-ref.h.
15271 * python/python.c: Do not include py-ref.h.
15272 * varobj.c: Do not include py-ref.h.
15273
6b4d7774
TT
152742019-01-22 Tom Tromey <tom@tromey.com>
15275
15276 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15277 keyword for bcache.
15278
7af7e9b5
TT
152792019-01-22 Tom Tromey <tom@tromey.com>
15280
15281 * compile/compile-cplus-types.c: Remove a comment by #include.
15282
951d1049
TT
152832019-01-22 Tom Tromey <tom@tromey.com>
15284
15285 * compile/gcc-c-plugin.h: Include compile-internal.h.
15286
d65d5705
TT
152872019-01-22 Tom Tromey <tom@tromey.com>
15288
15289 * stabsread.c (EXTERN): Do not define.
15290 (symnum, next_symbol_text_func, processing_gcc_compilation)
15291 (within_function, global_sym_chain, global_stabs)
15292 (previous_stab_code, this_object_header_files)
15293 (n_this_object_header_files)
15294 (n_allocated_this_object_header_files): Define.
15295 * stabsread.h (EXTERN): Never define. Use "extern".
15296
b6fb1ee5
PW
152972019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15298
15299 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15300 history_value.
15301
be6d4f74
TT
153022019-01-21 Tom Tromey <tom@tromey.com>
15303
15304 * ui-out.c: Fix includes.
15305 * tui/tui-source.c: Fix includes.
15306 * target.c: Fix includes.
15307 * remote.c: Fix includes.
15308 * regcache.c: Fix includes.
15309 * python/py-block.c: Fix includes.
15310 * printcmd.c: Fix includes.
15311 * or1k-tdep.c: Fix includes.
15312 * mi/mi-main.c: Fix includes.
15313 * m32r-tdep.c: Fix includes.
15314 * csky-tdep.c: Fix includes.
15315 * compile/compile-cplus-types.c: Fix includes.
15316 * cli/cli-interp.c: Fix includes.
15317
73021deb
AH
153182019-01-21 Alan Hayward <alan.hayward@arm.com>
15319
15320 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15321 for padding.
15322
7932255d
TT
153232019-01-16 Tom Tromey <tom@tromey.com>
15324
15325 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15326 earlier.
15327 (struct objfile) <msymbols_range>: Move from top level.
15328 <msymbols>: New method.
15329 (class objfile_msymbols): Remove.
15330 * symtab.c (default_collect_symbol_completion_matches_break_on):
15331 Update.
15332 * symmisc.c (dump_msymbols): Update.
15333 * stabsread.c (scan_file_globals): Update.
15334 * objc-lang.c (info_selectors_command, info_classes_command)
15335 (find_methods): Update.
15336 * minsyms.c (find_solib_trampoline_target): Update.
15337 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15338 * coffread.c (coff_symfile_read): Update.
15339 * ada-lang.c (ada_lookup_simple_minsym)
15340 (ada_collect_symbol_completion_matches): Update.
15341
604b1bfb
TT
153422019-01-16 Tom Tromey <tom@tromey.com>
15343
15344 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15345 type. Remove no-argument constructor.
15346 <iterator::operator++>: Simplify.
15347 <begin>: Update.
15348 <end>: Use minimal_symbol_count.
15349
f252c6d5
TT
153502019-01-16 Tom Tromey <tom@tromey.com>
15351
15352 * objfiles.h (struct objfile) <psymtabs>: New method.
15353 (class objfile_psymtabs): Remove.
15354 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15355 typedef.
15356 <range>: New method.
15357 (require_partial_symbols): Change return type.
15358 * psymtab.c (require_partial_symbols)
15359 (psym_expand_symtabs_matching): Update.
15360 * mdebugread.c (parse_partial_symbols): Update.
15361 * dbxread.c (dbx_end_psymtab): Update.
15362
b669c953
TT
153632019-01-15 Tom Tromey <tom@tromey.com>
15364
15365 * symtab.c (lookup_objfile_from_block)
15366 (lookup_symbol_in_objfile_symtabs)
15367 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15368 (find_line_symtab, info_sources_command)
15369 (default_collect_symbol_completion_matches_break_on)
15370 (make_source_files_completion_list): Update.
15371 * symmisc.c (print_objfile_statistics, dump_objfile)
15372 (maintenance_print_symbols, maintenance_info_symtabs)
15373 (maintenance_check_symtabs, maintenance_info_line_tables):
15374 Update.
15375 * source.c (select_source_symtab)
15376 (forget_cached_source_info_for_objfile): Update.
15377 * objfiles.h (class objfile_compunits): Remove.
15378 (struct objfile) <compunits_range>: New typedef.
15379 (compunits): New method.
15380 * objfiles.c (objfile_relocate1): Update.
15381 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15382 * maint.c (count_symtabs_and_blocks): Update.
15383 * linespec.c (iterate_over_all_matching_symtabs): Update.
15384 * cp-support.c (add_symbol_overload_list_qualified): Update.
15385 * coffread.c (coff_symtab_read): Update.
15386 * ada-lang.c (add_nonlocal_symbols)
15387 (ada_collect_symbol_completion_matches)
15388 (ada_add_global_exceptions): Update.
15389
7e955d83
TT
153902019-01-15 Tom Tromey <tom@tromey.com>
15391
15392 * progspace.h (program_space) <objfiles_safe_range>: New
15393 typedef.
15394 <objfiles_safe>: New method.
15395 * objfiles.h (class all_objfiles_safe): Remove.
15396 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15397 * jit.c (jit_inferior_exit_hook): Update.
15398
2030c079
TT
153992019-01-17 Tom Tromey <tom@tromey.com>
15400
15401 * progspace.h (program_space) <objfiles_range>: New typedef.
15402 <objfiles>: New method.
15403 <objfiles_head>: Rename from objfiles.
15404 (object_files): Update.
15405 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15406 * guile/scm-pretty-print.c
15407 (ppscm_find_pretty_printer_from_objfiles): Update.
15408 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15409 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15410 Update.
15411 * python/py-progspace.c (pspy_get_objfiles): Update.
15412 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15413 Update.
15414 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15415 (objfpy_lookup_objfile_by_build_id): Update.
15416 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15417 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15418 Update.
15419 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15420 (expand_symtab_containing_pc, lookup_objfile_from_block)
15421 (lookup_static_symbol, basic_lookup_transparent_type)
15422 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15423 (find_line_symtab, info_sources_command)
15424 (default_collect_symbol_completion_matches_break_on)
15425 (make_source_files_completion_list, find_main_name): Update.
15426 * symmisc.c (print_symbol_bcache_statistics)
15427 (print_objfile_statistics, maintenance_print_symbols)
15428 (maintenance_print_msymbols, maintenance_print_objfiles)
15429 (maintenance_info_symtabs, maintenance_check_symtabs)
15430 (maintenance_expand_symtabs, maintenance_info_line_tables):
15431 Update.
15432 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15433 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15434 (map_overlay_command, unmap_overlay_command)
15435 (simple_overlay_update, expand_symtabs_matching)
15436 (map_symbol_filenames): Update.
15437 * symfile-debug.c (set_debug_symfile): Update.
15438 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15439 Update.
15440 * source.c (select_source_symtab, forget_cached_source_info):
15441 Update.
15442 * solib.c (solib_read_symbols): Update.
15443 * solib-spu.c (append_ocl_sos): Update.
15444 * psymtab.c (maintenance_print_psymbols)
15445 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15446 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15447 * printcmd.c (info_symbol_command): Update.
15448 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15449 Update.
15450 * objfiles.h (class all_objfiles): Remove.
15451 * objfiles.c (have_partial_symbols, have_full_symbols)
15452 (have_minimal_symbols, qsort_cmp, update_section_map)
15453 (shared_objfile_contains_address_p)
15454 (default_iterate_over_objfiles_in_search_order): Update.
15455 * objc-lang.c (info_selectors_command, info_classes_command)
15456 (find_methods): Update.
15457 * minsyms.c (find_solib_trampoline_target): Update.
15458 * maint.c (maintenance_info_sections)
15459 (maintenance_translate_address, count_symtabs_and_blocks):
15460 Update.
15461 * main.c (captured_main_1): Update.
15462 * linux-thread-db.c (try_thread_db_load_from_pdir)
15463 (has_libpthread): Update.
15464 * linespec.c (iterate_over_all_matching_symtabs)
15465 (search_minsyms_for_name): Update.
15466 * jit.c (jit_find_objf_with_entry_addr): Update.
15467 * hppa-tdep.c (find_unwind_entry)
15468 (hppa_lookup_stub_minimal_symbol): Update.
15469 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15470 Update.
15471 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15472 (elf_gnu_ifunc_resolve_by_got): Update.
15473 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15474 * dwarf-index-write.c (save_gdb_index_command): Update.
15475 * cp-support.c (add_symbol_overload_list_qualified): Update.
15476 * breakpoint.c (create_overlay_event_breakpoint)
15477 (create_longjmp_master_breakpoint)
15478 (create_std_terminate_master_breakpoint)
15479 (create_exception_master_breakpoint): Update.
15480 * blockframe.c (find_pc_partial_function): Update.
15481 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15482 (ada_collect_symbol_completion_matches)
15483 (ada_add_global_exceptions): Update.
15484
776489e0
TT
154852019-01-17 Tom Tromey <tom@tromey.com>
15486
15487 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15488 declare VEC.
15489 (solib_target_parse_libraries): Change return type.
15490 (library_list_start_segment, library_list_start_section)
15491 (library_list_end_library, library_list_start_library); Update.
15492 (solib_target_free_library_list): Remove.
15493 (solib_target_parse_libraries): Remove cleanup. Change return
15494 type.
15495 (solib_target_current_sos): Update.
15496
6471e7d2
TT
154972019-01-17 Tom Tromey <tromey@bapiya>
15498
15499 * valprint.c: Replace "the the" with "the".
15500 * symtab.c: Replace "the the" with "the".
15501 * solib.c: Replace "the the" with "the".
15502 * solib-dsbt.c: Replace "the the" with "the".
15503 * linespec.c: Replace "the the" with "the".
15504 * dwarf2loc.h: Replace "the the" with "the".
15505 * amd64-windows-tdep.c: Replace "the the" with "the".
15506 * aarch64-tdep.c: Replace "the the" with "the".
15507
c24bdb02
KS
155082019-01-16 Keith Seitz <keiths@redhat.com>
15509
15510 PR gdb/23773
15511 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15512 <builder>: Rename to ..
15513 <m_builder>: ... this and make private.
15514 (dwarf2_cu::get_builder): New method. Change all users of
15515 `builder' to use this method.
15516 (dwarf2_start_symtab): Move to ...
15517 (dwarf2_cu::start_symtab): ... here. Update all callers
15518 (setup_type_unit_groups): Move to ...
15519 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15520 callers.
15521 (dwarf2_cu::reset_builder): New method.
15522 (process_full_compunit, process_full_type_unit): Use
15523 dwarf2_cu::reset_builder.
15524 (follow_die_offset): Record the ancestor CU if it is different
15525 from the followed DIE's CU.
15526 (follow_die_sig_1): Likewise.
15527
8d64371b
TT
155282019-01-15 Tom Tromey <tom@tromey.com>
15529
15530 * remote.c (class remote_state) <buf>: Now a char_vector.
15531 <buf_size>: Remove.
15532 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15533 parameter.
15534 (remote_target::getpkt_or_notif_sane_1)
15535 (remote_target::getpkt_sane)
15536 (remote_target::getpkt_or_notif_sane): Likewise.
15537 (class remote_target) <putpkt>: New overload.
15538 (remote_target::read_frame): Change type of "buf_p". Remove
15539 sizeof_p parameter.
15540 (packet_ok): New overload.
15541 (packet_check_result): New overload.
15542 Update all uses.
15543
bb277751
TT
155442019-01-14 Tom Tromey <tom@tromey.com>
15545
15546 * remote-notif.c (handle_notification, remote_notif_ack)
15547 (remote_notif_parse): Make "buf" const.
15548 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15549 const.
15550 (remote_notif_parse, remote_notif_ack, handle_notification):
15551 Likewise.
15552 * remote.c (remote_notif_stop_parse): Make "buf" const.
15553 (remote_target::remote_parse_stop_reply): Make "buf" const.
15554 (remote_notif_stop_ack): Make "buf" const.
15555
05be00a8
TT
155562019-01-14 Tom Tromey <tom@tromey.com>
15557
15558 * remote.c (remote_console_output): Make parameter const.
15559
491adeca
TT
155602019-01-14 Tom Tromey <tom@tromey.com>
15561
15562 * target-debug.h (target_debug_print_signals): Constify.
15563 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15564 * procfs.c (procfs_target::pass_signals): Update.
15565 * linux-nat.c (linux_nat_target::pass_signals): Update.
15566 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15567 * target-delegates.c: Rebuild.
15568 * remote.c (remote_target::program_signals): Update.
15569 (remote_target::pass_signals): Update.
15570 * target.c (target_pass_signals): Constify argument.
15571 (target_program_signals): Likewise.
15572 * target.h (struct target_ops) <pass_signals, program_signals>:
15573 Constify argument.
15574 (target_pass_signals, target_program_signals): Constify argument.
15575
bbd94648
TT
155762019-01-14 Tom Tromey <tom@tromey.com>
15577
15578 PR tui/28819:
15579 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15580
6f072a10
PFC
155812019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15582
15583 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15584 field.
15585 * rs6000-tdep.c: Include reggroups.h.
15586 (IS_V_ALIAS_PSEUDOREG): Define.
15587 (rs6000_register_name): Return names for the "vX" aliases.
15588 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15589 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15590 aliases. Call default_register_reggroup_p for all other
15591 pseudo-registers.
15592 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15593 New functions.
15594 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15595 Handle "vX" aliases.
15596 (v_alias_pseudo_register_collect): New function.
15597 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15598 (rs6000_gdbarch_init): Initialize "vX" aliases as
15599 pseudo-registers. Restore registration of
15600 rs6000_pseudo_register_reggroup_p with
15601 set_tdesc_pseudo_register_reggroup_p.
15602
1a782351
MF
156032019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15604
15605 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15606 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15607 set_gdbarch_num_pseudo_regs.
15608
d73cff18
PW
156092019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15610
15611 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15612 Remove arg prefixname, add do_set and do_show.
15613 Add member functions set_list and show_list.
15614 * cli/cli-style.c (class cli_style_option): Update accordingly.
15615 (style_set_list): Move to file scope.
15616 (style_show_list): Likewise.
15617 (set_style): Call help_list.
15618 (show_style): Call cmd_show_list.
15619 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15620 Update to use the new macro.
15621
60a90376
JB
156222019-10-12 Joel Brobecker <brobecker@adacore.com>
15623
15624 * ada-lang.c (_initialize_ada_language): Expand the help text
15625 for the "catch exception" command.
15626
9d7c67bf
PW
156272019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15628
15629 * symtab.c (matching_obj_sections): Initialize obj,
15630 declare it closer to its usage.
15631
7cf47dc4
TT
156322019-01-10 Tom Tromey <tom@tromey.com>
15633
15634 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15635 (basic_inf_threads_range): Remove.
15636 (inf_threads_range, inf_non_exited_threads_range)
15637 (safe_inf_threads_range): Use next_adapter.
15638
d3cb6808
KS
156392019-01-10 Keith Seitz <keiths@redhat.com>
15640
15641 PR gdb/23712
15642 PR symtab/23010
15643 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15644 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15645
63a20375
KS
156462019-01-10 Keith Seitz <keiths@redhat.com>
15647
15648 PR gdb/23712
15649 PR symtab/23010
15650 * dictionary.c (pending_to_vector): Remove.
15651 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15652 Remove _1 suffix, replacing functions of the same name. Update
15653 all callers.
15654 (dict_create_hashed, dict_create_hashed_expandable)
15655 (dict_create_linear, dict_create_linear_expandable, dict_free)
15656 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15657 Make functions static.
15658
b026f593
KS
156592019-01-10 Keith Seitz <keiths@redhat.com>
15660
15661 PR gdb/23712
15662 PR symtab/23010
15663 * dictionary.h (struct dictionary): Replace declaration with
15664 multidictionary.
15665 (dict_create_hashed, dict_create_hashed_expandable)
15666 (dict_create_linear, dict_create_linear_expandable)
15667 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15668 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15669 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15670 taking multidictionary argument.
15671 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15672 * block.h (struct block) <dict>: Change to multidictionary
15673 and rename `multidict'.
15674 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15675 symmisc.c: Update all dictionary references to multidictionary.
15676
c7748ee9
KS
156772019-01-10 Keith Seitz <keiths@redhat.com>
15678
15679 PR gdb/23712
15680 PR symtab/23010
15681 * dictionary.c: Include unordered_map.
15682 (pending_to_vector): New function.
15683 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15684 Rewrite the non-"_1" functions to take vector instead
15685 of linked list.
15686 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15687 "new" _1 versions of the same name.
15688 (multidictionary): Define.
15689 (std::hash<enum language): New definition.
15690 (collate_pending_symbols_by_language, mdict_create_hashed)
15691 (mdict_create_hashed_expandable, mdict_create_linear)
15692 (mdict_create_linear_expandable, mdict_free)
15693 (find_language_dictionary, create_new_language_dictionary)
15694 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15695 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15696 (mdict_size, mdict_empty): New functions.
15697 * dictionary.h (mdict_iterator): Define.
15698
67aa1f3c
PA
156992019-01-10 Pedro Alves <palves@redhat.com>
15700
15701 * breakpoint.c (read_uploaded_action)
15702 (create_tracepoint_from_upload): Adjust to use
15703 gdb::unique_xmalloc_ptr.
15704 * ctf.c (ctf_write_uploaded_tp):
15705 (SET_ARRAY_FIELD): Use emplace_back.
15706 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15707 * tracefile-tfile.c (tfile_write_uploaded_tp):
15708 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15709 gdb::unique_xmalloc_ptr.
15710 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15711 at_string, cond_string, cmd_strings>: Replace char pointers
15712 with gdb::unique_xmalloc_ptr.
15713
2f667667
PA
157142019-01-10 Pedro Alves <palves@redhat.com>
15715
15716 * solib-target.c (library_list_start_library): Don't xstrdup name.
15717
36cb7237
PA
157182019-01-10 Pedro Alves <palves@redhat.com>
15719
15720 * mdebugread.c (parse_partial_symbols): Use
15721 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15722
da584958
AB
157232019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15724
15725 * linux-fork.c (scoped_switch_fork_info)
15726 <~scoped_switch_fork_info>: Fix incorrect variable name.
15727
1ef8573c
AB
157282019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15729
15730 * linux-fork.c (scoped_switch_fork_info)
15731 <scoped_switch_fork_info>: Make explicit.
15732 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15733
8d7bcccb
TT
157342019-01-10 Tom Tromey <tom@tromey.com>
15735
15736 * objfiles.h (objfile::reset_psymtabs): Update.
15737 * objfiles.c (objfile::objfile): Update.
15738 * psymtab.h (psymtab_storage::obstack): Update.
15739 (psymtab_storage::m_obstack): Use gdb::optional.
15740 (class psymtab_storage): Update comment. Remove objfile
15741 parameter.
15742 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15743
b596a3c7
TT
157442019-01-10 Tom Tromey <tom@tromey.com>
15745
15746 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15747 <free_psymtabs>: Now private.
15748 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15749 (allocate_psymtab): Use new method.
15750
a9342b62
TT
157512019-01-10 Tom Tromey <tom@tromey.com>
15752
15753 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15754 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15755 * mdebugread.c (parse_partial_symbols): Use
15756 allocate_dependencies.
15757 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15758 allocate_dependencies.
15759 (process_psymtab_comp_unit_reader)
15760 (build_type_psymtab_dependencies): Likewise.
15761 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15762
5af70966
TT
157632019-01-10 Tom Tromey <tom@tromey.com>
15764
15765 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15766 PSYMBOL_SET_LANGUAGE.
15767 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15768
5923a04c
TT
157692019-01-10 Tom Tromey <tom@tromey.com>
15770
15771 * psymtab.h (psymtab_storage::obstack): New method.
15772 <m_obstack>: Rename from obstack; now private.
15773 * psymtab.c (psymtab_storage): Update.
15774 * dwarf2read.c (create_addrmap_from_index)
15775 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15776 Update.
15777
6d6a12bf
TT
157782019-01-10 Tom Tromey <tom@tromey.com>
15779
15780 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15781 * objfiles.h (objfile::reset_psymtabs): New method.
15782
d320c2b5
TT
157832019-01-10 Tom Tromey <tom@tromey.com>
15784
15785 * symmisc.c (print_symbol_bcache_statistics): Update.
15786 (print_objfile_statistics): Update.
15787 * symfile.c (reread_symbols): Update.
15788 * psymtab.h (class psymtab_storage): New.
15789 * psymtab.c (psymtab_storage): New constructor.
15790 (~psymtab_storage): New destructor.
15791 (require_partial_symbols): Update.
15792 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15793 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15794 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15795 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15796 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15797 (start_psymtab_common, end_psymtab_common)
15798 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15799 (allocate_psymtab): Update.
15800 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15801 Update.
15802 (dump_psymtab_addrmap, maintenance_print_psymbols)
15803 (maintenance_check_psymtabs): Update.
15804 (class objfile_psymtabs): Move to objfiles.h.
15805 * psympriv.h (discard_psymtab): Now inline.
15806 (psymtab_discarder::psymtab_discarder): Update.
15807 (psymtab_discarder::~psymtab_discarder): Update.
15808 (ALL_OBJFILE_PSYMTABS): Rewrite.
15809 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15810 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15811 Remove fields.
15812 <partial_symtabs>: New field.
15813 (class objfile_psymtabs): Move from psymtab.h. Update.
15814 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15815 psymbol_cache.
15816 (objfile::~objfile): Don't destroy psymbol_cache.
15817 * mdebugread.c (parse_partial_symbols): Update.
15818 * dwarf2read.c (create_addrmap_from_index)
15819 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15820 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15821 (add_partial_subprogram, dwarf2_ranges_read): Update.
15822 * dwarf-index-write.c (write_address_map)
15823 (write_one_signatured_type, recursively_write_psymbols)
15824 (class debug_names, class debug_names, write_psymtabs_to_index):
15825 Update.
15826
1d94a5a3
TT
158272019-01-10 Tom Tromey <tom@tromey.com>
15828
15829 * symtab.h (SYMBOL_SET_NAMES): Update.
15830 (symbol_set_names): Update.
15831 (MSYMBOL_SET_NAMES): Update.
15832 * symtab.c (symbol_set_names): Change argument to be an
15833 objfile_per_bfd_storage.
15834 * psymtab.c (add_psymbol_to_bcache): Update.
15835 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15836
0f14768a
TT
158372019-01-10 Tom Tromey <tom@tromey.com>
15838
15839 * symtab.c (create_demangled_names_hash): Change argument to be an
15840 objfile_per_bfd_storage.
15841 (symbol_set_names): Update.
15842
6eee24ce
TT
158432019-01-10 Tom Tromey <tom@tromey.com>
15844
15845 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15846 init_psymbol_list.
15847 * psymtab.c (init_psymbol_list): Do nothing if already called.
15848 * psympriv.h (init_psymbol_list): Add comment.
15849 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15850 init_psymbol_list.
15851 * dbxread.c (dbx_symfile_read): Unconditionally call
15852 init_psymbol_list.
15853
75aedd27
TT
158542019-01-10 Tom Tromey <tom@tromey.com>
15855
15856 * xcoffread.c (scan_xcoff_symtab): Update.
15857 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15858 "where".
15859 * mdebugread.c (parse_partial_symbols)
15860 (handle_psymbol_enumerators): Update.
15861 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15862 * dbxread.c (read_dbx_symtab): Update.
15863 * psympriv.h (psymbol_placement): New enum.
15864 (add_psymbol_to_list): Update.
15865
939652a5
TT
158662019-01-10 Tom Tromey <tom@tromey.com>
15867
15868 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15869 static_psymbols parameters.
15870 (scan_xcoff_symtab): Update.
15871 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15872 static_psymbols parameters.
15873 * psympriv.h (start_psymtab_common): Update.
15874 * mdebugread.c (parse_partial_symbols): Update.
15875 * dwarf2read.c (create_partial_symtab): Update.
15876 * dbxread.c (read_dbx_symtab): Update.
15877 (start_psymtab): Remove global_psymbols and static_psymbols
15878 parameters.
15879
baa62830
TT
158802019-01-10 Tom Tromey <tom@tromey.com>
15881
15882 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15883 * psymtab.c (allocate_psymtab): Add comment.
15884 * psympriv.h (allocate_psymtab): Add comment.
15885 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15886 initializations.
15887 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15888
0e8f53ba
TT
158892019-01-10 Tom Tromey <tom@tromey.com>
15890
15891 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15892 Don't declare.
15893 * mipsread.c: Include mdebugread.h.
15894 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15895 Declare.
15896 * elfread.c: Include mdebugread.h.
15897
b22a7c6a
TT
158982019-01-09 Tom Tromey <tom@tromey.com>
15899
15900 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15901 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15902 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15903 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15904 (psym_lookup_symbol, psym_find_last_source_symtab)
15905 (psym_forget_cached_source_info, psym_print_stats)
15906 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15907 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15908 (psym_map_matching_symbols, psym_expand_symtabs_matching)
15909 (psym_find_compunit_symtab_by_address)
15910 (maintenance_print_psymbols, maintenance_info_psymtabs)
15911 (maintenance_check_psymtabs): Use ranged for.
15912 * psymtab.h (class objfile_psymtabs): New.
15913 (require_partial_symbols): Return objfile_psymtabs.
15914 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
15915
3b9d3ac2
TT
159162019-01-09 Tom Tromey <tom@tromey.com>
15917
15918 * symfile.c (overlay_invalidate_all, find_pc_overlay)
15919 (find_pc_mapped_section, list_overlays_command)
15920 (map_overlay_command, unmap_overlay_command)
15921 (simple_overlay_update): Use all_objfiles.
15922 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
15923 * printcmd.c (info_symbol_command): Use all_objfiles.
15924 * objfiles.h (ALL_OBJSECTIONS): Remove.
15925 * maint.c (maintenance_translate_address): Use all_objfiles.
15926 * gcore.c (gcore_create_callback): Use all_objfiles.
15927 (objfile_find_memory_regions): Likewise.
15928
8b31193a
TT
159292019-01-09 Tom Tromey <tom@tromey.com>
15930
15931 * symtab.c (find_line_symtab, info_sources_command)
15932 (make_source_files_completion_list): Use objfile_compunits.
15933 * source.c (select_source_symtab): Use objfile_compunits.
15934 * objfiles.h (struct objfile): Update comment.
15935 (ALL_OBJFILES): Remove.
15936 (ALL_FILETABS): Remove.
15937 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
15938 objfile_compunits.
15939
d5da8b3c
TT
159402019-01-09 Tom Tromey <tom@tromey.com>
15941
15942 * symmisc.c (print_objfile_statistics, dump_objfile)
15943 (maintenance_print_symbols): Use compunit_filetabs.
15944 * source.c (forget_cached_source_info_for_objfile): Use
15945 compunit_filetabs.
15946 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
15947 (ALL_FILETABS): Use compunit_filetabs.
15948 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
15949 * coffread.c (coff_symtab_read): Use compunit_filetabs.
15950
5accd1a0
TT
159512019-01-09 Tom Tromey <tom@tromey.com>
15952
15953 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
15954 (compunit_filetabs): New.
15955 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
15956 compunit_filetabs.
15957 (info_sources_command, make_source_files_completion_list): Remove
15958 declaration.
15959 * symmisc.c (print_objfile_statistics, dump_objfile)
15960 (maintenance_print_symbols): Remove declaration.
15961 (maintenance_info_symtabs): Use compunit_filetabs.
15962 (maintenance_info_line_tables): Likewise.
15963 * source.c (select_source_symtab): Change local variable name.
15964 (forget_cached_source_info_for_objfile): Remove declaration.
15965 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
15966 * objfiles.c (objfile_relocate1): Remove declaration.
15967 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15968 declaration.
15969 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
15970 * coffread.c (coff_symtab_read): Remove declaration.
15971 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
15972 compunit_filetabs.
15973
d8aeb77f
TT
159742019-01-09 Tom Tromey <tom@tromey.com>
15975
15976 * symtab.c (lookup_objfile_from_block)
15977 (find_pc_sect_compunit_symtab, search_symbols)
15978 (default_collect_symbol_completion_matches_break_on): Use
15979 objfile_compunits.
15980 * objfiles.h (ALL_COMPUNITS): Remove.
15981 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
15982 * cp-support.c (add_symbol_overload_list_qualified): Use
15983 objfile_compunits.
15984 * ada-lang.c (ada_collect_symbol_completion_matches)
15985 (ada_add_global_exceptions): Use objfile_compunits.
15986
592553c4
TT
159872019-01-09 Tom Tromey <tom@tromey.com>
15988
15989 * source.c (select_source_symtab)
15990 (forget_cached_source_info_for_objfile): Remove declaration.
15991 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
15992 declaration.
15993 * maint.c (count_symtabs_and_blocks): Remove declaration.
15994 * cp-support.c (add_symbol_overload_list_qualified): Remove
15995 declaration.
15996 * coffread.c (coff_symtab_read): Remove declaration.
15997 * symtab.c (lookup_symbol_in_objfile_symtabs)
15998 (basic_lookup_transparent_type_1): Use objfile_compunits.
15999 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16000 (info_sources_command, search_symbols)
16001 (default_collect_symbol_completion_matches_break_on)
16002 (make_source_files_completion_list): Remove declaration.
16003 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16004 (ada_collect_symbol_completion_matches)
16005 (ada_add_global_exceptions): Remove declaration.
16006 * linespec.c (iterate_over_all_matching_symtabs): Use
16007 objfile_compunits.
16008 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16009 (class objfile_compunits): New.
16010 (ALL_COMPUNITS): Use objfile_compunits.
16011 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16012 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16013 objfile_compunits.
16014 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16015
5325b9bf
TT
160162019-01-09 Tom Tromey <tom@tromey.com>
16017
16018 * symtab.c (search_symbols)
16019 (default_collect_symbol_completion_matches_break_on): Use
16020 objfile_msymbols.
16021 * ada-lang.c (ada_lookup_simple_minsym)
16022 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16023 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16024 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16025 objfile_msymbols.
16026 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16027 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16028 * objc-lang.c (find_methods): Use objfile_msymbols.
16029 (info_selectors_command, info_classes_command): Likewise.
16030 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16031 * objfiles.h (class objfile_msymbols): New.
16032 (ALL_OBJFILE_MSYMBOLS): Remove.
16033 (ALL_MSYMBOLS): Remove.
16034
cac85af2
TT
160352019-01-09 Tom Tromey <tom@tromey.com>
16036
16037 * common/next-iterator.h (next_adapter): Add Iterator template
16038 parameter.
16039 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16040 (class all_objfiles_safe): New.
16041 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16042 * objfiles.c (put_objfile_before): Update comment.
16043 (add_separate_debug_objfile): Likewise.
16044 (free_all_objfiles): Use all_objfiles_safe.
16045 (objfile_purge_solibs): Likewise.
16046
aed57c53
TT
160472019-01-09 Tom Tromey <tom@tromey.com>
16048
16049 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16050 (expand_symtab_containing_pc, lookup_static_symbol)
16051 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16052 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16053 all_objfiles.
16054 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16055 * breakpoint.c (create_overlay_event_breakpoint)
16056 (create_longjmp_master_breakpoint)
16057 (create_std_terminate_master_breakpoint)
16058 (create_exception_master_breakpoint): Use all_objfiles.
16059 * linux-thread-db.c (try_thread_db_load_from_pdir)
16060 (has_libpthread): Use all_objfiles.
16061 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16062 * linespec.c (iterate_over_all_matching_symtabs)
16063 (search_minsyms_for_name): Use all_objfiles.
16064 * maint.c (maintenance_info_sections): Use all_objfiles.
16065 * main.c (captured_main_1): Use all_objfiles.
16066 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16067 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16068 * guile/scm-pretty-print.c
16069 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16070 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16071 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16072 (maintenance_print_msymbols): Use all_objfiles.
16073 * source.c (select_source_symtab): Use all_objfiles.
16074 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16075 * symfile.c (remove_symbol_file_command)
16076 (expand_symtabs_matching, map_symbol_filenames): Use
16077 all_objfiles.
16078 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16079 all_objfiles.
16080 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16081 * objc-lang.c (find_methods): Use all_objfiles.
16082 * objfiles.c (have_partial_symbols, have_full_symbols)
16083 (have_minimal_symbols, qsort_cmp)
16084 (default_iterate_over_objfiles_in_search_order): Use
16085 all_objfiles.
16086 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16087 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16088 (maintenance_check_psymtabs): Use all_objfiles.
16089 (ALL_PSYMTABS): Remove.
16090 * compile/compile-object-run.c (do_module_cleanup): Use
16091 all_objfiles.
16092 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16093 * cp-support.c (add_symbol_overload_list_qualified): Use
16094 all_objfiles.
16095 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16096 Use all_objfiles.
16097 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16098 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16099 all_objfiles.
16100 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16101 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16102 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16103 Uses all_objfiles.
16104 * solib.c (solib_read_symbols): Use all_objfiles
16105
99d89cde
TT
161062019-01-09 Tom Tromey <tom@tromey.com>
16107
16108 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16109 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16110 all_objfiles.
16111 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16112 * symmisc.c (print_symbol_bcache_statistics)
16113 (print_objfile_statistics, maintenance_print_objfiles)
16114 (maintenance_info_symtabs, maintenance_check_symtabs)
16115 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16116 all_objfiles.
16117 * source.c (forget_cached_source_info): Use all_objfiles.
16118 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16119 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16120 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16121 * objfiles.c (update_section_map): Use all_objfiles.
16122 (shared_objfile_contains_address_p): Likewise.
16123 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16124 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16125
21708325
TT
161262019-01-09 Tom Tromey <tom@tromey.com>
16127
16128 * common/next-iterator.h: New file.
16129 * objfiles.h (class all_objfiles): New.
16130 (struct objfile_iterator): New.
16131
669e09f6
PW
161322019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16133
16134 * NEWS: Move the description of the changed "frame", "select-frame",
16135 and "info frame" commands to the Changed commands section.
16136
041be526
SM
161372019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16138
16139 * gdbtypes.c (check_stub_method_group): Remove handling of old
16140 mangling schemes.
16141 * linespec.c (find_methods): Likewise.
16142 * stabsread.c (read_member_functions): Likewise.
16143 * valops.c (search_struct_method): Likewise.
16144 (value_struct_elt_for_reference): Likewise.
16145 * NEWS: Mention this change.
16146
0e2a2133
AB
161472019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16148
16149 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16150 print_source_lines.
16151 * source.c (print_source_lines_base): Update line number check.
16152 (print_source_lines): New function.
16153 (source_lines_range::source_lines_range): New function.
16154 * source.h (class source_lines_range): New class.
16155 (print_source_lines): New declaration.
16156
1055a3b4
PW
161572019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16158
16159 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16160
cfeadda5
TT
161612019-01-08 Tom Tromey <tom@tromey.com>
16162 Simon Marchi <simon.marchi@ericsson.com>
16163
16164 PR gdb/24060
16165 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16166 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16167 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16168 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16169 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16170 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16171
583068ca
AB
161722019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16173
16174 * source.c (select_source_symtab): Move header comment to
16175 declaration in source.h.
16176 (forget_cached_source_info_for_objfile): Likewise.
16177 (forget_cached_source_info): Likewise.
16178 (identify_source_line): Likewise.
16179 * source.h (identify_source_line): Move declaration from symtab.h
16180 and add comment from source.c
16181 (print_source_lines): Likewise.
16182 (forget_cached_source_info_for_objfile): Likewise.
16183 (forget_cached_source_info): Likewise.
16184 (select_source_symtab): Likewise.
16185 (enum print_source_lines_flag): Move definition from symtab.h.
16186 * symtab.h (identify_source_line): Move declaration to source.h.
16187 (print_source_lines): Likewise.
16188 (forget_cached_source_info_for_objfile): Likewise.
16189 (forget_cached_source_info): Likewise.
16190 (select_source_symtab): Likewise.
16191 (enum print_source_lines_flag): Move definition to source.h.
16192 * tui/tui-hooks.c: Add 'source.h' include.
16193
ec98a4ad
AB
161942019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16195
16196 * source.c (print_source_lines_base): Handle requests to print
16197 reverse line number sequences, and guard against empty lines
16198 string.
16199
62ea19c1
AB
162002019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16201
16202 * source.c (print_source_lines_base): Fix skip of '\r' if next
16203 character is '\n'.
16204
9d30e1fd
TT
162052019-01-06 Tom Tromey <tom@tromey.com>
16206
16207 * c-exp.y (struct c_parse_state) <macro_original_text,
16208 expansion_obstack>: New member.
16209 (macro_original_text, expansion_obstack): Remove globals.
16210 (scan_macro_expansion, scanning_macro_expansion)
16211 (finished_macro_expansion): Update.
16212 (scan_macro_cleanup): Remove.
16213 (yylex, c_parse): Update.
16214
c65bac38
TT
162152019-01-06 Tom Tromey <tom@tromey.com>
16216
16217 * c-exp.y (struct c_parse_state) <strings>: New member.
16218 (operator_stoken): Update.
16219
02e12e38
TT
162202019-01-06 Tom Tromey <tom@tromey.com>
16221
16222 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16223 (union type_stack_elt) <typelist_val>: Now a pointer to
16224 std::vector.
16225 (type_stack_cleanup): Don't declare.
16226 (push_typelist): Update.
16227 * parse.c (pop_typelist): Return a std::vector.
16228 (push_typelist): Take a std::vector.
16229 (follow_types): Update. Do not free args.
16230 (type_stack_cleanup): Remove.
16231 * c-exp.y (struct c_parse_state): New.
16232 (cpstate): New global.
16233 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16234 (nonempty_typelist): Update.
16235 (func_mod): Create a new vector.
16236 (c_parse): Create a c_parse_state.
16237 (check_parameter_typelist): Do not delete params.
16238 (function_method): Update. Do not delete type_list.
16239
f097f5ad
TT
162402019-01-06 Tom Tromey <tom@tromey.com>
16241
16242 PR gdb/28155:
16243 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16244 check_typedef.
16245 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16246 (print_return_value): Likewise.
16247
d2adf9f1
TT
162482019-01-05 Tom Tromey <tom@tromey.com>
16249
16250 * contrib/cleanup_check.py: Remove.
16251 * contrib/gcc-with-excheck: Remove.
16252 * contrib/exsummary.py: Remove.
16253 * contrib/excheck.py: Remove.
16254
2eab46b1
JB
162552019-01-05 Joel Brobecker <brobecker@adacore.com>
16256
16257 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16258 NULL. Initialize tpprev to NULL instead of assigning it
16259 to NULL on the next statement.
16260 * windows-nat.c (windows_delete_thread): Remove check for
16261 main_thread_id before printing thread exit notifications.
16262 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16263 Remove thread ID check against main_thread_id.
16264 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16265 windows_delete_thread.
16266 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16267
48c5e7e2
TT
162682019-01-04 Tom Tromey <tom@tromey.com>
16269
16270 * compile/compile.c (_initialize_compile): Use upper case for
16271 metasyntactic variables.
16272 * symmisc.c (_initialize_symmisc): Use upper case for
16273 metasyntactic variables.
16274 * psymtab.c (_initialize_psymtab): Use upper case for
16275 metasyntactic variables.
16276 * demangle.c (demangle_command): Use upper case for metasyntactic
16277 variables.
16278 (_initialize_demangler): Likewise.
16279 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16280 variables.
16281
986041cd
TT
162822019-01-03 Tom Tromey <tom@tromey.com>
16283
16284 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16285
7c711119
TT
162862019-01-03 Tom Tromey <tom@tromey.com>
16287
16288 * python/py-symtab.c (salpy_str): Update.
16289 (struct salpy_sal_object) <symtab>: Now a PyObject.
16290 (salpy_dealloc): Update.
16291 (del_objfile_sal): Use gdbpy_ref.
16292
1b20edf0
TT
162932019-01-03 Tom Tromey <tom@tromey.com>
16294
16295 * python/py-type.c (convert_field): Use new_reference. Return
16296 gdbpy_ref.
16297 (make_fielditem): Return gdbpy_ref.
16298 (typy_fields): Update.
16299 (typy_getitem): Update.
16300 (field_name): Return gdbpy_ref. Use new_reference.
16301 (typy_iterator_iternext): Update.
16302
ea41325b
TT
163032019-01-03 Tom Tromey <tom@tromey.com>
16304
16305 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16306
2a3c71d6
TT
163072019-01-03 Tom Tromey <tom@tromey.com>
16308
16309 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16310 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16311 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16312 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16313 (pspy_set_type_printers): Likewise.
16314 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16315 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16316 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16317 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16318 (objfpy_set_type_printers): Likewise.
16319
5c329e6a
TT
163202019-01-03 Tom Tromey <tom@tromey.com>
16321
16322 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16323 (gdbpy_print_stack): Use gdbpy_err_fetch.
16324 * python/python-internal.h (class gdbpy_err_fetch): New class.
16325 (class gdbpy_enter) <m_error_type, m_error_value,
16326 m_error_traceback>: Remove.
16327 <m_error>: New member.
16328 (gdbpy_exception_to_string): Don't declare.
16329 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16330 * python/py-value.c (convert_value_from_python): Use
16331 gdbpy_err_fetch.
16332 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16333 gdbpy_exception_to_string.
16334 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16335 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16336 gdbpy_err_fetch.
16337
169bb27b
AB
163382019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16339
16340 * linux-nat.c (delete_lwp_cleanup): Delete.
16341 (struct lwp_deleter): New struct.
16342 (lwp_info_up): New typedef.
16343 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16344 lwp_info_up.
16345
a07c8880
AB
163462019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16347
16348 * linux-fork.c (class scoped_switch_fork_info): New class.
16349 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16350
26089c49
AB
163512019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16352
16353 * valops.c (find_overload_match): Remove use of null_cleanup, and
16354 calls to do_cleanups.
16355
06d3e5b0
AB
163562019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16357
16358 * compile/compile-cplus-types.c
16359 (compile_cplus_instance::decl_name): Handle changes to
16360 cp_func_name.
16361 * cp-support.c (cp_func_name): Update header comment, update
16362 return type.
16363 * cp-support.h (cp_func_name): Update return type in declaration.
16364 * valops.c (find_overload_match): Move temp_func local to top
16365 level of function and change its type. Use temp_func to hold and
16366 delete temporary string obtained from cp_func_name.
16367
66644cd3
AB
163682019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16369
16370 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16371 gdb::char_vector, remove cleanup, and update uses of `msg`.
16372
592d8c0a
JW
163732019-01-03 Jim Wilson <jimw@sifive.com>
16374
16375 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16376
c55d06ec
TT
163772019-01-02 Tom Tromey <tom@tromey.com>
16378
16379 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16380 (tdesc_parse_xml): Remove cleanups.
16381 * target-descriptions.h (make_cleanup_free_target_description):
16382 Don't declare.
16383 (target_desc_deleter): New struct.
16384 (target_desc_up): New typedef.
16385 * target-descriptions.c (target_desc_deleter::operator()): Rename
16386 from free_target_description.
16387 (make_cleanup_free_target_description): Remove.
16388
3a6ae42d
TT
163892019-01-02 Tom Tromey <tom@tromey.com>
16390
16391 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16392 constructor, destructor.
16393 (linespec_parser): Remove typedef.
16394 (~linespec_parser): Rename from linespec_parser_delete.
16395 (linespec_lex_to_end, linespec_complete_label)
16396 (linespec_complete): Update.
16397 (decode_line_full): Remove cleanups.
16398 (decode_line_1): Update.
16399
61fd3e73
TT
164002019-01-02 Tom Tromey <tom@tromey.com>
16401
16402 * python/python-internal.h (inferior_to_inferior_object): Change
16403 return type.
16404 * python/py-exitedevent.c (create_exited_event_object): Update.
16405 * python/py-inferior.c (inferior_to_inferior_object): Return
16406 gdbpy_ref.
16407 (python_new_inferior, python_inferior_deleted)
16408 (thread_to_thread_object, delete_thread_object)
16409 (build_inferior_list, gdbpy_selected_inferior): Update.
16410 * python/py-infthread.c (create_thread_object): Update. Also fail
16411 if inferior_to_inferior_object fails.
16412
d20172fc
SM
164132019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16414
16415 * inferior.h (class inferior) <displaced_step_state>: New field.
16416 * infrun.h (struct displaced_step_state): Move here from
16417 infrun.c. Initialize fields, add constructor.
16418 <inf>: Remove field.
16419 <reset>: New method.
16420 * infrun.c (struct displaced_step_inferior_state): Move to
16421 infrun.h.
16422 (displaced_step_inferior_states): Remove.
16423 (get_displaced_stepping_state): Adust.
16424 (displaced_step_in_progress_any_inferior): Adjust.
16425 (displaced_step_in_progress_thread): Adjust.
16426 (displaced_step_in_progress): Adjust.
16427 (add_displaced_stepping_state): Remove.
16428 (get_displaced_step_closure_by_addr): Adjust.
16429 (remove_displaced_stepping_state): Remove.
16430 (infrun_inferior_exit): Call displaced_step_state.reset.
16431 (use_displaced_stepping): Don't check for NULL.
16432 (displaced_step_prepare_throw): Call
16433 get_displaced_stepping_state.
16434 (displaced_step_fixup): Don't check for NULL.
16435 (prepare_for_detach): Don't check for NULL.
16436
e3319240
PW
164372019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16438
16439 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16440 in case of call that did not complete.
16441
5d36dfb9
AU
164422019-01-02 Andrey Utkin <autkin@undo.io>
16443
16444 * symfile.c (find_separate_debug_file): Fix search of debug files for
16445 remote debuggee.
16446
8833fbf0
TT
164472019-01-02 Tom Tromey <tom@tromey.com>
16448
16449 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16450 indentation.
16451 * python/py-frame.c (frapy_older): Remove cast.
16452 (frapy_newer): Likewise.
16453 * python/py-breakpoint.c (local_setattro): Remove cast.
16454 * python/py-arch.c (archpy_name): Remove local variable.
16455 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16456
4ada3dfd
JB
164572019-01-02 Joel Brobecker <brobecker@adacore.com>
16458
16459 * unittests/basic_string_view/element_access/char/empty.cc:
16460 Fix year range in copyright header.
16461
113b7b81
AB
164622019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16463
16464 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16465 Delete.
16466 <operator==>: Update with for removed field.
16467 <hash>: Likewise.
16468 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16469 <isa_features>: ...this.
16470 <abi_features>: New field.
16471 (riscv_isa_flen): Update comment.
16472 (riscv_abi_xlen): New declaration.
16473 (riscv_abi_flen): New declaration.
16474 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16475 isa_features.
16476 (riscv_abi_xlen): New function.
16477 (riscv_isa_flen): Update to get answer from isa_features.
16478 (riscv_abi_flen): New function.
16479 (riscv_has_fp_abi): Update to get answer from abi_features.
16480 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16481 xlen and flen.
16482 (riscv_call_info) <xlen, flen>: Update comment.
16483 (riscv_call_arg_struct): Remove invalid assertions
16484 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16485 is removed.
16486 (riscv_gdbarch_init): Gather isa features and abi features
16487 separately, ensure both match on the gdbarch when reusing an old
16488 gdbarch. Relax an error check to allow 32-bit abi float to run on
16489 a target with 64-bit float hardware.
16490
b18ca514
PW
164912019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16492
16493 * source.c (search_command_helper): Stop reverse search
16494 when line 1 has been searched.
16495
ec70d8db
PW
164962019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16497
16498 * record-full.c (record_full_base_target::close): Rewrite
16499 record_full_core_buf_list free logic.
16500
5b38f9c1
PW
165012019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16502
16503 * break-catch-syscall.c (print_one_catch_syscall): xfree
16504 the last text.
16505
66d91b39
JB
165062019-01-01 Joel Brobecker <brobecker@adacore.com>
16507
16508 * top.c (print_gdb_version): Update Copyright year in version
16509 message.
16510
42a4f53d
JB
165112019-01-01 Joel Brobecker <brobecker@adacore.com>
16512
16513 Update copyright year range in all GDB files.
16514
7e955d83 165152019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16516
5bbd631d 16517 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16518
5bbd631d 16519For older changes see ChangeLog-2018.
c906108c
SS
16520\f
16521Local Variables:
16522mode: change-log
16523left-margin: 8
16524fill-column: 74
16525version-control: never
57da7796 16526coding: utf-8
c906108c 16527End:
5bbd631d 16528
This page took 3.060546 seconds and 4 git commands to generate.