gdb: make gdbarch_displaced_step_copy_insn return an std::unique_ptr
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
18b28e13
SM
12020-02-14 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
4 std::unique_ptr.
5 * gdbarch.c: Re-generate.
6 * gdbarch.h: Re-generate.
7 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8 change.
9 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
10 type to std::unique_ptr.
11 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
13 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
15 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
16 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
17 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
18 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
19 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
20
b8bfbca5
SM
212020-02-14 Simon Marchi <simon.marchi@efficios.com>
22
23 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
24 std::unique_ptr.
25 (displaced_step_clear): Rename to...
26 (displaced_step_reset): ... this. Just call displaced->reset ().
27 (displaced_step_clear_cleanup): Rename to...
28 (displaced_step_reset_cleanup): ... this.
29 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
30 (displaced_step_fixup): Likewise.
31 (resume_1): Likewise.
32 (handle_inferior_event): Restore child's memory before calling
33 displaced_step_fixup on the parent.
34 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
35 to std::unique_ptr.
36 <step_closure>: Change type to std::unique_ptr.
37
899016d4
JB
382020-02-08 Joel Brobecker <brobecker@adacore.com>
39
40 * version.in: Set GDB version number to 9.1.
41
f49692df
IB
422020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
43
44 PR gdb/25190:
45 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
46 * gdb/remote.c (remote_console_output): Update.
47 * gdb/ui-file.c (fputs_unfiltered): Rename to...
48 (ui_file_puts): ...this.
49 * gdb/ui-file.h (ui_file_puts): Add declaration.
50 * gdb/utils.c (emit_style_escape): Update.
51 (flush_wrap_buffer): Update.
52 (fputs_maybe_filtered): Update.
53 (fputs_unfiltered): Add function.
54
ff491e6b
IB
552020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
56
57 * gdb/event-loop.c (gdb_wait_for_event): Update.
58 * gdb/printcmd.c (printf_command): Update.
59 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
60 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
61 (gdb_os_flush_stderr): Update.
62 * gdb/remote.c (remote_console_output): Update.
63 * gdb/ui-file.c (gdb_flush): Rename to...
64 (ui_file_flush): ...this.
65 (stderr_file::write): Update.
66 (stderr_file::puts): Update.
67 * gdb/ui-file.h (gdb_flush): Rename to...
68 (ui_file_flush): ...this.
69 * gdb/utils.c (gdb_flush): Add function.
70 * gdb/utils.h (gdb_flush): Add declaration.
71
76f5096c
TT
722020-02-07 Tom Tromey <tromey@adacore.com>
73
74 PR breakpoints/24915:
75 * source.c (find_and_open_source): Do not check basenames_may_differ.
76
975292a9
CB
772020-01-10 Christian Biesinger <cbiesinger@google.com>
78
79 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
80
3c473fad
TT
812020-01-07 Tom Tromey <tromey@adacore.com>
82
83 PR build/24937:
84 * stap-probe.c (class stap_static_probe_ops): Add constructor.
85
f7da8e5b
AB
862020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
87
88 * stack.c (print_frame_info): Move disassemble_next_line code
89 inside source_print block.
90
b8e46eb9
JB
912020-01-01 Joel Brobecker <brobecker@adacore.com>
92
93 * gdbarch.sh: Update copyright year range of generated files.
94
11bc5fe4
JB
952020-01-01 Joel Brobecker <brobecker@adacore.com>
96
97 Update copyright year range in all the GDB files automatically
98 handled by our copyright.py script.
99
8b371634
JB
1002020-01-01 Joel Brobecker <brobecker@adacore.com>
101
102 * copyright.py: Convert to Python 3.
103
a292f79f
JB
1042020-01-01 Joel Brobecker <brobecker@adacore.com>
105
106 * copyright.py: Adapt after move of gnulib directory from gdb
107 directory to toplevel directory.
108
1458b0f3
JB
1092020-01-01 Joel Brobecker <brobecker@adacore.com>
110
111 * copyright.py (main): Exit if run from the wrong directory.
112
e9de78be
JB
1132020-01-01 Joel Brobecker <brobecker@adacore.com>
114
115 * top.c (print_gdb_version): Change copyright year to 2020.
116
c0716f3e
CB
1172019-12-26 Christian Biesinger <cbiesinger@google.com>
118
119 * configure: Regenerate.
120 * configure.ac: Quote variable arguments of test.
121 * gdbsupport/common.m4: Likewise.
122
527178f7
EZ
1232019-12-21 Eli Zaretskii <eliz@gnu.org>
124
125 * top.c (print_gdb_configuration): Print "--with-xxhash" or
126 "--without-xxhash" according to HAVE_LIBXXHASH.
127
4ae7258e
TT
1282019-12-18 Tom Tromey <tromey@adacore.com>
129
130 PR build/25268:
131 * gdbsupport/thread-pool.c (set_thread_name): Expect "int" return
132 type on macOS. Add comment.
133
1c66314d
TT
1342019-12-18 Tom Tromey <tromey@adacore.com>
135
136 PR build/25250:
137 * ui-out.c (ui_out::vmessage): Update.
138 * ui-out.h (enum class field_kind) <FIELD_STRING, FIELD_SIGNED>:
139 Rename.
140 (string_field): Update.
141 (signed_field): Update.
142
be19b699
SM
1432019-12-16 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * jit.c (finalize_symtab): Set gdb_block_iter_tmp in loop.
146
3f434671
JB
1472019-12-11 Joel Brobecker <brobecker@adacore.com>
148
149 * version.in: Set GDB version number to 9.0.90.DATE-git.
150
07d5aa38
JB
1512019-12-11 Joel Brobecker <brobecker@adacore.com>
152
153 GDB 9.0.90 released.
154
b06b5486
JB
1552019-12-11 Joel Brobecker <brobecker@adacore.com>
156
157 * version.in: Set GDB version number to 9.0.90.
158
41ec388b
JB
1592019-12-11 Joel Brobecker <brobecker@adacore.com>
160
161 * NEWS: Change "Changes since GDB 8.3" into "Changes in GDB 9".
162
c87abc50
JB
1632019-12-11 Joel Brobecker <brobecker@adacore.com>
164
165 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
166 * version.in: Bump version to 9.0.90.DATE-git.
167
2e744276
TT
1682019-12-11 Tom Tromey <tromey@adacore.com>
169
170 PR build/25268:
171 * gdbsupport/thread-pool.c (set_thread_name): New function.
172 (thread_pool::set_thread_count): Don't call pthread_setname_np.
173 (thread_pool::thread_function): Call set_thread_name.
174
aac4760f
TT
1752019-12-11 Tom Tromey <tromey@adacore.com>
176
177 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
178 bfd_get_signed_8.
179
d8edc8b7
PW
1802019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
181
182 * NEWS: Document -raw-values option and the related setting commands.
183 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
184 only set it on when /r is given.
185 * valprint.c (value_print_option_defs): New element raw-values.
186 * Makefile.in: Add the new file.
187
cb511130
CB
1882019-12-10 Christian Biesinger <cbiesinger@google.com>
189
190 * gdbsupport/safe-strerror.c: Supress the unused function warning
191 for select_strerror_r.
192
ab7d13f0
CB
1932019-12-10 Christian Biesinger <cbiesinger@google.com>
194
195 * config.in: Regenerate.
196 * configure: Regenerate.
197 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
198 safe_strerror instead of strerror.
199 * gdbsupport/common.m4: Don't check for strerror.
200 * gdbsupport/safe-strerror.c: Support both the glibc version
201 of strerror_r and the XSI version.
202
6c71eb7d
TT
2032019-12-10 Tom Tromey <tromey@adacore.com>
204
205 * ada-typeprint.c (print_choices): Use a single "?".
206 (print_variant_part): Print "?" if the discriminant name
207 is not known.
208
bac7c5cf
GB
2092019-12-10 George Barrett <bob@bob131.so>
210
211 Fix scripted probe breakpoints.
212 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
213 declaration forward.
214 (breakpoint_ops_for_event_location_type)
215 (breakpoint_ops_for_event_location): Add function definitions.
216 (break_command_1, trace_command): Use
217 breakpoint_ops_for_event_location.
218 * breakpoint.h (breakpoint_ops_for_event_location): Add function
219 declarations.
220 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
221 breakpoint_ops_for_event_location.
222 * python/py-breakpoint.c (bppy_init): Use
223 breakpoint_ops_for_event_location.
224
330f1d38
TBA
2252019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
226
227 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
228 when ranking an lvalue argument for an rvalue parameter.
229
b1f0c0b9
WA
2302019-12-08 Wataru Ashihara <wataash@wataash.com>
231
232 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
233 template argument for scoped_restore_tmpl from bool to int.
234
aa2d5a42
KS
2352019-12-07 Keith Seitz <keiths@redhat.com>
236
237 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
238 (build_id_to_debug_bfd): Make static, rewriting to use
239 build_id_to_bfd_suffix.
240 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
241 adding `suffix' parameter. Append SUFFIX to file names
242 when searching for matching files.
243 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
244 (build_id_to_exec_bfd): Likewise.
245 * build-id.h (build_id_to_debug_bfd): Clarify that function
246 searches for BFD of debug info file.
247 (build_id_to_exec_bfd): Declare.
248 * corelow.c: Include build-id.h.
249 (locate_exec_from_corefile_build_id): New function.
250 (core_target_open): If no executable BFD is found,
251 search for a core file BFD using build-id.
252
dfb65191
CB
2532019-12-06 Christian Biesinger <cbiesinger@google.com>
254
255 * bcache.c: Put in namespace gdb.
256 * bcache.h: Likewise.
257 * gdbtypes.c (check_types_worklist): Update.
258 (types_deeply_equal): Update.
259 * macrotab.c (struct macro_table) <bcache>: Update.
260 (new_macro_table): Update.
261 * macrotab.h (struct bcache): Put this forward declaration
262 inside namespace gdb.
263 (new_macro_table): Update.
264 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
265 Update.
266 <macro_cache>: Update.
267 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
268
93e55f0a
TV
2692019-12-06 Tom de Vries <tdevries@suse.de>
270
271 PR symtab/24971
272 * block.c (best_symbol, better_symbol): New function.
273 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
274 decl.
275
06acc08f
TBA
2762019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
277
278 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
279 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
280 for ranking see-through reference cases.
281
e0fad1ea
PW
2822019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
283 * stack.c (faas_command): Check a command is provided.
284 * thread.c (taas_command, tfaas_command): Likewise.
285
908641f5
PW
2862019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
287 * inferior.c (prune_inferiors): Only call delete_inferior,
288 Do not modify the inferior list.
289
b858499d
SM
2902019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
291
292 * c-exp.y: Update calls to lookup_typename,
293 lookup_signed_typename and lookup_unsigned_typename.
294 * c-lang.c (evaluate_subexp_c): Likewise.
295 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
296 Likewise.
297 * eval.c (binop_promote): Likewise.
298 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
299 (lookup_unsigned_typename): Likewise.
300 (lookup_signed_typename): Likewise.
301 * gdbtypes.h (lookup_unsigned_typename): Likewise.
302 (lookup_signed_typename): Likewise.
303 (lookup_typename): Likewise.
304 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
305 lookup_typename, lookup_signed_typename,
306 lookup_unsigned_typename.
307 * m2-exp.y: Likewise.
308 * printcmd.c (printf_wide_c_string): Likewise.
309 (ui_printf): Likewise.
310 * python/py-type.c (typy_lookup_typename): Likewise.
311 * python/py-xmethods.c (python_xmethod_worker::invoke):
312 Likewise.
313 * rust-exp.y: Likewise.
314
3a8fa228
CB
3152019-12-04 Christian Biesinger <cbiesinger@google.com>
316
317 * configure.nat (obsd64): Add missing files x86-nat.o and
318 nat/x86-dregs.o.
319
2dbc041e
TT
3202019-12-04 Tom Tromey <tom@tromey.com>
321
322 * valprint.c (val_print_string): Use metadata_style.
323 * go-valprint.c (print_go_string): Use metadata style.
324 * p-valprint.c (pascal_object_print_static_field): Use metadata
325 style.
326 * cp-valprint.c (cp_print_static_field): Use metadata style.
327
36c8fb93
AB
3282019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
329 Chris January <chris.january@arm.com>
330
331 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
332 tokens.
333 (typebase): New patterns for complex, single/double precision, and
334 single/double complex.
335 (f77_keywords): Change token for complex keyword, and add single,
336 double, and precision keywords.
337
c6170c2c
SM
3382019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
339
340 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
341 "info io_registers".
342
894ecaf4
SM
3432019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
344
345 * regcache.c (cooked_read_test): Initialize thread list of
346 mock_inferior.
347
be155ebb
SM
3482019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
349
350 * aarch64-linux-tdep.c: Remove includes.
351
c577cdd7
SM
3522019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
353
354 * aarch64-tdep.c: Remove includes.
355
610cfd61
SM
3562019-12-04 Simon Marchi <simon.marchi@efficios.com>
357
358 * filtered-iterator.h (filtered_iterator) <operator==,
359 operator!=>: Compare wrapped iterators, not wrapped pointers.
360 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
361 unittests/filtered_iterator-selftests.c.
362 * unittests/filtered_iterator-selftests.c: New file.
363
a05cf17a
TT
3642019-12-04 Tom Tromey <tromey@adacore.com>
365
366 * gdbtypes.c (create_range_type): Inherit endianity
367 from base type.
368
d5a22e77
TT
3692019-12-04 Tom Tromey <tromey@adacore.com>
370
371 * ada-lang.c (decode_constrained_packed_array)
372 (ada_value_assign, value_assign_to_component): Update.
373 * dwarf2loc.c (rw_pieced_value, access_memory)
374 (dwarf2_compile_expr_to_ax): Update.
375 * dwarf2read.c (dwarf2_add_field): Update.
376 * eval.c (evaluate_subexp_standard): Update.
377 * gdbarch.c, gdbarch.h: Rebuild.
378 * gdbarch.sh (bits_big_endian): Remove.
379 * gdbtypes.h (union field_location): Update comment.
380 * target-descriptions.c (make_gdb_type): Update.
381 * valarith.c (value_bit_index): Update.
382 * value.c (struct value) <bitpos>: Update comment.
383 (unpack_bits_as_long, modify_field): Update.
384 * value.h (value_bitpos): Update comment.
385
7ab4a236
TT
3862019-12-04 Tom Tromey <tromey@adacore.com>
387
388 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
389 endian-ness.
390
103a685e
TT
3912019-12-04 Tom Tromey <tromey@adacore.com>
392
393 * dwarf2read.c (dwarf2_init_float_type)
394 (dwarf2_init_complex_target_type): Add byte_order parameter.
395 (read_base_type): Compute byte order earlier.
396 * gdbtypes.c (init_float_type): Add byte_order parameter.
397 * gdbtypes.h (init_float_type): Add byte_order parameter.
398
7a9e9f9f
TT
3992019-12-04 Tom Tromey <tromey@adacore.com>
400
401 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
402
feee869b
TT
4032019-12-04 Tom Tromey <tromey@adacore.com>
404
405 * dwarf2read.c (process_structure_scope): Initialize
406 "discr_offset".
407
c2512106
AB
4082019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
409
410 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
411 add it into the search spec.
412 (parse_max_results_option): New function.
413 (mi_info_functions_or_variables): Parse -max-results flag and pass
414 it to mi_symbol_info.
415 (mi_cmd_symbol_info_modules): Likewise.
416 (mi_cmd_symbol_info_types): Likewise.
417 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
418 return type to bool, change result container into a set, and don't
419 add new results if we have enough already.
420 (global_symbol_searcher::add_matching_msymbols): Change return
421 type to bool, and don't add new results if we have enough already.
422 (sort_search_symbols_remove_dups): Delete.
423 (global_symbol_searcher::search): Early exit from search loop when
424 we have enough results. Use a std::set to collect the results
425 from calling add_matching_symbols.
426 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
427 member function.
428 (global_symbol_searcher) <m_max_search_results>: New member
429 variable.
430 (global_symbol_searcher) <add_matching_symbols>: Update header
431 comment and change return type to bool.
432 (global_symbol_searcher) <add_matching_msymbols>: Update header
433 comment and change return type to bool.
434
f97a63c5
AB
4352019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
436
437 * symtab.c (symbol_search::compare_search_syms): Update header
438 comment.
439 (global_symbol_searcher::is_suitable_msymbol): New function.
440 (global_symbol_searcher::expand_symtabs): New function.
441 (global_symbol_searcher::add_matching_symbols): New function.
442 (global_symbol_searcher::add_matching_msymbols): New function.
443 (global_symbol_searcher::search): Move most of the content
444 into the new functions above, and call them as needed.
445 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
446 function.
447 (global_symbol_searcher) <add_matching_symbols>: New member
448 function.
449 (global_symbol_searcher) <add_matching_msymbols>: New member
450 function.
451 (global_symbol_searcher) <is_suitable_msymbol>: New member
452 function.
453
293b38d6
AB
4542019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
455
456 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
457 -symbol-info-module-variables entries.
458 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
459 (mi_cmd_symbol_info_module_variables): Declare.
460 * mi/mi-symbol-cmds.c
461 (module_symbol_search_iterator): New typedef.
462 (output_module_symbols_in_single_module_and_file): New function.
463 (output_module_symbols_in_single_module): New function.
464 (mi_info_module_functions_or_variables): New function.
465 (mi_cmd_symbol_info_module_functions): New function.
466 (mi_cmd_symbol_info_module_variables): New function.
467 * NEWS: Mention new MI command.
468
4cbd39b2
CB
4692019-12-03 Christian Biesinger <cbiesinger@google.com>
470
471 * bcache.c (hash): Remove.
472 (hash_continue): Remove.
473 * bcache.h (hash): Remove.
474 (hash_continue): Remove.
475 (struct bcache) <ctor>: Update.
476 * psymtab.c (psymbol_hash): Update.
477 * stabsread.c (hashname): Update.
478 * utils.h (fast_hash): Add an argument for a start value,
479 defaulting to zero.
480
82f910ea
PW
4812019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
482 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
483 (destroy_block_symbol_cache): New function.
484 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
485 (resize_symbol_cache): Likewise.
486
de2396d0
TT
4872019-12-02 Tom Tromey <tom@tromey.com>
488
489 * unittests/tui-selftests.c (run_tests): Make conditional.
490 (_initialize_tui_selftest): Make conditional.
491
638d85bc
CB
4922019-12-02 Christian Biesinger <cbiesinger@google.com>
493
494 * aix-thread.c (debug_aix_thread): Change type to bool.
495
7532a164
LM
4962019-12-02 Luis Machado <luis.machado@linaro.org>
497
498 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
499
216a7e6b
AB
5002019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
501
502 * dwarf2read.c (read_tag_string_type): Read the fields required to
503 make a dynamic string, and possibly create a dynamic range for the
504 string.
505 (attr_to_dynamic_prop): Setup is_reference based on the type of
506 attribute being processed.
507 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
508 (resolve_dynamic_array): Rename to...
509 (resolve_dynamic_array_or_string): ...this, update header comment,
510 and accept TYPE_CODE_STRING.
511 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
512
11a8b164
AB
5132019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
514
515 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
516 of its implementation from...
517 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
518 the new function.
519
5bbd8269
AB
5202019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
521
522 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
523 create a range with stride where appropriate.
524 * f-valprint.c: Include 'gdbarch.h'.
525 (f77_print_array_1): Take the stride into account when walking the
526 array. Also convert the stride into addressable units.
527 * gdbtypes.c (create_range_type): Initialise the stride to
528 constant zero.
529 (create_range_type_with_stride): New function, initialise the
530 range as normal, and then setup the stride.
531 (has_static_range): Include the stride here. Also change the
532 return type to bool.
533 (create_array_type_with_stride): Consider the range stride if the
534 array isn't given its own stride.
535 (resolve_dynamic_range): Resolve the stride if needed.
536 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
537 (struct range_bounds) <flag_is_byte_stride>: New member variable.
538 (TYPE_BIT_STRIDE): Define.
539 (TYPE_ARRAY_BIT_STRIDE): Define.
540 (create_range_type_with_stride): Declare.
541 * valarith.c (value_subscripted_rvalue): Take range stride into
542 account when walking the array.
543
82e3b564
TT
5442019-12-01 Tom Tromey <tom@tromey.com>
545
546 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
547 specially.
548
517d261d
TT
5492019-12-01 Tom Tromey <tom@tromey.com>
550
551 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
552 \0.
553 * unittests/tui-selftests.c: New file.
554 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
555
484c9b64
TT
5562019-12-01 Tom Tromey <tom@tromey.com>
557
558 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
559
a2a7af0c
TT
5602019-12-01 Tom Tromey <tom@tromey.com>
561
562 * NEWS: Document new settings.
563 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
564 * tui/tui-win.c (_initialize_tui_win): Add border style
565 observers.
566 * tui/tui-io.h (tui_apply_style): Declare.
567 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
568 longer static.
569 (apply_ansi_escape, tui_set_reverse_mode): Update.
570 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
571 Add "skip_intensity" parameter.
572 <changed>: New member.
573 <do_set_value>: Declare.
574 (tui_border_style, tui_active_border_style): Declare.
575 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
576 globals.
577 (cli_style_option): Initialize "changed".
578 (cli_style_option::do_set_value): New function.
579 (cli_style_option::add_setshow_commands): Add "skip_intensity"
580 parameter. Update.
581 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
582 (_initialize_cli_style): Update. Create TUI border style
583 commands.
584
d1da6b01
TT
5852019-12-01 Tom Tromey <tom@tromey.com>
586
587 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
588 parameter.
589 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
590 parameter.
591 * tui/tui-win.h (compact_source): Declare.
592 * tui/tui-win.c (compact_source): New global.
593 (tui_set_compact_source, tui_show_compact_source): New functions.
594 (_initialize_tui_win): Add "compact-source" setting.
595 * tui/tui-source.c (tui_source_window::set_contents): Handle
596 compact_source setting.
597 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
598 * NEWS: Document new setting.
599
489dbda6
TT
6002019-11-30 Tom Tromey <tom@tromey.com>
601
602 * dwarf2read.c (dwarf2_add_field): Include field offset when
603 computing variant part length.
604
bf498525
PW
6052019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
606 * NEWS: Mention define-prefix. Tell that command names can now
607 contain a . character.
608
be09caf1
PW
6092019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
610
611 * command.h (valid_cmd_char_p): Declare.
612 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
613 the check of valid command char.
614 (find_command_name_length, valid_user_defined_cmd_name_p): Use
615 valid_cmd_char_p.
616 * cli/cli-script.c (validate_comname): Likewise.
617 * completer.c (gdb_completer_command_word_break_characters):
618 Do not remove . from the word break char, update comments.
619 (complete_line_internal_1): Use valid_cmd_char_p.
620 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
621 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
622
c6ac7fc9
PW
6232019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
624
625 * cli/cli-script.c (do_define_command): Ensure a redefined
626 prefix command is kept as a prefix command.
627 (define_prefix_command): New function.
628 (show_user_1): Report user defined prefixes.
629 (_initialize_cli_script): Create the new 'define-prefix' command.
630 Add completers for 'define' and 'document'.
631 * top.c (execute_command): If command is a user-defined prefix only
632 command, report the list of commands for this prefix command.
633
a992a3b0
TBA
6342019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
635
636 * valops.c (find_oload_champ): Improve debug output.
637
e9194a1a
TBA
6382019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
639
640 * valops.c (find_oload_champ): Print part of debug messages
641 before the badness vector is std::move'd.
642
53a008a6
TT
6432019-11-28 Tom Tromey <tom@tromey.com>
644
645 * value.c (creal_internal_fn): Fix comment.
646
bab05c83
TT
6472019-11-28 Tom Tromey <tom@tromey.com>
648
649 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
650 flag_bound_evaluated>: Now unsigned.
651
2522f049
TT
6522019-11-28 Tom Tromey <tom@tromey.com>
653
654 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
655 declare.
656
38b49e22
MS
6572019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
658
659 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
660 debug output.
661 * jit.c (jit_unregister_code): Add debug print to match
662 `jit_register_code`.
663
35125921
CB
6642019-11-27 Christian Biesinger <cbiesinger@google.com>
665
666 * NEWS: Mention the new multithreaded symbol loading.
667
62e77f56
CB
6682019-11-27 Christian Biesinger <cbiesinger@google.com>
669
670 * maint.c (n_worker_threads): Default to 0.
671 (worker_threads_disabled): New function.
672 * maint.h (worker_threads_disabled): New function.
673 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
674 here if worker_threads_disabled () is true.
675 (minimal_symbol_reader::install): Skip all threading if
676 worker_threads_disabled () is true.
677
f29d7f6b
CB
6782019-11-27 Christian Biesinger <cbiesinger@google.com>
679
680 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
681 hash code if possible.
682 (add_minsym_to_demangled_hash_table): Likewise.
683 (minimal_symbol_reader::install): Compute the hash codes for msymbol
684 on the background thread.
685 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
686 Add these fields.
687
e76b2246
CB
6882019-11-27 Christian Biesinger <cbiesinger@google.com>
689
690 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
691 of the mangled name on the background thread.
692 * symtab.c (symbol_set_names): Allow passing in the hash of the
693 linkage_name.
694 * symtab.h (symbol_set_names): Likewise.
695
8d9a2568
KB
6962019-11-27 Kevin Buettner <kevinb@redhat.com>
697
698 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
699 physnames are computed for inherited DIEs.
700
fad03f6e
TT
7012019-11-27 Tom Tromey <tromey@adacore.com>
702
703 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
704 backslashes.
705 * cp-support.c: Remove unnecessary backslashes.
706
43678b0a
CB
7072019-11-27 Christian Biesinger <cbiesinger@google.com>
708
709 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
710 with sym->set_linkage_name.
711 * coffread.c (coff_read_enum_type): Likewise.
712 * mdebugread.c (parse_symbol): Likewise.
713 * stabsread.c (patch_block_stabs): Likewise.
714 (define_symbol): Likewise.
715 (read_enum_type): Likewise.
716 (common_block_end): Likewise.
717 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
718 function.
719 (SYMBOL_SET_LINKAGE_NAME): Remove.
720 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
721 with sym->set_linkage_name.
722
db5960b4
AB
7232019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
724
725 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
726 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
727 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
728 * NEWS: Mention new MI command.
729
7dc42066
AB
7302019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
731
732 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
733 '-symbol-info-types', and '-symbol-info-variables'.
734 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
735 (mi_cmd_symbol_info_types): Declare.
736 (mi_cmd_symbol_info_variables): Declare.
737 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
738 (output_debug_symbol): New function.
739 (output_nondebug_symbol): New function.
740 (mi_symbol_info): New function.
741 (mi_info_functions_or_variables): New function.
742 (mi_cmd_symbol_info_functions): New function.
743 (mi_cmd_symbol_info_types): New function.
744 (mi_cmd_symbol_info_variables): New function.
745 * NEWS: Mention new commands.
746
5f512a7d
AB
7472019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
748
749 * symtab.c (symbol_to_info_string): New function, most content
750 moved from print_symbol_info, but updated to return a std::string.
751 (print_symbol_info): Update to use symbol_to_info_string and print
752 returned string.
753 * symtab.h (symbol_to_info_string): Declare new function.
754
470c0b1c
AB
7552019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * python/python.c (gdbpy_rbreak): Convert to using
758 global_symbol_searcher.
759 * symtab.c (file_matches): Convert return type to bool, change
760 file list to std::vector, update header comment.
761 (search_symbols): Rename to...
762 (global_symbol_searcher::search): ...this and update now its
763 a member function of global_symbol_searcher. Take account of the
764 changes to file_matches.
765 (symtab_symbol_info): Convert to using global_symbol_searcher.
766 (rbreak_command): Likewise.
767 (search_module_symbols): Likewise.
768 * symtab.h (enum symbol_search): Update comment.
769 (search_symbols): Remove declaration.
770 (class global_symbol_searcher): New class.
771
57357d9d
TT
7722019-11-26 Tom Tromey <tromey@adacore.com>
773
774 * cp-support.c (_initialize_cp_support): Conditionally initialize
775 gdb_demangle_attempt_core_dump.
776
3ea16160
TT
7772019-11-26 Tom Tromey <tom@tromey.com>
778
779 * python/py-function.c (fnpy_init): Update.
780 * value.h (add_internal_function): Adjust declaration.
781 * value.c (function_destroyer): Remove.
782 (do_add_internal_function): Don't set destroyer or copy name.
783 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
784 Set name_allocated.
785 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
786 (cmdpy_init): Set name_allocated.
787 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
788 member.
789 (~cmd_list_element): Free "name" if needed.
790
1a6d41c6
TT
7912019-11-26 Tom Tromey <tom@tromey.com>
792
793 * value.h (add_internal_function): Add new overload. Move
794 documentation from value.h.
795 * value.c (do_add_internal_function): New function.
796 (add_internal_function): Use it. Add new overload.
797 (function_destroyer): Don't free doc.
798 * python/py-function.c (fnpy_init): Update.
799
8318f3c3
TT
8002019-11-26 Tom Tromey <tom@tromey.com>
801
802 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
803 (cmdpy_init): Set "doc_allocated".
804
4da8c3a8
TT
8052019-11-26 Tom Tromey <tom@tromey.com>
806
807 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
808 name of worker thread.
809 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
810 pthread_setname_np.
811 * configure, config.in: Rebuild.
812
971db5e2
TT
8132019-11-26 Tom Tromey <tom@tromey.com>
814
815 * python/python.c (class gdbpy_gil): New.
816 (struct gdbpy_event): Add constructor, destructor, operator().
817 (gdbpy_post_event): Use run_on_main_thread.
818 (gdbpy_initialize_events): Remove.
819 (do_start_initialization): Update.
820
22138db6
TT
8212019-11-26 Tom Tromey <tom@tromey.com>
822
823 * NEWS: Add entry.
824 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
825 commands. Call update_thread_pool_size.
826 (update_thread_pool_size, maintenance_set_worker_threads): New
827 functions.
828 (n_worker_threads): New global.
829
d55c9a68
TT
8302019-11-26 Christian Biesinger <cbiesinger@google.com>
831 Tom Tromey <tom@tromey.com>
832
833 * minsyms.c (minimal_symbol_reader::install): Use
834 parallel_for_each.
835 * gdbsupport/parallel-for.h: New file.
836 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
837
a0b57563
CB
8382019-11-26 Christian Biesinger <cbiesinger@google.com>
839 Tom Tromey <tom@tromey.com>
840
841 * gdbsupport/thread-pool.h: New file.
842 * gdbsupport/thread-pool.c: New file.
843 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
844 (HFILES_NO_SRCDIR): Add thread-pool.h.
845
3b3978bc
TT
8462019-11-26 Tom Tromey <tom@tromey.com>
847
848 * event-top.h (thread_local_segv_handler): Declare.
849 * event-top.c (thread_local_segv_handler): New global.
850 (install_handle_sigsegv, handle_sigsegv): New functions.
851 (async_init_signals): Install SIGSEGV handler.
852 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
853 thread-local.
854 (report_failed_demangle): New function.
855 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
856 handler-setting code, instead use segv_handler. Run warning code
857 on main thread.
858
9411c49e
TT
8592019-11-26 Tom Tromey <tom@tromey.com>
860
861 * run-on-main-thread.c: New file.
862 * run-on-main-thread.h: New file.
863 * unittests/main-thread-selftests.c: New file.
864 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
865 main-thread-selftests.c.
866 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
867 (COMMON_SFILES): Add run-on-main-thread.c.
868
c3efb965
TT
8692019-11-26 Tom Tromey <tom@tromey.com>
870
871 * main.c (setup_alternate_signal_stack): Remove.
872 (captured_main_1): Use gdb::alternate_signal_stack.
873 * gdbsupport/alt-stack.h: New file.
874
21987b9c
TT
8752019-11-26 Tom Tromey <tom@tromey.com>
876
877 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
878 Remove comment.
879 (save_original_signals_state, restore_original_signals_state): Use
880 gdb_sigmask.
881 * linux-nat.c (block_child_signals, restore_child_signals_mask)
882 (_initialize_linux_nat): Use gdb_sigmask.
883 * guile/guile.c (_initialize_guile): Use block_signals.
884 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
885 * gdbsupport/gdb-sigmask.h: New file.
886 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
887 * cp-support.c (gdb_demangle): Use gdb_sigmask.
888 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
889 pthread_sigmask.
890 * configure, config.in: Rebuild.
891 * gdbsupport/block-signals.h: New file.
892
5e030278
TT
8932019-11-26 Tom Tromey <tom@tromey.com>
894
895 * acinclude.m4: Include ax_pthread.m4.
896 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
897 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
898 (CLIBS): Use PTHREAD_LIBS.
899 (aclocal_m4_deps): Add ax_pthread.m4.
900 * config.in, configure: Rebuild.
901 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
902
5a79c107
TT
9032019-11-26 Tom Tromey <tom@tromey.com>
904
905 * symtab.h (struct minimal_symbol) <name_set>: New member.
906 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
907 Don't call symbol_set_names.
908 (minimal_symbol_reader::install): Call symbol_set_names.
909
aa369509
PW
9102019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
911
912 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
913 restore_active_ext_lang, as GIL is needed for (indirectly)
914 called PyOS_InterruptOccurred.
915
cadc9cb8
SM
9162019-11-26 Simon Marchi <simon.marchi@efficios.com>
917
918 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
919 definition.
920
d04afd58
SM
9212019-11-26 Simon Marchi <simon.marchi@efficios.com>
922
923 * remote-sim.c (simulator_command): Make static, remove
924 declaration.
925
dd694d77
SM
9262019-11-26 Simon Marchi <simon.marchi@efficios.com>
927
928 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
929 static.
930 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
931 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
932 (main): Likewise.
933 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
934 (main): Likewise.
935 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
936 (main): Likewise.
937 * unittests/basic_string_view/element_access/char/1.cc (test01):
938 Likewise.
939 (main): Likewise.
940 * unittests/basic_string_view/element_access/char/empty.cc (main):
941 Likewise.
942 * unittests/basic_string_view/element_access/char/front_back.cc
943 (test01): Likewise.
944 (main): Likewise.
945 * unittests/basic_string_view/inserters/char/2.cc (test05):
946 Likewise.
947 (main): Likewise.
948 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
949 (test01): Likewise.
950 (main): Likewise.
951 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
952 (test01): Likewise.
953 (main): Likewise.
954 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
955 Likewise.
956 * unittests/basic_string_view/operations/compare/char/1.cc
957 (test01): Likewise.
958 (main): Likewise.
959 * unittests/basic_string_view/operations/compare/char/13650.cc
960 (test01): Likewise.
961 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
962 Likewise.
963 (main): Likewise.
964 * unittests/basic_string_view/operations/data/char/1.cc (test01):
965 Likewise.
966 (main): Likewise.
967 * unittests/basic_string_view/operations/find/char/1.cc (test01):
968 Likewise.
969 (main): Likewise.
970 * unittests/basic_string_view/operations/find/char/2.cc (test02):
971 Likewise.
972 (main): Likewise.
973 * unittests/basic_string_view/operations/find/char/3.cc (test03):
974 Likewise.
975 (main): Likewise.
976 * unittests/basic_string_view/operations/find/char/4.cc (main):
977 Likewise.
978 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
979 Likewise.
980 (main): Likewise.
981 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
982 Likewise.
983 (main): Likewise.
984 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
985 Likewise.
986 (main): Likewise.
987 * unittests/basic_string_view/operations/substr/char/1.cc
988 (test01): Likewise.
989 (main): Likewise.
990 * unittests/basic_string_view/operators/char/2.cc (main):
991 Likewise.
992 * unittests/optional/assignment/1.cc (test): Likewise.
993 * unittests/optional/assignment/2.cc (test): Likewise.
994 * unittests/optional/assignment/3.cc (test): Likewise.
995 * unittests/optional/assignment/4.cc (test): Likewise.
996 * unittests/optional/assignment/5.cc (test): Likewise.
997 * unittests/optional/assignment/6.cc (test): Likewise.
998 * unittests/optional/assignment/7.cc (test): Likewise.
999 * unittests/optional/cons/copy.cc (test): Likewise.
1000 * unittests/optional/cons/default.cc (test): Likewise.
1001 * unittests/optional/cons/move.cc (test): Likewise.
1002 * unittests/optional/cons/value.cc (test): Likewise.
1003 * unittests/optional/in_place.cc (test): Likewise.
1004 * unittests/optional/observers/1.cc (test): Likewise.
1005 * unittests/optional/observers/2.cc (test): Likewise.
1006
3b5c1d49
SM
10072019-11-26 Simon Marchi <simon.marchi@efficios.com>
1008
1009 * tui-win.h (tui_set_var_cmd): Remove.
1010 * tui-win.c (tui_set_var_cmd): Make static.
1011
adce99fe
SM
10122019-11-26 Simon Marchi <simon.marchi@efficios.com>
1013
1014 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1015 rbreak_command_wrapper): Remove.
1016 * symtab.c (rbreak_command_wrapper): Remove.
1017
fe3adccf
SM
10182019-11-26 Simon Marchi <simon.marchi@efficios.com>
1019
1020 * inferior.h (info_terminal_command): Remove declaration.
1021 * inflow.c (info_terminal_command): Make static.
1022
b926335f
SM
10232019-11-26 Simon Marchi <simon.marchi@efficios.com>
1024
1025 * inferior.c (exit_inferior_silent): Remove.
1026
b62f6f54
SM
10272019-11-26 Simon Marchi <simon.marchi@efficios.com>
1028
1029 * dictionary.c (dict_empty, mdict_empty): Remove.
1030 * dictionary.c (mdict_empty): Remove.
1031
cb8c24b6
SM
10322019-11-26 Simon Marchi <simon.marchi@efficios.com>
1033
1034 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1035 (arc_insn_get_memory_offset): Likewise.
1036 (arc_insn_dump): Likewise.
1037 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1038 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1039 * dictionary.c (dict_iterator_next): Likewise.
1040 (dict_iter_match_first): Likewise.
1041 (dict_iter_match_next): Likewise.
1042 * f-lang.c (evaluate_subexp_f): Likewise.
1043 * hppa-tdep.c (hppa_read_pc): Likewise.
1044 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1045 * parse.c (write_exp_elt_msym): Likewise.
1046 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1047 * remote.c (remote_packet_size): Likewise.
1048 (remote_notif_stop_parse): Likewise.
1049 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1050 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1051 * source.c (prepare_path_for_appending): Likewise.
1052 * sparc64-linux-tdep.c
1053 (sparc64_linux_handle_segmentation_fault); Likewise.
1054 * stack.c (frame_selection_by_function_completer): Likewise.
1055
781597ff
SM
10562019-11-26 Simon Marchi <simon.marchi@efficios.com>
1057
1058 * completer.c (set_gdb_completion_word_break_characters):
1059 Remove.
1060
23baa4cc
SM
10612019-11-26 Simon Marchi <simon.marchi@efficios.com>
1062
1063 * dwarf-index-write.c: Include dwarf-index-write.h.
1064 * mi/mi-interp.c: Include mi/mi-interp.h.
1065
23767560
SM
10662019-11-26 Simon Marchi <simon.marchi@efficios.com>
1067
1068 * aarch32-tdep.c: Include aarch32-tdep.h.
1069 * aarch32-tdep.h: Forward-declare struct target_desc.
1070
6d91ce9a
CB
10712019-11-26 Christian Biesinger <cbiesinger@google.com>
1072
1073 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1074 strerror.
1075 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1076 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1077
3cf2f237
TV
10782019-11-25 Tom de Vries <tdevries@suse.de>
1079
1080 * contrib/words.sh: Add -c option.
1081
5b89c67a
CB
10822019-11-25 Christian Biesinger <cbiesinger@google.com>
1083
1084 * solib.c (solib_find_1): Change int to bool.
1085 (exec_file_find): Change int to bool.
1086 (solib_find): Change int to bool.
1087 (solib_read_symbols): Change int to bool.
1088 (solib_used): Change int to bool.
1089 (solib_add): Change int to bool.
1090 (info_sharedlibrary_command): Change int to bool.
1091 (solib_contains_address_p): Change int to bool.
1092 (solib_keep_data_in_core): Change int to bool.
1093 (in_solib_dynsym_resolve_code): Change int to bool.
1094 (reload_shared_libraries_1): Change int to bool.
1095 (gdb_sysroot_changed): Change int to bool.
1096 * solib.h (solib_read_symbols): Change int to bool.
1097 (solib_contains_address_p): Change int to bool.
1098 (solib_keep_data_in_core): Change int to bool.
1099 (in_solib_dynsym_resolve_code): Change int to bool.
1100 (libpthread_name_p): Change int to bool.
1101
6cc8564b
LM
11022019-11-25 Luis Machado <luis.machado@linaro.org>
1103
1104 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1105 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1106 (remote_packet_max_chars): New static global.
1107 (show_remote_packet_max_chars): New function.
1108 (remote_target::putpkt_binary): Adjust to use new
1109 remote_packet_max_chars option.
1110 (remote_target::getpkt_or_notif_sane_1): Likewise.
1111 (_initialize_remote): Register new remote-packet-max-chars option.
1112
a7cdaa91
SM
11132019-11-24 Simon Marchi <simon.marchi@efficios.com>
1114
1115 * m68k-linux-nat.c: Include gdbarch.h.
1116
26abc753
TT
11172019-11-24 Tom Tromey <tom@tromey.com>
1118
1119 * symfile.c (read_symbols): Update.
1120 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1121 bool.
1122 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1123 (psym_lookup_symbol, psym_find_last_source_symtab)
1124 (psym_forget_cached_source_info, psym_print_stats)
1125 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1126 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1127 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1128 (psym_find_compunit_symtab_by_address)
1129 (maintenance_print_psymbols, maintenance_info_psymtabs)
1130 (maintenance_check_psymtabs): Update.
1131 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1132 bool.
1133
012fc909
TT
11342019-11-22 Tom Tromey <tom@tromey.com>
1135
1136 * observable.h: Update comments.
1137
c83d8d32
TT
11382019-11-22 Tom Tromey <tromey@adacore.com>
1139
1140 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1141 (print_ada_task_info): Don't try to fetch thread id if task is not
1142 alive.
1143
987012b8
CB
11442019-11-22 Christian Biesinger <cbiesinger@google.com>
1145
1146 * ada-exp.y: Update.
1147 * ada-lang.c (sort_choices): Update.
1148 (ada_print_symbol_signature): Update.
1149 (resolve_subexp): Update.
1150 (ada_parse_renaming): Update.
1151 (ada_read_renaming_var_value): Update.
1152 (lesseq_defined_than): Update.
1153 (remove_extra_symbols): Update.
1154 (remove_irrelevant_renamings): Update.
1155 (ada_add_block_symbols): Update.
1156 (ada_collect_symbol_completion_matches): Update.
1157 (ada_is_renaming_symbol): Update.
1158 (aggregate_assign_from_choices): Update.
1159 (ada_evaluate_subexp): Update.
1160 (ada_has_this_exception_support): Update.
1161 (ada_is_non_standard_exception_sym): Update.
1162 (ada_add_exceptions_from_frame): Update.
1163 (ada_add_global_exceptions): Update.
1164 (ada_print_subexp): Update.
1165 * ax-gdb.c (gen_var_ref): Update.
1166 (gen_maybe_namespace_elt): Update.
1167 (gen_expr_for_cast): Update.
1168 (gen_expr): Update.
1169 * block.h: Update.
1170 * blockframe.c (find_pc_partial_function): Update.
1171 * breakpoint.c (print_breakpoint_location): Update.
1172 (update_static_tracepoint): Update.
1173 * btrace.c (ftrace_print_function_name): Update.
1174 (ftrace_function_switched): Update.
1175 * buildsym.c (find_symbol_in_list): Update.
1176 * c-exp.y: Update.
1177 * c-typeprint.c (c_print_typedef): Update.
1178 (c_type_print_template_args): Update.
1179 * cli/cli-cmds.c (edit_command): Update.
1180 (list_command): Update.
1181 (print_sal_location): Update.
1182 * coffread.c (patch_opaque_types): Update.
1183 (process_coff_symbol): Update.
1184 (coff_read_enum_type): Update.
1185 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1186 (convert_one_symbol): Update.
1187 (hash_symname): Update.
1188 (eq_symname): Update.
1189 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1190 * compile/compile-cplus-types.c (debug_print_scope): Update.
1191 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1192 * compile/compile-object-load.c (get_out_value_type): Update.
1193 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1194 (search_symbol_list): Update.
1195 (cp_lookup_symbol_imports_or_template): Update.
1196 * cp-support.c (overload_list_add_symbol): Update.
1197 * ctfread.c (psymtab_to_symtab): Update.
1198 * dbxread.c (cp_set_block_scope): Update.
1199 * dictionary.c (iter_match_first_hashed): Update.
1200 (iter_match_next_hashed): Update.
1201 (insert_symbol_hashed): Update.
1202 (iter_match_next_linear): Update.
1203 * dictionary.h: Update.
1204 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1205 (locexpr_describe_location_piece): Update.
1206 (locexpr_describe_location_1): Update.
1207 (locexpr_generate_c_location): Update.
1208 (loclist_describe_location): Update.
1209 (loclist_generate_c_location): Update.
1210 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1211 (read_func_scope): Update.
1212 (process_enumeration_scope): Update.
1213 (new_symbol): Update.
1214 (dwarf2_const_value): Update.
1215 (dwarf2_symbol_mark_computed): Update.
1216 * eval.c (evaluate_funcall): Update.
1217 (evaluate_subexp_standard): Update.
1218 * expprint.c (print_subexp_standard): Update.
1219 (dump_subexp_body_standard): Update.
1220 * f-valprint.c (info_common_command_for_block): Update.
1221 * findvar.c (get_hosting_frame): Update.
1222 (default_read_var_value): Update.
1223 * go-lang.c (go_symbol_package_name): Update.
1224 * guile/scm-block.c (bkscm_print_block_smob): Update.
1225 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1226 (gdbscm_symbol_name): Update.
1227 (gdbscm_symbol_linkage_name): Update.
1228 (gdbscm_symbol_print_name): Update.
1229 * infcall.c (get_function_name): Update.
1230 * infcmd.c (jump_command): Update.
1231 (finish_command): Update.
1232 * infrun.c (insert_exception_resume_breakpoint): Update.
1233 * linespec.c (canonicalize_linespec): Update.
1234 (create_sals_line_offset): Update.
1235 (convert_linespec_to_sals): Update.
1236 (complete_label): Update.
1237 (find_label_symbols_in_block): Update.
1238 * m2-typeprint.c (m2_print_typedef): Update.
1239 * mdebugread.c (mdebug_reg_to_regnum): Update.
1240 (parse_symbol): Update.
1241 (mylookup_symbol): Update.
1242 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1243 (list_args_or_locals): Update.
1244 * objc-lang.c (compare_selectors): Update.
1245 (info_selectors_command): Update.
1246 (compare_classes): Update.
1247 (info_classes_command): Update.
1248 (find_imps): Update.
1249 * p-typeprint.c (pascal_print_typedef): Update.
1250 * printcmd.c (build_address_symbolic): Update.
1251 (info_address_command): Update.
1252 (print_variable_and_value): Update.
1253 * python/py-framefilter.c (extract_sym): Update.
1254 (py_print_single_arg): Update.
1255 * python/py-symbol.c (sympy_str): Update.
1256 (sympy_get_name): Update.
1257 (sympy_get_linkage_name): Update.
1258 * python/python.c (gdbpy_rbreak): Update.
1259 * record-btrace.c (btrace_get_bfun_name): Update.
1260 (btrace_call_history): Update.
1261 * rust-lang.c (rust_print_typedef): Update.
1262 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1263 * stabsread.c (stab_reg_to_regnum): Update.
1264 (define_symbol): Update.
1265 (read_enum_type): Update.
1266 (common_block_end): Update.
1267 (cleanup_undefined_types_1): Update.
1268 (scan_file_globals): Update.
1269 * stack.c (print_frame_arg): Update.
1270 (print_frame_args): Update.
1271 (find_frame_funname): Update.
1272 (info_frame_command_core): Update.
1273 (iterate_over_block_locals): Update.
1274 (print_block_frame_labels): Update.
1275 (do_print_variable_and_value): Update.
1276 (iterate_over_block_arg_vars): Update.
1277 (return_command): Update.
1278 * symmisc.c (dump_symtab_1): Update.
1279 (print_symbol): Update.
1280 * symtab.c (eq_symbol_entry): Update.
1281 (symbol_cache_dump): Update.
1282 (lookup_language_this): Update.
1283 (find_pc_sect_line): Update.
1284 (skip_prologue_sal): Update.
1285 (symbol_search::compare_search_syms): Update.
1286 (treg_matches_sym_type_name): Update.
1287 (search_symbols): Update.
1288 (print_symbol_info): Update.
1289 (rbreak_command): Update.
1290 (completion_list_add_symbol): Update.
1291 (find_gnu_ifunc): Update.
1292 (get_symbol_address): Update.
1293 (search_module_symbols): Update.
1294 (info_module_subcommand): Update.
1295 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1296 (SYMBOL_LINKAGE_NAME): Remove.
1297 (SYMBOL_DEMANGLED_NAME): Remove.
1298 (SYMBOL_PRINT_NAME): Remove.
1299 (SYMBOL_SEARCH_NAME): Remove.
1300 * tracepoint.c (set_traceframe_context): Update.
1301 (validate_actionline): Update.
1302 (collection_list::collect_symbol): Update.
1303 (encode_actions_1): Update.
1304 (info_scope_command): Update.
1305 (print_one_static_tracepoint_marker): Update.
1306 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1307 * valops.c (address_of_variable): Update.
1308 (find_overload_match): Update.
1309 (find_oload_champ): Update.
1310
c9d95fa3
CB
13112019-11-22 Christian Biesinger <cbiesinger@google.com>
1312
1313 * ada-lang.c (ada_lookup_simple_minsym): Update.
1314 (ada_collect_symbol_completion_matches): Update.
1315 * ada-tasks.c (read_atcb): Update.
1316 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1317 (amd64_windows_skip_trampoline_code): Update.
1318 * arm-tdep.c (skip_prologue_function): Update.
1319 (arm_skip_stack_protector): Update.
1320 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1321 (arm_wince_skip_main_prologue): Update.
1322 * ax-gdb.c (gen_expr): Update.
1323 * block.c (call_site_for_pc): Update.
1324 * blockframe.c (find_pc_partial_function): Update.
1325 * breakpoint.c (set_breakpoint_location_function): Update.
1326 * btrace.c (ftrace_print_function_name): Update.
1327 (ftrace_function_switched): Update.
1328 * c-valprint.c (print_unpacked_pointer): Update.
1329 * coffread.c (coff_symfile_read): Update.
1330 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1331 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1332 * dwarf-index-write.c (write_psymbols): Update.
1333 * dwarf2loc.c (call_site_to_target_addr): Update.
1334 (func_verify_no_selftailcall): Update.
1335 (tailcall_dump): Update.
1336 (call_site_find_chain_1): Update.
1337 (dwarf_expr_reg_to_entry_parameter): Update.
1338 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1339 * eval.c (evaluate_funcall): Update.
1340 (evaluate_subexp_standard): Update.
1341 (evaluate_subexp_for_sizeof): Update.
1342 * expprint.c (print_subexp_standard): Update.
1343 (dump_subexp_body_standard): Update.
1344 * frame.c (get_prev_frame_always_1): Update.
1345 * frv-tdep.c (frv_skip_main_prologue): Update.
1346 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1347 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1348 (gnuv3_get_typename_from_type_info): Update.
1349 (gnuv3_skip_trampoline): Update.
1350 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1351 * i386-tdep.c (i386_skip_main_prologue): Update.
1352 (i386_pe_skip_trampoline_code): Update.
1353 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1354 * infcall.c (get_function_name): Update.
1355 * linespec.c (minsym_found): Update.
1356 * linux-fork.c (info_checkpoints_command): Update.
1357 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1358 (m32c_m16c_pointer_to_address): Update.
1359 * maint.c (maintenance_translate_address): Update.
1360 * minsyms.c (add_minsym_to_hash_table): Update.
1361 (add_minsym_to_demangled_hash_table): Update.
1362 (lookup_minimal_symbol_mangled): Update.
1363 (lookup_minimal_symbol_demangled): Update.
1364 (lookup_minimal_symbol_linkage): Update.
1365 (lookup_minimal_symbol_text): Update.
1366 (lookup_minimal_symbol_by_pc_name): Update.
1367 (minimal_symbol_is_less_than): Update.
1368 (compact_minimal_symbols): Update.
1369 (build_minimal_symbol_hash_tables): Update.
1370 (find_solib_trampoline_target): Update.
1371 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1372 (mips_skip_pic_trampoline_code): Update.
1373 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1374 * objc-lang.c (info_selectors_command): Update.
1375 (info_classes_command): Update.
1376 (find_methods): Update.
1377 (find_imps): Update.
1378 * p-valprint.c (pascal_val_print): Update.
1379 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1380 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1381 * printcmd.c (build_address_symbolic): Update.
1382 (info_symbol_command): Update.
1383 * psymtab.c (psymbol_name_matches): Update.
1384 (match_partial_symbol): Update.
1385 (lookup_partial_symbol): Update.
1386 (print_partial_symbols): Update.
1387 (sort_pst_symbols): Update.
1388 (maintenance_check_psymtabs): Update.
1389 * python/py-framefilter.c (py_print_frame): Update.
1390 * python/python.c (gdbpy_rbreak): Update.
1391 * record-btrace.c (btrace_get_bfun_name): Update.
1392 (btrace_call_history): Update.
1393 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1394 (rs6000_skip_trampoline_code): Update.
1395 * sol-thread.c (info_cb): Update.
1396 * stabsread.c (scan_file_globals): Update.
1397 * stack.c (find_frame_funname): Update.
1398 (info_frame_command_core): Update.
1399 * symmisc.c (dump_msymbols): Update.
1400 * symtab.c (symbol_natural_name): Rename to..,
1401 (general_symbol_info::natural_name): ...this.
1402 (symbol_demangled_name): Rename to...
1403 (general_symbol_info::demangled_name): ...this.
1404 (symbol_search_name): Rename to...
1405 (general_symbol_info::search_name): ...this.
1406 (symbol_matches_search_name): Update.
1407 (find_pc_sect_line): Update.
1408 (skip_prologue_sal): Update.
1409 (search_symbols): Update.
1410 (print_msymbol_info): Update.
1411 (rbreak_command): Update.
1412 (completion_list_add_msymbol): Update.
1413 (completion_list_objc_symbol): Update.
1414 (get_msymbol_address): Update.
1415 * symtab.h (struct general_symbol_info): Add member functions
1416 natural_name (), linkage_name (), print_name (), demangled_name (),
1417 and search_name ().
1418 (SYMBOL_NATURAL_NAME): Update.
1419 (symbol_natural_name): Move to a member function on general_symbol_info.
1420 (SYMBOL_DEMANGLED_NAME): Update.
1421 (symbol_demangled_name): Move to a member function on
1422 general_symbol_info.
1423 (SYMBOL_SEARCH_NAME): Update.
1424 (symbol_search_name): Move to a member function on general_symbol_info.
1425 (MSYMBOL_NATURAL_NAME): Remove.
1426 (MSYMBOL_LINKAGE_NAME): Remove.
1427 (MSYMBOL_PRINT_NAME): Remove.
1428 (MSYMBOL_DEMANGLED_NAME): Remove.
1429 (MSYMBOL_SEARCH_NAME): Remove.
1430 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1431
f8bab2d6
CB
14322019-11-22 Christian Biesinger <cbiesinger@google.com>
1433
1434 * symtab.c (create_demangled_names_hash): Use per_bfd->
1435 minimal_symbol_count for computing the initial size, if greater
1436 than our default size.
1437
85e7588d
TV
14382019-11-22 Tom de Vries <tdevries@suse.de>
1439
1440 * contrib/words.sh: Improve words extraction.
1441
f6180073
TV
14422019-11-22 Tom de Vries <tdevries@suse.de>
1443
1444 * contrib/words.sh: Combine sed invocations.
1445
f10ffa41
CB
14462019-11-21 Christian Biesinger <cbiesinger@google.com>
1447
1448 * Makefile.in: Update.
1449 * demangle.c: Rename to...
1450 * gdb-demangle.c: ..this.
1451 (is_cplus_marker): Change return type to bool.
1452 (_initialize_demangler): Rename to...
1453 (_initialize_gdb_demangle): ...this.
1454 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1455 * symtab.h (demangle): Remove declaration; instead include
1456 gdb-demangle.h.
1457
6ba18521
TT
14582019-11-21 Tom Tromey <tromey@adacore.com>
1459
1460 * gdbsupport/format.c (format_pieces): Parse %I64d.
1461 * unittests/format_pieces-selftests.c (test_windows_formats): New
1462 function.
1463 (run_tests): Call it.
1464
34877895
PJ
14652019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1466
1467 Byte reverse display of variables with DW_END_big, DW_END_little
1468 (DW_AT_endianity) dwarf attributes if different than the native
1469 byte order.
1470 * ada-lang.c (ada_value_binop):
1471 Use type_byte_order instead of gdbarch_byte_order.
1472 * ada-valprint.c (printstr):
1473 (ada_val_print_string):
1474 * ada-lang.c (value_pointer):
1475 (ada_value_binop):
1476 Use type_byte_order instead of gdbarch_byte_order.
1477 * c-lang.c (c_get_string):
1478 Use type_byte_order instead of gdbarch_byte_order.
1479 * c-valprint.c (c_val_print_array):
1480 Use type_byte_order instead of gdbarch_byte_order.
1481 * cp-valprint.c (cp_print_class_member):
1482 Use type_byte_order instead of gdbarch_byte_order.
1483 * dwarf2loc.c (rw_pieced_value):
1484 Use type_byte_order instead of gdbarch_byte_order.
1485 * dwarf2read.c (read_base_type): Handle DW_END_big,
1486 DW_END_little
1487 * f-lang.c (f_get_encoding):
1488 Use type_byte_order instead of gdbarch_byte_order.
1489 * findvar.c (default_read_var_value):
1490 Use type_byte_order instead of gdbarch_byte_order.
1491 * gdbtypes.c (check_types_equal):
1492 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1493 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1494 and TYPE_ENDIANITY_LITTLE if set.
1495 (type_byte_order): new function.
1496 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1497 (struct main_type) <flag_endianity_not_default>:
1498 New field.
1499 (type_byte_order): New function.
1500 * infcmd.c (default_print_one_register_info):
1501 Use type_byte_order instead of gdbarch_byte_order.
1502 * p-lang.c (pascal_printstr):
1503 Use type_byte_order instead of gdbarch_byte_order.
1504 * p-valprint.c (pascal_val_print):
1505 Use type_byte_order instead of gdbarch_byte_order.
1506 * printcmd.c (print_scalar_formatted):
1507 Use type_byte_order instead of gdbarch_byte_order.
1508 * solib-darwin.c (darwin_current_sos):
1509 Use type_byte_order instead of gdbarch_byte_order.
1510 * solib-svr4.c (solib_svr4_r_ldsomap):
1511 Use type_byte_order instead of gdbarch_byte_order.
1512 * stap-probe.c (stap_modify_semaphore):
1513 Use type_byte_order instead of gdbarch_byte_order.
1514 * target-float.c (target_float_same_format_p):
1515 Use type_byte_order instead of gdbarch_byte_order.
1516 * valarith.c (scalar_binop):
1517 (value_bit_index):
1518 Use type_byte_order instead of gdbarch_byte_order.
1519 * valops.c (value_cast):
1520 Use type_byte_order instead of gdbarch_byte_order.
1521 * valprint.c (generic_emit_char):
1522 (generic_printstr):
1523 (val_print_string):
1524 Use type_byte_order instead of gdbarch_byte_order.
1525 * value.c (unpack_long):
1526 (unpack_bits_as_long):
1527 (unpack_value_bitfield):
1528 (modify_field):
1529 (pack_long):
1530 (pack_unsigned_long):
1531 Use type_byte_order instead of gdbarch_byte_order.
1532 * findvar.c (unsigned_pointer_to_address):
1533 (signed_pointer_to_address):
1534 (unsigned_address_to_pointer):
1535 (address_to_signed_pointer):
1536 (default_read_var_value):
1537 (default_value_from_register):
1538 Use type_byte_order instead of gdbarch_byte_order.
1539 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1540 Use type_byte_order instead of gdbarch_byte_order.
1541 * riscv-tdep.c (riscv_print_one_register_info):
1542 Use type_byte_order instead of gdbarch_byte_order.
1543
87fb00ea
SM
15442019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1545
1546 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1547 (current_ui_gdb_stdin_ptr): Likewise.
1548 (current_ui_gdb_stderr_ptr): Likewise.
1549 (current_ui_gdb_stdlog_ptr): Likewise.
1550 (current_ui_current_uiout_ptr): Likewise.
1551 (gen_ret_current_ui_field_ptr): Remove.
1552
65d1cd5f
TV
15532019-11-21 Tom de Vries <tdevries@suse.de>
1554
1555 PR gdb/24956
1556 * cli/cli-script.c (execute_control_command): Only switch to
1557 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1558
9f6ad286
TT
15592019-11-19 Tom Tromey <tom@tromey.com>
1560
1561 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1562 Now static. Change type of "name".
1563 (tui_set_win_height_command): Don't copy "arg".
1564 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1565 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1566
435d3d88
AT
15672019-11-19 Ali Tamur <tamur@google.com>
1568
1569 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1570 "if (attr != nullptr)".
1571 (dwarf2_find_base_address): Likewise.
1572 (dwarf2_build_include_psymtabs): Likewise.
1573 (read_cutu_die_from_dwo): Likewise.
1574 (read_func_scope): Likewise.
1575 (read_call_site_scope): Likewise.
1576 (dwarf2_get_pc_bounds): Likewise.
1577 (dwarf2_record_block_ranges): Likewise.
1578 (dwarf2_add_field): Likewise.
1579 (dwarf2_add_member_fn): Likewise.
1580 (read_structure_type): Likewise.
1581 (read_enumeration_type): Likewise.
1582 (read_array_type): Likewise.
1583 (read_array_order): Likewise.
1584 (read_set_type): Likewise.
1585 (read_common_block): Likewise.
1586 (read_tag_reference_type): Likewise.
1587 (read_tag_string_type): Likewise.
1588 (read_subroutine_type): Likewise.
1589 (read_base_type): Likewise.
1590 (read_subrange_type): Likewise.
1591 (new_symbol): Likewise.
1592 (prepare_one_comp_unit): Likewise.
1593
c9739b6a
TT
15942019-11-19 Tom Tromey <tromey@adacore.com>
1595
1596 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1597 result in error when DebugActiveProcess fails.
1598
494409bb
SDJ
15992019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1600 Pedro Alves <palves@redhat.com>
1601
1602 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1603 * target.c (target_stack::push): Call 'unpush' if there's a
1604 target on top of the stack.
1605
2e953aca
PW
16062019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1607
1608 * python/py-block.c (blpy_dealloc): Call tp_free.
1609 (blpy_block_syms_dealloc): Likewise.
1610 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1611 * python/py-inferior.c (infpy_dealloc): Likewise.
1612 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1613 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1614 * python/py-symbol.c (sympy_dealloc): Likewise.
1615 * python/py-symtab.c (stpy_dealloc): Likewise.
1616 * python/py-type.c (typy_iterator_dealloc): Likewise.
1617
6edc43ec
CB
16182019-11-18 Christian Biesinger <cbiesinger@google.com>
1619
1620 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1621 constructor instead of using a class initializer.
1622
cd850b40
CB
16232019-11-15 Christian Biesinger <cbiesinger@google.com>
1624
1625 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1626 * configure: Regenerate.
1627 * configure.ac: Don't source common.host.
1628 * gdbsupport/common.host: Remove.
1629 * gdbsupport/mingw-strerror.c: Remove.
1630 * gdbsupport/posix-strerror.c: Rename to...
1631 * gdbsupport/safe-strerror.c: ...this.
1632
53fea9c7
CB
16332019-11-15 Christian Biesinger <cbiesinger@google.com>
1634
1635 * maint.c (scoped_command_stats::print_time): Use localtime_r
1636 instead of localtime (provided through gnulib if necessary).
1637 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1638 of ctime.
1639
f8e27d88
CB
16402019-11-15 Christian Biesinger <cbiesinger@google.com>
1641
1642 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1643 avoid compile errors.
1644
5abebf3c
CB
16452019-11-15 Christian Biesinger <cbiesinger@google.com>
1646
1647 * config.in: Regenerate.
1648 * configure: Regenerate.
1649 * gdbsupport/common.m4: No longer check for strerror_r.
1650 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1651 POSIX version of strerror_r, now that gnulib provides it if
1652 necessary.
1653
9a351667
CB
16542019-11-14 Christian Biesinger <cbiesinger@google.com>
1655
1656 * README (`configure' options): Update.
1657
55708e99
TT
16582019-11-14 Tom Tromey <tromey@adacore.com>
1659
1660 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1661 expected type for the RHS if the LHS is a convenience variable.
1662
4b09bb2e
SM
16632019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1664
1665 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1666 Provide explicit default and copy constructor.
1667
bd454f8b
PW
16682019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1669
1670 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1671 only call Py_INCREF (newbp) in the bppy_pending_object case.
1672
d1aa3cf0
TT
16732019-11-13 Tom Tromey <tromey@adacore.com>
1674
1675 PR build/25182:
1676 * psympriv.h (partial_symbol): Remove static assert.
1677 * symtab.h (general_symbol_info, symbol): Remove static assert.
1678
e06f3d6e
AB
16792019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1680
1681 * gdbsupport/format.c (format_pieces::format_pieces): Support
1682 printf 'z' size modifier.
1683 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1684 * printcmd.c (ui_printf): Handle size_t_arg.
1685 * ui-out.c (ui_out::vmessage): Likewise.
1686 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1687 function.
1688 (run_tests): Call test_format_int_sizes.
1689
468c0cbb
CB
16902019-11-12 Christian Biesinger <cbiesinger@google.com>
1691
1692 * ada-exp.y (write_ambiguous_var): Update.
1693 * buildsym.c (add_symbol_to_list): Update.
1694 * dwarf2read.c (read_variable): Update.
1695 (new_symbol): Update.
1696 * jit.c (finalize_symtab): Update.
1697 * language.c (language_alloc_type_symbol): Update.
1698 * symtab.c (fixup_symbol_section): Update.
1699 (initialize_objfile_symbol_1): Move code to...
1700 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1701 (allocate_symbol): Update.
1702 (allocate_template_symbol): Update.
1703 (get_symbol_address): Update.
1704 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1705 of having as a field, and add a constructor.
1706 (SYMBOL_VALUE): Update.
1707 (SYMBOL_VALUE_ADDRESS): Update.
1708 (SET_SYMBOL_VALUE_ADDRESS): Update.
1709 (SYMBOL_VALUE_BYTES): Update.
1710 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1711 (SYMBOL_BLOCK_VALUE): Update.
1712 (SYMBOL_VALUE_CHAIN): Update.
1713 (SYMBOL_LANGUAGE): Update.
1714 (SYMBOL_SECTION): Update.
1715 (SYMBOL_OBJ_SECTION): Update.
1716 (SYMBOL_SET_LANGUAGE): Update.
1717 (SYMBOL_SET_LINKAGE_NAME): Update.
1718 (SYMBOL_SET_NAMES): Update.
1719 (SYMBOL_NATURAL_NAME): Update.
1720 (SYMBOL_LINKAGE_NAME): Update.
1721 (SYMBOL_DEMANGLED_NAME): Update.
1722 (SYMBOL_SEARCH_NAME): Update.
1723 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1724 (struct symbol): Update.
1725 (struct template_symbol): Update.
1726 (struct rust_vtable_symbol): Update.
1727 * xcoffread.c (SYMBOL_DUP): Update.
1728
ed2c82c3
TT
17292019-11-12 Tom Tromey <tom@tromey.com>
1730
1731 * tui/tui-layout.c (show_layout): Set current_layout.
1732 (show_source_disasm_command, show_data)
1733 (show_source_or_disasm_and_command): Don't set current_layout.
1734
d9fcefd5
TT
17352019-11-12 Tom Tromey <tom@tromey.com>
1736
1737 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1738
45e42163
TT
17392019-11-12 Tom Tromey <tom@tromey.com>
1740
1741 * tui/tui-win.c (resize_message): New global.
1742 (show_tui_resize_message): New function.
1743 (tui_async_resize_screen): Print message if requested.
1744 (_initialize_tui_win): Add tui-resize-message setting.
1745 * NEWS: Add entry for new commands.
1746
c86d74cc
TT
17472019-11-11 Tom Tromey <tom@tromey.com>
1748
1749 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1750 functions.
1751
7b7b9424
CB
17522019-11-11 Christian Biesinger <cbiesinger@google.com>
1753
1754 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1755
086baaf1
AB
17562019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1757
1758 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1759 function.
1760 * python/python-internal.h (gdbpy_lookup_static_symbols):
1761 Declare new function.
1762 * python/python.c (python_GdbMethods): Add
1763 gdb.lookup_static_symbols method.
1764 * NEWS: Mention gdb.lookup_static_symbols.
1765
09ff83af
AB
17662019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1769 static block of current object file first. Also fix typo in
1770 header comment.
1771
eb2dd8df
AB
17722019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1773
1774 * stack.c (set_last_displayed_sal): Delete.
1775 (last_displayed_sal_valid): Delete.
1776 (last_displayed_pspace): Delete.
1777 (last_displayed_addr): Delete.
1778 (last_displayed_symtab): Delete.
1779 (last_displayed_line): Delete.
1780 (class last_displayed_symtab_info_type): New.
1781 (last_displayed_symtab_info): New static global variable.
1782 (print_frame_info): Call methods on last_displayed_symtab_info.
1783 (clear_last_displayed_sal): Update header comment, and make use of
1784 last_displayed_symtab_info.
1785 (last_displayed_sal_is_valid): Likewise.
1786 (get_last_displayed_pspace): Likewise.
1787 (get_last_displayed_addr): Likewise.
1788 (get_last_displayed_symtab): Likewise.
1789 (get_last_displayed_line): Likewise.
1790 (get_last_displayed_sal): Likewise.
1791 * stack.h (clear_last_displayed_sal): Update header comment.
1792 (last_displayed_sal_is_valid): Likewise.
1793 (get_last_displayed_pspace): Likewise.
1794 (get_last_displayed_addr): Likewise.
1795 (get_last_displayed_symtab): Likewise.
1796 (get_last_displayed_line): Likewise.
1797 (get_last_displayed_sal): Likewise.
1798
62137775
AB
17992019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * stack.c (frame_show_address): Convert return type to bool.
1802 * stack.h (frame_show_address): Likewise, and update header
1803 comment.
1804
cf57ad6d
AB
18052019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1806
1807 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1808 * unittests/vec-utils-selftests.c: New file.
1809 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1810
0b026263
TT
18112019-11-10 Tom Tromey <tom@tromey.com>
1812
1813 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1814 (tui_highlight_win): Likewise.
1815 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1816 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1817 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1818 Don't set can_highlight.
1819
b049ce2d
TT
18202019-11-10 Tom Tromey <tom@tromey.com>
1821
1822 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1823 Remove unused declaration.
1824
992a7040
TT
18252019-11-08 Tom Tromey <tromey@adacore.com>
1826
1827 * top.c (read_command_file): Update.
1828 (command_line_input): Make return type const.
1829 * python/py-gdb-readline.c: Update.
1830 * linespec.c (decode_line_2): Update.
1831 * defs.h (command_line_input): Make return type const.
1832 * cli/cli-script.c (read_next_line): Make return type const.
1833 * ada-lang.c (get_selections): Update.
1834
ca3a04f6
CB
18352019-11-06 Christian Biesinger <cbiesinger@google.com>
1836
1837 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1838 * mi/mi-main.c (output_cores): Likewise.
1839 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1840 (linux_xfer_osdata_modules): Likewise.
1841 * remote.c (register_remote_support_xml): Likewise.
1842 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1843 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1844
e0eac551
TT
18452019-11-06 Tom Tromey <tom@tromey.com>
1846
1847 * tui/tui-interp.c: Don't include readline.h.
1848 * tui/tui-hooks.c: Don't include readline.h.
1849 * symmisc.c: Include tilde.h, not readline.h.
1850 * symfile.c: Include tilde.h, not readline.h.
1851 * source.c: Include tilde.h, not readline.h.
1852 * solib.c: Include tilde.h, not readline.h.
1853 * psymtab.c: Include tilde.h, not readline.h.
1854 * exec.c: Include tilde.h, not readline.h.
1855 * corelow.c: Include tilde.h, not readline.h.
1856 * cli/cli-dump.c: Include tilde.h, not readline.h.
1857 * cli/cli-cmds.c: Don't include readline.h.
1858
825165c5
TT
18592019-11-05 Tom Tromey <tom@tromey.com>
1860
1861 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1862 (tui_disassemble): Set addr_size.
1863 (tui_disasm_window::set_contents): Use addr_size.
1864
91ae903f
TT
18652019-11-05 Tom Tromey <tom@tromey.com>
1866
1867 * rust-lang.c (rust_language_defn): Update.
1868 * python/py-value.c (valpy_string): Call c_get_string.
1869 * p-lang.c (pascal_language_defn): Update.
1870 * opencl-lang.c (opencl_language_defn): Update.
1871 * objc-lang.c (objc_language_defn): Update.
1872 * m2-lang.c (m2_language_defn): Update.
1873 * language.c (unknown_language_defn, auto_language_defn): Update.
1874 (default_get_string): Remove.
1875 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1876 * go-lang.c (go_language_defn): Update.
1877 * f-lang.c (f_language_defn): Update.
1878 * d-lang.c (d_language_defn): Update.
1879 * c-lang.c (c_language_defn, cplus_language_defn)
1880 (asm_language_defn, minimal_language_defn): Update.
1881 * ada-lang.c (ada_language_defn): Update.
1882 * language.h (struct language_defn) <la_get_string>: Remove.
1883 (LA_GET_STRING): Remove.
1884 (default_get_string): Don't declare.
1885
1df2f9ef
TT
18862019-11-05 Tom Tromey <tom@tromey.com>
1887
1888 * tui/tui-source.h (struct tui_source_window): Inline
1889 constructor. Remove destructor.
1890 <style_changed, m_observable>: Move to superclass.
1891 * tui/tui-winsource.h (tui_copy_source_line): Declare.
1892 (struct tui_source_window_base): Move private members to end.
1893 <style_changed, m_observable>: Move from tui_source_window.
1894 * tui/tui-winsource.c (tui_copy_source_line): Move from
1895 tui-source.c. Rename from copy_source_line. Add special handling
1896 for negative line number.
1897 (tui_source_window_base::style_changed): Move from
1898 tui_source_window.
1899 (tui_source_window_base): Register observer.
1900 (~tui_source_window_base): New.
1901 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
1902 rename.
1903 (tui_source_window::set_contents): Use tui_copy_source_line.
1904 (tui_source_window::tui_source_window): Move to tui-source.h.
1905 (tui_source_window::~tui_source_window): Remove.
1906 (tui_source_window::style_changed): Move to superclass.
1907 * tui/tui-disasm.c (tui_disassemble): Create string file with
1908 styling, when possible. Add "addr_size" parameter.
1909 (tui_disasm_window::set_contents): Use tui_copy_source_line.
1910 Don't compute maximum size.
1911 (len_without_escapes): New function
1912
5d051055
TT
19132019-11-05 Tom Tromey <tom@tromey.com>
1914
1915 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
1916 std::string.
1917 * tui/tui-winsource.c (tui_show_source_line): Update.
1918 * tui/tui-source.c (tui_source_window::set_contents): Update.
1919 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1920
ade7beea
CB
19212019-11-05 Christian Biesinger <cbiesinger@google.com>
1922
1923 * symtab.h (gdb_static_assert): Put && operator at the beginning
1924 of the line instead of the end.
1925
3573abe1
CB
19262019-11-04 Christian Biesinger <cbiesinger@google.com>
1927
1928 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
1929 and sizeof (symbol).
1930 * symtab.h: Add a static_assert for sizeof (partial_symbol).
1931
dae8b3eb
RO
19322019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1933
1934 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
1935 * configure.host: Mark *-*-solaris2.10* obsolete.
1936 * configure.tgt: Mark Solaris < 11 obsolete.
1937 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
1938 Update target triplet.
1939
5df96a4e
TT
19402019-11-01 Tom Tromey <tromey@adacore.com>
1941
1942 * utils.c (print_sys_errmsg): Simplify.
1943
b7481649
TT
19442019-11-01 Tom Tromey <tromey@adacore.com>
1945
1946 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
1947
e48f6033
CB
19482019-11-01 Christian Biesinger <cbiesinger@google.com>
1949
1950 * configure: Regenerate.
1951 * configure.ac: Remove check for strerror_r.
1952 * gdbsupport/common.m4: Check for strerror_r.
1953
bd5766ec
LM
19542019-11-01 Luis Machado <luis.machado@linaro.org>
1955
1956 PR gdb/25124
1957
1958 * arm-tdep.c (arm_per_objfile): Rename to ...
1959 (arm_per_bfd): ... this.
1960 (arm_objfile_data_key): Rename to ...
1961 (arm_bfd_data_key): ... this.
1962 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
1963 data.
1964 (arm_record_special_symbol): Likewise.
1965
e1709896
AB
19662019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1967
1968 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
1969 end.
1970 * c-typeprint.c (c_print_typedef): Likewise.
1971 * f-typeprint.c (f_print_typedef): Likewise.
1972 * m2-typeprint.c (m2_print_typedef): Likewise.
1973 * p-typeprint.c (pascal_print_typedef): Likewise.
1974 * rust-lang.c (rust_print_typedef): Likewise.
1975 * symtab.c (print_symbol_info): Print a newline after calling
1976 typedef_print.
1977
165f8965
AB
19782019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1979
1980 * symtab.c (info_module_cmdlist): New variable.
1981 (info_module_command): New function.
1982 (search_module_symbols): New function.
1983 (info_module_subcommand): New function.
1984 (struct info_modules_var_func_options): New struct.
1985 (info_modules_var_func_options_defs): New variable.
1986 (make_info_modules_var_func_options_def_group): New function.
1987 (info_module_functions_command): New function.
1988 (info_module_variables_command): New function.
1989 (info_module_var_func_command_completer): New function.
1990 (_initialize_symtab): Register new 'info module functions' and
1991 'info module variables' commands.
1992 * symtab.h (typedef symbol_search_in_module): New typedef.
1993 (search_module_symbols): Declare new function.
1994 * NEWS: Mention new commands.
1995
59c35742
AB
19962019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1997
1998 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
1999 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2000 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2001 MODULES_DOMAIN.
2002 (scan_partial_symbols): Only create partial module symbols for non
2003 declarations.
2004 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2005 and MODULES_DOMAIN.
2006 * symtab.c (search_domain_name): Likewise.
2007 (search_symbols): Likewise.
2008 (print_symbol_info): Likewise.
2009 (symtab_symbol_info): Likewise.
2010 (info_modules_command): New function.
2011 (_initialize_symtab): Register 'info modules' command.
2012 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2013 * NEWS: Mention new 'info modules' command.
2014
aed61d02
PW
20152019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2016
2017 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2018 and $_gdb_maint_setting_str.
2019
9ad9b77d
PW
20202019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2021
2022 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2023 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2024 (str_value_from_setting, gdb_setting_str_internal_fn)
2025 (gdb_maint_setting_str_internal_fn): New functions.
2026 (_initialize_cli_cmds): Define the new convenience functions.
2027 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2028 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2029
8d6efaa2
CB
20302019-10-31 Christian Biesinger <cbiesinger@google.com>
2031
2032 * agent.c (set_can_use_agent): When the setting is turned on,
2033 look up agent symbols if we don't have them yet.
2034 (agent_new_objfile): Don't look up agent symbols when the agent
2035 setting is off.
2036
33cb1647
CB
20372019-10-31 Christian Biesinger <cbiesinger@google.com>
2038
2039 * config.in: Regenerate.
2040
b231e86a
CB
20412019-10-31 Christian Biesinger <cbiesinger@google.com>
2042
2043 * configure: Regenerate.
2044 * configure.ac: Check for strerror_r.
2045 * gdbsupport/common-utils.h (safe_strerror): Change return value
2046 to const char * and document that this function is now threadsafe.
2047 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2048 thread_local and call strerror_r, if available.
2049 * utils.c (perror_string): Update.
2050 (print_sys_errmsg): Update.
2051
a2726d4f
LM
20522019-10-31 Luis Machado <luis.machado@linaro.org>
2053
2054 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2055 objfile_key.
2056 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2057 objfile to fetch per-bfd data.
2058 (arm_find_exidx_entry): Likewise.
2059
75cafaa6
CB
20602019-10-31 Christian Biesinger <cbiesinger@google.com>
2061
2062 * gdbsupport/agent.c (debug_agent): Change type to bool.
2063 (use_agent): Likewise.
2064 (all_agent_symbols_look_up): Likewise.
2065 (agent_loaded_p): Change return value to bool.
2066 (agent_look_up_symbols): Update.
2067 (agent_capability_check): Change return value to bool.
2068 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2069 (debug_agent): Change type to bool.
2070 (use_agent): Likewise.
2071 (agent_capability_check): Change return value to bool.
2072
808590ec
CB
20732019-10-30 Christian Biesinger <cbiesinger@google.com>
2074
2075 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2076 (build_minimal_symbol_hash_tables): Code to clear the table moved
2077 to clear_minimal_symbol_hash_tables.
2078 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2079 when needed.
2080
f18ad8a1
SM
20812019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2082
2083 * infcmd.c: Remove includes.
2084 * infrun.c: Remove includes.
2085
de93309a
SM
20862019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2087
2088 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2089 (grow_vect): Remove declaration.
2090 (ada_type_of_array): Remove declaration.
2091 (ada_update_initial_language): Remove declaration.
2092 (ada_fold_name): Remove declaration.
2093 (ada_fill_in_ada_prototype): Remove declaration.
2094 (user_select_syms): Remove declaration.
2095 (get_selections): Remove declaration.
2096 (ada_tag_type): Remove declaration.
2097 (ada_value_tag): Remove declaration.
2098 (ada_is_others_clause): Remove declaration.
2099 (ada_in_variant): Remove declaration.
2100 (ada_value_struct_elt): Remove declaration.
2101 (ada_attribute_name): Remove declaration.
2102 (ada_system_address_type): Remove declaration.
2103 * ada-lang.c (ada_watch_location_expression): Make static.
2104 (GROW_VECT): Move here from ada-lang.h.
2105 (grow_vect): Make static.
2106 (ada_update_initial_language): Make static.
2107 (ada_fold_name): Make static.
2108 (ada_type_of_array): Make static.
2109 (encoded_ordered_before): Move up.
2110 (sort_choices): Move up.
2111 (print_signatures): Move up.
2112 (ada_print_symbol_signature): Move up.
2113 (get_selections): Move up and make static.
2114 (user_select_syms): Move up and make static.
2115 (ada_value_struct_elt): Move up and make static.
2116 (ada_tag_type): Make static.
2117 (ada_value_tag): Make static.
2118 (ada_is_others_clause): Make static.
2119 (ada_in_variant): Make static.
2120 (ada_attribute_name): Make static.
2121
cdc46a9f
SM
21222019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2123
2124 * ada-lang.c: Remove includes.
2125 * ada-typeprint.c: Remove includes.
2126 * ada-valprint.c: Remove includes.
2127
90421c56
SM
21282019-10-29 Simon Marchi <simon.marchi@efficios.com>
2129
2130 * addrmap.c: Add static assertions of type size, moved from
2131 _initialize_addrmap.
2132 (_initialize_addrmap): Remove.
2133
31edb802
CB
21342019-10-29 Christian Biesinger <cbiesinger@google.com>
2135
2136 * coffread.c (record_minimal_symbol): Update.
2137 (process_coff_symbol): Update.
2138 * dbxread.c (read_dbx_symtab): Update.
2139 * dwarf2read.c (add_partial_symbol): Update.
2140 (fixup_go_packaging): Update.
2141 (load_partial_dies): Update.
2142 (new_symbol): Update.
2143 * elfread.c (record_minimal_symbol): Change signature to use
2144 gdb::string_view instead of name+len.
2145 (elf_symtab_read): Update.
2146 (elf_rel_plt_read): Update.
2147 * mdebugread.c (parse_partial_symbols): Update.
2148 (handle_psymbol_enumerators): Update.
2149 (new_symbol): Update.
2150 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2151 to use gdb::string_view instead of name+len.
2152 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2153 * psympriv.h (add_psymbol_to_list): Likewise.
2154 * psymtab.c (add_psymbol_to_bcache): Likewise.
2155 (add_psymbol_to_list): Likewise.
2156 * stabsread.c (define_symbol): Update.
2157 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2158 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2159 (symbol_set_names): Likewise.
2160 * xcoffread.c (scan_xcoff_symtab): Update.
2161
0c921b21
CB
21622019-10-29 Christian Biesinger <cbiesinger@google.com>
2163
2164 * symtab.h (symbol_set_names): Document that copy_name must be
2165 set to true for non-nullterminated strings.
2166 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2167 linkage_name if the entry was not found and we need to demangle.
2168
35e65c49
CB
21692019-10-29 Christian Biesinger <cbiesinger@google.com>
2170
2171 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2172 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2173 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2174 * gdbsupport/gdb_binary_search.h: New file.
2175
ed2a2229
CB
21762019-10-29 Christian Biesinger <cbiesinger@google.com>
2177
2178 * NEWS: Mention new --with-system-gdbinit-dir option.
2179 * config.in: Regenerate.
2180 * configure: Regenerate.
2181 * configure.ac: Add new option --with-system-gdbinit-dir.
2182 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2183 for a ".gdb" suffix.
2184 * main.c (get_init_files): Change system_gdbinit argument to
2185 a vector and return the files in SYSTEM_GDBINIT_DIR in
2186 addition to SYSTEM_GDBINIT.
2187 (captured_main_1): Update.
2188 (print_gdb_help): Update.
2189 * top.c (print_gdb_configuration): Also print the value of
2190 SYSTEM_GDBINIT_DIR.
2191
87f34879
CB
21922019-10-28 Christian Biesinger <cbiesinger@google.com>
2193
2194 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2195 that takes gdb::string_view arguments.
2196
30baf67b
TV
21972019-10-26 Tom de Vries <tdevries@suse.de>
2198
2199 * aarch64-linux-tdep.c: Fix typos in comments.
2200 * aarch64-tdep.c: Same.
2201 * ada-lang.c: Same.
2202 * amd64-nat.c: Same.
2203 * arc-tdep.c: Same.
2204 * arch/aarch64-insn.c: Same.
2205 * block.c: Same.
2206 * breakpoint.h: Same.
2207 * btrace.h: Same.
2208 * c-varobj.c: Same.
2209 * cli/cli-decode.c: Same.
2210 * cli/cli-script.c: Same.
2211 * cli/cli-utils.h: Same.
2212 * coff-pe-read.c: Same.
2213 * coffread.c: Same.
2214 * compile/compile-cplus-symbols.c: Same.
2215 * compile/compile-object-run.c: Same.
2216 * completer.c: Same.
2217 * corelow.c: Same.
2218 * cp-support.c: Same.
2219 * demangle.c: Same.
2220 * dwarf-index-write.c: Same.
2221 * dwarf2-frame.c: Same.
2222 * dwarf2-frame.h: Same.
2223 * eval.c: Same.
2224 * frame-base.h: Same.
2225 * frame.h: Same.
2226 * gdbcmd.h: Same.
2227 * gdbtypes.h: Same.
2228 * gnu-nat.c: Same.
2229 * guile/scm-objfile.c: Same.
2230 * i386-tdep.c: Same.
2231 * i386-tdep.h: Same.
2232 * infcall.c: Same.
2233 * infcall.h: Same.
2234 * linux-nat.c: Same.
2235 * m68k-tdep.c: Same.
2236 * macroexp.c: Same.
2237 * memattr.c: Same.
2238 * mi/mi-cmd-disas.c: Same.
2239 * mi/mi-getopt.h: Same.
2240 * mi/mi-main.c: Same.
2241 * minsyms.c: Same.
2242 * nat/aarch64-sve-linux-sigcontext.h: Same.
2243 * objfiles.h: Same.
2244 * ppc-linux-nat.c: Same.
2245 * ppc-linux-tdep.c: Same.
2246 * ppc-tdep.h: Same.
2247 * progspace.h: Same.
2248 * prologue-value.h: Same.
2249 * python/py-evtregistry.c: Same.
2250 * python/py-instruction.h: Same.
2251 * record-btrace.c: Same.
2252 * record-full.c: Same.
2253 * remote.c: Same.
2254 * rs6000-tdep.c: Same.
2255 * ser-tcp.c: Same.
2256 * sol-thread.c: Same.
2257 * sparc-sol2-tdep.c: Same.
2258 * sparc64-tdep.c: Same.
2259 * stabsread.c: Same.
2260 * symfile.c: Same.
2261 * symtab.h: Same.
2262 * target.c: Same.
2263 * tracepoint.c: Same.
2264 * tui/tui-data.h: Same.
2265 * tui/tui-io.c: Same.
2266 * tui/tui-win.c: Same.
2267 * tui/tui.c: Same.
2268 * unittests/rsp-low-selftests.c: Same.
2269 * user-regs.h: Same.
2270 * utils.c: Same.
2271 * utils.h: Same.
2272 * valarith.c: Same.
2273 * valops.c: Same.
2274 * valprint.c: Same.
2275 * valprint.h: Same.
2276 * value.c: Same.
2277 * value.h: Same.
2278 * varobj.c: Same.
2279 * x86-nat.h: Same.
2280 * xtensa-tdep.c: Same.
2281
1834d45f
AT
22822019-10-25 Ali Tamur <tamur@google.com>
2283
2284 * charset.c (find_charset_names): Reflect API change.
2285
5396ae17
CB
22862019-10-25 Christian Biesinger <cbiesinger@google.com>
2287
2288 * symtab.c (struct demangled_name_entry): Change demangled name
2289 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2290 part of the struct anymore.
2291 (symbol_set_names): No longer obstack allocate + copy the demangled
2292 name, just store the allocated name from bfd.
2293
93878f47
TT
22942019-10-25 Tom Tromey <tromey@adacore.com>
2295
2296 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2297 (bsearch_cie_cmp, add_cie): Remove.
2298 (find_cie): Reimplement.
2299 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2300 (dwarf2_build_frame_info): Update.
2301
7b71fc97
L
23022019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2303
2304 PR gdb/25126
2305 * symfile.c (reread_symbols): Call forget_cached_source_info to
2306 clear the stale source cache.
2307
cbb5a2ea
CB
23082019-10-24 Christian Biesinger <cbiesinger@google.com>
2309
2310 * configure: Regenerate.
2311 * configure.ac: Remove code that sets python_has_threads.
2312
71737c43
CB
23132019-10-24 Christian Biesinger <cbiesinger@google.com>
2314
2315 * config.in: Regenerate.
2316 * configure: Regenerate.
2317 * configure.ac: Remove the code that uses sed to get the python
2318 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2319
33d569b7
AB
23202019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2321
2322 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2323 error paths.
2324
f16f7b7c
TT
23252019-10-23 Tom Tromey <tom@tromey.com>
2326
2327 * arc-tdep.c: Remove ".." from include.
2328 * frv-tdep.c: Remove ".." from include.
2329 * lm32-tdep.c: Remove ".." from include.
2330 * microblaze-tdep.c: Remove ".." from include.
2331 * or1k-tdep.h: Remove ".." from include.
2332 * s12z-tdep.c: Remove ".." from include.
2333 * Makefile.in (OPCODES_CFLAGS): Add comment.
2334 (TOP_CFLAGS): New variable.
2335 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2336
6999161a
TT
23372019-10-23 Tom Tromey <tom@tromey.com>
2338
2339 * Makefile.in (READLINE_DIR): Update.
2340
12e7c35e
TBA
23412019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2342
2343 * infcall.c (call_function_by_hand_dummy): Fix the function
2344 comment. And extract out a code section into...
2345 (reserve_stack_space): ...this new function.
2346
37055cad
TBA
23472019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2348
2349 * infcall.c (value_arg_coerce): Remove an unused parameter.
2350 (call_function_by_hand_dummy): Update the call to
2351 'value_arg_coerce'.
2352
39bcc47c
TBA
23532019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2354
2355 * infcall.c (call_function_by_hand_dummy): Refactor.
2356
bd888c0f
TBA
23572019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2358
2359 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2360
c12d372d
TT
23612019-10-23 Tom Tromey <tom@tromey.com>
2362
2363 * configure: Rebuild.
2364 * configure.ac: Don't check for sigprocmask.
2365 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2366
4d0b984b
TT
23672019-10-23 Tom Tromey <tom@tromey.com>
2368
2369 * configure: Rebuild.
2370 * acinclude.m4: Use m4_include, not sinclude.
2371
7e785608
TV
23722019-10-23 Tom de Vries <tdevries@suse.de>
2373
2374 PR breakpoints/24687
2375 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2376
403772ef
CB
23772019-10-22 Christian Biesinger <cbiesinger@google.com>
2378
2379 * symtab.c (struct demangled_name_entry) <language>: Change from
2380 bitfield to regular variable.
2381
3a494279
CB
23822019-10-22 Christian Biesinger <cbiesinger@google.com>
2383
2384 * symtab.c (struct demangled_name_entry): Add a constructor.
2385 (free_demangled_name_entry): New function to call the destructor
2386 for demangled_name_entry.
2387 (create_demangled_names_hash): Pass free_demangled_name_entry to
2388 htab_create_alloc.
2389 (symbol_set_names): Call placement new for demangled_name_entry.
2390 * utils.c: No longer include xxhash.h here, now that fast_hash
2391 is inlined in the header.
2392 * utils.h: Instead, include it here.
2393
ccb1ba62
CB
23942019-10-22 Christian Biesinger <cbiesinger@google.com>
2395
2396 * Makefile.in: Link with libxxhash.
2397 * config.in: Regenerate.
2398 * configure: Regenerate.
2399 * configure.ac: Search for libxxhash.
2400 * utils.c (fast_hash): Use xxhash if present.
2401
1a6ff1a9
CB
24022019-10-22 Christian Biesinger <cbiesinger@google.com>
2403
2404 * utils.h (fast_hash): New function.
2405 * symtab.c (hash_demangled_name_entry): Call new function
2406 fast_hash.
2407
7bb43059
CB
24082019-10-22 Christian Biesinger <cbiesinger@google.com>
2409
2410 * symtab.c (struct demangled_name_entry): Change type of mangled
2411 to gdb::string_view. Also adds a constructor that takes the
2412 mangled name.
2413 (hash_demangled_name_entry): Update.
2414 (eq_demangled_name_entry): Update.
2415 (free_demangled_name_entry): New function to call the destructor
2416 now that this is not a POD anymore.
2417 (create_demangled_names_hash): Pass free_demangled_name_entry to
2418 htab_create_alloc.
2419 (symbol_set_names): Update.
2420
7ba99d21
AT
24212019-10-21 Ali Tamur <tamu@google.com>
2422
2423 * dwarf2read.c (dir_index): Change type.
2424 (file_name_index): Likewise.
2425 (line_header::include_dir_at): Change comment and implementation on
2426 whether it is DWARF 5.
2427 (line_header::is_valid_file_index): New function.
2428 (line_header::file_name_at): Change comment and implementation on
2429 whether it is DWARF 5.
2430 (line_header::file_names): Change to private field renamed as
2431 m_file_names and introduce a new accessor method.
2432 (line_header::file_names_size): New method.
2433 (line_header::include_dirs): Change to private field and rename as
2434 m_include_dirs.
2435 (dw2_get_file_names_reader): Define local var at a smaller scope and
2436 reflect API change.
2437 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2438 (process_structure_scope): Likewise.
2439 (line_header::add_include_dir): Change message and reflect renaming.
2440 (line_header::add_file_name): Likewise.
2441 (read_formatted_entries): Handle DW_FORM_data16.
2442 (dwarf_decode_line_header): Fix line header length calculation.
2443 (psymtab_include_file_name): Change comment and API.
2444 (lnp_state_machine::m_file): Update comment and reflect type change.
2445 (lnp_state_machine::record_line): Reflect type change.
2446 (dwarf_decode_lines): Reflect API change.
2447 (file_file_name): Likewise.
2448 (file_full_name): Likewise.
2449
45f47c3a
AB
24502019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2451
2452 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2453
e5f3c0e3
TT
24542019-10-21 Tom Tromey <tom@tromey.com>
2455
2456 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2457
a0a461e5
TT
24582019-10-21 Tom Tromey <tom@tromey.com>
2459
2460 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2461 NM_H. Use AC_CONFIG_LINKS.
2462 * configure: Rebuild.
2463 * Makefile.in (NM_H): New variable.
2464 (generated_files): Add NM_H. Remove gcore.
2465 (nm.h, stamp-nmh): New targets.
2466
54d83b8d
TT
24672019-10-20 Tom Tromey <tom@tromey.com>
2468
2469 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2470 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2471 obsolete comment.
2472 (put_objfile_before): Now static.
2473
23771117
SM
24742019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2475
2476 * gdbsupport/common-utils.h (startswith): Change return type to
2477 bool.
2478
39ef2f62
CB
24792019-10-19 Christian Biesinger <cbiesinger@google.com>
2480
2481 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2482 * breakpoint.c (bp_locations_compare): Rename to...
2483 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2484 (update_global_location_list): Use std::sort instead of qsort.
2485 * buildsym.c (compare_line_numbers): Rename to...
2486 (lte_is_less_than): ...this, and change to std::sort semantics.
2487 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2488 instead of qsort.
2489 * disasm.c (compare_lines): Rename to...
2490 (line_is_less_than): ...this, and change to std::sort semantics.
2491 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2492 of qsort.
2493 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2494 (fde_is_less_than): ...this, and change to std::sort semantics.
2495 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2496 * mdebugread.c (compare_blocks):
2497 (block_is_less_than): ...this, and change to std::sort semantics.
2498 (sort_blocks): Call std::sort instead of qsort.
2499 * objfiles.c (qsort_cmp): Rename to...
2500 (sort_cmp): ...this, and change to std::sort semantics.
2501 (update_section_map): Call std::sort instead of qsort.
2502 * remote.c (compare_pnums): Remove.
2503 (map_regcache_remote_table): Call std::sort instead of qsort.
2504 * utils.c (compare_positive_ints): Remove.
2505 * utils.h (compare_positive_ints): Remove.
2506 * xcoffread.c (compare_lte): Remove.
2507 (arrange_linetable): Call std::sort instead of qsort.
2508
f71433ee
SDJ
25092019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2510
2511 * symfile.c (init_entry_point_info): Fix typo.
2512 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2513
85102364
TV
25142019-10-18 Tom de Vries <tdevries@suse.de>
2515
2516 * aarch64-tdep.c: Fix typos in comments.
2517 * ada-lang.c: Same.
2518 * ada-tasks.c: Same.
2519 * alpha-tdep.c: Same.
2520 * alpha-tdep.h: Same.
2521 * amd64-nat.c: Same.
2522 * amd64-windows-tdep.c: Same.
2523 * arc-tdep.c: Same.
2524 * arc-tdep.h: Same.
2525 * arch-utils.c: Same.
2526 * arm-nbsd-tdep.c: Same.
2527 * arm-tdep.c: Same.
2528 * ax-gdb.c: Same.
2529 * blockframe.c: Same.
2530 * btrace.c: Same.
2531 * c-varobj.c: Same.
2532 * coff-pe-read.c: Same.
2533 * coffread.c: Same.
2534 * cris-tdep.c: Same.
2535 * darwin-nat.c: Same.
2536 * dbxread.c: Same.
2537 * dcache.c: Same.
2538 * disasm.c: Same.
2539 * dtrace-probe.c: Same.
2540 * dwarf-index-write.c: Same.
2541 * dwarf2-frame-tailcall.c: Same.
2542 * dwarf2-frame.c: Same.
2543 * dwarf2read.c: Same.
2544 * eval.c: Same.
2545 * exceptions.c: Same.
2546 * fbsd-tdep.c: Same.
2547 * findvar.c: Same.
2548 * frame.c: Same.
2549 * frv-tdep.c: Same.
2550 * gnu-v3-abi.c: Same.
2551 * go32-nat.c: Same.
2552 * h8300-tdep.c: Same.
2553 * hppa-tdep.c: Same.
2554 * i386-linux-tdep.c: Same.
2555 * i386-tdep.c: Same.
2556 * ia64-libunwind-tdep.c: Same.
2557 * ia64-tdep.c: Same.
2558 * infcmd.c: Same.
2559 * infrun.c: Same.
2560 * linespec.c: Same.
2561 * linux-nat.c: Same.
2562 * linux-thread-db.c: Same.
2563 * machoread.c: Same.
2564 * mdebugread.c: Same.
2565 * mep-tdep.c: Same.
2566 * mn10300-tdep.c: Same.
2567 * namespace.c: Same.
2568 * objfiles.c: Same.
2569 * opencl-lang.c: Same.
2570 * or1k-tdep.c: Same.
2571 * osabi.c: Same.
2572 * ppc-linux-nat.c: Same.
2573 * ppc-linux-tdep.c: Same.
2574 * ppc-sysv-tdep.c: Same.
2575 * printcmd.c: Same.
2576 * procfs.c: Same.
2577 * record-btrace.c: Same.
2578 * record-full.c: Same.
2579 * remote-fileio.c: Same.
2580 * remote.c: Same.
2581 * rs6000-tdep.c: Same.
2582 * s12z-tdep.c: Same.
2583 * score-tdep.c: Same.
2584 * ser-base.c: Same.
2585 * ser-go32.c: Same.
2586 * skip.c: Same.
2587 * sol-thread.c: Same.
2588 * solib-svr4.c: Same.
2589 * solib.c: Same.
2590 * source.c: Same.
2591 * sparc-nat.c: Same.
2592 * sparc-sol2-tdep.c: Same.
2593 * sparc-tdep.c: Same.
2594 * sparc64-tdep.c: Same.
2595 * stabsread.c: Same.
2596 * stack.c: Same.
2597 * symfile.c: Same.
2598 * symtab.c: Same.
2599 * target-descriptions.c: Same.
2600 * target-float.c: Same.
2601 * thread.c: Same.
2602 * utils.c: Same.
2603 * valops.c: Same.
2604 * valprint.c: Same.
2605 * value.c: Same.
2606 * varobj.c: Same.
2607 * windows-nat.c: Same.
2608 * xcoffread.c: Same.
2609 * xstormy16-tdep.c: Same.
2610 * xtensa-tdep.c: Same.
2611
c5adaa19
TT
26122019-10-17 Tom Tromey <tromey@adacore.com>
2613
2614 * configure: Rebuild.
2615 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2616 in AC_CONFIG_FILES invocation.
2617 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2618 new-style config.status invocation.
2619
405feb71
TV
26202019-10-17 Tom de Vries <tdevries@suse.de>
2621
2622 * arm-nbsd-nat.c: Fix typos in comments.
2623 * arm-tdep.c: Same.
2624 * darwin-nat-info.c: Same.
2625 * dwarf2read.c: Same.
2626 * elfread.c: Same.
2627 * event-top.c: Same.
2628 * findvar.c: Same.
2629 * gdbtypes.c: Same.
2630 * hppa-tdep.c: Same.
2631 * i386-tdep.c: Same.
2632 * jit.c: Same.
2633 * main.c: Same.
2634 * mdebugread.c: Same.
2635 * moxie-tdep.c: Same.
2636 * nto-procfs.c: Same.
2637 * osabi.c: Same.
2638 * ppc-linux-tdep.c: Same.
2639 * remote.c: Same.
2640 * riscv-tdep.c: Same.
2641 * s390-tdep.c: Same.
2642 * sh-tdep.c: Same.
2643 * sparc-linux-tdep.c: Same.
2644 * sparc-nat.c: Same.
2645 * stack.c: Same.
2646 * target-descriptions.c: Same.
2647 * top.c: Same.
2648 * varobj.c: Same.
2649
befcd486
TT
26502019-10-16 Tom Tromey <tom@tromey.com>
2651
2652 * objfiles.h (struct objfile) <original_name>: Now const.
2653
17bfe554
CB
26542019-10-16 Christian Biesinger <cbiesinger@google.com>
2655
2656 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2657 pass on to sigsetjmp's second argument.
2658 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2659
950b7495
KS
26602019-10-16 Keith Seitz <keiths@redhat.com>
2661
2662 PR gdb/23567
2663 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2664 sections whose size is greater than the file size.
2665
ff371ec9
JW
26662019-10-16 Jim Wilson <jimw@sifive.com>
2667
2668 * riscv-tdep.c (riscv_gcc_target_options): New.
2669 (riscv_gnu_triplet_regexp): New.
2670 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2671 set_gdbarch_gnu_triplet_regexp.
2672
fec4e896
CB
26732019-10-16 Christian Biesinger <cbiesinger@google.com>
2674
2675 * Makefile.in: Add xml-builtin.h.
2676 * features/feature_to_c.sh: Add an include for xml-builtin.h
2677 to ensure that the compiler checks that the types match.
2678 * xml-builtin.h: New file.
2679 * xml-support.c (fetch_xml_builtin): Add missing const.
2680 * xml-support.h: Remove declaration of xml_builtins.
2681
d10eccaa
TV
26822019-10-16 Tom de Vries <tdevries@suse.de>
2683
2684 PR tdep/25096
2685 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2686 (amd64_classify_aggregate): ... here.
2687 (amd64_classify_aggregate_field): Handled fiels of nested structs
2688 recursively.
2689
745ff14e
TV
26902019-10-16 Tom de Vries <tdevries@suse.de>
2691
2692 PR tdep/24104
2693 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2694 that handles 'theclass'.
2695
791b7405
AB
26962019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * linespec.c (decode_digits_ordinary): Update comment.
2699 * make-target-delegates: No longer need to handle VEC case.
2700 * memrange.c (normalize_mem_ranges): Update comment.
2701 * namespace.c (add_using_directive): Update comment.
2702 * objc-lang.c (uniquify_strings): Update comment.
2703 * ppc-linux-nat.c (struct thread_points): Update comment.
2704 * probe.h (find_probes_in_objfile): Update comment.
2705 * target.h (enum flash_preserve_mode): Update comment.
2706 * varobj.c (varobj_restrict_range): Update comment.
2707 * varobj.h (varobj_list_children): Update comment.
2708
0dc32745
AB
27092019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2710
2711 * Makefile.in: Remove references to vec.h and vec.c.
2712 * aarch64-tdep.c: No longer include vec.h.
2713 * ada-lang.c: Likewise.
2714 * ada-lang.h: Likewise.
2715 * arm-tdep.c: Likewise.
2716 * ax.h: Likewise.
2717 * breakpoint.h: Likewise.
2718 * charset.c: Likewise.
2719 * cp-support.h: Likewise.
2720 * dtrace-probe.c: Likewise.
2721 * dwarf2read.c: Likewise.
2722 * extension.h: Likewise.
2723 * gdb_bfd.c: Likewise.
2724 * gdbsupport/gdb_vecs.h: Likewise.
2725 * gdbsupport/vec.c: Remove.
2726 * gdbsupport/vec.h: Remove.
2727 * gdbthread.h: Likewise.
2728 * guile/scm-type.c: Likewise.
2729 * inline-frame.c: Likewise.
2730 * machoread.c: Likewise.
2731 * memattr.c: Likewise.
2732 * memrange.h: Likewise.
2733 * namespace.h: Likewise.
2734 * nat/linux-btrace.h: Likewise.
2735 * osdata.c: Likewise.
2736 * parser-defs.h: Likewise.
2737 * progspace.h: Likewise.
2738 * python/py-type.c: Likewise.
2739 * record-btrace.c: Likewise.
2740 * rust-exp.y: Likewise.
2741 * solib-target.c: Likewise.
2742 * stap-probe.c: Likewise.
2743 * target-descriptions.c: Likewise.
2744 * target-memory.c: Likewise.
2745 * target.h: Likewise.
2746 * varobj.c: Likewise.
2747 * varobj.h: Likewise.
2748 * xml-support.h: Likewise.
2749
ae640021
AB
27502019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2751
2752 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2753 Update for new std::vector based implementation.
2754 (process_psymtab_comp_unit_reader): Likewise.
2755 (scan_partial_symbols): Likewise.
2756 (recursively_compute_inclusions): Likewise.
2757 (compute_compunit_symtab_includes): Likewise.
2758 (process_imported_unit_die): Likewise.
2759 (queue_and_load_dwo_tu): Likewise.
2760 (follow_die_sig_1): Likewise.
2761 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2762 (typedef dwarf2_per_cu_ptr): Remove.
2763 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2764 function.
2765 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2766 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2767 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2768 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2769 std::vector.
2770
55dfc88f
TT
27712019-10-15 Tom Tromey <tromey@adacore.com>
2772
2773 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2774 TID.
2775
96b49c5e
TT
27762019-10-15 Tom Tromey <tromey@adacore.com>
2777
2778 * windows-nat.c (windows_nat_target::fetch_registers)
2779 (windows_nat_target::store_registers): Rename "pid" to "tid".
2780
953cff56
TT
27812019-10-15 Tom Tromey <tromey@adacore.com>
2782
2783 * gdbarch.h, gdbarch.c: Rebuild.
2784 * gdbarch.sh (gcc_target_options): Change return type to
2785 std::string.
2786 * compile/compile.c (get_args): Update.
2787 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2788 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2789 std::string.
2790 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2791 std::string.
2792 * arch-utils.c (default_gcc_target_options): Return std::string.
2793 * arch-utils.h (default_gcc_target_options): Return std::string.
2794 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2795
81e6b8eb
CB
27962019-10-15 Christian Biesinger <cbiesinger@google.com>
2797
2798 * breakpoint.c (breakpoint_chain): Make static.
2799 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2800 of accessing breakpoint_chain.
2801
95da600f
CB
28022019-10-15 Christian Biesinger <cbiesinger@google.com>
2803
2804 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2805 to a gdb::function_view and return value to bool.
2806 * breakpoint.h (iterate_over_breakpoints): Likewise.
2807 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2808 (pop_dummy_frame): Update.
2809 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2810 (gdbscm_breakpoints): Update.
2811 * python/py-breakpoint.c (build_bp_list): Update.
2812 (gdbpy_breakpoints): Update.
2813 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2814 Update.
2815 (bpfinishpy_handle_stop): Update.
2816 (bpfinishpy_handle_exit): Update.
2817 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2818 (svr4_update_solib_event_breakpoints): Update.
2819
ba18312d
AA
28202019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2821
2822 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2823 when unwrapping single-field structs.
2824
6acc1a0b
SM
28252019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2826
2827 * dwarf2read.c: Remove includes.
2828
284782de
SM
28292019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2830
2831 * ui-out.c (ui_out::call_do_message): Silence
2832 -Wformat-nonliteral warning.
2833
073bbbb0
SM
28342019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2835
2836 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2837 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2838 include: readline/tilde.h.
2839
7b9a15e1
CB
28402019-10-12 Christian Biesinger <cbiesinger@google.com>
2841
2842 * remote.c (remote_target::get_trace_status): Remove declaration of
2843 trace_regblock_size.
2844
cc8dee1f
CB
28452019-10-12 Christian Biesinger <cbiesinger@google.com>
2846
2847 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2848 (show_user): Remove declaration of cmdlist.
2849 * cli/cli-cmds.h (max_user_call_depth): Declare.
2850 * cli/cli-script.c (execute_user_command): Remove declaration
2851 of max_user_call_depth.
2852
a83d4ef6
JW
28532019-10-11 Jim Wilson <jimw@sifive.com>
2854
5f93c5a6
JW
2855 * gdbsupport/print-utils.h (pulongest): Fix comment.
2856 (plongest): Likewise.
2857 (phex): Add missing comment, mention leading zeros.
2858 (phex_nz): Add mention of no leading zeros to comment.
2859
a83d4ef6
JW
2860 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2861 plongest instead of unsigned long long cast.
2862
26344e0c
CB
28632019-10-10 Christian Biesinger <cbiesinger@google.com>
2864
2865 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2866 for external_editor_command and gdbtk_test.
2867
c2c440a9
CB
28682019-10-10 Christian Biesinger <cbiesinger@google.com>
2869
2870 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2871 * varobj.c (varobjdebug): Move comment to...
2872 * varobj.h (varobjdebug): ...here, and declare.
2873
a31bff9d
TT
28742019-10-09 Tom Tromey <tom@tromey.com>
2875
2876 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2877 erase_data_content.
2878
7523da63
TT
28792019-10-09 Tom Tromey <tom@tromey.com>
2880
2881 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
2882 * tui/tui-stack.c (tui_locator_window::rerender): Update.
2883 * tui/tui-command.c (tui_cmd_window::resize)
2884 (tui_refresh_cmd_win): Update.
2885 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
2886 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
2887 * tui/tui-data.c (~tui_gen_win_info): Remove.
2888 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2889 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
2890 (tui_redisplay_readline, tui_mld_flush)
2891 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
2892 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
2893 (tui_data_window::erase_data_content)
2894 (tui_data_item_window::rerender)
2895 (tui_data_item_window::refresh_window): Update.
2896 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
2897 (box_win, tui_gen_win_info::make_window)
2898 (tui_gen_win_info::make_visible): Update.
2899 (tui_delete_win): Remove.
2900 * tui/tui-winsource.c
2901 (tui_source_window_base::do_erase_source_content): Update.
2902 (tui_show_source_line, tui_source_window_base::update_tab_width)
2903 (tui_source_window_base::update_exec_info): Update.
2904 * tui/tui-data.h (struct curses_deleter): New.
2905 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
2906 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
2907
a7798e7f
TT
29082019-10-09 Tom Tromey <tom@tromey.com>
2909
2910 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
2911
5c45899e
TT
29122019-10-09 Tom Tromey <tom@tromey.com>
2913
2914 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
2915 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
2916
6d7fd9aa
TT
29172019-10-09 Tom Tromey <tom@tromey.com>
2918
2919 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
2920 window height directly.
2921 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
2922 declare.
2923 * tui/tui-layout.c (tui_default_win_height): Remove.
2924 (tui_default_win_viewport_height): Remove.
2925
d2dd1084
TT
29262019-10-09 Tom Tromey <tom@tromey.com>
2927
2928 * tui/tui.h: Remove comments.
2929
cff32449
TV
29302019-10-09 Tom de Vries <tdevries@suse.de>
2931
2932 * python/lib/gdb/printer/bound_registers.py: Use
2933 '^builtin_type_bound128' as regexp argument for
2934 add_builtin_pretty_printer.
2935
6a25e8a2
CB
29362019-10-09 Christian Biesinger <cbiesinger@google.com>
2937
2938 * guile/guile.c (guile_extension_script_ops): Remove forward
2939 declaration and mark as static.
2940 (guile_script_ops): Likewise.
2941 (extension_language_guile): Move further down in the file so
2942 it can reference the definitions for guile_{extension_,}script_ops.
2943
6d9d6da4
AA
29442019-10-09 Andreas Arnez <arnez@linux.ibm.com>
2945
2946 * s390-tdep.c (390_process_record): Handle new arch13 instructions
2947 except SORTL, DFLTCC, and KDSA.
2948
3abea05d
TT
29492019-10-08 Tom Tromey <tromey@adacore.com>
2950
2951 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
2952 (struct safe_symbol_file_add_args): Remove.
2953
dde996e2
TT
29542019-10-08 Tom Tromey <tromey@adacore.com>
2955
2956 * windows-nat.c: Don't include buildsym-legacy.h.
2957
cd6fdaa1
TT
29582019-10-08 Tom Tromey <tromey@adacore.com>
2959
2960 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
2961
79bb1944
CB
29622019-10-08 Christian Biesinger <cbiesinger@google.com>
2963
2964 * gdbtypes.c (overload_debug): Move comment to header.
2965 * gdbtypes.h (overload_debug): Declare.
2966 * valops.c: Remove declaration of overload_debug, instead
2967 include gdbtypes.h.
2968
34916edc
CB
29692019-10-08 Christian Biesinger <cbiesinger@google.com>
2970
2971 * language.c (show_language_command): Pass lang_frame_mismatch_warn
2972 through _().
2973 (lang_frame_mismatch_warn): Make const, mark with N_(), and
2974 move comment...
2975 * language.h (lang_frame_mismatch_warn): ... here. Also add
2976 declaration.
2977 * top.c (lang_frame_mismatch_warn): Remove declaration.
2978 (check_frame_language_change): Pass lang_frame_mismatch_warn
2979 through _().
2980
bad5c026
CB
29812019-10-07 Christian Biesinger <cbiesinger@google.com>
2982
2983 * c-lang.h (vtbl_ptr_name): Declare.
2984 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
2985 it from the header.
2986 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
2987
51f1fdc3
CB
29882019-10-07 Christian Biesinger <cbiesinger@google.com>
2989
2990 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
2991 gdb_static_assert.
2992
30d1f018
WP
29932019-10-07 Weimin Pan <weimin.pan@oracle.com>
2994
606813d5
WP
2995 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
2996 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
2997 * ctfread.c: New file.
2998 * ctfread.h: New file.
2999 * elfread.c: Include ctfread.h.
3000 (struct elfinfo text_p): New member ctfsect.
3001 (elf_locate_sections): Mark CTF section.
3002 (elf_symfile_read): Call elfctf_build_psymtabs.
3003 * Makefile.in (LIBCTF): Add.
3004 (CLIBS): Use it.
3005 (CDEPS): Likewise.
3006 (DIST): Add ctfread.c.
606813d5
WP
3007
30082019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3009
3010 * ctfread.c (struct nextfield): Renamed to ...
3011 (struct ctf_nextfield): ... this.
3012 (struct field_info): Renamed to ...
3013 (strut ctf_field_info): ... this.
3014 (attach_fields_to_type): Update for renamed structures.
3015 (ctf_add_member_cb): Likewise.
3016 (ctf_add_enum_member_cb): Likewise.
3017 (process_struct_members): Likewise.
3018 (process_enum_type): Likewise.
30d1f018 3019
518fe38c
WP
30202019-10-07 Weimin Pan <weimin.pan@oracle.com>
3021
3022 * tracectf.h: Rename, was ctf.h.
3023 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3024 * tracefile.c: Likewise.
3025 * tracepoint.c: Remove unused include ctf.h.
3026 * mi/mi-main.c: Likewise.
3027 * Makefile.in Replace ctf.c with tracectf.c.
3028
225f296a
JB
30292019-10-06 Joel Brobecker <brobecker@adacore.com>
3030
3031 * version.in: Change version number to "9.0.50.DATE-git".
3032
77c2dba3
TT
30332019-10-03 Tom Tromey <tom@tromey.com>
3034
3035 PR rust/24976:
3036 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3037
179aed7f
AB
30382019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3039
3040 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3041 cp_search_name_hash.
3042 * NEWS: Add entry about nested function support.
3043
0a4b0913
AB
30442019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3045 Andrew Burgess <andrew.burgess@embecosm.com>
3046
3047 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3048 for nested static variables when searchin VAR_DOMAIN.
3049 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3050 global scope, update comment.
3051 (add_partial_subprogram): Call add_partial_subprogram recursively
3052 for nested subroutines when processinng Fortran.
3053 (load_partial_dies): Process the child entities of a subprogram
3054 when processing Fortran.
3055 (partial_die_parent_scope): Handle building scope
3056 for Fortran nested functions.
3057 (process_die): Record that nested functions have a scope.
3058 (new_symbol): Always record Fortran subprograms on the global
3059 symbol list.
3060 (determine_prefix): How to build the prefix for Fortran
3061 subprograms.
3062
d8c06f22
AB
30632019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3064
3065 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3066 have just sent the thread a SIGSTOP and are waiting for it to
3067 arrive.
3068
a8b3b8e9
AB
30692019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3070
3071 * btrace.c (btrace_add_pc): Remove whitespace before the template
3072 parameter in 'std::vector <...>'.
3073 (parse_xml_btrace_block): Likewise.
3074 (btrace_maint_decode_pt): Likewise.
3075 (btrace_maint_update_packets): Likewise.
3076 (btrace_maint_print_packets): Likewise.
3077 * btrace.h (struct btrace_maint_info): Likewise.
3078 * dwarf2read.c (struct type_unit_group): Likewise.
3079 (build_type_psymtabs_reader): Likewise.
3080 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3081 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3082 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3083
4d825eab
TV
30842019-10-03 Tom de Vries <tdevries@suse.de>
3085
3086 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3087 the first line of the help text for set/show style metadata.
3088
80fd2826
TT
30892019-10-02 Tom Tromey <tromey@adacore.com>
3090
3091 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3092 * gdbsupport/common-inferior.c: New file.
3093 * infcmd.c (startup_with_shell): Don't define.
3094 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3095 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3096 * inferior.h (startup_with_shell): Don't declare.
3097
70054538
CB
30982019-10-02 Christian Biesinger <cbiesinger@google.com>
3099
3100 * gdbsupport/gdb_assert.h: Include errors.h.
3101 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3102
37f6a7f4
TT
31032019-10-02 Tom Tromey <tromey@adacore.com>
3104
3105 * NEWS: Add $_ada_exception entry.
3106 * ada-lang.c (struct ada_catchpoint): Add constructor.
3107 <m_kind>: New member.
3108 (allocate_location_exception, re_set_exception): Remove
3109 "ex" parameter.
3110 (should_stop_exception): Compute $_ada_exception.
3111 (check_status_exception, print_it_exception)
3112 (print_one_exception, print_mention_exception): Remove
3113 "ex" parameter.
3114 (allocate_location_catch_exception, re_set_catch_exception)
3115 (check_status_exception, print_it_catch_exception)
3116 (print_one_catch_exception, print_mention_catch_exception)
3117 (print_recreate_catch_exception)
3118 (allocate_location_catch_exception_unhandled)
3119 (re_set_catch_exception_unhandled)
3120 (check_status_exception, print_it_catch_exception_unhandled)
3121 (print_one_catch_exception_unhandled)
3122 (print_mention_catch_exception_unhandled)
3123 (print_recreate_catch_exception_unhandled)
3124 (allocate_location_catch_assert, re_set_catch_assert)
3125 (check_status_assert, print_it_catch_assert)
3126 (print_one_catch_assert, print_mention_catch_assert)
3127 (print_recreate_catch_assert)
3128 (allocate_location_catch_handlers, re_set_catch_handlers)
3129 (check_status_handlers, print_it_catch_handlers)
3130 (print_one_catch_handlers, print_mention_catch_handlers)
3131 (print_recreate_catch_handlers): Remove.
3132 (create_ada_exception_catchpoint): Update.
3133 (initialize_ada_catchpoint_ops): Update.
3134
fccf9de1
TT
31352019-10-02 Tom Tromey <tromey@adacore.com>
3136
3137 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3138 (create_excep_cond_exprs): Simplify exception string computation.
3139 (ada_exception_catchpoint_cond_string): Likewise.
3140
4b610737
TT
31412019-10-02 Tom Tromey <tromey@adacore.com>
3142
3143 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3144 * ada-lang.c (lesseq_defined_than): Handle
3145 LOC_STATIC.
3146 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3147 parameter.
3148 (dwarf2_has_info): Likewise.
3149 (new_symbol): Set maybe_copied on symbol when
3150 appropriate.
3151 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3152 parameter.
3153 <can_copy>: New member.
3154 * elfread.c (record_minimal_symbol): Set maybe_copied
3155 on symbol when appropriate.
3156 (elf_symfile_read): Update call to dwarf2_has_info.
3157 * minsyms.c (lookup_minimal_symbol_linkage): New
3158 function.
3159 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3160 * symtab.c (get_symbol_address, get_msymbol_address):
3161 New functions.
3162 * symtab.h (get_symbol_address, get_msymbol_address):
3163 Declare.
3164 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3165 maybe_copied.
3166 (struct symbol, struct minimal_symbol) <maybe_copied>:
3167 New member.
3168
1dd58850
TT
31692019-10-02 Tom Tromey <tromey@adacore.com>
3170
3171 * source.c (struct current_source_location): New.
3172 (current_source_key): New global.
3173 (current_source_symtab, current_source_line)
3174 (current_source_pspace): Remove.
3175 (get_source_location): New function.
3176 (get_current_source_symtab_and_line)
3177 (set_default_source_symtab_and_line)
3178 (set_current_source_symtab_and_line)
3179 (clear_current_source_symtab_and_line, select_source_symtab)
3180 (info_source_command, print_source_lines_base)
3181 (info_line_command, search_command_helper, _initialize_source):
3182 Update.
3183
5c281dbb
TT
31842019-10-02 Tom Tromey <tromey@adacore.com>
3185
3186 * source.c (select_source_symtab): Don't call
3187 decode_line_with_current_source.
3188
d3d32391
AB
31892019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3190
3191 * symtab.c (lookup_global_symbol): Search global block.
3192
38583298
TT
31932019-10-02 Tom Tromey <tromey@adacore.com>
3194
3195 * coffread.c (process_coff_symbol): Update.
3196 * dwarf2read.c (var_decode_location, new_symbol): Update.
3197 * mdebugread.c (parse_symbol): Update.
3198 * objfiles.c (relocate_one_symbol): Update.
3199 * stabsread.c (define_symbol, fix_common_block)
3200 (scan_file_globals): Update.
3201 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3202 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3203 * xcoffread.c (process_xcoff_symbol): Update.
3204
9344c18f
AA
32052019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3206
3207 * MAINTAINERS: Update my email address.
3208
df07e2c7
AB
32092019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3210
3211 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3212 std::vector.
3213 (build_type_psymtabs_reader): Update for std::vector.
3214 (build_type_psymtab_dependencies): Likewise.
3215 * dwarf2read.h: Remove use of DEF_VEC_P.
3216 (typedef sig_type_ptr): Delete.
3217
554ac434
AB
32182019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3219
3220 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3221 to std::vector.
3222 (btrace_maint_decode_pt): Likewise, and move allocation of the
3223 vector outside of the loop.
3224 (btrace_maint_update_packets): Update to handle change from VEC to
3225 std::vector.
3226 (btrace_maint_print_packets): Likewise.
3227 (maint_info_btrace_cmd): Likewise.
3228 * btrace.h: Remove use of DEF_VEC_O.
3229 (typedef btrace_pt_packet_s): Delete.
3230 (struct btrace_maint_info) <packets>: Change fromm VEC to
3231 std::vector.
3232 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3233
46f29a9a
AB
32342019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3235
3236 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3237 make accesses into the vector constant references.
3238 (btrace_add_pc): Update for std::vector.
3239 (btrace_stitch_bts): Likewise.
3240 (parse_xml_btrace_block): Likewise.
3241 (btrace_maint_update_packets): Likewise.
3242 (btrace_maint_print_packets): Likewise.
3243 (maint_info_btrace_cmd): Likewise.
3244 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3245 std::vector.
3246 (btrace_data::empty): Likewise.
3247 (btrace_data_append): Likewise.
3248 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3249 (typedef btrace_block_s): Delete.
3250 (struct btrace_block): Add constructor.
3251 (struct btrace_data_bts) <blocks>: Change to std::vector.
3252 * nat/linux-btrace.c (perf_event_read_bts): Update for
3253 std::vector.
3254 (linux_read_bts): Likewise.
3255
d770d56f
TT
32562019-10-01 Tom Tromey <tom@tromey.com>
3257
3258 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3259
9d636d67
TT
32602019-10-01 Tom Tromey <tom@tromey.com>
3261
3262 * stack.c (print_frame, info_frame_command_core): Use
3263 styled_string.
3264 * linux-thread-db.c (try_thread_db_load_1)
3265 (try_thread_db_load_from_pdir_1): Use styled_string.
3266 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3267 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3268 (maybe_print_unsupported_script_warning)
3269 (maybe_print_script_not_found_warning): Use styled_string.
3270 * ada-lang.c (user_select_syms): Use styled_string.
3271
7f6aba03
TT
32722019-10-01 Tom Tromey <tom@tromey.com>
3273
3274 * p-lang.c (pascal_printstr): Use metadata style.
3275 * value.c (show_convenience): Use metadata style.
3276 * valprint.c (valprint_check_validity, val_print_optimized_out)
3277 (val_print_not_saved, val_print_unavailable)
3278 (val_print_invalid_address, generic_val_print, val_print)
3279 (value_check_printable, val_print_array_elements): Use metadata
3280 style.
3281 * ui-out.h (class ui_out) <field_fmt>: New overload.
3282 <do_field_fmt>: Add style parameter.
3283 * ui-out.c (ui_out::field_fmt): New overload.
3284 * typeprint.c (type_print_unknown_return_type)
3285 (val_print_not_allocated, val_print_not_associated): Use metadata
3286 style.
3287 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3288 parameter.
3289 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3290 * tracepoint.c (tvariables_info_1): Use metadata style.
3291 * stack.c (print_frame_arg, print_frame_info, print_frame)
3292 (info_frame_command_core): Use metadata style.
3293 * skip.c (info_skip_command): Use metadata style.
3294 * rust-lang.c (rust_print_enum): Use metadata style.
3295 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3296 metadata style.
3297 * python/py-framefilter.c (py_print_single_arg): Use metadata
3298 style.
3299 * printcmd.c (do_one_display, print_variable_and_value): Use
3300 metadata style.
3301 * p-valprint.c (pascal_val_print)
3302 (pascal_object_print_value_fields): Use metadata style.
3303 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3304 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3305 parameter.
3306 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3307 * m2-valprint.c (m2_print_long_set): Use metadata style.
3308 * m2-typeprint.c (m2_print_type): Use metadata style.
3309 * infcmd.c (print_return_value_1): Use metadata style.
3310 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3311 * f-valprint.c (info_common_command_for_block): Use metadata
3312 style.
3313 * f-typeprint.c (f_type_print_base): Use metadata style.
3314 * expprint.c (print_subexp_standard): Use metadata style.
3315 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3316 * cli/cli-style.h (class cli_style_option): Add constructor.
3317 (metadata_style): Declare.
3318 * cli/cli-style.c (metadata_style): New global.
3319 (_initialize_cli_style): Register metadata style.
3320 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3321 parameter.
3322 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3323 * c-typeprint.c (c_type_print_base_struct_union)
3324 (c_type_print_base_1): Use metadata style.
3325 * breakpoint.c (watchpoint_value_print)
3326 (print_one_breakpoint_location): Use metadata style.
3327 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3328 style.
3329 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3330 style.
3331 * ada-valprint.c (val_print_packed_array_elements, printstr)
3332 (print_field_values, ada_val_print_ref, ada_val_print): Use
3333 metadata style.
3334 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3335 style.
3336 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3337 style.
3338 * ada-lang.c (user_select_syms): Use metadata style.
3339
14309bb6
TT
33402019-10-01 Tom Tromey <tom@tromey.com>
3341
3342 * cli/cli-cmds.c (pwd_command): Style output.
3343
6a831f06
PA
33442019-10-01 Pedro Alves <palves@redhat.com>
3345 Tom Tromey <tom@tromey.com>
3346
3347 * symtab.c (print_symbol_info): Use %ps.
3348 (print_msymbol_info): Use %ps.
3349 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3350 * printcmd.c (print_variable_and_value): Use %ps.
3351 * macrocmd.c (show_pp_source_pos): Use %ps.
3352 * infrun.c (print_exited_reason): Use ui_out::message.
3353 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3354 (describe_other_breakpoints): Use ui_out::message and new
3355 formats.
3356 (say_where): Use new formats.
3357 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3358 and new formats.
3359
2a3c1174
PA
33602019-10-01 Pedro Alves <palves@redhat.com>
3361 Tom Tromey <tom@tromey.com>
3362
3363 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3364 (test_gdb_formats): New function.
3365 (run_tests): Call it.
3366 (test_format_specifier): Update.
3367 * utils.h (fputs_filtered): Update comment.
3368 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3369 (fputs_styled_unfiltered): Declare.
3370 * utils.c (fputs_styled_unfiltered): New function.
3371 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3372 (vfprintf_filtered): Update.
3373 (vfprintf_unfiltered, vprintf_filtered): Update.
3374 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3375 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3376 disallow_ui_out_field>: New constants.
3377 (enum class field_kind): New.
3378 (struct base_field_s, struct signed_field_s): New.
3379 (signed_field): New function.
3380 (struct string_field_s): New.
3381 (string_field): New function.
3382 (struct styled_string_s): New.
3383 (styled_string): New function.
3384 (class ui_out) <message>: Add comment.
3385 <vmessage, call_do_message>: New methods.
3386 <do_message>: Add style parameter.
3387 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3388 methods.
3389 (ui_out::message): Rewrite.
3390 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3391 parameter.
3392 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3393 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3394 gdb_extensions parameter.
3395 (class format_piece): Add parameter to constructor.
3396 (n_int_args): New field.
3397 * gdbsupport/format.c (format_pieces::format_pieces): Add
3398 gdb_extensions parameter. Handle '*'.
3399 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3400 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3401 vfprintf_styled_no_gdbfmt.
3402 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3403 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3404 unfiltered output.
3405 * ui-style.h (struct ui_file_style) <ptr>: New method.
3406
0dfe5bfb
TT
34072019-10-01 Tom Tromey <tom@tromey.com>
3408
3409 * unittests/format_pieces-selftests.c: Update. Add final format.
3410 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3411 empty literal pieces.
3412
e43b10e1
TT
34132019-10-01 Tom Tromey <tom@tromey.com>
3414
3415 * ui-out.h (enum class ui_out_style_kind): Remove.
3416 (class ui_out) <field_string, field_stsream, do_field_string>:
3417 Change type of "style".
3418 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3419 (ui_out::field_string): Update.
3420 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3421 of "style".
3422 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3423 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3424 * stack.c (print_frame_arg, print_frame_info, print_frame):
3425 Update.
3426 * source.c (print_source_lines_base): Update.
3427 * solib.c (info_sharedlibrary_command): Update.
3428 * skip.c (info_skip_command): Update.
3429 * record-btrace.c (btrace_call_history_src_line)
3430 (btrace_call_history): Update.
3431 * python/py-framefilter.c (py_print_frame): Update.
3432 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3433 "style".
3434 * mi/mi-out.c (mi_ui_out::do_table_header)
3435 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3436 (mi_ui_out::do_field_string): Update.
3437 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3438 Update.
3439 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3440 "style".
3441 * cli-out.c (cli_ui_out::do_table_header)
3442 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3443 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3444 (cli_ui_out::do_field_fmt): Update.
3445 * breakpoint.c (print_breakpoint_location): Update.
3446 (update_static_tracepoint): Update.
3447
cd7c32c3
PW
34482019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3449
3450 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3451 conversion of gdb_datadir.
3452 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3453 remove not needed c_str ().
3454
8fe0f950
AT
34552019-09-30 Ali Tamur <tamur@google.com>
3456
3457 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3458 (dwarf2_string_attr): Likewise.
3459
5f48f8f3
AT
34602019-09-30 Ali Tamur <tamur@google.com>
3461
3462 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3463 (process_full_type_unit): Likewise.
3464 (dump_die_shallow): Likewise.
3465 (cu_debug_loc_section): Likewise.
3466
6fb08628
CB
34672019-09-28 Christian Biesinger <cbiesinger@google.com>
3468
3469 * minsyms.c (compare_minimal_symbols): Rename to...
3470 (minimal_symbol_is_less_than): ...this, and adjust to STL
3471 conventions (return bool, take arguments as references)
3472 (minimal_symbol_reader::install): Call std::sort instead
3473 of qsort.
3474
c7ee338a
CB
34752019-09-29 Christian Biesinger <cbiesinger@google.com>
3476
3477 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3478 hash and why.
3479 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3480 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3481
703a86c2
SM
34822019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3483
3484 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3485 * psympriv.h (add_psymbol_to_list): Move comment here and update
3486 it.
3487
0df0352a
TV
34882019-09-29 Tom de Vries <tdevries@suse.de>
3489
3490 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3491 Use $tmpdir/$(basename "$output_file").dwz instead of
3492 "${output_file}.dwz".
3493
ad75efa6
SM
34942019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3495
3496 PR gdb/25045
3497 * hppa-linux-nat.c: Include gdbarch.h.
3498
ececd218
CB
34992019-09-26 Christian Biesinger <cbiesinger@google.com>
3500
3501 * blockframe.c (find_pc_partial_function): Change return type to bool.
3502 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3503 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3504 (stub_gnu_ifunc_resolve_name): Likewise.
3505 * symtab.c (compare_filenames_for_search): Likewise.
3506 (compare_glob_filenames_for_search): Likewise.
3507 (matching_obj_sections): Likewise.
3508 (symbol_matches_domain): Likewise.
3509 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3510 (find_line_pc): Change return type to bool.
3511 (find_line_pc_range): Likewise.
3512 (producer_is_realview): Likewise.
3513 * symtab.h (symbol_matches_domain): Likewise.
3514 (find_pc_partial_function): Likewise.
3515 (find_pc_line_pc_range): Likewise.
3516 (in_gnu_ifunc_stub): Likewise.
3517 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3518 (find_line_pc): Likewise.
3519 (find_line_pc_range): Likewise.
3520 (matching_obj_sections): Likewise.
3521 (find_line_symtab): Change out parameter to bool.
3522 (producer_is_realview): Change return type to bool.
3523 (compare_filenames_for_search): Likewise.
3524 (compare_glob_filenames_for_search): Likewise.
3525
27a900b8
TT
35262019-09-26 Tom Tromey <tom@tromey.com>
3527
3528 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3529 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3530 * gdb_usleep.h: Remove.
3531 * gdb_usleep.c: Remove.
3532 * utils.c: Don't include gdb_usleep.h.
3533
5d63b30a
TT
35342019-09-26 Tom Tromey <tromey@adacore.com>
3535
3536 * python/py-type.c (type_to_type_object): Call check_typedef
3537 for stub types.
3538
12904d37
TT
35392019-09-26 Tom Tromey <tom@tromey.com>
3540
3541 * utils.h (initialize_utils): Don't declare.
3542 * top.c (gdb_init): Don't call initialize_utils.
3543 * utils.c (initialize_utils): Remove. Move contents...
3544 (_initialize_utils): ... here.
3545
858f25f0
TT
35462019-09-25 Tom Tromey <tom@tromey.com>
3547
3548 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3549 * utils.h (make_hex_string): Don't declare.
3550 * utils.c (make_hex_string): Remove.
3551
3d435220
TV
35522019-09-24 Tom de Vries <tdevries@suse.de>
3553
3554 PR gdb/23815
3555 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3556 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3557
ddd44b70
DD
35582019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3559
3560 * NEWS: Mention new simulator port for PRU.
3561
f945dedf
CB
35622019-09-23 Christian Biesinger <cbiesinger@google.com>
3563
3564 * ada-exp.y (write_object_remaining): Update.
3565 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3566 and eliminate the static buffer.
3567 (ada_decode_symbol): Update.
3568 (ada_la_decode): Update.
3569 (ada_sniff_from_mangled_name): Update.
3570 (is_valid_name_for_wild_match): Update.
3571 (ada_lookup_name_info::matches): Update and simplify.
3572 (name_matches_regex): Update.
3573 (ada_add_global_exceptions): Update.
3574 * ada-lang.h (ada_decode): Update signature.
3575 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3576 * dwarf-index-write.c (debug_names::insert): Update.
3577
7ab78ccb
SM
35782019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3579
3580 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3581 formatting.
3582
9252448b
SM
35832019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3584
3585 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3586 Change "nonzero" to "true" in documentation.
3587
626ca2c0
CB
35882019-09-20 Christian Biesinger <cbiesinger@google.com>
3589
3590 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3591 (_initialize_darwin_solib): Don't set
3592 darwin_so_ops.lookup_lib_global_symbol.
3593 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3594 set_gdbarch_iterate_over_objfiles_in_search_order.
3595 (elf_lookup_lib_symbol): Rename to...
3596 (svr4_iterate_over_objfiles_in_search_order): this, and update
3597 to iterate semantics.
3598 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3599 * solib.c (solib_global_lookup): Remove.
3600 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3601 (solib_global_lookup): Remove.
3602 * symtab.c (lookup_global_or_static_symbol): Remove call to
3603 solib_global_lookup.
3604
5a3a0d63
JB
36052019-09-20 Joel Brobecker <brobecker@adacore.com>
3606
3607 * NEWS: Move entries about default MI version now being
3608 version 3, and about the GDB/MI fix for multi-location
3609 breakpoints to the "since GDB 8.3" section.
3610
ffea1427
JB
36112019-09-20 Joel Brobecker <brobecker@adacore.com>
3612
3613 GDB 8.3.1 released.
3614
abf516c6
UW
36152019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3616
3617 * NEWS: Mention that Cell/B.E. debugging support was removed.
3618 * MAINTAINERS: Remove spu target.
3619
3620 * config/djgpp/fnchange.lst: Remove entries for removed files.
3621
3622 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3623 spu-multiarch.o, and spu-tdep.o.
3624 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3625 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3626 spu-multiarch.c, and spu-tdep.c.
3627 * spu-linux-nat.c: Remove file.
3628 * spu-multiarch.c: Remove file.
3629 * spu-tdep.c: Remove file.
3630 * spu-tdep.h: Remove file.
3631 * solib-spu.c: Remove file.
3632 * solib-spu.h: Remove file.
3633
3634 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3635 * configure.nat (spu-linux): Remove.
3636 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3637 solib-multiarch.o from gdb_target_obs.
3638 (spu*-*-*): Remove.
3639
3640 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3641 feature flag.
3642 (ppc_linux_no_features): Update.
3643 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3644 Cell/B.E. support.
3645 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3646 (tdesc_powerpc_cell64l): Likewise.
3647 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3648 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3649 Cell/B.E. support.
3650 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3651 Do not include "features/rs6000/powerpc-cell32l.c" or
3652 "features/rs6000/powerpc-cell64l.c".
3653 (ppc_linux_spu_section): Remove.
3654 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3655 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3656 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3657 (ppc_linux_spe_context_lookup): Remove.
3658 (ppc_linux_spe_context_inferior_created): Remove.
3659 (ppc_linux_spe_context_solib_loaded): Remove.
3660 (ppc_linux_spe_context_solib_unloaded): Remove.
3661 (ppc_linux_spe_context): Remove.
3662 (struct ppu2spu_cache): Remove.
3663 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3664 (struct ppu2spu_data): Remove.
3665 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3666 ppu2spu_unwind): Remove.
3667 (ppc_linux_init_abi): Remove Cell/B.E. support.
3668 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3669
3670 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3671 (rs6000/powerpc-cell64l-expedite): Likewise
3672 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3673 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3674 rs6000/powerpc-cell64l.xml.
3675 * features/rs6000/powerpc-cell32l.xml: Remove.
3676 * features/rs6000/powerpc-cell64l.xml: Likewise.
3677 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3678 * features/rs6000/powerpc-cell64l.c: Likewise.
3679 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3680 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3681 * regformats/reg-spu.dat: Remove.
3682
3683 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3684 * corelow.c (struct spuid_list): Remove.
3685 (add_to_spuid_list): Remove.
3686 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3687 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3688 (remote_protocol_features): Remove associated entries.
3689 (_initialize_remote): No longer initialize them.
3690 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3691 * linux-nat.c (SPUFS_MAGIC): Remove.
3692 (linux_proc_xfer_spu): Remove.
3693 (spu_enumerate_spu_ids): Remove.
3694 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3695 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3696 (linux_make_corefile_notes): No longer call it.
3697
3698 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3699 (cooked_write_test): Likewise.
3700
78e8cb91
TT
37012019-09-20 Tom Tromey <tom@tromey.com>
3702
3703 * NEWS: Mention case-sensitivity of TUI commands.
3704 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3705 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3706 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3707
f074b67e
TT
37082019-09-20 Tom Tromey <tom@tromey.com>
3709
3710 * tui/tui-source.c (tui_source_window::set_contents): Use
3711 make_unique_xstrdup.
3712 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3713 make_unique_xstrdup.
3714
63c4bf19
TT
37152019-09-20 Tom Tromey <tom@tromey.com>
3716
3717 * tui/tui-data.c: Remove separator comments.
3718 * tui/tui-layout.c: Remove separator comments.
3719 * tui/tui-win.c: Remove separator comments.
3720 * tui/tui-wingeneral.c: Remove separator comments.
3721
43df9b2f
TT
37222019-09-20 Tom Tromey <tom@tromey.com>
3723
3724 * tui/tui.h (strcat_to_buf): Don't declare.
3725 * tui/tui.c (strcat_to_buf): Remove.
3726
7226433c
TT
37272019-09-20 Tom Tromey <tom@tromey.com>
3728
3729 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3730 from "fullname".
3731 * tui/tui-source.c (tui_source_window::set_contents)
3732 (tui_source_window::location_matches_p)
3733 (tui_source_window::maybe_update): Update.
3734
80df3337
TT
37352019-09-20 Tom Tromey <tom@tromey.com>
3736
3737 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3738 Update.
3739 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3740 prefix.
3741 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3742 (tui_data_window::line_from_reg_element_no)
3743 (tui_data_window::first_reg_element_no_inline)
3744 (tui_data_window::show_registers)
3745 (tui_data_window::show_register_group)
3746 (tui_data_window::display_registers_from)
3747 (tui_data_window::display_registers_from_line)
3748 (tui_data_window::first_data_item_displayed)
3749 (tui_data_window::delete_data_content_windows)
3750 (tui_data_window::erase_data_content)
3751 (tui_data_window::do_scroll_vertical)
3752 (tui_data_window::refresh_window)
3753 (tui_data_window::check_register_values): Update.
3754
9923f347
TT
37552019-09-20 Tom Tromey <tom@tromey.com>
3756
3757 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3758 (struct tui_locator_window) <full_name, proc_name>: Now
3759 std::string.
3760 * tui/tui-stack.c (tui_locator_window::make_status_line)
3761 (tui_locator_window::set_locator_fullname)
3762 (tui_locator_window::set_locator_info): Update.
3763 * tui/tui-source.c (tui_source_window::set_contents)
3764 (tui_source_window::showing_source_p): Update.
3765
b76251ab
TT
37662019-09-20 Tom Tromey <tom@tromey.com>
3767
3768 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3769 Don't call tui_locator_win_info_ptr.
3770
0891be08
TT
37712019-09-20 Tom Tromey <tom@tromey.com>
3772
3773 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3774
1b935acf
TT
37752019-09-20 Tom Tromey <tom@tromey.com>
3776
3777 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3778 height for locator.
3779 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3780 * tui/tui-layout.c (show_source_disasm_command, show_data)
3781 (show_source_or_disasm_and_command): Use 1 as height for locator.
3782
9abd8a65
TT
37832019-09-20 Tom Tromey <tom@tromey.com>
3784
3785 * tui/tui.c (tui_enable): Update.
3786 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3787 Update.
3788 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3789 Update.
3790 * tui/tui-data.c (win_resized): Now bool.
3791 (tui_win_resized): Return bool.
3792 (tui_set_win_resized_to): Accept a bool.
3793
b5457826
TT
37942019-09-20 Tom Tromey <tom@tromey.com>
3795
3796 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3797 Change type of "refresh_values_only".
3798 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3799 type of "refresh_values_only".
3800
6b915f7d
TT
38012019-09-20 Tom Tromey <tom@tromey.com>
3802
3803 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3804 std::string.
3805 (tui_disassemble): Add "pos" parameter.
3806 (tui_disasm_window::set_contents): Simplify.
3807
2ad52f6f
TT
38082019-09-20 Tom Tromey <tom@tromey.com>
3809
3810 * tui/tui-winsource.h (struct tui_source_window_base)
3811 <show_source_content>: Now private.
3812 * tui/tui-winsource.c
3813 (tui_source_window_base::show_source_content): Don't handle empty
3814 content case.
3815
b3b1bde6
TT
38162019-09-20 Tom Tromey <tom@tromey.com>
3817
3818 * tui/tui-layout.c (show_source_disasm_command)
3819 (show_source_or_disasm_and_command): Don't call
3820 show_source_content.
3821
71a25ed2
TT
38222019-09-20 Tom Tromey <tom@tromey.com>
3823
3824 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3825 Declare.
3826 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3827 from tui_make_status_line.
3828 (tui_locator_window::rerender): Update.
3829
f8532154
TT
38302019-09-20 Tom Tromey <tom@tromey.com>
3831
3832 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3833 (tui_locator_window::rerender): Update.
3834
2d81b349
TT
38352019-09-20 Tom Tromey <tom@tromey.com>
3836
3837 * tui/tui-winsource.h (struct tui_source_window_base)
3838 <~tui_source_window_base>: Don't declare.
3839 <fullname>: Remove.
3840 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3841 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3842 member.
3843 * tui/tui-source.c (tui_source_window::set_contents): Update.
3844 (tui_source_window::location_matches_p)
3845 (tui_source_window::maybe_update): Update.
3846
f14bec58
TT
38472019-09-20 Tom Tromey <tom@tromey.com>
3848
3849 * tui/tui-winsource.h (~tui_source_element): Remove.
3850 (tui_source_element): Update.
3851 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3852 * tui/tui-winsource.c (tui_show_source_line): Update.
3853 * tui/tui-source.c (tui_source_window::set_contents): Update.
3854 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3855
78d5933a
TT
38562019-09-20 Tom Tromey <tom@tromey.com>
3857
3858 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3859 declare.
3860 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3861 tui_clear_source_windows_detail.
3862 * tui/tui-winsource.h (struct tui_source_window_base)
3863 <clear_detail>: Don't declare.
3864 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3865 Remove.
3866 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3867
d4207696
TT
38682019-09-20 Tom Tromey <tromey@adacore.com>
3869
3870 PR ada/24919:
3871 * block.c (contained_in): Fix final return value.
3872
00f93c44
AM
38732019-09-20 Alan Modra <amodra@gmail.com>
3874
3875 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3876 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3877 (read_indirect_string_from_dwz): Use bfd accessor.
3878 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3879 * machoread.c (macho_symfile_read_all_oso): Likewise.
3880 * solib.c (solib_bfd_open): Likewise.
3881
e4153ae6
CB
38822019-09-19 Christian Biesinger <cbiesinger@google.com>
3883
3884 * eval.c: Move declaration of overload_resolution to...
3885 * value.h: ...here.
3886
c7ae7675
CB
38872019-09-19 Christian Biesinger <cbiesinger@google.com>
3888
3889 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
3890 * arm-linux-tdep.c: Likewise.
3891 * arm-nbsd-nat.c: Likewise.
3892 * arm-tdep.h: Declare arm_apcs_32.
3893 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
3894
e86f08d2
CB
38952019-09-19 Christian Biesinger <cbiesinger@google.com>
3896
3897 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
3898 * dwarf2read.h: Declare dwarf_always_disassemble.
3899
f64e2f40
TV
39002019-09-19 Tom de Vries <tdevries@suse.de>
3901
3902 PR gdb/25009
3903 * source-cache.c (source_cache::ensure): Catch exception thrown during
3904 construction of the highlighter.
3905
fd361982
AM
39062019-09-18 Alan Modra <amodra@gmail.com>
3907
3908 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
3909 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
3910 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
3911 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
3912 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
3913 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
3914 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
3915 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
3916 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
3917 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
3918 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
3919 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
3920 * solib-spu.c, * solib-svr4.c, * solib-target.c,
3921 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
3922 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
3923 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
3924 * mi/mi-interp.c: Update throughout for bfd section macro and
3925 function changes.
3926 * gcore (gcore_create_callback): Use bfd_set_section_lma.
3927 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
3928
11061048
TT
39292019-09-18 Tom Tromey <tom@tromey.com>
3930
3931 * NEWS: Add entry.
3932 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
3933 call rl_initialize.
3934 (tui_enable): Do not call rl_initialize.
3935
7a27b85f
CG
39362019-09-18 Christian Groessler <chris@groessler.org>
3937
3938 * alpha-linux-nat.c: Include gdbarch.h.
3939
f64eea3a
SM
39402019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
3941
3942 * ui-file.c: Include cli/cli-style.h.
3943 (term_cli_styling): Remove cli_styling declaration.
3944
e6f7f6d1
AM
39452019-09-18 Alan Modra <amodra@gmail.com>
3946
3947 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
3948 to bfd_asymbol_section.
3949
1d38e9d1
AM
39502019-09-18 Alan Modra <amodra@gmail.com>
3951
3952 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
3953 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3954 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
3955
90d92a63
AM
39562019-09-18 Alan Modra <amodra@gmail.com>
3957
3958 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
3959 * spu-linux-nat.c (spu_bfd_open): Likewise.
3960
a3d181d2
CB
39612019-09-18 Christian Biesinger <cbiesinger@google.com>
3962
3963 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
3964 to bool to match definition in dwarf2read.c.
3965
491144b5
CB
39662019-09-17 Christian Biesinger <cbiesinger@google.com>
3967
3968 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
3969 (print_signatures): Likewise.
3970 (trust_pad_over_xvs): Likewise.
3971 * arch/aarch64-insn.c (aarch64_debug): Likewise.
3972 * arch/aarch64-insn.h (aarch64_debug): Likewise.
3973 * arm-linux-nat.c (arm_apcs_32): Likewise.
3974 * arm-linux-tdep.c (arm_apcs_32): Likewise.
3975 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
3976 * arm-tdep.c (arm_debug): Likewise.
3977 (arm_apcs_32): Likewise.
3978 * auto-load.c (debug_auto_load): Likewise.
3979 (auto_load_gdb_scripts): Likewise.
3980 (global_auto_load): Likewise.
3981 (auto_load_local_gdbinit): Likewise.
3982 (auto_load_local_gdbinit_loaded): Likewise.
3983 * auto-load.h (global_auto_load): Likewise.
3984 (auto_load_local_gdbinit): Likewise.
3985 (auto_load_local_gdbinit_loaded): Likewise.
3986 * breakpoint.c (disconnected_dprintf): Likewise.
3987 (breakpoint_proceeded): Likewise.
3988 (automatic_hardware_breakpoints): Likewise.
3989 (always_inserted_mode): Likewise.
3990 (target_exact_watchpoints): Likewise.
3991 (_initialize_breakpoint): Update.
3992 * breakpoint.h (target_exact_watchpoints): Change to bool.
3993 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
3994 * cli/cli-cmds.c (trace_commands): Likewise.
3995 * cli/cli-cmds.h (trace_commands): Likewise.
3996 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
3997 to bool*.
3998 * cli/cli-logging.c (logging_overwrite): Change to bool.
3999 (logging_redirect): Likewise.
4000 (debug_redirect): Likewise.
4001 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4002 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4003 to bool.
4004 <boolean_option_def>: Update.
4005 (struct flag_option_def): Change default type of Context to bool
4006 from int.
4007 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4008 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4009 (get_setshow_command_value_string): Likewise.
4010 * cli/cli-style.c (cli_styling): Change to bool.
4011 (source_styling): Likewise.
4012 * cli/cli-style.h (source_styling): Likewise.
4013 (cli_styling): Likewise.
4014 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4015 to bool.
4016 * command.h (var_types): Update comment.
4017 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4018 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4019 bool.
4020 (debug_compile_cplus_scopes): Likewise.
4021 * compile/compile-internal.h (compile_debug): Likewise.
4022 * compile/compile.c (compile_debug): Likewise.
4023 (struct compile_options) <raw>: Likewise.
4024 * cp-support.c (catch_demangler_crashes): Likewise.
4025 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4026 (usr_cmd_cris_dwarf2_cfi): Likewise.
4027 * csky-tdep.c (csky_debug): Likewise.
4028 * darwin-nat.c (enable_mach_exceptions): Likewise.
4029 * dcache.c (dcache_enabled_p): Likewise.
4030 * defs.h (info_verbose): Likewise.
4031 * demangle.c (demangle): Likewise.
4032 (asm_demangle): Likewise.
4033 * dwarf-index-cache.c (debug_index_cache): Likewise.
4034 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4035 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4036 * dwarf2read.c (check_physname): Likewise.
4037 (use_deprecated_index_sections): Likewise.
4038 (dwarf_always_disassemble): Likewise.
4039 * eval.c (overload_resolution): Likewise.
4040 * event-top.c (set_editing_cmd_var): Likewise.
4041 (exec_done_display_p): Likewise.
4042 * event-top.h (set_editing_cmd_var): Likewise.
4043 (exec_done_display_p): Likewise.
4044 * exec.c (write_files): Likewise.
4045 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4046 (debug_fbsd_nat): Likewise.
4047 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4048 Likewise.
4049 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4050 <backtrace_past_entry> Likewise.
4051 * gdb-demangle.h (demangle): Likewise.
4052 (asm_demangle): Likewise.
4053 * gdb_bfd.c (bfd_sharing): Likewise.
4054 * gdbcore.h (write_files): Likewise.
4055 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4056 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4057 * gdbthread.h (print_thread_events): Likewise.
4058 * gdbtypes.c (opaque_type_resolution): Likewise.
4059 (strict_type_checking): Likewise.
4060 * gnu-nat.c (gnu_debug_flag): Likewise.
4061 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4062 * guile/scm-param.c (pascm_variable): Add boolval.
4063 (add_setshow_generic): Update.
4064 (pascm_param_value): Update.
4065 (pascm_set_param_value_x): Update.
4066 * hppa-tdep.c (hppa_debug): Change to bool..
4067 * infcall.c (may_call_functions_p): Likewise.
4068 (coerce_float_to_double_p): Likewise.
4069 (unwind_on_signal_p): Likewise.
4070 (unwind_on_terminating_exception_p): Likewise.
4071 * infcmd.c (startup_with_shell): Likewise.
4072 * inferior.c (print_inferior_events): Likewise.
4073 * inferior.h (startup_with_shell): Likewise.
4074 (print_inferior_events): Likewise.
4075 * infrun.c (step_stop_if_no_debug): Likewise.
4076 (detach_fork): Likewise.
4077 (debug_displaced): Likewise.
4078 (disable_randomization): Likewise.
4079 (non_stop): Likewise.
4080 (non_stop_1): Likewise.
4081 (observer_mode): Likewise.
4082 (observer_mode_1): Likewise.
4083 (set_observer_mode): Update.
4084 (sched_multi): Change to bool.
4085 * infrun.h (debug_displaced): Likewise.
4086 (sched_multi): Likewise.
4087 (step_stop_if_no_debug): Likewise.
4088 (non_stop): Likewise.
4089 (disable_randomization): Likewise.
4090 * linux-tdep.c (use_coredump_filter): Likewise.
4091 (dump_excluded_mappings): Likewise.
4092 * linux-thread-db.c (auto_load_thread_db): Likewise.
4093 (check_thread_db_on_load): Likewise.
4094 * main.c (captured_main_1): Update.
4095 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4096 xx2_opt, boolean_opt>: Change to bool.
4097 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4098 * maint.c (maintenance_profile_p): Likewise.
4099 (per_command_time): Likewise.
4100 (per_command_space): Likewise.
4101 (per_command_symtab): Likewise.
4102 * memattr.c (inaccessible_by_default): Likewise.
4103 * mi/mi-main.c (mi_async): Likewise.
4104 (mi_async_1): Likewise.
4105 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4106 * nat/fork-inferior.h (startup_with_shell): Likewise.
4107 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4108 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4109 * nios2-tdep.c (nios2_debug): Likewise.
4110 * or1k-tdep.c (or1k_debug): Likewise.
4111 * parse.c (parser_debug): Likewise.
4112 * parser-defs.h (parser_debug): Likewise.
4113 * printcmd.c (print_symbol_filename): Likewise.
4114 * proc-api.c (procfs_trace): Likewise.
4115 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4116 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4117 (set_parameter_value): Update.
4118 (add_setshow_generic): Update.
4119 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4120 to bool*.
4121 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4122 int*.
4123 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4124 * record-btrace.c (record_btrace_target::store_registers): Update.
4125 * record-full.c (record_full_memory_query): Change to bool.
4126 (record_full_stop_at_limit): Likewise.
4127 * record-full.h (record_full_memory_query): Likewise.
4128 * remote-notif.c (notif_debug): Likewise.
4129 * remote-notif.h (notif_debug): Likewise.
4130 * remote.c (use_range_stepping): Likewise.
4131 (interrupt_on_connect): Likewise.
4132 (remote_break): Likewise.
4133 * ser-tcp.c (tcp_auto_retry): Likewise.
4134 * ser-unix.c (serial_hwflow): Likewise.
4135 * skip.c (debug_skip): Likewise.
4136 * solib-aix.c (solib_aix_debug): Likewise.
4137 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4138 (spu_auto_flush_cache_p): Likewise.
4139 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4140 Likewise.
4141 (struct info_print_options) <quiet>: Likewise.
4142 * symfile-debug.c (debug_symfile): Likewise.
4143 * symfile.c (auto_solib_add): Likewise.
4144 (separate_debug_file_debug): Likewise.
4145 * symfile.h (auto_solib_add): Likewise.
4146 (separate_debug_file_debug): Likewise.
4147 * symtab.c (basenames_may_differ): Likewise.
4148 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4149 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4150 (struct info_types_options) <quiet>: Likewise.
4151 * symtab.h (demangle): Likewise.
4152 (basenames_may_differ): Likewise.
4153 * target-dcache.c (stack_cache_enabled_1): Likewise.
4154 (code_cache_enabled_1): Likewise.
4155 * target.c (trust_readonly): Likewise.
4156 (may_write_registers): Likewise.
4157 (may_write_memory): Likewise.
4158 (may_insert_breakpoints): Likewise.
4159 (may_insert_tracepoints): Likewise.
4160 (may_insert_fast_tracepoints): Likewise.
4161 (may_stop): Likewise.
4162 (auto_connect_native_target): Likewise.
4163 (target_stop_and_wait): Update.
4164 (target_async_permitted): Change to bool.
4165 (target_async_permitted_1): Likewise.
4166 (may_write_registers_1): Likewise.
4167 (may_write_memory_1): Likewise.
4168 (may_insert_breakpoints_1): Likewise.
4169 (may_insert_tracepoints_1): Likewise.
4170 (may_insert_fast_tracepoints_1): Likewise.
4171 (may_stop_1): Likewise.
4172 * target.h (target_async_permitted): Likewise.
4173 (may_write_registers): Likewise.
4174 (may_write_memory): Likewise.
4175 (may_insert_breakpoints): Likewise.
4176 (may_insert_tracepoints): Likewise.
4177 (may_insert_fast_tracepoints): Likewise.
4178 (may_stop): Likewise.
4179 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4180 (make_thread_apply_all_options_def_group): Change argument from int*
4181 to bool*.
4182 (thread_apply_all_command): Update.
4183 (print_thread_events): Change to bool.
4184 * top.c (confirm): Likewise.
4185 (command_editing_p): Likewise.
4186 (history_expansion_p): Likewise.
4187 (write_history_p): Likewise.
4188 (info_verbose): Likewise.
4189 * top.h (confirm): Likewise.
4190 (history_expansion_p): Likewise.
4191 * tracepoint.c (disconnected_tracing): Likewise.
4192 (circular_trace_buffer): Likewise.
4193 * typeprint.c (print_methods): Likewise.
4194 (print_typedefs): Likewise.
4195 * utils.c (debug_timestamp): Likewise.
4196 (sevenbit_strings): Likewise.
4197 (pagination_enabled): Likewise.
4198 * utils.h (sevenbit_strings): Likewise.
4199 (pagination_enabled): Likewise.
4200 * valops.c (overload_resolution): Likewise.
4201 * valprint.h (struct value_print_options) <prettyformat_arrays,
4202 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4203 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4204 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4205 Likewise.
4206 * windows-nat.c (new_console): Likewise.
4207 (cygwin_exceptions): Likewise.
4208 (new_group): Likewise.
4209 (debug_exec): Likewise.
4210 (debug_events): Likewise.
4211 (debug_memory): Likewise.
4212 (debug_exceptions): Likewise.
4213 (useshell): Likewise.
4214 * windows-tdep.c (maint_display_all_tib): Likewise.
4215 * xml-support.c (debug_xml): Likewise.
4216
f1b620e9
MG
42172019-09-17 Mike Gulick <mgulick@mathworks.com>
4218
4219 * source.c (prepare_path_for_appending): New function.
4220 (openp): Make use of new function.
4221 (find_and_open_source): Search for the compilation directory and
4222 source file as a relative path beneath the directory search path.
4223
67f3ed6a
AB
42242019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4225
4226 * source-cache.c (source_cache::get_line_charpos): Catch
4227 exceptions and return false, this matches the behaviour documented
4228 in the header file.
4229
74332189
JB
42302019-09-17 Joel Brobecker <brobecker@adacore.com>
4231
4232 * ada-tasks.c (info_task): Remove quoting of the task's name.
4233
f2f24aa9
CB
42342019-09-16 Christian Biesinger <cbiesinger@google.com>
4235
4236 * symfile.c (auto_solib_add): Replace comment with a reference
4237 to the header file.
4238
6a062a93
CB
42392019-09-14 Christian Biesinger <cbiesinger@google.com>
4240
4241 * NEWS: Mention that gdb can now be compiled with Python 3
4242 on Windows.
4243
ec6c8338
AB
42442019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4245
4246 * maint.c (maint_print_section_data::maint_print_section_data):
4247 Force use of 'float log10 (float)' by casting the argument to
4248 float.
4249
aa17805f
AB
42502019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4251
4252 * maint.c: Add 'cmath' include.
4253 (struct maint_print_section_data): New structure.
4254 (print_section_index): New function.
4255 (print_bfd_section_info): Add header comment, small whitespace
4256 cleanup, and update to call new print_section_index function.
4257 (print_objfile_section_info): Likewise.
4258 (maint_obj_section_from_bfd_section): New function.
4259 (print_bfd_section_info_maybe_relocated): New function.
4260 (maintenance_info_sections): Add header comment, always use
4261 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4262
3dd9bb46
AB
42632019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4264
4265 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4266 inner scope, add check that the objfile has psymtabs before
4267 checking psymtabs_addrmap.
4268 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4269
4993045d
PW
42702019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4271
4272 * NEWS: Announce that Ada task names are now shown at more places,
4273 and between quotes (except in info task output).
4274 * gdb/ada-tasks.c (task_to_str): New function.
4275 (display_current_task_id): Call task_to_str.
4276 (task_command_1): Likewise.
4277 (print_ada_task_info): In non-mi mode, Properly align headers and data
4278 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4279
7a289707
RO
42802019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4281
4282 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4283 prstatus.pr_lwp.pr_info instead of making it up.
4284
f2aec7f6
CB
42852019-09-11 Christian Biesinger <cbiesinger@google.com>
4286
4287 * auto-load.c (auto_load_expand_dir_vars): Update.
4288 * defs.h (gdb_datadir): Change to std::string.
4289 (python_libdir): Likewise.
4290 (relocate_gdb_directory): Change return type to std::string.
4291 * guile/guile.c (gdbscm_data_directory): Update.
4292 (initialize_scheme_side): Update.
4293 * jit.c (jit_reader_dir): Change to std::string.
4294 (jit_reader_load_command): Update.
4295 * main.c (gdb_datadir): Change to std::string.
4296 (python_libdir): Likewise.
4297 (set_gdb_data_directory): Update.
4298 (relocate_path): Change to return std::string.
4299 (relocate_gdb_directory): Change to return std::string.
4300 (relocate_gdbinit_path_maybe_in_datadir): Update.
4301 (captured_main_1): Update.
4302 * python/python.c (do_start_initialization): Update.
4303 * top.c (show_gdb_datadir): Update.
4304 * xml-syscall.c (xml_init_syscalls_info): Update.
4305 (init_syscalls_info): Update.
4306
9224a013
CB
43072019-09-11 Christian Biesinger <cbiesinger@google.com>
4308
4309 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4310 out of get_init_files.
4311 (get_init_files): Update.
4312
f48cd836
CB
43132019-09-11 Christian Biesinger <cbiesinger@google.com>
4314
4315 * main.c (get_init_files): Change to use std::string.
4316 (captured_main_1): Update.
4317 (print_gdb_help): Update.
4318
9cab7ecd
AT
43192019-09-11 Ali Tamur <tamur@google.com>
4320
4321 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4322 implementation.
4323
67547d89
CB
43242019-09-11 Christian Biesinger <cbiesinger@google.com>
4325
4326 * dbxread.c (read_dbx_symtab): Update.
4327 * dwarf2read.c (load_partial_dies): Update.
4328 * mdebugread.c (parse_partial_symbols): Update.
4329 (handle_psymbol_enumerators): Update.
4330 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4331 * psymtab.c (add_psymbol_to_bcache): Likewise.
4332 (add_psymbol_to_list): Likewise.
4333 * symtab.c (symbol_set_names): Likewise.
4334 * symtab.h (symbol_set_names): Likewise.
4335 * xcoffread.c (scan_xcoff_symtab): Update.
4336
64b2d4a0
TT
43372019-09-11 Tom Tromey <tom@tromey.com>
4338
4339 * symfile-mem.c (symbol_file_add_from_memory): Use
4340 bfd_set_filename.
4341 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4342 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4343
3b00ef10
TT
43442019-09-10 Tom Tromey <tromey@adacore.com>
4345
4346 * dwarf-index-write.c (write_psymbols): Extend error message.
4347 (debug_names::insert): Add Ada code.
4348 (debug_names::write_psymbols): Remove Ada check.
4349 (debug_names) <m_string_obstack>: New member.
4350 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4351 (gdb_index_symbol_name_matcher::matches): Remove.
4352 (mapped_index_base::find_name_components_bounds): Add "lang"
4353 parameter.
4354 (mapped_index_base::build_name_components): Also split names
4355 according to Ada syntax.
4356 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4357 type of "match_callback".
4358 (check_match, check_find_bounds_finds)
4359 (dw2_expand_symtabs_matching): Update.
4360 (dw2_debug_names_iterator): Add new constructor.
4361 (dw2_debug_names_map_matching_symbols): New function.
4362 (dw2_debug_names_expand_symtabs_matching): Update.
4363 (dwarf2_debug_names_functions): Use
4364 dw2_debug_names_map_matching_symbols.
4365
aa391654
TT
43662019-09-10 Tom Tromey <tromey@adacore.com>
4367
4368 * dwarf2read.c (dw2_get_file_names_reader): Add the
4369 CU's file name to the results.
4370
b054970d
TT
43712019-09-10 Tom Tromey <tromey@adacore.com>
4372
4373 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4374 map_matching_symbols. Update.
4375 * dwarf2read.c (dw2_map_matching_symbols): Update.
4376 * psymtab.c (match_partial_symbol): Change type; update.
4377 (psym_map_matching_symbols): Likewise.
4378 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4379 type; update.
4380 * symfile.h (struct quick_symbol_functions)
4381 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4382 Remove "match".
4383
6a3dbf1b
TT
43842019-09-10 Tom Tromey <tromey@adacore.com>
4385
4386 * psymtab.c (map_block): Remove.
4387 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4388 * symtab.c (iterate_over_symbols_terminated): New function.
4389 * symtab.c (iterate_over_symbols_terminated): Declare.
4390
6969f124
TT
43912019-09-10 Tom Tromey <tromey@adacore.com>
4392
4393 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4394 * language.h (struct language_defn) <la_iterate_over_symbols>:
4395 Return bool.
4396 * symtab.c (iterate_over_symbols): Return bool.
4397 * symtab.h (iterate_over_symbols): Return bool.
4398
199b4314
TT
43992019-09-10 Tom Tromey <tromey@adacore.com>
4400
4401 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4402 (add_nonlocal_symbols): Update.
4403 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4404 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4405 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4406 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4407 Change type of "callback". Remove "data".
4408
a084a2a6
AT
4409
44102019-09-09 Ali Tamur <tamur@google.com>
4411
4412 * dwarf2read.c (comp_unit_head): Update comment.
4413 (dwarf2_dwo_name): New function declaration.
4414 (dwarf_unit_type_name): New function declaration.
4415 (read_comp_unit_head): Add support for new compilation units,
4416 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4417 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4418 (currently named as "signature") in their header. Also clarify error
4419 messages.
4420 (lookup_dwo_id): New function. Returns the dwo id of the given
4421 compile unit.
4422 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4423 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4424 functions.
4425 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4426 (dwarf2_dwo_name): Get the dwo name if present.
4427 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4428 purposes.
4429
25a2915e
TT
44302019-09-09 Tom Tromey <tom@tromey.com>
4431
4432 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4433
e4df0874
PW
44342019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4435
4436 * python/python.c (do_start_initialization): Make progname_copy static,
4437 to avoid a leak report.
4438
8634b462
TT
44392019-09-08 Tom Tromey <tom@tromey.com>
4440
4441 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4442
c7f839cb
SM
44432019-09-07 Simon Marchi <simon.marchi@efficios.com>
4444
4445 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4446 Change type to gdb::optional<block_enum>.
4447 (dw2_symtab_iter_init): Change block_index parameter type
4448 to gdb::optional<block_enum>.
4449 (dw2_lookup_symbol): Change block_index parameter
4450 type to block_enum.c
4451 (dw2_debug_names_lookup_symbol): Likewise.
4452 * psymtab.c (psym_lookup_symbol): Likewise.
4453 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4454 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4455 Likewise.
4456
ead0e69a
CB
44572019-09-06 Christian Biesinger <cbiesinger@google.com>
4458
4459 * defs.h (relocate_gdb_directory): Change int to bool in
4460 signature and rename flag to relocatable.
4461 * main.c (relocate_path): Likewise.
4462 (relocate_gdb_directory): Likewise.
4463
b16c44de
AM
44642019-09-06 Alan Modra <amodra@gmail.com>
4465
4466 * coffread.c (coff_symfile_read): Constify filename variable.
4467 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4468 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4469 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4470 * solib.c (reload_shared_libraries_1): Likewise.
4471 * symfile.c (reread_symbols): Likewise.
4472 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4473 * solib-darwin.c (darwin_bfd_open): Likewise.
4474 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4475
06ff036e
AB
44762019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4477
4478 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4479 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4480
4e962e74
TT
44812019-09-03 Tom Tromey <tromey@adacore.com>
4482
4483 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4484 types.
4485 (has_negatives): Unbias a range type bound.
4486 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4487 * gdbtypes.c (operator==): Handle new field.
4488 (create_range_type): Add "bias" parameter.
4489 (create_static_range_type, resolve_dynamic_range): Update.
4490 * gdbtypes.h (struct range_bounds) <bias>: New member.
4491 (create_range_type): Add bias parameter.
4492 * printcmd.c (print_scalar_formatted): Unbias range types.
4493 * value.c (unpack_long): Unbias range types.
4494 (pack_long): Bias range types.
4495
d90b8f26
AH
44962019-09-02 Alan Hayward <alan.hayward@arm.com>
4497
4498 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4499 probe arguments.
4500
fe01123e
AH
45012019-09-02 Alan Hayward <alan.hayward@arm.com>
4502
4503 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4504 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4505 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4506 (compile_probe_arg): Likewise.
4507 * probe.h (get_argument_count): Likewise.
4508 * solib-svr4.c (solib_event_probe_action): Likewise.
4509 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4510
e661ef01
AH
45112019-09-02 Alan Hayward <alan.hayward@arm.com>
4512
4513 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4514 code to here...
4515 (svr4_create_solib_event_breakpoints): ...from here.
4516
47a536d9
SDJ
45172019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4518
4519 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4520 suffix from warning message.
4521
d6a00eba
TT
45222019-08-30 Tom Tromey <tom@tromey.com>
4523
4524 * tui/tui-winsource.h (struct tui_source_window_base)
4525 <refresh_all>: Don't declare.
4526 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4527 Remove.
4528 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4529 tui_show_locator_content.
4530 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4531 declare.
4532 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4533 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4534 declare.
4535
55b2657b
TT
45362019-08-30 Tom Tromey <tom@tromey.com>
4537
4538 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4539
12a8555a
TT
45402019-08-30 Tom Tromey <tom@tromey.com>
4541
4542 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4543 Remove unnecessary forward declarations.
4544
900ac242
TT
45452019-08-30 Tom Tromey <tom@tromey.com>
4546
4547 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4548 rerender.
4549 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4550 tui_show_locator_content.
4551
99ab33fb
TT
45522019-08-30 Tom Tromey <tom@tromey.com>
4553
4554 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4555 (tui_locator_window::rerender): Rewrite using body of previous
4556 tui_show_locator_content.
4557
e594a5d1
TT
45582019-08-30 Tom Tromey <tom@tromey.com>
4559
4560 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4561 set_locator_fullname>: New methods.
4562 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4563 Rename from tui_set_locator_fullname.
4564 (tui_locator_window::set_locator_info): Rename from
4565 tui_set_locator_info. Return bool.
4566 (tui_update_locator_fullname, tui_show_frame_info): Update.
4567
715bb467
TT
45682019-08-30 Tom Tromey <tom@tromey.com>
4569
4570 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4571
772f3f03
TT
45722019-08-30 Tom Tromey <tom@tromey.com>
4573
4574 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4575 call touchwin.
4576
108e13ab
TT
45772019-08-30 Tom Tromey <tom@tromey.com>
4578
4579 * tui/tui-wingeneral.c (box_win): Assume win_info and
4580 win_info->handle cannot be NULL.
4581
cdaa6eb4
TT
45822019-08-30 Tom Tromey <tom@tromey.com>
4583
4584 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4585 refresh_window>: Declare.
4586 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4587 resize.
4588 (tui_data_item_window::rerender): Rename from
4589 tui_display_register.
4590 (tui_data_item_window::refresh_window): New method.
4591 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4592 no-op.
4593
89df7f90
TT
45942019-08-30 Tom Tromey <tom@tromey.com>
4595
4596 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4597 regs_column_count, current_group>: Move later. Now private.
4598 <get_current_group>: New method.
4599 * tui/tui-regs.c (tui_reg_command): Update.
4600 * tui/tui-layout.c (tui_set_layout): Update.
4601
1bf2866a
TT
46022019-08-30 Tom Tromey <tom@tromey.com>
4603
4604 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4605 (tui_data_window::rerender): Don't call
4606 check_and_display_highlight_if_needed.
4607 (tui_data_window::refresh_all): Remove call to
4608 erase_data_content.
4609
0670413d
TT
46102019-08-30 Tom Tromey <tom@tromey.com>
4611
4612 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4613 (tui_data_window::display_registers_from)
4614 (tui_data_window::display_reg_element_at_line)
4615 (tui_data_window::display_registers_from_line): Remove checks of
4616 "empty".
4617
18bb55c7
TT
46182019-08-30 Tom Tromey <tom@tromey.com>
4619
4620 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4621 Don't declare.
4622 * tui/tui-regs.c (tui_data_window::show_registers): Call
4623 rerender.
4624 (tui_data_window::rerender): Rename from display_all_data.
4625 (tui_data_window::rerender): Remove old implementation.
4626
1f6d2f10
TT
46272019-08-30 Tom Tromey <tom@tromey.com>
4628
4629 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4630 text.
4631 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4632
16d01f9c
BW
46332019-08-29 Bernhard Wodok <barto@gmx.net>
4634 Sergio Durigan Junior <sergiodj@redhat.com>
4635
4636 PR win32/24284
4637 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4638
d8f27c60
AB
46392019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4640
4641 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4642 when searching for types.
4643
1f20c35e
AB
46442019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4645
4646 * f-lang.c (f_language_defn): Use f_print_typedef.
4647 * f-lang.h (f_print_typedef): Declare.
4648 * f-typeprint.c (f_print_typedef): Define.
4649
550105b7
CB
46502019-08-27 Christian Biesinger <cbiesinger@google.com>
4651
4652 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4653
4acfdd20
AB
46542019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4655
4656 * cli/cli-utils.c (info_print_options_defs): Delete.
4657 (make_info_print_options_def_group): Delete.
4658 (extract_info_print_options): Delete.
4659 (info_print_command_completer): Delete.
4660 (info_print_args_help): Add extra parameter, and optionally
4661 include text about -n flag.
4662 * cli/cli-utils.h (struct info_print_options): Delete.
4663 (extract_info_print_options): Delete declaration.
4664 (info_print_command_completer): Delete declaration.
4665 (info_print_args_help): Add extra parameter, extend header
4666 comment.
4667 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4668 search_symbols.
4669 * stack.c (struct info_print_options): New type.
4670 (info_print_options_defs): New file scoped variable.
4671 (make_info_print_options_def_group): New static function.
4672 (info_print_command_completer): New static function.
4673 (info_locals_command): Update to use new local functions.
4674 (info_args_command): Likewise.
4675 (_initialize_stack): Add extra parameter to calls to
4676 info_print_args_help.
4677 * symtab.c (search_symbols): Add extra parameter, use this to
4678 possibly excluse non-debug symbols.
4679 (symtab_symbol_info): Add extra parameter, which is passed on to
4680 search_symbols.
4681 (struct info_print_options): New type.
4682 (info_print_options_defs): New file scoped variable.
4683 (make_info_print_options_def_group): New static function.
4684 (info_print_command_completer): New static function.
4685 (info_variables_command): Update to use local functions, and pass
4686 extra parameter through to symtab_symbol_info.
4687 (info_functions_command): Likewise.
4688 (info_types_command): Pass additional argument through to
4689 symtab_symbol_info.
4690 (rbreak_command): Pass extra argument to search_symbols.
4691 (_initialize_symtab): Add extra arguments for calls to
4692 info_print_args_help, and update help text for 'info variables',
4693 'whereis', and 'info functions' commands.
4694 * symtab.h (search_symbols): Add extra argument to declaration.
4695 * NEWS: Mention new flags.
4696
9aa55206
CB
46972019-08-26 Christian Biesinger <cbiesinger@google.com>
4698
4699 * symtab.c (lookup_static_symbol): Call the new function (and move
4700 it down to be next to lookup_global_symbol).
4701 (struct global_sym_lookup_data): Add block_enum member and rename to...
4702 (struct global_or_static_sym_lookup_data): ...this.
4703 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4704 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4705 (lookup_symbol_global_or_static_iterator_cb): ...this.
4706 (lookup_global_or_static_symbol): New function.
4707 (lookup_global_symbol): Call new function.
4708
5c31b358
TV
47092019-08-26 Tom de Vries <tdevries@suse.de>
4710
4711 PR c++/24852
4712 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4713 when pc_probe.prob == NULL.
4714
23c13d42
SM
47152019-08-25 Simon Marchi <simon.marchi@efficios.com>
4716
4717 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4718 variable symbol_linkage to symbol_linkage_.
4719
beadd3e8
SM
47202019-08-25 Simon Marchi <simon.marchi@efficios.com>
4721
4722 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4723 represent whether the symbol is static, dynamic, or we don't
4724 know.
4725
e3ec872f
YS
47262019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4727
4728 * gdb/rx-tdep.c (rx_register_names): New.
4729 (rx_register_name): Delete.
4730 (rx_psw_type): Delete.
4731 (rx_fpsw_type): Delete.
4732 (rx_register_type): Delete.
4733 (rx_gdbarch_init): Convert target-descriptions.
4734 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4735 * gdb/features/Makefile: Add rx.xml.
4736 * gdb/features/rx.xml: New.
4737 * gdb/features/rx.c: Generated.
4738 * gdb/NEWS: Mention target description support.
4739
d0509ba4
CB
47402019-08-22 Christian Biesinger <cbiesinger@google.com>
4741
4742 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4743 *slot_ptr.
4744
2d41fa11
SDJ
47452019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4746
4747 * configure.ac: Don't check for 'dlfcn.h' (moved to
4748 gdbsupport/common.m4).
4749 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4750 'gdbsupport/'.
4751 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4752 * compile/compile-c-support.c: Include
4753 'gdbsupport/gdb-dlfcn.h'.
4754 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4755 * gdb-dlfcn.c: Move to...
4756 * gdbsupport/gdb-dlfcn.c: ... here.
4757 * gdb-dlfcn.h: Move to...
4758 * gdbsupport/gdb-dlfcn.h: ... here.
4759
de8af808
SL
47602019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4761
4762 * nios2-tdep.c (struct reg_value): Improve comments. Make
4763 the offset field signed.
4764
27204489
CB
47652019-08-22 Christian Biesinger <cbiesinger@google.com>
4766
4767 * python/lib/gdb/__init__.py (_execute_file): New function.
4768 * python/python.c (python_run_simple_file): Call gdb._execute_file
4769 on Windows.
4770
43771869
AB
47712019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4772
4773 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4774 all uses as this was never set to anything but a zero value.
4775
26c957f1
PA
47762019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4777
4778 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4779
c07aae6e
CB
47802019-08-21 Christian Biesinger <cbiesinger@google.com>
4781
4782 * tui/tui-data.h (tui_gen_win_info): Add an =default
4783 move constructor, required by some GCC versions.
4784
3960cb7a
JF
47852019-08-21 Jinke Fan <fanjinke51@yeah.net>
4786
4787 * go32-nat.c (go32_sysinfo): Add hygon_p.
4788
04c72a68
TT
47892019-08-20 Tom Tromey <tom@tromey.com>
4790
4791 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4792 line_from_reg_element_no, first_reg_element_no_inline,
4793 display_all_data, delete_data_content_windows,
4794 erase_data_content>: Now private.
4795
072272ce
TT
47962019-08-20 Tom Tromey <tom@tromey.com>
4797
4798 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4799 (tui_unhighlight_win, tui_highlight_win)
4800 (tui_win_info::make_window): Update.
4801 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4802
973961bd
TT
48032019-08-20 Tom Tromey <tom@tromey.com>
4804
4805 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4806 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4807 (MAX_PID_WIDTH): Move to tui-stack.c.
4808 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4809 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4810 (MAX_PID_WIDTH): Move from tui-data.h.
4811
ab0e1f1a
TT
48122019-08-20 Tom Tromey <tom@tromey.com>
4813
4814 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4815 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4816 (box_win): Update.
4817 (tui_gen_win_info::make_window): Rename from tui_make_window.
4818 (tui_win_info::make_window): New method.
4819 (tui_gen_win_info::make_visible): Update.
4820 * tui/tui-source.c (tui_source_window::set_contents): Update.
4821 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4822 (tui_data_window::display_registers_from): Update.
4823 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4824 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4825 Declare.
4826 <can_box>: Remove.
4827 <title>: Remove.
4828 (struct tui_win_info) <make_window>: Declare.
4829 <can_box>: Now virtual.
4830 <title>: New member.
4831 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4832 * tui/tui-command.c (tui_cmd_window::resize): Update.
4833
100c2bf3
TT
48342019-08-20 Tom Tromey <tom@tromey.com>
4835
4836 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4837 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4838 (tui_data_window::check_register_values): Update.
4839
fa4dc567
TT
48402019-08-20 Tom Tromey <tom@tromey.com>
4841
4842 * tui/tui-regs.h (struct tui_data_window): Use
4843 DISABLE_COPY_AND_ASSIGN.
4844 <regs_content>: Change type, removing unique_ptr.
4845 <tui_data_window>: Add move constructor.
4846 * tui/tui-regs.c (tui_data_window::show_registers)
4847 (tui_data_window::show_register_group)
4848 (tui_data_window::display_registers_from)
4849 (tui_data_window::display_registers_from)
4850 (tui_data_window::first_data_item_displayed)
4851 (tui_data_window::delete_data_content_windows)
4852 (tui_data_window::rerender, tui_data_window::refresh_window)
4853 (tui_data_window::check_register_values): Update.
4854
ca02d7c8
TT
48552019-08-20 Tom Tromey <tom@tromey.com>
4856
4857 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4858 show_register_group>: Declare.
4859 (tui_show_register_group): Don't declare.
4860 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4861 tui_show_registers.
4862 (tui_data_window::show_register_group): Rename from
4863 tui_show_register_group.
4864 (tui_data_window::check_register_values, tui_reg_command):
4865 Update.
4866 * tui/tui-layout.c (tui_set_layout): Update.
4867
63356bfd
TT
48682019-08-20 Tom Tromey <tom@tromey.com>
4869
4870 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4871 Declare.
4872 (tui_check_register_values): Don't declare.
4873 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4874 from tui_check_register_values.
4875 * tui/tui-hooks.c (tui_register_changed): Update.
4876
42cc14a7
TT
48772019-08-20 Tom Tromey <tom@tromey.com>
4878
4879 * tui/tui-regs.c (tui_reg_layout): Move later.
4880 (tui_show_registers): Don't enable TUI mode or change layout.
4881
b9ad3686
TT
48822019-08-20 Tom Tromey <tom@tromey.com>
4883
4884 * tui/tui-regs.h (struct tui_data_item_window)
4885 <~tui_data_item_window>: Remove.
4886 <content>: Now a unique_xmalloc_ptr.
4887 * tui/tui-regs.c (tui_register_format): Return a
4888 unique_xmalloc_ptr.
4889 (tui_get_register): Update.
4890 (~tui_data_item_window): Remove.
4891 (tui_data_window::display_registers_from, tui_display_register):
4892 Update.
4893 * tui/tui-io.h (tui_expand_tabs): Update.
4894 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
4895 Remove "col" parameter.
4896
8e114aab
TT
48972019-08-20 Tom Tromey <tom@tromey.com>
4898
4899 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
4900 field.
4901 * tui/tui-regs.c (~tui_data_item_window): Update.
4902
1a4f81dd
TT
49032019-08-20 Tom Tromey <tom@tromey.com>
4904
4905 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
4906 earlier.
4907
0f8d8876
TT
49082019-08-20 Tom Tromey <tom@tromey.com>
4909
4910 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
4911
605dc2c2
TT
49122019-08-20 Tom Tromey <tom@tromey.com>
4913
4914 * tui/tui-source.h (struct tui_source_window): Update.
4915 * tui/tui-regs.c (tui_show_registers): Update.
4916 * tui/tui-disasm.h (struct tui_disasm_window): Update.
4917 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
4918 (NO_REGS_STRING): Remove defines.
4919
aedbe3bb
CM
49202019-08-20 Conrad Meyer <cem@FreeBSD.org>
4921
4922 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
4923 unnecessary thread walk if remote doesn't support the packet.
4924
7ce8f214
TT
49252019-08-19 Tom Tromey <tromey@adacore.com>
4926
4927 * python/py-value.c (value_has_field): Fix indentation.
4928
f21c2bd7
TT
49292019-08-19 Tom Tromey <tromey@adacore.com>
4930
4931 * printcmd.c (do_one_display, info_display_command): Update.
4932 * block.h (contained_in): Return bool. Add allow_nested
4933 parameter.
4934 * block.c (contained_in): Return bool. Add allow_nested
4935 parameter.
4936
d806ea2d
TT
49372019-08-19 Tom Tromey <tom@tromey.com>
4938
4939 * configure: Rebuild.
4940 * configure.ac: Disallow the combination of -static-libstdc++ and
4941 source highlight.
4942 * source-cache.c (get_language_name): Handle rust.
4943 (source_cache::get_source_lines): Ignore highlighting exceptions.
4944
398fdd60
TT
49452019-08-16 Tom Tromey <tom@tromey.com>
4946
4947 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
4948 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
4949 (struct tui_source_window_base) <make_visible, refresh_window,
4950 resize>: Remove methods.
4951 <execution_info>: Remove field.
4952 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
4953 (tui_show_source_line, tui_source_window_base)
4954 (~tui_source_window_base): Update.
4955 (tui_source_window_base::resize)
4956 (tui_source_window_base::make_visible)
4957 (tui_source_window_base::refresh_window): Remove.
4958 (tui_source_window_base::update_exec_info): Update.
4959 * tui/tui-source.c (tui_source_window::set_contents): Update.
4960 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4961
e699d331
TT
49622019-08-16 Tom Tromey <tom@tromey.com>
4963
4964 * tui/tui-hooks.c (tui_remove_hooks): Don't set
4965 deprecated_query_hook.
4966
bb01dbfc
TT
49672019-08-16 Tom Tromey <tom@tromey.com>
4968
4969 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
4970 (tui_update_source_windows_with_line): Update.
4971 * tui/tui-source.h (struct tui_source_window)
4972 <show_symtab_source>: Declare.
4973 (tui_show_symtab_source): Don't declare.
4974 * tui/tui-source.c (tui_show_symtab_source): Rename from
4975 tui_show_symtab_source.
4976
81c82c4b
TT
49772019-08-16 Tom Tromey <tom@tromey.com>
4978
4979 * tui/tui-winsource.h (struct tui_source_window_base)
4980 <set_contents>: Declare.
4981 * tui/tui-winsource.c
4982 (tui_source_window_base::update_source_window_as_is): Update.
4983 * tui/tui-source.h (struct tui_source_window) <set_contents>:
4984 Declare.
4985 (tui_set_source_content): Don't declare.
4986 * tui/tui-source.c (tui_source_window::set_contents): Rename from
4987 tui_set_source_content.
4988 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
4989 Declare.
4990 (tui_set_disassem_content): Don't declare.
4991 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
4992 tui_set_disassem_content.
4993
2ddaf614
TT
49942019-08-16 Tom Tromey <tom@tromey.com>
4995
4996 * tui/tui-winsource.h (struct tui_source_window_base)
4997 <update_breakpoint_info>: Declare.
4998 (tui_update_breakpoint_info): Don't declare.
4999 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5000 (tui_update_all_breakpoint_info): Update.
5001 (tui_source_window_base::update_breakpoint_info): Rename from
5002 tui_update_breakpoint_info.
5003 (tui_source_window_base::update_exec_info): Update.
5004
017f9828
TT
50052019-08-16 Tom Tromey <tom@tromey.com>
5006
5007 * tui/tui-winsource.h (struct tui_source_window_base)
5008 <update_source_window>: Declare.
5009 (tui_update_source_window): Don't declare.
5010 * tui/tui-winsource.c
5011 (tui_source_window_base::update_source_window): Rename from
5012 tui_update_source_window.
5013 (tui_source_window_base::rerender): Update.
5014 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5015 * tui/tui-disasm.c (tui_show_disassem)
5016 (tui_show_disassem_and_update_source)
5017 (tui_disasm_window::maybe_update): Update.
5018
ed8358e9
TT
50192019-08-16 Tom Tromey <tom@tromey.com>
5020
5021 * tui/tui-winsource.h (struct tui_source_window_base)
5022 <update_source_window_as_is>: Declare.
5023 (tui_update_source_window_as_is): Don't declare.
5024 * tui/tui-winsource.c (tui_update_source_window): Update
5025 (tui_source_window_base::update_source_window_as_is): Rename from
5026 tui_update_source_window_as_is.
5027 (tui_source_window_base::refill): Update.
5028 * tui/tui-source.c (tui_show_symtab_source): Update.
5029 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5030 Update.
5031
20149b6b
TT
50322019-08-16 Tom Tromey <tom@tromey.com>
5033
5034 * tui/tui-winsource.h (tui_update_source_window)
5035 (tui_update_source_window_as_is): Remove "noerror" parameter.
5036 * tui/tui-winsource.c (tui_update_source_window)
5037 (tui_update_source_window_as_is): Remove "noerror" parameter.
5038 (tui_update_source_windows_with_addr)
5039 (tui_update_source_windows_with_line)
5040 (tui_source_window_base::rerender)
5041 (tui_source_window_base::refill): Update.
5042 * tui/tui-source.h (tui_set_source_content)
5043 (tui_show_symtab_source): Remove "noerror" parameter.
5044 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5045 parameter.
5046 (tui_show_symtab_source): Likewise.
5047 (tui_source_window::maybe_update): Update.
5048 * tui/tui-disasm.c (tui_show_disassem)
5049 (tui_show_disassem_and_update_source)
5050 (tui_disasm_window::do_scroll_vertical)
5051 (tui_disasm_window::maybe_update): Update.
5052
2d83e710
TT
50532019-08-16 Tom Tromey <tom@tromey.com>
5054
5055 * tui/tui.c (tui_is_window_visible): Update.
5056 * tui/tui-wingeneral.c (tui_make_window)
5057 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5058 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5059 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5060 (tui_set_win_height_command, parse_scrolling_args): Update.
5061 * tui/tui-source.c (tui_source_window::style_changed): Update.
5062 * tui/tui-regs.c (tui_show_registers)
5063 (tui_data_window::first_data_item_displayed)
5064 (tui_data_window::delete_data_content_windows)
5065 (tui_check_register_values, tui_reg_command): Update.
5066 * tui/tui-disasm.c (tui_show_disassem): Update.
5067 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5068 method.
5069 <is_visible>: Remove field.
5070 * tui/tui-data.c (tui_next_win, tui_prev_win)
5071 (tui_delete_invisible_windows): Update.
5072
d4ab829a
TT
50732019-08-16 Tom Tromey <tom@tromey.com>
5074
5075 * tui/tui-winsource.h (struct tui_source_window_base)
5076 <m_has_locator>: Remove.
5077 * tui/tui-layout.c (show_source_disasm_command, show_data)
5078 (show_source_or_disasm_and_command): Update.
5079
aa7ca1bb
AH
50802019-08-16 Alan Hayward <alan.hayward@arm.com>
5081
5082 * NEWS (Other MI changes): New subsection.
5083 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5084 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5085 * arch-utils.c (default_get_pc_address_flags): New function.
5086 * arch-utils.h (default_get_pc_address_flags): New declaration.
5087 * gdbarch.sh: Add get_pc_address_flags.
5088 * gdbarch.c: Regenerate.
5089 * gdbarch.h: Likewise.
5090 * stack.c (print_pc): New function.
5091 (print_frame_info) (print_frame): Call print_pc.
5092
6eac171f
TV
50932019-08-16 Tom de Vries <tdevries@suse.de>
5094
5095 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5096 print_objfile_section_info.
5097
3df505f6
TT
50982019-08-15 Tom Tromey <tom@tromey.com>
5099
5100 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5101 calling update_cmdwin_start_line.
5102 * tui/tui-winsource.h (struct tui_source_window_base)
5103 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5104 <rerender>: Declare.
5105 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5106 Call rerender.
5107 (tui_source_window_base::set_new_height): Remove.
5108 (tui_source_window_base::rerender): Rename from
5109 do_make_visible_with_new_height.
5110 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5111 resize method.
5112 (tui_win_info::make_invisible_and_set_new_height)
5113 (tui_win_info::make_visible_with_new_height): Remove.
5114 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5115 Declare.
5116 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5117 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5118 do_make_visible_with_new_height>: Don't declare.
5119 <rerender>: Declare.
5120 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5121 set_new_height.
5122 (tui_data_window::do_make_visible_with_new_height): Remove.
5123 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5124 call tui_show_locator_content.
5125 (tui_gen_win_info::resize): Call rerender.
5126 (show_source_or_disasm_and_command): Don't call
5127 tui_show_locator_content.
5128 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5129 method.
5130 (struct tui_win_info) <rerender>: Declare.
5131 <set_new_height, make_invisible_and_set_new_height,
5132 make_visible_with_new_height>: Don't declare.
5133 * tui/tui-data.c (tui_win_list::rerender): New method.
5134 * tui/tui-command.h (struct tui_cmd_window)
5135 <do_make_visible_with_new_height>: Don't declare.
5136 * tui/tui-command.c
5137 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5138
272560b5
TT
51392019-08-15 Tom Tromey <tromey@adacore.com>
5140
5141 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5142 * ada-lang.c (ada_enum_name): Likewise.
5143
08235187
CB
51442019-08-15 Christian Biesinger <cbiesinger@google.com>
5145
5146 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5147 leading underscore.
5148 (GdbOutputErrorFile): Likewise.
5149 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5150 accordingly.
5151 (execute_unwinders): Rename to have a leading underscore.
5152 (auto_load_packages): Likewise.
5153 (global scope): Adjust call to auto_load_packages accordingly.
5154 (GdbSetPythonDirectory): Likewise.
5155 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5156 instead of execute_unwinders.
5157
db502012
TT
51582019-08-15 Tom Tromey <tom@tromey.com>
5159
5160 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5161 (show_data): Don't change window visibility.
5162 (tui_gen_win_info::resize): Remove special case for command
5163 window. Use wresize, when available.
5164 (show_source_or_disasm_and_command): Don't change window
5165 visibility.
5166 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5167 <make_visible>: New method.
5168 * tui/tui-command.c (tui_cmd_window::resize): New method.
5169
3891b65e
TT
51702019-08-15 Tom Tromey <tom@tromey.com>
5171
5172 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5173 (struct tui_source_windows): New.
5174 * tui/tui-winsource.c (tui_display_main): Update.
5175 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5176 (new_height_ok, parse_scrolling_args): Update.
5177 * tui/tui-layout.c (show_layout, show_data): Update.
5178 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5179 (tui_add_to_source_windows): Don't declare.
5180 * tui/tui-data.c (source_windows, tui_source_windows)
5181 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5182
ee556432
TT
51832019-08-15 Tom Tromey <tom@tromey.com>
5184
5185 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5186 Rename from reset.
5187 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5188 * tui/tui-layout.c (show_source_disasm_command, show_data):
5189 Update.
5190 (tui_gen_win_info::resize): Rename.
5191 (show_source_or_disasm_and_command): Update.
5192 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5193 reset.
5194
46f438e3
TT
51952019-08-15 Tom Tromey <tom@tromey.com>
5196
5197 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5198 * tui/tui-interp.c (tui_interp::init): Don't call
5199 tui_initialize_static_data.
5200 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5201
f4ce562c
TT
52022019-08-15 Tom Tromey <tom@tromey.com>
5203
5204 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5205 examine tui_win_list.
5206
c398c3d0
TT
52072019-08-15 Tom Tromey <tom@tromey.com>
5208
5209 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5210 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5211 tui_clear_source_content.
5212 (tui_clear_source_content): Remove.
5213 (tui_source_window_base::do_erase_source_content): Hoist call to
5214 content.clear().
5215 * tui/tui-stack.c (tui_show_frame_info): Don't call
5216 tui_clear_source_content.
5217
e25d2004
TT
52182019-08-15 Tom Tromey <tom@tromey.com>
5219
5220 * tui/tui-winsource.h (struct tui_source_window_base)
5221 <do_erase_source_content>: New method.
5222 <erase_source_content>: New method.
5223 (tui_erase_source_content): Don't declare.
5224 * tui/tui-winsource.c (tui_clear_source_content): Update.
5225 (tui_source_window_base::do_erase_source_content): Rename from
5226 tui_erase_source_content.
5227 (tui_source_window_base::show_source_content): Update.
5228 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5229 * tui/tui-source.h (struct tui_source_window)
5230 <erase_source_content>: New method.
5231 * tui/tui-disasm.h (struct tui_disasm_window)
5232 <erase_source_content>: New method.
5233
002f15c2
TT
52342019-08-15 Tom Tromey <tom@tromey.com>
5235
5236 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5237 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5238 constructor.
5239 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5240 * tui/tui-source.c (tui_set_source_content): Update.
5241 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5242
c9033fe8
TT
52432019-08-15 Tom Tromey <tom@tromey.com>
5244
5245 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5246 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5247 tui-source.c.
5248 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5249 Declare.
5250 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5251 method.
5252 (tui_source_window::maybe_update): Update.
5253
088f37dd
TT
52542019-08-15 Tom Tromey <tom@tromey.com>
5255
5256 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5257 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5258 tui-disasm.c.
5259 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5260 Declare.
5261 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5262 method.
5263 (tui_disasm_window::maybe_update): Update.
5264
a54700c6
TT
52652019-08-15 Tom Tromey <tom@tromey.com>
5266
5267 * tui/tui-winsource.h (struct tui_source_window_base)
5268 <maybe_update>: Declare.
5269 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5270 method.
5271 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5272 Declare.
5273 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5274 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5275 Declare.
5276 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5277
e2a678a5
TT
52782019-08-15 Tom Tromey <tom@tromey.com>
5279
5280 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5281
f2dda477
TT
52822019-08-15 Tom Tromey <tom@tromey.com>
5283
5284 * tui/tui-wingeneral.c: Include tui-stack.h.
5285 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5286 (struct tui_locator_window): Move from tui-data.h.
5287 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5288 (tui_initialize_static_data): Move from tui-data.c.
5289 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5290 (struct tui_locator_window): Move to tui-stack.c.
5291 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5292 (tui_initialize_static_data): Move to tui-stack.c.
5293
ed4a1084
TT
52942019-08-15 Tom Tromey <tom@tromey.com>
5295
5296 * tui/tui-layout.c (show_source_disasm_command)
5297 (show_source_or_disasm_and_command): Use make_visible method, not
5298 tui_make_window.
5299 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5300 Remove.
5301
65962b20
TT
53022019-08-15 Tom Tromey <tom@tromey.com>
5303
5304 * tui/tui-wingeneral.h (tui_make_window): Update.
5305 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5306 parameter.
5307 (tui_gen_win_info::make_visible): Update.
5308 * tui/tui-regs.c (tui_data_window::display_registers_from):
5309 Update.
5310 * tui/tui-layout.c (show_source_disasm_command)
5311 (show_source_or_disasm_and_command): Update.
5312 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5313 (enum tui_box): Remove.
5314 (struct tui_win_info) <can_box>: New method.
5315 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5316 method.
5317
2208ee91
TV
53182019-08-15 Tom de Vries <tdevries@suse.de>
5319
5320 * linux-nat-trad.c: Include gdbarch.h.
5321
75faf5c4
AH
53222019-08-14 Alan Hayward <alan.hayward@arm.com>
5323
5324 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5325 register sizes.
5326
b1c896b3
TT
53272019-08-14 Tom Tromey <tromey@adacore.com>
5328
5329 * darwin-nat.c: Include gdbarch.h.
5330 * darwin-nat-info.c: Include gdbarch.h.
5331
6405cd73
TT
53322019-08-13 Tom Tromey <tom@tromey.com>
5333
5334 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5335 Remove.
5336 * tui/tui-data.c (tui_initialize_static_data): Update.
5337
5216580d
TT
53382019-08-13 Tom Tromey <tom@tromey.com>
5339
5340 * tui/tui-winsource.h (struct tui_exec_info_window)
5341 <~tui_exec_info_window, maybe_allocate_content, get_content,
5342 m_content>: Remove.
5343 (struct tui_source_window_base) <set_exec_info_content,
5344 show_exec_info_content>: Don't declare.
5345 * tui/tui-winsource.c
5346 (tui_exec_info_window::maybe_allocate_content): Remove.
5347 (tui_source_window_base::update_exec_info): Rename from
5348 set_exec_info_content.
5349 (tui_source_window_base::show_exec_info_content)
5350 (tui_source_window_base::update_exec_info): Remove.
5351
93858ad3
TT
53522019-08-13 Tom Tromey <tom@tromey.com>
5353
5354 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5355 declare.
5356 * tui/tui-winsource.c (tui_update_source_window_as_is)
5357 (tui_update_source_windows_with_addr, tui_erase_source_content):
5358 Update.
5359 (tui_clear_exec_info_content): Remove.
5360
e321e7ce
TT
53612019-08-13 Tom Tromey <tom@tromey.com>
5362
5363 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5364 declare.
5365 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5366 call tui_erase_exec_info_content.
5367 (tui_clear_exec_info_content): Rename from
5368 tui_erase_exec_info_content.
5369 (tui_clear_exec_info_content): Delete.
5370
8270ac62
TT
53712019-08-13 Tom Tromey <tom@tromey.com>
5372
5373 * tui/tui-winsource.h (struct tui_source_window_base)
5374 <show_exec_info_content>: Declare.
5375 (tui_show_exec_info_content): Don't declare.
5376 * tui/tui-winsource.c
5377 (tui_source_window_base::show_exec_info_content): Rename from
5378 tui_show_exec_info_content.
5379 (tui_source_window_base::update_exec_info): Update.
5380
7b56485d
TT
53812019-08-13 Tom Tromey <tom@tromey.com>
5382
5383 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5384 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5385 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5386 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5387 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5388 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5389 ... here.
5390
7ba913dc
TT
53912019-08-13 Tom Tromey <tom@tromey.com>
5392
5393 * tui/tui-winsource.h (struct tui_source_window_base)
5394 <update_exec_info>: Declare.
5395 (tui_update_exec_info): Don't declare.
5396 * tui/tui-winsource.c (tui_update_source_window_as_is)
5397 (tui_source_window_base::refresh_all)
5398 (tui_update_all_breakpoint_info): Update.
5399 (tui_source_window_base::update_exec_info): Rename from
5400 tui_update_exec_info.
5401 * tui/tui-stack.c (tui_show_frame_info): Update.
5402
37a4a131
TT
54032019-08-13 Tom Tromey <tom@tromey.com>
5404
5405 * tui/tui-winsource.h (struct tui_source_window_base)
5406 <set_exec_info_content>: Declare.
5407 (tui_set_exec_info_content): Don't declare.
5408 * tui/tui-winsource.c
5409 (tui_source_window_base::set_exec_info_content): Rename from
5410 tui_set_exec_info_content.
5411 (tui_update_exec_info): Update.
5412
0bd27e07
TT
54132019-08-13 Tom Tromey <tom@tromey.com>
5414
5415 * tui/tui-winsource.h (struct tui_source_window_base)
5416 <show_source_content>: Declare.
5417 (tui_show_source_content): Don't declare.
5418 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5419 (tui_source_window_base::show_source_content): Rename from
5420 tui_show_source_content.
5421 (tui_source_window_base::refresh_all): Update.
5422 * tui/tui-layout.c (show_source_disasm_command)
5423 (show_source_or_disasm_and_command): Update.
5424
b4ef5aeb
TT
54252019-08-13 Tom Tromey <tom@tromey.com>
5426
5427 * tui/tui-winsource.c (tui_erase_source_content)
5428 (tui_show_source_content, tui_source_window_base::refresh_all):
5429 Update.
5430 * tui/tui-wingeneral.h
5431 (tui_check_and_display_highlight_if_needed): Don't declare.
5432 * tui/tui-wingeneral.c
5433 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5434 check_and_display_highlight_if_needed.
5435 * tui/tui-win.c (tui_rehighlight_all)
5436 (tui_win_info::make_visible_with_new_height): Update.
5437 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5438 (tui_data_window::erase_data_content)
5439 (tui_data_window::display_all_data): Update.
5440 * tui/tui-data.h (struct tui_win_info)
5441 <check_and_display_highlight_if_needed>: Declare.
5442
fede5273
TT
54432019-08-13 Tom Tromey <tom@tromey.com>
5444
5445 * tui/tui-win.c (tui_resize_all): Call
5446 tui_delete_invisible_windows.
5447 * tui/tui-layout.c (show_layout): Call
5448 tui_delete_invisible_windows.
5449 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5450 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5451
22c3f490
TT
54522019-08-13 Tom Tromey <tom@tromey.com>
5453
5454 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5455 tui_add_win_to_layout.
5456
16cb7910
TT
54572019-08-13 Tom Tromey <tom@tromey.com>
5458
5459 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5460 * tui/tui-layout.c (tui_default_win_height): Now static.
5461
cc0c3ffb
TT
54622019-08-13 Tom Tromey <tom@tromey.com>
5463
5464 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5465 single switch.
5466 (show_source_disasm_command, show_source_or_disasm_and_command):
5467 Don't check current layout.
5468
3f3ffe54
TT
54692019-08-13 Tom Tromey <tom@tromey.com>
5470
5471 * tui/tui-wingeneral.c (make_all_visible): Remove.
5472 (tui_make_all_invisible): Simplify.
5473 * tui/tui-layout.c (tui_make_all_invisible): Move from
5474 tui-wingeneral.c; simplify.
5475 (show_layout): Hoist call to tui_make_all_invisible.
5476 (show_data): Don't call tui_make_all_invisible.
5477
69258091
TT
54782019-08-13 Tom Tromey <tom@tromey.com>
5479
5480 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5481 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5482
62cf57fe
TT
54832019-08-13 Tom Tromey <tom@tromey.com>
5484
5485 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5486 tui-data.c.
5487 (show_source_disasm_command, show_data)
5488 (show_source_or_disasm_and_command): Don't use
5489 tui_set_current_layout_to.
5490 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5491 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5492 tui-layout.c.
5493 (tui_set_current_layout_to): Remove.
5494
2afade5d
TT
54952019-08-13 Tom Tromey <tom@tromey.com>
5496
5497 * tui/tui-layout.c (tui_set_layout): Update.
5498 * tui/tui-data.h (struct tui_layout_def): Remove.
5499 (tui_layout_def): Don't declare.
5500 * tui/tui-data.c (layout_def): Remove.
5501 (tui_layout_def): Remove.
5502
a3504e96
TT
55032019-08-13 Tom Tromey <tom@tromey.com>
5504
5505 * tui/tui-winsource.h (struct tui_source_window_base)
5506 <clear_detail>: No longer "override".
5507 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5508 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5509 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5510 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5511 Remove.
5512 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5513
29c92911
TT
55142019-08-13 Tom Tromey <tromey@adacore.com>
5515
5516 * tracepoint.c: Don't include readline.h or history.h.
5517
86c6b807
TT
55182019-08-12 Tom Tromey <tom@tromey.com>
5519
5520 * configure: Rebuild.
5521 * configure.ac: Check for readline 7.
5522 * NEWS: Mention readline 7 requirement.
5523 * README: Update.
5524
5db2718c
TT
55252019-08-12 Tom Tromey <tom@tromey.com>
5526
5527 * mingw-hdep.c (gdb_select): Remove readline hack.
5528
dac36daf
PFC
55292019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5530
5531 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5532 when the function fails.
5533
1022c627
AA
55342019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5535
5536 * s390-tdep.c (s390_type_align): New function.
5537 (s390_gdbarch_init): Set it as type_align gdbarch method.
5538
eba4caf2
TV
55392019-08-09 Tom de Vries <tdevries@suse.de>
5540
5541 PR gdb/24591
5542 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5543 pc_low with relocation offset.
5544
123cd851
TT
55452019-08-07 Tom Tromey <tromey@adacore.com>
5546
5547 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5548 (print_frame_args): Update.
5549 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5550 Update.
5551 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5552 * frame.h (struct frame_arg): Add initializers.
5553 <error>: Now a unique_xmalloc_ptr.
5554
3d31bc39
AH
55552019-08-07 Alan Hayward <alan.hayward@arm.com>
5556
5557 * NEWS: Expand the Pointer Authentication entry.
5558 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5559 (aarch64_frame_unmask_lr): ... to this.
5560 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5561 Call aarch64_frame_unmask_lr.
5562 * frame.c (struct frame_info): Add "masked" variable.
5563 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5564 (fprint_frame): Check for masked pc.
5565 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5566 declarations.
5567 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5568 * stack.c (print_frame): Check for masked pc.
5569
0cf9feb9
TT
55702019-08-06 Tom Tromey <tom@tromey.com>
5571
5572 * stabsread.c (patch_block_stabs, read_one_struct_field)
5573 (read_enum_type): Use obstack_strndup.
5574 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5575 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5576 * dwarf2read.c (guess_full_die_structure_name)
5577 (anonymous_struct_prefix): Use obstack_strndup.
5578 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5579 * c-exp.y (yylex): Use obstack_strndup.
5580 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5581 (write_var_or_type): Use obstack_strndup.
5582
efba19b0
TT
55832019-08-06 Tom Tromey <tom@tromey.com>
5584
5585 * symfile.c (reread_symbols): Use obstack_strdup.
5586 * stabsread.c (read_type): Use obstack_strdup.
5587 * gdb_obstack.h (obstack_strdup): New overload.
5588 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5589 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5590 (dwarf2_canonicalize_name): Use obstack_strdup.
5591 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5592 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5593 Use obstack_strdup.
5594
f25102f7
TT
55952019-08-06 Tom Tromey <tom@tromey.com>
5596
5597 * gdb_obstack.h (obstack_strdup): Define.
5598 * gdb_obstack.c (obstack_strdup): Don't define.
5599
021887d8
TT
56002019-08-06 Tom Tromey <tom@tromey.com>
5601
5602 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5603 obstack_strdup.
5604 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5605 obstack_strdup.
5606 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5607 * stabsread.c (common_block_start): Use obstack_strdup.
5608 * objfiles.c (set_objfile_main_name, objfile): Use
5609 obstack_strdup.
5610 * namespace.c (add_using_directive): Use obstack_strdup.
5611 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5612 * jit.c (finalize_symtab): Use obstack_strdup.
5613 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5614 (guess_partial_die_structure_name, partial_die_info::fixup)
5615 (dwarf2_name): Use obstack_strdup.
5616 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5617 obstack_strdup.
5618 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5619 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5620 obstack_strdup.
5621 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5622
d2834edc
PW
56232019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5624
5625 * unittests/help-doc-selftests.c: New file.
5626 * Makefile.in: Add the new file.
5627
590042fc
PW
56282019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5629
5630 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5631 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5632 the full first line, except when FOR_VALUE_PREFIX. In this case,
5633 the trailing '.' is not output, and the first character is uppercased.
5634 (print_help_for_command): Update call to print_doc_line.
5635 (print_doc_of_command): Likewise.
5636 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5637 * cli/cli-option.c (append_indented_doc): Do not append newline.
5638 (build_help_option): Append newline after first appended_indented_doc
5639 only if a second call is done.
5640 (build_help): Append 2 new lines before each option, except the first
5641 one.
5642 * compile/compile.c (_initialize_compile): Add new lines after
5643 %OPTIONS%, when not at the end of the help.
5644 Change help doc or code
5645 producing the help doc to respect the invariants.
5646 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5647 Also removed the new line after 'Options:', as all other commands
5648 do not put an empty line between 'Options:' and the first option.
5649 * printcmd.c (_initialize_printcmd): Likewise.
5650 * stack.c (_initialize_stack): Likewise.
5651 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5652 incorrectly telling COMMAND is optional.
5653 * ada-lang.c (_initialize_ada_language): Change help doc or code
5654 producing the help doc to respect the invariants.
5655 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5656 * breakpoint.c (_initialize_breakpoint): Likewise.
5657 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5658 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5659 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5660 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5661 _initialize_cli_style): Likewise.
5662 * corelow.c (core_target_info): Likewise.
5663 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5664 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5665 * filesystem.c (_initialize_filesystem): Likewise.
5666 * frame.c (_initialize_frame): Likewise.
5667 * gnu-nat.c (add_task_commands): Likewise.
5668 * infcall.c (_initialize_infcall): Likewise.
5669 * infcmd.c (_initialize_infcmd): Likewise.
5670 * interps.c (_initialize_interpreter): Likewise.
5671 * language.c (_initialize_language): Likewise.
5672 * linux-fork.c (_initialize_linux_fork): Likewise.
5673 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5674 * maint.c (_initialize_maint_cmds): Likewise.
5675 * memattr.c (_initialize_mem): Likewise.
5676 * printcmd.c (_initialize_printcmd): Likewise.
5677 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5678 _RegEx): Likewise.
5679 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5680 * record-btrace.c (_initialize_record_btrace): Likewise.
5681 * record-full.c (_initialize_record_full): Likewise.
5682 * record.c (_initialize_record): Likewise.
5683 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5684 * regcache.c (_initialize_regcache): Likewise.
5685 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5686 _initialize_remote): Likewise.
5687 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5688 * serial.c (_initialize_serial): Likewise.
5689 * skip.c (_initialize_step_skip): Likewise.
5690 * source.c (_initialize_source): Likewise.
5691 * stack.c (_initialize_stack): Likewise.
5692 * symfile.c (_initialize_symfile): Likewise.
5693 * symtab.c (_initialize_symtab): Likewise.
5694 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5695 * top.c (init_main): Likewise.
5696 * tracefile-tfile.c (tfile_target_info): Likewise.
5697 * tracepoint.c (_initialize_tracepoint): Likewise.
5698 * tui/tui-win.c (_initialize_tui_win): Likewise.
5699 * utils.c (add_internal_problem_command): Likewise.
5700 * valprint.c (value_print_option_defs): Likewise.
5701
404f2902
FCE
57022019-08-06 Frank Ch. Eigler <fche@redhat.com>
5703
5704 PR build/24886
5705 * configure.ac: Drop enable-libmcheck support.
5706 * configure, config.in: Rebuild.
5707 * libmcheck.m4: Remove.
5708 * acinclude.m4: Don't include it.
5709 * Makefile.in: Don't distribute it.
5710 * top.c (print_gdb_configuration): Don't mention it.
5711
046bebe1
TT
57122019-08-06 Tom Tromey <tom@tromey.com>
5713
5714 * utils.c (set_output_style): Sometimes pass stream to
5715 emit_style_escape.
5716 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5717 * record-btrace.c (btrace_insn_history): Update.
5718 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5719 method.
5720 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5721 Update initializers.
5722 <m_uiout>: New field.
5723 <m_di>: Move lower.
5724 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5725 Remove "uiout" parameter.
5726 (dump_insns): Update.
5727 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5728 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5729
ddbcedf5
CB
57302019-08-06 Christian Biesinger <cbiesinger@google.com>
5731
5732 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5733 (error_in_psymtab_expansion): Likewise.
5734 (lookup_symbol_via_quick_fns): Likewise.
5735 (basic_lookup_transparent_type_quick): Likewise.
5736 (basic_lookup_transparent_type_1): Likewise.
5737
b08b16c8
TT
57382019-08-06 Tom Tromey <tromey@adacore.com>
5739
5740 * source.c (last_source_error): Now bool.
5741 (print_source_lines_base): Make "noprint" bool. Only open
5742 source file when last_source_visited changes.
5743
cb44333d
TT
57442019-08-06 Tom Tromey <tromey@adacore.com>
5745
5746 * annotate.c (annotate_source_line): Use g_source_cache.
5747 * source-cache.c (source_cache::get_plain_source_lines): Change
5748 parameters. Populate m_offset_cache.
5749 (source_cache::ensure): New method.
5750 (source_cache::get_line_charpos): New method.
5751 (extract_lines): Move lower. Change parameters.
5752 (source_cache::get_source_lines): Move lower.
5753 * source-cache.h (class source_cache): Update comment.
5754 <get_line_charpos>: New method.
5755 <get_source_lines>: Update comment.
5756 <clear>: Clear m_offset_cache.
5757 <get_plain_source_lines>: Change parameters.
5758 <ensure>: New method
5759 <m_offset_cache>: New member.
5760 * source.c (forget_cached_source_info_for_objfile): Update.
5761 (info_source_command): Use g_source_cache.
5762 (find_source_lines, open_source_file_with_line_charpos): Remove.
5763 (print_source_lines_base, search_command_helper): Use g_source_cache.
5764 * source.h (open_source_file_with_line_charpos): Don't declare.
5765 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5766 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5767 Use g_source_cache.
5768
872dceaa
TT
57692019-08-06 Tom Tromey <tromey@adacore.com>
5770
5771 * source-cache.c (source_cache::get_plain_source_lines):
5772 Remove "first_line" and "last_line" parameters.
5773 (source_cache::get_source_lines): Cache plain text.
5774 * source-cache.h (class source_cache)
5775 <get_plain_source_lines>: Update.
5776
269249d9
TT
57772019-08-06 Tom Tromey <tromey@adacore.com>
5778
5779 * source-cache.c (extract_lines): No longer a method.
5780 Changed type of parameter. Include final newline.
5781 (selftests::extract_lines_test): New function.
5782 (_initialize_source_cache): Likewise.
5783 * source-cache.h (class source_cache)
5784 <extract_lines>: Don't declare.
5785
c0e8dcd8
TT
57862019-08-06 Tom Tromey <tromey@adacore.com>
5787
5788 * breakpoint.c (init_breakpoint_sal): Update.
5789 (breakpoint): Update.
5790 * breakpoint.h (struct breakpoint) <filter>: Now a
5791 unique_xmalloc_ptr.
5792
0b27c27d
CB
57932019-08-05 Christian Biesinger <cbiesinger@google.com>
5794
5795 * NEWS: Mention dictionary access on blocks.
5796 * python/py-block.c (blpy_getitem): New function.
5797 (block_object_as_mapping): New struct.
5798 (block_object_type): Use new struct for tp_as_mapping field.
5799
4ee94178
CB
58002019-08-05 Christian Biesinger <cbiesinger@google.com>
5801
5802 * objfiles.h (objfile): Add a comment describing partial symbols.
5803
8abfcabc
TT
58042019-08-05 Tom Tromey <tromey@adacore.com>
5805
5806 * compile/compile.c (_initialize_compile): Use _(), not N_().
5807 * thread.c (_initialize_thread): Use _(), not N_().
5808 * stack.c (_initialize_stack): Use _(), not N_().
5809 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5810
2b79f376
SM
58112019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5812
5813 * dwarf2read.c (struct dw2_symtab_iterator):
5814 <want_specific_block>: Remove.
5815 <block_index>: Change type to gdb::optional.
5816 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5817 change type of BLOCK_INDEX parameter to gdb::optional.
5818 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5819 (dw2_lookup_symbol): Don't pass argument for
5820 WANT_SPECIFIC_BLOCK.
5821 (dw2_expand_symtabs_for_function): Don't pass argument for
5822 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5823 (class dw2_debug_names_iterator)
5824 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5825 parameter, change BLOCK_INDEX type to gdb::optional.
5826 <m_want_specific_block>: Remove.
5827 <m_block_index>: Change type to gdb::optional.
5828 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5829 gdb::optional. Re-write in function of gdb::optional.
5830 (dw2_debug_names_lookup_symbol): Don't pass argument for
5831 WANT_SPECIFIC_BLOCK.
5832 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5833 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5834 BLOCK_INDEX.
5835
ae60f04e
PW
58362019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5837
5838 * NEWS: Mention changes to "info sources" command.
5839
28cd9371
PW
58402019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5841
5842 * symtab.c (filename_partial_match_opts): New struct type.
5843 (struct output_source_filename_data): New members
5844 regexp, c_regexp, partial_match.
5845 (output_source_filename): Use new members to decide to print file.
5846 (info_sources_option_defs): New variable.
5847 (make_info_sources_options_def_group, print_info_sources_header,
5848 info_sources_command_completer):
5849 New functions.
5850 (info_sources_command): Read new optional arguments.
5851 (_initialize_symtab): Update info sources help.
5852
ca683e3a
AO
58532019-08-02 Alexandre Oliva <oliva@adacore.com>
5854
5855 * ada-lang.c (exception_support_info_v0): Renamed from...
5856 (default_exception_support_info): ... this. Create new
5857 definition for v1.
5858 (ada_has_this_exception_support): Look up catch_handlers_sym.
5859 (ada_exception_support_info_sniffer): Try v0 after default.
5860
f1264162
TT
58612019-08-01 Tom Tromey <tromey@adacore.com>
5862
5863 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5864 gdbarch.h.
5865
0a7b2485
CB
58662019-08-01 Christian Biesinger <cbiesinger@google.com>
5867
5868 * s12z-tdep.c: Fix include path for s12z-opc.h.
5869
c6bdbeb7
AH
58702019-08-01 Alan Hayward <alan.hayward@arm.com>
5871
5872 * NEWS: Require GNU make 3.82.
5873
a2bd7b82
TT
58742019-07-16 Tom Tromey <tom@tromey.com>
5875
5876 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5877 declare.
5878
aa3b6533
TT
58792019-07-30 Tom Tromey <tromey@adacore.com>
5880
5881 * block.c (contained_in): Remove BLOCK_FUNCTION check.
5882
a1530dc7
KB
58832019-07-30 Kevin Buettner <kevinb@redhat.com>
5884
5885 * printcmd.c (print_address_symbolic): Print negative offsets.
5886 (build_address_symbolic): Force signed arithmetic when computing
5887 offset.
5888
2906593f
CB
58892019-07-30 Christian Biesinger <cbiesinger@google.com>
5890
5891 PR/24474: Add a function to lookup static variables.
5892 * NEWS: Mention this new function.
5893 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
5894 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
5895 * python/python.c (python_GdbMethods): Add new function.
5896
c620ed88
CB
58972019-07-29 Christian Biesinger <cbiesinger@google.com>
5898
5899 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
5900 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
5901 (objfpy_lookup_static_symbol): New function.
5902 (objfile_object_methods): Add new functions.
5903
bc4268a5
PW
59042019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5905
5906 * NEWS: Mention 'set|show print frame-info'. Mention new
5907 'presence' value for 'frame-arguments'. Mention new '-frame-info'
5908 backtrace argument. Mention that python frame filtering code
5909 is now consistent with what 'backtrace' command prints.
5910
4b5e8d19
PW
59112019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5912
5913 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
5914 comments.
5915 (print_frame_info_auto, print_frame_info_source_line,
5916 print_frame_info_location, print_frame_info_source_and_location,
5917 print_frame_info_location_and_address, print_frame_info_short_location):
5918 New declarations.
5919 (struct frame_print_options): New member print_frame_info.
5920 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
5921 * stack.h (get_user_print_what_frame_info): New declaration.
5922 (frame_show_address): New declaration.
5923 * stack.c (print_frame_arguments_choices): New value 'presence'.
5924 (print_frame_info_auto, print_frame_info_source_line,
5925 print_frame_info_location, print_frame_info_source_and_location,
5926 print_frame_info_location_and_address, print_frame_info_short_location,
5927 print_frame_info_choices, print_frame_info_print_what): New definitions.
5928 (print_frame_args): Only print dots for args if print frame-arguments
5929 is 'presence'.
5930 (frame_print_option_defs): New element for "frame-info".
5931 (get_user_print_what_frame_info): New function.
5932 (frame_show_address): Make non static. Move comment to stack.h.
5933 (print_frame_info_to_print_what): New function.
5934 (print_frame_info): Update comment. Use fp_opts.print_frame_info
5935 to decide what to print.
5936 (backtrace_command_1): Handle the new print_frame_arguments_presence
5937 value.
5938 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
5939 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
5940 (py_print_frame): In non-mi mode, use LOCATION as default for
5941 print_what, similarly to frame information printed directly by
5942 backtrace command. Handle frame-info user option in non MI mode.
5943
6bdfee81
KB
59442019-07-27 Kevin Buettner <kevinb@redhat.com>
5945
5946 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
5947 Add case for debugging 32-bit target on 64-bit host. Revise
5948 comment.
5949
98a617f8
KB
59502019-07-27 Kevin Buettner <kevinb@redhat.com>
5951
5952 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
5953 instead of find_function_entry_range_from_pc.
5954
567238c9
KB
59552019-07-27 Kevin Buettner <kevinb@redhat.com>
5956
5957 * stack.c (find_frame_funname): Remove code which preferred
5958 minsym over symtab sym in "certain pathological cases".
5959
2dc80cf8
KB
5960 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
5961 parameter. Change type of "do_demangle" to bool.
5962 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5963 Pass suitable "prefer_sym_over_minsym" flag to
5964 build_address_symbolic(). Don't output "+" for negative offsets.
5965 * printcmd.c (print_address_symbolic): Update invocation of
5966 build_address_symbolic to include a "prefer_sym_over_minsym"
5967 flag.
5968 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
5969 Restrict cases in which use of minimal symbol is preferred to that
5970 of a found symbol. Update comments.
5971
1aff7173
KB
5972 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
5973 for entry pc when entry pc is out of range for that FDE.
5974
89b085ac
BC
59752019-07-26 Brian Callahan <bcallah@openbsd.org>
5976
5977 PR gdb/24839:
5978 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
5979 type.
5980
f32feb4a
CB
59812019-07-25 Christian Biesinger <cbiesinger@google.com>
5982
5983 * python/py-objfile.c (add_separate_debug_file): Fix comment about
5984 this function's Python signature.
5985
5986
59872019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
5988
5989 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
5990 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5991 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
5992 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
5993 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
5994
5995
c54e4253
YS
59962019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
5997
5998 * h8300-tdep.c (h8300_register_name_common): New.
5999 h8300_register_name): Use h8300_register_name_common.
6000 (h8300s_register_name): Likewise.
6001 (h8300sx_register_name): Likewise.
6002 (h8300h_register_nam): New.
6003 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6004
6005
40eadf04
SP
60062019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6007
6008 * arm-tdep.c (arm_skip_cmse_entry): New function.
6009 (arm_is_sgstubs_section): New function.
6010 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6011
bfa2a36d
TT
60122019-07-22 Tom Tromey <tom@tromey.com>
6013
6014 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6015 Don't self-assign.
6016
a8e9d247
AB
60172019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6018
6019 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6020 type_print.
6021
eb86c5e2
AB
60222019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6023
6024 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6025 so that GDB doesn't match any msymbols when searching in the
6026 TYPES_DOMAIN.
6027 (print_symbol_info): Print using typedef_print or type_print based
6028 on the type of the symbol. Add updated FIXME comment moved from...
6029 (_initialize_symtab): ... move and update FIXME comment to above.
6030
a8eab7c6
AB
60312019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6032
6033 * NEWS: Mention adding -q option to "info types".
6034 * symtab.c (struct info_types_options): New struct.
6035 (info_types_options_defs): New variable.
6036 (make_info_types_options_def_group): New function.
6037 (info_types_command): Use gdb::option framework to parse options.
6038 (info_types_command_completer): New function.
6039 (_initialize_symtab): Extend the help text on "info types" and
6040 register command completer.
6041
b4603c34
CB
60422019-07-21 Christian Biesinger <cbiesinger@google.com>
6043
6044 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6045 (lookup_symbol_in_objfile): Change int to block_enum and add a
6046 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6047
c8cdc1e0
CB
60482019-07-20 Christian Biesinger <cbiesinger@google.com>
6049
6050 * MAINTAINERS (Write After Approval): Add self.
6051
01e175fe
AB
60522019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6053
6054 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6055 instruction to the dummy code region.
6056
56f79b63
TT
60572019-07-19 Tom Tromey <tromey@adacore.com>
6058
6059 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6060 (ARGSUSED, PARAMS, __func__): Remove rules.
6061
4c5aa8e0
AH
60622019-07-19 Alan Hayward <alan.hayward@arm.com>
6063
6064 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6065 * features/arm/arm-with-iwmmxt.c: Remove.
6066 * features/arm/arm-with-iwmmxt.xml: Remove.
6067 * features/arm/arm-with-m-fpa-layout.c: Remove.
6068 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6069 * features/arm/arm-with-m-vfp-d16.c: Remove.
6070 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6071 * features/arm/arm-with-m.c: Remove.
6072 * features/arm/arm-with-m.xml: Remove.
6073 * features/arm/arm-with-neon.c: Remove.
6074 * features/arm/arm-with-neon.xml: Remove.
6075 * features/arm/arm-with-vfpv2.c: Remove.
6076 * features/arm/arm-with-vfpv2.xml: Remove.
6077 * features/arm/arm-with-vfpv3.c: Remove.
6078 * features/arm/arm-with-vfpv3.xml: Remove.
6079
f42b2617
AH
60802019-07-19 Alan Hayward <alan.hayward@arm.com>
6081
6082 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6083
f29ec966
AH
60842019-07-19 Alan Hayward <alan.hayward@arm.com>
6085
6086 * arch/aarch32.c (aarch32_create_target_description): Create
6087 target descriptions using features.
6088 * arch/arm.c (arm_create_target_description)
6089 (arm_create_mprofile_target_description): Likewise.
6090 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6091
d105cce5
AH
60922019-07-19 Alan Hayward <alan.hayward@arm.com>
6093
6094 * Makefile.in: Add new files.
6095 * aarch32-tdep.c: New file.
6096 * aarch32-tdep.h: New file.
6097 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6098 Call aarch32_read_description.
6099 * arch/aarch32.c: New file.
6100 * arch/aarch32.h: New file.
6101 * arch/arm.c (arm_create_target_description)
6102 (arm_create_mprofile_target_description): New function.
6103 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6104 (arm_create_target_description)
6105 (arm_create_mprofile_target_description): New declaration.
6106 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6107 read_description functions.
6108 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6109 Likewise.
6110 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6111 * arm-tdep.c (tdesc_arm_list): New variable.
6112 (arm_register_g_packet_guesses): Call create description functions.
6113 (arm_read_description) (arm_read_mprofile_description): New
6114 function.
6115 * arm-tdep.h (arm_read_description)
6116 (arm_read_mprofile_description): Add declaration.
6117 * configure.tgt: Add new files.
6118
afe09f0b
GL
61192019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6120
6121 * top.c (new_ui_command): Open specified terminal just once.
6122
cd215b2e
TT
61232019-07-18 Tom Tromey <tromey@adacore.com>
6124
6125 * symtab.c (main_name): Constify return type.
6126 * symfile.c (set_initial_language): Update.
6127 * symtab.h (main_name): Constify return type.
6128
d8f68fcb
TT
61292019-07-17 Tom Tromey <tom@tromey.com>
6130
6131 * tui/tui-winsource.c (tui_update_source_window)
6132 (tui_update_source_window_as_is)
6133 (tui_update_source_windows_with_line): Remove return.
6134 * tui/tui-disasm.c (tui_show_disassem)
6135 (tui_show_disassem_and_update_source): Remove return.
6136 * tui/tui.c (tui_reset): Remove return.
6137 * tui/tui-wingeneral.c
6138 (tui_check_and_display_highlight_if_needed): Remove return.
6139
ca5af91e
TT
61402019-07-17 Tom Tromey <tom@tromey.com>
6141
6142 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6143
5104fe36
TT
61442019-07-17 Tom Tromey <tom@tromey.com>
6145
6146 * tui/tui-winsource.h (struct tui_exec_info_window)
6147 (struct tui_source_window_base): Move from tui-data.h.
6148 * tui/tui-winsource.c: Move many method definitions from
6149 elsewhere. Remove "structuring" comments.
6150 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6151 (tui_source_window_base::refresh_window): Move to
6152 tui-winsource.c.
6153 * tui/tui-win.c (tui_source_window_base::refresh_all)
6154 (tui_source_window_base::update_tab_width)
6155 (tui_source_window_base::set_new_height)
6156 (tui_source_window_base::do_make_visible_with_new_height): Move to
6157 tui-winsource.c.
6158 * tui/tui-source.h: Update.
6159 * tui/tui-source.c (tui_source_window_base::reset): Move to
6160 tui-winsource.c.
6161 * tui/tui-disasm.h: Update.
6162 * tui/tui-data.h (struct tui_exec_info_window): Move to
6163 tui-winsource.h.
6164 (struct tui_source_window_base): Likewise.
6165 * tui/tui-data.c (tui_source_window_base::clear_detail)
6166 (tui_source_window_base, ~tui_source_window_base): Move to
6167 tui-winsource.c.
6168
daa15dde
TT
61692019-07-17 Tom Tromey <tom@tromey.com>
6170
6171 * tui/tui-win.c (tui_resize_all)
6172 (tui_source_window_base::update_tab_width)
6173 (tui_adjust_win_heights): Update.
6174 (tui_win_info::make_invisible_and_set_new_height): Rename from
6175 make_invisible_and_set_new_height.
6176 * tui/tui-data.h (struct tui_win_info)
6177 <make_invisible_and_set_new_height>: New method.
6178
bfad4537
TT
61792019-07-17 Tom Tromey <tom@tromey.com>
6180
6181 * tui/tui.c: Update.
6182 * tui/tui-source.h (struct tui_source_window): Move from
6183 tui-data.h.
6184 * tui/tui-layout.c: Update.
6185 * tui/tui-disasm.c: Update.
6186 * tui/tui-data.h (struct tui_source_window): Move to
6187 tui-source.h.
6188
88f7e873
TT
61892019-07-17 Tom Tromey <tom@tromey.com>
6190
6191 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6192 tui-data.h.
6193 * tui/tui-data.h (struct tui_disasm_window): Move to
6194 tui-disasm.h.
6195
96bd6233
TT
61962019-07-17 Tom Tromey <tom@tromey.com>
6197
6198 * tui/tui-regs.h (struct tui_data_item_window): Move from
6199 tui-data.h.
6200 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6201 * tui/tui-data.h (struct tui_data_item_window): Move to
6202 tui-regs.h.
6203 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6204
ce38393b
TT
62052019-07-17 Tom Tromey <tom@tromey.com>
6206
6207 * tui/tui.c: Update.
6208 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6209 (tui_cmd_window::max_height): Move to tui-command.c.
6210 * tui/tui-layout.c: Update.
6211 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6212 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6213 tui-command.c.
6214 * tui/tui-command.h (struct tui_cmd_window): Move from
6215 tui-data.h.
6216 * tui/tui-command.c: Remove "structuring" comments.
6217 (tui_cmd_window::clear_detail)
6218 (tui_cmd_window::do_make_visible_with_new_height)
6219 (tui_cmd_window::max_height): Move from elsewhere.
6220
2d8b51cb
TT
62212019-07-17 Tom Tromey <tom@tromey.com>
6222
6223 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6224 Now static.
6225 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6226 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6227
18ab23af
TT
62282019-07-17 Tom Tromey <tom@tromey.com>
6229
6230 * tui/tui.c: Update.
6231 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6232 tui-regs.c.
6233 * tui/tui-windata.h: Remove file.
6234 * tui/tui-windata.c: Remove file.
6235 * tui/tui-win.c (tui_data_window::set_new_height)
6236 (tui_data_window::do_make_visible_with_new_height): Move to
6237 tui-regs.c.
6238 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6239 * tui/tui-regs.c: Remove "structuring" comments.
6240 (tui_data_window::first_data_item_displayed)
6241 (tui_data_window::delete_data_content_windows)
6242 (tui_data_window::erase_data_content)
6243 (tui_data_window::display_all_data)
6244 (tui_data_window::refresh_all)
6245 (tui_data_window::do_scroll_vertical)
6246 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6247 (tui_data_window::do_make_visible_with_new_height)
6248 (tui_data_window::refresh_window): Move from elsewhere.
6249 (_initialize_tui_regs): Move to end of file.
6250 * tui/tui-layout.c: Update.
6251 * tui/tui-hooks.c: Update.
6252 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6253 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6254 tui-regs.c.
6255 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6256
88b7e7cc
TT
62572019-07-17 Tom Tromey <tom@tromey.com>
6258
6259 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6260 seen.
6261
0fcd3711
TT
62622019-07-17 Tom Tromey <tom@tromey.com>
6263
6264 * tui/tui-win.c (tui_source_window_base::set_new_height)
6265 (tui_source_window_base::do_make_visible_with_new_height): Use
6266 m_has_locator field directly.
6267 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6268 method.
6269 (struct tui_source_window_base) <has_locator>: Likewise.
6270
4a38112d
TT
62712019-07-17 Tom Tromey <tom@tromey.com>
6272
6273 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6274 Don't declare.
6275 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6276 Remove.
6277 * tui/tui-win.c (tui_source_window_base::set_new_height)
6278 (tui_source_window_base::set_new_height)
6279 (make_invisible_and_set_new_height)
6280 (tui_source_window_base::do_make_visible_with_new_height)
6281 (tui_source_window_base::do_make_visible_with_new_height):
6282 Update.
6283 * tui/tui-layout.c (show_source_disasm_command, show_data)
6284 (show_source_or_disasm_and_command): Update.
6285 * tui/tui-layout.c (show_layout): Update.
6286
09129226
TT
62872019-07-17 Tom Tromey <tom@tromey.com>
6288
6289 * tui/tui-layout.c (make_data_window): Remove.
6290 (show_data): Unify creation and re-initialization cases.
6291
4a8a5e84
TT
62922019-07-17 Tom Tromey <tom@tromey.com>
6293
6294 * tui/tui-layout.c (make_source_window, make_disasm_window):
6295 Remove.
6296 (show_data): Unify creation and re-initialization cases.
6297
76d2be8e
TT
62982019-07-17 Tom Tromey <tom@tromey.com>
6299
6300 * tui/tui-layout.c (make_command_window): Remove.
6301 (show_source_disasm_command, show_source_or_disasm_and_command):
6302 Unify creation and re-initialization cases.
6303
890b8bde
TT
63042019-07-17 Tom Tromey <tom@tromey.com>
6305
6306 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6307 creation and re-initialization cases.
6308
2cdfa113
TT
63092019-07-17 Tom Tromey <tom@tromey.com>
6310
6311 * tui/tui-regs.c (tui_get_register): Return void.
6312
8e3cfd09
TT
63132019-07-17 Tom Tromey <tom@tromey.com>
6314
6315 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6316 Simplify.
6317
f4e04977
TT
63182019-07-17 Tom Tromey <tom@tromey.com>
6319
6320 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6321 resetting.
6322
0379b883
TT
63232019-07-17 Tom Tromey <tom@tromey.com>
6324
6325 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6326 * tui/tui-regs.c (tui_reg_layout): New function.
6327 (tui_show_registers, tui_reg_command): Use it.
6328 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6329 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6330 parameters.
6331 (tui_layout_command): Remove.
6332
b7fbad91
TT
63332019-07-17 Tom Tromey <tom@tromey.com>
6334
6335 * tui/tui-layout.h (tui/tui-layout): Return void.
6336 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6337
4e1e56b9
TT
63382019-07-17 Tom Tromey <tom@tromey.com>
6339
6340 * tui/tui-layout.c (show_source_disasm_command, show_data):
6341 Update.
6342 (reset_locator): Remove.
6343 (show_source_or_disasm_and_command): Update.
6344
1e0c09ba
TT
63452019-07-17 Tom Tromey <tom@tromey.com>
6346
6347 * tui/tui-source.c (tui_source_window_base::reset): Remove
6348 win_type parameter.
6349 * tui/tui-layout.c (make_command_window, make_source_window)
6350 (make_disasm_window, make_data_window)
6351 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6352 (reset_locator, show_source_or_disasm_and_command): Update.
6353 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6354 win_type parameter.
6355 (struct tui_source_window_base) <reset>: Likewise.
6356
1bf605de
TT
63572019-07-17 Tom Tromey <tom@tromey.com>
6358
6359 * tui/tui-layout.c (show_source_disasm_command): Use
6360 reset_locator.
6361 (reset_locator): New function.
6362 (init_and_make_win): Remove.
6363 (show_source_or_disasm_and_command): Use reset_locator.
6364
098f9ed4
TT
63652019-07-17 Tom Tromey <tom@tromey.com>
6366
6367 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6368 condition.
6369 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6370 Remove condition.
6371 * tui/tui-source.c (tui_source_window_base::reset): New method.
6372 * tui/tui-layout.c (make_command_window): Don't call
6373 init_and_make_win.
6374 (make_source_window, make_disasm_window): Don't call
6375 make_source_or_disasm_window.
6376 (make_data_window): Don't call init_and_make_win. Change calling
6377 convention.
6378 (show_source_disasm_command, show_data): Simplify.
6379 (make_source_or_disasm_window): Remove.
6380 (show_source_or_disasm_and_command): Simplify.
6381 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6382 (struct tui_source_window_base) <reset>: Likewise.
6383 <execution_info>: Remove initializer.
6384 * tui/tui-data.c (tui_source_window_base): Initialize
6385 execution_info.
6386
80110957
TT
63872019-07-17 Tom Tromey <tom@tromey.com>
6388
6389 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6390 variable.
6391
cf82af05
TT
63922019-07-17 Tom Tromey <tom@tromey.com>
6393
6394 * tui/tui.c (tui_rl_other_window): Update.
6395 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6396 superclass method first. Always iterate over regs_content.
6397 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6398 method.
6399 * tui/tui-win.c (tui_set_focus_command): Update.
6400
01aeb396
TT
64012019-07-17 Tom Tromey <tom@tromey.com>
6402
6403 * tui/tui-win.c (tui_set_focus_command): Rename from
6404 tui_set_focus. Call tui_enable.
6405 (tui_set_focus_command): Remove.
6406
fd6c75ee
TT
64072019-07-17 Tom Tromey <tom@tromey.com>
6408
6409 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6410 refresh_window.
6411 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6412 touchwin.
6413 (tui_data_window::refresh_window): Call refresh_window on data
6414 items. Always call superclass refresh_window.
6415 (tui_win_info::refresh): Remove.
6416 (tui_source_window_base::refresh_window): Update.
6417 (tui_refresh_all): Update.
6418 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6419 refresh_window.
6420 (show_source_or_disasm_and_command): Likewise.
6421 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6422 (struct tui_source_window_base) <refresh>: Likewise.
6423
f6cc34a9
TT
64242019-07-17 Tom Tromey <tom@tromey.com>
6425
6426 * tui/tui-winsource.c (tui_clear_source_content)
6427 (tui_show_source_content): Update.
6428 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6429 whether content is empty.
6430 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6431 Remove.
6432
f31ec9af
TT
64332019-07-17 Tom Tromey <tom@tromey.com>
6434
6435 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6436 window's contents.
6437 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6438 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6439
d1b6f1e5
TT
64402019-07-17 Tom Tromey <tom@tromey.com>
6441
6442 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6443 (struct tui_data_item_window): Update.
6444
d9743a13
TT
64452019-07-17 Tom Tromey <tom@tromey.com>
6446
6447 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6448 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6449 defines.
6450
caf0bc4e
TT
64512019-07-17 Tom Tromey <tom@tromey.com>
6452
6453 * tui/tui-winsource.h (tui_erase_source_content)
6454 (tui_clear_source_content): Remove "display_prompt" parameter.
6455 * tui/tui-winsource.c (tui_update_source_window_as_is)
6456 (tui_update_source_windows_with_addr): Update.
6457 (tui_clear_source_content): Remove "display_prompt" parameter.
6458 (tui_erase_source_content): Likewise. Simplify.
6459 (tui_show_source_content): Update.
6460 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6461 * tui/tui-stack.c (tui_show_frame_info): Update.
6462 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6463 Remove defines.
6464
9d391078
TT
64652019-07-17 Tom Tromey <tom@tromey.com>
6466
6467 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6468 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6469 parameter.
6470 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6471 parameter.
6472
a38da35d
TT
64732019-07-17 Tom Tromey <tom@tromey.com>
6474
6475 * tui/tui-winsource.c (tui_clear_source_content)
6476 (tui_show_source_content, tui_show_exec_info_content)
6477 (tui_clear_exec_info_content): Update.
6478 * tui/tui-stack.c (tui_show_locator_content): Update.
6479 (tui_show_frame_info): Update.
6480 * tui/tui-source.h (tui_source_window): Don't declare.
6481 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6482 from tui_source_is_displayed.
6483 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6484 Remove field.
6485 (struct tui_source_window_base) <content_in_use>: New field. Now
6486 bool.
6487 (struct tui_source_window) <showing_source_p>: New method.
6488 (TUI_SRC_WIN): Change cast.
6489 * tui/tui-data.c (tui_initialize_static_data): Update.
6490
c2cd8994
TT
64912019-07-17 Tom Tromey <tom@tromey.com>
6492
6493 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6494 location_matches_p.
6495 * tui/tui-source.c (tui_source_window::location_matches_p): New
6496 method.
6497 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6498 method.
6499 * tui/tui-data.h (struct tui_source_window_base)
6500 <location_matches_p>: New method.
6501 (struct tui_source_window, struct tui_disasm_window)
6502 <location_matches_p>: Likewise.
6503
4dde7b34
TT
65042019-07-17 Tom Tromey <tom@tromey.com>
6505
6506 * tui/tui-win.c (tui_set_win_height_command): Rename from
6507 tui_set_win_height.
6508 (tui_set_win_height_command): Remove.
6509
b73dd877
TT
65102019-07-17 Tom Tromey <tom@tromey.com>
6511
6512 * tui/tui-source.c (tui_source_window): New constructor. Add
6513 observer.
6514 (~tui_source_window): New destructor.
6515 (tui_source_window::style_changed): New method.
6516 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6517 (tui_attach_detach_observers): Update.
6518 * tui/tui-data.h (struct tui_source_window): Make constructor not
6519 inline. Add destructor.
6520 (struct tui_source_window) <style_changed>: New method.
6521 <m_observable>: New member.
6522
ae2b5380
TT
65232019-07-17 Tom Tromey <tom@tromey.com>
6524
6525 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6526 * tui/tui-win.c (tui_resize_all): Fix typo.
6527
1ce3e844
TT
65282019-07-17 Tom Tromey <tom@tromey.com>
6529
6530 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6531 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6532 (tui_refresh_all): Remove "list" parameter. Use foreach.
6533 * tui/tui-win.c (window_name_completer): Use foreach.
6534 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6535 (update_tab_width): Likewise.
6536 * tui/tui-layout.c (show_layout): Update.
6537 * tui/tui-data.h (class tui_window_iterator): New.
6538 (struct all_tui_windows): New.
6539 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6540
fe3eaf1c
TT
65412019-07-17 Tom Tromey <tom@tromey.com>
6542
6543 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6544 parameter. Don't reference globals.
6545 (tui_reg_command): Update.
6546
368c1354
TT
65472019-07-17 Tom Tromey <tom@tromey.com>
6548
6549 * tui/tui-regs.c (tui_show_registers): Simplify.
6550
e80cd204
TT
65512019-07-17 Tom Tromey <tom@tromey.com>
6552
6553 * tui/tui-regs.c (tui_show_registers): Update.
6554 (tui_show_register_group): Add win_info parameter.
6555
aca2dd16
TT
65562019-07-17 Tom Tromey <tom@tromey.com>
6557
6558 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6559 Rename from tui_display_reg_element_at_line.
6560 (tui_data_window::display_registers_from_line): Update.
6561 * tui/tui-data.h (struct tui_data_window)
6562 <display_reg_element_at_line>: New method.
6563
517e9505
TT
65642019-07-17 Tom Tromey <tom@tromey.com>
6565
6566 * tui/tui-regs.h (tui_display_registers_from)
6567 (tui_display_registers_from_line): Don't declare.
6568 * tui/tui-windata.c (tui_data_window::display_all_data)
6569 (tui_data_window::refresh_all)
6570 (tui_data_window::do_scroll_vertical): Update.
6571 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6572 from tui_display_registers_from.
6573 (tui_display_reg_element_at_line): Update.
6574 (tui_data_window::display_registers_from_line): Rename from
6575 tui_display_registers_from_line.
6576 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6577 display_registers_from_line>: New methods.
6578
f76d8b19
TT
65792019-07-17 Tom Tromey <tom@tromey.com>
6580
6581 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6582 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6583 from tui_erase_data_content.
6584 (tui_data_window::display_all_data)
6585 (tui_data_window::refresh_all)
6586 (tui_data_window::do_scroll_vertical): Update.
6587 * tui/tui-regs.c (tui_show_registers): Update.
6588 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6589 New method.
6590
b4094625
TT
65912019-07-17 Tom Tromey <tom@tromey.com>
6592
6593 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6594 declare.
6595 * tui/tui-windata.c
6596 (tui_data_window::delete_data_content_windows): Rename from
6597 tui_delete_data_content_windows.
6598 (tui_data_window::display_all_data)
6599 (tui_data_window::do_scroll_vertical): Update.
6600 * tui/tui-data.h (struct tui_data_window)
6601 <delete_data_content_windows>: New method.
6602
c223a729
TT
66032019-07-17 Tom Tromey <tom@tromey.com>
6604
6605 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6606 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6607
50daf268
TT
66082019-07-17 Tom Tromey <tom@tromey.com>
6609
6610 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6611 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6612 from tui_display_all_data.
6613 * tui/tui-win.c
6614 (tui_data_window::do_make_visible_with_new_height): Update.
6615 * tui/tui-regs.c (tui_show_registers): Update.
6616 * tui/tui-layout.c (tui_set_layout): Update.
6617 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6618 method.
6619
df5f8cab
TT
66202019-07-17 Tom Tromey <tom@tromey.com>
6621
6622 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6623 * tui/tui-windata.c (tui_display_data_from): Remove.
6624 (tui_data_window::refresh_all): Update.
6625
80cb6c27
TT
66262019-07-17 Tom Tromey <tom@tromey.com>
6627
6628 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6629 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6630 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6631 tui_display_registers_from_line.
6632 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6633 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6634 "force_display" parameter.
6635
baff0c28
TT
66362019-07-17 Tom Tromey <tom@tromey.com>
6637
6638 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6639 declare.
6640 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6641 Rename from tui_first_reg_element_no_inline.
6642 (tui_display_reg_element_at_line)
6643 (tui_display_registers_from_line): Update.
6644 * tui/tui-data.h (struct tui_data_window)
6645 <first_reg_element_no_inline>: New method.
6646
3b23c5f2
TT
66472019-07-17 Tom Tromey <tom@tromey.com>
6648
6649 * tui/tui-windata.c (tui_display_data_from)
6650 (tui_data_window::do_scroll_vertical): Update.
6651 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6652 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6653 Rename from tui_line_from_reg_element_no.
6654 (tui_display_registers_from_line): Update.
6655 * tui/tui-data.h (struct tui_data_window)
6656 <line_from_reg_element_no>: New method.
6657
0b5ec218
TT
66582019-07-17 Tom Tromey <tom@tromey.com>
6659
6660 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6661 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6662 tui_last_regs_line_no.
6663 (tui_display_reg_element_at_line)
6664 (tui_display_registers_from_line): Update.
6665 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6666 method.
6667
0807ab7b
TT
66682019-07-17 Tom Tromey <tom@tromey.com>
6669
6670 PR tui/24722:
6671 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6672 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6673 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6674 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6675 (tui_update_breakpoint_info): Likewise.
6676 * tui/tui-hooks.c (tui_event_create_breakpoint)
6677 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6678 Update.
6679
9ad7fdef
TT
66802019-07-17 Tom Tromey <tom@tromey.com>
6681
6682 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6683
5813316f
TT
66842019-07-17 Tom Tromey <tom@tromey.com>
6685
6686 * tui/tui-winsource.c (tui_update_source_window_as_is)
6687 (tui_update_source_windows_with_addr): Update.
6688 * tui/tui-source.h (tui_set_source_content)
6689 (tui_show_symtab_source): Add "win_info" parameter.
6690 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6691 parameter.
6692 (tui_show_symtab_source): Likewise.
6693
00e264e7
TT
66942019-07-17 Tom Tromey <tom@tromey.com>
6695
6696 * tui/tui-wingeneral.c
6697 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6698
06210ce4
TT
66992019-07-17 Tom Tromey <tom@tromey.com>
6700
6701 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6702 (struct tui_cmd_window) <can_scroll>: New method.
6703 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6704 method.
6705
381befee
TT
67062019-07-17 Tom Tromey <tromey@adacore.com>
6707
6708 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6709 do_field_signed>: Rename. Change type of "value".
6710 * ui-out.c (ui_out::field_signed): Rename from field_int.
6711 Change type of "value".
6712 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6713 type of "value".
6714 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6715 do_field_int. Change type of "value".
6716 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6717 do_field_int. Change type of "value".
6718 * tracepoint.c (trace_status_mi, tfind_1)
6719 (print_one_static_tracepoint_marker): Update.
6720 * thread.c (print_thread_info_1, print_selected_thread_frame):
6721 Update.
6722 * stack.c (print_frame, print_frame_info): Update.
6723 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6724 Update.
6725 * source.c (print_source_lines_base): Update.
6726 * skip.c (info_skip_command): Update.
6727 * record-btrace.c (btrace_ui_out_decode_error)
6728 (btrace_call_history_src_line): Update.
6729 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6730 Update.
6731 * progspace.c (print_program_space): Update.
6732 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6733 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6734 do_field_int. Change type of "value".
6735 * mi/mi-out.c (mi_ui_out::do_table_begin)
6736 (mi_ui_out::do_table_header): Update.
6737 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6738 type of "value".
6739 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6740 (mi_cmd_data_list_changed_registers, output_register)
6741 (mi_cmd_data_read_memory, mi_load_progress)
6742 (mi_cmd_trace_frame_collected): Update.
6743 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6744 Update.
6745 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6746 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6747 (mi_cmd_var_list_children, varobj_update_one): Update.
6748 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6749 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6750 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6751 * inferior.c (print_inferior): Update.
6752 * gdb_bfd.c (print_one_bfd): Update.
6753 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6754 Update.
6755 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6756 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6757 do_field_int. Change type of "value".
6758 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6759 do_field_int. Change type of "value".
6760 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6761 (print_one_breakpoint_location, print_it_catch_fork)
6762 (print_one_catch_fork, print_it_catch_vfork)
6763 (print_one_catch_vfork, print_it_catch_solib)
6764 (print_it_catch_exec, print_it_ranged_breakpoint)
6765 (print_mention_watchpoint, print_mention_masked_watchpoint)
6766 (bkpt_print_it, update_static_tracepoint): Update.
6767 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6768 * break-catch-syscall.c (print_it_catch_syscall): Update.
6769 * ada-tasks.c (print_ada_task_info): Update.
6770 * ada-lang.c (print_it_exception, print_mention_exception):
6771 Update.
6772
6b78c3f8
AB
67732019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6774
6775 PR breakpoints/24541
6776 * gdbarch.c: Regenerate.
6777 * gdbarch.h: Regenerate.
6778 * gdbarch.sh: Adjust return type and parameter types for
6779 'stap_adjust_register'.
6780 (i386_stap_adjust_register): Adjust signature and return new
6781 register name.
6782 * stap-probe.c (stap_parse_register_operand): Adjust use of
6783 'gdbarch_stap_adjust_register'.
6784
d72a9b85
TT
67852019-07-17 Tom Tromey <tromey@adacore.com>
6786
6787 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6788 declare VEC.
6789 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6790 std::vector.
6791 (struct s390_process_info): Add initializers.
6792 (s390_add_process): Use new.
6793 (s390_linux_nat_target::low_forget_process): Use delete.
6794 (s390_linux_nat_target::low_new_fork)
6795 (s390_linux_nat_target::stopped_by_watchpoint)
6796 (s390_linux_nat_target::low_prepare_to_resume)
6797 (s390_linux_nat_target::insert_watchpoint)
6798 (s390_linux_nat_target::insert_hw_breakpoint)
6799 (s390_linux_nat_target::remove_watchpoint)
6800 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6801
206e6c58
JB
68022019-07-16 John Baldwin <jhb@FreeBSD.org>
6803
6804 * aarch64-fbsd-nat.c: Include regcache.h.
6805 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6806 argument.
6807 (aarch64_fbsd_nat_target::fetch_registers)
6808 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6809 variable.
6810 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6811
cbde90f2
JB
68122019-07-16 John Baldwin <jhb@FreeBSD.org>
6813
6814 * fbsd-nat.c: Include gdbarch.h.
6815
07128006
TT
68162019-07-15 Tom Tromey <tromey@adacore.com>
6817
6818 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6819
1f77b012
TT
68202019-07-15 Tom Tromey <tromey@adacore.com>
6821
6822 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6823 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6824 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6825 * cli-out.c (cli_ui_out::do_field_int): New method.
6826 * ui-out.c (ui_out::field_unsigned): New method.
6827 * symfile.c (generic_load): Use field_unsigned.
6828 (print_transfer_performance): Likewise.
6829 * record-btrace.c (ui_out_field_uint): Remove.
6830 (btrace_call_history_insn_range, btrace_call_history): Use
6831 field_unsigned.
6832 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6833 field_unsigned.
6834 * ui-out.h (class ui_out) <field_unsigned>: New method.
6835 <do_field_unsigned>: Likewise.
6836
33eca680
TT
68372019-07-15 Tom Tromey <tromey@adacore.com>
6838
6839 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6840 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6841 * target.c (flash_erase_command): Use field_string.
6842 * infrun.c (print_signal_received_reason): Use field_string.
6843 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6844 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6845 field_string.
6846 * ada-tasks.c (print_ada_task_info): Use field_string.
6847
ca8d69be
TT
68482019-07-15 Tom Tromey <tromey@adacore.com>
6849
6850 * target.c (flash_erase_command): Use field_core_addr.
6851 * symfile.c (generic_load): Use field_core_addr.
6852 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6853 Use field_core_addr.
6854 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6855 field_core_addr.
6856
0d4e84ed
AB
68572019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6858
6859 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6860 value if its desired type is smaller than a CORE_ADDR and signed.
6861
9a49df9d
AB
68622019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6863
6864 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6865 of changes to field names, and use new is_reference field to
6866 decide if a property is a reference or not.
6867 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6868 field.
6869 (struct dwarf2_property_baton): Update header comment, rename
6870 'referenced_type' to 'property_type' and update comments.
6871 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6872 default property type, store in property baton, update to take
6873 accound of renamed field.
6874 (read_func_scope): Update call to attr_to_dynamic_prop.
6875 (read_array_type): Likewise.
6876 (dwarf2_per_cu_addr_sized_int_type): New function.
6877 (read_subrange_index_type): Move type finding code to
6878 dwarf2_per_cu_addr_sized_int_type.
6879 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6880 (dwarf2_per_cu_addr_type): New function.
6881 (set_die_type): Update calls to attr_to_dynamic_prop.
6882
b86352cf
AB
68832019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6884
6885 * dwarf2read.c (read_subrange_index_type): New function.
6886 (read_subrange_type): Move code into new function and call it.
6887 * gdbtypes.c (create_range_type): Add some asserts.
6888
603490bf
AB
68892019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6890
6891 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
6892 update return statements.
6893 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
6894 declaration, and update comment to match.
6895 * gdbtypes.c (resolve_dynamic_array): Update call to
6896 dwarf2_evaluate_property to match new return type.
6897
592f9d27
AB
68982019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6899
6900 * valarith.c (value_subscripted_rvalue): Change lowerbound
6901 parameter type from int to LONGEST.
6902 * value.h (value_subscripted_rvalue): Likewise in declaration.
6903
60cfcb20
AB
69042019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6905
6906 * cli/cli-utils.c (info_print_command_completer): New function.
6907 * cli/cli-utils.h: Add 'completer.h' include, and forward
6908 declaration for 'struct cmd_list_element'.
6909 (info_print_command_completer): Declare.
6910 * stack.c (_initialize_stack): Add completer for 'info locals' and
6911 'info args'.
6912 * symtab.c (_initialize_symtab): Add completer for 'info
6913 variables' and 'info functions'.
6914 * NEWS: Mention completion for additional info commands.
6915
b16507e0
AB
69162019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6917
6918 * cli/cli-utils.c (extract_info_print_args): Delete.
6919 (extract_arg_maybe_quoted): Delete.
6920 (info_print_options_defs): New variable.
6921 (make_info_print_options_def_group): New function.
6922 (extract_info_print_options): Define new function.
6923 * cli/cli-utils.h (extract_info_print_args): Delete.
6924 (struct info_print_options): New structure.
6925 (extract_info_print_options): Declare new function.
6926 * stack.c (info_locals_command): Update to use new
6927 extract_info_print_options, also add a header comment.
6928 (info_args_command): Likewise.
6929 * symtab.c (info_variables_command): Likewise.
6930 (info_functions_command): Likewise.
6931
021d8588
AB
69322019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
6933
6934 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
6935 to extract string arguments.
6936 * common/common-utils.c (extract_string_maybe_quoted): New function.
6937 * common/common-utils.h (extract_string_maybe_quoted): Declare.
6938
b777eb6d
TT
69392019-07-11 Tom Tromey <tromey@adacore.com>
6940
6941 * main.c (get_init_files): Use GDBINIT, not gdbinit.
6942 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
6943 * top.h (gdbinit): Don't declare.
6944 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
6945 into...
6946 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
6947 * top.c (gdb_init): Don't call init_cli_cmds.
6948 (gdbinit): Remove.
6949 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
6950
72ee03ff
TT
69512019-07-11 Tom Tromey <tromey@adacore.com>
6952
6953 * python/py-inferior.c (add_thread_object): Don't use thread_obj
6954 after it has been moved.
6955
00db9531
SM
69562019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6957
6958 * valops.c (value_must_coerce_to_target): Change return type to
6959 bool.
6960 * value.h (value_must_coerce_to_target): Likewise.
6961
f2478a7e
SM
69622019-07-10 Simon Marchi <simon.marchi@efficios.com>
6963
6964 * breakpoint.c (is_hardware_watchpoint): Remove
6965 forward-declaration.
6966 (is_masked_watchpoint): Change return type to bool.
6967 (is_tracepoint): Likewise.
6968 (is_breakpoint): Likewise.
6969 (is_hardware_watchpoint): Likewise.
6970 (is_watchpoint): Likewise.
6971 (is_no_memory_software_watchpoint): Likewise.
6972 (is_catchpoint): Likewise.
6973 (breakpoint_1): Make FILTER parameter's return type bool.
6974 is_masked_watchpoint): Change return type to bool.
6975 (save_breakpoints): Make FILTER parameter's return type bool.
6976 * breakpoint.h (is_breakpoint): Change return type to bool.
6977 (is_watchpoint): Likewise.
6978 (is_catchpoint): Likewise.
6979 (is_tracepoint): Likewise.
6980
0d12e84c
TT
69812019-07-10 Tom Tromey <tom@tromey.com>
6982
6983 * defs.h: Don't include gdbarch.h.
6984 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
6985 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
6986 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
6987 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
6988 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
6989 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
6990 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
6991 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
6992 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
6993 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
6994 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
6995 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
6996 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
6997 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
6998 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
6999 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7000 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7001 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7002 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7003 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7004 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7005 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7006 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7007 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7008 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7009 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7010 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7011
f06f1252
TT
70122019-07-10 Tom Tromey <tromey@adacore.com>
7013
7014 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7015 * breakpoint.c (init_ada_exception_breakpoint): Register as
7016 bp_catchpoint.
7017 (print_one_breakpoint_location, print_one_breakpoint): Use
7018 is_ada_exception_catchpoint.
7019 * ada-lang.c (class ada_catchpoint_location): Pass
7020 bp_loc_software_breakpoint to bp_location constructor.
7021 (is_ada_exception_catchpoint): New function.
7022
7a5d944b
TT
70232019-07-10 Tom Tromey <tromey@adacore.com>
7024
7025 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7026 VEC.
7027 (struct arm_exidx_entry): New method operator<.
7028 (struct arm_exidx_data) <section_maps>: Change type.
7029 (arm_exidx_data_free): Remove.
7030 (arm_exidx_data_key): Change type. Move lower.
7031 (arm_exidx_new_objfile): Update.
7032 (arm_compare_exidx_entries): Remove.
7033 (arm_find_exidx_entry, _initialize_arm_tdep)
7034
48c66e1d
TT
70352019-07-10 Tom Tromey <tromey@adacore.com>
7036
7037 * solib-spu.c (ocl_program_data_key): Change type.
7038 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7039 Update.
7040
a269fbf1
TT
70412019-07-10 Tom Tromey <tromey@adacore.com>
7042
7043 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7044 (struct solib_aix_inferior_data) <library_list>: Change type.
7045 (solib_aix_inferior_data_handle): Change type.
7046 (get_solib_aix_inferior_data): Update.
7047 (solib_aix_free_library_list): Remove.
7048 (library_list_start_library): Update.
7049 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7050 return type.
7051 (solib_aix_get_library_list)
7052 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7053 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7054
c294730c
TT
70552019-07-10 Tom Tromey <tromey@adacore.com>
7056
7057 * solib-dsbt.c (struct dsbt_info): Add initializers.
7058 (solib_dsbt_pspace_data): Change type.
7059 (dsbt_pspace_data_cleanup): Remove.
7060 (get_dsbt_info, _initialize_dsbt_solib): Update.
7061
9d52077d
TT
70622019-07-10 Tom Tromey <tromey@adacore.com>
7063
7064 * spu-tdep.c (spu_overlay_data): Change type.
7065 (spu_get_overlay_table, spu_overlay_new_objfile)
7066 (_initialize_spu_tdep): Update.
7067
22a20dca
TT
70682019-07-10 Tom Tromey <tromey@adacore.com>
7069
7070 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7071 destructor.
7072 (dbx_objfile_data_key): Change type and declare later.
7073 (DBX_SYMFILE_INFO): Rewrite.
7074 * dbxread.c (dbx_objfile_data_key): Change type.
7075 (dbx_symfile_init): Update.
7076 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7077 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7078 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7079
cb60f420
TT
70802019-07-10 Tom Tromey <tromey@adacore.com>
7081
7082 * jit.c (jit_program_space_key): Change type. Move lower.
7083 (get_jit_program_space_data): Update.
7084 (jit_program_space_data_cleanup): Remove.
7085 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7086 Update.
7087 (struct jit_program_space_data): Add initializers.
7088
51df2ae3
TT
70892019-07-10 Tom Tromey <tromey@adacore.com>
7090
7091 * solib-darwin.c (struct darwin_info): Add initializers.
7092 (solib_darwin_pspace_data): Change type.
7093 (darwin_pspace_data_cleanup): Remove.
7094 (get_darwin_info, _initialize_darwin_solib): Update.
7095
18101a35
TT
70962019-07-10 Tom Tromey <tromey@adacore.com>
7097
7098 * remote-sim.c (struct sim_inferior_data): Add initializers,
7099 constructor, and destructor.
7100 (sim_inferior_data_key): Change type. Move lower.
7101 (check_for_duplicate_sim_descriptor): Update.
7102 (get_sim_inferior_data): Use new. Update.
7103 (~sim_inferior_data_cleanup): Rename from
7104 sim_inferior_data_cleanup. Simplify.
7105 (gdbsim_close_inferior, simulator_command)
7106 (sim_command_completer, _initialize_remote_sim): Update.
7107 (next_pid, INITIAL_PID): Move earlier.
7108
05b08ac1
TT
71092019-07-10 Tom Tromey <tromey@adacore.com>
7110
7111 * python/python-internal.h (create_thread_object): Return
7112 gdbpy_ref.
7113 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7114 * python/py-inferior.c (struct threadlist_entry): Add
7115 constructor.
7116 <thread_obj>: Now a gdbpy_ref.
7117 (thread_to_thread_object): Update.
7118 (add_thread_object): Use new.
7119 (delete_thread_object): Use delete.
7120 (infpy_threads): Update.
7121 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7122 GIL.
7123
32372d80
TT
71242019-07-10 Tom Tromey <tromey@adacore.com>
7125
7126 * valops.c (value_cast): Specialize error message for Ada.
7127
5c458ae8
SM
71282019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7129
7130 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7131
4c462cb0
SM
71322019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7133
7134 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7135 bpstat_should_step): Return bool, adjust comments.
7136 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7137 bpstat_should_step): Likewise.
7138
89abbcc2
AH
71392019-07-10 Alan Hayward <alan.hayward@arm.com>
7140
7141 * features/Makefile: Use feature target descriptions for Arm.
7142 * features/arm/arm-core.c: Generate new file.
7143 * features/arm/arm-fpa.c: Likewise.
7144 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7145 * features/arm/arm-m-profile.c: Likewise.
7146 * features/arm/arm-vfpv2.c: Likewise.
7147 * features/arm/arm-vfpv3.c: Likewise.
7148 * features/arm/xscale-iwmmxt.c: Likewise.
7149 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7150
166a82be
AH
71512019-07-10 Alan Hayward <alan.hayward@arm.com>
7152
7153 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7154 ptrace earlier.
7155
9fb4c7e9
AH
71562019-07-10 Alan Hayward <alan.hayward@arm.com>
7157
7158 * features/aarch64-pauth.c: Regenerate.
7159
e2d0f980
SM
71602019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7161
7162 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7163 bool.
7164 (bpstat_what): Use false instead of 0.
7165
a38118e5
PA
71662019-07-09 Pedro Alves <palves@redhat.com>
7167
7168 * break-catch-throw.c (is_exception_catchpoint): New.
7169 * breakpoint.c (print_one_breakpoint_location): New parameter
7170 'raw_loc'. Handle it. Use
7171 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7172 looking at the breakpoint's type.
7173 (print_one_breakpoint): If handling "maint info breakpoints", also
7174 print locations of exception catchpoints.
7175 * breakpoint.h (is_exception_catchpoint): Declare.
7176
cb1e4e32
PA
71772019-07-09 Pedro Alves <palves@redhat.com>
7178
7179 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7180 "addr" field.
7181 (allocate_location_exception_catchpoint): New.
7182 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7183 (initialize_throw_catchpoint_ops): Install
7184 allocate_location_exception_catchpoint as allocate_location
7185 method.
7186 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7187 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7188 bp_loc_other.
7189 (breakpoint_address_is_meaningful): Delete.
7190 (bl_address_is_meaningful): New.
7191 (breakpoint_locations_match): Adjust comment.
7192 (bp_location_from_bp_type): New, factored out of...
7193 (bp_location::bp_location(breakpoint *)): ... this.
7194 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7195 factored out of...
7196 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7197 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7198 breakpoint_address_is_meaningful.
7199 (bp_locations_compare): Adjust comment.
7200 (update_global_location_list): Use bl_address_is_meaningful
7201 instead of breakpoint_address_is_meaningful.
7202 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7203 explicit.
7204 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7205 * python/py-breakpoint.c (bppy_get_location): No longer check
7206 whether location is null.
7207
b58a68fe
PA
72082019-07-09 Pedro Alves <palves@redhat.com>
7209
7210 PR c++/15468
7211 * breakpoint.c (print_one_breakpoint_location): Remove
7212 single-location assert.
7213
268a13a5
TT
72142019-07-09 Tom Tromey <tom@tromey.com>
7215
7216 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7217 * configure: Rebuild.
7218 * configure.ac: Change common to gdbsupport.
7219 * gdbsupport: Rename from common.
7220 * acinclude.m4: Change common to gdbsupport.
7221 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7222 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7223 gdbsupport.
7224 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7225 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7226 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7227 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7228 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7229 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7230 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7231 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7232 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7233 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7234 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7235 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7236 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7237 coff-pe-read.c, command.h, compile/compile-c-support.c,
7238 compile/compile-c.h, compile/compile-cplus-symbols.c,
7239 compile/compile-cplus-types.c, compile/compile-cplus.h,
7240 compile/compile-loc2c.c, compile/compile.c, completer.c,
7241 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7242 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7243 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7244 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7245 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7246 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7247 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7248 features/aarch64-core.c, features/aarch64-fpu.c,
7249 features/aarch64-pauth.c, features/aarch64-sve.c,
7250 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7251 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7252 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7253 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7254 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7255 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7256 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7257 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7258 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7259 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7260 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7261 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7262 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7263 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7264 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7265 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7266 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7267 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7268 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7269 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7270 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7271 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7272 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7273 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7274 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7275 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7276 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7277 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7278 minsyms.c, mips-linux-tdep.c, namespace.h,
7279 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7280 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7281 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7282 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7283 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7284 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7285 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7286 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7287 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7288 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7289 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7290 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7291 procfs.c, producer.c, progspace.h, psymtab.h,
7292 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7293 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7294 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7295 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7296 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7297 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7298 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7299 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7300 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7301 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7302 target-memory.c, target.c, target.h, target/waitstatus.c,
7303 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7304 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7305 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7306 unittests/array-view-selftests.c,
7307 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7308 unittests/common-utils-selftests.c,
7309 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7310 unittests/format_pieces-selftests.c,
7311 unittests/function-view-selftests.c,
7312 unittests/lookup_name_info-selftests.c,
7313 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7314 unittests/mkdir-recursive-selftests.c,
7315 unittests/observable-selftests.c,
7316 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7317 unittests/parse-connection-spec-selftests.c,
7318 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7319 unittests/scoped_fd-selftests.c,
7320 unittests/scoped_mmap-selftests.c,
7321 unittests/scoped_restore-selftests.c,
7322 unittests/string_view-selftests.c, unittests/style-selftests.c,
7323 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7324 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7325 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7326 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7327 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7328 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7329
5b0e2db4
AB
73302019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7331
7332 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7333 bool value.
7334 (decode_digits_ordinary): Set explicit_line field in sal.
7335 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7336 symtab_and_line that was set on an explicit line number in
7337 assembler code. Do always update the recorded symtab and line if
7338 we do skip the prologue.
7339
0ba852ab
AB
73402019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7341
7342 * breakpoint.c (set_breakpoint_location_function): Remove
7343 explicit_loc parameter.
7344 (momentary_breakpoint_from_master): Update call to
7345 set_breakpoint_location_function.
7346 (add_location_to_breakpoint): Likewise.
7347
b3a7d171
AB
73482019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7349
7350 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7351 required features based on default bfd type when no specific bfd
7352 is present.
7353
1f6f6e21
PW
73542019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7355
7356 * NEWS: Mention that GDB printf and eval commands can now print
7357 C-style and Ada-style convenience var strings without
7358 calling the inferior.
7359 * printcmd.c (printf_c_string): Locally print GDB internal var
7360 instead of transiting via the inferior.
7361 (printf_wide_c_string): Likewise.
7362
73632019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7364
5862c886 7365 PR breakpoints/25011
ea142fbf
AH
7366 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7367
0598af48
TT
73682019-07-04 Tom Tromey <tom@tromey.com>
7369
7370 PR tui/24724:
7371 * tui/tui-winsource.c (tui_clear_source_content): Update.
7372 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7373 (tui_update_breakpoint_info): Update.
7374 (tui_set_exec_info_content): Update.
7375 * tui/tui-source.c (tui_set_source_content_nil): Update.
7376 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7377 has_break.
7378 * tui/tui-data.h (enum tui_bp_flag): New.
7379 (tui_bp_flags): New enum flags type.
7380 (struct tui_source_element) <break_mode>: Change type. Rename
7381 from has_break.
7382 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7383 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7384 constants.
7385 * tui/tui-winsource.h: Fix comment.
7386
350fab54
AH
73872019-07-04 Alan Hayward <alan.hayward@arm.com>
7388
7389 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7390 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7391 (store_fpregs_to_thread)
7392 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7393 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7394 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7395 (IWMMXT_REGS_SIZE): Add define.
7396 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7397 (fetch_vfp_regs, store_vfp_regs)
7398 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7399 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7400
f0452268
AH
74012019-07-04 Alan Hayward <alan.hayward@arm.com>
7402
7403 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7404 defines.
7405 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7406 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7407 (ARM_INT_REGISTER_SIZE): ...to this.
7408 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7409 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7410 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7411 (arm_linux_collect_gregset, supply_nwfpe_register)
7412 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7413 defines.
7414 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7415 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7416 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7417 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7418 (arm_return_in_memory, arm_store_return_value)
7419 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7420 (arm_record_ld_st_multiple): Likewise.
7421 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7422 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7423
e935475c
AH
74242019-07-04 Alan Hayward <alan.hayward@arm.com>
7425
7426 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7427 AARCH64_DISPLACED_MODIFIED_INSNS.
7428 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7429 (aarch64_displaced_step_copy_insn): Likewise.
7430 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7431 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7432 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7433 ARM_DISPLACED_MODIFIED_INSNS.
7434 * arm-tdep.c (arm_gdbarch_init): Likewise.
7435 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7436 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7437 (struct arm_displaced_step_closure): Use
7438 ARM_DISPLACED_MODIFIED_INSNS.
7439
df0bb381
AH
74402019-07-04 Alan Hayward <alan.hayward@arm.com>
7441
7442 * features/Makefile: Remove unused xml files.
7443 * features/aarch64.xml: Remove.
7444 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7445 * features/i386/amd64-avx-avx512.xml: Remove.
7446 * features/i386/amd64-avx-linux.xml: Remove.
7447 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7448 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7449 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7450 * features/i386/amd64-avx-mpx.xml: Remove.
7451 * features/i386/amd64-avx.xml: Remove.
7452 * features/i386/amd64-linux.xml: Remove.
7453 * features/i386/amd64-mpx-linux.xml: Remove.
7454 * features/i386/amd64-mpx.xml: Remove.
7455 * features/i386/amd64.xml: Remove.
7456 * features/i386/i386-avx-avx512-linux.xml: Remove.
7457 * features/i386/i386-avx-avx512.xml: Remove.
7458 * features/i386/i386-avx-linux.xml: Remove.
7459 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7460 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7461 * features/i386/i386-avx-mpx-linux.xml: Remove.
7462 * features/i386/i386-avx-mpx.xml: Remove.
7463 * features/i386/i386-avx.xml: Remove.
7464 * features/i386/i386-linux.xml: Remove.
7465 * features/i386/i386-mmx-linux.xml: Remove.
7466 * features/i386/i386-mmx.xml: Remove.
7467 * features/i386/i386-mpx-linux.xml: Remove.
7468 * features/i386/i386-mpx.xml: Remove.
7469 * features/i386/i386.xml: Remove.
7470 * features/i386/x32-avx-avx512-linux.xml: Remove.
7471 * features/i386/x32-avx-linux.xml: Remove.
7472 * features/i386/x32-linux.xml: Remove.
7473
edd6266a
AH
74742019-07-04 Alan Hayward <alan.hayward@arm.com>
7475
7476 * regformats/aarch64.dat: Remove.
7477 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7478 * regformats/i386/amd64-avx-linux.dat: Remove.
7479 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7480 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7481 * regformats/i386/amd64-linux.dat: Remove.
7482 * regformats/i386/amd64-mpx-linux.dat: Remove.
7483 * regformats/i386/amd64.dat: Remove.
7484 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7485 * regformats/i386/i386-avx-linux.dat: Remove.
7486 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7487 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7488 * regformats/i386/i386-linux.dat: Remove.
7489 * regformats/i386/i386-mmx-linux.dat: Remove.
7490 * regformats/i386/i386-mpx-linux.dat: Remove.
7491 * regformats/i386/i386.dat: Remove.
7492 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7493 * regformats/i386/x32-avx-linux.dat: Remove.
7494 * regformats/i386/x32-linux.dat: Remove.
7495
2b40fda7
AH
74962019-07-04 Alan Hayward <alan.hayward@arm.com>
7497
7498 * aarch64-tdep.c: Remove xml self tests.
7499 * amd64-linux-tdep.c: Likewise.
7500 * amd64-tdep.c: Likewise.
7501 * i386-linux-tdep.c: Likewise.
7502 * i386-tdep.c: Likewise.
7503
5f4ba3e7
PA
75042019-07-03 Pedro Alves <palves@redhat.com>
7505
7506 PR cli/24732
7507 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7508 (pipe_cmd_option_defs): New.
7509 (make_pipe_cmd_options_def_group): New.
7510 (pipe_command): Use gdb::option::process_options.
7511 (pipe_command_completer): New function.
7512 (_initialize_cli_cmds): Install completer for "pipe" command.
7513
3d9be6f5
PA
75142019-07-03 Pedro Alves <palves@redhat.com>
7515
7516 * cli/cli-option.c (union option_value) <string>: New field.
7517 (struct option_def_and_value): Add ctor, move ctor, dtor and
7518 use DISABLE_COPY_AND_ASSIGN.
7519 (option_def_and_value::clear_value): New.
7520 (parse_option, save_option_value_in_ctx, get_val_type_str)
7521 (add_setshow_cmds_for_options): Handle var_string.
7522 * cli-option.h (union option_def::var_address) <string>: New
7523 field.
7524 (struct string_option_def): New.
7525 * maint-test-options.c (struct test_options_opts): Add default
7526 ctor and use DISABLE_COPY_AND_ASSIGN.
7527 <string_opt>: New field.
7528 (test_options_opts::~test_options_opts): New.
7529 (test_options_opts::dump): Also dump "-string".
7530 (test_options_option_defs): Install "string.
7531
41fc454c
PA
75322019-07-03 Pedro Alves <palves@redhat.com>
7533
7534 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7535 option_value with a null enumeration.
7536 (complete_options): Save the option values in the context.
7537 (save_option_value_in_ctx): New, factored out from ...
7538 (process_options): ... here.
7539 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7540 of the function.
7541 * maint-test-options.c (test_options_opts::dump): New, factored
7542 out from ...
7543 (maintenance_test_options_command_mode): ... here.
7544 (maintenance_test_options_command_completion_result): Delete.
7545 (maintenance_test_options_command_completion_text): Update
7546 comment.
7547 (maintenance_show_test_options_completion_result): Change
7548 prototype. Just print
7549 maintenance_test_options_command_completion_text.
7550 (save_completion_result): New.
7551 (maintenance_test_options_completer_mode): Pass options context to
7552 complete_options, and then save a dump.
7553 (_initialize_maint_test_options): Use add_cmd to install "maint
7554 show test-options-completion-result".
7555
fdbc9870
PA
75562019-07-03 Pedro Alves <palves@redhat.com>
7557
7558 * NEWS (New commands): Mention "with" and "maint with".
7559 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7560 (with_command, with_command_completer): New.
7561 (pipe_command): Adjust to new repeat_previous
7562 interface.
7563 (_initialize_cli_cmds): Install the "with" command and its "w"
7564 alias.
7565 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7566 declarations.
7567 * cli/cli-setshow.c (parse_cli_var_uinteger)
7568 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7569 argument strings for all var_types.
7570 (get_setshow_command_value_string): New, factored out from ...
7571 (do_show_command): ... this.
7572 * cli/cli-setshow.h: Include <string>.
7573 (get_setshow_command_value_string): Declare.
7574 * command.h (repeat_previous): Now returns const char *. Adjust
7575 comment.
7576 * maint.c: Include "cli/cli-cmds.h".
7577 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7578 (_initialize_maint_cmds): Register the "maintenance with" command.
7579 * top.c (repeat_previous): Move bits from pipe_command here:
7580 Return the saved command line, if any; error out if there's no
7581 command to relaunch.
7582
c6ac8931
PA
75832019-07-03 Pedro Alves <palves@redhat.com>
7584
7585 * NEWS (New commands): Mention "maint set/show test-settings"
7586 instead of "maint test-settings".
7587 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7588 (maintenance_test_settings_set_list): Rename to ...
7589 (maintenance_set_test_settings_list): ... this.
7590 (maintenance_test_settings_show_list): Rename to ...
7591 (maintenance_show_test_settings_list): ... this.
7592 (maintenance_test_settings_cmd): Delete.
7593 (maintenance_test_settings_set_cmd): ...
7594 (maintenance_set_test_settings_cmd): ... this.
7595 (maintenance_test_settings_show_cmd): ...
7596 (maintenance_show_test_settings_cmd): ... this.
7597 (maintenance_test_settings_show_value_cmd):
7598 (maintenance_show_test_settings_value_cmd): ... this.
7599 (_initialize_maint_test_settings): No longer install the "maint
7600 test-settings" prefix command. Rename "maint test-settings set"
7601 to "maint set test-settings", and "maint test-settings show" to
7602 "maint show test-settings". Adjust all subcommands.
7603
d1fcf2fd
PA
76042019-07-03 Pedro Alves <palves@redhat.com>
7605
7606 * maint-test-settings.c: Fix file's intro comment. Replace all
7607 references to "test-options" with references to "test-settings",
7608 in comments.
7609
970f9d09
PA
76102019-07-03 Pedro Alves <palves@redhat.com>
7611
7612 * maint-test-settings.c (maintenance_test_settings_xxx)
7613 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7614 New.
7615 (maintenance_test_settings_enums): Use them.
7616 (maintenance_test_settings_enum): Default to
7617 maintenance_test_settings_xxx.
7618 (_initialize_maint_test_settings): Initialize
7619 MAINTENANCE_TEST_SETTINGS_FILENAME.
7620
f3869b1a
SM
76212019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7622
7623 * breakpoint.h (remove_breakpoints_inf): Change return type to
7624 void, move function documentation here.
7625 * breakpoint.c (remove_breakpoints_inf): Change return type to
7626 void, move function documentation to header.
7627
54d66006
PA
76282019-07-02 Pedro Alves <palves@redhat.com>
7629
7630 * NEWS (Completion improvements): Mention "info threads".
7631 * thread.c (struct info_threads_opts, info_threads_option_defs)
7632 (make_info_threads_options_def_group): New.
7633 (info_threads_command): Use gdb::option::process_options.
7634 (info_threads_command_completer): New.
7635 (_initialize_thread): Use gdb::option::build_help to build the
7636 help text for "info threads".
7637
854f6088
SM
76382019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7639
7640 * defs.h (generic_load): Move from here...
7641 * symfile.h (generic_load): ... to here. Rename name parameter
7642 to args.
7643 * symfile.c (generic_load): Add comment.
7644
54ee4252
TT
76452019-07-01 Tom Tromey <tromey@adacore.com>
7646
7647 * dwarf2read.c
7648 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7649 declaration of without_params. Fix formatting.
7650
65392b3e
TT
76512019-07-01 Tom Tromey <tromey@adacore.com>
7652
7653 * ada-exp.y (find_primitive_type): Update.
7654 * ada-lang.h (ada_lookup_symbol): Update.
7655 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7656 parameter.
7657 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7658
7d7571f0
SDJ
76592019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7660
7661 PR breakpoints/24541
7662 * gdbarch.c: Regenerate.
7663 * gdbarch.h: Regenerate.
7664 * gdbarch.sh: Add 'stap_adjust_register'.
7665 * i386-tdep.c: Include '<unordered_set>'.
7666 (i386_stap_adjust_register): New function.
7667 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7668 * stap-probe.c (stap_parse_register_operand): Call
7669 'gdbarch_stap_adjust_register'.
7670
5af5392a
SDJ
76712019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7672
7673 PR python/24742
7674 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7675 * python/python.c (do_start_initialization): Use 'xmalloc'
7676 instead of 'PyMem_Malloc'.
7677
10d06d82
TT
76782019-06-28 Tom Tromey <tromey@adacore.com>
7679
7680 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7681 for Ada.
7682
1b7f24cd
TT
76832019-06-27 Tom Tromey <tromey@adacore.com>
7684
7685 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7686 objfile_key.
7687 (arm_find_mapping_symbol, arm_record_special_symbol)
7688 (_initialize_arm_tdep): Update.
7689 (arm_objfile_data_free): Remove.
7690
3d507ff2
TT
76912019-06-27 Tom Tromey <tromey@adacore.com>
7692
7693 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7694 to cp_print_static_field.
7695
762c164d
TT
76962019-06-26 Tom Tromey <tromey@adacore.com>
7697
7698 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7699 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7700 declare.
7701
aa2f9bcf
AH
77022019-06-26 Alan Hayward <alan.hayward@arm.com>
7703
7704 * features/aarch64-core.c (create_feature_aarch64_core):
7705 Regenerate.
7706 * features/aarch64-core.xml: Add cpsr flags.
7707
3426ae57
AH
77082019-06-26 Alan Hayward <alan.hayward@arm.com>
7709
7710 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7711 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7712
4838e44c
SM
77132019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7714
7715 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7716 field.
7717 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7718 use.
7719 (arm_record_special_symbol): Don't insert new symbol in sorted
7720 position, push it at the end.
7721
54cc7474
SM
77222019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7723
7724 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7725 (arm_mapping_symbol_s): Remove.
7726 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7727 (arm_mapping_symbol_vec): New typedef.
7728 (struct arm_per_objfile): Add constructor.
7729 <section_maps>: Change type to
7730 std::unique_ptr<arm_mapping_symbol_vec[]>.
7731 (arm_compare_mapping_symbols): Remove.
7732 (arm_find_mapping_symbol): Adjust to section_maps type change.
7733 (arm_objfile_data_free): Call delete on arm_per_objfile.
7734 (arm_record_special_symbol): Adjust to section_maps type change.
7735 Allocate arm_per_objfile with new.
7736
b65b566c
PW
77372019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7738
7739 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7740 with the command prefix.
7741
c2fc64f5
TT
77422019-06-25 Tom Tromey <tom@tromey.com>
7743
7744 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7745 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7746
fb54fa76
TT
77472019-06-25 Tom Tromey <tom@tromey.com>
7748
7749 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7750 type.
7751 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7752 protected.
7753
f7952c57
TT
77542019-06-25 Tom Tromey <tom@tromey.com>
7755
7756 * tui/tui-winsource.c
7757 (tui_source_window_base::set_is_exec_point_at): Add check against
7758 LOA_ADDRESS.
7759
17568d78
TT
77602019-06-25 Tom Tromey <tom@tromey.com>
7761
7762 * tui/tui-source.c (tui_set_source_content): Don't check before
7763 xfree.
7764 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7765
53e7cdba
TT
77662019-06-25 Tom Tromey <tom@tromey.com>
7767
7768 * tui/tui-winsource.h (tui_update_source_window_as_is)
7769 (tui_alloc_source_buffer, tui_line_is_displayed)
7770 (tui_addr_is_displayed): Change type of win_info.
7771 * tui/tui-winsource.c (tui_update_source_window_as_is)
7772 (tui_clear_source_content, tui_show_source_line)
7773 (tui_show_source_content, tui_source_window_base::refill)
7774 (tui_source_window_base::set_is_exec_point_at)
7775 (tui_source_window_base::set_is_exec_point_at)
7776 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7777 (tui_alloc_source_buffer, tui_line_is_displayed)
7778 (tui_addr_is_displayed): Change type of win_info. Update.
7779 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7780 (tui_source_window_base::do_make_visible_with_new_height):
7781 Update.
7782 * tui/tui-source.c (tui_set_source_content)
7783 (tui_set_source_content_nil)
7784 (tui_source_window::do_scroll_vertical): Update.
7785 * tui/tui-layout.c (show_layout): Update.
7786 * tui/tui-disasm.c (tui_set_disassem_content)
7787 (tui_disasm_window::do_scroll_vertical): Update.
7788 * tui/tui-data.h (tui_win_content): Remove.
7789 (struct tui_gen_win_info) <content, content_size>: Remove.
7790 (struct tui_source_element): Add initializers and destructor.
7791 (union tui_which_element, struct tui_win_element): Remove.
7792 (struct tui_source_window_base) <content>: New field.
7793 (struct tui_data_window): Remove destructor.
7794 (tui_alloc_content, tui_free_win_content)
7795 (tui_free_all_source_wins_content): Don't declare.
7796 * tui/tui-data.c (tui_initialize_static_data): Update.
7797 (init_content_element, tui_alloc_content): Remove.
7798 (~tui_gen_win_info): Update.
7799 (~tui_data_window, tui_free_all_source_wins_content)
7800 (tui_free_win_content, free_content, free_content_elements):
7801 Remove.
7802
7908abbf
TT
78032019-06-25 Tom Tromey <tom@tromey.com>
7804
7805 * tui/tui-winsource.h (tui_clear_source_content)
7806 (tui_erase_source_content, tui_show_source_content): Change type
7807 of win_info.
7808 * tui/tui-winsource.c (tui_clear_source_content)
7809 (tui_erase_source_content, tui_show_source_content): Change type
7810 of win_info.
7811 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7812 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7813 win_info.
7814 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7815 win_info.
7816 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7817
02c28df0
TT
78182019-06-25 Tom Tromey <tom@tromey.com>
7819
7820 * tui/tui-winsource.c (tui_clear_source_content)
7821 (tui_source_window_base::set_is_exec_point_at): Update.
7822 * tui/tui-source.c (tui_set_source_content_nil): Update.
7823 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7824 a bool.
7825 * tui/tui-data.c (init_content_element): Update.
7826
6658b1bf
TT
78272019-06-25 Tom Tromey <tom@tromey.com>
7828
7829 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7830 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7831 * tui/tui-layout.c (init_and_make_win): Update.
7832 * tui/tui.h (enum tui_win_type): Update.
7833 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7834 tui_win_is_auxillary.
7835 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7836 tui_win_is_auxillary.
7837
21e1c91e
TT
78382019-06-25 Tom Tromey <tom@tromey.com>
7839
7840 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7841 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7842 (tui_delete_data_content_windows, tui_display_all_data)
7843 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7844 Update.
7845 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7846 * tui/tui-regs.c (tui_last_regs_line_no)
7847 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7848 (tui_show_registers): Update.
7849 (tui_show_register_group): Return void. Update.
7850 (tui_display_registers_from, tui_display_reg_element_at_line)
7851 (tui_display_registers_from_line, tui_check_register_values):
7852 Update.
7853 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7854 member.
7855 (struct tui_data_window) <regs_content>: Now a std::vector.
7856 <regs_content_count>: Remove.
7857 (tui_add_content_elements, tui_free_data_content): Don't declare.
7858 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7859 (init_content_element): Remove DATA_WIN case. Add assert.
7860 (tui_add_content_elements): Remove.
7861 (tui_data_window): Update.
7862 (tui_free_data_content): Remove.
7863 (free_content_elements): Remove DATA_WIN case.
7864
115ac53b
TT
78652019-06-25 Tom Tromey <tom@tromey.com>
7866
7867 * tui/tui-data.c (tui_data_item_window): Update.
7868 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7869 * tui/tui-windata.c (tui_display_all_data)
7870 (tui_display_data_from_line): Update.
7871 (tui_check_data_values): Remove.
7872 * tui/tui-regs.c (tui_show_register_group)
7873 (tui_display_reg_element_at_line): Update.
7874 * tui/tui-hooks.c (tui_register_changed)
7875 (tui_refresh_frame_and_register_information): Call
7876 tui_check_register_values.
7877 * tui/tui-data.h (struct tui_data_window) <data_content,
7878 data_content_count, data_type>: Remove.
7879 (enum tui_data_type): Remove.
7880
7881 * tui/tui-data.c (tui_data_window::clear_detail)
7882 (~tui_data_window): Update.
7883
eaf9738b
TT
78842019-06-25 Tom Tromey <tom@tromey.com>
7885
7886 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
7887 declare.
7888 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
7889 Rename from tui_first_data_item_displayed. Update.
7890 (tui_data_window::refresh_all)
7891 (tui_data_window::do_scroll_vertical): Update.
7892 * tui/tui-data.h (struct tui_data_window)
7893 <first_data_item_displayed>: Declare new method.
7894
31ca4723
TT
78952019-06-25 Tom Tromey <tom@tromey.com>
7896
7897 * tui/tui-data.h (tui_init_generic_part): Don't declare.
7898 * tui/tui-data.c (tui_init_generic_part): Remove, moving
7899 contents...
7900 (tui_initialize_static_data): ...here.
7901
41bcff7f
TT
79022019-06-25 Tom Tromey <tom@tromey.com>
7903
7904 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
7905 (tui_display_registers_from, tui_check_register_values): Update.
7906 (tui_display_register): Remove win_info parameter; update.
7907 (tui_get_register): Change type of parameters.
7908 * tui/tui-data.h (struct tui_data_element): Remove.
7909 (union tui_which_element) <data>: Remove.
7910 <data_window>: Change type.
7911 (struct tui_data_item_window): New.
7912 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
7913 case. Add assert.
7914 (~tui_data_item_window): New destructor.
7915 (free_content_elements): Remove DATA_ITEM_WIN case.
7916
d2802c33
TT
79172019-06-25 Tom Tromey <tom@tromey.com>
7918
7919 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
7920 Remove.
7921
dd835f8b
TT
79222019-06-25 Tom Tromey <tom@tromey.com>
7923
7924 * tui/tui-data.h (struct tui_command_element): Remove.
7925 (union tui_which_element) <command>: Remove.
7926 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
7927 assert.
7928 (free_content_elements): Remove CMD_WIN case.
7929
bd7db367
TT
79302019-06-25 Tom Tromey <tom@tromey.com>
7931
7932 * tui/tui-layout.c (tui_set_layout): Update.
7933 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
7934 * tui/tui-data.c (layout_def): Update.
7935
3add462f
TT
79362019-06-25 Tom Tromey <tom@tromey.com>
7937
7938 * tui/tui-wingeneral.c (tui_refresh_all): Update.
7939 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7940 (tui_source_window_base::set_new_height): Update.
7941 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
7942 Update.
7943 (tui_set_locator_fullname, tui_set_locator_info)
7944 (tui_show_frame_info): Update.
7945 * tui/tui-source.c (tui_set_source_content)
7946 (tui_source_is_displayed): Update.
7947 * tui/tui-layout.c (show_source_disasm_command, show_data)
7948 (show_source_or_disasm_and_command): Update.
7949 * tui/tui-disasm.c (tui_set_disassem_content)
7950 (tui_get_begin_asm_address): Update.
7951 * tui/tui-data.h (struct tui_locator_element): Remove.
7952 (union tui_which_element) <locator>: Remove.
7953 (struct tui_locator_window): New.
7954 (tui_locator_win_info_ptr): Change return type.
7955 * tui/tui-data.c (_locator): Change type.
7956 (tui_locator_win_info_ptr): Change return type.
7957 (init_content_element): Remove LOCATOR_WIN case. Add assert.
7958 (tui_alloc_content): Add assert.
7959
489e9d8b
TT
79602019-06-25 Tom Tromey <tom@tromey.com>
7961
7962 * tui/tui-winsource.c
7963 (tui_exec_info_window::maybe_allocate_content): New method.
7964 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
7965 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
7966 (make_source_or_disasm_window): Add cast.
7967 * tui/tui-data.h (union tui_which_element) <simple_string>:
7968 Remove.
7969 (struct tui_source_info): New.
7970 (struct tui_source_window_base) <execution_info>: Change type.
7971 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
7972 case, and add assert.
7973 (tui_alloc_content): Add assert.
7974
c3fabb7d
TT
79752019-06-25 Tom Tromey <tom@tromey.com>
7976
7977 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
7978 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
7979 * tui/tui-data.c (tui_alloc_win_info): Remove.
7980
bbc228ee
TT
79812019-06-25 Tom Tromey <tom@tromey.com>
7982
7983 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
7984 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
7985 can_highlight.
7986
5fcee43a
TT
79872019-06-25 Tom Tromey <tom@tromey.com>
7988
7989 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
7990 make_visible_with_new_height method.
7991 (tui_win_info::make_visible_with_new_height): New method.
7992 (tui_source_window_base::do_make_visible_with_new_height)
7993 (tui_data_window::do_make_visible_with_new_height)
7994 (tui_cmd_window::do_make_visible_with_new_height): New methods.
7995 (make_visible_with_new_height): Remove.
7996 (tui_resize_all, tui_adjust_win_heights): Use
7997 make_visible_with_new_height method.
7998 * tui/tui-data.h (struct tui_win_info)
7999 <do_make_visible_with_new_height, make_visible_with_new_height>:
8000 New methods.
8001 (struct tui_source_window_base, struct tui_data_window)
8002 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8003 methods.
8004
d83f1fe6
TT
80052019-06-25 Tom Tromey <tom@tromey.com>
8006
8007 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8008 method.
8009 (update_tab_width): Call update_tab_width method.
8010 * tui/tui-data.h (struct tui_win_info)
8011 (struct tui_source_window_base) <update_tab_width>: New methods.
8012
17374de4
TT
80132019-06-25 Tom Tromey <tom@tromey.com>
8014
8015 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8016 parameter.
8017 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8018 parameter.
8019 (tui_gen_win_info::make_visible): Update.
8020 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8021 parameter.
8022 * tui/tui-data.h (enum tui_box): New enum.
8023 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8024
f936bca2
TT
80252019-06-25 Tom Tromey <tom@tromey.com>
8026
8027 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8028 init_and_make_win for EXEC_INFO_WIN.
8029 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8030 longer inline.
8031 (struct tui_win_info) <~tui_win_info>: Inline.
8032 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8033 Don't declare.
8034 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8035 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8036 Remove.
8037 (tui_initialize_static_data): Update.
8038 (~tui_gen_win_info): Handle more cleanup here.
8039 (~tui_source_window_base): Delete "execution_info".
8040 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8041
d6ba6a11
TT
80422019-06-25 Tom Tromey <tom@tromey.com>
8043
8044 * tui/tui-layout.c (make_command_window): Don't set
8045 can_highlight.
8046 (show_source_disasm_command): Call the reset method.
8047 (show_data): Don't set can_highlight. Call the reset method.
8048 (tui_gen_win_info::reset): Rename from init_gen_win_info
8049 (init_and_make_win): Simplify. Return tui_gen_win_info.
8050 (show_source_or_disasm_and_command): Call the reset method.
8051 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8052 (struct tui_cmd_window): Set can_highlight.
8053
48a3bd16
TT
80542019-06-25 Tom Tromey <tom@tromey.com>
8055
8056 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8057 from make_visible.
8058 (tui_make_visible, tui_make_invisible): Rewrite.
8059 (tui_win_info::make_visible): Remove.
8060 (tui_source_window_base::make_visible): Update.
8061 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8062 method. Moved from...
8063 (struct tui_win_info) <make_visible>: ...here.
8064
c3bd716f
TT
80652019-06-25 Tom Tromey <tom@tromey.com>
8066
8067 * tui/tui-winsource.c
8068 (tui_source_window_base::do_scroll_horizontal): Remove direction
8069 parameter.
8070 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8071 direction parameter.
8072 * tui/tui-win.c (tui_win_info::forward_scroll)
8073 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8074 (tui_win_info::right_scroll): Update.
8075 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8076 direction parameter.
8077 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8078 direction parameter.
8079 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8080 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8081 Remove direction parameter.
8082 (struct tui_source_window_base, struct tui_source_window)
8083 (struct tui_disasm_window, struct tui_data_window)
8084 (struct tui_cmd_window): Update.
8085
21c32dca
TT
80862019-06-25 Tom Tromey <tom@tromey.com>
8087
8088 * tui/tui-winsource.h (tui_set_exec_info_content)
8089 (tui_show_exec_info_content, tui_erase_exec_info_content)
8090 (tui_clear_exec_info_content, tui_update_exec_info): Change
8091 argument to tui_source_window_base.
8092 * tui/tui-winsource.c (tui_set_exec_info_content)
8093 (tui_show_exec_info_content, tui_erase_exec_info_content)
8094 (tui_clear_exec_info_content, tui_update_exec_info): Change
8095 argument to tui_source_window_base.
8096
73fbdc65
TT
80972019-06-25 Tom Tromey <tom@tromey.com>
8098
8099 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8100 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8101
33325343
TT
81022019-06-25 Tom Tromey <tom@tromey.com>
8103
8104 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8105 check.
8106
29d2c474
TT
81072019-06-25 Tom Tromey <tom@tromey.com>
8108
8109 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8110 type to void.
8111 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8112 type to void.
8113 * tui/tui-source.c (tui_set_source_content): Update.
8114 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8115
152f3f4b
TT
81162019-06-25 Tom Tromey <tom@tromey.com>
8117
8118 * tui/tui-win.c (window_name_completer, tui_set_focus)
8119 (tui_all_windows_info): Use name method.
8120 * tui/tui-data.h (struct tui_gen_win_info)
8121 (struct tui_source_window, struct tui_disasm_window)
8122 (struct tui_data_window, struct tui_cmd_window) <name>: New
8123 method.
8124 (tui_win_name): Don't declare.
8125 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8126 (tui_win_name): Remove.
8127
be4da588
TT
81282019-06-25 Tom Tromey <tom@tromey.com>
8129
8130 * tui/tui-winsource.h (tui_update_source_window)
8131 (tui_update_source_window_as_is): Change parameter type.
8132 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8133 to be a tui_source_window_base.
8134 (tui_update_source_window_as_is): Likewise.
8135 * tui/tui-win.c (make_visible_with_new_height): Update.
8136
5b81daba
TT
81372019-06-25 Tom Tromey <tom@tromey.com>
8138
8139 * tui/tui-winsource.c (tui_erase_source_content)
8140 (tui_show_source_content, tui_show_exec_info_content)
8141 (tui_erase_exec_info_content): Use refresh_window method.
8142 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8143 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8144 from tui_refresh_win.
8145 (tui_data_window::refresh_window): New method.
8146 (tui_win_info::refresh, tui_source_window_base::refresh)
8147 (tui_refresh_all): Use refresh_window method.
8148 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8149 method.
8150 * tui/tui-regs.c (tui_display_register): Call refresh_window
8151 method.
8152 * tui/tui-layout.c (show_source_disasm_command)
8153 (show_source_or_disasm_and_command): Call refresh_window method.
8154 * tui/tui-data.h (struct tui_gen_win_info)
8155 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8156 New method.
8157
cb2ce893
TT
81582019-06-25 Tom Tromey <tom@tromey.com>
8159
8160 * tui/tui.c (tui_rl_other_window, tui_enable)
8161 (tui_is_window_visible, tui_get_command_dimension): Update.
8162 * tui/tui-winsource.c (tui_update_source_window_as_is)
8163 (tui_clear_source_content, tui_erase_source_content)
8164 (tui_show_source_line, tui_source_window_base::refill)
8165 (tui_source_window_base::do_scroll_horizontal)
8166 (tui_source_window_base::set_is_exec_point_at)
8167 (tui_update_breakpoint_info, tui_set_exec_info_content)
8168 (tui_alloc_source_buffer, tui_line_is_displayed)
8169 (tui_addr_is_displayed): Update.
8170 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8171 (tui_check_and_display_highlight_if_needed)
8172 (tui_win_info::make_visible, tui_win_info::refresh)
8173 (tui_refresh_all): Update.
8174 * tui/tui-windata.c (tui_first_data_item_displayed)
8175 (tui_delete_data_content_windows, tui_erase_data_content)
8176 (tui_display_all_data, tui_data_window::refresh_all)
8177 (tui_check_data_values): Update.
8178 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8179 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8180 (tui_win_info::backward_scroll, tui_refresh_all_win)
8181 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8182 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8183 (tui_source_window_base::set_new_height)
8184 (tui_data_window::set_new_height)
8185 (make_invisible_and_set_new_height)
8186 (make_visible_with_new_height, new_height_ok)
8187 (parse_scrolling_args): Update.
8188 * tui/tui-stack.c (tui_show_frame_info): Update.
8189 * tui/tui-source.c (tui_set_source_content)
8190 (tui_set_source_content_nil, tui_source_is_displayed)
8191 (tui_source_window::do_scroll_vertical): Update.
8192 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8193 (tui_display_registers_from, tui_display_reg_element_at_line)
8194 (tui_check_register_values, tui_reg_command): Update.
8195 * tui/tui-layout.c (tui_default_win_height)
8196 (show_source_disasm_command, show_data, init_and_make_win)
8197 (show_source_or_disasm_and_command): Update.
8198 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8199 (tui_redisplay_readline, tui_mld_flush)
8200 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8201 (tui_getc): Update.
8202 * tui/tui-disasm.c (tui_set_disassem_content)
8203 (tui_disasm_window::do_scroll_vertical): Update.
8204 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8205 Now virtual.
8206 (struct tui_win_info): Derive from tui_gen_win_info.
8207 <~tui_win_info>: Mark as override.
8208 <generic>: Remove member.
8209 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8210 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8211 (~tui_data_window, ~tui_win_info)
8212 (tui_free_all_source_wins_content): Update.
8213 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8214
ab313b35
TT
82152019-06-25 Tom Tromey <tom@tromey.com>
8216
8217 * tui/tui-layout.c (init_and_make_win): Use new.
8218 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8219 destructor, initializers.
8220 (tui_alloc_generic_win_info): Don't declare.
8221 * tui/tui-data.c (_locator): Add argument to constructor.
8222 (source_win, disasm_win): New globals.
8223 (exec_info): Remove.
8224 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8225 Update.
8226 (tui_alloc_generic_win_info): Remove.
8227 (init_content_element): Use new.
8228 (tui_win_info::tui_win_info): Update.
8229 (free_content_elements) <case DATA_WIN>: Use delete.
8230
dc2c33e4
TT
82312019-06-25 Tom Tromey <tom@tromey.com>
8232
8233 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8234 * tui/tui-windata.c (tui_first_data_item_displayed)
8235 (tui_delete_data_content_windows): Update.
8236 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8237 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8238 (tui_display_registers_from, tui_check_register_values): Update.
8239 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8240 pointer.
8241 * tui/tui-data.c (init_content_element): Update. Allocate the new
8242 window.
8243 (tui_free_data_content): Update.
8244 (free_content_elements) <case DATA_WIN>: Free the window.
8245
214a5cbe
TT
82462019-06-25 Tom Tromey <tom@tromey.com>
8247
8248 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8249 Update.
8250 * tui/tui-layout.c (make_command_window)
8251 (show_source_disasm_command, show_data, init_and_make_win)
8252 (show_source_or_disasm_and_command): Update.
8253 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8254 method.
8255 <can_highight, is_highlighted>: Now bool.
8256 (tui_set_win_highlight): Don't declare.
8257 * tui/tui-data.c (tui_set_win_highlight): Remove.
8258
8e2daf15
TT
82592019-06-25 Tom Tromey <tom@tromey.com>
8260
8261 * tui/tui-wingeneral.c (make_visible): Remove check of window
8262 type.
8263
8903bd8a
TT
82642019-06-25 Tom Tromey <tom@tromey.com>
8265
8266 * tui/tui-win.c (tui_win_info::max_height)
8267 (tui_cmd_window::max_height): New methods.
8268 (new_height_ok): Call max_height.
8269 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8270 <max_height>: New method.
8271
3f02ce1e
TT
82722019-06-25 Tom Tromey <tom@tromey.com>
8273
8274 * tui/tui-win.c (tui_source_window_base::set_new_height)
8275 (tui_data_window::set_new_height): New methods.
8276 (make_invisible_and_set_new_height): Call set_new_height method.
8277 * tui/tui-data.h (struct tui_win_info)
8278 (struct tui_source_window_base, struct tui_data_window)
8279 <set_new_height>: New method.
8280
1825f487
TT
82812019-06-25 Tom Tromey <tom@tromey.com>
8282
8283 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8284 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8285 tui_refresh_data_win.
8286 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8287 method.
8288 (tui_refresh_all_win): Call the refresh_all method.
8289 (tui_set_focus): Likewise.
8290 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8291 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8292 Likewise.
8293
ad54d15b
TT
82942019-06-25 Tom Tromey <tom@tromey.com>
8295
8296 * tui/tui-winsource.h (tui_refill_source_window)
8297 (tui_set_is_exec_point_at): Don't declare.
8298 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8299 (tui_source_window_base::refill): Rename from
8300 tui_refill_source_window.
8301 (tui_source_window_base::do_scroll_horizontal): Update.
8302 (tui_source_window_base::set_is_exec_point_at): Rename from
8303 tui_set_is_exec_point_at.
8304 (tui_update_all_breakpoint_info): Update.
8305 * tui/tui-stack.c (tui_show_frame_info): Update.
8306 * tui/tui-layout.c (show_data): Add cast.
8307 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8308 * tui/tui-data.h (struct tui_source_window_base) <refill,
8309 set_is_exec_point_at>: New methods.
8310 (tui_source_windows, tui_add_to_source_windows): Update types.
8311 (tui_add_to_source_windows): Remove redundant declaration.
8312 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8313 (tui_source_windows): Change return type.
8314 (tui_clear_source_windows_detail): Update.
8315 (tui_add_to_source_windows): Change type of parameter.
8316 (tui_free_all_source_wins_content): Update.
8317
2042b506
TT
83182019-06-25 Tom Tromey <tom@tromey.com>
8319
8320 * tui/tui-wingeneral.c (tui_win_info::refresh)
8321 (tui_source_window_base::refresh): New methods.
8322 (tui_refresh_all): Call the refresh method.
8323 * tui/tui-data.h (struct tui_win_info)
8324 (struct tui_source_window_base) <refresh>: New method.
8325
56122977
TT
83262019-06-25 Tom Tromey <tom@tromey.com>
8327
8328 * tui/tui.h (tui_is_window_visible): Return bool.
8329 * tui/tui.c (tui_is_window_visible): Return bool.
8330 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8331 (tui_make_visible, tui_make_invisible)
8332 (tui_win_info::make_visible)
8333 (tui_source_window_base::make_visible, make_all_visible)
8334 (tui_make_all_visible, tui_make_all_invisible): Update.
8335 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8336 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8337 bool.
8338 (struct tui_win_info, struct tui_source_window_base)
8339 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8340 * tui/tui-data.c (tui_init_generic_part): Update.
8341
cda37efb
TT
83422019-06-25 Tom Tromey <tom@tromey.com>
8343
8344 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8345 (tui_source_window_base::make_visible): New methods.
8346 (make_all_visible): Make method call.
8347 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8348 (struct tui_source_window_base, struct tui_cmd_window): Override
8349 make_visible.
8350 (tui_win_is_source_type): Don't declare.
8351 * tui/tui-data.c (tui_win_is_source_type): Remove.
8352
6a0ee02c
TT
83532019-06-25 Tom Tromey <tom@tromey.com>
8354
8355 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8356 NULL check.
8357
63901aec
TT
83582019-06-25 Tom Tromey <tom@tromey.com>
8359
8360 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8361 Inline constructor. Add initializers for members.
8362 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8363 constructors; now inline in class.
8364
ceb13a13
TT
83652019-06-25 Tom Tromey <tom@tromey.com>
8366
8367 * tui/tui-regs.c (tui_show_registers): Update.
8368 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8369 bool.
8370 * tui/tui-data.c (tui_data_window::clear_detail)
8371 (tui_data_window): Update.
8372
238eb706
TT
83732019-06-25 Tom Tromey <tom@tromey.com>
8374
8375 * tui/tui-windata.c (tui_display_all_data)
8376 (tui_display_data_from_line, tui_display_data_from)
8377 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8378 Update.
8379 * tui/tui-regs.c (tui_last_regs_line_no)
8380 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8381 (tui_show_registers, tui_show_register_group)
8382 (tui_display_registers_from, tui_display_reg_element_at_line)
8383 (tui_display_registers_from_line, tui_check_register_values)
8384 (tui_reg_next, tui_reg_prev): Update.
8385 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8386 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8387 tui_data_window.
8388 (struct tui_win_info) <detail>: Remove. Add new fields from
8389 tui_data_info.
8390 (TUI_DATA_WIN): Add cast.
8391 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8392 (~tui_data_window): Simplify.
8393
81491aa0
TT
83942019-06-25 Tom Tromey <tom@tromey.com>
8395
8396 * tui/tui-layout.c (show_source_disasm_command)
8397 (show_source_or_disasm_and_command): Update.
8398 * tui/tui-io.c (update_cmdwin_start_line)
8399 (tui_redisplay_readline): Update.
8400 * tui/tui-data.h (struct tui_command_info): Remove.
8401 (struct tui_win_info) <detail>: Remove command_info member.
8402 (struct tui_data_window) <start_line>: New member, from
8403 tui_command_info.
8404 (TUI_CMD_WIN): Add casts.
8405
e6e41501
TT
84062019-06-25 Tom Tromey <tom@tromey.com>
8407
8408 * tui/tui-winsource.c (tui_update_source_window)
8409 (tui_refill_source_window)
8410 (tui_source_window_base::do_scroll_horizontal)
8411 (tui_update_breakpoint_info, tui_set_exec_info_content)
8412 (tui_show_exec_info_content, tui_erase_exec_info_content)
8413 (tui_clear_exec_info_content): Update.
8414 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8415 Update.
8416 * tui/tui-win.c (make_invisible_and_set_new_height)
8417 (make_visible_with_new_height): Update.
8418 * tui/tui-source.c (tui_set_source_content)
8419 (tui_show_symtab_source): Update.
8420 * tui/tui-layout.c (extract_display_start_addr)
8421 (show_source_disasm_command, show_data)
8422 (make_source_or_disasm_window)
8423 (show_source_or_disasm_and_command): Update.
8424 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8425 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8426 "gdbarch".
8427 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8428 to tui_source_window_base.
8429 (struct tui_win_info) <detail>: Remove source_info member.
8430 (struct tui_source_window_base) <has_locator>: Inline.
8431 Move contents from tui_source_info; rename has_locator member to
8432 m_has_locator.
8433 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8434 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8435 header file.
8436 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8437 Simplify.
8438 (tui_free_all_source_wins_content): Cast to
8439 tui_source_window_base.
8440
44f0e208
TT
84412019-06-25 Tom Tromey <tom@tromey.com>
8442
8443 * tui/tui-win.c (make_invisible_and_set_new_height)
8444 (make_visible_with_new_height): Call has_locator method.
8445 * tui/tui-layout.c (show_source_disasm_command, show_data)
8446 (show_source_or_disasm_and_command): Update for bool change.
8447 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8448 (tui_win_info) <has_locator>: New method.
8449 (struct tui_source_window_base) <has_locator>: New method.
8450 (tui_win_has_locator): Don't declare.
8451 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8452 from tui_win_has_locator.
8453 (tui_source_window_base): Use false, not FALSE.
8454
7778b912
TT
84552019-06-25 Tom Tromey <tom@tromey.com>
8456
8457 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8458 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8459 clear_detail method directly.
8460 (tui_clear_win_detail): Remove.
8461
f83d391c
TT
84622019-06-25 Tom Tromey <tom@tromey.com>
8463
8464 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8465 "this", not TUI_DISASM_WIN.
8466
13446e05
TT
84672019-06-25 Tom Tromey <tom@tromey.com>
8468
8469 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8470 declare.
8471 * tui/tui-winsource.c
8472 (tui_source_window_base::do_scroll_horizontal): Rename from
8473 tui_horizontal_source_scroll.
8474 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8475 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8476 from tui_vertical_data_scroll.
8477 * tui/tui-win.h (tui_scroll): Don't declare.
8478 * tui/tui-win.c (tui_win_info::forward_scroll)
8479 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8480 (tui_win_info::right_scroll): Rename and update.
8481 (tui_scroll_forward_command, tui_scroll_backward_command)
8482 (tui_scroll_left_command, tui_scroll_right_command): Update.
8483 (tui_scroll): Remove.
8484 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8485 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8486 from tui_vertical_source_scroll.
8487 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8488 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8489 from tui_vertical_disassem_scroll.
8490 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8491 do_scroll_horizontal>: New methods.
8492 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8493 Likewise.
8494 (struct tui_source_window_base): Add do_scroll_horizontal.
8495 (struct tui_source_window, struct tui_disasm_window): Add
8496 do_scroll_vertical.
8497 (struct tui_data_window, struct tui_cmd_window): Add
8498 do_scroll_horizontal and do_scroll_vertical.
8499 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8500
5cf82909
TT
85012019-06-25 Tom Tromey <tom@tromey.com>
8502
8503 * tui/tui-data.h (struct tui_source_window_base): New struct.
8504 (struct tui_source_window): Derive from tui_source_window_base.
8505 (struct tui_disasm_window): New struct.
8506 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8507 from tui_source_window::clear_detail.
8508 (tui_source_window_base): Rename from tui_source_window.
8509 (~tui_source_window_base): Rename from ~tui_source_window.
8510 (tui_alloc_win_info): Create a tui_disasm_window.
8511
ee1d42d6
TT
85122019-06-25 Tom Tromey <tom@tromey.com>
8513
8514 * tui/tui-data.h (struct tui_source_window)
8515 (struct tui_data_window): Declare destructors.
8516 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8517 destructors.
8518 (tui_win_info): Simplify.
8519
b4eb2452
TT
85202019-06-25 Tom Tromey <tom@tromey.com>
8521
8522 * tui/tui-winsource.c (tui_display_main)
8523 (tui_update_source_windows_with_addr)
8524 (tui_update_all_breakpoint_info): Update.
8525 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8526 (new_height_ok, parse_scrolling_args): Update.
8527 * tui/tui-stack.c (tui_show_frame_info): Update.
8528 * tui/tui-data.h (struct tui_list): Remove.
8529 (tui_source_windows): Return a reference to a std::vector.
8530 * tui/tui-data.c (source_windows): Now a std::vector.
8531 (tui_source_windows): Change return type.
8532 (tui_clear_source_windows): Rewrite.
8533 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8534 (tui_free_all_source_wins_content): Rewrite.
8535
8761a91b
TT
85362019-06-25 Tom Tromey <tom@tromey.com>
8537
8538 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8539 (struct tui_data_window, struct tui_cmd_window): Declare
8540 clear_detail method.
8541 * tui/tui-data.c (tui_source_window::clear_detail)
8542 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8543 methods.
8544 (tui_clear_win_detail): Simplify.
8545
0ed69eda
TT
85462019-06-25 Tom Tromey <tom@tromey.com>
8547
8548 * tui/tui-layout.c (make_source_window, make_disasm_window)
8549 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8550 Return the new window.
8551 (show_source_disasm_command, show_data)
8552 (show_source_or_disasm_and_command): Update.
8553
82432e10
TT
85542019-06-25 Tom Tromey <tom@tromey.com>
8555
8556 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8557 parameter. Return the new window.
8558 (show_source_disasm_command): Update and remove NULL check.
8559 (show_source_or_disasm_and_command): Update.
8560
ec328aa5
TT
85612019-06-25 Tom Tromey <tom@tromey.com>
8562
8563 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8564
33b906ab
TT
85652019-06-25 Tom Tromey <tom@tromey.com>
8566
8567 * tui/tui-data.h (struct tui_win_info): Make constructor
8568 protected. Make destructor virtual. Add initializers.
8569 (tui_source_window, tui_data_window, tui_cmd_window): New
8570 classes.
8571 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8572 constructor. Add "type" parameter.
8573 (tui_source_window, tui_data_window, tui_cmd_window): New
8574 constructors.
8575 (tui_alloc_win_info): Instantiate the appropriate subclass.
8576
e7e11af4
TT
85772019-06-25 Tom Tromey <tom@tromey.com>
8578
8579 * tui/tui-win.c (tui_resize_all): Use delete.
8580 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8581 destructor.
8582 (tui_free_window): Don't declare.
8583 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8584 Update.
8585
6792b55e
TT
85862019-06-25 Tom Tromey <tom@tromey.com>
8587
8588 * tui/tui-data.h (struct tui_win_info): Add constructor.
8589 * tui/tui-data.c (tui_alloc_win_info): Use new.
8590 (tui_free_window): Use delete.
8591
f95675e1
TT
85922019-06-22 Tom Tromey <tom@tromey.com>
8593
8594 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8595 declare.
8596 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8597
5bff081c
TT
85982019-06-22 Tom Tromey <tom@tromey.com>
8599
8600 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8601 declare.
8602 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8603
47e3f474
TV
86042019-06-22 Tom de Vries <tdevries@suse.de>
8605
8606 * dwarf2read.c (create_addrmap_from_aranges)
8607 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8608 instead of '%zu'.
8609
fd5866f6
SM
86102019-06-21 Simon Marchi <simon.marchi@efficios.com>
8611
8612 * dwarf2read.h (dwarf2_section_info_def): Remove.
8613 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8614 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8615 std::vector<dwarf2_section_info>.
8616 (struct dwo_file) <~dwo_file>: Remove.
8617 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8618 types field.
8619 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8620 (dwarf2_read_debug_names): Likewise.
8621 (create_debug_types_hash_table): Change parameter type to
8622 array_view, adjust code accordingly.
8623 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8624 (partial_die_info::fixup): Likewise.
8625 (determine_prefix): Likewise.
8626 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8627
fb1eb2f9
SM
86282019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8629
8630 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8631 gdb_bfd_ref_ptr.
8632 <~dwo_file>: Remove call to gdb_bfd_unref.
8633 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8634 gdb_bfd_ref_ptr::get.
8635
51ac9db5
SM
86362019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8637
8638 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8639 type to htab_up.
8640 * dwarf2read.c (struct dwo_file): Initialize fields.
8641 <~dwo_file>: New.
8642 (free_dwo_file): Remove, move content to ~dwo_file.
8643 (struct dwo_file_deleter): Remove.
8644 (dwo_file_up>: Remove custom deleter.
8645 (free_dwo_files): Remove.
8646 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8647 dwo_files.
8648 (process_skeletonless_type_units): Call unique_ptr::get.
8649 (allocate_dwo_file_hash_table): Add deleter to created hash
8650 table. Change return type to htab_up.
8651 (lookup_dwo_file_slot): Don't memset dwo_file, call
8652 unique_ptr::get.
8653 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8654 (create_dwo_unit_in_dwp_v2): Likewise.
8655 (open_and_init_dwo_file): Likewise.
8656 (free_dwo_file_from_slot): Remove.
8657
dc4ccb6f
SM
86582019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8659
8660 * dwarf2read.h (struct dwarf2_section_info) <readin,
8661 is_virtual>: Change type to bool.
8662 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8663 true instead of 1.
8664
e6a1c5cb
TT
86652019-06-19 Tom Tromey <tom@tromey.com>
8666
8667 * tui/tui-data.h (tui_init_content_element): Don't declare.
8668
6f6ffbeb
TT
86692019-06-19 Tom Tromey <tom@tromey.com>
8670
8671 * tui/tui-data.h (tui_init_win_info): Don't declare.
8672
f23f598e
TV
86732019-06-19 Tom de Vries <tdevries@suse.de>
8674
8675 * dwarf2read.h (abstract_to_concrete): Change type to
8676 std::unordered_map<sect_offset, std::vector<sect_offset>,
8677 gdb::hash_enum<sect_offset>>.
8678
680e1bee
TT
86792019-06-19 Tom Tromey <tromey@adacore.com>
8680
8681 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8682 EVAL_AVOID_SIDE_EFFECTS specially.
8683
dcf37923
TT
86842019-06-19 Tom Tromey <tromey@adacore.com>
8685
8686 * source-cache.c (highlighter): New global.
8687 (source_cache::get_source_lines): Create a highlighter on demand.
8688
494986d5
AB
86892019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8690
8691 * defs.h (deprecated_interactive_hook): Delete declaration.
8692 * interps.c (clear_interpreter_hooks): Remove use of
8693 deprecated_interactive_hook.
8694 * top.c (deprecated_interactive_hook): Delete definition.
8695 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8696
3360b6e7
TV
86972019-06-18 Tom de Vries <tdevries@suse.de>
8698
8699 PR gdb/24515
8700 * dwarf2read.h (abstract_to_concrete): Change type from
8701 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8702 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8703 * dwarf2read.c (read_variable): Update.
8704 (dwarf2_fetch_die_loc_sect_off): Update.
8705
310b3441
TV
87062019-06-17 Tom de Vries <tdevries@suse.de>
8707
8708 PR gdb/24617
8709 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8710 accessing parent[parent_len - 1].
8711
ba9777be
PP
87122019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8713
8714 PR gdb/24364
8715 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8716 call dtrace_process_dof with NULL dof.
8717
2b9f6e89
TV
87182019-06-16 Tom de Vries <tdevries@suse.de>
8719
8720 PR gdb/24445
8721 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8722
431b3ead
TT
87232019-06-16 Tom Tromey <tom@tromey.com>
8724
8725 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8726 (make_all_visible): Use address of member.
8727
d04b44a1
TT
87282019-06-16 Tom Tromey <tom@tromey.com>
8729
8730 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8731 (tui_free_window, free_content, free_content_elements): Remove
8732 unnecessary cast.
8733 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8734 cast.
8735 * tui/tui-regs.c (tui_show_register_group)
8736 (tui_display_registers_from, tui_display_reg_element_at_line):
8737 Remove unnecessary cast.
8738
bf5142e7
AB
87392019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8740
8741 * linux-nat.c (normal_mask): Delete.
8742 (_initialize_linux_nat): Don't initialise normal_mask.
8743
c4973306
SM
87442019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8745
8746 PR gdb/24445
8747 * dwarf-index-write.h (write_psymtabs_to_index): Add
8748 dwz_basename parameter.
8749 * dwarf-index-write.c (write_gdbindex): Move file writing to
8750 write_gdbindex_1. Change return type void.
8751 (assert_file_size): Move up, remove filename parameter.
8752 (write_gdbindex_1): New function.
8753 (write_debug_names): Change return type to void, call
8754 assert_file_size.
8755 (struct index_wip_file): New struct.
8756 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8757 file logic to index_wip_file. Write index for dwz file if
8758 needed.
8759 (save_gdb_index_command): Pass basename of dwz file, if present.
8760 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8761 build-id of dwz file, if present.
8762 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8763 (dwarf2_get_dwz_file): Likewise.
8764 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8765 (dwarf2_get_dwz_file): Likewise.
8766
395f9c91
TT
87672019-06-16 Tom Tromey <tom@tromey.com>
8768
8769 * coffread.c (process_coff_symbol): Use xstrdup.
8770 * value.c (create_internalvar): Use xstrdup.
8771
cafb3438
TT
87722019-06-16 Tom Tromey <tom@tromey.com>
8773
8774 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8775 * breakpoint.c (stopin_command, stopat_command)
8776 (until_break_command, decode_location_default): Remove unnecessary
8777 cast.
8778 * utils.c (subset_compare): Remove unnecessary cast.
8779 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8780 cast.
8781 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8782 cast.
8783 * infcmd.c (path_command): Remove unnecessary cast.
8784 * coffread.c (decode_type): Remove unnecessary cast.
8785 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8786 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8787 * tui/tui-stack.c (tui_show_locator_content)
8788 (tui_show_frame_info): Remove unnecessary cast.
8789 * tui/tui-win.c (tui_scroll_forward_command)
8790 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8791 (parse_scrolling_args): Remove unnecessary cast.
8792 * tui/tui-data.c (init_win_info, tui_del_window)
8793 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8794 (free_content_elements): Remove unnecessary cast.
8795 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8796 unnecessary cast.
8797 * tui/tui-source.c (tui_set_source_content)
8798 (tui_vertical_source_scroll): Remove unnecessary cast.
8799 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8800 cast.
8801 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8802 * tui/tui-regs.c (tui_display_registers_from)
8803 (tui_display_register): Remove unnecessary cast.
8804 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8805 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8806 (make_visible): Remove unnecessary cast.
8807 * tui/tui-winsource.c (tui_erase_source_content)
8808 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8809 unnecessary cast.
8810 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8811 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8812 * stabsread.c (read_type, read_array_type, read_range_type):
8813 Remove unnecessary cast.
8814 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8815 (parse_symbol, parse_type, upgrade_type, parse_external)
8816 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8817 unnecessary cast.
8818 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8819
730ead81
TT
88202019-06-16 Tom Tromey <tom@tromey.com>
8821
8822 * tui/tui-data.c (tui_alloc_generic_win_info)
8823 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8824 checks.
8825
584a927c
AB
88262019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8827 Andrew Burgess <andrew.burgess@embecosm.com>
8828
8829 * f-typeprint.c (f_print_type): Don't return early for not
8830 associated or not allocated types.
8831 (f_type_print_varspec_suffix): Add print_rank parameter and print
8832 ranks of array types in case they dangling.
8833 (f_type_print_base): Add print_rank parameter.
8834
30056ea0
AB
88352019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8836
8837 * NEWS: Mention new MI commands.
8838 * break-catch-throw.c (enum exception_event_kind): Move to
8839 breakpoint.h.
8840 (print_mention_exception_catchpoint): Output text as a single
8841 message.
8842 (catch_exception_command_1): Rename to...
8843 (catch_exception_event): ...this, make non-static, update header
8844 command, and change some parameter types.
8845 (catch_catch_command): Update for changes to
8846 catch_exception_command_1.
8847 (catch_throw_command): Likewise.
8848 (catch_rethrow_command): Likewise.
8849 * breakpoint.c (enum exception_event_kind): Delete.
8850 * breakpoint.h (enum exception_event_kind): Moved here from
8851 break-catch-throw.c.
8852 (catch_exception_event): Declare.
8853 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8854 (mi_cmd_catch_throw): New function.
8855 (mi_cmd_catch_rethrow): New function.
8856 (mi_cmd_catch_catch): New function.
8857 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8858 'catch-catch' entries.
8859 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8860 (mi_cmd_catch_rethrow): Declare.
8861 (mi_cmd_catch_catch): Declare.
8862
ec8e2b6d
AB
88632019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8864
8865 * annotate.c (annotate_source_line): Change return type to void,
8866 update implementation to match.
8867 * annotate.h (annotate_source_line): Change return type to void,
8868 update header comment.
8869 * stack.c (print_frame_info): Don't change what frame information
8870 is printed based on whether annotations are on or not.
8871
0d3abd8c
AB
88722019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8873
8874 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8875 (annotate_source): Make static.
8876 (annotate_source_line): Moved from source.c and renamed from
8877 identify_source_line. Update the return type.
8878 * annotate.h (annotate_source): Delete declaration.
8879 (annotate_source_line): Declaration moved from source.h, and
8880 renamed from identify_source_line. Return type updated.
8881 * source.c (identify_source_line): Moved to annotate.c and renamed
8882 to annotate_source_line.
8883 (info_line_command): Remove check of annotation_level.
8884 * source.h (identify_source_line): Move declaration to annotate.h
8885 and rename to annotate_source_line.
8886 * stack.c: Add 'annotate.h' include.
8887 (print_frame_info): Remove check of annotation_level before
8888 calling annotate_source_line.
8889
00df30ae
AB
88902019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8891
8892 * source-cache.c (source_cache::get_plain_source_lines): Use
8893 open_source_file_with_line_charpos instead of just
8894 open_source_file, remove call to find_source_lines.
8895 (source_cache::get_source_lines): Likewise.
8896 * source.c (find_source_lines): Make static.
8897 (get_filename_and_charpos): Renamed into...
8898 (open_source_file_with_line_charpos): ..this along with changes to
8899 return a scoped_fd, and some other minor clean ups.
8900 (identify_source_line): Use open_source_file_with_line_charpos.
8901 (search_command_helper): Use open_source_file_with_line_charpos
8902 instead of just open_source_file, remove call to
8903 find_source_lines.
8904 * source.h (open_source_file_with_line_charpos): Declare new
8905 function.
8906 (find_source_lines): Delete declaration.
8907
afda45a2
AB
89082019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8909
8910 * source.c (get_filename_and_charpos): Remove fullname
8911 parameter.
8912 (identify_source_line): Update call to get_filename_and_charpos.
8913
0735b091
TT
89142019-06-14 Tom Tromey <tromey@adacore.com>
8915
8916 PR gdb/24502:
8917 * ui-style.h (skip_ansi_escape): Update comment.
8918 * ui-file.h (class no_terminal_escape_file): New class.
8919 * ui-file.c (no_terminal_escape_file::write)
8920 (no_terminal_escape_file::puts): New methods.
8921 * cli/cli-logging.c (handle_redirections): Use
8922 no_terminal_escape_file.
8923
52ce35e2
TT
89242019-06-14 Tom Tromey <tromey@adacore.com>
8925
8926 * NEWS: Move convenience variable news above Python news.
8927
73cc7272
TT
89282019-06-14 Tom Tromey <tom@tromey.com>
8929
8930 * gnulib: Move directory to top-level.
8931 * configure.ac: Don't configure gnulib.
8932 * configure: Rebuild.
8933 * common/common-defs.h: Use new path to gnulib.
8934 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
8935 (GNULIB_H): Remove.
8936 (INCGNU): Look in new gnulib location.
8937 (HFILES_NO_SRCDIR): Remove gnulib files.
8938 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
8939 (generated_files): Remove GNULIB_H.
8940 ($(LIBGNU), all-lib): Remove targets.
8941 (distclean): Don't mention GNULIB_BUILDDIR.
8942 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
8943
f5686554
TT
89442019-06-14 Tom Tromey <tromey@adacore.com>
8945
8946 * symfile.c (add_symbol_file_command): Remove obsolete comment.
8947 Warn if symbol file does not provide any symbols.
8948
a0c1ffed
TT
89492019-06-14 Tom Tromey <tromey@adacore.com>
8950
8951 * source.c (find_and_open_source): Respect basenames_may_differ.
8952
7c39e397
AB
89532019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
8954
8955 * annotate.c (annotate_breakpoints_invalid): Make use of
8956 scoped_restore_terminal_state.
8957 (annotate_frames_invalid): Likewise.
8958
f411722c
TT
89592019-06-14 Tom Tromey <tromey@adacore.com>
8960
8961 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
8962 allow assignment to an internalvar.
8963
4268ec18
TT
89642019-06-14 Tom Tromey <tromey@adacore.com>
8965
8966 * ada-lex.l: Allow "_" in attribute names.
8967
abdb711e
TT
89682019-06-14 Tom Tromey <tromey@adacore.com>
8969
8970 PR gdb/24653:
8971 * regcache.c (registers_changed): Don't call alloca.
8972 * top.c (execute_command): Don't call alloca.
8973
4c048731
PA
89742019-06-13 Pedro Alves <palves@redhat.com>
8975
8976 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
8977 'expression'. When parsing an expression, error out if there's
8978 junk after "unlimited".
8979 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
8980 (do_set_command): Adjust calls to is_unlimited_literal.
8981
66eb1ed3
PA
89822019-06-13 Pedro Alves <palves@redhat.com>
8983
8984 * compile/compile.c (make_compile_options_def_group): Add braces
8985 around array_view initializer.
8986 * thread.c (make_thread_apply_all_options_def_group)
8987 (make_thread_apply_all_options_def_group): Likewise.
8988
3345721a
PA
89892019-06-13 Pedro Alves <palves@redhat.com>
8990
8991 * NEWS (New commands): Mention "maint test-options
8992 require-delimiter", "maint test-options unknown-is-error", "maint
8993 test-options unknown-is-operand" and "maint show
8994 test-options-completion-result".
8995 (New command options, command completion): New section.
8996 (Completion improvements): New section.
8997 Mention that you can abbreviate "unlimited".
8998
6206060d
PA
89992019-06-13 Pedro Alves <palves@redhat.com>
9000
9001 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9002 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9003 * unittests/cli-utils-selftests.c (test_parse_flags)
9004 (test_parse_flags_qcs): Delete.
9005 (test_cli_utils): Don't call deleted functions.
9006
6665660a
PA
90072019-06-13 Pedro Alves <palves@redhat.com>
9008
9009 * thread.c: Include "cli/cli-option.h".
9010 (tp_array_compar_ascending): Global.
9011 (tp_array_compar): Delete function.
9012 (tp_array_compar_ascending, tp_array_compar_descending): New
9013 functions.
9014 (ascending_option_def, qcs_flag_option_def)
9015 (thr_qcs_flags_option_defs)
9016 (make_thread_apply_all_options_def_group)
9017 (make_thread_apply_options_def_group): New.
9018 (thread_apply_all_command): Use gdb::option::process_options.
9019 (thread_apply_command_completer)
9020 (thread_apply_all_command_completer): New.
9021 (thread_apply_command): Use gdb::option::process_options.
9022 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9023 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9024 to generate help text of "thread apply". Adjust "taas"'s help.
9025 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9026 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9027
f7e13587
PA
90282019-06-13 Pedro Alves <palves@redhat.com>
9029
9030 * thread.c (thread_apply_command): Check for invalid TID with
9031 isdigit instead of !isalpha.
9032
5d707134
PA
90332019-06-13 Pedro Alves <palves@redhat.com>
9034
9035 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9036 (validate_flags_qcs): New.
9037 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9038 (validate_flags_qcs): Declare.
9039 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9040 (make_frame_apply_options_def_group): New.
9041 (frame_apply_command_count): Process options with
9042 gdb::option::process_options.
9043 (frame_apply_completer): New.
9044 (frame_apply_level_completer, frame_apply_all_completer)
9045 (frame_apply_completer): New.
9046 (_initialize_stack): Update help of "frame apply", "frame apply
9047 level", "frame apply all" and "faas" to mention supported options
9048 and install command completers.
9049 * stack.h (frame_apply_all_completer): Declare.
9050 * thread.c: Include "stack.h".
9051 (tfaas_command): Add "--".
9052 (_initialize_thread): Update help "tfaas" to mention supported
9053 options and install command completer.
9054
272d4594
PA
90552019-06-13 Pedro Alves <palves@redhat.com>
9056
9057 * completer.c (complete_nested_command_line): New.
9058 (gdb_completion_word_break_characters_throw): Add assertion.
9059 * completer.h (complete_nested_command_line): Declare.
9060
90a1ef87
PA
90612019-06-13 Pedro Alves <palves@redhat.com>
9062
9063 * stack.c (parse_backtrace_qualifiers): New.
9064 (backtrace_command): Use it.
9065 (backtrace_command_completer): Complete on qualifiers.
9066
d4c16835
PA
90672019-06-13 Pedro Alves <palves@redhat.com>
9068
9069 * frame.c: Include "cli/cli-option.h.
9070 (user_set_backtrace_options): New.
9071 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9072 Delete.
9073 (get_prev_frame): Adjust.
9074 (boolean_option_def, uinteger_option_def)
9075 (set_backtrace_option_defs): New.
9076 (_initialize_frame): Adjust and use
9077 gdb::option::add_setshow_cmds_for_options to install "set
9078 backtrace past-main" and "set backtrace past-entry".
9079 * frame.h: Include "cli/cli-option.h".
9080 (struct frame_print_options): Forward declare.
9081 (print_frame_arguments_all, print_frame_arguments_scalars)
9082 (print_frame_arguments_none): Declare.
9083 (print_entry_values): Delete declaration.
9084 (struct frame_print_options, user_frame_print_options): New.
9085 (struct set_backtrace_options): New.
9086 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9087 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9088 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9089 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9090 (list_args_or_locals): Add frame_print_options parameter.
9091 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9092 * python/py-framefilter.c (enumerate_args): Pass down
9093 USER_FRAME_PRINT_OPTIONS.
9094 * stack.c: Include "cli/cli-option.h".
9095 (print_frame_arguments_all, print_frame_arguments_scalars)
9096 (print_frame_arguments_none): Declare.
9097 (print_raw_frame_arguments, print_entry_values): Delete.
9098 (user_frame_print_options): New.
9099 (boolean_option_def, enum_option_def, frame_print_option_defs):
9100 New.
9101 (struct backtrace_cmd_options): New.
9102 (bt_flag_option_def): New.
9103 (backtrace_command_option_defs): New.
9104 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9105 (print_frame_arg, read_frame_arg, print_frame_args)
9106 (print_frame_info, print_frame): Add frame_print_options parameter
9107 and use it.
9108 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9109 (backtrace_command_1): Add frame_print_options and
9110 backtrace_cmd_options parameters and use them.
9111 (make_backtrace_options_def_group): New.
9112 (backtrace_command): Process command options with
9113 gdb::option::process_options.
9114 (backtrace_command_completer): New.
9115 (_initialize_stack): Extend "backtrace"'s help to mention
9116 supported options. Install completer for "backtrace".
9117 Install some settings commands with add_setshow_cmds_for_options.
9118
2daf894e
PA
91192019-06-13 Pedro Alves <palves@redhat.com>
9120
9121 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9122 and that "set/show print raw frame-arguments" are now deprecated.
9123
9124 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9125 command.
9126 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9127 * stack.c (_initialize_stack): Install "set/show print
9128 raw-frame-arguments", and deprecate "set/show print raw
9129 frame-arguments".
9130 * valprint.c (_initialize_valprint): Deprecate "set/show print
9131 raw".
9132
e6ed716c
PA
91332019-06-13 Pedro Alves <palves@redhat.com>
9134
9135 * compile/compile.c (struct compile_options): New.
9136 (compile_flag_option_def, compile_command_option_defs)
9137 (make_compile_options_def_group): New.
9138 (compile_file_command): Handle options with
9139 gdb::option::process_options.
9140 (compile_file_command_completer): New function.
9141 (compile_code_command): Handle options with
9142 gdb::option::process_options.
9143 (compile_code_command_completer): New function.
9144 (_initialize_compiler): Install completers for "compile code" and
9145 "compile file". Mention available options in "compile code" and
9146 "compile code"'s help.
9147 * completer.c (advance_to_completion_word): New, factored out from
9148 ...
9149 (advance_to_expression_complete_word_point): ... this.
9150 (advance_to_filename_complete_word_point): New.
9151 * completer.h (advance_to_filename_complete_word_point): New
9152 declaration.
9153
7d8062de
PA
91542019-06-13 Pedro Alves <palves@redhat.com>
9155
9156 * compile/compile.c: Include "cli/cli-option.h".
9157 (compile_print_value): Scope data pointer is now a
9158 value_print_options pointer; adjust.
9159 (compile_print_command): Process options. Scope data pointer is
9160 now a value_print_options pointer; adjust.
9161 (_initialize_compile): Update "compile print"'s help to include
9162 supported options. Install a completer for "compile print".
9163 * cp-valprint.c (show_vtblprint, show_objectprint)
9164 (show_static_field_print): Delete.
9165 (_initialize_cp_valprint): Don't install "set print
9166 static-members", "set print vtbl", "set print object" here.
9167 * printcmd.c: Include "cli/cli-option.h" and
9168 "common/gdb_optional.h".
9169 (print_command_parse_format): Rework to fill in a
9170 value_print_options instead of a format_data.
9171 (print_value): Change parameter type from format_data pointer to
9172 value_print_options reference. Adjust.
9173 (print_command_1): Process options. Adjust to pass down a
9174 value_print_options.
9175 (print_command_completer): New.
9176 (_initialize_printcmd): Install print_command_completer as
9177 handle_brkchars completer for the "print" command. Update
9178 "print"'s help to include supported options.
9179 * valprint.c: Include "cli/cli-option.h".
9180 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9181 here from cp-valprint.c.
9182 (boolean_option_def, uinteger_option_def)
9183 (value_print_option_defs, make_value_print_options_def_group):
9184 New. Use gdb::option::add_setshow_cmds_for_options to install
9185 "set print elements", "set print null-stop", "set print repeats",
9186 "set print pretty", "set print union", "set print array", "set
9187 print address", "set print symbol", "set print array-indexes".
9188 * valprint.h: Include <string> and "cli/cli-option.h".
9189 (make_value_print_options_def_group): Declare.
9190 (print_value): Change parameter type from format_data pointer to
9191 value_print_options reference.
9192 (print_command_completer): Declare.
9193
9d0faba9
PA
91942019-06-13 Pedro Alves <palves@redhat.com>
9195
9196 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9197 (COMMON_SFILES): Add maint-test-settings.c.
9198 * cli/cli-decode.c (boolean_enums): New global, factored out from
9199 ...
9200 (add_setshow_boolean_cmd): ... here.
9201 * cli/cli-decode.h (boolean_enums): Declare.
9202 * cli/cli-option.c: New file.
9203 * cli/cli-option.h: New file.
9204 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9205 factored out from ...
9206 (parse_cli_boolean_value(const char *)): ... this.
9207 (is_unlimited_literal): Change parameter type to pointer to
9208 pointer. Adjust and advance ARG pointer.
9209 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9210 (parse_cli_var_enum): New, factored out from ...
9211 (do_set_command): ... this. Adjust.
9212 * cli/cli-setshow.h (parse_cli_boolean_value)
9213 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9214 (parse_cli_var_enum): Declare.
9215 * cli/cli-utils.c: Include "cli/cli-option.h".
9216 (get_ulongest): New.
9217 * cli/cli-utils.h (get_ulongest): Declare.
9218 (check_for_argument): New overloads.
9219 * maint-test-options.c: New file.
9220
2c722807
PA
92212019-06-13 Pedro Alves <palves@redhat.com>
9222
9223 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9224 parse a range if "-" is at the end of the string.
9225
dee7b4c8
PA
92262019-06-13 Pedro Alves <palves@redhat.com>
9227
9228 * cli/cli-setshow.c (parse_auto_binary_operation)
9229 (parse_cli_boolean_value): Don't allow "o".
9230
dca0f6c0
PA
92312019-06-13 Pedro Alves <palves@redhat.com>
9232
9233 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9234 * NEWS: Mention maint test-settings KIND.
9235 * maint-test-settings.c: New file.
9236
597bf39d
PA
92372019-06-13 Pedro Alves <palves@redhat.com>
9238
9239 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9240 completer.
9241 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9242 "set" completers.
9243
48c410fb
PA
92442019-06-13 Pedro Alves <palves@redhat.com>
9245
9246 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9247 after item.
9248
93bcb043
PA
92492019-06-13 Pedro Alves <palves@redhat.com>
9250
9251 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9252
cbba3ecd
PA
92532019-06-13 Pedro Alves <palves@redhat.com>
9254
9255 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9256 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9257 call.
9258 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9259 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9260 calls.
9261 (check_for_argument): Skip spaces after argument.
9262
b9a3f842
PA
92632019-06-13 Pedro Alves <palves@redhat.com>
9264
9265 * thread.c (thread_apply_command): Adjust TID parsing.
9266 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9267 detected before end of string.
9268 (tid_is_in_list): Error out if LIST is invalid.
9269
3844e605
PA
92702019-06-13 Pedro Alves <palves@redhat.com>
9271
9272 * completer.c (complete_line_internal_1): Rewind completion word
9273 point.
9274 (completion_tracker::advance_custom_word_point_by): Change
9275 parameter type to int.
9276 * completer.h (completion_tracker::advance_custom_word_point_by):
9277 Likewise.
9278
00b56dbe
PA
92792019-06-13 Pedro Alves <palves@redhat.com>
9280
9281 * completer.c (advance_to_completion_word): Handle delimiters.
9282
d106773e
PA
92832019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9284
9285 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9286
08f10e02
TT
92872019-06-11 Tom Tromey <tom@tromey.com>
9288
9289 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9290 (xmalloc_failed): Move to alloc.c.
9291 * alloc.c: New file.
9292 * Makefile.in (COMMON_SFILES): Add alloc.c.
9293
1c7fe951
TT
92942019-06-11 Tom Tromey <tom@tromey.com>
9295
9296 * nat/linux-waitpid.c: Don't include server.h.
9297 (linux_debug): Remove.
9298 (my_waitpid): Update.
9299
89549d7f
TT
93002019-06-11 Tom Tromey <tromey@adacore.com>
9301
9302 * infcall.c (_initialize_infcall): Remove trailing newline from
9303 help.
9304 * user-regs.c (_initialize_user_regs): Remove trailing newline
9305 from help.
9306 * typeprint.c (_initialize_typeprint): Remove trailing newline
9307 from help.
9308 * reverse.c (_initialize_reverse): Remove trailing newlines from
9309 help.
9310 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9311 from help.
9312 * language.c (add_set_language_command): Remove trailing newline
9313 from help.
9314 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9315 help.
9316 * disasm.c (_initialize_disasm): Remove trailing newline from
9317 help.
9318 * top.c (init_main): Remove trailing newline from help.
9319 * interps.c (_initialize_interpreter): Remove trailing newline
9320 from help.
9321 * btrace.c (_initialize_btrace): Remove trailing newlines from
9322 help.
9323 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9324 from help.
9325 * python/python.c (_initialize_python): Remove trailing newline
9326 from help.
9327 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9328 help.
9329 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9330 from help. Reformat some text.
9331 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9332 from help.
9333 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9334 newline from help.
9335
86108c13
TT
93362019-06-11 Tom Tromey <tromey@adacore.com>
9337
9338 * darwin-nat.c (darwin_decode_exception_message)
9339 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9340
a7067863
AB
93412019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9342
9343 * valops.c (value_slice): Check for not allocated or not
9344 associated values.
9345
9ab08412
TV
93462019-06-10 Tom de Vries <tdevries@suse.de>
9347
9348 PR gdb/24618
9349 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9350 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9351 invalid.
9352
f19e22e9
TV
93532019-06-10 Tom de Vries <tdevries@suse.de>
9354
9355 PR gdb/24611
9356 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9357 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9358
e99f9db0
TV
93592019-06-10 Tom de Vries <tdevries@suse.de>
9360
9361 PR symtab/24545
9362 * symtab.c (struct demangled_name_entry): Add language field.
9363 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9364 static minimal symbol". Set and use language field.
9365
9bf7038b
TT
93662019-06-10 Tom Tromey <tromey@adacore.com>
9367
9368 * ada-lang.c (_initialize_ada_language): Update help text.
9369
422186a9
TT
93702019-06-10 Tom Tromey <tromey@adacore.com>
9371
9372 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9373 with a newline.
9374 * guile/guile.c (handle_boot_error): Don't end warning with a
9375 newline.
9376 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9377 warning with a newline.
9378 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9379 newline.
9380 (s12z_frame_cache): Likewise.
9381 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9382 a newline.
9383 * solib-svr4.c (disable_probes_interface): Don't end warning with
9384 a newline.
9385 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9386 newline.
9387 * python/python.c (do_finish_initialization): Don't end warning
9388 with a newline.
9389
25ce02ee
TT
93902019-06-10 Tom Tromey <tom@tromey.com>
9391
9392 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9393 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9394 gdbpy_enter.
9395
caa429d8
TT
93962019-06-10 Tom Tromey <tromey@adacore.com>
9397
9398 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9399 data.
9400 (elf_new_init): Don't call stabsread_new_init.
9401 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9402 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9403 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9404
81873cc8
TV
94052019-06-10 Tom de Vries <tdevries@suse.de>
9406
9407 PR symtab/16264
9408 PR symtab/24517
9409 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9410
4fa0265e
РИ
94112019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9412
9413 * source.c (find_and_open_source): Also rewrite relative file
9414 names.
9415
1a3da2cd
AB
94162019-04-26 Amos Bird <amosbird@gmail.com>
9417
9418 * annotate.c (annotate_thread_exited): Add "thread-exited"
9419 annotation.
9420
3847a7bf
TT
94212019-06-06 Tom Tromey <tromey@adacore.com>
9422
9423 * maint.h (class scoped_command_stats): Use
9424 DISABLE_COPY_AND_ASSIGN.
9425 <print_time>: New method.
9426 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9427 print_time.
9428 (scoped_command_stats::print_time): New method.
9429
312617a3
AB
94302019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9431
9432 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9433 instructions of lengths 6 or 8 bytes.
9434
b02f78f9
PA
94352019-06-04 Pedro Alves <palves@redhat.com>
9436
9437 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9438
9439 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9440 * breakpoint.c (condition_completer): Likewise.
9441 * cli/cli-dump.c (scan_expression): Likewise.
9442 * common/filestuff.c (mkdir_recursive): Likewise.
9443 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9444 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9445 (gdb_abspath): Likewise.
9446 * compile/compile-cplus-types.c
9447 (compile_cplus_instance::decl_name): Likewise.
9448 * completer.c (complete_explicit_location):
9449 (signal_completer, reg_or_group_completer_1): Likewise.
9450 * cp-support.c (cp_remove_params_if_any): Likewise.
9451 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9452 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9453 * infcmd.c (strip_bg_char): Likewise.
9454 * linespec.c (copy_token_string): Likewise.
9455 * mi/mi-main.c (output_cores): Likewise.
9456 * psymtab.c (psymtab_search_name):
9457 * symfile.c (test_set_ext_lang_command): Likewise.
9458 * target.c (target_fileio_read_stralloc): Likewise.
9459 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9460 * value.c (complete_internalvar): Likewise.
9461
e1f2e1a2
CB
94622019-06-04 Christian Biesinger <cbiesinger@google.com>
9463
9464 Add objfile property to gdb.Type.
d3238f7d
PA
9465 * NEWS: Mention Python API addition.
9466 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9467
e664d728
PW
94682019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9469
9470 * NEWS: Mention the new set|show style [title|highlight].
9471 Mention changes to "show style", "help" and "apropos".
9472
66d8c862
PW
94732019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9474
9475 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9476 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9477 instead of print_help_for_command.
9478 (print_doc_of_command): New function.
9479 (help_list): Add 'apropos -v word' suggestion.
9480 (print_help_for_command): Style the command name using title style.
9481 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9482 (_initialize_cli_cmds): Describe -v in apropos_command help.
9483
9303eb2f
PW
94842019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9485
9486 * cli/cli-style.h (cli_style_option): Add name in constructor,
9487 add m_name class member, add constructor with intensity,
9488 add name class function.
9489 (cli_style_option::add_setshow_commands): Remove name argument.
9490 (highlight_style, title_style): New styles.
9491 * cli/cli-style.c (do_show): New function that shows a style
9492 characteristic styling the style name with itself.
9493 (set_style_name): New function.
9494 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9495 Update all callers according to the changes in cli/cli-style.h.
9496 * utils.h (fputs_highlighted): New function.
9497 * utils.c (fputs_highlighted): Likewise.
9498
e2c52041
PW
94992019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9500
9501 * NEWS: Mention new pipe command and new convenience variables.
9502
947d3946
PW
95032019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9504
9505 * cli/cli-cmds.c (pipe_command): New function.
9506 (_initialize_cli_cmds): Call add_com for pipe_command.
9507 Define | as an alias for pipe.
9508 (exit_status_set_internal_vars): New function.
9509 (shell_escape): Call exit_status_set_internal_vars.
9510 cli/cli-decode.c (find_command_name_length): Recognize | as
9511 a single character command.
9512
b8fd0918
PW
95132019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9514
9515 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9516 top.c (execute_command_to_ui_file): New function, mostly a copy
9517 of execute_command_to_string.
9518 (execute_command_to_string): Implement by calling
9519 execute_command_to_ui_file.
9520
68bb5386
PW
95212019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9522
9523 * top.h (saved_command_line): Remove declaration.
9524 * top.c (previous_saved_command_line, previous_repeat_arguments):
9525 New variables.
9526 (saved_command_line): Make static, define together with other
9527 'repeat variables'.
9528 (dont_repeat): Clear repeat_arguments.
9529 (repeat_previous, get_saved_command_line, save_command_line):
9530 New functions.
9531 (gdb_init): Initialize saved_command_line
9532 and previous_saved_command_line.
9533 * main.c (captured_main_1): Remove saved_command_line initialization.
9534 * event-top.c (handle_line_of_input): Update to use
9535 the new 'repeat' related functions instead of direct access to
9536 saved_command_line.
9537 * command.h (repeat_previous, get_saved_command_line,
9538 save_command_line): New declarations.
9539 (dont_repeat): Add comment.
9540
bfcdb852
TT
95412019-05-30 Tom Tromey <tromey@adacore.com>
9542
9543 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9544 Fix comment.
9545 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9546
0ef209f2
JV
95472019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9548
9549 PR cli/24587
9550 * completer.c (complete): Initialize variable word.
9551
955b06fa
SDJ
95522019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9553
9554 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9555 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9556 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9557 'body' is NULL to the outter 'if', protecting the '!is_define'
9558 situation as well.
9559
fa9c3fa0
TT
95602019-05-29 Tom Tromey <tromey@adacore.com>
9561
9562 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9563 (dwarf_unknown): New function.
9564 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9565 (dwarf_type_encoding_name): Use dwarf_unknown.
9566
4330d61d
TT
95672019-05-29 Tom Tromey <tromey@adacore.com>
9568
9569 PR c++/20020:
9570 * cp-valprint.c (cp_print_value_fields): Call
9571 cp_print_static_field inside "try".
9572
33a6bc35
TT
95732019-05-29 Tom Tromey <tromey@adacore.com>
9574
9575 * inflow.c (struct terminal_info): Add default operator=.
9576 * configure: Rebuild.
9577 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9578 -Wdeprecated-copy-dtor, -Wredundant-move.
9579
000439d5
TT
95802019-05-29 Tom Tromey <tromey@adacore.com>
9581
9582 * NEWS: Add entry.
9583 * infcmd.c (print_return_value_1): Handle finish_print
9584 option.
9585 (show_print_finish): New function.
9586 (_initialize_infcmd): Add "set/show print finish" commands.
9587 * valprint.c (user_print_options): Initialize new member.
9588 * valprint.h (struct value_print_options) <finish_print>: New
9589 member.
9590
c0e70c62
TT
95912019-05-28 Tom Tromey <tromey@adacore.com>
9592
9593 * ada-lang.c (ada_remove_Xbn_suffix)
9594 (find_old_style_renaming_symbol)
9595 (parse_old_style_renaming): Remove.
9596 (ada_find_renaming_symbol): Don't call
9597 find_old_style_renaming_symbol.
9598 (ada_is_renaming_symbol): Rename from
9599 ada_find_renaming_symbol. Remove "block" parameter. Return
9600 bool. Now static.
9601 (ada_read_var_value): Update and simplify.
9602 * ada-exp.y (write_var_or_type): Remove old code.
9603
766f8836
AH
96042019-05-28 Alan Hayward <alan.hayward@arm.com>
9605
68255adc 9606 PR gdb/25010
766f8836
AH
9607 * event-top.c: Remove include comment.
9608 * inflow.c (class scoped_ignore_sigttou): Move from here...
9609 * inflow.h (class scoped_ignore_sigttou): ...to here.
9610 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9611 * top.c: Remove include comment.
9612
eb41253a
TT
96132019-05-27 Tom Tromey <tom@tromey.com>
9614
9615 * NEWS: Fix typo.
9616
4ca51187
TT
96172019-05-22 Tom Tromey <tromey@adacore.com>
9618
9619 * target.c (target_follow_exec): Constify parameter.
9620 * target-delegates.c: Rebuild.
9621 * remote.c (remote_target::follow_exec): Constify parameter.
9622 * infrun.c (follow_exec): Constify parameter.
9623 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9624 (target_follow_exec): Likewise.
9625
8fca4da0
AH
96262019-05-22 Alan Hayward <alan.hayward@arm.com>
9627
9628 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9629 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9630
b7060614
AH
96312019-05-22 Alan Hayward <alan.hayward@arm.com>
9632
9633 * NEWS: Add debugredirect and testsuite sections.
9634
0a5954bd
SC
96352019-05-22 Simon Cook <simon.cook@embecosm.com>
9636
9637 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9638 target descriptions using exclusively floating point register name
9639 aliases.
9640
dc42e902
AB
96412019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9642
9643 PR gdb/18644:
9644 * f-lang.c (build_fortran_types): Handle the case where
9645 gdbarch_floatformat_for_type returns a nullptr.
9646
fb7806c7
TV
96472019-05-21 Tom de Vries <tdevries@suse.de>
9648
9649 PR cli/24587
9650 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9651
34d11c68
AB
96522019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9653
9654 PR gdb/18644:
9655 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9656 16-byte floats.
9657 * i386-tdep.c (i386_floatformat_for_type): Use
9658 floatformats_ia64_quad for the 16-byte floating point component
9659 within a fortran 32-byte complex number.
9660
122cf0f2
AB
96612019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9662
9663 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9664 delete default constructor.
9665 (find_partial_die): Update to return const struct.
9666 (partial_die_parent_scope): Move variable declaration into scope
9667 of its use and change its type to auto.
9668 (guess_partial_die_structure_name): Likewise.
9669 (partial_die_info::fixup): Likewise.
9670
33d0e35a
TT
96712019-05-17 Tom Tromey <tromey@adacore.com>
9672
9673 * source.c (find_and_open_source): Remove cast.
9674
a45575b0
TT
96752019-05-17 Tom Tromey <tromey@adacore.com>
9676
9677 * annotate.c (annotate_source): Make "filename" const.
9678 * annotate.h (annotate_source): Use const.
9679
81f47ac2
AH
96802019-05-17 Alan Hayward <alan.hayward@arm.com>
9681
9682 * disasm.c (set_disassembler_options): Send errors to stderr.
9683
ca1285d1
AH
96842019-05-17 Alan Hayward <alan.hayward@arm.com>
9685
9686 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9687 (cli_interp_base::set_logging): Check debug_redirect.
9688 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9689 * cli/cli-logging.c (debug_redirect): Add static variable.
9690 (pop_output_files): Add default param.
9691 (handle_redirections): Print debug setting.
9692 (show_logging_command): Likewise.
9693 (_initialize_cli_logging): Add debugredirect command.
9694 * interps.c (current_interp_set_logging): Add debug_redirect
9695 parameter.
9696 * interps.h (set_logging): Add debug_redirect parameter.
9697 (current_interp_set_logging): Likewise.
9698 * mi/mi-common.h: Likewise.
9699 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9700
97012019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9702 Tom Tromey <tromey@adacore.com>
9703
9704 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9705 directly.
9706 * cli/cli-interp.h (make_logging_output): Remove declaration.
9707 * cli/cli-logging.c (make_logging_output): Remove function.
9708 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9709 directly.
9710 * ui-file.c (tee_file::tee_file): Remove bools.
9711 (tee_file::~tee_file): Remove deletes.
9712 * ui-file.h (tee_file): Remove bools.
9713
26648588
JV
97142019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9715
9716 * mi/mi-cmds.h (mi_cmd_complete): New function.
9717 * mi/mi-main.c (mi_cmd_complete): Likewise.
9718 * mi/mi-cmds.c: Define new MI command -complete.
9719 * NEWS: Mention new -complete command.
9720
6e035501
JV
97212019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9722
9723 * completer.h (complete): New function.
9724 * completer.c (complete): Likewise.
9725 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9726 function defined in completer.h.
9727
7d0e2ece
JV
97282019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9729
e79be6e5 9730 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9731
fb816e8b
TV
97322019-05-17 Tom de Vries <tdevries@suse.de>
9733
9734 PR gdb/24094
9735 * dwarf2read.c (struct cu_partial_die_info): New struct.
9736 (find_partial_die): Return cu_partial_die_info.
9737 (partial_die_parent_scope, guess_partial_die_structure_name)
9738 (partial_die_info::fixup): Handle new return type of find_partial_die.
9739
677052f2
SDJ
97402019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9741
a1726c38 9742 PR breakpoints/24541
677052f2
SDJ
9743 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9744 "std::string", simplifying the algorithm.
9745
f3da9116
SDJ
97462019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9747
9748 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9749 (stap_static_probe_ops::get_probes): Likewise.
9750
f1bb75ab
SDJ
97512019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9752
9753 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9754 '-')" and "else if".
9755 (stap_parse_single_operand): Join checks for
9756 "gdbarch_stap_parse_special_token_p" and
9757 "gdbarch_stap_parse_special_token" in the same "if" statement.
9758 Invert check when verifying for operation on register
9759 displacement.
9760
3ca58cde
SDJ
97612019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9762
9763 * stap-probe.c (stap_get_opcode): Update comment.
9764 (stap_get_expected_argument_type): Likewise.
9765 (handle_stap_probe): Likewise.
9766
af2d9bee
SDJ
97672019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9768
9769 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9770 return type to 'bool'. Adjust comment. Use 'bool' when
9771 appropriate.
9772 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9773 * stap-probe.c (stap_parse_argument_1): Likewise.
9774 (stap_is_operator): Likewise.
9775 (stap_is_generic_prefix): Likewise.
9776 (stap_is_register_prefix): Likewise.
9777 (stap_is_register_indirection_prefix): Likewise.
9778 (stap_is_integer_prefix): Likewise.
9779 (stap_generic_check_suffix): Likewise.
9780 (stap_check_integer_suffix): Likewise.
9781 (stap_check_register_suffix): Likewise.
9782 (stap_check_register_indirection_suffix): Likewise.
9783 (stap_parse_register_operand): Likewise.
9784 (stap_parse_single_operand): Likewise.
9785 (stap_parse_argument_1): Likewise.
9786 (stap_probe::get_argument_count): Likewise.
9787 (stap_is_operator): Likewise.
9788
61c9c421
TT
97892019-05-16 Tom Tromey <tromey@adacore.com>
9790
9791 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9792 keyword to foreach.
9793
9ddc1af1
SM
97942019-05-15 Simon Marchi <simon.marchi@efficios.com>
9795
9796 * linux-thread-db.c (try_thread_db_load_1): Change return type
9797 to bool.
9798 (try_thread_db_load): Likewise.
9799 (try_thread_db_load_from_pdir_1): Likewise.
9800 (try_thread_db_load_from_pdir): Likewise.
9801 (try_thread_db_load_from_sdir): Likewise.
9802 (try_thread_db_load_from_dir): Likewise.
9803 (thread_db_load_search): Likewise.
9804 (has_libpthread): Likewise.
9805 (thread_db_load): Likewise.
9806
7bede828
SDJ
98072019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9808
9809 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9810 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9811 NULL, and complain/return if that's the case.
9812
c5358db4
JD
98132019-05-15 John Darrington <john@darrington.wattle.id.au>
9814
9815 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9816 (advance, posn, abstract_read_memory): New functions.
9817 [struct mem_read_abstraction]: New struct.
9818 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9819
c408a94f
TT
98202019-05-14 Tom Tromey <tromey@adacore.com>
9821
9822 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9823 value is not lval_memory.
9824
e7bd7fba
TT
98252019-05-14 Tom Tromey <tromey@adacore.com>
9826
9827 * solib.c (info_sharedlibrary_command): Style the file name.
9828
a6d0f249
AH
98292019-05-14 Alan Hayward <alan.hayward@arm.com>
9830
9831 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9832 (aarch64_vnv_type): Likewise.
9833 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9834 * common/tdesc.c: Likewise.
9835 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9836 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9837 * features/aarch64-fpu.xml: Add ieee half view.
9838 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9839 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9840 * gdbtypes.h (struct builtin_type): Likewise.
9841 (struct objfile_type): Likewise.
9842
66b8bb74
SM
98432019-05-12 Paul Naert <paul.naert@polymtl.ca>
9844
9845 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9846 typo.
9847 * location.h (string_to_event_location): Likewise.
9848
21c219fd
JB
98492019-05-11 Joel Brobecker <brobecker@adacore.com>
9850
9851 GDB 8.3 released.
9852
13674803
SM
98532019-05-10 Simon Marchi <simon.marchi@efficios.com>
9854
9855 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9856 New variable declaration.
9857 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9858 New variable.
9859 (print_one_breakpoint): Use ui_out::test_flags and new global
9860 variable to compute use_fixed_output.
9861 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9862 Remove.
9863 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9864 (mi_multi_location_breakpoint_output_fixed): Remove.
9865 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9866 new variable.
9867 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9868 fix_multi_location_breakpoint_output flag if version >= 3.
9869 * ui-out.h (enum ui_out_flag)
9870 <fix_multi_location_breakpoint_output>: New enumerator.
9871
a9eac7f9
SM
98722019-05-10 Simon Marchi <simon.marchi@efficios.com>
9873
9874 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9875
71bed2db
TT
98762019-05-10 Tom Tromey <tromey@adacore.com>
9877
9878 * ada-lang.c (catch_ada_completer): New function.
9879 (_initialize_ada_language): Use it.
9880
24c54127
TT
98812019-05-10 Tom Tromey <tromey@adacore.com>
9882
9883 * thread.c (print_thread_info): Make "requested_threads" const.
9884 * gdbthread.h (print_thread_info): Make "requested_threads"
9885 const.
9886 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
9887 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
9888
7a102139
TT
98892019-05-08 Tom Tromey <tom@tromey.com>
9890
9891 * gdbtypes.c (objfile_type_data): Change type.
9892 (objfile_type, _initialize_gdbtypes): Update.
9893
924d79e2
TT
98942019-05-08 Tom Tromey <tom@tromey.com>
9895
9896 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
9897 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
9898 (_initialize_dwarf2_frame): Update.
9899
4c58e337
TT
99002019-05-08 Tom Tromey <tom@tromey.com>
9901
9902 * objc-lang.c (objc_objfile_data): Change type.
9903 (find_methods): Update.
9904 (_initialize_objc_lang): Remove.
9905
d772d2ab
TT
99062019-05-08 Tom Tromey <tom@tromey.com>
9907
9908 * stabsread.c (rs6000_builtin_type_data): Change type.
9909 (rs6000_builtin_type, _initialize_stabsread): Update.
9910
d11d83f4
TT
99112019-05-08 Tom Tromey <tom@tromey.com>
9912
9913 * mips-tdep.c (mips_pdr_data): Remove.
9914 (_initialize_mips_tdep): Update.
9915
9a73f0ad
TT
99162019-05-08 Tom Tromey <tom@tromey.com>
9917
9918 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
9919 (hppa_init_objfile_priv_data, read_unwind_info)
9920 (find_unwind_entry, _initialize_hppa_tdep): Update.
9921
8127a2fa
TT
99222019-05-08 Tom Tromey <tom@tromey.com>
9923
9924 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
9925 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
9926 on obstack.
9927 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
9928
91d3055d
TT
99292019-05-08 Tom Tromey <tom@tromey.com>
9930
9931 * mdebugread.c (basic_type_data): Change type.
9932 (basic_type, _initialize_mdebugread): Update.
9933
31930bd3
TT
99342019-05-08 Tom Tromey <tom@tromey.com>
9935
9936 * common/gdb_unique_ptr.h (struct noop_deleter): New.
9937
bdb3ed9e
TT
99382019-05-08 Tom Tromey <tom@tromey.com>
9939
9940 * nto-tdep.c (nto_inferior_data_reg): Change type.
9941 (nto_inferior_data): Update.
9942 (nto_inferior_data_cleanup, nto_new_inferior_data)
9943 (_initialize_nto_tdep): Remove.
9944 * nto-tdep.h (struct nto_inferior_data): Add initializers.
9945
f37b313d
TT
99462019-05-08 Tom Tromey <tom@tromey.com>
9947
9948 * ada-lang.c (struct ada_inferior_data): Add initializers.
9949 (ada_inferior_data): Change type.
9950 (ada_inferior_data_cleanup): Remove.
9951 (get_ada_inferior_data, ada_inferior_exit)
9952 (struct ada_pspace_data): Add initializers, destructor.
9953 (ada_pspace_data_handle): Change type.
9954 (get_ada_pspace_data): Update.
9955 (ada_pspace_data_cleanup): Remove.
9956
24699405
TT
99572019-05-08 Tom Tromey <tom@tromey.com>
9958
9959 * coffread.c (struct coff_symfile_info): Add initializers.
9960 (coff_objfile_data_key): Move lower. Change type.
9961 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
9962 Update.
9963 (coff_free_info): Remove.
9964
d4e05d2f
TT
99652019-05-08 Tom Tromey <tom@tromey.com>
9966
9967 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
9968 (fbsd_pspace_data_handle): Move lower. Change type.
9969 (get_fbsd_pspace_data): Update.
9970 (fbsd_pspace_data_cleanup): Remove.
9971 (_initialize_fbsd_tdep): Update.
9972
14ef6690
TT
99732019-05-08 Tom Tromey <tom@tromey.com>
9974
9975 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
9976 (get_ada_tasks_pspace_data): Update.
9977 (ada_tasks_pspace_data_cleanup): Remove.
9978 (_initialize_tasks): Update.
9979 (ada_tasks_inferior_data_handle): Change type.
9980 (get_ada_tasks_inferior_data): Update.
9981 (ada_tasks_inferior_data_cleanup): Remove.
9982 (struct ada_tasks_pspace_data): Add initializers.
9983
814cf43a
TT
99842019-05-08 Tom Tromey <tom@tromey.com>
9985
9986 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
9987 * symfile-debug.c (debug_sym_get_probes): Change type.
9988 * stap-probe.c (handle_stap_probe):
9989 (stap_static_probe_ops::get_probes): Change type.
9990 * probe.h (class static_probe_ops) <get_probes>: Change type.
9991 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
9992 (parse_probes_in_pspace): Update.
9993 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
9994 Update.
9995 (any_static_probe_ops::get_probes): Change type.
9996 * elfread.c (elfread_data): New typedef.
9997 (probe_key): Change type.
9998 (elf_get_probes): Likewise. Update.
9999 (probe_key_free): Remove.
10000 (_initialize_elfread): Update.
10001 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10002 Change type.
10003 (dtrace_process_dof_probe, dtrace_process_dof)
10004 (dtrace_static_probe_ops::get_probe): Change type.
10005
02dc647e
TT
100062019-05-08 Tom Tromey <tom@tromey.com>
10007
10008 * xcoffread.c (struct xcoff_symfile_info): Rename from
10009 coff_symfile_info. Add initializers.
10010 (xcoff_objfile_data_key): Move lower. Change type.
10011 (XCOFF_DATA): Rewrite.
10012 (xcoff_free_info): Remove.
10013 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10014 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10015 (xcoff_initial_scan): Update.
10016
09232438
TT
100172019-05-08 Tom Tromey <tom@tromey.com>
10018
10019 * solib-svr4.c (struct svr4_info): Add initializers and
10020 destructor.
10021 <probes_table>: Now an htab_up.
10022 (solib_svr4_pspace_data): Change type.
10023 (free_probes_table): Simplify.
10024 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10025 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10026 (probes_table_remove_objfile_probes, register_solib_event_probe)
10027 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10028 (_initialize_svr4_solib): Update.
10029
7b4a314f
TT
100302019-05-08 Tom Tromey <tom@tromey.com>
10031
10032 * remote.c (remote_pspace_data): Change type.
10033 (remote_pspace_data_cleanup): Remove.
10034 (get_remote_exec_file, set_pspace_remote_exec_file)
10035 (_initialize_remote): Update.
10036
51d3063a
TT
100372019-05-08 Tom Tromey <tom@tromey.com>
10038
10039 * breakpoint.c (breakpoint_objfile_key): Change type.
10040 (get_breakpoint_objfile_data): Update.
10041 (free_breakpoint_objfile_data): Remove.
10042 (_initialize_breakpoint): Update.
10043
89fb8848
TT
100442019-05-08 Tom Tromey <tom@tromey.com>
10045
10046 * linux-tdep.c (struct linux_info): Add initializers.
10047 (linux_inferior_data): Move. Change type.
10048 (invalidate_linux_cache_inf): Update.
10049 (linux_inferior_data_cleanup): Remove.
10050 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10051
e9b89e2d
TT
100522019-05-08 Tom Tromey <tom@tromey.com>
10053
10054 * auxv.c (auxv_inferior_data): Move. Change type.
10055 (auxv_inferior_data_cleanup): Remove.
10056 (invalidate_auxv_cache_inf): Rewrite.
10057 (get_auxv_inferior_data, _initialize_auxv): Update.
10058
8c42777c
TT
100592019-05-08 Tom Tromey <tom@tromey.com>
10060
10061 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10062 (symfile_debug_objfile_data_key): Change type.
10063 (symfile_debug_installed, debug_qf_has_symbols)
10064 (debug_qf_find_last_source_symtab)
10065 (debug_qf_forget_cached_source_info)
10066 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10067 (debug_qf_print_stats, debug_qf_dump)
10068 (debug_qf_expand_symtabs_for_function)
10069 (debug_qf_expand_all_symtabs)
10070 (debug_qf_expand_symtabs_with_fullname)
10071 (debug_qf_map_matching_symbols)
10072 (debug_qf_expand_symtabs_matching)
10073 (debug_qf_find_pc_sect_compunit_symtab)
10074 (debug_qf_map_symbol_filenames)
10075 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10076 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10077 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10078 (debug_sym_read_linetable, debug_sym_relocate): Update.
10079 (symfile_debug_free_objfile): Remove.
10080 (install_symfile_debug_logging, _initialize_symfile_debug):
10081 Update.
10082
5bfd760d
TT
100832019-05-08 Tom Tromey <tom@tromey.com>
10084
10085 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10086 allocate_on_obstack.
10087 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10088 (get_dwarf2_per_objfile): Update.
10089 (set_dwarf2_per_objfile): Remove.
10090 (dwarf2_has_info, dwarf2_get_section_info): Update.
10091 (dwarf2_free_objfile): Remove.
10092 (_initialize_dwarf2_read): Update.
10093
e85e19b4
TT
100942019-05-08 Tom Tromey <tom@tromey.com>
10095
10096 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10097 initializers.
10098 <unsupported_script_warning_printed,
10099 script_not_found_warning_printed>: Now bool.
10100 (auto_load_pspace_data): Change type.
10101 (~auto_load_pspace_info): Rename from
10102 auto_load_pspace_data_cleanup.
10103 (get_auto_load_pspace_data, init_loaded_scripts_info)
10104 (clear_section_scripts, maybe_print_unsupported_script_warning)
10105 (maybe_print_script_not_found_warning, _initialize_auto_load):
10106 Update.
10107
f6aa7436
TT
101082019-05-08 Tom Tromey <tom@tromey.com>
10109
10110 * objfiles.c (objfile_pspace_info): Add destructor and
10111 initializers.
10112 (objfiles_pspace_data): Change type.
10113 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10114 (get_objfile_pspace_data): Update.
10115 (objfiles_bfd_data): Change type.
10116 (get_objfile_bfd_data): Update.
10117 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10118
6ae614f6
TT
101192019-05-08 Tom Tromey <tom@tromey.com>
10120
10121 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10122 Change type.
10123 (get_catch_syscall_inferior_data): Update.
10124 (catch_syscall_inferior_data_cleanup): Remove.
10125 (_initialize_break_catch_syscall): Update.
10126
6509b8eb
TT
101272019-05-08 Tom Tromey <tom@tromey.com>
10128
10129 * inflow.c (struct terminal_info): Add destructor and
10130 initializers.
10131 (inflow_inferior_data): Change type.
10132 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10133 (get_inflow_inferior_data, inflow_inferior_exit)
10134 (swap_terminal_info, _initialize_inflow): Update.
10135
35632941
TT
101362019-05-08 Tom Tromey <tom@tromey.com>
10137
10138 * target-dcache.c (target_dcache_cleanup): Remove.
10139 (target_dcache_aspace_key): Change type.
10140 (target_dcache_init_p, target_dcache_invalidate)
10141 (target_dcache_get, target_dcache_get_or_init)
10142 (_initialize_target_dcache): Update.
10143 * dcache.h (struct dcache_deleter): New.
10144
3017b94d
TT
101452019-05-08 Tom Tromey <tom@tromey.com>
10146
10147 * symtab.c (struct symbol_cache): Add destructor and
10148 initializers.
10149 (symbol_cache_key): Move. Change type.
10150 (make_symbol_cache, free_symbol_cache): Remove.
10151 (get_symbol_cache): Update.
10152 (symbol_cache_cleanup): Remove.
10153 (ALL_PSPACES, symbol_cache_flush)
10154 (maintenance_print_symbol_cache)
10155 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10156 Update.
10157
a32ad8c5
TT
101582019-05-08 Tom Tromey <tom@tromey.com>
10159
10160 * symtab.c (struct main_info): Add destructor and initializers.
10161 (main_progspace_key): Move. Change type.
10162 (get_main_info): Update.
10163 (main_info_cleanup): Remove.
10164 (_initialize_symtab): Update.
10165
5f6e90a0
TT
101662019-05-08 Tom Tromey <tom@tromey.com>
10167
10168 * registry.h (DECLARE_REGISTRY): Define the _key class.
10169
1bd0c6e4
AB
101702019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10171
10172 * NEWS: Merge two 'New commands' sections.
10173
2228ef77
XR
101742019-05-08 Joel Brobecker <brobecker@adacore.com>
10175
10176 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10177 parameter and use Ada language definition instead.
10178 (ada_val_print_ptr): Remove unused language parameter.
10179 (ada_val_print_num): Remove language parameter and use Ada language
10180 definition instead.
10181 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10182 parameter.
10183 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10184 parameter and use Ada language definition instead.
10185 (ada_val_print_1): Update all ada_val_print_xxx calls.
10186 Remove language parameter.
10187 (ada_val_print): Update ada_val_print_1 call.
10188
60fcc1c3
TT
101892019-05-08 Tom Tromey <tromey@adacore.com>
10190
10191 * remote.c (remote_hw_watchpoint_limit)
10192 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10193 Now static.
10194
ed2b7c17
TT
101952019-05-08 Tom Tromey <tromey@adacore.com>
10196
10197 * maint.c (_initialize_maint_cmds): Move initialization code to
10198 remote.c.
10199 (watchdog, show_watchdog): Move to remote.c.
10200 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10201 "watchdog" static.
10202 (_initialize_remote): Move initialization code from maint.c.
10203 * defs.h (watchdog): Don't declare.
10204
b0be6c91
TT
102052019-05-08 Tom Tromey <tromey@adacore.com>
10206
10207 * tui/tui-interp.c: Include main.h.
10208 * interps.c: Include main.h.
10209 * main.h (interpreter_p): Declare.
10210 * defs.h (interpreter_p): Don't declare.
10211
587ee17b
TT
102122019-05-08 Tom Tromey <tromey@adacore.com>
10213
10214 * dwarf2loc.c: Include dwarf2read.h.
10215 * defs.h (read_unsigned_leb128): Don't declare.
10216 * dwarf2read.h (read_unsigned_leb128): Declare.
10217
ca1df239
TT
102182019-05-08 Tom Tromey <tromey@adacore.com>
10219
10220 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10221 method.
10222
99f20f08
TT
102232019-05-08 Tom Tromey <tromey@adacore.com>
10224
10225 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10226 when no wrap column is set.
10227
80e55b13
TT
102282019-05-08 Tom Tromey <tromey@adacore.com>
10229
10230 * c-lang.c (c_get_string): Handle non-C-style arrays.
10231
9d3421af
TT
102322019-05-08 Tom Tromey <tromey@adacore.com>
10233
10234 * typeprint.c (print_offset_data::update): Print the bit offset,
10235 not the number of bits remaining.
10236
844333e2
TT
102372019-05-08 Tom Tromey <tromey@adacore.com>
10238
10239 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10240 padding at end of comment.
10241
988915ee
TT
102422019-05-08 Tom Tromey <tromey@adacore.com>
10243
10244 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10245 Compare main types.
10246
26bfd823
TT
102472019-05-06 Tom Tromey <tom@tromey.com>
10248
10249 * common/scoped_mmap.c: Include common-defs.h.
10250 * common/scoped_mmap.h: Don't include config.h.
10251
89055eaa
TT
102522019-05-04 Tom Tromey <tom@tromey.com>
10253
10254 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10255 (struct aarch64_call_info): Add initializers.
10256 <si>: Now a std::vector.
10257 (pass_on_stack, aarch64_push_dummy_call): Update.
10258
5da01df5
TT
102592019-05-04 Simon Marchi <simon.marchi@efficios.com>
10260 Tom Tromey <tom@tromey.com>
10261
10262 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10263 (ppc_threads): Now a std::vector. Now static.
10264 (hwdebug_find_thread_points_by_tid)
10265 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10266 Update.
10267
fbdf05a1
TT
102682019-05-04 Tom Tromey <tom@tromey.com>
10269
10270 * arc-tdep.c (arc_tdesc_init): Return bool.
10271
06d16ec9
TT
102722019-05-04 Tom Tromey <tom@tromey.com>
10273
10274 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10275 Use gdb_assert_not_reached.
10276
9c056022
TT
102772019-05-04 Tom Tromey <tom@tromey.com>
10278
10279 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10280 "false".
10281
fa9c2a59
TT
102822019-05-04 Tom Tromey <tom@tromey.com>
10283
10284 * arc-tdep.c (arc_tdesc_init): Use bool.
10285
e2eb806a
TT
102862019-05-04 Tom Tromey <tom@tromey.com>
10287
10288 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10289
6fe87677
TT
102902019-05-04 Tom Tromey <tom@tromey.com>
10291
10292 * cli/cli-cmds.c (valid_command_p): Return bool.
10293
7f008c9e
TT
102942019-05-04 Tom Tromey <tom@tromey.com>
10295
10296 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10297 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10298
b6484282
RT
102992019-05-04 Raul Tambre <raul@tambre.ee>
10300
10301 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10302 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10303 operator for comparison.
10304
af97b416
TT
103052019-05-04 Tom Tromey <tom@tromey.com>
10306
10307 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10308 (lookup_partial_symbol, print_partial_symbols)
10309 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10310 (psymbol_compare): Update.
10311 (add_psymbol_to_bcache): Clear the entire psymbol.
10312 (maintenance_check_psymtabs): Update.
10313 * psympriv.h (struct partial_symbol): Don't derive from
10314 general_symbol_info.
10315 <obj_section, unrelocated_address, address,
10316 set_unrelocated_address>: Update.
10317 <ginfo>: New member.
10318 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10319 (debug_names::write_psymbols): Update.
10320
9d6d4be8
TV
103212019-05-04 Tom de Vries <tdevries@suse.de>
10322
10323 * contrib/cc-with-tweaks.sh: Support -n arg.
10324
66452beb
PW
103252019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10326
10327 * corelow.c (core_target::detach): Ensure frame cache and
10328 register caches are cleared.
10329 inferior.c (exit_inferior_1): Likewise.
10330
bde09ab7
TT
103312019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10332 Tom Tromey <tom@tromey.com>
10333
10334 * dictionary.c (collate_pending_symbols_by_language): Remove
10335 "struct" from foreach.
10336 * symtab.c (lookup_global_symbol_from_objfile)
10337 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10338 foreach.
10339 * ser-tcp.c (net_open): Remove "struct" from foreach.
10340 * objfiles.c (objfile_relocate, objfile_rebase)
10341 (objfile_has_symbols): Remove "struct" from foreach.
10342 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10343 from foreach.
10344 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10345 foreach.
10346 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10347 "struct" from foreach.
10348 * ada-lang.c (create_excep_cond_exprs)
10349 (ada_exception_catchpoint_cond_string): Remove "struct" from
10350 foreach.
10351
222a8d25
TT
103522019-05-03 Tom Tromey <tromey@adacore.com>
10353
10354 * ada-exp.y (convert_char_literal): Check suffix of each
10355 enumerator.
10356
fcd60b84
DP
103572019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10358
10359 PR ada/21406:
10360 * ada-exp.y (yywrap): Don't define.
10361 * ada-lex.l (%option): Add noyywrap
10362 (yywrap): Remove.
10363
5f2459c2
EZ
103642019-05-03 Eli Zaretskii <eliz@gnu.org>
10365
353ea2d1
EZ
10366 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10367 _WIN32_WINNT to the XP level, unless already defined to a higher
10368 level.
10369
10370 * unittests/parse-connection-spec-selftests.c:
10371 * ser-tcp.c:
10372 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10373 override.
10374
5f2459c2
EZ
10375 * symfile.c (find_separate_debug_file): Remove colon from the
10376 drive spec of DOS/Windows file names of the target, so that the
10377 file name produced from DEBUGDIR and the target's directory will
10378 be valid on DOS/Windows systems.
10379
80062eb9
AB
103802019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10381
10382 * rust-lang.c (val_print_struct): Handle printing structures
10383 containing strings.
10384
b8c05e85
TT
103852019-05-02 Tom Tromey <tromey@adacore.com>
10386
10387 * valarith.c (_initialize_valarith): Remove.
10388
4504bbde
TT
103892019-05-01 Tom Tromey <tromey@adacore.com>
10390
10391 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10392 bitfields.
10393
d48e62f4
TT
103942019-05-01 Tom Tromey <tromey@adacore.com>
10395
10396 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10397 for big-endian copies.
10398
15f18d14
AT
103992019-04-30 Ali Tamur <tamur@google.com>
10400 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10401 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10402 (read_3_bytes): New function.
10403
ab4ee614
JB
104042019-04-30 Joel Brobecker <brobecker@adacore.com>
10405
10406 * windows-nat.c (main_thread_id): Delete.
10407 (handle_output_debug_string): Replace main_thread_id by
10408 current_event.dwThreadId.
10409 (fake_create_process): Likewise.
10410 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10411 Do not set main_thread_id.
10412 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10413 current_event.dwThreadId.
10414 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10415
8ed5b76e
JB
104162019-04-30 Joel Brobecker <brobecker@adacore.com>
10417
10418 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10419 Use current_event.dwThreadId instead of main_thread_id.
10420
2ff0a947
TT
104212019-04-30 Tom Tromey <tromey@adacore.com>
10422
10423 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10424 (create_excep_cond_exprs): Iterate over program spaces.
10425 (ada_exception_catchpoint_cond_string): Examine all minimal
10426 symbols for exception types.
10427
a776957c
TT
104282019-04-30 Tom Tromey <tromey@adacore.com>
10429
10430 PR c++/24470:
10431 * dwarf2read.c (process_structure_scope): Handle case where type
10432 has template parameters but no symbol was created.
10433
bc68014d
AB
104342019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10435 Chris January <chris.january@arm.com>
10436
10437 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10438 qualifier.
10439 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10440
f1fdc960
AB
104412019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10442
10443 * f-typeprint.c (f_print_type): Update rules for printing
10444 whitespace.
10445 (f_type_print_varspec_suffix): Likewise.
10446
bf7a4de1
AB
104472019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10448 Chris January <chris.january@arm.com>
10449
10450 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10451 function arguments.
10452
bbe75b9d
AB
104532019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10454
10455 * f-lang.c (build_fortran_types): Change name of void type to
10456 lower case.
10457 * f-typeprint.c (f_type_print_base): Print the name of the void
10458 type, rather than a fixed string.
10459 * f-valprint.c (f_decorations): Use lower case void string.
10460
1db455a7
AB
104612019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10462 Chris January <chris.january@arm.com>
10463
10464 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10465 types for Fortran.
10466
b6d03bb2
AB
104672019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10468 Chris January <chris.january@arm.com>
10469 David Lecomber <david.lecomber@arm.com>
10470
10471 * f-exp.y (BINOP_INTRINSIC): New token.
10472 (exp): New parser rule handling BINOP_INTRINSIC.
10473 (f77_keywords): Add new builtin procedures.
10474 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10475 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10476 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10477 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10478 (print_unop_subexp_f): New function.
10479 (print_binop_subexp_f): New function.
10480 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10481 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10482 (dump_subexp_body_f): Likewise.
10483 (operator_check_f): Likewise.
10484 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10485 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10486
83228e93
AB
104872019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10488
10489 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10490 UNOP_KIND.
10491 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10492 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10493 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10494 (operator_length_f): New fuction.
10495 (print_subexp_f): New function.
10496 (op_name_f): New function.
10497 (dump_subexp_body_f): New function.
10498 (operator_check_f): New function.
10499 (exp_descriptor_f): Replace standard expression handling functions
10500 with new functions.
10501 * gdb/fortran-operator.def: New file.
10502 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10503 * gdb/std-operator.def: Remove UNOP_KIND.
10504
6fdcd7cc
AB
105052019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10506
10507 * std-operator.def: Remove unbalanced, stray double quote
10508 character.
10509
2e62ab40
AB
105102019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10511 Chris January <chris.january@arm.com>
10512 Daniel Everett <daniel.everett@arm.com>
10513 Nick Forrington <nick.forrington@arm.com>
10514 Richard Bunt <richard.bunt@arm.com>
10515
10516 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10517 of depth when printing anonymous structs or unions.
10518 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10519 Don't print either the top-level value, or the children if the
10520 max-depth is exceeded.
10521 (ppscm_print_children): When printing the key of a map, allow one
10522 extra level of depth.
10523 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10524 print either the top-level value, or the children if the max-depth
10525 is exceeded.
10526 (print_children): When printing the key of a map, allow one extra
10527 level of depth.
10528 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10529 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10530 (user_print_options): Initialise max_depth field.
10531 (val_print_scalar_or_string_type_p): New function.
10532 (val_print): Check to see if the max depth has been reached.
10533 (val_print_check_max_depth): Define new function.
10534 (show_print_max_depth): New function.
10535 (_initialize_valprint): Add 'print max-depth' option.
10536 * valprint.h (struct value_print_options) <max_depth>: New field.
10537 (val_print_check_max_depth): Declare new function.
10538 * NEWS: Document new feature.
10539
4be290b2
AB
105402019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10541
10542 * ada-lang.c (ada_language_defn): Initialise new field.
10543 * c-lang.c (c_is_string_type_p): New function.
10544 (c_language_defn): Initialise new field.
10545 (cplus_language_defn): Initialise new field.
10546 (asm_language_defn): Initialise new field.
10547 (minimal_language_defn): Initialise new field.
10548 * c-lang.h (c_is_string_type_p): Declare new function.
10549 * d-lang.c (d_language_defn): Initialise new field.
10550 * f-lang.c (f_is_string_type_p): New function.
10551 (f_language_defn): Initialise new field.
10552 * go-lang.c (go_is_string_type_p): New function.
10553 (go_language_defn): Initialise new field.
10554 * language.c (default_is_string_type_p): New function.
10555 (unknown_language_defn): Initialise new field.
10556 (auto_language_defn): Initialise new field.
10557 * language.h (struct language_defn) <la_is_string_type_p>: New
10558 member variable.
10559 (default_is_string_type_p): Declare new function.
10560 * m2-lang.c (m2_language_defn): Initialise new field.
10561 * objc-lang.c (objc_language_defn): Initialise new field.
10562 * opencl-lang.c (opencl_language_defn): Initialise new field.
10563 * p-lang.c (pascal_is_string_type_p): New function.
10564 (pascal_language_defn): Initialise new field.
10565 * rust-lang.c (rust_is_string_type_p): New function.
10566 (rust_language_defn): Initialise new field.
10567
721b08c6
AB
105682019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10569
10570 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10571 New field.
10572 * ada-lang.c (ada_language_defn): Initialise new field.
10573 * c-lang.c (c_language_defn): Likewise.
10574 (cplus_language_defn): Likewise.
10575 (asm_language_defn): Likewise.
10576 (minimal_language_defn): Likewise.
10577 * d-lang.c (d_language_defn): Likewise.
10578 * f-lang.c (f_language_defn): Likewise.
10579 * go-lang.c (go_language_defn): Likewise.
10580 * language.c (unknown_language_defn): Likewise.
10581 (auto_language_defn): Likewise.
10582 * m2-lang.c (m2_language_defn): Likewise.
10583 * objc-lang.c (objc_language_defn): Likewise.
10584 * opencl-lang.c (opencl_language_defn): Likewise.
10585 * p-lang.c (pascal_language_defn): Likewise.
10586 * rust-lang.c (rust_language_defn): Likewise.
10587
fc913e53
AB
105882019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10589
10590 * ada-lang.c (ada_is_character_type): Change return type to bool.
10591 (ada_is_string_type): Likewise.
10592 * ada-lang.h (ada_is_character_type): Update declaration
10593 (ada_is_string_type): Likewise.
10594
fa731fa0
PW
105952019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10596
10597 Support style in 'frame|thread apply'
10598
10599 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10600 * record.c (record_start, record_stop): Update callers of
10601 execute_command_to_string with false.
10602 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10603 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10604 methods.
10605 (class string_file): New constructor with term_out parameter.
10606 Override methods term_out and can_emit_style_escape. New member
10607 term_out.
10608 (class stdio_file): Override can_emit_style_escape.
10609 (class tee_file): Override term_out and can_emit_style_escape.
10610 * utils.h (can_emit_style_escape): Remove.
10611 * utils.c (can_emit_style_escape): Likewise.
10612 Update all callers of can_emit_style_escape (SOMESTREAM) to
10613 SOMESTREAM->can_emit_style_escape.
10614 * source-cache.c (source_cache::get_source_lines): Likewise.
10615 * stack.c (frame_apply_command_count): Call execute_command_to_string
10616 passing the term_out characteristic of the current gdb_stdout.
10617 * thread.c (thr_try_catch_cmd): Likewise.
10618 * top.c (execute_command_to_string): pass term_out parameter
10619 to construct the string_file for the command output.
10620 * ui-file.c (term_cli_styling): New function (most code moved
10621 from utils.c can_emit_style_escape).
10622 (string_file::string_file, string_file::can_emit_style_escape,
10623 stdio_file::can_emit_style_escape, tee_file::term_out,
10624 tee_file::can_emit_style_escape): New functions.
10625
136afab8
PW
106262019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10627
10628 * NEWS: Mention the new set|show may-call-functions.
10629 * infcall.c (may_call_functions_p): New variable.
10630 (show_may_call_functions_p): New function.
10631 (call_function_by_hand_dummy): Throws an error if not
10632 may-call-functions.
10633 (_initialize_infcall): Call add_setshow_boolean_cmd for
10634 may-call-functions.
10635
725cbb63
KS
106362019-04-25 Keith Seitz <keiths@redhat.com>
10637
10638 PR c++/24367
10639 * cp-support.c (inspect_type): Don't attempt substitutions
10640 of symbol with the same name.
10641
3d1cbb78
TT
106422019-04-25 Tom Tromey <tromey@adacore.com>
10643
10644 PR gdb/24475:
10645 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10646 static.
10647
94aeb44b
TT
106482019-04-25 Tom Tromey <tromey@adacore.com>
10649
10650 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10651 rvalue reference.
10652 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10653 (gdb_xml_parser::parse): Use std::move.
10654 * python/python-internal.h (gdbpy_convert_exception): Take a const
10655 reference.
10656 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10657 std::move.
10658 * python/py-utils.c (gdbpy_convert_exception): Take a const
10659 reference.
10660 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10661 Use std::move.
10662 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10663 Use std::move.
10664 * mi/mi-main.c (mi_print_exception): Take a const reference.
10665 * main.c (handle_command_errors): Take a const reference.
10666 * linespec.c (parse_linespec): Use std::move.
10667 * infcall.c (run_inferior_call): Use std::move.
10668 (call_function_by_hand_dummy): Use std::move.
10669 * exec.c (try_open_exec_file): Use std::move.
10670 * exceptions.h (exception_print, exception_fprintf)
10671 (exception_print_same): Update.
10672 * exceptions.c (print_exception, exception_print)
10673 (exception_fprintf, exception_print_same): Change parameters to
10674 const reference.
10675 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10676 * common/new-op.c: Use std::move.
10677 * common/common-exceptions.h (struct gdb_exception): Add move
10678 constructor.
10679 (struct gdb_exception_error, struct gdb_exception_quit, struct
10680 gdb_quit_bad_alloc): Change constructor to move constructor.
10681 (throw_exception): Change parameter to rvalue reference.
10682 * common/common-exceptions.c (throw_exception): Take rvalue
10683 reference.
10684 * cli/cli-interp.c (safe_execute_command): Use std::move.
10685 * breakpoint.c (insert_bp_location, location_to_sals): Use
10686 std::move.
10687
680d7fd5
TT
106882019-04-25 Tom Tromey <tromey@adacore.com>
10689
10690 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10691 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10692 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10693 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10694 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10695 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10696 guile/scm-value.c: Use unpack.
10697 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10698 gdbscm_gdb_exception.
10699 (gdbscm_throw_gdb_exception): Likewise.
10700 (struct gdbscm_gdb_exception): New.
10701 (unpack): New function.
10702 (gdbscm_wrap): Use unpack.
10703
c6fdd8b2
TT
107042019-04-25 Tom Tromey <tromey@adacore.com>
10705
10706 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10707 (gdb_rl_callback_handler): Use std::move.
10708 * common/common-exceptions.h (struct gdb_exception): Add move
10709 assignment operator.
10710 (throw_exception_sjlj): Change "exception" to const reference.
10711 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10712 (throw_exception_sjlj): Change "exception" to const reference.
10713
cc06b668
TT
107142019-04-25 Tom Tromey <tromey@adacore.com>
10715
10716 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10717 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10718 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10719 Update.
10720 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10721 Update.
10722 * mi/mi-interp.c (mi_interp::exec): Update.
10723 * linespec.c (parse_linespec): Update.
10724 * infcall.c (run_inferior_call): Update.
10725 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10726 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10727 (gdbscm_lookup_global_symbol): Update.
10728 * guile/scm-param.c (gdbscm_parameter_value): Update.
10729 * guile/scm-frame.c (gdbscm_frame_read_register)
10730 (gdbscm_frame_read_var): Update.
10731 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10732 * exec.c (try_open_exec_file): Update.
10733 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10734 (gdb_rl_callback_handler): Update.
10735 * common/common-exceptions.h (exception_none): Don't declare.
10736 * common/common-exceptions.c (exception_none): Don't define.
10737 (struct catcher) <exception>: Update.
10738 * cli/cli-interp.c (safe_execute_command): Update.
10739 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10740
cf532bd1
AT
107412019-04-25 Ali Tamur <tamur@google.com>
10742
10743 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10744 (read_attribute_value): Likewise.
10745 (dwarf2_read_addr_index): Update comment.
10746 (read_str_index): Add DW_FORM_strx.
10747 (dwarf2_string_attr): Likewise.
10748 (dwarf2_const_value_attr): Likewise.
10749 (dump_die_shallow): Likewise.
10750 (dwarf2_fetch_constant_bytes): Likewise.
10751 (skip_form_bytes): Likewise.
10752 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10753
82433e3e
SDJ
107542019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10755
10756 PR corefiles/11608
10757 PR corefiles/18187
10758 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10759 OFFSET. Verify if current mapping contains an ELF header.
10760 (linux_find_memory_regions_full): Adjust call to
10761 dump_mapping_p.
10762
723adb65
SL
107632019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10764 Kang Li <kanglictf@gmail.com>
10765
10766 PR gdb/21600
10767
10768 * dwarf2-frame.c (read_initial_length): Be consistent about using
10769 unsigned representation of length.
10770 (decode_frame_entry_1): Likewise. Check for wraparound of
10771 end pointer as well as buffer overflow.
10772
596179f7
SDJ
107732019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10774
10775 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10776 "vq".
10777
a59240a4
TT
107782019-04-24 Tom Tromey <tromey@adacore.com>
10779
10780 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10781
f872fdbb
AB
107822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10783
10784 * s12z-tdep.c (s12z_unwind_pc): Delete.
10785 (s12z_unwind_sp): Delete.
10786 (s12z_gdbarch_init): Don't register deleted functions with
10787 gdbarch.
10788
b614e6f3
AB
107892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10790
10791 * rl78-tdep.c (rl78_unwind_sp): Delete.
10792 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10793
14faed38
AB
107942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10795
10796 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10797 (xstormy16_unwind_pc): Delete.
10798 (xstormy16_dummy_id): Delete.
10799 (xstormy16_gdbarch_init): Don't register deleted functions with
10800 gdbarch.
10801
541aad8a
AB
108022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10803
10804 * vax-tdep.c (vax_unwind_pc): Delete.
10805 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10806
29222070
AB
108072019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10808
10809 * v850-tdep.c (v850_unwind_sp): Delete.
10810 (v850_unwind_pc): Delete.
10811 (v850_dummy_id): Delete.
10812 (v850_gdbarch_init): Don't register deleted functions with
10813 gdbarch.
10814
0f534d76
AB
108152019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10816
10817 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10818 (tilegx_unwind_pc): Delete.
10819 (tilegx_unwind_dummy_id): Delete.
10820 (tilegx_gdbarch_init): Don't register deleted functions with
10821 gdbarch.
10822
1ba7b7f9
AB
108232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10824
10825 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10826 (tic6x_dummy_id): Delete.
10827 (tic6x_gdbarch_init): Don't register deleted functions with
10828 gdbarch.
10829
d31f262c
AB
108302019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10831
10832 * sparc-tdep.c (sparc_unwind_pc): Delete.
10833 (sparc32_gdbarch_init): Don't register deleted function with
10834 gdbarch.
10835
6d14d64d
AB
108362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10837
10838 * sh-tdep.c (sh_unwind_sp): Delete.
10839 (sh_unwind_pc): Delete.
10840 (sh_dummy_id): Delete.
10841 (sh_gdbarch_init): Don't register deleted functions with
10842 gdbarch.
10843
a40dde9d
AB
108442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10845
10846 * score-tdep.c (score_unwind_sp): Delete.
10847 (score_unwind_pc): Delete.
10848 (score_dummy_id): Delete.
10849 (score_gdbarch_init): Don't register deleted functions with
10850 gdbarch.
10851
47c47d69
AB
108522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10853
10854 * rx-tdep.c (rx_unwind_pc): Delete.
10855 (rx_unwind_sp): Delete.
10856 (rx_dummy_id): Delete.
10857 (rx_gdbarch_init): Don't register deleted functions with
10858 gdbarch. Update comment.
10859
833a4480
AB
108602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10861
10862 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10863 (rs6000_dummy_id): Delete.
10864 (rs6000_gdbarch_init): Don't register deleted functions with
10865 gdbarch.
10866
3f2cef49
AB
108672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10868
10869 * or1k-tdep.c (or1k_dummy_id): Delete.
10870 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10871
96acf884
AB
108722019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10873
10874 * nios2-tdep.c (nios2_dummy_id): Delete.
10875 (nios2_unwind_sp): Delete.
10876 (nios2_gdbarch_init): Don't register deleted functions with
10877 gdbarch.
10878
ca0ab0aa
AB
108792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10880
10881 * nds32-tdep.c (nds32_dummy_id): Delete.
10882 (nds32_unwind_pc): Delete.
10883 (nds32_unwind_sp): Delete.
10884 (nds32_gdbarch_init): Don't register deleted functions with
10885 gdbarch.
10886
c8259044
AB
108872019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10888
10889 * msp430-tdep.c (msp430_unwind_pc): Delete.
10890 (msp430_unwind_sp): Delete.
10891 (msp430_dummy_id): Delete.
10892 (msp430_gdbarch_init): Don't register deleted functions with
10893 gdbarch.
10894
27f113c8
AB
108952019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10896
10897 * moxie-tdep.c (moxie_unwind_sp): Delete.
10898 (moxie_unwind_pc): Delete.
10899 (moxie_dummy_id): Delete.
10900 (moxie_gdbarch_init): Don't register deleted functions with
10901 gdbarch.
10902
aee6c3cd
AB
109032019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10904
10905 * mn10300-tdep.c (mn10300_dummy_id): Delete.
10906 (mn10300_unwind_pc): Delete.
10907 (mn10300_unwind_sp): Delete.
10908 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
10909 mn10300_unwind_sp.
10910 (mn10300_frame_unwind_init): Don't register deleted functions with
10911 gdbarch.
10912
8e2b5aea
AB
109132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10914
10915 * mep-tdep.c (mep_unwind_pc): Delete.
10916 (mep_unwind_sp): Delete.
10917 (mep_dummy_id): Delete.
10918 (mep_gdbarch_init): Don't register deleted functions with
10919 gdbarch.
10920
43cf3ede
AB
109212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10922
10923 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
10924 (m68hc11_unwind_sp): Delete.
10925 (m68hc11_gdbarch_init): Don't register deleted functions with
10926 gdbarch.
10927
5e79b7bb
AB
109282019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10929
10930 * m32r-tdep.c (m32r_unwind_sp): Delete.
10931 (m32r_unwind_pc): Delete.
10932 (m32r_dummy_id): Delete.
10933 (m32r_gdbarch_init): Don't register deleted functions with
10934 gdbarch.
10935
89b268d8
AB
109362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10937
10938 * m32c-tdep.c (m32c_unwind_pc): Delete.
10939 (m32c_unwind_sp): Delete.
10940 (m32c_dummy_id): Delete.
10941 (m32c_gdbarch_init): Don't register deleted functions with
10942 gdbarch.
10943
946c28d2
AB
109442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10945
10946 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
10947 (lm32_unwind_pc): Delete.
10948 (lm32_dummy_id): Delete.
10949 (lm32_gdbarch_init): Don't register deleted functions with
10950 gdbarch.
10951
bf12844a
AB
109522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10953
10954 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
10955 (iq2000_unwind_pc): Delete.
10956 (iq2000_dummy_id): Delete.
10957 (iq2000_gdbarch_init): Don't register deleted functions with
10958 gdbarch.
10959
ecbc06d2
AB
109602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10961
10962 * nds32-tdep.c (nds32_type_align): Delete.
10963 (nds32_push_dummy_call): Use type_align instead.
10964
030197b4
AB
109652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10966
10967 * arm-tdep.c (arm_type_align): Only handle vector override case.
10968 (arm_push_dummy_call): Use type_align.
10969 (arm_gdbarch_init): Register arm_type_align gdbarch function.
10970
b907456c
AB
109712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10972
10973 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
10974 case.
10975 (pass_on_stack): Use type_align.
10976 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
10977 function.
10978
9e97ba43
TT
109792019-04-23 Tom Tromey <tromey@adacore.com>
10980
10981 * dwarf2read.c (line_header::file_name_at): Remove unused
10982 overload.
10983
6892f601
TV
109842019-04-23 Tom de Vries <tdevries@suse.de>
10985
10986 PR gdb/24438
10987 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
10988 invocation.
10989
336d760d
AT
10990
109912019-03-27 Ali Tamur <tamur@google.com>
10992
10993 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
10994 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
10995 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
10996 (dwarf_expr_context::get_addr_index): Likewise
10997 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
10998 (symbol_needs_eval_context::get_addr_index): Likewise
10999 (disassemble_dwarf_expression): Add DW_OP_addrx
11000 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11001 (read_cutu_die_from_dwo): Update comment
11002 (skip_one_die): Add DW_FORM_addrx
11003 (read_attribute_value): Likewise
11004 (var_decode_location): Add DW_OP_addrx
11005 (dwarf2_const_value_attr): Add DW_FORM_addrx
11006 (dump_die_shallow): Likewise
11007 (dwarf2_fetch_constant_bytes): Likewise
11008 (decode_locdesc): Add DW_OP_addrx
11009 (skip_form_bytes): Add DW_FORM_addrx
11010
ad9d13f8
AT
110112019-04-22 Ali Tamur <tamur@google.com>
11012
11013 * MAINTAINERS (Write After Approval): Add self.
11014
d70cc3ba
SM
110152019-04-22 Simon Marchi <simon.marchi@efficios.com>
11016
11017 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11018 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11019 (open_symbol_file_object): Likewise.
11020 (svr4_default_sos): Add info parameter.
11021 (svr4_read_so_list): Likewise.
11022 (svr4_current_sos_direct): Adjust functions calls to pass down
11023 info.
11024 (svr4_current_sos_1): Add info parameter.
11025 (svr4_current_sos): Call get_svr4_info, pass info down to
11026 svr4_current_sos_1.
11027 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11028 get_svr4_info.
11029 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11030 get_svr4_info.
11031 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11032 to get_svr4_info.
11033 (probes_table_remove_objfile_probes): Likewise.
11034 (register_solib_event_probe): Add info parameter.
11035 (solist_update_incremental): Pass info parameter down to
11036 svr4_read_so_list.
11037 (disable_probes_interface): Add info parameter.
11038 (svr4_handle_solib_event): Pass current_program_space to
11039 get_svr4_info. Adjust disable_probes_interface cleanup.
11040 (svr4_create_probe_breakpoints): Add info parameter, pass it
11041 down to register_solib_event_probe.
11042 (svr4_create_solib_event_breakpoints): Add info parameter,
11043 pass it down to svr4_create_probe_breakpoints.
11044 (enable_break): Pass info down to
11045 svr4_create_solib_event_breakpoints.
11046 (svr4_solib_create_inferior_hook): Pass current_program_space to
11047 get_svr4_info.
11048 (svr4_clear_solib): Likewise.
11049
7905fc35
PA
110502019-04-22 Pedro Alves <palves@redhat.com>
11051
11052 * solib-svr4.c (svr4_free_objfile_observer): New.
11053 (probe_and_action::objfile): New field.
11054 (probes_table_htab_remove_objfile_probes)
11055 (probes_table_remove_objfile_probes): New functions.
11056 (register_solib_event_probe): Add 'objfile' parameter. Store it
11057 in the new probe_and_action. Don't store the probe in 'lookup'.
11058 (svr4_create_probe_breakpoints): Pass objfile to
11059 register_solib_event_probe.
11060 (_initialize_svr4_solib): Register a free_objfile observer.
11061
fb881986
TT
110622019-04-19 Tom Tromey <tom@tromey.com>
11063
11064 * common/queue.h: Remove.
11065
8732db6c
TT
110662019-04-19 Tom Tromey <tom@tromey.com>
11067
11068 * event-loop.c: Don't include "common/queue.h".
11069
97dfbadd
TT
110702019-04-19 Tom Tromey <tom@tromey.com>
11071
11072 * remote.c (remote_target): Use delete.
11073 * remote-notif.h: Include <list>, not "common/queue.h".
11074 (notif_client_p): Remove typedef.
11075 (remote_notif_state): Add constructor, destructor, initializer.
11076 <notif_queue>: Now a std::list.
11077 (remote_notif_state_xfree): Don't declare.
11078 * remote-notif.c (remote_notif_process, handle_notification)
11079 (remote_notif_state_allocate): Update.
11080 (~remote_notif_state): Rename from remote_notif_state_xfree.
11081
cf250e36
TT
110822019-04-19 Tom Tromey <tom@tromey.com>
11083
11084 * symfile.c (reread_symbols): Update.
11085 * objfiles.c (objfile_register_static_link)
11086 (objfile_lookup_static_link): Update
11087 (~objfile) Don't delete static_links.
11088 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11089
61f4b350
TT
110902019-04-19 Tom Tromey <tom@tromey.com>
11091
11092 * type-stack.h (struct type_stack) <insert>: Constify string.
11093 * type-stack.c (type_stack::insert): Constify string.
11094 * gdbtypes.h (lookup_template_type): Update.
11095 (address_space_name_to_int): Update.
11096 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11097 const.
11098 (lookup_template_type): Make name const.
11099 * c-exp.y: Update rules.
11100 (lex_one_token, classify_name, classify_inner_name)
11101 (c_print_token): Update.
11102 * p-exp.y: Update rules.
11103 (yylex): Update.
11104 * f-exp.y: Update rules.
11105 (yylex): Update.
11106 * d-exp.y: Update rules.
11107 (lex_one_token, classify_name, classify_inner_name): Update.
11108 * parse.c (write_dollar_variable, copy_name): Return std::string.
11109 * parser-defs.h (copy_name): Change return type.
11110 * m2-exp.y: Update rules.
11111 (yylex): Update.
11112 * go-exp.y (lex_one_token): Update.
11113 Update rules.
11114 (classify_unsafe_function, classify_packaged_name)
11115 (classify_name, yylex): Update.
11116
189b8c2e
ST
111172019-04-19 Sergei Trofimovich <siarheit@google.com>
11118
11119 * configure.ac: add --enable-source-highlight switch.
11120 * configure: Regenerate.
11121 * top.c (print_gdb_version): plumb --enable-source-highlight
11122 status to "show configuration".
11123
8ecb59f8
TT
111242019-04-19 Tom Tromey <tromey@adacore.com>
11125
11126 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11127 Check ADA_TYPE_P.
11128 (empty_record, ada_template_to_fixed_record_type_1)
11129 (template_to_static_fixed_type)
11130 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11131 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11132 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11133 macros.
11134
62160ec9
TT
111352019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11136
11137 PR symtab/24423:
11138 * source.c (print_source_lines_base): Advance "iter" when a
11139 control character is seen.
11140
f2ae8bc8
PW
111412019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11142
11143 * inferior.h (struct infcall_suspend_state_deleter):
11144 Catch exception in destructor to avoid crash.
11145
d563b953
PW
111462019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11147
11148 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11149 close to the add_com "shell".
11150
dc34c897
TT
111512019-04-18 Tom Tromey <tromey@adacore.com>
11152
11153 * process-stratum-target.h (class process_stratum_target)
11154 <stratum>: Add "final".
11155
a12e5744
TT
111562019-04-17 Tom Tromey <tromey@adacore.com>
11157
11158 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11159 against nullptr before use.
11160
a7e559cc
AH
111612019-04-17 Alan Hayward <alan.hayward@arm.com>
11162
11163 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11164
c01660c6
AB
111652019-04-17 Jim Wilson <jimw@sifive.com>
11166 Andrew Burgess <andrew.burgess@embecosm.com>
11167
11168 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11169 code read might fail, assume 4-byte breakpoint in that case.
11170
4aa866af
LS
111712019-04-15 Leszek Swirski <leszeks@google.com>
11172
11173 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11174 rather than a hand-rolled POD check when checking for forced MEMORY
11175 classification.
11176
48574d91
AH
111772019-04-15 Alan Hayward <alan.hayward@arm.com>
11178
11179 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11180 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11181 function.
11182 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11183 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11184 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11185 declaration.
11186
4da037ef
AH
111872019-04-15 Alan Hayward <alan.hayward@arm.com>
11188
11189 * aarch64-linux-nat.c
11190 (aarch64_linux_nat_target::thread_architecture): Add override.
11191 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11192 each VQ.
11193
ccb8d7e8
AH
111942019-04-15 Alan Hayward <alan.hayward@arm.com>
11195
11196 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11197
35add35e
AB
111982019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11199
11200 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11201 target types of size 96-bits, add some additional comments, and
11202 check that the builtin type we found was the correct size.
11203
51196bbc
EZ
112042019-04-12 Eli Zaretskii <eliz@gnu.org>
11205
11206 * utils.c (prompt_for_continue): Don't restore the styling at the
11207 end, as applied_style has the wrong value. This fixes styling in
11208 long lists of file names that are interrupted by the "Continue?"
11209 prompt.
11210
62253a61
AB
112112019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11212
11213 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11214 * c-lang.c (c_language_defn): Likewise.
11215 (cplus_language_defn): Likewise.
11216 (asm_language_defn): Likewise.
11217 (minimal_language_defn): Likewise.
11218 * d-lang.c (d_language_defn): Likewise.
11219 * f-lang.c (f_language_defn): Likewise.
11220 * go-lang.c (go_language_defn): Likewise.
11221 * language.c (unknown_language_defn): Likewise.
11222 (auto_language_defn): Likewise.
11223 * language.h (struct language_defn): Remove la_magic field.
11224 (LANG_MAGIC): Delete.
11225 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11226 * objc-lang.c (objc_language_defn): Likewise.
11227 * opencl-lang.c (opencl_language_defn): Likewise.
11228 * p-lang.c (pascal_language_defn): Likewise.
11229 * rust-lang.c (rust_language_defn): Likewise.
11230
a9158a86
AB
112312019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11232
11233 * riscv-tdep.c (riscv_type_align): New function.
11234 (riscv_type_alignment): Delete.
11235 (riscv_arg_location): Use 'type_align'.
11236 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11237
41077b66
AB
112382019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11239
11240 * gdbtypes.c (type_align): A struct with no non-static fields also
11241 has alignment of 1.
11242
9f0272f8
AB
112432019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11244
11245 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11246 component to 0.
11247 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11248 member.
11249 (riscv_struct_info::analyse): New implementation using new
11250 analyse_inner member function.
11251 (riscv_struct_info::field_offset): New member function.
11252 (riscv_struct_info::m_offsets): New member variable.
11253 (riscv_struct_info::analyse_inner): New private member function,
11254 takes the old implementation of riscv_struct_info::analyse but
11255 extended to track field offsets.
11256 (riscv_call_arg_struct): Update the struct folding special cases
11257 to handle cases where empty C++ structs, which are non-zero
11258 length, are found.
11259 (riscv_arg_location): Initialise the length of each location, a
11260 non-zero length now indicates the location is in use.
11261 (riscv_push_dummy_call): Allow for the first location having a
11262 non-zero offset when setting up arguments.
11263 (riscv_return_value): Likewise, but for return values.
11264
02cf60c7
TT
112652019-04-11 Tom Tromey <tromey@adacore.com>
11266
11267 * utils.c (internal_vproblem): Make "msg" const.
11268
68811f8f
AH
112692019-04-11 Alan Hayward <alan.hayward@arm.com>
11270
11271 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11272 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11273 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11274 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11275
3f52fdbc
KB
112762019-04-10 Kevin Buettner <kevinb@redhat.com>
11277
11278 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11279 function.
11280 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11281 of amd64_collect_native_gregset.
11282 (amd64_linux_nat_target::store_registers): Likewise.
11283
e9ad22ee
TT
112842019-04-10 Tom Tromey <tom@tromey.com>
11285
11286 * symtab.c (lookup_global_symbol_from_objfile)
11287 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11288 * objfiles.h (class separate_debug_iterator): New.
11289 (class separate_debug_range): New.
11290 (struct objfile) <separate_debug_objfiles>: New method.
11291 (objfile_separate_debug_iterate): Don't declare.
11292 * objfiles.c (separate_debug_iterator::operator++): Rename from
11293 objfile_separate_debug_iterate.
11294 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11295 iterator.
11296 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11297 iterator.
11298
ee371134
TT
112992019-04-10 Tom Tromey <tom@tromey.com>
11300
11301 * symfile.c (reread_symbols): Remove old comment.
11302 * objfiles.c (free_all_objfiles): Fix a typo.
11303
bf227d61
TT
113042019-04-10 Tom Tromey <tom@tromey.com>
11305
11306 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11307 * minsyms.c (lookup_minimal_symbol): Use foreach.
11308 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11309 (lookup_minimal_symbol_solib_trampoline): Likewise.
11310 * symfile.c (reread_symbols): Use foreach.
11311
8dc433a0
TT
113122019-04-09 Ivan Begert <ivanbegert@gmail.com>
11313 Tom Tromey <tromey@adacore.com>
11314
11315 PR rust/24414:
11316 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11317 (rust_lex_int_test): Change "value" to be LONGEST.
11318 (rust_lex_tests): Add test for long integer literal.
11319
9ab8741a
TT
113202019-04-09 Tom Tromey <tromey@adacore.com>
11321
11322 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11323 to bool.
11324 (extended_remote_target::attach): Update.
11325 (remote_target::remote_notice_new_inferior): Update.
11326 (remote_target::add_current_inferior_and_thread): Update.
11327 * inferior.c (exit_inferior_1): Use "false".
11328 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11329
e242fd12
SM
113302019-04-09 Simon Marchi <simon.marchi@efficios.com>
11331
9ca1957f 11332 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11333 the "start" command.
11334
2b0c8b01
KB
113352019-04-08 Kevin Buettner <kevinb@redhat.com>
11336
11337 * python/py-inferior.c (infpy_thread_from_thread_handle):
11338 Adjust comments to reflect renaming of thread_from_thread_handle
11339 to thread_from_handle. Adjust keywords. Fix type error message.
11340 (inferior_object_methods): Add thread_from_handle. Retain
11341 thread_from_thread_handle, but mark it as deprecated.
11342
50a82723
KB
113432019-04-08 Kevin Buettner <kevinb@redhat.com>
11344
11345 * gdbthread.h (find_thread_by_handle): Revise declaration.
11346 * thread.c (find_thread_by_handle): Likewise. Adjust
11347 implementation too.
11348 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11349 support for buffer objects as handles.
11350
cf63b016
KB
113512019-04-08 Kevin Buettner <kevinb@redhat.com>
11352
11353 * python/py-infthread.c (thpy_thread_handle): New function.
11354 (thread_object_methods): Register thpy_thread_handle.
11355
3d6c6204
KB
113562019-04-08 Kevin Buettner <kevinb@redhat.com>
11357
11358 * gdbthread.h (thread_to_thread_handle): Declare.
11359 * thread.c (gdbtypes.h): Include.
11360 (thread_to_thread_handle): New function.
11361
11362 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11363 (target_thread_info_to_thread_handle): Declare.
11364 * target.c (target_thread_info_to_thread_handle): New function.
11365 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11366 * target-delegates.c: Regenerate.
11367
11368 * linux-thread-db.c (class thread_db_target): Add method
11369 thread_info_to_thread_handle.
11370 (thread_db_target::thread_info_to_thread_handle): Define.
11371 * remote.c (class remote_target): Add new method
11372 thread_info_to_thread_handle.
11373 (remote_target::thread_info_to_thread_handle): Define.
11374
56be6ea8
PA
113752019-04-08 Pedro Alves <palves@redhat.com>
11376
11377 * common/common-exceptions.c (throw_exception): Don't create
11378 named object to throw; throw directly.
11379 (throw_it): Likewise. Don't initialize gdb_exception::message
11380 here, with new; pass FMT and AP to the ctor instead.
11381 * common/common-exceptions.h: Include <string>.
11382 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11383 const char *, va_list)): New ctor. Use std::make_shared.
11384 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11385 errors)): Delete.
11386 (gdb_exception_error::gdb_exception_error(enum errors, const char
11387 *, va_list)): New.
11388 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11389 Add assertion.
11390 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11391 errors)): Delete.
11392 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11393 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11394 Add assertion.
11395
eedc3f4f
TT
113962019-04-08 Tom Tromey <tom@tromey.com>
11397
11398 * valops.c (value_rtti_indirect_type): Replace throw_exception
11399 with throw.
11400 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11401 with throw.
11402 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11403 throw.
11404 * target.c (target_translate_tls_address): Replace throw_exception
11405 with throw.
11406 * stack.c (frame_apply_command_count): Replace throw_exception
11407 with throw.
11408 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11409 throw.
11410 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11411 with throw.
11412 * rs6000-tdep.c (rs6000_frame_cache)
11413 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11414 * remote.c: Replace throw_exception with throw.
11415 * record-full.c (record_full_message, record_full_wait_1)
11416 (record_full_restore): Replace throw_exception with throw.
11417 * record-btrace.c:
11418 (get_thread_current_frame_id, record_btrace_start_replaying)
11419 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11420 (cmd_record_btrace_start): Replace throw_exception with throw.
11421 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11422 throw.
11423 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11424 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11425 * linespec.c:
11426 (find_linespec_symbols): Replace throw_exception with throw.
11427 * infrun.c (displaced_step_prepare, resume): Replace
11428 throw_exception with throw.
11429 * infcmd.c (post_create_inferior): Replace throw_exception with
11430 throw.
11431 * inf-loop.c (inferior_event_handler): Replace throw_exception
11432 with throw.
11433 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11434 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11435 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11436 (get_prev_frame_always, get_frame_pc_if_available)
11437 (get_frame_address_in_block_if_available, get_frame_language):
11438 Replace throw_exception with throw.
11439 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11440 throw_exception with throw.
11441 * eval.c (fetch_subexp_value, evaluate_var_value)
11442 (evaluate_funcall, evaluate_subexp_standard): Replace
11443 throw_exception with throw.
11444 * dwarf2loc.c (call_site_find_chain)
11445 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11446 Replace throw_exception with throw.
11447 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11448 with throw.
11449 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11450 throw.
11451 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11452 * completer.c (complete_line_internal): Replace throw_exception
11453 with throw.
11454 * compile/compile-object-run.c (compile_object_run): Replace
11455 throw_exception with throw.
11456 * cli/cli-script.c (process_next_line): Replace throw_exception
11457 with throw.
11458 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11459 (btrace_enable, btrace_maint_update_pt_packets): Replace
11460 throw_exception with throw.
11461 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11462 throw_exception with throw.
11463 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11464 throw_exception with throw.
11465 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11466 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11467 * aarch64-tdep.c (aarch64_make_prologue_cache)
11468 (aarch64_make_stub_cache): Replace throw_exception with throw.
11469
26003a20
TT
114702019-04-08 Tom Tromey <tom@tromey.com>
11471
11472 * common/common-exceptions.c (throw_exception): Rename from
11473 throw_exception_cxx. Remove old copy. Make argument const.
11474 (throw_it): Create and throw exception objects directly.
11475 * common/common-exceptions.h (throw_exception): Make argument
11476 const.
11477 (struct gdb_exception_error): Add constructor.
11478 (struct gdb_exception_quit): Add constructor.
11479
d272eb37
TT
114802019-04-08 Tom Tromey <tom@tromey.com>
11481
11482 * common/common-exceptions.h (exception_rethrow): Don't declare.
11483 (TRY_SJLJ): Update comment.
11484 (TRY, CATCH, END_CATCH): Remove.
11485 * common/common-exceptions.c (exception_rethrow): Remove.
11486
230d2906
TT
114872019-04-08 Tom Tromey <tom@tromey.com>
11488
11489 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11490 Remove.
11491 (gdb_exception_error): Rename from
11492 gdb_exception_RETURN_MASK_ERROR.
11493 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11494 (gdb_quit_bad_alloc): Update.
11495 * aarch64-tdep.c: Update.
11496 * ada-lang.c: Update.
11497 * ada-typeprint.c: Update.
11498 * ada-valprint.c: Update.
11499 * amd64-tdep.c: Update.
11500 * arch-utils.c: Update.
11501 * break-catch-throw.c: Update.
11502 * breakpoint.c: Update.
11503 * btrace.c: Update.
11504 * c-varobj.c: Update.
11505 * cli/cli-cmds.c: Update.
11506 * cli/cli-interp.c: Update.
11507 * cli/cli-script.c: Update.
11508 * common/common-exceptions.c: Update.
11509 * common/new-op.c: Update.
11510 * common/selftest.c: Update.
11511 * compile/compile-c-symbols.c: Update.
11512 * compile/compile-cplus-symbols.c: Update.
11513 * compile/compile-object-load.c: Update.
11514 * compile/compile-object-run.c: Update.
11515 * completer.c: Update.
11516 * corelow.c: Update.
11517 * cp-abi.c: Update.
11518 * cp-support.c: Update.
11519 * cp-valprint.c: Update.
11520 * darwin-nat.c: Update.
11521 * disasm-selftests.c: Update.
11522 * dtrace-probe.c: Update.
11523 * dwarf-index-cache.c: Update.
11524 * dwarf-index-write.c: Update.
11525 * dwarf2-frame-tailcall.c: Update.
11526 * dwarf2-frame.c: Update.
11527 * dwarf2loc.c: Update.
11528 * dwarf2read.c: Update.
11529 * eval.c: Update.
11530 * event-loop.c: Update.
11531 * event-top.c: Update.
11532 * exec.c: Update.
11533 * f-valprint.c: Update.
11534 * fbsd-tdep.c: Update.
11535 * frame-unwind.c: Update.
11536 * frame.c: Update.
11537 * gdbtypes.c: Update.
11538 * gnu-v3-abi.c: Update.
11539 * guile/guile-internal.h: Update.
11540 * guile/scm-block.c: Update.
11541 * guile/scm-breakpoint.c: Update.
11542 * guile/scm-cmd.c: Update.
11543 * guile/scm-disasm.c: Update.
11544 * guile/scm-frame.c: Update.
11545 * guile/scm-lazy-string.c: Update.
11546 * guile/scm-math.c: Update.
11547 * guile/scm-param.c: Update.
11548 * guile/scm-ports.c: Update.
11549 * guile/scm-pretty-print.c: Update.
11550 * guile/scm-symbol.c: Update.
11551 * guile/scm-symtab.c: Update.
11552 * guile/scm-type.c: Update.
11553 * guile/scm-value.c: Update.
11554 * i386-linux-tdep.c: Update.
11555 * i386-tdep.c: Update.
11556 * inf-loop.c: Update.
11557 * infcall.c: Update.
11558 * infcmd.c: Update.
11559 * infrun.c: Update.
11560 * jit.c: Update.
11561 * language.c: Update.
11562 * linespec.c: Update.
11563 * linux-fork.c: Update.
11564 * linux-nat.c: Update.
11565 * linux-tdep.c: Update.
11566 * linux-thread-db.c: Update.
11567 * main.c: Update.
11568 * mi/mi-cmd-break.c: Update.
11569 * mi/mi-cmd-stack.c: Update.
11570 * mi/mi-interp.c: Update.
11571 * mi/mi-main.c: Update.
11572 * objc-lang.c: Update.
11573 * p-valprint.c: Update.
11574 * parse.c: Update.
11575 * ppc-linux-tdep.c: Update.
11576 * printcmd.c: Update.
11577 * python/py-arch.c: Update.
11578 * python/py-breakpoint.c: Update.
11579 * python/py-cmd.c: Update.
11580 * python/py-finishbreakpoint.c: Update.
11581 * python/py-frame.c: Update.
11582 * python/py-framefilter.c: Update.
11583 * python/py-gdb-readline.c: Update.
11584 * python/py-inferior.c: Update.
11585 * python/py-infthread.c: Update.
11586 * python/py-lazy-string.c: Update.
11587 * python/py-linetable.c: Update.
11588 * python/py-objfile.c: Update.
11589 * python/py-param.c: Update.
11590 * python/py-prettyprint.c: Update.
11591 * python/py-progspace.c: Update.
11592 * python/py-record-btrace.c: Update.
11593 * python/py-record.c: Update.
11594 * python/py-symbol.c: Update.
11595 * python/py-type.c: Update.
11596 * python/py-unwind.c: Update.
11597 * python/py-utils.c: Update.
11598 * python/py-value.c: Update.
11599 * python/python.c: Update.
11600 * record-btrace.c: Update.
11601 * record-full.c: Update.
11602 * remote-fileio.c: Update.
11603 * remote.c: Update.
11604 * riscv-tdep.c: Update.
11605 * rs6000-aix-tdep.c: Update.
11606 * rs6000-tdep.c: Update.
11607 * rust-exp.y: Update.
11608 * rust-lang.c: Update.
11609 * s390-tdep.c: Update.
11610 * selftest-arch.c: Update.
11611 * solib-dsbt.c: Update.
11612 * solib-frv.c: Update.
11613 * solib-spu.c: Update.
11614 * solib-svr4.c: Update.
11615 * solib.c: Update.
11616 * sparc64-linux-tdep.c: Update.
11617 * stack.c: Update.
11618 * symfile-mem.c: Update.
11619 * symmisc.c: Update.
11620 * target.c: Update.
11621 * thread.c: Update.
11622 * top.c: Update.
11623 * tracefile-tfile.c: Update.
11624 * tui/tui.c: Update.
11625 * typeprint.c: Update.
11626 * unittests/cli-utils-selftests.c: Update.
11627 * unittests/parse-connection-spec-selftests.c: Update.
11628 * valops.c: Update.
11629 * valprint.c: Update.
11630 * value.c: Update.
11631 * varobj.c: Update.
11632 * windows-nat.c: Update.
11633 * x86-linux-nat.c: Update.
11634 * xml-support.c: Update.
11635
a70b8144
TT
116362019-04-08 Tom Tromey <tom@tromey.com>
11637
11638 * xml-support.c: Use C++ exception handling.
11639 * x86-linux-nat.c: Use C++ exception handling.
11640 * windows-nat.c: Use C++ exception handling.
11641 * varobj.c: Use C++ exception handling.
11642 * value.c: Use C++ exception handling.
11643 * valprint.c: Use C++ exception handling.
11644 * valops.c: Use C++ exception handling.
11645 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11646 handling.
11647 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11648 * typeprint.c: Use C++ exception handling.
11649 * tui/tui.c: Use C++ exception handling.
11650 * tracefile-tfile.c: Use C++ exception handling.
11651 * top.c: Use C++ exception handling.
11652 * thread.c: Use C++ exception handling.
11653 * target.c: Use C++ exception handling.
11654 * symmisc.c: Use C++ exception handling.
11655 * symfile-mem.c: Use C++ exception handling.
11656 * stack.c: Use C++ exception handling.
11657 * sparc64-linux-tdep.c: Use C++ exception handling.
11658 * solib.c: Use C++ exception handling.
11659 * solib-svr4.c: Use C++ exception handling.
11660 * solib-spu.c: Use C++ exception handling.
11661 * solib-frv.c: Use C++ exception handling.
11662 * solib-dsbt.c: Use C++ exception handling.
11663 * selftest-arch.c: Use C++ exception handling.
11664 * s390-tdep.c: Use C++ exception handling.
11665 * rust-lang.c: Use C++ exception handling.
11666 * rust-exp.y: Use C++ exception handling.
11667 * rs6000-tdep.c: Use C++ exception handling.
11668 * rs6000-aix-tdep.c: Use C++ exception handling.
11669 * riscv-tdep.c: Use C++ exception handling.
11670 * remote.c: Use C++ exception handling.
11671 * remote-fileio.c: Use C++ exception handling.
11672 * record-full.c: Use C++ exception handling.
11673 * record-btrace.c: Use C++ exception handling.
11674 * python/python.c: Use C++ exception handling.
11675 * python/py-value.c: Use C++ exception handling.
11676 * python/py-utils.c: Use C++ exception handling.
11677 * python/py-unwind.c: Use C++ exception handling.
11678 * python/py-type.c: Use C++ exception handling.
11679 * python/py-symbol.c: Use C++ exception handling.
11680 * python/py-record.c: Use C++ exception handling.
11681 * python/py-record-btrace.c: Use C++ exception handling.
11682 * python/py-progspace.c: Use C++ exception handling.
11683 * python/py-prettyprint.c: Use C++ exception handling.
11684 * python/py-param.c: Use C++ exception handling.
11685 * python/py-objfile.c: Use C++ exception handling.
11686 * python/py-linetable.c: Use C++ exception handling.
11687 * python/py-lazy-string.c: Use C++ exception handling.
11688 * python/py-infthread.c: Use C++ exception handling.
11689 * python/py-inferior.c: Use C++ exception handling.
11690 * python/py-gdb-readline.c: Use C++ exception handling.
11691 * python/py-framefilter.c: Use C++ exception handling.
11692 * python/py-frame.c: Use C++ exception handling.
11693 * python/py-finishbreakpoint.c: Use C++ exception handling.
11694 * python/py-cmd.c: Use C++ exception handling.
11695 * python/py-breakpoint.c: Use C++ exception handling.
11696 * python/py-arch.c: Use C++ exception handling.
11697 * printcmd.c: Use C++ exception handling.
11698 * ppc-linux-tdep.c: Use C++ exception handling.
11699 * parse.c: Use C++ exception handling.
11700 * p-valprint.c: Use C++ exception handling.
11701 * objc-lang.c: Use C++ exception handling.
11702 * mi/mi-main.c: Use C++ exception handling.
11703 * mi/mi-interp.c: Use C++ exception handling.
11704 * mi/mi-cmd-stack.c: Use C++ exception handling.
11705 * mi/mi-cmd-break.c: Use C++ exception handling.
11706 * main.c: Use C++ exception handling.
11707 * linux-thread-db.c: Use C++ exception handling.
11708 * linux-tdep.c: Use C++ exception handling.
11709 * linux-nat.c: Use C++ exception handling.
11710 * linux-fork.c: Use C++ exception handling.
11711 * linespec.c: Use C++ exception handling.
11712 * language.c: Use C++ exception handling.
11713 * jit.c: Use C++ exception handling.
11714 * infrun.c: Use C++ exception handling.
11715 * infcmd.c: Use C++ exception handling.
11716 * infcall.c: Use C++ exception handling.
11717 * inf-loop.c: Use C++ exception handling.
11718 * i386-tdep.c: Use C++ exception handling.
11719 * i386-linux-tdep.c: Use C++ exception handling.
11720 * guile/scm-value.c: Use C++ exception handling.
11721 * guile/scm-type.c: Use C++ exception handling.
11722 * guile/scm-symtab.c: Use C++ exception handling.
11723 * guile/scm-symbol.c: Use C++ exception handling.
11724 * guile/scm-pretty-print.c: Use C++ exception handling.
11725 * guile/scm-ports.c: Use C++ exception handling.
11726 * guile/scm-param.c: Use C++ exception handling.
11727 * guile/scm-math.c: Use C++ exception handling.
11728 * guile/scm-lazy-string.c: Use C++ exception handling.
11729 * guile/scm-frame.c: Use C++ exception handling.
11730 * guile/scm-disasm.c: Use C++ exception handling.
11731 * guile/scm-cmd.c: Use C++ exception handling.
11732 * guile/scm-breakpoint.c: Use C++ exception handling.
11733 * guile/scm-block.c: Use C++ exception handling.
11734 * guile/guile-internal.h: Use C++ exception handling.
11735 * gnu-v3-abi.c: Use C++ exception handling.
11736 * gdbtypes.c: Use C++ exception handling.
11737 * frame.c: Use C++ exception handling.
11738 * frame-unwind.c: Use C++ exception handling.
11739 * fbsd-tdep.c: Use C++ exception handling.
11740 * f-valprint.c: Use C++ exception handling.
11741 * exec.c: Use C++ exception handling.
11742 * event-top.c: Use C++ exception handling.
11743 * event-loop.c: Use C++ exception handling.
11744 * eval.c: Use C++ exception handling.
11745 * dwarf2read.c: Use C++ exception handling.
11746 * dwarf2loc.c: Use C++ exception handling.
11747 * dwarf2-frame.c: Use C++ exception handling.
11748 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11749 * dwarf-index-write.c: Use C++ exception handling.
11750 * dwarf-index-cache.c: Use C++ exception handling.
11751 * dtrace-probe.c: Use C++ exception handling.
11752 * disasm-selftests.c: Use C++ exception handling.
11753 * darwin-nat.c: Use C++ exception handling.
11754 * cp-valprint.c: Use C++ exception handling.
11755 * cp-support.c: Use C++ exception handling.
11756 * cp-abi.c: Use C++ exception handling.
11757 * corelow.c: Use C++ exception handling.
11758 * completer.c: Use C++ exception handling.
11759 * compile/compile-object-run.c: Use C++ exception handling.
11760 * compile/compile-object-load.c: Use C++ exception handling.
11761 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11762 * compile/compile-c-symbols.c: Use C++ exception handling.
11763 * common/selftest.c: Use C++ exception handling.
11764 * common/new-op.c: Use C++ exception handling.
11765 * cli/cli-script.c: Use C++ exception handling.
11766 * cli/cli-interp.c: Use C++ exception handling.
11767 * cli/cli-cmds.c: Use C++ exception handling.
11768 * c-varobj.c: Use C++ exception handling.
11769 * btrace.c: Use C++ exception handling.
11770 * breakpoint.c: Use C++ exception handling.
11771 * break-catch-throw.c: Use C++ exception handling.
11772 * arch-utils.c: Use C++ exception handling.
11773 * amd64-tdep.c: Use C++ exception handling.
11774 * ada-valprint.c: Use C++ exception handling.
11775 * ada-typeprint.c: Use C++ exception handling.
11776 * ada-lang.c: Use C++ exception handling.
11777 * aarch64-tdep.c: Use C++ exception handling.
11778
3d6e9d23
TT
117792019-04-08 Tom Tromey <tom@tromey.com>
11780
11781 * xml-support.c (gdb_xml_parser::parse): Update.
11782 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11783 * value.c (show_convenience): Update.
11784 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11785 (test_parse_flags_qcs): Update.
11786 * thread.c (thr_try_catch_cmd): Update.
11787 * target.c (target_translate_tls_address): Update.
11788 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11789 (info_frame_command_core, frame_apply_command_count): Update.
11790 * rust-exp.y (rust_lex_exception_test): Update.
11791 * riscv-tdep.c (riscv_print_one_register_info): Update.
11792 * remote.c (remote_target::enable_btrace): Update.
11793 * record-btrace.c (record_btrace_enable_warn): Update.
11794 * python/py-utils.c (gdbpy_convert_exception): Update.
11795 * printcmd.c (do_one_display, print_variable_and_value): Update.
11796 * mi/mi-main.c (mi_print_exception): Update.
11797 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11798 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11799 * linux-nat.c (linux_nat_target::attach): Update.
11800 * linux-fork.c (class scoped_switch_fork_info): Update.
11801 * infrun.c (displaced_step_prepare): Update.
11802 * infcall.c (call_function_by_hand_dummy): Update.
11803 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11804 * gnu-v3-abi.c (print_one_vtable): Update.
11805 * frame.c (get_prev_frame_always): Update.
11806 * f-valprint.c (info_common_command_for_block): Update.
11807 * exec.c (try_open_exec_file): Update.
11808 * exceptions.c (print_exception, exception_print)
11809 (exception_fprintf, exception_print_same): Update.
11810 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11811 * dwarf-index-cache.c (index_cache::store)
11812 (index_cache::lookup_gdb_index): Update.
11813 * darwin-nat.c (maybe_cache_shell): Update.
11814 * cp-valprint.c (cp_print_value_fields): Update.
11815 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11816 (gcc_cplus_symbol_address): Update.
11817 * compile/compile-c-symbols.c (gcc_convert_symbol)
11818 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11819 * common/selftest.c: Update.
11820 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11821 a std::string.
11822 (exception_try_scope_entry, exception_try_scope_exit): Don't
11823 declare.
11824 (struct exception_try_scope): Remove.
11825 (TRY): Don't use exception_try_scope.
11826 (struct gdb_exception): Add constructor, operator=.
11827 <what>: New method.
11828 (struct gdb_exception_RETURN_MASK_ALL)
11829 (struct gdb_exception_RETURN_MASK_ERROR)
11830 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11831 (struct gdb_quit_bad_alloc): Update.
11832 * common/common-exceptions.c (exception_none): Change
11833 initializer.
11834 (struct catcher) <state, exception>: Initialize inline.
11835 <prev>: Remove member.
11836 (current_catcher): Remove.
11837 (catchers): New global.
11838 (exceptions_state_mc_init): Simplify.
11839 (catcher_pop): Remove.
11840 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11841 (try_scope_depth, exception_try_scope_entry)
11842 (exception_try_scope_exit): Remove.
11843 (throw_exception_sjlj): Update.
11844 (exception_messages, exception_messages_size): Remove.
11845 (throw_it): Simplify.
11846 (gdb_exception_sliced_copy): Remove.
11847 (throw_exception_cxx): Update.
11848 * cli/cli-script.c (script_from_file): Update.
11849 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11850 Update.
11851 * ada-valprint.c (ada_val_print): Update.
11852 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11853 (create_excep_cond_exprs): Update.
11854
c5c10118
TT
118552019-04-08 Tom Tromey <tom@tromey.com>
11856
11857 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11858 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11859 (TRY, CATCH, END_CATCH): Remove some definitions.
11860 * common/common-exceptions.c: Don't use GDB_XCPT.
11861 (catcher_list_size): Remove.
11862 (throw_exception, throw_it): Simplify.
11863
4de283e4
TT
118642019-04-05 Tom Tromey <tom@tromey.com>
11865
11866 Revert the header-sorting patch.
11867 * ft32-tdep.c: Revert.
11868 * frv-tdep.c: Revert.
11869 * frv-linux-tdep.c: Revert.
11870 * frame.c: Revert.
11871 * frame-unwind.c: Revert.
11872 * frame-base.c: Revert.
11873 * fork-child.c: Revert.
11874 * findvar.c: Revert.
11875 * findcmd.c: Revert.
11876 * filesystem.c: Revert.
11877 * filename-seen-cache.h: Revert.
11878 * filename-seen-cache.c: Revert.
11879 * fbsd-tdep.c: Revert.
11880 * fbsd-nat.h: Revert.
11881 * fbsd-nat.c: Revert.
11882 * f-valprint.c: Revert.
11883 * f-typeprint.c: Revert.
11884 * f-lang.c: Revert.
11885 * extension.h: Revert.
11886 * extension.c: Revert.
11887 * extension-priv.h: Revert.
11888 * expprint.c: Revert.
11889 * exec.h: Revert.
11890 * exec.c: Revert.
11891 * exceptions.c: Revert.
11892 * event-top.c: Revert.
11893 * event-loop.c: Revert.
11894 * eval.c: Revert.
11895 * elfread.c: Revert.
11896 * dwarf2read.h: Revert.
11897 * dwarf2read.c: Revert.
11898 * dwarf2loc.c: Revert.
11899 * dwarf2expr.h: Revert.
11900 * dwarf2expr.c: Revert.
11901 * dwarf2-frame.c: Revert.
11902 * dwarf2-frame-tailcall.c: Revert.
11903 * dwarf-index-write.h: Revert.
11904 * dwarf-index-write.c: Revert.
11905 * dwarf-index-common.c: Revert.
11906 * dwarf-index-cache.h: Revert.
11907 * dwarf-index-cache.c: Revert.
11908 * dummy-frame.c: Revert.
11909 * dtrace-probe.c: Revert.
11910 * disasm.h: Revert.
11911 * disasm.c: Revert.
11912 * disasm-selftests.c: Revert.
11913 * dictionary.c: Revert.
11914 * dicos-tdep.c: Revert.
11915 * demangle.c: Revert.
11916 * dcache.h: Revert.
11917 * dcache.c: Revert.
11918 * darwin-nat.h: Revert.
11919 * darwin-nat.c: Revert.
11920 * darwin-nat-info.c: Revert.
11921 * d-valprint.c: Revert.
11922 * d-namespace.c: Revert.
11923 * d-lang.c: Revert.
11924 * ctf.c: Revert.
11925 * csky-tdep.c: Revert.
11926 * csky-linux-tdep.c: Revert.
11927 * cris-tdep.c: Revert.
11928 * cris-linux-tdep.c: Revert.
11929 * cp-valprint.c: Revert.
11930 * cp-support.c: Revert.
11931 * cp-namespace.c: Revert.
11932 * cp-abi.c: Revert.
11933 * corelow.c: Revert.
11934 * corefile.c: Revert.
11935 * continuations.c: Revert.
11936 * completer.h: Revert.
11937 * completer.c: Revert.
11938 * complaints.c: Revert.
11939 * coffread.c: Revert.
11940 * coff-pe-read.c: Revert.
11941 * cli-out.h: Revert.
11942 * cli-out.c: Revert.
11943 * charset.c: Revert.
11944 * c-varobj.c: Revert.
11945 * c-valprint.c: Revert.
11946 * c-typeprint.c: Revert.
11947 * c-lang.c: Revert.
11948 * buildsym.c: Revert.
11949 * buildsym-legacy.c: Revert.
11950 * build-id.h: Revert.
11951 * build-id.c: Revert.
11952 * btrace.c: Revert.
11953 * bsd-uthread.c: Revert.
11954 * breakpoint.h: Revert.
11955 * breakpoint.c: Revert.
11956 * break-catch-throw.c: Revert.
11957 * break-catch-syscall.c: Revert.
11958 * break-catch-sig.c: Revert.
11959 * blockframe.c: Revert.
11960 * block.c: Revert.
11961 * bfin-tdep.c: Revert.
11962 * bfin-linux-tdep.c: Revert.
11963 * bfd-target.c: Revert.
11964 * bcache.c: Revert.
11965 * ax-general.c: Revert.
11966 * ax-gdb.h: Revert.
11967 * ax-gdb.c: Revert.
11968 * avr-tdep.c: Revert.
11969 * auxv.c: Revert.
11970 * auto-load.c: Revert.
11971 * arm-wince-tdep.c: Revert.
11972 * arm-tdep.c: Revert.
11973 * arm-symbian-tdep.c: Revert.
11974 * arm-pikeos-tdep.c: Revert.
11975 * arm-obsd-tdep.c: Revert.
11976 * arm-nbsd-tdep.c: Revert.
11977 * arm-nbsd-nat.c: Revert.
11978 * arm-linux-tdep.c: Revert.
11979 * arm-linux-nat.c: Revert.
11980 * arm-fbsd-tdep.c: Revert.
11981 * arm-fbsd-nat.c: Revert.
11982 * arm-bsd-tdep.c: Revert.
11983 * arch-utils.c: Revert.
11984 * arc-tdep.c: Revert.
11985 * arc-newlib-tdep.c: Revert.
11986 * annotate.h: Revert.
11987 * annotate.c: Revert.
11988 * amd64-windows-tdep.c: Revert.
11989 * amd64-windows-nat.c: Revert.
11990 * amd64-tdep.c: Revert.
11991 * amd64-sol2-tdep.c: Revert.
11992 * amd64-obsd-tdep.c: Revert.
11993 * amd64-obsd-nat.c: Revert.
11994 * amd64-nbsd-tdep.c: Revert.
11995 * amd64-nbsd-nat.c: Revert.
11996 * amd64-nat.c: Revert.
11997 * amd64-linux-tdep.c: Revert.
11998 * amd64-linux-nat.c: Revert.
11999 * amd64-fbsd-tdep.c: Revert.
12000 * amd64-fbsd-nat.c: Revert.
12001 * amd64-dicos-tdep.c: Revert.
12002 * amd64-darwin-tdep.c: Revert.
12003 * amd64-bsd-nat.c: Revert.
12004 * alpha-tdep.c: Revert.
12005 * alpha-obsd-tdep.c: Revert.
12006 * alpha-nbsd-tdep.c: Revert.
12007 * alpha-mdebug-tdep.c: Revert.
12008 * alpha-linux-tdep.c: Revert.
12009 * alpha-linux-nat.c: Revert.
12010 * alpha-bsd-tdep.c: Revert.
12011 * alpha-bsd-nat.c: Revert.
12012 * aix-thread.c: Revert.
12013 * agent.c: Revert.
12014 * addrmap.c: Revert.
12015 * ada-varobj.c: Revert.
12016 * ada-valprint.c: Revert.
12017 * ada-typeprint.c: Revert.
12018 * ada-tasks.c: Revert.
12019 * ada-lang.c: Revert.
12020 * aarch64-tdep.c: Revert.
12021 * aarch64-ravenscar-thread.c: Revert.
12022 * aarch64-newlib-tdep.c: Revert.
12023 * aarch64-linux-tdep.c: Revert.
12024 * aarch64-linux-nat.c: Revert.
12025 * aarch64-fbsd-tdep.c: Revert.
12026 * aarch64-fbsd-nat.c: Revert.
12027 * aarch32-linux-nat.c: Revert.
12028
d55e5aa6
TT
120292019-04-05 Tom Tromey <tom@tromey.com>
12030
12031 * ft32-tdep.c: Sort headers.
12032 * frv-tdep.c: Sort headers.
12033 * frv-linux-tdep.c: Sort headers.
12034 * frame.c: Sort headers.
12035 * frame-unwind.c: Sort headers.
12036 * frame-base.c: Sort headers.
12037 * fork-child.c: Sort headers.
12038 * findvar.c: Sort headers.
12039 * findcmd.c: Sort headers.
12040 * filesystem.c: Sort headers.
12041 * filename-seen-cache.h: Sort headers.
12042 * filename-seen-cache.c: Sort headers.
12043 * fbsd-tdep.c: Sort headers.
12044 * fbsd-nat.h: Sort headers.
12045 * fbsd-nat.c: Sort headers.
12046 * f-valprint.c: Sort headers.
12047 * f-typeprint.c: Sort headers.
12048 * f-lang.c: Sort headers.
12049 * extension.h: Sort headers.
12050 * extension.c: Sort headers.
12051 * extension-priv.h: Sort headers.
12052 * expprint.c: Sort headers.
12053 * exec.h: Sort headers.
12054 * exec.c: Sort headers.
12055 * exceptions.c: Sort headers.
12056 * event-top.c: Sort headers.
12057 * event-loop.c: Sort headers.
12058 * eval.c: Sort headers.
12059 * elfread.c: Sort headers.
12060 * dwarf2read.h: Sort headers.
12061 * dwarf2read.c: Sort headers.
12062 * dwarf2loc.c: Sort headers.
12063 * dwarf2expr.h: Sort headers.
12064 * dwarf2expr.c: Sort headers.
12065 * dwarf2-frame.c: Sort headers.
12066 * dwarf2-frame-tailcall.c: Sort headers.
12067 * dwarf-index-write.h: Sort headers.
12068 * dwarf-index-write.c: Sort headers.
12069 * dwarf-index-common.c: Sort headers.
12070 * dwarf-index-cache.h: Sort headers.
12071 * dwarf-index-cache.c: Sort headers.
12072 * dummy-frame.c: Sort headers.
12073 * dtrace-probe.c: Sort headers.
12074 * disasm.h: Sort headers.
12075 * disasm.c: Sort headers.
12076 * disasm-selftests.c: Sort headers.
12077 * dictionary.c: Sort headers.
12078 * dicos-tdep.c: Sort headers.
12079 * demangle.c: Sort headers.
12080 * dcache.h: Sort headers.
12081 * dcache.c: Sort headers.
12082 * darwin-nat.h: Sort headers.
12083 * darwin-nat.c: Sort headers.
12084 * darwin-nat-info.c: Sort headers.
12085 * d-valprint.c: Sort headers.
12086 * d-namespace.c: Sort headers.
12087 * d-lang.c: Sort headers.
12088 * ctf.c: Sort headers.
12089 * csky-tdep.c: Sort headers.
12090 * csky-linux-tdep.c: Sort headers.
12091 * cris-tdep.c: Sort headers.
12092 * cris-linux-tdep.c: Sort headers.
12093 * cp-valprint.c: Sort headers.
12094 * cp-support.c: Sort headers.
12095 * cp-namespace.c: Sort headers.
12096 * cp-abi.c: Sort headers.
12097 * corelow.c: Sort headers.
12098 * corefile.c: Sort headers.
12099 * continuations.c: Sort headers.
12100 * completer.h: Sort headers.
12101 * completer.c: Sort headers.
12102 * complaints.c: Sort headers.
12103 * coffread.c: Sort headers.
12104 * coff-pe-read.c: Sort headers.
12105 * cli-out.h: Sort headers.
12106 * cli-out.c: Sort headers.
12107 * charset.c: Sort headers.
12108 * c-varobj.c: Sort headers.
12109 * c-valprint.c: Sort headers.
12110 * c-typeprint.c: Sort headers.
12111 * c-lang.c: Sort headers.
12112 * buildsym.c: Sort headers.
12113 * buildsym-legacy.c: Sort headers.
12114 * build-id.h: Sort headers.
12115 * build-id.c: Sort headers.
12116 * btrace.c: Sort headers.
12117 * bsd-uthread.c: Sort headers.
12118 * breakpoint.h: Sort headers.
12119 * breakpoint.c: Sort headers.
12120 * break-catch-throw.c: Sort headers.
12121 * break-catch-syscall.c: Sort headers.
12122 * break-catch-sig.c: Sort headers.
12123 * blockframe.c: Sort headers.
12124 * block.c: Sort headers.
12125 * bfin-tdep.c: Sort headers.
12126 * bfin-linux-tdep.c: Sort headers.
12127 * bfd-target.c: Sort headers.
12128 * bcache.c: Sort headers.
12129 * ax-general.c: Sort headers.
12130 * ax-gdb.h: Sort headers.
12131 * ax-gdb.c: Sort headers.
12132 * avr-tdep.c: Sort headers.
12133 * auxv.c: Sort headers.
12134 * auto-load.c: Sort headers.
12135 * arm-wince-tdep.c: Sort headers.
12136 * arm-tdep.c: Sort headers.
12137 * arm-symbian-tdep.c: Sort headers.
12138 * arm-pikeos-tdep.c: Sort headers.
12139 * arm-obsd-tdep.c: Sort headers.
12140 * arm-nbsd-tdep.c: Sort headers.
12141 * arm-nbsd-nat.c: Sort headers.
12142 * arm-linux-tdep.c: Sort headers.
12143 * arm-linux-nat.c: Sort headers.
12144 * arm-fbsd-tdep.c: Sort headers.
12145 * arm-fbsd-nat.c: Sort headers.
12146 * arm-bsd-tdep.c: Sort headers.
12147 * arch-utils.c: Sort headers.
12148 * arc-tdep.c: Sort headers.
12149 * arc-newlib-tdep.c: Sort headers.
12150 * annotate.h: Sort headers.
12151 * annotate.c: Sort headers.
12152 * amd64-windows-tdep.c: Sort headers.
12153 * amd64-windows-nat.c: Sort headers.
12154 * amd64-tdep.c: Sort headers.
12155 * amd64-sol2-tdep.c: Sort headers.
12156 * amd64-obsd-tdep.c: Sort headers.
12157 * amd64-obsd-nat.c: Sort headers.
12158 * amd64-nbsd-tdep.c: Sort headers.
12159 * amd64-nbsd-nat.c: Sort headers.
12160 * amd64-nat.c: Sort headers.
12161 * amd64-linux-tdep.c: Sort headers.
12162 * amd64-linux-nat.c: Sort headers.
12163 * amd64-fbsd-tdep.c: Sort headers.
12164 * amd64-fbsd-nat.c: Sort headers.
12165 * amd64-dicos-tdep.c: Sort headers.
12166 * amd64-darwin-tdep.c: Sort headers.
12167 * amd64-bsd-nat.c: Sort headers.
12168 * alpha-tdep.c: Sort headers.
12169 * alpha-obsd-tdep.c: Sort headers.
12170 * alpha-nbsd-tdep.c: Sort headers.
12171 * alpha-mdebug-tdep.c: Sort headers.
12172 * alpha-linux-tdep.c: Sort headers.
12173 * alpha-linux-nat.c: Sort headers.
12174 * alpha-bsd-tdep.c: Sort headers.
12175 * alpha-bsd-nat.c: Sort headers.
12176 * aix-thread.c: Sort headers.
12177 * agent.c: Sort headers.
12178 * addrmap.c: Sort headers.
12179 * ada-varobj.c: Sort headers.
12180 * ada-valprint.c: Sort headers.
12181 * ada-typeprint.c: Sort headers.
12182 * ada-tasks.c: Sort headers.
12183 * ada-lang.c: Sort headers.
12184 * aarch64-tdep.c: Sort headers.
12185 * aarch64-ravenscar-thread.c: Sort headers.
12186 * aarch64-newlib-tdep.c: Sort headers.
12187 * aarch64-linux-tdep.c: Sort headers.
12188 * aarch64-linux-nat.c: Sort headers.
12189 * aarch64-fbsd-tdep.c: Sort headers.
12190 * aarch64-fbsd-nat.c: Sort headers.
12191 * aarch32-linux-nat.c: Sort headers.
12192
699bd4cf
TT
121932019-04-04 Tom Tromey <tom@tromey.com>
12194
12195 * varobj.c (varobj_create): Update.
12196 * rust-exp.y (struct rust_parser) <update_innermost_block,
12197 lookup_symbol>: New methods.
12198 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12199 Rename.
12200 (rust_parser::rust_lookup_type)
12201 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12202 * printcmd.c (display_command, do_one_display): Update.
12203 * parser-defs.h (struct parser_state) <parser_state>: Add
12204 "tracker" parameter.
12205 (block_tracker): New member.
12206 (class innermost_block_tracker) <innermost_block_tracker>: Add
12207 "types" parameter.
12208 <reset>: Remove method.
12209 (innermost_block): Don't declare.
12210 (null_post_parser): Update.
12211 * parse.c (innermost_block): Remove global.
12212 (write_dollar_variable): Update.
12213 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12214 Remove "tracker_types" parameter.
12215 (parse_expression): Add "tracker" parameter.
12216 (parse_expression_for_completion): Update.
12217 (null_post_parser): Add "tracker" parameter.
12218 * p-exp.y: Update rules.
12219 * m2-exp.y: Update rules.
12220 * language.h (struct language_defn) <la_post_parser>: Add
12221 "tracker" parameter.
12222 * go-exp.y: Update rules.
12223 * f-exp.y: Update rules.
12224 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12225 parameter.
12226 * d-exp.y: Update rules.
12227 * c-exp.y: Update rules.
12228 * breakpoint.c (set_breakpoint_condition): Create an
12229 innermost_block_tracker.
12230 (watch_command_1): Likewise.
12231 * ada-lang.c (resolve): Add "tracker" parameter.
12232 (resolve_subexp): Likewise.
12233 * ada-exp.y (write_var_from_sym): Update.
12234
dac43e32
TT
122352019-04-04 Tom Tromey <tom@tromey.com>
12236
12237 * type-stack.h: New file.
12238 * type-stack.c: New file.
12239 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12240 type-stack.h.
12241 (insert_into_type_stack, insert_type, push_type, push_type_int)
12242 (insert_type_address_space, pop_type, pop_type_int)
12243 (pop_typelist, pop_type_stack, append_type_stack)
12244 (push_type_stack, get_type_stack, push_typelist)
12245 (follow_type_instance_flags, follow_types): Don't declare.
12246 * parse.c (type_stack): Remove global.
12247 (parse_exp_in_context): Update.
12248 (insert_into_type_stack, insert_type, push_type, push_type_int)
12249 (insert_type_address_space, pop_type, pop_type_int)
12250 (pop_typelist, pop_type_stack, append_type_stack)
12251 (push_type_stack, get_type_stack, push_typelist)
12252 (follow_type_instance_flags, follow_types): Remove (moved to
12253 type-stack.c).
12254 * f-exp.y (type_stack): New global.
12255 Update rules.
12256 (push_kind_type, f_parse): Update.
12257 * d-exp.y (type_stack): New global.
12258 Update rules.
12259 (d_parse): Update.
12260 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12261 Update rules.
12262 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12263 (HFILES_NO_SRCDIR): Add type-stack.h.
12264
2a612529
TT
122652019-04-04 Tom Tromey <tom@tromey.com>
12266
12267 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12268 (rust_parser::convert_ast_to_expression, rust_parse)
12269 (rust_lex_test_completion, rust_lex_tests): Update.
12270 * parser-defs.h (struct expr_completion_state): New.
12271 (struct parser_state) <parser_state>: Add completion parameter.
12272 <mark_struct_expression, mark_completion_tag>: New methods.
12273 <parse_completion, m_completion_state>: New members.
12274 (prefixify_expression, null_post_parser): Update.
12275 (mark_struct_expression, mark_completion_tag): Don't declare.
12276 * parse.c (parse_completion, expout_last_struct)
12277 (expout_tag_completion_type, expout_completion_name): Remove
12278 globals.
12279 (parser_state::mark_struct_expression)
12280 (parser_state::mark_completion_tag): Now methods.
12281 (prefixify_expression): Add last_struct parameter.
12282 (prefixify_subexp): Likewise.
12283 (parse_exp_1): Update.
12284 (parse_exp_in_context): Add cstate parameter. Update.
12285 (parse_expression_for_completion): Create an
12286 expr_completion_state.
12287 (null_post_parser): Add "completion" parameter.
12288 * p-exp.y: Update rules.
12289 (yylex): Update.
12290 * language.h (struct language_defn) <la_post_parser>: Add
12291 "completing" parameter.
12292 * go-exp.y: Update rules.
12293 (lex_one_token): Update.
12294 * expression.h (parse_completion): Don't declare.
12295 * d-exp.y: Update rules.
12296 (lex_one_token): Update rules.
12297 * c-exp.y: Update rules.
12298 (lex_one_token): Update.
12299 * ada-lang.c (resolve): Add "parse_completion" parameter.
12300 (resolve_subexp): Likewise.
12301 (ada_resolve_function): Likewise.
12302
43476f0b
TT
123032019-04-04 Tom Tromey <tom@tromey.com>
12304
12305 * parser-defs.h (struct parser_state) <start_arglist,
12306 end_arglist>: New methods.
12307 <arglist_len, m_funcall_chain>: New members.
12308 (arglist_len, start_arglist, end_arglist): Don't declare.
12309 * parse.c (arglist_len, funcall_chain): Remove global.
12310 (start_arglist, end_arglist): Remove functions.
12311 (parse_exp_in_context): Update.
12312 * p-exp.y: Update rules.
12313 * m2-exp.y: Update rules.
12314 * go-exp.y: Update rules.
12315 * f-exp.y: Update rules.
12316 * d-exp.y: Update rules.
12317 * c-exp.y: Update rules.
12318
5776fca3
TT
123192019-04-04 Tom Tromey <tom@tromey.com>
12320
12321 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12322 lex_operator, push_back>: New methods.
12323 Update all rules.
12324 (rust_parser::lex_hex, lex_escape): Rename and update.
12325 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12326 (rust_parser::lex_operator): Rename and update.
12327 (rust_parser::lex_number, rustyylex, rustyyerror)
12328 (rust_lex_test_init, rust_lex_test_sequence)
12329 (rust_lex_test_push_back, rust_lex_tests): Update.
12330 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12331 parameter.
12332 <lexptr, prev_lexptr>: New members.
12333 (lexptr, prev_lexptr): Don't declare.
12334 * parse.c (lexptr, prev_lexptr): Remove globals.
12335 (parse_exp_in_context): Update.
12336 * p-exp.y (yylex, yyerror): Update.
12337 * m2-exp.y (parse_number, yylex, yyerror): Update.
12338 * go-exp.y (lex_one_token, yyerror): Update.
12339 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12340 * d-exp.y (lex_one_token, yyerror): Update.
12341 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12342 (lex_one_token, yyerror): Update.
12343 * ada-lex.l (YY_INPUT): Update.
12344 (rewind_to_char): Update.
12345 * ada-exp.y (yyerror): Update.
12346
8621b685
TT
123472019-04-04 Tom Tromey <tom@tromey.com>
12348
12349 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12350 * parser-defs.h (struct parser_state) <parser_state>: Add new
12351 parameter.
12352 <comma_terminates>: New member.
12353 (comma_terminates): Don't declare global.
12354 * parse.c (comma_terminates): Remove global.
12355 (parse_exp_in_context): Update.
12356 * p-exp.y (yylex): Update.
12357 * m2-exp.y (yylex): Update.
12358 * go-exp.y (lex_one_token): Update.
12359 * f-exp.y (yylex): Update.
12360 * d-exp.y (lex_one_token): Update.
12361 * c-exp.y (lex_one_token): Update.
12362 * ada-lex.l: Update.
12363
28aaf3fd
TT
123642019-04-04 Tom Tromey <tom@tromey.com>
12365
12366 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12367 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12368 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12369 * parser-defs.h (paren_depth): Don't declare.
12370 * parse.c (paren_depth): Remove global.
12371 (parse_exp_in_context): Update.
12372 * p-exp.y (paren_depth): New global.
12373 (pascal_parse): Initialize it.
12374 * m2-exp.y (paren_depth): New global.
12375 (m2_parse): Initialize it.
12376 * go-exp.y (paren_depth): New global.
12377 (go_parse): Initialize it.
12378 * f-exp.y (paren_depth): New global.
12379 (f_parse): Initialize it.
12380 * d-exp.y (paren_depth): New global.
12381 (d_parse): Initialize it.
12382 * c-exp.y (paren_depth): New global.
12383 (c_parse): Initialize it.
12384 * ada-lex.l (paren_depth): New global.
12385 (lexer_init): Initialize it.
12386
1e58a4a4
TT
123872019-04-04 Tom Tromey <tom@tromey.com>
12388
12389 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12390 (rust_parser::convert_ast_to_type)
12391 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12392 * parser-defs.h (struct parser_state) <parser_state>: Add
12393 parameters. Initialize new members.
12394 <expression_context_block, expression_context_pc>: New members.
12395 * parse.c (expression_context_block, expression_context_pc):
12396 Remove globals.
12397 (parse_exp_in_context): Update.
12398 * p-exp.y: Update all rules.
12399 (yylex): Update.
12400 * m2-exp.y: Update all rules.
12401 (yylex): Update.
12402 * go-exp.y (yylex): Update.
12403 * f-exp.y (yylex): Update.
12404 * d-exp.y: Update all rules.
12405 (yylex): Update.
12406 * c-exp.y: Update all rules.
12407 (lex_one_token, classify_name, yylex, c_parse): Update.
12408 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12409
37eedb39
TT
124102019-04-04 Tom Tromey <tom@tromey.com>
12411
12412 * gdbarch.h, gdbarch.c: Rebuild.
12413 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12414 * stap-probe.h:
12415 (struct stap_parse_info): Replace "parser_state" with
12416 "expr_builder".
12417 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12418 (parser_state): New class.
12419 * parse.c (expr_builder): Rename.
12420 (expr_builder::release): Rename.
12421 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12422 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12423 (write_exp_elt_longcst, write_exp_elt_floatcst)
12424 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12425 (write_exp_string_vector, write_exp_bitstring)
12426 (write_exp_msymbol, mark_struct_expression)
12427 (write_dollar_variable)
12428 (insert_type_address_space, increase_expout_size): Replace
12429 "parser_state" with "expr_builder".
12430 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12431 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12432 "parser_state" with "expr_builder".
12433
73923d7e
TT
124342019-04-04 Tom Tromey <tom@tromey.com>
12435
12436 * rust-exp.y: Replace "parse_language" with method call.
12437 * p-exp.y:
12438 (yylex): Replace "parse_language" with method call.
12439 * m2-exp.y:
12440 (yylex): Replace "parse_language" with method call.
12441 * go-exp.y (classify_name): Replace "parse_language" with method
12442 call.
12443 * f-exp.y (yylex): Replace "parse_language" with method call.
12444 * d-exp.y (lex_one_token): Replace "parse_language" with method
12445 call.
12446 * c-exp.y:
12447 (lex_one_token, classify_name, yylex): Replace "parse_language"
12448 with method call.
12449 * ada-exp.y (find_primitive_type, type_char)
12450 (type_system_address): Replace "parse_language" with method call.
12451
fa9f5be6
TT
124522019-04-04 Tom Tromey <tom@tromey.com>
12453
12454 * rust-exp.y: Replace "parse_gdbarch" with method call.
12455 * parse.c (write_dollar_variable, insert_type_address_space):
12456 Replace "parse_gdbarch" with method call.
12457 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12458 call.
12459 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12460 call.
12461 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12462 "parse_gdbarch" with method call.
12463 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12464 with method call.
12465 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12466 "parse_gdbarch" with method call.
12467 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12468 "parse_gdbarch" with method call.
12469 * c-exp.y (parse_type, parse_number, classify_name): Replace
12470 "parse_gdbarch" with method call.
12471 * ada-lex.l: Replace "parse_gdbarch" with method call.
12472 * ada-exp.y (parse_type, find_primitive_type, type_char)
12473 (type_system_address): Replace "parse_gdbarch" with method call.
12474
1201a264
TT
124752019-04-04 Tom Tromey <tom@tromey.com>
12476
12477 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12478 * stap-probe.c (stap_parse_argument): Update.
12479 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12480 initial_size parameter.
12481 * rust-exp.y (rust_lex_tests): Update.
12482 * parse.c (parser_state): Update.
12483 (parse_exp_in_context): Update.
12484 * parser-defs.h (struct parser_state) <parser_state>: Remove
12485 "initial_size" parameter.
12486
e3980ce2
TT
124872019-04-04 Tom Tromey <tom@tromey.com>
12488
12489 * parser-defs.h (increase_expout_size): Don't declare.
12490 * parse.c (increase_expout_size): Now static.
12491
e9f8e3f1
TS
124922019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12493
12494 * gnu-nat.c (gnu_nat_target::wait): Fix
12495 target_waitstatus_to_string call.
12496
d7df6549
AB
124972019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12498
12499 * eval.c (evaluate_subexp_standard): Handle internal functions
12500 during Fortran function call handling.
12501
8bdc1658
AB
125022019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12503
12504 * NEWS: Mention new internal functions.
12505 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12506 (read_base_type): Use dwarf2_init_complex_target_type.
12507 * value.c (creal_internal_fn): New function.
12508 (cimag_internal_fn): New function.
12509 (_initialize_values): Register new internal functions.
12510
c29705b7
PW
125112019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12512
12513 * infrun.c (stop_all_threads): If debug_infrun, always
12514 trace the wait status after wait_one, using
12515 target_waitstatus_to_string and target_pid_to_str.
12516 (handle_inferior_event): Replace various trace of
12517 wait status kind by a single trace.
12518 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12519 wait status kind image by target_waitstatus_to_string.
12520 * target/waitstatus.c (target_waitstatus_to_string): Fix
12521 obsolete comment.
12522
05caa1d2
TT
125232019-04-01 Tom Tromey <tromey@adacore.com>
12524
12525 PR symtab/23331:
12526 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12527
9d1447e0
SDJ
125282019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12529 Pedro Alves <palves@redhat.com>
12530
12531 * top.c (quit_force): Call 'finalize_values'.
12532 * value.c (finalize_values): New function.
12533 * value.h (finalize_values): Declare.
12534
7734102d
EZ
125352019-03-30 Eli Zaretskii <eliz@gnu.org>
12536
12537 * NEWS: Announce $_gdb_major and $_gdb_minor.
12538
12539 * top.c (init_gdb_version_vars): New function.
12540 (gdb_init): Call init_gdb_version_vars.
12541
188e1fa9
TT
125422019-03-29 Tom Tromey <tromey@adacore.com>
12543
12544 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12545 help text. Remove dead code.
12546
2880242d
KS
125472019-03-29 Keith Seitz <keiths@redhat.com>
12548
12549 From Siddhesh Poyarekar:
12550 * f-lang.h (f77_get_upperbound): Return LONGEST.
12551 (f77_get_lowerbound): Likewise.
12552 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12553 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12554 print them.
12555 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12556 plongest to format print it.
12557 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12558 (f77_get_upperbound): Likewise.
12559 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12560 LOWER_BOUND to LONGEST.
12561 (f77_create_arrayprint_offset_tbl): Likewise.
12562
cc1defb1
KS
125632019-03-29 Keith Seitz <keiths@redhat.com>
12564
12565 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12566 %s/pulongest for TYPE_LENGTH instead of %d in format
12567 strings.
12568 * ada-typerint.c (ada_print_type): Likewise.
12569 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12570 * compile/compile-c-support.c (generate_register_struct): Likewise.
12571 * gdbtypes.c (recursive_dump_type): Likewise.
12572 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12573 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12574 instead of %d in format strings.
12575 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12576 to std::min to ULONGEST.
12577 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12578 instead of %d in format strings.
12579 * tracepoint.c (info_scope_command): Likewise.
12580 * typeprint.c (print_offset_data::update)
12581 (print_offset_data::finish): Likewise.
12582 * xtensa-tdep.c (xtensa_store_return_value)
12583 (xtensa_push_dummy_call): Likewise.
12584
e432ccf1
JT
125852019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12586
12587 * windows-nat.c (display_selector): Fixed format specifications
12588 for 64-bit Cygwin.
12589
65d2b333
PW
125902019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12591
12592 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12593
f489207e
SL
125942019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12595
12596 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12597 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12598 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12599 (nios2_linux_init_abi): Install it.
12600
bffa1015
AH
126012019-03-28 Alan Hayward <alan.hayward@arm.com>
12602
12603 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12604
fc96163a
AH
126052019-03-28 Alan Hayward <alan.hayward@arm.com>
12606
12607 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12608
20dc7e9b
PW
126092019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12610 Tom Tromey <tromey@adacore.com>
12611
12612 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12613
7f5331a8
JB
126142019-03-26 Joel Brobecker <brobecker@adacore.com>
12615
12616 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12617 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12618 method to compute the bounds of range types. Also print "[evaluated]"
12619 if the bounds' values come from a dynamic evaluation.
12620
18c77628
AB
126212019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12622
12623 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12624 whitespace when pretty printing is on.
12625
53c973f2
AH
126262019-03-26 Alan Hayward <alan.hayward@arm.com>
12627
e79be6e5 12628 * ppc-linux-nat.c: Add include.
53c973f2 12629
d851aa71
AH
126302019-03-26 Alan Hayward <alan.hayward@arm.com>
12631
e79be6e5 12632 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12633
2fe7bab7
AH
126342019-03-26 Alan Hayward <alan.hayward@arm.com>
12635
e79be6e5 12636 * arm-linux-nat.c: Add include.
2fe7bab7 12637
068ef30e
SM
126382019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12639
12640 * source-cache.c (source_cache::get_source_lines): Re-read
12641 fullname after calling open_source_file.
12642
81a24d04
JB
126432019-03-25 John Baldwin <jhb@FreeBSD.org>
12644
12645 * NEWS: Mention TLS support for FreeBSD.
12646
79e7ae11
TT
126472019-03-25 Tom Tromey <tromey@adacore.com>
12648
12649 * minsyms.c (BUNCH_SIZE): Update comment.
12650 (~minimal_symbol_reader): Remove old comment.
12651 (compact_minimal_symbols): Update comment.
12652 (minimal_symbol_reader::install): Remove old comment. Update
12653 other comments.
12654
d45963c2
AH
126552019-03-25 Alan Hayward <alan.hayward@arm.com>
12656
12657 * s390-linux-nat.c: Add include.
12658
0f83012e
AH
126592019-03-25 Alan Hayward <alan.hayward@arm.com>
12660
12661 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12662 Call linux_get_hwcap.
12663 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12664 Likewise.
12665 (aarch64_linux_get_hwcap): Remove function.
12666 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12667 declaration.
12668 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12669 linux_get_hwcap.
12670 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12671 * linux-tdep.c (linux_get_hwcap): Add function.
12672 (linux_get_hwcap2): Likewise.
12673 * linux-tdep.h (linux_get_hwcap): Add declaration.
12674 (linux_get_hwcap2): Likewise.
12675 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12676 (ppc_linux_get_hwcap2): Likewise.
12677 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12678 linux_get_hwcap.
12679 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12680 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12681 (ppc_linux_nat_target::read_description): Likewise.
12682 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12683 * s390-linux-nat.c: Likewise.
12684 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12685
6640a367
TT
126862019-03-24 Tom Tromey <tom@tromey.com>
12687
12688 * ada-lang.c (standard_lookup): Simplify initialization.
12689 (ada_lookup_symbol_nonlocal): Simplify return.
12690 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12691 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12692 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12693 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12694 initialization.
12695 * solib.c (solib_global_lookup): Simplify.
12696 * symtab.c (null_block_symbol): Remove.
12697 (symbol_cache_lookup): Simplify returns.
12698 (lookup_language_this): Simplify returns.
12699 (lookup_symbol_aux): Simplify return.
12700 (lookup_local_symbol): Simplify returns.
12701 (lookup_global_symbol_from_objfile): Simplify return.
12702 (lookup_symbol_in_objfile_symtabs)
12703 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12704 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12705 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12706 * cp-namespace.c (cp_lookup_bare_symbol)
12707 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12708 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12709 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12710 (cp_lookup_symbol_via_imports): Simplify initialization.
12711 (find_symbol_in_baseclass): Likewise.
12712 * symtab.h (null_block_symbol): Remove.
12713 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12714 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12715 (d_lookup_symbol_module): Likewise.
12716 (find_symbol_in_baseclass): Simplify initialization.
12717
a930ebcd
TT
127182019-03-24 Tom Tromey <tom@tromey.com>
12719
12720 * expression.h: Don't include symtab.h.
12721 (struct block): Forward declare.
12722
582942f4
TT
127232019-03-24 Tom Tromey <tom@tromey.com>
12724
12725 * c-exp.y (typebase): Remove casts.
12726 * gdbtypes.c (lookup_unsigned_typename, )
12727 (lookup_signed_typename): Remove cast.
12728 * eval.c (parse_to_comma_and_eval): Remove cast.
12729 * parse.c (write_dollar_variable): Remove cast.
12730 * block.h (struct block) <superblock>: Now const.
12731 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12732 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12733 (map_block): Make "block" const.
12734 * symfile.h (struct quick_symbol_functions)
12735 <map_matching_symbols>: Constify block argument to "callback".
12736 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12737 const.
12738 (find_pc_sect_compunit_symtab): Make "b" const.
12739 (find_symbol_at_address): Likewise.
12740 (search_symbols): Likewise.
12741 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12742 (dw2_debug_names_lookup_symbol): Likewise.
12743 (dw2_map_matching_symbols): Update.
12744 * p-valprint.c (pascal_val_print): Remove "block".
12745 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12746 (aux_add_nonlocal_symbols): Make "block" const.
12747 (resolve_subexp): Remove cast.
12748 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12749 const.
12750 (iterate_over_file_blocks): Likewise.
12751 * f-exp.y (%union) <bval>: Remove.
12752 * coffread.c (patch_opaque_types): Make "b" const.
12753 * spu-tdep.c (spu_catch_start): Make "block" const.
12754 * c-valprint.c (print_unpacked_pointer): Remove "block".
12755 * symmisc.c (dump_symtab_1): Make "b" const.
12756 (block_depth): Make "block" const.
12757 * d-exp.y (%union) <bval>: Remove.
12758 * cp-support.h (cp_lookup_rtti_type): Update.
12759 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12760 * psymtab.c (psym_lookup_symbol): Make "block" const.
12761 (maintenance_check_psymtabs): Make "b" const.
12762 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12763 (enumerate_locals, enumerate_args): Update.
12764 * python/py-symtab.c (stpy_global_block): Make "block" const.
12765 (stpy_static_block): Likewise.
12766 * inline-frame.c (block_starting_point_at): Make "new_block"
12767 const.
12768 * block.c (find_block_in_blockvector): Make return type const.
12769 (blockvector_for_pc_sect): Make "b" const.
12770 (find_block_in_blockvector): Make "b" const.
12771
7ad417dd
TT
127722019-03-23 Tom Tromey <tom@tromey.com>
12773
12774 * varobj.c (varobj_create): Update.
12775 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12776 * printcmd.c (display_command, do_one_display): Don't reset
12777 innermost_block.
12778 * parser-defs.h (enum innermost_block_tracker_type): Move to
12779 expression.h.
12780 (innermost_block): Update comment.
12781 * parse.c (parse_exp_1): Add tracker_types parameter.
12782 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12783 tracker_types parameter. Reset innermost_block.
12784 (parse_exp_in_context): Remove.
12785 (parse_expression_for_completion): Update.
12786 * objfiles.c (~objfile): Don't reset expression_context_block or
12787 innermost_block.
12788 * expression.h (enum innermost_block_tracker_type): Move from
12789 parser-defs.h.
12790 (parse_exp_1): Add tracker_types parameter.
12791 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12792 reset innermost_block.
12793
b366c208
TT
127942019-03-23 Tom Tromey <tom@tromey.com>
12795
12796 * objfiles.h: Include bcache.h.
12797
9bb9b2f9
TT
127982019-03-23 Tom Tromey <tom@tromey.com>
12799
12800 * linespec.c (get_current_search_block): Use
12801 scoped_restore_current_language.
12802 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12803
59c28372
AH
128042019-03-22 Alan Hayward <alan.hayward@arm.com>
12805 Jiong Wang <jiong.wang@arm.com>
12806
12807 * aarch64-linux-tdep.c
12808 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12809 section.
12810 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12811
17e116a7
AH
128122019-03-22 Alan Hayward <alan.hayward@arm.com>
12813 Jiong Wang <jiong.wang@arm.com>
12814
12815 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12816 instructions.
12817 (aarch64_analyze_prologue_test): Add PACIASP test.
12818 (aarch64_prologue_prev_register): Unmask PC value.
12819
11e1b75f
AH
128202019-03-22 Alan Hayward <alan.hayward@arm.com>
12821 Jiong Wang <jiong.wang@arm.com>
12822
12823 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12824 (aarch64_dwarf2_prev_register): Unmask PC value.
12825 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12826 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12827 DW_CFA_AARCH64_negate_ra_state.
12828 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12829
34dcc7cf
AH
128302019-03-22 Alan Hayward <alan.hayward@arm.com>
12831 Jiong Wang <jiong.wang@arm.com>
12832
12833 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12834 registers.
12835 (aarch64_pseudo_register_name): Likewise.
12836 (aarch64_pseudo_register_type): Likewise.
12837 (aarch64_pseudo_register_reggroup_p): Likewise.
12838 (aarch64_gdbarch_init): Add pauth registers.
12839 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12840 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12841 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12842 (struct gdbarch_tdep): Add regnum for ra_state.
12843
1ef53e6b
AH
128442019-03-22 Alan Hayward <alan.hayward@arm.com>
12845 Jiong Wang <jiong.wang@arm.com>
12846
12847 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12848
76bed0fd
AH
128492019-03-22 Alan Hayward <alan.hayward@arm.com>
12850 Jiong Wang <jiong.wang@arm.com>
12851
12852 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12853 function.
12854 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12855 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12856 (aarch64_gdbarch_init): Add puth registers.
12857 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12858 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12859 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12860
ee4fbcfa
AH
128612019-03-22 Alan Hayward <alan.hayward@arm.com>
12862 Jiong Wang <jiong.wang@arm.com>
12863
12864 * aarch64-linux-nat.c
12865 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12866 * aarch64-linux-tdep.c
12867 (aarch64_linux_core_read_description): Likewise.
12868 (aarch64_linux_get_hwcap): New function.
12869 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12870 (aarch64_linux_get_hwcap): New declaration.
12871
6dc0ebde
AH
128722019-03-22 Alan Hayward <alan.hayward@arm.com>
12873 Jiong Wang <jiong.wang@arm.com>
12874
12875 * aarch64-linux-nat.c
12876 (aarch64_linux_nat_target::read_description): Add pauth param.
12877 * aarch64-linux-tdep.c
12878 (aarch64_linux_core_read_description): Likewise.
12879 * aarch64-tdep.c (struct target_desc): Add in pauth.
12880 (aarch64_read_description): Add pauth param.
12881 (aarch64_gdbarch_init): Likewise.
12882 * aarch64-tdep.h (aarch64_read_description): Likewise.
12883 * arch/aarch64.c (aarch64_create_target_description): Likewise.
12884 * arch/aarch64.h (aarch64_create_target_description): Likewise.
12885 * features/Makefile: Add new files.
12886 * features/aarch64-pauth.c: New file.
12887 * features/aarch64-pauth.xml: New file.
12888
595915c1
TT
128892019-03-20 Tom Tromey <tromey@adacore.com>
12890
12891 * infrun.c (handle_inferior_event): Rename from
12892 handle_inferior_event_1. Create a scoped_value_mark.
12893 (handle_inferior_event): Remove.
12894
4c7d57e7
TT
128952019-03-19 Tom Tromey <tromey@adacore.com>
12896
12897 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
12898 * infrun.h (print_stop_event): Add "displays" parameter.
12899 * infrun.c (print_stop_event): Add "displays" parameter.
12900
cb246234
PA
129012019-03-19 Pedro Alves <palves@redhat.com>
12902
12903 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
12904 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
12905 to -1. Fix TABs vs spaces.
12906 (tui_ui_out::tui_ui_out): Don't initialize fields here.
12907 * tui/tui-out.h (tui_ui_out) Add intro comments.
12908 <m_line, m_start_of_line>: In-class initialize, and add describing
12909 comment.
12910
3a0e45b2
AH
129112019-03-18 Alan Hayward <alan.hayward@arm.com>
12912
12913 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
12914 variable names.
12915 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
12916
5371b850
PA
129172019-03-18 Pedro Alves <palves@redhat.com>
12918 Eli Zaretskii <eliz@gnu.org>
12919
12920 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
12921 m_line and m_start_of_line.
12922
b17c4cd0
EZ
129232019-03-18 Eli Zaretskii <eliz@gnu.org>
12924
12925 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
12926 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
12927 it returns a newline. This fixes a regression in TU mode, whereby
12928 the next line is output on the same screen line as the user input.
12929
4bd56d18
TT
129302019-03-18 Tom Tromey <tromey@adacore.com>
12931
12932 * minsyms.c (minimal_symbol_reader::install): Remove call to
12933 obstack_blank.
12934
55c10aca
PA
129352019-03-18 Pedro Alves <palves@redhat.com>
12936
12937 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
12938 New globals.
12939 (apply_style): New, factored out from ...
12940 (apply_ansi_escape): ... this. Handle reverse video mode.
12941 (tui_set_reverse_mode): New function.
12942 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
12943 * tui/tui-winsource.c (tui_show_source_line): Use
12944 tui_set_reverse_mode instead of setting A_STANDOUT.
12945 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
12946 New setter methods.
12947
647bb750
HD
129482019-03-18 Hannes Domani <ssbssa@yahoo.de>
12949
12950 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
12951 Handle tabs.
12952
bff8c71f
TT
129532019-03-18 Tom Tromey <tromey@adacore.com>
12954
12955 * ada-lang.c (empty_array): Add "high" parameter.
12956 (ada_evaluate_subexp): Update.
12957
58785d98
ST
129582019-03-17 Sergei Trofimovich <siarheit@google.com>
12959
12960 * unittests/string_view-selftests.c: Define
12961 _initialize_string_view_selftests unconditionally.
12962
d4cbef22
ВМ
129632019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12964
12965 PR gdb/24350
12966 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
12967
fce4c071
ВМ
129682019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
12969
12970 PR gdb/24351
12971 * windows-nat.c (display_selector): Fix format specifiers.
12972
f7f0a123
EZ
129732019-03-17 Eli Zaretskii <eliz@gnu.org>
12974
12975 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
12976 tui_refill_source_window instead of tui_refresh_win, to update the
12977 current execution line. This fixes redisplay of the current line
12978 when stepping through the code with "next" or "step".
12979
ab42892f
EZ
129802019-03-16 Eli Zaretskii <eliz@gnu.org>
12981
12982 * source-cache.c (source_cache::get_source_lines): Call
12983 find_source_lines to initialize s->nlines. This fixes vertical
12984 scrolling of TUI source window when the DOWN arrow is pressed.
12985
8d8c087f
PW
129862019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12987
12988 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
12989 linux-thread-db.c (_initialize_thread_db): Likewise.
12990
798e1c30
EZ
129912019-03-16 Eli Zaretskii <eliz@gnu.org>
12992
12993 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
12994 wclrtoeol in tui_show_source_line". This reverts changes made in
12995 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
12996
eefba3da
TT
129972019-03-15 Tom Tromey <tom@tromey.com>
12998
12999 * symtab.h (struct minimal_symbol): Derive from
13000 general_symbol_info.
13001 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13002 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13003 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13004 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13005 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13006 (MSYMBOL_SEARCH_NAME): Update.
13007 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13008 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13009 * minsyms.c (minimal_symbol_reader::record_full): Update.
13010
0de2420c
TT
130112019-03-15 Tom Tromey <tom@tromey.com>
13012
13013 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13014
042d75e4
TT
130152019-03-15 Tom Tromey <tom@tromey.com>
13016
13017 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13018 unique_xmalloc_ptr.
13019 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13020 Update.
13021 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13022 (build_minimal_symbol_hash_tables)
13023 (minimal_symbol_reader::install): Update.
13024
db92718b
TT
130252019-03-15 Tom Tromey <tom@tromey.com>
13026
13027 * symtab.c (create_demangled_names_hash): Update.
13028 (symbol_set_names): Update.
13029 * objfiles.h (struct objfile_per_bfd_storage)
13030 <demangled_names_hash>: Now an htab_up.
13031 * objfiles.c (objfile_per_bfd_storage): Simplify.
13032
d6797f46
TT
130332019-03-15 Tom Tromey <tom@tromey.com>
13034
13035 * objfiles.h (struct objfile_per_bfd_storage): Declare
13036 destructor.
13037 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13038 New.
13039 (get_objfile_bfd_data): Use new. Don't initialize
13040 language_of_main.
13041 (free_objfile_per_bfd_storage): Remove.
13042 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13043
741d7538
TT
130442019-03-15 Tom Tromey <tom@tromey.com>
13045
13046 * symfile.c (reread_symbols): Update.
13047 * objfiles.c (objfile::objfile): Update.
13048 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13049 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13050 comment.
13051 (minimal_symbol_reader::install): Update.
13052 (terminate_minimal_symbol_table): Remove.
13053 * jit.c (jit_object_close_impl): Update.
13054
788c80d1
TT
130552019-03-15 Tom Tromey <tom@tromey.com>
13056
13057 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13058 initializations.
13059
1b7a07cb
TT
130602019-03-15 Tom Tromey <tom@tromey.com>
13061
13062 * objfiles.h (struct objfile_per_bfd_storage)
13063 <demangled_hash_languages>: Now a bitset.
13064 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13065 (lookup_minimal_symbol): Update.
13066
3db066bc
TT
130672019-03-15 Tom Tromey <tom@tromey.com>
13068
13069 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13070 Don't return the symbol.
13071 * coffread.c (record_minimal_symbol): Use record_full.
13072
3fff2c37
EZ
130732019-03-14 Eli Zaretskii <eliz@gnu.org>
13074
13075 The MS-Windows port of ncurses fails to switch to a color pair if
13076 one or both of the colors are the implicit default colors. This
13077 change records the default colors when TUI is initialized, and
13078 then specifies them explicitly when a color pair uses the default
13079 colors. This allows color styling in TUI mode on MS-Windows.
13080
13081 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13082 ncurses_norm_attr.
13083 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13084 colors in ncurses_norm_attr.
13085 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13086 "none", replace it with the default color recorded in
13087 ncurses_norm_attr.
13088
3b336828
TT
130892019-03-14 Tom Tromey <tromey@adacore.com>
13090
13091 * source-cache.h (class source_cache) <get_source_lines>: Return
13092 std::string.
13093 * source-cache.c (source_cache::extract_lines): Handle case where
13094 first_pos==npos. Return std::string.
13095 (source_cache::get_source_lines): Update.
13096
d085f989
TT
130972019-03-14 Tom Tromey <tromey@adacore.com>
13098
13099 * NEWS: Add item for "style sources" commands.
13100 * source-cache.c (source_cache::get_source_lines): Check
13101 source_styling.
13102 * cli/cli-style.c (source_styling): New global.
13103 (_initialize_cli_style): Add "style sources" commands.
13104 (show_style_sources): New function.
13105 * cli/cli-style.h (source_styling): Declare.
13106
6f11e682
TT
131072019-03-14 Pedro Alves <palves@redhat.com>
13108 Tom Tromey <tromey@adacore.com>
13109
13110 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13111 * tui/tui-winsource.c (tui_refill_source_window): New function,
13112 from...
13113 (tui_horizontal_source_scroll): ... here. Move some logic.
13114 * cli/cli-style.c (set_style_enabled): Notify new observable.
13115 * tui/tui-hooks.c (tui_redisplay_source): New function.
13116 (tui_attach_detach_observers): Attach or detach
13117 tui_redisplay_source.
13118 * observable.h (source_styling_changed): New observable.
13119 * observable.c: Define source_styling_changed observable.
13120
a068643d
TT
131212019-03-13 Tom Tromey <tromey@adacore.com>
13122
13123 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13124 (i386_gnu_nat_target::store_registers): Update.
13125 * target-debug.h (target_debug_print_std_string): New macro.
13126 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13127 * windows-tdep.c (display_one_tib): Update.
13128 * tui/tui-stack.c (tui_make_status_line): Update.
13129 * top.c (print_inferior_quit_action): Update.
13130 * thread.c (thr_try_catch_cmd): Update.
13131 (add_thread_with_info): Update.
13132 (thread_target_id_str): Update.
13133 (thr_try_catch_cmd): Update.
13134 (thread_command): Update.
13135 (thread_find_command): Update.
13136 * record-btrace.c (record_btrace_target::info_record)
13137 (record_btrace_resume_thread, record_btrace_target::resume)
13138 (record_btrace_cancel_resume, record_btrace_step_thread)
13139 (record_btrace_target::wait, record_btrace_target::wait)
13140 (record_btrace_target::wait, record_btrace_target::stop): Update.
13141 * progspace.c (print_program_space): Update.
13142 * process-stratum-target.c
13143 (process_stratum_target::thread_address_space): Update.
13144 * linux-fork.c (linux_fork_mourn_inferior)
13145 (detach_checkpoint_command, info_checkpoints_command)
13146 (linux_fork_context): Update.
13147 (linux_fork_detach): Update.
13148 (class scoped_switch_fork_info): Update.
13149 (delete_checkpoint_command): Update.
13150 * infrun.c (follow_fork_inferior): Update.
13151 (follow_fork_inferior): Update.
13152 (proceed_after_vfork_done): Update.
13153 (handle_vfork_child_exec_or_exit): Update.
13154 (follow_exec): Update.
13155 (displaced_step_prepare_throw): Update.
13156 (displaced_step_restore): Update.
13157 (start_step_over): Update.
13158 (resume_1): Update.
13159 (clear_proceed_status_thread): Update.
13160 (proceed): Update.
13161 (print_target_wait_results): Update.
13162 (do_target_wait): Update.
13163 (context_switch): Update.
13164 (stop_all_threads): Update.
13165 (restart_threads): Update.
13166 (finish_step_over): Update.
13167 (handle_signal_stop): Update.
13168 (switch_back_to_stepped_thread): Update.
13169 (keep_going_pass_signal): Update.
13170 (print_exited_reason): Update.
13171 (normal_stop): Update.
13172 * inferior.c (inferior_pid_to_str): Change return type.
13173 (print_selected_inferior): Update.
13174 (add_inferior): Update.
13175 (detach_inferior): Update.
13176 * dummy-frame.c (fprint_dummy_frames): Update.
13177 * dcache.c (dcache_info_1): Update.
13178 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13179 (btrace_fetch, btrace_clear): Update.
13180 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13181 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13182 type.
13183 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13184 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13185 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13186 * gdbarch.c, gdbarch.h: Rebuild.
13187 * gdbarch.sh (core_pid_to_str): Change return type.
13188 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13189 return type.
13190 (windows_nat_target::pid_to_str): Change return type.
13191 (windows_delete_thread): Update.
13192 (windows_nat_target::attach): Update.
13193 (windows_nat_target::files_info): Update.
13194 * target-delegates.c: Rebuild.
13195 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13196 return type.
13197 (sol_thread_target::pid_to_str): Change return type.
13198 * remote.c (class remote_target) <pid_to_str>: Change return
13199 type.
13200 (remote_target::pid_to_str): Change return type.
13201 (extended_remote_target::attach, remote_target::remote_stop_ns)
13202 (remote_target::remote_notif_remove_queued_reply)
13203 (remote_target::push_stop_reply, remote_target::disable_btrace):
13204 Update.
13205 (extended_remote_target::attach): Update.
13206 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13207 type.
13208 (gdbsim_target::pid_to_str): Change return type.
13209 * ravenscar-thread.c (struct ravenscar_thread_target)
13210 <pid_to_str>: Change return type.
13211 (ravenscar_thread_target::pid_to_str): Change return type.
13212 * procfs.c (class procfs_target) <pid_to_str>: Change return
13213 type.
13214 (procfs_target::pid_to_str): Change return type.
13215 (procfs_target::attach): Update.
13216 (procfs_target::detach): Update.
13217 (procfs_target::fetch_registers): Update.
13218 (procfs_target::store_registers): Update.
13219 (procfs_target::wait): Update.
13220 (procfs_target::files_info): Update.
13221 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13222 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13223 return type.
13224 (nto_procfs_target::pid_to_str): Change return type.
13225 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13226 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13227 return type.
13228 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13229 (exit_lwp): Update.
13230 (attach_proc_task_lwp_callback, get_detach_signal)
13231 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13232 (linux_nat_target::resume, wait_lwp, stop_callback)
13233 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13234 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13235 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13236 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13237 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13238 type.
13239 (inf_ptrace_target::attach): Update.
13240 (inf_ptrace_target::files_info): Update.
13241 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13242 type.
13243 (go32_nat_target::pid_to_str): Change return type.
13244 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13245 (gnu_nat_target::wait): Update.
13246 (gnu_nat_target::wait): Update.
13247 (gnu_nat_target::resume): Update.
13248 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13249 (fbsd_nat_target::wait): Update.
13250 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13251 type.
13252 (darwin_nat_target::attach): Update.
13253 * corelow.c (class core_target) <pid_to_str>: Change return type.
13254 (core_target::pid_to_str): Change return type.
13255 * target.c (normal_pid_to_str): Change return type.
13256 (default_pid_to_str): Likewise.
13257 (target_pid_to_str): Change return type.
13258 (target_translate_tls_address): Update.
13259 (target_announce_detach): Update.
13260 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13261 return type.
13262 (bsd_uthread_target::pid_to_str): Change return type.
13263 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13264 type.
13265 (bsd_kvm_target::pid_to_str): Change return type.
13266 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13267 return type.
13268 (aix_thread_target::pid_to_str): Change return type.
13269 * target.h (struct target_ops) <pid_to_str>: Change return type.
13270 (target_pid_to_str, normal_pid_to_str): Likewise.
13271 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13272 type.
13273 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13274 type.
13275 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13276 return type.
13277 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13278 type.
13279 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13280 type.
13281 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13282 return type.
13283
b4be1b06
SM
132842019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13285
13286 * NEWS: Mention that the new default MI version is 3. Mention
13287 changes to the output of commands and events that deal with
13288 multi-location breakpoints.
13289 * breakpoint.c: Include "mi/mi-out.h".
13290 (print_one_breakpoint): Change output syntax if using MI version
13291 >= 3.
13292 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13293 New.
13294 (mi_multi_location_breakpoint_output_fixed): New.
13295 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13296 (mi_cmd_fix_multi_location_breakpoint_output): New.
13297 (mi_multi_location_breakpoint_output_fixed): New.
13298 * mi/mi-cmds.c (mi_cmds): Register command
13299 -fix-multi-location-breakpoint-output.
13300 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13301 interpreter "mi".
13302
8e5e5494
SM
133032019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13304
13305 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13306 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13307 instantiate mi_ui_out based on interpreter name.
13308 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13309 * mi/mi-main.c (mi_load_progress): Likewise.
13310
197df35e
JB
133112019-03-12 John Baldwin <jhb@FreeBSD.org>
13312
13313 * NEWS: Combine separate "New targets" sections for 8.3.
13314
8399425f
JB
133152019-03-12 John Baldwin <jhb@FreeBSD.org>
13316
13317 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13318 (ppcfbsd_init_abi): Install gdbarch
13319 "fetch_tls_load_module_address" and "get_thread_local_address"
13320 methods.
13321
b0f87ed0
JB
133222019-03-12 John Baldwin <jhb@FreeBSD.org>
13323
13324 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13325 (riscv_fbsd_init_abi): Install gdbarch
13326 "fetch_tls_load_module_address" and "get_thread_local_address"
13327 methods.
13328
ce25aa57
JB
133292019-03-12 John Baldwin <jhb@FreeBSD.org>
13330
13331 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13332 (i386fbsd_init_abi): Install gdbarch
13333 "fetch_tls_load_module_address" and "get_thread_local_address"
13334 methods.
13335
f5424cfa
JB
133362019-03-12 John Baldwin <jhb@FreeBSD.org>
13337
13338 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13339 (amd64fbsd_init_abi): Install gdbarch
13340 "fetch_tls_load_module_address" and "get_thread_local_address"
13341 methods.
13342
945f3901
JB
133432019-03-12 John Baldwin <jhb@FreeBSD.org>
13344
13345 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13346 (struct fbsd_pspace_data): New type.
13347 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13348 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13349 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13350 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13351 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13352
ef0bd204
JB
133532019-03-12 John Baldwin <jhb@FreeBSD.org>
13354
13355 * gdbtypes.c (lookup_struct_elt): New function.
13356 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13357 * gdbtypes.h (struct struct_elt): New type.
13358 (lookup_struct_elt): New prototype.
13359
36c53a02
JB
133602019-03-12 John Baldwin <jhb@FreeBSD.org>
13361
13362 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13363 remove disabled code block.
13364
6e056c81
JB
133652019-03-12 John Baldwin <jhb@FreeBSD.org>
13366
13367 * gdbarch.sh (get_thread_local_address): New method.
13368 * gdbarch.h, gdbarch.c: Regenerate.
13369 * target.c (target_translate_tls_address): Use
13370 gdbarch_get_thread_local_address if present instead of
13371 target::get_thread_local_address.
13372
cd250a18
JB
133732019-03-12 John Baldwin <jhb@FreeBSD.org>
13374
13375 * target.h (target::get_thread_local_address): Update comment.
13376
df22c1e5
JB
133772019-03-12 John Baldwin <jhb@FreeBSD.org>
13378
13379 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13380 objfile->separate_debug_objfile_backlink if not NULL.
13381
dd6876c9
JB
133822019-03-12 John Baldwin <jhb@FreeBSD.org>
13383
13384 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13385 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13386 (amd64bsd_store_inferior_registers): Likewise.
13387 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13388 Enable segment base registers.
13389 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13390 PT_GETFSBASE and PT_GETGSBASE.
13391 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13392 PT_SETGSBASE.
13393 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13394 segment base registers.
13395 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13396
1163a4b7
JB
133972019-03-12 John Baldwin <jhb@FreeBSD.org>
13398
13399 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13400 Update calls to i386_target_description to add 'segments'
13401 parameter.
13402 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13403 add segment base registers.
13404 * arch/i386.c (i386_create_target_description): Add 'segments'
13405 parameter to enable segment base registers.
13406 * arch/i386.h (i386_create_target_description): Likewise.
13407 * features/i386/32bit-segments.xml: New file.
13408 * features/i386/32bit-segments.c: Generate.
13409 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13410 call to i386_target_description to add 'segments' parameter.
13411 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13412 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13413 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13414 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13415 if feature is present.
13416 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13417 Add 'segments' parameter to call to i386_target_description.
13418 (i386_target_description): Add 'segments' parameter to enable
13419 segment base registers.
13420 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13421 to call to i386_target_description.
13422 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13423 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13424 Define I386_NUM_REGS.
13425 (i386_target_description): Add 'segments' parameter to enable
13426 segment base registers.
13427
3a350822
EZ
134282019-03-12 Eli Zaretskii <eliz@gnu.org>
13429
13430 PR/24325
13431 * source-cache.c: #undef open and close, to avoid unresolved
13432 externals during linking.
13433
ffdd69cf
TT
134342019-03-12 Tom Tromey <tromey@adacore.com>
13435
13436 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13437 const. Add initializers.
13438 (_initialize_remote): Don't initialize ptid globals.
13439
ec148c57
PA
134402019-03-12 Pedro Alves <palves@redhat.com>
13441
13442 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13443
32764270
PA
134442019-03-12 Pedro Alves <palves@redhat.com>
13445
13446 * cp-name-parser.y (main): Remove unused 'len' variable.
13447
17547186
TT
134482019-03-12 Tom Tromey <tromey@adacore.com>
13449
13450 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13451 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13452
d3a70e03
TT
134532019-03-12 Tom Tromey <tromey@adacore.com>
13454
13455 * linux-nat.c (iterate_over_lwps): Update.
13456 (stop_callback): Remove parameter.
13457 (stop_wait_callback, detach_callback, resume_set_callback)
13458 (select_singlestep_lwp_callback, set_ignore_sigint)
13459 (status_callback, resumed_callback, resume_clear_callback)
13460 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13461 data parameter.
13462 (linux_nat_target::detach, linux_nat_target::resume)
13463 (linux_stop_and_wait_all_lwps, select_event_lwp)
13464 (linux_nat_filter_event, linux_nat_wait_1)
13465 (linux_nat_target::kill, linux_nat_target::stop)
13466 (linux_nat_target::stop): Update.
13467 (linux_nat_resume_callback): Change type.
13468 (resume_stopped_resumed_lwps, count_events_callback)
13469 (select_event_lwp_callback): Likewise.
13470 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13471 * arm-linux-nat.c (struct update_registers_data): Remove.
13472 (update_registers_callback): Change type.
13473 (arm_linux_insert_hw_breakpoint1): Update.
13474 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13475 parameter.
13476 (x86_linux_dr_set_addr): Update.
13477 (x86_linux_dr_set_control): Update.
13478 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13479 (iterate_over_lwps): Use gdb::function_view.
13480 * nat/aarch64-linux-hw-point.c (struct
13481 aarch64_dr_update_callback_param): Remove.
13482 (debug_reg_change_callback): Change type.
13483 (aarch64_notify_debug_reg_change): Update.
13484 * s390-linux-nat.c (s390_refresh_per_info): Update.
13485
82cb27ff
TT
134862019-03-11 Tom Tromey <tromey@adacore.com>
13487
13488 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13489 redundant assignment to "this_cu".
13490
568c0683
SM
134912019-03-08 Simon Marchi <simon.marchi@efficios.com>
13492
13493 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13494
f09ce22d
SM
134952019-03-08 Simon Marchi <simon.marchi@efficios.com>
13496
13497 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13498 from...
13499 (rank_one_type): ... this.
13500
595f96a9
SM
135012019-03-08 Simon Marchi <simon.marchi@efficios.com>
13502
13503 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13504 from...
13505 (rank_one_type): ... this.
13506
2598a94b
SM
135072019-03-08 Simon Marchi <simon.marchi@efficios.com>
13508
13509 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13510 from...
13511 (rank_one_type): ... this.
13512
7f17b20d
SM
135132019-03-08 Simon Marchi <simon.marchi@efficios.com>
13514
13515 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13516 from...
13517 (rank_one_type): ... this.
13518
2c509035
SM
135192019-03-08 Simon Marchi <simon.marchi@efficios.com>
13520
13521 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13522 from...
13523 (rank_one_type): ... this.
13524
0dd322dc
SM
135252019-03-08 Simon Marchi <simon.marchi@efficios.com>
13526
13527 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13528 from...
13529 (rank_one_type): ... this.
13530
41ea4728
SM
135312019-03-08 Simon Marchi <simon.marchi@efficios.com>
13532
13533 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13534 from...
13535 (rank_one_type): ... this.
13536
793cd1d2
SM
135372019-03-08 Simon Marchi <simon.marchi@efficios.com>
13538
13539 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13540 from...
13541 (rank_one_type): ... this.
13542
34910087
SM
135432019-03-08 Simon Marchi <simon.marchi@efficios.com>
13544
13545 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13546 from...
13547 (rank_one_type): ... this.
13548
f1f832d6
SM
135492019-03-08 Simon Marchi <simon.marchi@efficios.com>
13550
13551 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13552 from...
13553 (rank_one_type): ... this.
13554
b9f4512f
SM
135552019-03-08 Simon Marchi <simon.marchi@efficios.com>
13556
13557 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13558 from...
13559 (rank_one_type): ... this.
13560
9293fc63
SM
135612019-03-08 Simon Marchi <simon.marchi@efficios.com>
13562
13563 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13564 from...
13565 (rank_one_type): ... this.
13566
e3abbe7e
PW
135672019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13568
13569 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13570 inferior-events' shows the example events.
13571
e4adb939
EZ
135722019-03-08 Eli Zaretskii <eliz@gnu.org>
13573
13574 Support styling on native MS-Windows console
13575
13576 PR/24315
13577 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13578 on MS-Windows if $TERM is not defined.
13579
13580 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13581
13582 * posix-hdep.c (gdb_console_fputs):
13583 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13584 functions.
13585 * ui-file.h (gdb_console_fputs): Add prototype.
13586
13587 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13588 back to fputs only if the former returns zero.
13589
25629dfd
TT
135902019-03-07 Tom Tromey <tom@tromey.com>
13591
13592 * symmisc.c (print_symbol_bcache_statistics): Update.
13593 (print_objfile_statistics): Update.
13594 * symfile.c (allocate_symtab): Update.
13595 * stabsread.c: Don't include bcache.h.
13596 * psymtab.h (struct psymbol_bcache): Don't declare.
13597 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13598 (psymbol_bcache_init, psymbol_bcache_free)
13599 (psymbol_bcache_get_bcache): Don't declare.
13600 * psymtab.c (struct psymbol_bcache): Remove.
13601 (psymtab_storage::psymtab_storage): Update.
13602 (psymtab_storage::~psymtab_storage): Update.
13603 (psymbol_bcache_init, psymbol_bcache_free)
13604 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13605 (add_psymbol_to_bcache): Update.
13606 (allocate_psymtab): Update.
13607 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13608 macro_cache>: No longer pointers.
13609 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13610 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13611 * macrotab.c (macro_bcache): Update.
13612 * macroexp.c: Don't include bcache.h.
13613 * gdbtypes.c (check_types_worklist): Update.
13614 (types_deeply_equal): Remove TRY/CATCH. Update.
13615 * elfread.c (elf_symtab_read): Update.
13616 * dwarf2read.c: Don't include bcache.h.
13617 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13618 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13619 (print_bcache_statistics, bcache_memory_used): Don't declare.
13620 (struct bcache): Move from bcache.c. Add constructor, destructor,
13621 methods. Rename all data members.
13622 * bcache.c (struct bcache): Move to bcache.h.
13623 (bcache::expand_hash_table): Rename from expand_hash_table.
13624 (bcache): Remove.
13625 (bcache::insert): Rename from bcache_full.
13626 (bcache::compare): Rename from bcache_compare.
13627 (bcache_xmalloc): Remove.
13628 (bcache::~bcache): Rename from bcache_xfree.
13629 (bcache::print_statistics): Rename from print_bcache_statistics.
13630 (bcache::memory_used): Rename from bcache_memory_used.
13631
fe726667
PA
136322019-03-07 Pedro Alves <palves@redhat.com>
13633
13634 * infrun.c (normal_stop): Also check for
13635 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13636
7584bb30
AB
136372019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13638
13639 * f-lang.c (value_from_host_double): Moved to...
13640 * value.c (value_from_host_double): ...here.
13641 * value.h (value_from_host_double): Declare.
13642 * guile/scm-math.c (vlscm_convert_typed_number): Use
13643 value_from_host_double.
13644 (vlscm_convert_number): Likewise.
13645 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13646 * python/py-value.c (convert_value_from_python): Likewise.
13647
a7b1986e
TT
136482019-03-06 Tom Tromey <tom@tromey.com>
13649
13650 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13651
0ccf4211
TT
136522019-03-06 Tom Tromey <tom@tromey.com>
13653
13654 * utils.h (free_current_contents): Don't declare.
13655 * utils.c (free_current_contents): Remove.
13656
fe7b42e5
TT
136572019-03-06 Tom Tromey <tom@tromey.com>
13658
13659 * top.c (quit_force): Update.
13660 * main.c (captured_command_loop): Update.
13661 * common/new-op.c (operator new): Update.
13662 * common/common-exceptions.c (struct catcher)
13663 <save_cleanup_chain>: Remove member.
13664 (exceptions_state_mc_init): Update.
13665 (exception_try_scope_entry): Return nullptr.
13666 (exception_try_scope_exit, exception_rethrow)
13667 (throw_exception_sjlj, throw_exception_cxx): Update.
13668 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13669 (all_cleanups, do_cleanups, discard_cleanups)
13670 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13671 (restore_cleanups, restore_final_cleanups): Don't declare.
13672 (do_final_cleanups): Remove parameter.
13673 * common/cleanups.c (cleanup_chain, make_cleanup)
13674 (make_cleanup_dtor, all_cleanups, do_cleanups)
13675 (discard_my_cleanups, discard_cleanups)
13676 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13677 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13678 (null_cleanup): Remove.
13679 (do_final_cleanups): Remove parameter.
13680
c6321f19
TT
136812019-03-06 Tom Tromey <tom@tromey.com>
13682
13683 * remote.c (remote_target::remote_parse_stop_reply): Use
13684 unique_xmalloc_ptr.
13685
61b30099
TT
136862019-03-06 Tom Tromey <tom@tromey.com>
13687
13688 * stabsread.c (struct stabs_field_info): Rename from field_info.
13689 <list, fnlist>: Add initializers.
13690 <obstack>: New member.
13691 (read_member_functions, read_struct_fields, read_baseclasses):
13692 Allocate on obstack. Don't use cleanups.
13693 (read_one_struct_field, read_member_functions, read_struct_fields)
13694 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13695 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13696 (read_struct_type): Update.
13697
6cceac94
TT
136982019-03-06 Tom Tromey <tom@tromey.com>
13699
13700 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13701 * common/filestuff.h (make_cleanup_close): Don't declare.
13702 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13703 Remove.
13704
72412762
TT
137052019-03-06 Tom Tromey <tom@tromey.com>
13706
13707 * solib-aix.c: Use make_scope_exit.
13708
2b6ff1c0
TT
137092019-03-06 Tom Tromey <tom@tromey.com>
13710
13711 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13712 Use make_scope_exit.
13713
d01c5877
TT
137142019-03-06 Tom Tromey <tom@tromey.com>
13715
13716 * solib-svr4.c (disable_probes_interface): Remove parameter.
13717 (svr4_handle_solib_event): Use make_scope_exit.
13718
32603266
TT
137192019-03-06 Tom Tromey <tom@tromey.com>
13720
13721 * remote.c (struct stop_reply_deleter): Remove.
13722 (stop_reply_up): Update.
13723 (struct stop_reply): Derive from notif_event. Don't typedef.
13724 <regcache>: Now a std::vector.
13725 (stop_reply_xfree): Remove.
13726 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13727 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13728 (remote_target::discard_pending_stop_replies): Use delete.
13729 (remote_target::remote_parse_stop_reply): Update.
13730 (remote_target::process_stop_reply): Update.
13731 * remote-notif.h (struct notif_event): Add virtual destructor.
13732 Remove "dtr" member.
13733 (struct notif_client) <alloc_event>: Return a unique_ptr.
13734 (notif_event_xfree): Don't declare.
13735 (notif_event_up): New typedef.
13736 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13737 (notif_event_xfree, do_notif_event_xfree): Remove.
13738 (remote_notif_state_xfree): Update.
13739
9799571e
TT
137402019-03-06 Tom Tromey <tom@tromey.com>
13741
13742 * infrun.c (displaced_step_clear_cleanup): Now a
13743 forward_scope_exit type.
13744 (displaced_step_prepare_throw): Update.
13745 (displaced_step_fixup): Update.
13746
09e3c4ca
TT
137472019-03-06 Tom Tromey <tom@tromey.com>
13748
13749 * inferior.h (class inferior): Update comment.
13750 * gdbthread.h (class thread_info): Update comment.
13751
e2a03548
TT
137522019-03-06 Joel Brobecker <brobecker@adacore.com>
13753 Tom Tromey <tom@tromey.com>
13754
13755 * stabsread.h (struct stab_section_list): Remove.
13756 (coffstab_build_psymtabs): Update.
13757 * dbxread.c (symbuf_sections): Now a std::vector.
13758 (sect_idx): New global.
13759 (fill_symbuf): Update.
13760 (coffstab_build_psymtabs): Change type of stabsects parameter.
13761 Update.
13762 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13763 std::vector.
13764 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13765 (coff_locate_sections): Update.
13766 (coff_symfile_read): Remove cleanups. Update.
13767 (init_stringtab): Add storage parameter.
13768 (free_stringtab, free_stringtab_cleanup): Remove.
13769 (init_lineno): Add storage parameter.
13770 (free_linetab, free_linetab_cleanup): Remove.
13771
b7e60d85
PA
137722019-03-06 Pedro Alves <palves@redhat.com>
13773
13774 * linux-fork.c (fork_info::clobber_regs): Delete.
13775 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13776 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13777 comment. Adjust.
13778 (scoped_switch_fork_info::scoped_switch_fork_info)
13779 (checkpoint_command, linux_fork_context): Adjust
13780 fork_save_infrun_state calls.
13781
e52c971f
PA
137822019-03-06 Pedro Alves <palves@redhat.com>
13783
13784 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13785 (inf_has_multiple_threads): Return 'bool' and rewrite using
13786 inferior_info::threads().
13787
06974e6c
PA
137882019-03-06 Pedro Alves <palves@redhat.com>
13789
13790 * linux-fork.c: Include <list>.
13791 (fork_list): Now a std::list instance.
13792 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13793 (forks_exist_p, find_last_fork): Adjust.
13794 (new_fork): Delete.
13795 (one_fork_p): New.
13796 (add_fork): Adjust.
13797 (free_fork): Delete, folded into fork_info::~fork_info().
13798 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13799 Adjust.
13800 (init_fork_list): Delete.
13801 (linux_fork_killall, linux_fork_mourn_inferior)
13802 (linux_fork_detach, info_checkpoints_command): Adjust.
13803 (_initialize_linux_fork): No longer call init_fork_list.
13804
72f31aea
PA
138052019-03-06 Pedro Alves <palves@redhat.com>
13806
13807 * linux-fork.c (new_fork): New, split out of ...
13808 (add_fork): ... this. Return void. Move "first fork" special
13809 case from here, to ...
13810 (checkpoint_command): ... here.
13811 * linux-linux.h (add_fork): Return void.
13812
efbecbc1
AB
138132019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13814
13815 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13816
0841c79a
AB
138172019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13818 Chris January <chris.january@arm.com>
13819 David Lecomber <david.lecomber@arm.com>
13820
13821 * f-exp.y: New token, UNOP_INTRINSIC.
13822 (exp): New pattern using UNOP_INTRINSIC token.
13823 (f77_keywords): Add 'abs' keyword.
13824 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13825 (value_from_host_double): New function.
13826 (evaluate_subexp_f): Support UNOP_ABS.
13827
4a270568
AB
138282019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13829
13830 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13831 types.
13832
067630bd
AB
138332019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13834
13835 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13836 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13837 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13838
3be47f7a
AB
138392019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13840
13841 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13842
4d00f5d8
AB
138432019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13844 Chris January <chris.january@arm.com>
13845
13846 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13847 * f-exp.y: Define 'KIND' token.
13848 (exp): New pattern for KIND expressions.
13849 (ptype): Handle types with a kind extension.
13850 (direct_abs_decl): Extend to spot kind extensions.
13851 (f77_keywords): Add 'kind' to the list.
13852 (push_kind_type): New function.
13853 (convert_to_kind_type): New function.
13854 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13855 * parse.c (operator_length_standard): Likewise.
13856 * parser-defs.h (enum type_pieces): Add tp_kind.
13857 * std-operator.def: Add UNOP_KIND.
13858
e454224f
AB
138592019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13860
13861 * f-exp.y (f_parse): Set yydebug.
13862
9dad4a58
AB
138632019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13864
13865 * f-lang.c (evaluate_subexp_f): New function.
13866 (exp_descriptor_f): New global.
13867 (f_language_defn): Use exp_descriptor_f instead of
13868 exp_descriptor_standard.
13869
c8f91604
AB
138702019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13871
13872 * f-exp.y (struct token): Add comments.
13873 (dot_ops): Remove uppercase versions and the end marker.
13874 (f77_keywords): Likewise.
13875 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13876 entries in the dot_ops array are case insensitive, and use
13877 strncasecmp to compare strings. Also some whitespace cleanup in
13878 this area. Similar for the f77_keywords array, except entries in
13879 this list might be case sensitive.
13880
dd9f2c76
AB
138812019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13882
13883 * f-exp.y (struct f77_boolean_val): Add comments.
13884 (boolean_values): Remove uppercase versions, and end marker.
13885 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
13886 and use strncasecmp to achieve case insensitivity. Additionally,
13887 perform whitespace cleanup around this code.
13888
67a3048c
TT
138892019-03-06 Tom Tromey <tromey@adacore.com>
13890
13891 * remote-sim.c (gdbsim_target_open): Use result of
13892 gdb_argv::release.
13893
aa3cfbda
RB
138942019-03-06 Richard Bunt <richard.bunt@arm.com>
13895 Dirk Schubert <dirk.schubert@arm.com>
13896 Chris January <chris.january@arm.com>
13897
13898 * eval.c (evaluate_subexp_standard): Call Fortran argument
13899 wrapping logic.
13900 * f-lang.c (struct value): A value which can be passed into a
13901 Fortran function call.
13902 (fortran_argument_convert): Wrap Fortran arguments in a pointer
13903 where appropriate.
13904 (struct type): Value ready for a Fortran function call.
13905 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
13906 is needed.
13907 * f-lang.h (fortran_argument_convert): Declaration.
13908 (fortran_preserve_arg_pointer): Declaration.
13909 * infcall.c (value_arg_coerce): Call Fortran argument logic.
13910
ea38e5df
TT
139112019-03-05 Tom Tromey <tromey@adacore.com>
13912
13913 * python/py-prettyprint.c (print_string_repr): Remove #if.
13914 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
13915
06b5b831
TT
139162019-03-05 Tom Tromey <tromey@adacore.com>
13917
13918 * target.c (the_dummy_target): Move later. Change type to
13919 "dummy_target".
13920 (initialize_targets): Don't initialize the_dummy_target.
13921
edbd9e45
TT
139222019-03-05 Tom Tromey <tromey@adacore.com>
13923
13924 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
13925 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
13926
c119e040
TT
139272019-03-05 Tom Tromey <tromey@adacore.com>
13928
13929 * windows-nat.c (windows_nat_target::attach)
13930 (windows_nat_target::detach): Don't call gdb_flush.
13931 * valprint.c (generic_val_print, val_print, val_print_string):
13932 Don't call gdb_flush.
13933 * utils.c (defaulted_query): Don't call gdb_flush.
13934 * typeprint.c (print_type_scalar): Don't call gdb_flush.
13935 * target.c (target_announce_detach): Don't call gdb_flush.
13936 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
13937 * remote.c (extended_remote_target::attach): Don't call
13938 gdb_flush.
13939 * procfs.c (procfs_target::detach): Don't call gdb_flush.
13940 * printcmd.c (do_examine): Don't call gdb_flush.
13941 (info_display_command): Don't call gdb_flush.
13942 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
13943 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
13944 * memattr.c (info_mem_command): Don't call gdb_flush.
13945 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
13946 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
13947 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
13948 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
13949 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
13950 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
13951 (gnu_nat_target::detach): Don't call gdb_flush.
13952 * f-valprint.c (f_val_print): Don't call gdb_flush.
13953 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
13954 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
13955 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
13956 gdb_flush.
13957 * c-valprint.c (c_val_print): Don't call gdb_flush.
13958 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
13959
895dafa6
TT
139602019-03-05 Tom Tromey <tromey@adacore.com>
13961
13962 * varobj.c (update_dynamic_varobj_children): Update.
13963 (install_default_visualizer): Use reset, not release.
13964 * value.c (set_internalvar): Update.
13965 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
13966 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
13967 ATTRIBUTE_UNUSED_RESULT.
13968
88a774b9
TT
139692019-03-05 Tom Tromey <tromey@adacore.com>
13970
13971 * remote.c (class scoped_remote_fd) <release>: Add
13972 ATTRIBUTE_UNUSED_RESULT.
13973
4e4a8b93
TT
139742019-03-05 Tom Tromey <tromey@adacore.com>
13975
13976 * macroexp.c (struct macro_buffer) <release>: Add
13977 ATTRIBUTE_UNUSED_RESULT.
13978
083eef1f
TT
139792019-03-05 Tom Tromey <tromey@adacore.com>
13980
13981 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
13982 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
13983 ATTRIBUTE_UNUSED_RESULT.
13984
3cabd438
TT
139852019-03-05 Tom Tromey <tromey@adacore.com>
13986
13987 * common/scoped_fd.h (class scoped_fd) <release>: Add
13988 ATTRIBUTE_UNUSED_RESULT.
13989
41e3300a
TT
139902019-03-05 Tom Tromey <tromey@adacore.com>
13991
13992 * parser-defs.h (struct parser_state) <release>: Add
13993 ATTRIBUTE_UNUSED_RESULT.
13994
18cb7c9f
TT
139952019-03-05 Tom Tromey <tromey@adacore.com>
13996
13997 * utils.h (class gdb_argv) <release>: Add
13998 ATTRIBUTE_UNUSED_RESULT.
13999 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14000
41fa577f
EZ
140012019-03-02 Eli Zaretskii <eliz@gnu.org>
14002
a6a4b2c6
EZ
14003 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14004 for-loop range, to avoid compiler warnings.
14005
14006 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14007 avoid compiler warnings about unused variables.
14008
742a7df5
EZ
14009 * NEWS: Mention end of support for native debugging on MS-Windows
14010 before XP.
14011
41fa577f
EZ
14012 PR gdb/24292
14013 * common/netstuff.c:
14014 * gdbserver/gdbreplay.c
14015 * gdbserver/remote-utils.c:
14016 * ser-tcp.c:
14017 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14018 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14019 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14020 'getaddrinfo' and 'freeaddrinfo' were not available before
14021 Windows XP, and mingw.org's MinGW headers by default define
14022 _WIN32_WINNT to 0x500.
14023
827f438f
GB
140242019-03-01 Gary Benson <gbenson@redhat.com>
14025
14026 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14027
92137da0
RO
140282019-02-28 Brian Vandenberg <phantall@gmail.com>
14029 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14030
14031 PR gdb/8527
14032 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14033 set_sigint_trap, clear_sigint_trap.
14034
799efbe8
PW
140352019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14036
14037 * target.c (target_detach): Clear the regcache and the
14038 frame cache.
14039
8ed25214
PA
140402019-02-27 Pedro Alves <palves@redhat.com>
14041
14042 * utils.c (set_screen_size): When we cap the height/width sizes,
14043 tweak the corresponding command variable to show "unlimited":
14044
23031e31
SJ
140452019-02-27 Saagar Jha <saagar@saagarjha.com>
14046 Pedro Alves <palves@redhat.com>
14047
14048 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14049 before calling rl_set_screen_size.
14050
6c28e44a
TT
140512019-02-27 Tom Tromey <tromey@adacore.com>
14052
14053 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14054 define.
14055 * python/py-value.c: Remove Python 2.4 workaround.
14056 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14057 workaround.
14058 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14059 Python 2.4 workaround.
14060 * python/python-internal.h: Remove Python 2.4 comment.
14061 (Py_ssize_t): Don't define.
14062 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14063 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14064 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14065 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14066 * python/python.c (do_start_initialization): Remove Python 2.4
14067 workaround.
14068 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14069 (print_children): Remove Python 2.4 workaround.
14070 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14071 workaround.
14072 (CHARBUFFERPROC_NAME): Remove.
14073 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14074 Python 2.4 workaround.
14075
2c3fc25d 140762019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14077
2c3fc25d
KB
14078 * NEWS: Note minimum Python version.
14079
6ca62222
KB
140802019-02-27 Kevin Buettner <kevinb@redhat.com>
14081
14082 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14083 code from these functions. Remove corresponding ifdefs. Use
14084 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14085 Remove gotos and target of gotos.
14086 (infpy_search_memory): Likewise.
14087
f4bc7d2c
AB
140882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14089
14090 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14091 (hppa_gdbarch_init): Don't register deleted functions with
14092 gdbarch.
14093
9734a586
AB
140942019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14095
14096 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14097 (h8300_unwind_sp): Delete.
14098 (h8300_dummy_id): Delete.
14099 (h8300_gdbarch_init): Don't register deleted functions with
14100 gdbarch.
14101
68b867f3
AB
141022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14103
14104 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14105 (ft32_unwind_pc): Delete.
14106 (ft32_unwind_sp): Delete.
14107 (ft32_gdbarch_init): Don't register deleted functions with
14108 gdbarch.
14109
2fbe7ad0
AB
141102019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14111
14112 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14113 (frv_unwind_pc): Delete.
14114 (frv_unwind_sp): Delete.
14115 (frv_gdbarch_init): Don't register deleted functions with
14116 gdbarch.
14117
76055cbe
AB
141182019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14119
14120 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14121 (riscv_unwind_pc): Delete.
14122 (riscv_unwind_sp): Delete.
14123 (riscv_gdbarch_init): Don't register deleted functions with
14124 gdbarch.
14125
4133e5a1
AB
141262019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14127
14128 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14129 (csky_unwind_pc): Delete.
14130 (csky_unwind_sp): Delete.
14131 (csky_gdbarch_init): Don't register deleted functions with
14132 gdbarch.
14133
8010f576
AB
141342019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14135
14136 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14137 (cris_unwind_pc): Delete.
14138 (cris_unwind_sp): Delete.
14139 (cris_gdbarch_init): Don't register deleted functions with
14140 gdbarch.
14141
b56bf084
AB
141422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14143
14144 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14145 (bfin_unwind_pc): Delete.
14146 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14147
a19a650f
AB
141482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14149
14150 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14151 (arm_unwind_pc): Delete.
14152 (arm_unwind_sp): Delete.
14153 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14154
f8278c3c
AB
141552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14156
14157 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14158 (arc_unwind_pc): Delete.
14159 (arc_unwind_sp): Delete.
14160 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14161
480e46cf
AB
141622019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14163
14164 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14165 (alpha_unwind_pc): Delete.
14166 (alpha_gdbarch_init): Don't register deleted functions with
14167 gdbarch.
14168
7a995095
AB
141692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14170
14171 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14172 (aarch64_unwind_pc): Delete.
14173 (aarch64_unwind_sp): Delete.
14174 (aarch64_gdbarch_init): Don't register deleted functions with
14175 gdbarch.
14176
bf9a735e
AB
141772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14178
14179 * gdbtypes.c (type_align): Don't consider static members when
14180 computing structure alignment.
14181
5561fc30
AB
141822019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14183
14184 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14185 return 0 for other types.
14186 * arch-utils.c (default_type_align): Always return 0.
14187 * gdbarch.h: Regenerate.
14188 * gdbarch.sh (type_align): Extend comment.
14189 * gdbtypes.c (type_align): Add additional comments, always call
14190 gdbarch_type_align before applying the default rules.
14191 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14192 generic code will then apply a suitable default.
14193 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14194 types, return 0 for other types.
14195
9335e75a
JB
141962019-02-27 Joel Brobecker <brobecker@adacore.com>
14197
14198 * NEWS: Create a new section for the next release branch.
14199 Rename the section of the current branch, now that it has
14200 been cut.
14201
3d34d8de
JB
142022019-02-27 Joel Brobecker <brobecker@adacore.com>
14203
14204 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14205 * version.in: Bump version to 8.3.50.DATE-git.
14206
143420fb
SM
142072019-02-26 Simon Marchi <simon.marchi@efficios.com>
14208
14209 * aix-thread.c (ptid_cmp): Remove unused variable.
14210 (get_signaled_thread): Likewise.
14211 (store_regs_user_thread): Likewise.
14212 (store_regs_kernel_thread): Likewise.
14213 (fetch_regs_kernel_thread): Remove shadowed variable.
14214
172fb711
AB
142152019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14216
14217 * features/riscv/32bit-cpu.xml: Add register numbers.
14218 * features/riscv/32bit-fpu.c: Regenerate.
14219 * features/riscv/32bit-fpu.xml: Add register numbers.
14220 * features/riscv/64bit-cpu.xml: Add register numbers.
14221 * features/riscv/64bit-fpu.c: Regenerate.
14222 * features/riscv/64bit-fpu.xml: Add register numbers.
14223
26c89782
KB
142242019-02-26 Kevin Buettner <kevinb@redhat.com>
14225
af54ade9 14226 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14227 * python/py-value.c (convert_buffer_and_type_to_value): New
14228 function.
14229 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14230 Add support for handling an optional second argument. Call
14231 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14232 * python/python-internal.h (Py_buffer_deleter): New struct.
14233 (Py_buffer_up): New typedef.
14234
0f58c9e8
JB
142352019-02-25 John Baldwin <jhb@FreeBSD.org>
14236
14237 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14238 instead of releasing ownership.
14239
0a0f4c01
JR
142402019-02-25 Jordan Rupprecht <rupprecht@google.com>
14241
14242 * dwarf2read.c (open_and_init_dwp_file): Call
14243 elf_numsections instead of bfd_count_sections to initialize
14244 dwp_file->num_sections.
14245
cd5a152c
TT
142462019-02-25 Tom Tromey <tromey@adacore.com>
14247
14248 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14249
8a6a8513
SDJ
142502019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14251
14252 * gcore.in: Add '--readnever' option when invoking GDB.
14253
04dcda9c
SM
142542019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14255
14256 * MAINTAINERS: Update my email address.
14257
07bc701d
SM
142582019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14259
14260 * build-id.c (build_id_to_debug_bfd_1): New function.
14261 (build_id_to_debug_bfd): Look for separate debug file in
14262 sysroot.
14263
c6f4a5d0
AB
142642019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14265
14266 * gdbarch.sh: Update the copyright year range that is placed into
14267 generated files.
14268
9600246d
KS
142692019-02-22 Keith Seitz <keiths@redhat.com>
14270
14271 PR symtab/23853
14272 * linespec.c (create_sals_line_offset): Search for the default
14273 symtab's filename instead of its fullname.
14274
7557a514
AH
142752019-02-21 Alan Hayward <alan.hayward@arm.com>
14276
14277 * NEWS: Update style defaults.
14278
ee2bcb0c
AH
142792019-02-21 Alan Hayward <alan.hayward@arm.com>
14280
14281 * main.c (captured_main_1): Disable styling in batch mode.
14282
0c95f9ed
TT
142832019-02-20 Tom Tromey <tom@tromey.com>
14284
14285 * symtab.c (symtab_symbol_info): Fix typos.
14286
c763b894
TT
142872019-02-20 Tom Tromey <tromey@adacore.com>
14288
14289 * findcmd.c (_initialize_mem_search): Use upper case for
14290 metasyntactic variables.
14291
0ef8a082
AH
142922019-02-20 Alan Hayward <alan.hayward@arm.com>
14293
14294 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14295 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14296
6caa91b6
SM
142972019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14298
14299 * top.h (source_file_name): Change to std::string.
14300 * top.c (source_file_name): Likewise.
14301 (command_line_input): Adjust.
14302 * cli/cli-script.c (script_from_file): Adjust.
14303
98814c6c
TT
143042019-02-19 Tom Tromey <tromey@adacore.com>
14305
14306 * ravenscar-thread.c
14307 (ravenscar_thread_target::update_thread_list): Don't call
14308 ada_build_task_list.
14309 * ada-lang.h (ada_build_task_list): Don't declare.
14310 * ada-tasks.c (struct ada_tasks_inferior_data)
14311 <task_list_valid_p>: Now bool.
14312 (read_known_tasks, ada_task_list_changed)
14313 (ada_tasks_invalidate_inferior_data): Update.
14314 (read_known_tasks_array): Return bool.
14315 (read_known_tasks_list): Likewise.
14316 (read_known_tasks): Return void.
14317 (ada_build_task_list): Now static.
14318
70cd633e
AB
143192019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14320
14321 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14322 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14323
040b3e95
PW
143242019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14325
14326 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14327 variant for ada_tasks_pspace_data_handle and
14328 ada_tasks_inferior_data_handle.
14329 (ada_tasks_pspace_data_cleanup): New function.
14330 (ada_tasks_inferior_data_cleanup): New function.
14331
9409233b
TT
143322019-02-17 Tom Tromey <tom@tromey.com>
14333
14334 * macrotab.h (macro_source_fullname): Return a std::string.
14335 * macrotab.c (macro_include, check_for_redefinition)
14336 (macro_undef, macro_lookup_definition, foreach_macro)
14337 (foreach_macro_in_scope): Update.
14338 (macro_source_fullname): Return a std::string.
14339 * macrocmd.c (show_pp_source_pos): Update.
14340
6506371f
TT
143412019-02-17 Tom Tromey <tom@tromey.com>
14342
14343 * macrocmd.c (show_pp_source_pos): Style the file names.
14344
0c820d67
TT
143452019-02-17 Tom Tromey <tom@tromey.com>
14346
14347 PR tui/24197:
14348 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14349
a0087920
TT
143502019-02-17 Tom Tromey <tom@tromey.com>
14351
14352 * ada-lang.c (user_select_syms): Use filtered printing.
14353 * utils.c (wrap_style): New global.
14354 (desired_style): Remove.
14355 (emit_style_escape): Add stream parameter.
14356 (set_output_style, reset_terminal_style, prompt_for_continue):
14357 Update.
14358 (flush_wrap_buffer): Only flush gdb_stdout.
14359 (wrap_here): Set wrap_style.
14360 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14361 treat escape sequences as a character. Change when wrap buffer is
14362 flushed.
14363 (fputs_styled): Do not set the output style when the default is
14364 requested.
14365 * ui-style.h (struct ui_file_style) <is_default>: New method.
14366 * source.c (print_source_lines_base): Emit escape sequences in one
14367 piece.
14368
75ba10dc
JB
143692019-02-17 Joel Brobecker <brobecker@adacore.com>
14370
14371 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14372 integers and enumeration types.
14373
a2cd4f14
JB
143742019-02-17 Joel Brobecker <brobecker@adacore.com>
14375
14376 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14377 instead of lookup_symbol_in_language
14378 (do_exact_match): New function.
14379 (ada_get_symbol_name_matcher): Return do_exact_match when
14380 doing a verbatim match.
14381
485b851b
TT
143822019-02-15 Tom Tromey <tromey@adacore.com>
14383
14384 * ravenscar-thread.c (ravenscar_thread_target::resume)
14385 (ravenscar_thread_target::wait): Special case wildcard requests.
14386
0b790b1e
TT
143872019-02-15 Tom Tromey <tromey@adacore.com>
14388
14389 * ravenscar-thread.c (base_ptid): Remove.
14390 (struct ravenscar_thread_target) <close>: New method.
14391 <m_base_ptid>: New member.
14392 <update_inferior_ptid, active_task, task_is_currently_active,
14393 runtime_initialized>: Declare methods.
14394 <ravenscar_thread_target>: Add constructor.
14395 (ravenscar_thread_target::task_is_currently_active)
14396 (ravenscar_thread_target::update_inferior_ptid)
14397 (ravenscar_runtime_initialized): Rename. Now methods.
14398 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14399 (ravenscar_thread_target::update_thread_list): Update.
14400 (ravenscar_thread_target::active_task): Now method.
14401 (ravenscar_thread_target::store_registers)
14402 (ravenscar_thread_target::prepare_to_store)
14403 (ravenscar_thread_target::prepare_to_store)
14404 (ravenscar_thread_target::mourn_inferior): Update.
14405 (ravenscar_inferior_created): Use "new" to create target.
14406 (ravenscar_thread_target::get_ada_task_ptid): Update.
14407 (_initialize_ravenscar): Don't initialize base_ptid.
14408 (ravenscar_ops): Remove global.
14409
dea57a62
TT
144102019-02-15 Tom Tromey <tromey@adacore.com>
14411
14412 * target.h (push_target): Declare new overload.
14413 * target.c (push_target): New overload, taking an rvalue reference.
14414 * remote.c (remote_target::open_1): Use push_target overload.
14415 * corelow.c (core_target_open): Use push_target overload.
14416
989f3c58
TT
144172019-02-15 Tom Tromey <tromey@adacore.com>
14418
14419 * ravenscar-thread.c (is_ravenscar_task)
14420 (ravenscar_task_is_currently_active): Return bool.
14421 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14422 (_initialize_ravenscar): Remove "(void)".
14423 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14424 Return bool.
14425
6cbcc006
TT
144262019-02-15 Tom Tromey <tromey@adacore.com>
14427
14428 * ravenscar-thread.c (ravenscar_runtime_initializer)
14429 (has_ravenscar_runtime, get_running_thread_id)
14430 (ravenscar_thread_target::resume): Fix indentation.
14431
7657f14d
TT
144322019-02-15 Tom Tromey <tromey@adacore.com>
14433
14434 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14435 from ravenscar_arch_ops.
14436 (sparc_ravenscar_ops::fetch_registers)
14437 (sparc_ravenscar_ops::store_registers): Now methods.
14438 (sparc_ravenscar_prepare_to_store): Remove.
14439 (sparc_ravenscar_ops): Redefine.
14440 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14441 methods and destructor. Remove members.
14442 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14443 (ravenscar_thread_target::store_registers)
14444 (ravenscar_thread_target::prepare_to_store): Update.
14445 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14446 Remove.
14447 (struct ppc_ravenscar_powerpc_ops): Derive from
14448 ravenscar_arch_ops.
14449 (ppc_ravenscar_powerpc_ops::fetch_registers)
14450 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14451 (ppc_ravenscar_powerpc_ops): Redefine.
14452 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14453 (ppc_ravenscar_e500_ops::fetch_registers)
14454 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14455 (ppc_ravenscar_e500_ops): Redefine.
14456 * aarch64-ravenscar-thread.c
14457 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14458 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14459 (aarch64_ravenscar_fetch_registers)
14460 (aarch64_ravenscar_store_registers): Now methods.
14461 (aarch64_ravenscar_ops): Redefine.
14462
5b6ea500
TT
144632019-02-15 Tom Tromey <tromey@adacore.com>
14464
14465 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14466 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14467 (ravenscar_thread_target::stopped_by_watchpoint)
14468 (ravenscar_thread_target::stopped_data_address)
14469 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14470
e397fd39
TT
144712019-02-15 Tom Tromey <tromey@adacore.com>
14472
14473 * ravenscar-thread.c: Fix some typos.
14474
cc12f4a8
TT
144752019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14476 Tom Tromey <tromey@adacore.com>
14477
14478 * ada-lang.c (ada_exception_sal): Change addr_string to a
14479 std::string.
14480 (create_ada_exception_catchpoint): Update.
14481
5f486660
TT
144822019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14483 Tom Tromey <tromey@adacore.com>
14484
14485 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14486 (bp_location_ops): Remove.
14487 (base_breakpoint_allocate_location): Update.
14488 (free_bp_location): Update.
14489 * ada-lang.c (class ada_catchpoint_location)
14490 <ada_catchpoint_location>: Remove ops parameter.
14491 (ada_catchpoint_location_dtor): Remove.
14492 (ada_catchpoint_location_ops): Remove.
14493 (allocate_location_exception): Update.
14494 * breakpoint.h (struct bp_location_ops): Remove.
14495 (class bp_location) <bp_location>: Remove bp_location_ops
14496 parameter.
14497 <~bp_location>: Add destructor.
14498 <ops>: Remove.
14499
b671c7fb
TS
145002019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14501 Pedro Alves <palves@redhat.com>
14502
14503 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14504 'PATH_MAX'.
14505
8071c5ce
DM
145062019-02-14 David Michael <fedora.dm0@gmail.com>
14507 Samuel Thibault <samuel.thibault@gnu.org>
14508 Thomas Schwinge <thomas@codesourcery.com>
14509
14510 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14511 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14512
b1041ae0
TS
145132019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14514
924514e1
TS
14515 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14516 (check_empty): Use "const char *".
14517
c29ee8d4
TS
14518 * gnu-nat.c (gnu_nat_target::detach): Instead of
14519 'detach_inferior (pid)' call
14520 'detach_inferior (find_inferior_pid (pid))'.
14521
6c6ef69f
TS
14522 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14523 'nat/fork-inferior.o'.
14524 * gnu-nat.c: #include "nat/fork-inferior.h".
14525
2d0a338c
TS
14526 * gnu-nat.c (gnu_nat_target::detach): Instead of
14527 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14528 * gnu-nat.h: #include "inf-child.h".
14529 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14530 'i386_gnu_nat_target::fetch_registers'.
14531 (gnu_store_registers): Rename/move to
14532 'i386_gnu_nat_target::store_registers'.
14533
cabb5f06
TS
14534 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14535 * gnu-nat.h (mach_thread_info): New function.
14536 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14537
b1041ae0
TS
14538 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14539
2988d01e
KF
145402019-02-14 Frederic Konrad <konrad@adacore.com>
14541
14542 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14543
c559d709
JB
145442019-02-14 Joel Brobecker <brobecker@adacore.com>
14545
14546 * windows-nat.c (windows_add_thread): Add new parameter
14547 "main_thread_p" with default value set to false. Update
14548 function documentation as well as all callers.
14549 (windows_delete_thread): Likewise.
14550 (fake_create_process): Update call to windows_add_thread.
14551 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14552 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14553 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14554 call to windows_delete_thread.
14555
007024cc
SM
145562019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14557
14558 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14559
f62318e9
JB
145602019-02-12 John Baldwin <jhb@FreeBSD.org>
14561
14562 * symfile.c (find_separate_debug_file): Use canonical path of
14563 sysroot with child_path instead of gdb_sysroot if it is valid.
14564
cd4b7848
JB
145652019-02-12 John Baldwin <jhb@FreeBSD.org>
14566
14567 * symfile.c (find_separate_debug_file): Use child_path to
14568 determine if an object file is under a sysroot.
14569
efac4bfe
JB
145702019-02-12 John Baldwin <jhb@FreeBSD.org>
14571
14572 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14573 unittests/child-path-selftests.c.
14574 * common/pathstuff.c (child_path): New function.
14575 * common/pathstuff.h (child_path): New prototype.
14576 * unittests/child-path-selftests.c: New file.
14577
402d2bfe
JB
145782019-02-12 John Baldwin <jhb@FreeBSD.org>
14579
14580 * symfile.c (find_separate_debug_file): Look for separate debug
14581 files in debug directories under the sysroot.
14582
1ed9f74e
PW
145832019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14584
14585 * symtab.h (struct minimal_symbol data_p): New const method.
14586 (struct minimal_symbol text_p): Likewise.
14587 * symtab.c (output_source_filename): Use file name style
14588 to print file name.
14589 (print_symbol_info): Likewise.
14590 (print_msymbol_info): Use address style to print addresses.
14591 Use function name style to print executable text symbols.
14592 (expand_symtab_containing_pc): Use data_p.
14593 (find_pc_sect_compunit_symtab): Likewise.
14594
2636d81d
PW
145952019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14596
14597 * breakpoint.c (describe_other_breakpoints): Use address style
14598 to print addresses.
14599 (say_where): Likewise.
14600
ac8c53cc
PW
146012019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14602
14603 * ada-typeprint.c (print_func_type): Print function name
14604 style to print function name.
14605 * c-typeprint.c (c_print_type_1): Likewise.
14606
ea638c43
AH
146072019-02-11 Alan Hayward <alan.hayward@arm.com>
14608
14609 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14610 for execve.
14611
ab759ca8
PW
146122019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14613
14614 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14615 type_stack.
14616
aff29d1c
JB
146172019-02-10 Joel Brobecker <brobecker@adacore.com>
14618
14619 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14620 TYPE_CODE_REF types.
14621
617126bc
JW
146222019-02-08 Jim Wilson <jimw@sifive.com>
14623
14624 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14625 (riscv_linux_fregset): New.
14626 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14627
46e3ed7f
TT
146282019-02-07 Tom Tromey <tom@tromey.com>
14629
14630 * thread.c (thread_cancel_execution_command): Update.
14631 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14632 methods.
14633 (struct thread_fsm_ops): Remove.
14634 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14635 (thread_fsm_should_stop, thread_fsm_return_value)
14636 (thread_fsm_set_finished, thread_fsm_finished_p)
14637 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14638 Don't declare.
14639 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14640 * infrun.c (clear_proceed_status_thread)
14641 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14642 (print_stop_event): Update.
14643 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14644 Add constructor.
14645 (step_command_fsm_ops): Remove.
14646 (new_step_command_fsm): Remove.
14647 (step_1): Update.
14648 (step_command_fsm::should_stop): Rename from
14649 step_command_fsm_should_stop.
14650 (step_command_fsm::clean_up): Rename from
14651 step_command_fsm_clean_up.
14652 (step_command_fsm::do_async_reply_reason): Rename from
14653 step_command_fsm_async_reply_reason.
14654 (struct until_next_fsm): Inherit from thread_fsm. Add
14655 constructor.
14656 (until_next_fsm_ops): Remove.
14657 (new_until_next_fsm): Remove.
14658 (until_next_fsm::should_stop): Rename from
14659 until_next_fsm_should_stop.
14660 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14661 (until_next_fsm::do_async_reply_reason): Rename from
14662 until_next_fsm_async_reply_reason.
14663 (struct finish_command_fsm): Inherit from thread_fsm. Add
14664 constructor. Change type of breakpoint.
14665 (finish_command_fsm_ops): Remove.
14666 (new_finish_command_fsm): Remove.
14667 (finish_command_fsm::should_stop): Rename from
14668 finish_command_fsm_should_stop.
14669 (finish_command_fsm::clean_up): Rename from
14670 finish_command_fsm_clean_up.
14671 (finish_command_fsm::return_value): Rename from
14672 finish_command_fsm_return_value.
14673 (finish_command_fsm::do_async_reply_reason): Rename from
14674 finish_command_fsm_async_reply_reason.
14675 (finish_command): Update.
14676 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14677 Add constructor.
14678 (call_thread_fsm_ops): Remove.
14679 (call_thread_fsm::call_thread_fsm): Rename from
14680 new_call_thread_fsm.
14681 (call_thread_fsm::should_stop): Rename from
14682 call_thread_fsm_should_stop.
14683 (call_thread_fsm::should_notify_stop): Rename from
14684 call_thread_fsm_should_notify_stop.
14685 (run_inferior_call, call_function_by_hand_dummy): Update.
14686 * cli/cli-interp.c (should_print_stop_to_console): Update.
14687 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14688 Add constructor. Change type of location_breakpoint,
14689 caller_breakpoint.
14690 (until_break_fsm_ops): Remove.
14691 (new_until_break_fsm): Remove.
14692 (until_break_fsm::should_stop): Rename from
14693 until_break_fsm_should_stop.
14694 (until_break_fsm::clean_up): Rename from
14695 until_break_fsm_clean_up.
14696 (until_break_fsm::do_async_reply_reason): Rename from
14697 until_break_fsm_async_reply_reason.
14698 (until_break_command): Update.
14699 * thread-fsm.c: Remove.
14700 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14701
1a5c2598
TT
147022019-02-07 Tom Tromey <tom@tromey.com>
14703
14704 * yy-remap.h: Add include guard.
14705 * xtensa-tdep.h: Add include guard.
14706 * xcoffread.h: Rename include guard.
14707 * varobj-iter.h: Add include guard.
14708 * tui/tui.h: Rename include guard.
14709 * tui/tui-winsource.h: Rename include guard.
14710 * tui/tui-wingeneral.h: Rename include guard.
14711 * tui/tui-windata.h: Rename include guard.
14712 * tui/tui-win.h: Rename include guard.
14713 * tui/tui-stack.h: Rename include guard.
14714 * tui/tui-source.h: Rename include guard.
14715 * tui/tui-regs.h: Rename include guard.
14716 * tui/tui-out.h: Rename include guard.
14717 * tui/tui-layout.h: Rename include guard.
14718 * tui/tui-io.h: Rename include guard.
14719 * tui/tui-hooks.h: Rename include guard.
14720 * tui/tui-file.h: Rename include guard.
14721 * tui/tui-disasm.h: Rename include guard.
14722 * tui/tui-data.h: Rename include guard.
14723 * tui/tui-command.h: Rename include guard.
14724 * tic6x-tdep.h: Add include guard.
14725 * target/waitstatus.h: Rename include guard.
14726 * target/wait.h: Rename include guard.
14727 * target/target.h: Rename include guard.
14728 * target/resume.h: Rename include guard.
14729 * target-float.h: Rename include guard.
14730 * stabsread.h: Add include guard.
14731 * rs6000-tdep.h: Add include guard.
14732 * riscv-fbsd-tdep.h: Add include guard.
14733 * regformats/regdef.h: Rename include guard.
14734 * record.h: Rename include guard.
14735 * python/python.h: Rename include guard.
14736 * python/python-internal.h: Rename include guard.
14737 * python/py-stopevent.h: Rename include guard.
14738 * python/py-ref.h: Rename include guard.
14739 * python/py-record.h: Rename include guard.
14740 * python/py-record-full.h: Rename include guard.
14741 * python/py-record-btrace.h: Rename include guard.
14742 * python/py-instruction.h: Rename include guard.
14743 * python/py-events.h: Rename include guard.
14744 * python/py-event.h: Rename include guard.
14745 * procfs.h: Add include guard.
14746 * proc-utils.h: Add include guard.
14747 * p-lang.h: Add include guard.
14748 * or1k-tdep.h: Rename include guard.
14749 * observable.h: Rename include guard.
14750 * nto-tdep.h: Rename include guard.
14751 * nat/x86-linux.h: Rename include guard.
14752 * nat/x86-linux-dregs.h: Rename include guard.
14753 * nat/x86-gcc-cpuid.h: Add include guard.
14754 * nat/x86-dregs.h: Rename include guard.
14755 * nat/x86-cpuid.h: Rename include guard.
14756 * nat/ppc-linux.h: Rename include guard.
14757 * nat/mips-linux-watch.h: Rename include guard.
14758 * nat/linux-waitpid.h: Rename include guard.
14759 * nat/linux-ptrace.h: Rename include guard.
14760 * nat/linux-procfs.h: Rename include guard.
14761 * nat/linux-osdata.h: Rename include guard.
14762 * nat/linux-nat.h: Rename include guard.
14763 * nat/linux-namespaces.h: Rename include guard.
14764 * nat/linux-btrace.h: Rename include guard.
14765 * nat/glibc_thread_db.h: Rename include guard.
14766 * nat/gdb_thread_db.h: Rename include guard.
14767 * nat/gdb_ptrace.h: Rename include guard.
14768 * nat/fork-inferior.h: Rename include guard.
14769 * nat/amd64-linux-siginfo.h: Rename include guard.
14770 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14771 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14772 * nat/aarch64-linux.h: Rename include guard.
14773 * nat/aarch64-linux-hw-point.h: Rename include guard.
14774 * mn10300-tdep.h: Add include guard.
14775 * mips-linux-tdep.h: Add include guard.
14776 * mi/mi-parse.h: Rename include guard.
14777 * mi/mi-out.h: Rename include guard.
14778 * mi/mi-main.h: Rename include guard.
14779 * mi/mi-interp.h: Rename include guard.
14780 * mi/mi-getopt.h: Rename include guard.
14781 * mi/mi-console.h: Rename include guard.
14782 * mi/mi-common.h: Rename include guard.
14783 * mi/mi-cmds.h: Rename include guard.
14784 * mi/mi-cmd-break.h: Rename include guard.
14785 * m2-lang.h: Add include guard.
14786 * location.h: Rename include guard.
14787 * linux-record.h: Rename include guard.
14788 * linux-nat.h: Add include guard.
14789 * linux-fork.h: Add include guard.
14790 * i386-darwin-tdep.h: Rename include guard.
14791 * hppa-linux-offsets.h: Add include guard.
14792 * guile/guile.h: Rename include guard.
14793 * guile/guile-internal.h: Rename include guard.
14794 * gnu-nat.h: Rename include guard.
14795 * gdb-stabs.h: Rename include guard.
14796 * frv-tdep.h: Add include guard.
14797 * f-lang.h: Add include guard.
14798 * event-loop.h: Add include guard.
14799 * darwin-nat.h: Rename include guard.
14800 * cp-abi.h: Rename include guard.
14801 * config/sparc/nm-sol2.h: Rename include guard.
14802 * config/nm-nto.h: Rename include guard.
14803 * config/nm-linux.h: Add include guard.
14804 * config/i386/nm-i386gnu.h: Rename include guard.
14805 * config/djgpp/nl_types.h: Rename include guard.
14806 * config/djgpp/langinfo.h: Rename include guard.
14807 * compile/gcc-cp-plugin.h: Add include guard.
14808 * compile/gcc-c-plugin.h: Add include guard.
14809 * compile/compile.h: Rename include guard.
14810 * compile/compile-object-run.h: Rename include guard.
14811 * compile/compile-object-load.h: Rename include guard.
14812 * compile/compile-internal.h: Rename include guard.
14813 * compile/compile-cplus.h: Rename include guard.
14814 * compile/compile-c.h: Rename include guard.
14815 * common/xml-utils.h: Rename include guard.
14816 * common/x86-xstate.h: Rename include guard.
14817 * common/version.h: Rename include guard.
14818 * common/vec.h: Rename include guard.
14819 * common/tdesc.h: Rename include guard.
14820 * common/selftest.h: Rename include guard.
14821 * common/scoped_restore.h: Rename include guard.
14822 * common/scoped_mmap.h: Rename include guard.
14823 * common/scoped_fd.h: Rename include guard.
14824 * common/safe-iterator.h: Rename include guard.
14825 * common/run-time-clock.h: Rename include guard.
14826 * common/refcounted-object.h: Rename include guard.
14827 * common/queue.h: Rename include guard.
14828 * common/ptid.h: Rename include guard.
14829 * common/print-utils.h: Rename include guard.
14830 * common/preprocessor.h: Rename include guard.
14831 * common/pathstuff.h: Rename include guard.
14832 * common/observable.h: Rename include guard.
14833 * common/netstuff.h: Rename include guard.
14834 * common/job-control.h: Rename include guard.
14835 * common/host-defs.h: Rename include guard.
14836 * common/gdb_wait.h: Rename include guard.
14837 * common/gdb_vecs.h: Rename include guard.
14838 * common/gdb_unlinker.h: Rename include guard.
14839 * common/gdb_unique_ptr.h: Rename include guard.
14840 * common/gdb_tilde_expand.h: Rename include guard.
14841 * common/gdb_sys_time.h: Rename include guard.
14842 * common/gdb_string_view.h: Rename include guard.
14843 * common/gdb_splay_tree.h: Rename include guard.
14844 * common/gdb_setjmp.h: Rename include guard.
14845 * common/gdb_ref_ptr.h: Rename include guard.
14846 * common/gdb_optional.h: Rename include guard.
14847 * common/gdb_locale.h: Rename include guard.
14848 * common/gdb_assert.h: Rename include guard.
14849 * common/filtered-iterator.h: Rename include guard.
14850 * common/filestuff.h: Rename include guard.
14851 * common/fileio.h: Rename include guard.
14852 * common/environ.h: Rename include guard.
14853 * common/common-utils.h: Rename include guard.
14854 * common/common-types.h: Rename include guard.
14855 * common/common-regcache.h: Rename include guard.
14856 * common/common-inferior.h: Rename include guard.
14857 * common/common-gdbthread.h: Rename include guard.
14858 * common/common-exceptions.h: Rename include guard.
14859 * common/common-defs.h: Rename include guard.
14860 * common/common-debug.h: Rename include guard.
14861 * common/cleanups.h: Rename include guard.
14862 * common/buffer.h: Rename include guard.
14863 * common/btrace-common.h: Rename include guard.
14864 * common/break-common.h: Rename include guard.
14865 * cli/cli-utils.h: Rename include guard.
14866 * cli/cli-style.h: Rename include guard.
14867 * cli/cli-setshow.h: Rename include guard.
14868 * cli/cli-script.h: Rename include guard.
14869 * cli/cli-interp.h: Rename include guard.
14870 * cli/cli-decode.h: Rename include guard.
14871 * cli/cli-cmds.h: Rename include guard.
14872 * charset-list.h: Add include guard.
14873 * buildsym-legacy.h: Rename include guard.
14874 * bfin-tdep.h: Add include guard.
14875 * ax.h: Rename include guard.
14876 * arm-linux-tdep.h: Add include guard.
14877 * arm-fbsd-tdep.h: Add include guard.
14878 * arch/xtensa.h: Rename include guard.
14879 * arch/tic6x.h: Add include guard.
14880 * arch/i386.h: Add include guard.
14881 * arch/arm.h: Rename include guard.
14882 * arch/arm-linux.h: Rename include guard.
14883 * arch/arm-get-next-pcs.h: Rename include guard.
14884 * arch/amd64.h: Add include guard.
14885 * arch/aarch64-insn.h: Rename include guard.
14886 * arch-utils.h: Rename include guard.
14887 * annotate.h: Add include guard.
14888 * amd64-darwin-tdep.h: Rename include guard.
14889 * aarch64-linux-tdep.h: Add include guard.
14890 * aarch64-fbsd-tdep.h: Add include guard.
14891 * aarch32-linux-nat.h: Add include guard.
14892
ab9268d2
PW
148932019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14894
14895 * macrotab.c (macro_define_internal): New function that
14896 factorizes macro_define_object_internal and macro_define_function
14897 code.
14898 (macro_define_object_internal): Use macro_define_internal.
14899 (macro_define_function): Likewise.
14900
bb0da2b4
PW
149012019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14902
14903 * macrocmd.c (extract_identifier): Return
14904 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
14905 callers.
14906
424eb552
JB
149072019-02-06 John Baldwin <jhb@FreeBSD.org>
14908
14909 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
14910
1688cb29
TT
149112019-02-05 Tom Tromey <tom@tromey.com>
14912
14913 * target.c (target_stack::unpush): Move assertion earlier.
14914
b5eba2d8
TT
149152019-01-30 Tom Tromey <tom@tromey.com>
14916
14917 PR python/23615:
14918 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
14919 (gdbpy_parse_and_eval): Likewise.
14920 * python/python-internal.h (gdbpy_allow_threads): New class.
14921
7054e2ff
JB
149222019-01-28 John Baldwin <jhb@FreeBSD.org>
14923
14924 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
14925 (aarch64_fbsd_fpregmap): Move earlier.
14926 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
14927 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14928 instead of individual calls to trad_frame_set_reg_addr.
14929 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
14930 earlier.
14931 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
14932 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
14933 instead of individual calls to trad_frame_set_reg_addr.
14934
36c25ffa
AH
149352019-01-28 Alan Hayward <alan.hayward@arm.com>
14936
14937 * CONTRIBUTE: Replace contribution list with wiki link.
14938
a0707f3c
TT
149392019-01-25 Tom Tromey <tom@tromey.com>
14940
14941 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
14942
0747795c
TT
149432019-01-25 Tom Tromey <tom@tromey.com>
14944
14945 * xtensa-linux-nat.c: Fix common/ includes.
14946 * xml-support.h: Fix common/ includes.
14947 * xml-support.c: Fix common/ includes.
14948 * x86-linux-nat.c: Fix common/ includes.
14949 * windows-nat.c: Fix common/ includes.
14950 * varobj.h: Fix common/ includes.
14951 * varobj.c: Fix common/ includes.
14952 * value.c: Fix common/ includes.
14953 * valops.c: Fix common/ includes.
14954 * utils.c: Fix common/ includes.
14955 * unittests/xml-utils-selftests.c: Fix common/ includes.
14956 * unittests/utils-selftests.c: Fix common/ includes.
14957 * unittests/unpack-selftests.c: Fix common/ includes.
14958 * unittests/tracepoint-selftests.c: Fix common/ includes.
14959 * unittests/style-selftests.c: Fix common/ includes.
14960 * unittests/string_view-selftests.c: Fix common/ includes.
14961 * unittests/scoped_restore-selftests.c: Fix common/ includes.
14962 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
14963 * unittests/scoped_fd-selftests.c: Fix common/ includes.
14964 * unittests/rsp-low-selftests.c: Fix common/ includes.
14965 * unittests/parse-connection-spec-selftests.c: Fix common/
14966 includes.
14967 * unittests/optional-selftests.c: Fix common/ includes.
14968 * unittests/offset-type-selftests.c: Fix common/ includes.
14969 * unittests/observable-selftests.c: Fix common/ includes.
14970 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
14971 * unittests/memrange-selftests.c: Fix common/ includes.
14972 * unittests/memory-map-selftests.c: Fix common/ includes.
14973 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
14974 * unittests/function-view-selftests.c: Fix common/ includes.
14975 * unittests/environ-selftests.c: Fix common/ includes.
14976 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
14977 * unittests/common-utils-selftests.c: Fix common/ includes.
14978 * unittests/cli-utils-selftests.c: Fix common/ includes.
14979 * unittests/array-view-selftests.c: Fix common/ includes.
14980 * ui-file.c: Fix common/ includes.
14981 * tui/tui-io.c: Fix common/ includes.
14982 * tracepoint.h: Fix common/ includes.
14983 * tracepoint.c: Fix common/ includes.
14984 * tracefile-tfile.c: Fix common/ includes.
14985 * top.h: Fix common/ includes.
14986 * top.c: Fix common/ includes.
14987 * thread.c: Fix common/ includes.
14988 * target/waitstatus.h: Fix common/ includes.
14989 * target/waitstatus.c: Fix common/ includes.
14990 * target.h: Fix common/ includes.
14991 * target.c: Fix common/ includes.
14992 * target-memory.c: Fix common/ includes.
14993 * target-descriptions.c: Fix common/ includes.
14994 * symtab.h: Fix common/ includes.
14995 * symfile.c: Fix common/ includes.
14996 * stap-probe.c: Fix common/ includes.
14997 * spu-linux-nat.c: Fix common/ includes.
14998 * sparc-nat.c: Fix common/ includes.
14999 * source.c: Fix common/ includes.
15000 * solib.c: Fix common/ includes.
15001 * solib-target.c: Fix common/ includes.
15002 * ser-unix.c: Fix common/ includes.
15003 * ser-tcp.c: Fix common/ includes.
15004 * ser-pipe.c: Fix common/ includes.
15005 * ser-base.c: Fix common/ includes.
15006 * selftest-arch.c: Fix common/ includes.
15007 * s12z-tdep.c: Fix common/ includes.
15008 * rust-exp.y: Fix common/ includes.
15009 * rs6000-aix-tdep.c: Fix common/ includes.
15010 * riscv-tdep.c: Fix common/ includes.
15011 * remote.c: Fix common/ includes.
15012 * remote-notif.h: Fix common/ includes.
15013 * remote-fileio.h: Fix common/ includes.
15014 * remote-fileio.c: Fix common/ includes.
15015 * regcache.h: Fix common/ includes.
15016 * regcache.c: Fix common/ includes.
15017 * record-btrace.c: Fix common/ includes.
15018 * python/python.c: Fix common/ includes.
15019 * python/py-type.c: Fix common/ includes.
15020 * python/py-inferior.c: Fix common/ includes.
15021 * progspace.h: Fix common/ includes.
15022 * producer.c: Fix common/ includes.
15023 * procfs.c: Fix common/ includes.
15024 * proc-api.c: Fix common/ includes.
15025 * printcmd.c: Fix common/ includes.
15026 * ppc-linux-nat.c: Fix common/ includes.
15027 * parser-defs.h: Fix common/ includes.
15028 * osdata.c: Fix common/ includes.
15029 * obsd-nat.c: Fix common/ includes.
15030 * nat/x86-linux.c: Fix common/ includes.
15031 * nat/x86-linux-dregs.c: Fix common/ includes.
15032 * nat/x86-dregs.h: Fix common/ includes.
15033 * nat/x86-dregs.c: Fix common/ includes.
15034 * nat/ppc-linux.c: Fix common/ includes.
15035 * nat/mips-linux-watch.h: Fix common/ includes.
15036 * nat/mips-linux-watch.c: Fix common/ includes.
15037 * nat/linux-waitpid.c: Fix common/ includes.
15038 * nat/linux-ptrace.h: Fix common/ includes.
15039 * nat/linux-ptrace.c: Fix common/ includes.
15040 * nat/linux-procfs.c: Fix common/ includes.
15041 * nat/linux-personality.c: Fix common/ includes.
15042 * nat/linux-osdata.c: Fix common/ includes.
15043 * nat/linux-namespaces.c: Fix common/ includes.
15044 * nat/linux-btrace.h: Fix common/ includes.
15045 * nat/linux-btrace.c: Fix common/ includes.
15046 * nat/fork-inferior.c: Fix common/ includes.
15047 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15048 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15049 * nat/aarch64-linux.c: Fix common/ includes.
15050 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15051 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15052 * namespace.h: Fix common/ includes.
15053 * mips-linux-tdep.c: Fix common/ includes.
15054 * minsyms.c: Fix common/ includes.
15055 * mi/mi-parse.h: Fix common/ includes.
15056 * mi/mi-main.c: Fix common/ includes.
15057 * mi/mi-cmd-env.c: Fix common/ includes.
15058 * memrange.h: Fix common/ includes.
15059 * memattr.c: Fix common/ includes.
15060 * maint.h: Fix common/ includes.
15061 * maint.c: Fix common/ includes.
15062 * main.c: Fix common/ includes.
15063 * machoread.c: Fix common/ includes.
15064 * location.c: Fix common/ includes.
15065 * linux-thread-db.c: Fix common/ includes.
15066 * linux-nat.c: Fix common/ includes.
15067 * linux-fork.c: Fix common/ includes.
15068 * inline-frame.c: Fix common/ includes.
15069 * infrun.c: Fix common/ includes.
15070 * inflow.c: Fix common/ includes.
15071 * inferior.h: Fix common/ includes.
15072 * inferior.c: Fix common/ includes.
15073 * infcmd.c: Fix common/ includes.
15074 * inf-ptrace.c: Fix common/ includes.
15075 * inf-child.c: Fix common/ includes.
15076 * ia64-linux-nat.c: Fix common/ includes.
15077 * i387-tdep.c: Fix common/ includes.
15078 * i386-tdep.c: Fix common/ includes.
15079 * i386-linux-tdep.c: Fix common/ includes.
15080 * i386-linux-nat.c: Fix common/ includes.
15081 * i386-go32-tdep.c: Fix common/ includes.
15082 * i386-fbsd-tdep.c: Fix common/ includes.
15083 * i386-fbsd-nat.c: Fix common/ includes.
15084 * guile/scm-type.c: Fix common/ includes.
15085 * guile/guile.c: Fix common/ includes.
15086 * go32-nat.c: Fix common/ includes.
15087 * gnu-nat.c: Fix common/ includes.
15088 * gdbthread.h: Fix common/ includes.
15089 * gdbarch-selftests.c: Fix common/ includes.
15090 * gdb_usleep.c: Fix common/ includes.
15091 * gdb_select.h: Fix common/ includes.
15092 * gdb_bfd.c: Fix common/ includes.
15093 * gcore.c: Fix common/ includes.
15094 * fork-child.c: Fix common/ includes.
15095 * findvar.c: Fix common/ includes.
15096 * fbsd-nat.c: Fix common/ includes.
15097 * event-top.c: Fix common/ includes.
15098 * event-loop.c: Fix common/ includes.
15099 * dwarf2read.c: Fix common/ includes.
15100 * dwarf2loc.c: Fix common/ includes.
15101 * dwarf2-frame.c: Fix common/ includes.
15102 * dwarf-index-cache.c: Fix common/ includes.
15103 * dtrace-probe.c: Fix common/ includes.
15104 * disasm-selftests.c: Fix common/ includes.
15105 * defs.h: Fix common/ includes.
15106 * csky-tdep.c: Fix common/ includes.
15107 * cp-valprint.c: Fix common/ includes.
15108 * cp-support.h: Fix common/ includes.
15109 * cp-support.c: Fix common/ includes.
15110 * corelow.c: Fix common/ includes.
15111 * completer.h: Fix common/ includes.
15112 * completer.c: Fix common/ includes.
15113 * compile/compile.c: Fix common/ includes.
15114 * compile/compile-loc2c.c: Fix common/ includes.
15115 * compile/compile-cplus-types.c: Fix common/ includes.
15116 * compile/compile-cplus-symbols.c: Fix common/ includes.
15117 * command.h: Fix common/ includes.
15118 * cli/cli-dump.c: Fix common/ includes.
15119 * cli/cli-cmds.c: Fix common/ includes.
15120 * charset.c: Fix common/ includes.
15121 * build-id.c: Fix common/ includes.
15122 * btrace.h: Fix common/ includes.
15123 * btrace.c: Fix common/ includes.
15124 * breakpoint.h: Fix common/ includes.
15125 * breakpoint.c: Fix common/ includes.
15126 * ax.h:
15127 (enum agent_op): Fix common/ includes.
15128 * ax-general.c (struct aop_map): Fix common/ includes.
15129 * ax-gdb.c: Fix common/ includes.
15130 * auxv.c: Fix common/ includes.
15131 * auto-load.c: Fix common/ includes.
15132 * arm-tdep.c: Fix common/ includes.
15133 * arch/riscv.c: Fix common/ includes.
15134 * arch/ppc-linux-common.c: Fix common/ includes.
15135 * arch/i386.c: Fix common/ includes.
15136 * arch/arm.c: Fix common/ includes.
15137 * arch/arm-linux.c: Fix common/ includes.
15138 * arch/arm-get-next-pcs.c: Fix common/ includes.
15139 * arch/amd64.c: Fix common/ includes.
15140 * arch/aarch64.c: Fix common/ includes.
15141 * arch/aarch64-insn.c: Fix common/ includes.
15142 * arch-utils.c: Fix common/ includes.
15143 * amd64-windows-tdep.c: Fix common/ includes.
15144 * amd64-tdep.c: Fix common/ includes.
15145 * amd64-sol2-tdep.c: Fix common/ includes.
15146 * amd64-obsd-tdep.c: Fix common/ includes.
15147 * amd64-nbsd-tdep.c: Fix common/ includes.
15148 * amd64-linux-tdep.c: Fix common/ includes.
15149 * amd64-linux-nat.c: Fix common/ includes.
15150 * amd64-fbsd-tdep.c: Fix common/ includes.
15151 * amd64-fbsd-nat.c: Fix common/ includes.
15152 * amd64-dicos-tdep.c: Fix common/ includes.
15153 * amd64-darwin-tdep.c: Fix common/ includes.
15154 * agent.c: Fix common/ includes.
15155 * ada-lang.h: Fix common/ includes.
15156 * ada-lang.c: Fix common/ includes.
15157 * aarch64-tdep.c: Fix common/ includes.
15158
2f5c153e
TT
151592019-01-25 Tom Tromey <tom@tromey.com>
15160
15161 * common/create-version.sh: Use common/version.h.
15162
adc6a863
PA
151632019-01-24 Pedro Alves <palves@redhat.com>
15164
15165 * infrun.c (signal_stop, signal_print, signal_program)
15166 (signal_catch, signal_pass): Now arrays instead of pointers.
15167 (update_signals_program_target, do_target_resume)
15168 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15169 * linux-nat.c (linux_nat_target::pass_signals)
15170 (linux_nat_target::create_inferior, linux_nat_target::attach):
15171 Adjust.
15172 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15173 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15174 * procfs.c (procfs_target::pass_signals): Adjust.
15175 * record-full.c (record_full_target::resume): Adjust.
15176 * remote.c (remote_target::pass_signals)
15177 (remote_target::program_signals): Adjust.
15178 * target-debug.h (target_debug_print_signals): Now takes a
15179 gdb::array_view as parameter. Adjust.
15180 * target.h (target_ops) <pass_signals, program_signals>: Replace
15181 pointer and length parameters with gdb::array_view.
15182 (target_pass_signals, target_program_signals): Likewise.
15183 * target-delegates.c: Regenerate.
15184
3046d67a
PA
151852019-01-24 Pedro Alves <palves@redhat.com>
15186
15187 * common/forward-scope-exit.h
15188 (forward_scope_exit::forward_scope_exit): Pass arguments to
15189 m_bind_function directly, instead of creating a std::bind and
15190 copying that.
15191
353229bf
AH
151922019-01-24 Alan Hayward <alan.hayward@arm.com>
15193
15194 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15195 for static members.
15196 (pass_in_v_vfp_candidate): Likewise.
15197
311dc83a
TT
151982019-01-23 Tom Tromey <tom@tromey.com>
15199 Pedro Alves <palves@redhat.com>
15200
15201 * regcache.c (class regcache_invalidator): Remove.
15202 (regcache::raw_write): Use make_scope_exit.
15203
296bd123
TT
152042019-01-23 Tom Tromey <tom@tromey.com>
15205
15206 * ui-out.h (class ui_out_emit_type): Update comment.
15207
979a0d13
TT
152082019-01-23 Tom Tromey <tom@tromey.com>
15209
15210 * infrun.c (fetch_inferior_event): Update comment.
15211
d238133d
TT
152122019-01-23 Tom Tromey <tom@tromey.com>
15213 Pedro Alves <palves@redhat.com>
15214
15215 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15216 parameter.
15217 (fetch_inferior_event): Use SCOPE_EXIT.
15218
15219
9885e6bb
TT
152202019-01-23 Tom Tromey <tom@tromey.com>
15221 Pedro Alves <palves@redhat.com>
15222
15223 * infrun.c (disable_thread_events): Delete.
15224 (stop_all_threads): Use SCOPE_EXIT.
15225
286526c1
TT
152262019-01-23 Tom Tromey <tom@tromey.com>
15227 Pedro Alves <palves@redhat.com>
15228
15229 * symfile.c: Include forward-scope-exit.h.
15230 (clear_symtab_users_cleanup): Replace forward declaration with
15231 a FORWARD_SCOPE_EXIT.
15232 (syms_from_objfile_1): Use the forward_scope_exit and
15233 gdb::optional instead of cleanup_function.
15234 (reread_symbols): Use the forward_scope_exit instead of
15235 cleanup_function.
15236 (clear_symtab_users_cleanup): Remove function.
15237
1db93f14
TT
152382019-01-23 Tom Tromey <tom@tromey.com>
15239 Pedro Alves <palves@redhat.com>
15240
15241 * linux-nat.c: Include scope-exit.h.
15242 (cleanup_target_stop): Remove.
15243 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15244 SCOPE_EXIT.
15245
2cc83d1e
TT
152462019-01-23 Tom Tromey <tom@tromey.com>
15247 Pedro Alves <palves@redhat.com>
15248
15249 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15250 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15251
694c6bf5
TT
152522019-01-23 Tom Tromey <tom@tromey.com>
15253 Andrew Burgess <andrew.burgess@embecosm.com>
15254 Pedro Alves <palves@redhat.com>
15255
15256 * infrun.c (fetch_inferior_event): Use scope_exit.
15257 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15258 * top.c (execute_command): Use scope_exit.
15259 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15260 * utils.c (do_bpstat_clear_actions_cleanup)
15261 (make_bpstat_clear_actions_cleanup): Remove.
15262
4c41382a
TT
152632019-01-23 Tom Tromey <tom@tromey.com>
15264 Pedro Alves <palves@redhat.com>
15265
15266 * infrun.c: Include "common/scope-exit.h"
15267 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15268 (wait_for_inferior): Use SCOPE_EXIT.
15269 (fetch_inferior_event): Use scope_exit.
15270
89f8fb50
TT
152712019-01-23 Tom Tromey <tom@tromey.com>
15272 Pedro Alves <palves@redhat.com>
15273
15274 * breakpoint.c (create_breakpoint): Remove cleanup.
15275
5419bdae
TT
152762019-01-23 Tom Tromey <tom@tromey.com>
15277 Andrew Burgess <andrew.burgess@embecosm.com>
15278 Pedro Alves <palves@redhat.com>
15279
e587ef42
PA
152802019-01-23 Pedro Alves <palves@redhat.com>
15281
15282 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15283
77f0e74c
PA
152842019-01-23 Pedro Alves <palves@redhat.com>
15285 Andrew Burgess <andrew.burgess@embecosm.com>
15286
15287 * gdbthread.h: Include "common/forward-scope-exit.h".
15288 (scoped_finish_thread_state): Redefine custom class in terms of
15289 forward_scope_exit.
15290
5b9b3e53
PA
152912019-01-23 Pedro Alves <palves@redhat.com>
15292 Andrew Burgess <andrew.burgess@embecosm.com>
15293
15294 * common/forward-scope-exit.h: New file.
15295
54b65c9b
PA
152962019-01-23 Pedro Alves <palves@redhat.com>
15297 Andrew Burgess <andrew.burgess@embecosm.com>
15298 Tom Tromey <tom@tromey.com>
15299
15300 * common/scope-exit.h: New file.
15301
cf08fb29
PA
153022019-01-23 Pedro Alves <palves@redhat.com>
15303
15304 * common/preprocessor.h (ESC): Rename to ...
15305 (ESC_PARENS): ... this.
15306 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15307 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15308
ae73e2e2
TT
153092019-01-23 Tom Tromey <tom@tromey.com>
15310
15311 * language.h (class scoped_switch_to_sym_language_if_auto):
15312 Initialize m_lang in both cases.
15313
6594e122
AH
153142019-01-23 Alan Hayward <alan.hayward@arm.com>
15315
15316 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15317 with XCNEW.
15318
a7c9855d
TT
153192019-01-22 Tom Tromey <tom@tromey.com>
15320
15321 * corelow.c: Do not include sys/file.h.
15322
93cc1d53
TT
153232019-01-22 Tom Tromey <tom@tromey.com>
15324
15325 * tui/tui-wingeneral.h: Include gdb_curses.h.
15326
38561778
TT
153272019-01-22 Tom Tromey <tom@tromey.com>
15328
15329 * source-cache.h (class source_cache) <get_source_lines,
15330 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15331
37b3ab5b
TT
153322019-01-22 Tom Tromey <tom@tromey.com>
15333
15334 * remote-fileio.h (struct remote_target): Declare.
15335
3fabc016
TT
153362019-01-22 Tom Tromey <tom@tromey.com>
15337
15338 * python/py-arch.c: Do not include py-ref.h.
15339 * python/py-bpevent.c: Do not include py-ref.h.
15340 * python/py-cmd.c: Do not include py-ref.h.
15341 * python/py-continueevent.c: Do not include py-ref.h.
15342 * python/py-event.h: Do not include py-ref.h.
15343 * python/py-evtregistry.c: Do not include py-ref.h.
15344 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15345 * python/py-frame.c: Do not include py-ref.h.
15346 * python/py-framefilter.c: Do not include py-ref.h.
15347 * python/py-function.c: Do not include py-ref.h.
15348 * python/py-infevents.c: Do not include py-ref.h.
15349 * python/py-linetable.c: Do not include py-ref.h.
15350 * python/py-objfile.c: Do not include py-ref.h.
15351 * python/py-param.c: Do not include py-ref.h.
15352 * python/py-prettyprint.c: Do not include py-ref.h.
15353 * python/py-progspace.c: Do not include py-ref.h.
15354 * python/py-symbol.c: Do not include py-ref.h.
15355 * python/py-symtab.c: Do not include py-ref.h.
15356 * python/py-type.c: Do not include py-ref.h.
15357 * python/py-unwind.c: Do not include py-ref.h.
15358 * python/py-utils.c: Do not include py-ref.h.
15359 * python/py-value.c: Do not include py-ref.h.
15360 * python/py-varobj.c: Do not include py-ref.h.
15361 * python/py-xmethods.c: Do not include py-ref.h.
15362 * python/python.c: Do not include py-ref.h.
15363 * varobj.c: Do not include py-ref.h.
15364
6b4d7774
TT
153652019-01-22 Tom Tromey <tom@tromey.com>
15366
15367 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15368 keyword for bcache.
15369
7af7e9b5
TT
153702019-01-22 Tom Tromey <tom@tromey.com>
15371
15372 * compile/compile-cplus-types.c: Remove a comment by #include.
15373
951d1049
TT
153742019-01-22 Tom Tromey <tom@tromey.com>
15375
15376 * compile/gcc-c-plugin.h: Include compile-internal.h.
15377
d65d5705
TT
153782019-01-22 Tom Tromey <tom@tromey.com>
15379
15380 * stabsread.c (EXTERN): Do not define.
15381 (symnum, next_symbol_text_func, processing_gcc_compilation)
15382 (within_function, global_sym_chain, global_stabs)
15383 (previous_stab_code, this_object_header_files)
15384 (n_this_object_header_files)
15385 (n_allocated_this_object_header_files): Define.
15386 * stabsread.h (EXTERN): Never define. Use "extern".
15387
b6fb1ee5
PW
153882019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15389
15390 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15391 history_value.
15392
be6d4f74
TT
153932019-01-21 Tom Tromey <tom@tromey.com>
15394
15395 * ui-out.c: Fix includes.
15396 * tui/tui-source.c: Fix includes.
15397 * target.c: Fix includes.
15398 * remote.c: Fix includes.
15399 * regcache.c: Fix includes.
15400 * python/py-block.c: Fix includes.
15401 * printcmd.c: Fix includes.
15402 * or1k-tdep.c: Fix includes.
15403 * mi/mi-main.c: Fix includes.
15404 * m32r-tdep.c: Fix includes.
15405 * csky-tdep.c: Fix includes.
15406 * compile/compile-cplus-types.c: Fix includes.
15407 * cli/cli-interp.c: Fix includes.
15408
73021deb
AH
154092019-01-21 Alan Hayward <alan.hayward@arm.com>
15410
15411 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15412 for padding.
15413
7932255d
TT
154142019-01-16 Tom Tromey <tom@tromey.com>
15415
15416 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15417 earlier.
15418 (struct objfile) <msymbols_range>: Move from top level.
15419 <msymbols>: New method.
15420 (class objfile_msymbols): Remove.
15421 * symtab.c (default_collect_symbol_completion_matches_break_on):
15422 Update.
15423 * symmisc.c (dump_msymbols): Update.
15424 * stabsread.c (scan_file_globals): Update.
15425 * objc-lang.c (info_selectors_command, info_classes_command)
15426 (find_methods): Update.
15427 * minsyms.c (find_solib_trampoline_target): Update.
15428 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15429 * coffread.c (coff_symfile_read): Update.
15430 * ada-lang.c (ada_lookup_simple_minsym)
15431 (ada_collect_symbol_completion_matches): Update.
15432
604b1bfb
TT
154332019-01-16 Tom Tromey <tom@tromey.com>
15434
15435 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15436 type. Remove no-argument constructor.
15437 <iterator::operator++>: Simplify.
15438 <begin>: Update.
15439 <end>: Use minimal_symbol_count.
15440
f252c6d5
TT
154412019-01-16 Tom Tromey <tom@tromey.com>
15442
15443 * objfiles.h (struct objfile) <psymtabs>: New method.
15444 (class objfile_psymtabs): Remove.
15445 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15446 typedef.
15447 <range>: New method.
15448 (require_partial_symbols): Change return type.
15449 * psymtab.c (require_partial_symbols)
15450 (psym_expand_symtabs_matching): Update.
15451 * mdebugread.c (parse_partial_symbols): Update.
15452 * dbxread.c (dbx_end_psymtab): Update.
15453
b669c953
TT
154542019-01-15 Tom Tromey <tom@tromey.com>
15455
15456 * symtab.c (lookup_objfile_from_block)
15457 (lookup_symbol_in_objfile_symtabs)
15458 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15459 (find_line_symtab, info_sources_command)
15460 (default_collect_symbol_completion_matches_break_on)
15461 (make_source_files_completion_list): Update.
15462 * symmisc.c (print_objfile_statistics, dump_objfile)
15463 (maintenance_print_symbols, maintenance_info_symtabs)
15464 (maintenance_check_symtabs, maintenance_info_line_tables):
15465 Update.
15466 * source.c (select_source_symtab)
15467 (forget_cached_source_info_for_objfile): Update.
15468 * objfiles.h (class objfile_compunits): Remove.
15469 (struct objfile) <compunits_range>: New typedef.
15470 (compunits): New method.
15471 * objfiles.c (objfile_relocate1): Update.
15472 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15473 * maint.c (count_symtabs_and_blocks): Update.
15474 * linespec.c (iterate_over_all_matching_symtabs): Update.
15475 * cp-support.c (add_symbol_overload_list_qualified): Update.
15476 * coffread.c (coff_symtab_read): Update.
15477 * ada-lang.c (add_nonlocal_symbols)
15478 (ada_collect_symbol_completion_matches)
15479 (ada_add_global_exceptions): Update.
15480
7e955d83
TT
154812019-01-15 Tom Tromey <tom@tromey.com>
15482
15483 * progspace.h (program_space) <objfiles_safe_range>: New
15484 typedef.
15485 <objfiles_safe>: New method.
15486 * objfiles.h (class all_objfiles_safe): Remove.
15487 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15488 * jit.c (jit_inferior_exit_hook): Update.
15489
2030c079
TT
154902019-01-17 Tom Tromey <tom@tromey.com>
15491
15492 * progspace.h (program_space) <objfiles_range>: New typedef.
15493 <objfiles>: New method.
15494 <objfiles_head>: Rename from objfiles.
15495 (object_files): Update.
15496 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15497 * guile/scm-pretty-print.c
15498 (ppscm_find_pretty_printer_from_objfiles): Update.
15499 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15500 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15501 Update.
15502 * python/py-progspace.c (pspy_get_objfiles): Update.
15503 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15504 Update.
15505 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15506 (objfpy_lookup_objfile_by_build_id): Update.
15507 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15508 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15509 Update.
15510 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15511 (expand_symtab_containing_pc, lookup_objfile_from_block)
15512 (lookup_static_symbol, basic_lookup_transparent_type)
15513 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15514 (find_line_symtab, info_sources_command)
15515 (default_collect_symbol_completion_matches_break_on)
15516 (make_source_files_completion_list, find_main_name): Update.
15517 * symmisc.c (print_symbol_bcache_statistics)
15518 (print_objfile_statistics, maintenance_print_symbols)
15519 (maintenance_print_msymbols, maintenance_print_objfiles)
15520 (maintenance_info_symtabs, maintenance_check_symtabs)
15521 (maintenance_expand_symtabs, maintenance_info_line_tables):
15522 Update.
15523 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15524 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15525 (map_overlay_command, unmap_overlay_command)
15526 (simple_overlay_update, expand_symtabs_matching)
15527 (map_symbol_filenames): Update.
15528 * symfile-debug.c (set_debug_symfile): Update.
15529 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15530 Update.
15531 * source.c (select_source_symtab, forget_cached_source_info):
15532 Update.
15533 * solib.c (solib_read_symbols): Update.
15534 * solib-spu.c (append_ocl_sos): Update.
15535 * psymtab.c (maintenance_print_psymbols)
15536 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15537 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15538 * printcmd.c (info_symbol_command): Update.
15539 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15540 Update.
15541 * objfiles.h (class all_objfiles): Remove.
15542 * objfiles.c (have_partial_symbols, have_full_symbols)
15543 (have_minimal_symbols, qsort_cmp, update_section_map)
15544 (shared_objfile_contains_address_p)
15545 (default_iterate_over_objfiles_in_search_order): Update.
15546 * objc-lang.c (info_selectors_command, info_classes_command)
15547 (find_methods): Update.
15548 * minsyms.c (find_solib_trampoline_target): Update.
15549 * maint.c (maintenance_info_sections)
15550 (maintenance_translate_address, count_symtabs_and_blocks):
15551 Update.
15552 * main.c (captured_main_1): Update.
15553 * linux-thread-db.c (try_thread_db_load_from_pdir)
15554 (has_libpthread): Update.
15555 * linespec.c (iterate_over_all_matching_symtabs)
15556 (search_minsyms_for_name): Update.
15557 * jit.c (jit_find_objf_with_entry_addr): Update.
15558 * hppa-tdep.c (find_unwind_entry)
15559 (hppa_lookup_stub_minimal_symbol): Update.
15560 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15561 Update.
15562 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15563 (elf_gnu_ifunc_resolve_by_got): Update.
15564 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15565 * dwarf-index-write.c (save_gdb_index_command): Update.
15566 * cp-support.c (add_symbol_overload_list_qualified): Update.
15567 * breakpoint.c (create_overlay_event_breakpoint)
15568 (create_longjmp_master_breakpoint)
15569 (create_std_terminate_master_breakpoint)
15570 (create_exception_master_breakpoint): Update.
15571 * blockframe.c (find_pc_partial_function): Update.
15572 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15573 (ada_collect_symbol_completion_matches)
15574 (ada_add_global_exceptions): Update.
15575
776489e0
TT
155762019-01-17 Tom Tromey <tom@tromey.com>
15577
15578 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15579 declare VEC.
15580 (solib_target_parse_libraries): Change return type.
15581 (library_list_start_segment, library_list_start_section)
15582 (library_list_end_library, library_list_start_library); Update.
15583 (solib_target_free_library_list): Remove.
15584 (solib_target_parse_libraries): Remove cleanup. Change return
15585 type.
15586 (solib_target_current_sos): Update.
15587
6471e7d2
TT
155882019-01-17 Tom Tromey <tromey@bapiya>
15589
15590 * valprint.c: Replace "the the" with "the".
15591 * symtab.c: Replace "the the" with "the".
15592 * solib.c: Replace "the the" with "the".
15593 * solib-dsbt.c: Replace "the the" with "the".
15594 * linespec.c: Replace "the the" with "the".
15595 * dwarf2loc.h: Replace "the the" with "the".
15596 * amd64-windows-tdep.c: Replace "the the" with "the".
15597 * aarch64-tdep.c: Replace "the the" with "the".
15598
c24bdb02
KS
155992019-01-16 Keith Seitz <keiths@redhat.com>
15600
15601 PR gdb/23773
15602 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15603 <builder>: Rename to ..
15604 <m_builder>: ... this and make private.
15605 (dwarf2_cu::get_builder): New method. Change all users of
15606 `builder' to use this method.
15607 (dwarf2_start_symtab): Move to ...
15608 (dwarf2_cu::start_symtab): ... here. Update all callers
15609 (setup_type_unit_groups): Move to ...
15610 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15611 callers.
15612 (dwarf2_cu::reset_builder): New method.
15613 (process_full_compunit, process_full_type_unit): Use
15614 dwarf2_cu::reset_builder.
15615 (follow_die_offset): Record the ancestor CU if it is different
15616 from the followed DIE's CU.
15617 (follow_die_sig_1): Likewise.
15618
8d64371b
TT
156192019-01-15 Tom Tromey <tom@tromey.com>
15620
15621 * remote.c (class remote_state) <buf>: Now a char_vector.
15622 <buf_size>: Remove.
15623 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15624 parameter.
15625 (remote_target::getpkt_or_notif_sane_1)
15626 (remote_target::getpkt_sane)
15627 (remote_target::getpkt_or_notif_sane): Likewise.
15628 (class remote_target) <putpkt>: New overload.
15629 (remote_target::read_frame): Change type of "buf_p". Remove
15630 sizeof_p parameter.
15631 (packet_ok): New overload.
15632 (packet_check_result): New overload.
15633 Update all uses.
15634
bb277751
TT
156352019-01-14 Tom Tromey <tom@tromey.com>
15636
15637 * remote-notif.c (handle_notification, remote_notif_ack)
15638 (remote_notif_parse): Make "buf" const.
15639 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15640 const.
15641 (remote_notif_parse, remote_notif_ack, handle_notification):
15642 Likewise.
15643 * remote.c (remote_notif_stop_parse): Make "buf" const.
15644 (remote_target::remote_parse_stop_reply): Make "buf" const.
15645 (remote_notif_stop_ack): Make "buf" const.
15646
05be00a8
TT
156472019-01-14 Tom Tromey <tom@tromey.com>
15648
15649 * remote.c (remote_console_output): Make parameter const.
15650
491adeca
TT
156512019-01-14 Tom Tromey <tom@tromey.com>
15652
15653 * target-debug.h (target_debug_print_signals): Constify.
15654 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15655 * procfs.c (procfs_target::pass_signals): Update.
15656 * linux-nat.c (linux_nat_target::pass_signals): Update.
15657 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15658 * target-delegates.c: Rebuild.
15659 * remote.c (remote_target::program_signals): Update.
15660 (remote_target::pass_signals): Update.
15661 * target.c (target_pass_signals): Constify argument.
15662 (target_program_signals): Likewise.
15663 * target.h (struct target_ops) <pass_signals, program_signals>:
15664 Constify argument.
15665 (target_pass_signals, target_program_signals): Constify argument.
15666
bbd94648
TT
156672019-01-14 Tom Tromey <tom@tromey.com>
15668
15669 PR tui/28819:
15670 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15671
6f072a10
PFC
156722019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15673
15674 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15675 field.
15676 * rs6000-tdep.c: Include reggroups.h.
15677 (IS_V_ALIAS_PSEUDOREG): Define.
15678 (rs6000_register_name): Return names for the "vX" aliases.
15679 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15680 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15681 aliases. Call default_register_reggroup_p for all other
15682 pseudo-registers.
15683 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15684 New functions.
15685 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15686 Handle "vX" aliases.
15687 (v_alias_pseudo_register_collect): New function.
15688 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15689 (rs6000_gdbarch_init): Initialize "vX" aliases as
15690 pseudo-registers. Restore registration of
15691 rs6000_pseudo_register_reggroup_p with
15692 set_tdesc_pseudo_register_reggroup_p.
15693
1a782351
MF
156942019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15695
15696 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15697 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15698 set_gdbarch_num_pseudo_regs.
15699
d73cff18
PW
157002019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15701
15702 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15703 Remove arg prefixname, add do_set and do_show.
15704 Add member functions set_list and show_list.
15705 * cli/cli-style.c (class cli_style_option): Update accordingly.
15706 (style_set_list): Move to file scope.
15707 (style_show_list): Likewise.
15708 (set_style): Call help_list.
15709 (show_style): Call cmd_show_list.
15710 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15711 Update to use the new macro.
15712
60a90376
JB
157132019-10-12 Joel Brobecker <brobecker@adacore.com>
15714
15715 * ada-lang.c (_initialize_ada_language): Expand the help text
15716 for the "catch exception" command.
15717
9d7c67bf
PW
157182019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15719
15720 * symtab.c (matching_obj_sections): Initialize obj,
15721 declare it closer to its usage.
15722
7cf47dc4
TT
157232019-01-10 Tom Tromey <tom@tromey.com>
15724
15725 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15726 (basic_inf_threads_range): Remove.
15727 (inf_threads_range, inf_non_exited_threads_range)
15728 (safe_inf_threads_range): Use next_adapter.
15729
d3cb6808
KS
157302019-01-10 Keith Seitz <keiths@redhat.com>
15731
15732 PR gdb/23712
15733 PR symtab/23010
15734 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15735 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15736
63a20375
KS
157372019-01-10 Keith Seitz <keiths@redhat.com>
15738
15739 PR gdb/23712
15740 PR symtab/23010
15741 * dictionary.c (pending_to_vector): Remove.
15742 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15743 Remove _1 suffix, replacing functions of the same name. Update
15744 all callers.
15745 (dict_create_hashed, dict_create_hashed_expandable)
15746 (dict_create_linear, dict_create_linear_expandable, dict_free)
15747 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15748 Make functions static.
15749
b026f593
KS
157502019-01-10 Keith Seitz <keiths@redhat.com>
15751
15752 PR gdb/23712
15753 PR symtab/23010
15754 * dictionary.h (struct dictionary): Replace declaration with
15755 multidictionary.
15756 (dict_create_hashed, dict_create_hashed_expandable)
15757 (dict_create_linear, dict_create_linear_expandable)
15758 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15759 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15760 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15761 taking multidictionary argument.
15762 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15763 * block.h (struct block) <dict>: Change to multidictionary
15764 and rename `multidict'.
15765 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15766 symmisc.c: Update all dictionary references to multidictionary.
15767
c7748ee9
KS
157682019-01-10 Keith Seitz <keiths@redhat.com>
15769
15770 PR gdb/23712
15771 PR symtab/23010
15772 * dictionary.c: Include unordered_map.
15773 (pending_to_vector): New function.
15774 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15775 Rewrite the non-"_1" functions to take vector instead
15776 of linked list.
15777 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15778 "new" _1 versions of the same name.
15779 (multidictionary): Define.
15780 (std::hash<enum language): New definition.
15781 (collate_pending_symbols_by_language, mdict_create_hashed)
15782 (mdict_create_hashed_expandable, mdict_create_linear)
15783 (mdict_create_linear_expandable, mdict_free)
15784 (find_language_dictionary, create_new_language_dictionary)
15785 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15786 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15787 (mdict_size, mdict_empty): New functions.
15788 * dictionary.h (mdict_iterator): Define.
15789
67aa1f3c
PA
157902019-01-10 Pedro Alves <palves@redhat.com>
15791
15792 * breakpoint.c (read_uploaded_action)
15793 (create_tracepoint_from_upload): Adjust to use
15794 gdb::unique_xmalloc_ptr.
15795 * ctf.c (ctf_write_uploaded_tp):
15796 (SET_ARRAY_FIELD): Use emplace_back.
15797 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15798 * tracefile-tfile.c (tfile_write_uploaded_tp):
15799 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15800 gdb::unique_xmalloc_ptr.
15801 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15802 at_string, cond_string, cmd_strings>: Replace char pointers
15803 with gdb::unique_xmalloc_ptr.
15804
2f667667
PA
158052019-01-10 Pedro Alves <palves@redhat.com>
15806
15807 * solib-target.c (library_list_start_library): Don't xstrdup name.
15808
36cb7237
PA
158092019-01-10 Pedro Alves <palves@redhat.com>
15810
15811 * mdebugread.c (parse_partial_symbols): Use
15812 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15813
da584958
AB
158142019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15815
15816 * linux-fork.c (scoped_switch_fork_info)
15817 <~scoped_switch_fork_info>: Fix incorrect variable name.
15818
1ef8573c
AB
158192019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15820
15821 * linux-fork.c (scoped_switch_fork_info)
15822 <scoped_switch_fork_info>: Make explicit.
15823 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15824
8d7bcccb
TT
158252019-01-10 Tom Tromey <tom@tromey.com>
15826
15827 * objfiles.h (objfile::reset_psymtabs): Update.
15828 * objfiles.c (objfile::objfile): Update.
15829 * psymtab.h (psymtab_storage::obstack): Update.
15830 (psymtab_storage::m_obstack): Use gdb::optional.
15831 (class psymtab_storage): Update comment. Remove objfile
15832 parameter.
15833 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15834
b596a3c7
TT
158352019-01-10 Tom Tromey <tom@tromey.com>
15836
15837 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15838 <free_psymtabs>: Now private.
15839 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15840 (allocate_psymtab): Use new method.
15841
a9342b62
TT
158422019-01-10 Tom Tromey <tom@tromey.com>
15843
15844 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15845 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15846 * mdebugread.c (parse_partial_symbols): Use
15847 allocate_dependencies.
15848 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15849 allocate_dependencies.
15850 (process_psymtab_comp_unit_reader)
15851 (build_type_psymtab_dependencies): Likewise.
15852 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15853
5af70966
TT
158542019-01-10 Tom Tromey <tom@tromey.com>
15855
15856 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15857 PSYMBOL_SET_LANGUAGE.
15858 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15859
5923a04c
TT
158602019-01-10 Tom Tromey <tom@tromey.com>
15861
15862 * psymtab.h (psymtab_storage::obstack): New method.
15863 <m_obstack>: Rename from obstack; now private.
15864 * psymtab.c (psymtab_storage): Update.
15865 * dwarf2read.c (create_addrmap_from_index)
15866 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15867 Update.
15868
6d6a12bf
TT
158692019-01-10 Tom Tromey <tom@tromey.com>
15870
15871 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15872 * objfiles.h (objfile::reset_psymtabs): New method.
15873
d320c2b5
TT
158742019-01-10 Tom Tromey <tom@tromey.com>
15875
15876 * symmisc.c (print_symbol_bcache_statistics): Update.
15877 (print_objfile_statistics): Update.
15878 * symfile.c (reread_symbols): Update.
15879 * psymtab.h (class psymtab_storage): New.
15880 * psymtab.c (psymtab_storage): New constructor.
15881 (~psymtab_storage): New destructor.
15882 (require_partial_symbols): Update.
15883 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
15884 (find_pc_sect_psymtab, find_pc_sect_psymbol)
15885 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
15886 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
15887 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
15888 (start_psymtab_common, end_psymtab_common)
15889 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
15890 (allocate_psymtab): Update.
15891 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
15892 Update.
15893 (dump_psymtab_addrmap, maintenance_print_psymbols)
15894 (maintenance_check_psymtabs): Update.
15895 (class objfile_psymtabs): Move to objfiles.h.
15896 * psympriv.h (discard_psymtab): Now inline.
15897 (psymtab_discarder::psymtab_discarder): Update.
15898 (psymtab_discarder::~psymtab_discarder): Update.
15899 (ALL_OBJFILE_PSYMTABS): Rewrite.
15900 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
15901 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
15902 Remove fields.
15903 <partial_symtabs>: New field.
15904 (class objfile_psymtabs): Move from psymtab.h. Update.
15905 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
15906 psymbol_cache.
15907 (objfile::~objfile): Don't destroy psymbol_cache.
15908 * mdebugread.c (parse_partial_symbols): Update.
15909 * dwarf2read.c (create_addrmap_from_index)
15910 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15911 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
15912 (add_partial_subprogram, dwarf2_ranges_read): Update.
15913 * dwarf-index-write.c (write_address_map)
15914 (write_one_signatured_type, recursively_write_psymbols)
15915 (class debug_names, class debug_names, write_psymtabs_to_index):
15916 Update.
15917
1d94a5a3
TT
159182019-01-10 Tom Tromey <tom@tromey.com>
15919
15920 * symtab.h (SYMBOL_SET_NAMES): Update.
15921 (symbol_set_names): Update.
15922 (MSYMBOL_SET_NAMES): Update.
15923 * symtab.c (symbol_set_names): Change argument to be an
15924 objfile_per_bfd_storage.
15925 * psymtab.c (add_psymbol_to_bcache): Update.
15926 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
15927
0f14768a
TT
159282019-01-10 Tom Tromey <tom@tromey.com>
15929
15930 * symtab.c (create_demangled_names_hash): Change argument to be an
15931 objfile_per_bfd_storage.
15932 (symbol_set_names): Update.
15933
6eee24ce
TT
159342019-01-10 Tom Tromey <tom@tromey.com>
15935
15936 * xcoffread.c (xcoff_initial_scan): Unconditionally call
15937 init_psymbol_list.
15938 * psymtab.c (init_psymbol_list): Do nothing if already called.
15939 * psympriv.h (init_psymbol_list): Add comment.
15940 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
15941 init_psymbol_list.
15942 * dbxread.c (dbx_symfile_read): Unconditionally call
15943 init_psymbol_list.
15944
75aedd27
TT
159452019-01-10 Tom Tromey <tom@tromey.com>
15946
15947 * xcoffread.c (scan_xcoff_symtab): Update.
15948 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
15949 "where".
15950 * mdebugread.c (parse_partial_symbols)
15951 (handle_psymbol_enumerators): Update.
15952 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
15953 * dbxread.c (read_dbx_symtab): Update.
15954 * psympriv.h (psymbol_placement): New enum.
15955 (add_psymbol_to_list): Update.
15956
939652a5
TT
159572019-01-10 Tom Tromey <tom@tromey.com>
15958
15959 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
15960 static_psymbols parameters.
15961 (scan_xcoff_symtab): Update.
15962 * psymtab.c (start_psymtab_common): Remove global_psymbols and
15963 static_psymbols parameters.
15964 * psympriv.h (start_psymtab_common): Update.
15965 * mdebugread.c (parse_partial_symbols): Update.
15966 * dwarf2read.c (create_partial_symtab): Update.
15967 * dbxread.c (read_dbx_symtab): Update.
15968 (start_psymtab): Remove global_psymbols and static_psymbols
15969 parameters.
15970
baa62830
TT
159712019-01-10 Tom Tromey <tom@tromey.com>
15972
15973 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
15974 * psymtab.c (allocate_psymtab): Add comment.
15975 * psympriv.h (allocate_psymtab): Add comment.
15976 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
15977 initializations.
15978 * dbxread.c (dbx_end_psymtab): Remove some initializations.
15979
0e8f53ba
TT
159802019-01-10 Tom Tromey <tom@tromey.com>
15981
15982 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15983 Don't declare.
15984 * mipsread.c: Include mdebugread.h.
15985 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
15986 Declare.
15987 * elfread.c: Include mdebugread.h.
15988
b22a7c6a
TT
159892019-01-09 Tom Tromey <tom@tromey.com>
15990
15991 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
15992 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
15993 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
15994 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
15995 (psym_lookup_symbol, psym_find_last_source_symtab)
15996 (psym_forget_cached_source_info, psym_print_stats)
15997 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
15998 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
15999 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16000 (psym_find_compunit_symtab_by_address)
16001 (maintenance_print_psymbols, maintenance_info_psymtabs)
16002 (maintenance_check_psymtabs): Use ranged for.
16003 * psymtab.h (class objfile_psymtabs): New.
16004 (require_partial_symbols): Return objfile_psymtabs.
16005 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16006
3b9d3ac2
TT
160072019-01-09 Tom Tromey <tom@tromey.com>
16008
16009 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16010 (find_pc_mapped_section, list_overlays_command)
16011 (map_overlay_command, unmap_overlay_command)
16012 (simple_overlay_update): Use all_objfiles.
16013 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16014 * printcmd.c (info_symbol_command): Use all_objfiles.
16015 * objfiles.h (ALL_OBJSECTIONS): Remove.
16016 * maint.c (maintenance_translate_address): Use all_objfiles.
16017 * gcore.c (gcore_create_callback): Use all_objfiles.
16018 (objfile_find_memory_regions): Likewise.
16019
8b31193a
TT
160202019-01-09 Tom Tromey <tom@tromey.com>
16021
16022 * symtab.c (find_line_symtab, info_sources_command)
16023 (make_source_files_completion_list): Use objfile_compunits.
16024 * source.c (select_source_symtab): Use objfile_compunits.
16025 * objfiles.h (struct objfile): Update comment.
16026 (ALL_OBJFILES): Remove.
16027 (ALL_FILETABS): Remove.
16028 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16029 objfile_compunits.
16030
d5da8b3c
TT
160312019-01-09 Tom Tromey <tom@tromey.com>
16032
16033 * symmisc.c (print_objfile_statistics, dump_objfile)
16034 (maintenance_print_symbols): Use compunit_filetabs.
16035 * source.c (forget_cached_source_info_for_objfile): Use
16036 compunit_filetabs.
16037 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16038 (ALL_FILETABS): Use compunit_filetabs.
16039 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16040 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16041
5accd1a0
TT
160422019-01-09 Tom Tromey <tom@tromey.com>
16043
16044 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16045 (compunit_filetabs): New.
16046 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16047 compunit_filetabs.
16048 (info_sources_command, make_source_files_completion_list): Remove
16049 declaration.
16050 * symmisc.c (print_objfile_statistics, dump_objfile)
16051 (maintenance_print_symbols): Remove declaration.
16052 (maintenance_info_symtabs): Use compunit_filetabs.
16053 (maintenance_info_line_tables): Likewise.
16054 * source.c (select_source_symtab): Change local variable name.
16055 (forget_cached_source_info_for_objfile): Remove declaration.
16056 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16057 * objfiles.c (objfile_relocate1): Remove declaration.
16058 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16059 declaration.
16060 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16061 * coffread.c (coff_symtab_read): Remove declaration.
16062 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16063 compunit_filetabs.
16064
d8aeb77f
TT
160652019-01-09 Tom Tromey <tom@tromey.com>
16066
16067 * symtab.c (lookup_objfile_from_block)
16068 (find_pc_sect_compunit_symtab, search_symbols)
16069 (default_collect_symbol_completion_matches_break_on): Use
16070 objfile_compunits.
16071 * objfiles.h (ALL_COMPUNITS): Remove.
16072 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16073 * cp-support.c (add_symbol_overload_list_qualified): Use
16074 objfile_compunits.
16075 * ada-lang.c (ada_collect_symbol_completion_matches)
16076 (ada_add_global_exceptions): Use objfile_compunits.
16077
592553c4
TT
160782019-01-09 Tom Tromey <tom@tromey.com>
16079
16080 * source.c (select_source_symtab)
16081 (forget_cached_source_info_for_objfile): Remove declaration.
16082 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16083 declaration.
16084 * maint.c (count_symtabs_and_blocks): Remove declaration.
16085 * cp-support.c (add_symbol_overload_list_qualified): Remove
16086 declaration.
16087 * coffread.c (coff_symtab_read): Remove declaration.
16088 * symtab.c (lookup_symbol_in_objfile_symtabs)
16089 (basic_lookup_transparent_type_1): Use objfile_compunits.
16090 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16091 (info_sources_command, search_symbols)
16092 (default_collect_symbol_completion_matches_break_on)
16093 (make_source_files_completion_list): Remove declaration.
16094 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16095 (ada_collect_symbol_completion_matches)
16096 (ada_add_global_exceptions): Remove declaration.
16097 * linespec.c (iterate_over_all_matching_symtabs): Use
16098 objfile_compunits.
16099 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16100 (class objfile_compunits): New.
16101 (ALL_COMPUNITS): Use objfile_compunits.
16102 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16103 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16104 objfile_compunits.
16105 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16106
5325b9bf
TT
161072019-01-09 Tom Tromey <tom@tromey.com>
16108
16109 * symtab.c (search_symbols)
16110 (default_collect_symbol_completion_matches_break_on): Use
16111 objfile_msymbols.
16112 * ada-lang.c (ada_lookup_simple_minsym)
16113 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16114 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16115 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16116 objfile_msymbols.
16117 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16118 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16119 * objc-lang.c (find_methods): Use objfile_msymbols.
16120 (info_selectors_command, info_classes_command): Likewise.
16121 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16122 * objfiles.h (class objfile_msymbols): New.
16123 (ALL_OBJFILE_MSYMBOLS): Remove.
16124 (ALL_MSYMBOLS): Remove.
16125
cac85af2
TT
161262019-01-09 Tom Tromey <tom@tromey.com>
16127
16128 * common/next-iterator.h (next_adapter): Add Iterator template
16129 parameter.
16130 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16131 (class all_objfiles_safe): New.
16132 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16133 * objfiles.c (put_objfile_before): Update comment.
16134 (add_separate_debug_objfile): Likewise.
16135 (free_all_objfiles): Use all_objfiles_safe.
16136 (objfile_purge_solibs): Likewise.
16137
aed57c53
TT
161382019-01-09 Tom Tromey <tom@tromey.com>
16139
16140 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16141 (expand_symtab_containing_pc, lookup_static_symbol)
16142 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16143 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16144 all_objfiles.
16145 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16146 * breakpoint.c (create_overlay_event_breakpoint)
16147 (create_longjmp_master_breakpoint)
16148 (create_std_terminate_master_breakpoint)
16149 (create_exception_master_breakpoint): Use all_objfiles.
16150 * linux-thread-db.c (try_thread_db_load_from_pdir)
16151 (has_libpthread): Use all_objfiles.
16152 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16153 * linespec.c (iterate_over_all_matching_symtabs)
16154 (search_minsyms_for_name): Use all_objfiles.
16155 * maint.c (maintenance_info_sections): Use all_objfiles.
16156 * main.c (captured_main_1): Use all_objfiles.
16157 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16158 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16159 * guile/scm-pretty-print.c
16160 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16161 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16162 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16163 (maintenance_print_msymbols): Use all_objfiles.
16164 * source.c (select_source_symtab): Use all_objfiles.
16165 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16166 * symfile.c (remove_symbol_file_command)
16167 (expand_symtabs_matching, map_symbol_filenames): Use
16168 all_objfiles.
16169 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16170 all_objfiles.
16171 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16172 * objc-lang.c (find_methods): Use all_objfiles.
16173 * objfiles.c (have_partial_symbols, have_full_symbols)
16174 (have_minimal_symbols, qsort_cmp)
16175 (default_iterate_over_objfiles_in_search_order): Use
16176 all_objfiles.
16177 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16178 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16179 (maintenance_check_psymtabs): Use all_objfiles.
16180 (ALL_PSYMTABS): Remove.
16181 * compile/compile-object-run.c (do_module_cleanup): Use
16182 all_objfiles.
16183 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16184 * cp-support.c (add_symbol_overload_list_qualified): Use
16185 all_objfiles.
16186 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16187 Use all_objfiles.
16188 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16189 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16190 all_objfiles.
16191 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16192 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16193 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16194 Uses all_objfiles.
16195 * solib.c (solib_read_symbols): Use all_objfiles
16196
99d89cde
TT
161972019-01-09 Tom Tromey <tom@tromey.com>
16198
16199 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16200 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16201 all_objfiles.
16202 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16203 * symmisc.c (print_symbol_bcache_statistics)
16204 (print_objfile_statistics, maintenance_print_objfiles)
16205 (maintenance_info_symtabs, maintenance_check_symtabs)
16206 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16207 all_objfiles.
16208 * source.c (forget_cached_source_info): Use all_objfiles.
16209 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16210 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16211 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16212 * objfiles.c (update_section_map): Use all_objfiles.
16213 (shared_objfile_contains_address_p): Likewise.
16214 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16215 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16216
21708325
TT
162172019-01-09 Tom Tromey <tom@tromey.com>
16218
16219 * common/next-iterator.h: New file.
16220 * objfiles.h (class all_objfiles): New.
16221 (struct objfile_iterator): New.
16222
669e09f6
PW
162232019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16224
16225 * NEWS: Move the description of the changed "frame", "select-frame",
16226 and "info frame" commands to the Changed commands section.
16227
041be526
SM
162282019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16229
16230 * gdbtypes.c (check_stub_method_group): Remove handling of old
16231 mangling schemes.
16232 * linespec.c (find_methods): Likewise.
16233 * stabsread.c (read_member_functions): Likewise.
16234 * valops.c (search_struct_method): Likewise.
16235 (value_struct_elt_for_reference): Likewise.
16236 * NEWS: Mention this change.
16237
0e2a2133
AB
162382019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16239
16240 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16241 print_source_lines.
16242 * source.c (print_source_lines_base): Update line number check.
16243 (print_source_lines): New function.
16244 (source_lines_range::source_lines_range): New function.
16245 * source.h (class source_lines_range): New class.
16246 (print_source_lines): New declaration.
16247
1055a3b4
PW
162482019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16249
16250 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16251
cfeadda5
TT
162522019-01-08 Tom Tromey <tom@tromey.com>
16253 Simon Marchi <simon.marchi@ericsson.com>
16254
16255 PR gdb/24060
16256 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16257 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16258 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16259 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16260 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16261 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16262
583068ca
AB
162632019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16264
16265 * source.c (select_source_symtab): Move header comment to
16266 declaration in source.h.
16267 (forget_cached_source_info_for_objfile): Likewise.
16268 (forget_cached_source_info): Likewise.
16269 (identify_source_line): Likewise.
16270 * source.h (identify_source_line): Move declaration from symtab.h
16271 and add comment from source.c
16272 (print_source_lines): Likewise.
16273 (forget_cached_source_info_for_objfile): Likewise.
16274 (forget_cached_source_info): Likewise.
16275 (select_source_symtab): Likewise.
16276 (enum print_source_lines_flag): Move definition from symtab.h.
16277 * symtab.h (identify_source_line): Move declaration to source.h.
16278 (print_source_lines): Likewise.
16279 (forget_cached_source_info_for_objfile): Likewise.
16280 (forget_cached_source_info): Likewise.
16281 (select_source_symtab): Likewise.
16282 (enum print_source_lines_flag): Move definition to source.h.
16283 * tui/tui-hooks.c: Add 'source.h' include.
16284
ec98a4ad
AB
162852019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16286
16287 * source.c (print_source_lines_base): Handle requests to print
16288 reverse line number sequences, and guard against empty lines
16289 string.
16290
62ea19c1
AB
162912019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16292
16293 * source.c (print_source_lines_base): Fix skip of '\r' if next
16294 character is '\n'.
16295
9d30e1fd
TT
162962019-01-06 Tom Tromey <tom@tromey.com>
16297
16298 * c-exp.y (struct c_parse_state) <macro_original_text,
16299 expansion_obstack>: New member.
16300 (macro_original_text, expansion_obstack): Remove globals.
16301 (scan_macro_expansion, scanning_macro_expansion)
16302 (finished_macro_expansion): Update.
16303 (scan_macro_cleanup): Remove.
16304 (yylex, c_parse): Update.
16305
c65bac38
TT
163062019-01-06 Tom Tromey <tom@tromey.com>
16307
16308 * c-exp.y (struct c_parse_state) <strings>: New member.
16309 (operator_stoken): Update.
16310
02e12e38
TT
163112019-01-06 Tom Tromey <tom@tromey.com>
16312
16313 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16314 (union type_stack_elt) <typelist_val>: Now a pointer to
16315 std::vector.
16316 (type_stack_cleanup): Don't declare.
16317 (push_typelist): Update.
16318 * parse.c (pop_typelist): Return a std::vector.
16319 (push_typelist): Take a std::vector.
16320 (follow_types): Update. Do not free args.
16321 (type_stack_cleanup): Remove.
16322 * c-exp.y (struct c_parse_state): New.
16323 (cpstate): New global.
16324 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16325 (nonempty_typelist): Update.
16326 (func_mod): Create a new vector.
16327 (c_parse): Create a c_parse_state.
16328 (check_parameter_typelist): Do not delete params.
16329 (function_method): Update. Do not delete type_list.
16330
f097f5ad
TT
163312019-01-06 Tom Tromey <tom@tromey.com>
16332
16333 PR gdb/28155:
16334 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16335 check_typedef.
16336 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16337 (print_return_value): Likewise.
16338
d2adf9f1
TT
163392019-01-05 Tom Tromey <tom@tromey.com>
16340
16341 * contrib/cleanup_check.py: Remove.
16342 * contrib/gcc-with-excheck: Remove.
16343 * contrib/exsummary.py: Remove.
16344 * contrib/excheck.py: Remove.
16345
2eab46b1
JB
163462019-01-05 Joel Brobecker <brobecker@adacore.com>
16347
16348 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16349 NULL. Initialize tpprev to NULL instead of assigning it
16350 to NULL on the next statement.
16351 * windows-nat.c (windows_delete_thread): Remove check for
16352 main_thread_id before printing thread exit notifications.
16353 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16354 Remove thread ID check against main_thread_id.
16355 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16356 windows_delete_thread.
16357 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16358
48c5e7e2
TT
163592019-01-04 Tom Tromey <tom@tromey.com>
16360
16361 * compile/compile.c (_initialize_compile): Use upper case for
16362 metasyntactic variables.
16363 * symmisc.c (_initialize_symmisc): Use upper case for
16364 metasyntactic variables.
16365 * psymtab.c (_initialize_psymtab): Use upper case for
16366 metasyntactic variables.
16367 * demangle.c (demangle_command): Use upper case for metasyntactic
16368 variables.
16369 (_initialize_demangler): Likewise.
16370 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16371 variables.
16372
986041cd
TT
163732019-01-03 Tom Tromey <tom@tromey.com>
16374
16375 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16376
7c711119
TT
163772019-01-03 Tom Tromey <tom@tromey.com>
16378
16379 * python/py-symtab.c (salpy_str): Update.
16380 (struct salpy_sal_object) <symtab>: Now a PyObject.
16381 (salpy_dealloc): Update.
16382 (del_objfile_sal): Use gdbpy_ref.
16383
1b20edf0
TT
163842019-01-03 Tom Tromey <tom@tromey.com>
16385
16386 * python/py-type.c (convert_field): Use new_reference. Return
16387 gdbpy_ref.
16388 (make_fielditem): Return gdbpy_ref.
16389 (typy_fields): Update.
16390 (typy_getitem): Update.
16391 (field_name): Return gdbpy_ref. Use new_reference.
16392 (typy_iterator_iternext): Update.
16393
ea41325b
TT
163942019-01-03 Tom Tromey <tom@tromey.com>
16395
16396 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16397
2a3c71d6
TT
163982019-01-03 Tom Tromey <tom@tromey.com>
16399
16400 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16401 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16402 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16403 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16404 (pspy_set_type_printers): Likewise.
16405 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16406 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16407 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16408 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16409 (objfpy_set_type_printers): Likewise.
16410
5c329e6a
TT
164112019-01-03 Tom Tromey <tom@tromey.com>
16412
16413 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16414 (gdbpy_print_stack): Use gdbpy_err_fetch.
16415 * python/python-internal.h (class gdbpy_err_fetch): New class.
16416 (class gdbpy_enter) <m_error_type, m_error_value,
16417 m_error_traceback>: Remove.
16418 <m_error>: New member.
16419 (gdbpy_exception_to_string): Don't declare.
16420 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16421 * python/py-value.c (convert_value_from_python): Use
16422 gdbpy_err_fetch.
16423 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16424 gdbpy_exception_to_string.
16425 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16426 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16427 gdbpy_err_fetch.
16428
169bb27b
AB
164292019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16430
16431 * linux-nat.c (delete_lwp_cleanup): Delete.
16432 (struct lwp_deleter): New struct.
16433 (lwp_info_up): New typedef.
16434 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16435 lwp_info_up.
16436
a07c8880
AB
164372019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16438
16439 * linux-fork.c (class scoped_switch_fork_info): New class.
16440 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16441
26089c49
AB
164422019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16443
16444 * valops.c (find_overload_match): Remove use of null_cleanup, and
16445 calls to do_cleanups.
16446
06d3e5b0
AB
164472019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16448
16449 * compile/compile-cplus-types.c
16450 (compile_cplus_instance::decl_name): Handle changes to
16451 cp_func_name.
16452 * cp-support.c (cp_func_name): Update header comment, update
16453 return type.
16454 * cp-support.h (cp_func_name): Update return type in declaration.
16455 * valops.c (find_overload_match): Move temp_func local to top
16456 level of function and change its type. Use temp_func to hold and
16457 delete temporary string obtained from cp_func_name.
16458
66644cd3
AB
164592019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16460
16461 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16462 gdb::char_vector, remove cleanup, and update uses of `msg`.
16463
592d8c0a
JW
164642019-01-03 Jim Wilson <jimw@sifive.com>
16465
16466 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16467
c55d06ec
TT
164682019-01-02 Tom Tromey <tom@tromey.com>
16469
16470 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16471 (tdesc_parse_xml): Remove cleanups.
16472 * target-descriptions.h (make_cleanup_free_target_description):
16473 Don't declare.
16474 (target_desc_deleter): New struct.
16475 (target_desc_up): New typedef.
16476 * target-descriptions.c (target_desc_deleter::operator()): Rename
16477 from free_target_description.
16478 (make_cleanup_free_target_description): Remove.
16479
3a6ae42d
TT
164802019-01-02 Tom Tromey <tom@tromey.com>
16481
16482 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16483 constructor, destructor.
16484 (linespec_parser): Remove typedef.
16485 (~linespec_parser): Rename from linespec_parser_delete.
16486 (linespec_lex_to_end, linespec_complete_label)
16487 (linespec_complete): Update.
16488 (decode_line_full): Remove cleanups.
16489 (decode_line_1): Update.
16490
61fd3e73
TT
164912019-01-02 Tom Tromey <tom@tromey.com>
16492
16493 * python/python-internal.h (inferior_to_inferior_object): Change
16494 return type.
16495 * python/py-exitedevent.c (create_exited_event_object): Update.
16496 * python/py-inferior.c (inferior_to_inferior_object): Return
16497 gdbpy_ref.
16498 (python_new_inferior, python_inferior_deleted)
16499 (thread_to_thread_object, delete_thread_object)
16500 (build_inferior_list, gdbpy_selected_inferior): Update.
16501 * python/py-infthread.c (create_thread_object): Update. Also fail
16502 if inferior_to_inferior_object fails.
16503
d20172fc
SM
165042019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16505
16506 * inferior.h (class inferior) <displaced_step_state>: New field.
16507 * infrun.h (struct displaced_step_state): Move here from
16508 infrun.c. Initialize fields, add constructor.
16509 <inf>: Remove field.
16510 <reset>: New method.
16511 * infrun.c (struct displaced_step_inferior_state): Move to
16512 infrun.h.
16513 (displaced_step_inferior_states): Remove.
16514 (get_displaced_stepping_state): Adust.
16515 (displaced_step_in_progress_any_inferior): Adjust.
16516 (displaced_step_in_progress_thread): Adjust.
16517 (displaced_step_in_progress): Adjust.
16518 (add_displaced_stepping_state): Remove.
16519 (get_displaced_step_closure_by_addr): Adjust.
16520 (remove_displaced_stepping_state): Remove.
16521 (infrun_inferior_exit): Call displaced_step_state.reset.
16522 (use_displaced_stepping): Don't check for NULL.
16523 (displaced_step_prepare_throw): Call
16524 get_displaced_stepping_state.
16525 (displaced_step_fixup): Don't check for NULL.
16526 (prepare_for_detach): Don't check for NULL.
16527
e3319240
PW
165282019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16529
16530 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16531 in case of call that did not complete.
16532
5d36dfb9
AU
165332019-01-02 Andrey Utkin <autkin@undo.io>
16534
16535 * symfile.c (find_separate_debug_file): Fix search of debug files for
16536 remote debuggee.
16537
8833fbf0
TT
165382019-01-02 Tom Tromey <tom@tromey.com>
16539
16540 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16541 indentation.
16542 * python/py-frame.c (frapy_older): Remove cast.
16543 (frapy_newer): Likewise.
16544 * python/py-breakpoint.c (local_setattro): Remove cast.
16545 * python/py-arch.c (archpy_name): Remove local variable.
16546 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16547
4ada3dfd
JB
165482019-01-02 Joel Brobecker <brobecker@adacore.com>
16549
16550 * unittests/basic_string_view/element_access/char/empty.cc:
16551 Fix year range in copyright header.
16552
113b7b81
AB
165532019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16554
16555 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16556 Delete.
16557 <operator==>: Update with for removed field.
16558 <hash>: Likewise.
16559 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16560 <isa_features>: ...this.
16561 <abi_features>: New field.
16562 (riscv_isa_flen): Update comment.
16563 (riscv_abi_xlen): New declaration.
16564 (riscv_abi_flen): New declaration.
16565 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16566 isa_features.
16567 (riscv_abi_xlen): New function.
16568 (riscv_isa_flen): Update to get answer from isa_features.
16569 (riscv_abi_flen): New function.
16570 (riscv_has_fp_abi): Update to get answer from abi_features.
16571 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16572 xlen and flen.
16573 (riscv_call_info) <xlen, flen>: Update comment.
16574 (riscv_call_arg_struct): Remove invalid assertions
16575 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16576 is removed.
16577 (riscv_gdbarch_init): Gather isa features and abi features
16578 separately, ensure both match on the gdbarch when reusing an old
16579 gdbarch. Relax an error check to allow 32-bit abi float to run on
16580 a target with 64-bit float hardware.
16581
b18ca514
PW
165822019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16583
16584 * source.c (search_command_helper): Stop reverse search
16585 when line 1 has been searched.
16586
ec70d8db
PW
165872019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16588
16589 * record-full.c (record_full_base_target::close): Rewrite
16590 record_full_core_buf_list free logic.
16591
5b38f9c1
PW
165922019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16593
16594 * break-catch-syscall.c (print_one_catch_syscall): xfree
16595 the last text.
16596
66d91b39
JB
165972019-01-01 Joel Brobecker <brobecker@adacore.com>
16598
16599 * top.c (print_gdb_version): Update Copyright year in version
16600 message.
16601
42a4f53d
JB
166022019-01-01 Joel Brobecker <brobecker@adacore.com>
16603
16604 Update copyright year range in all GDB files.
16605
7e955d83 166062019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16607
5bbd631d 16608 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16609
5bbd631d 16610For older changes see ChangeLog-2018.
c906108c
SS
16611\f
16612Local Variables:
16613mode: change-log
16614left-margin: 8
16615fill-column: 74
16616version-control: never
57da7796 16617coding: utf-8
c906108c 16618End:
5bbd631d 16619
This page took 3.314346 seconds and 4 git commands to generate.