Silence ARI warning about floatformat_to_double
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c6cbf900
TT
12019-12-13 Tom Tromey <tromey@adacore.com>
2
3 * contrib/ari/gdb_ari.sh: Remove "fix" call for
4 floatformat_to_double.
5 * target-float.c (host_float_ops<T>::from_target): Add ARI
6 comment.
7
036003a6
TT
82019-12-13 Tom Tromey <tromey@adacore.com>
9
10 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
11 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
12 ARI marker to abort.
13 * event-top.c (handle_sigsegv): Add ARI marker to abort.
14
8aaaf757
TT
152019-12-13 Tom Tromey <tromey@adacore.com>
16
17 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
18
fe56157f
TT
192019-12-13 Tom Tromey <tromey@adacore.com>
20
21 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
22
a15a95ed
TT
232019-12-13 Tom Tromey <tromey@adacore.com>
24
25 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
26 checks.
27
a5513db2
TT
282019-12-13 Tom Tromey <tromey@adacore.com>
29
30 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
31 end>: No longer "const".
32
3a90f266
SM
332019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
34
35 * jit.c: Fix indentation, replace spaces with tabs where
36 applicable.
37
b3f4b80f
JL
382019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
39
40 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
41
e671856c
TT
422019-12-12 Tom Tromey <tom@tromey.com>
43
44 * objfiles.h (struct objfile) <partial_symtabs>: Now a
45 unique_ptr.
46
7d7167ce
TT
472019-12-12 Tom Tromey <tom@tromey.com>
48
49 * progspace.h (objfile_list): New typedef.
50 (class unwrapping_objfile_iterator)
51 (struct unwrapping_objfile_range): Newl
52 (struct program_space) <objfiles_range>: Change type.
53 <objfiles>: Change return type.
54 <add_objfile>: Change type of "objfile" parameter.
55 <objfiles_list>: Now a list of shared_ptr.
56 * progspace.c (program_space::add_objfile): Change type of
57 "objfile". Update.
58 (program_space::remove_objfile): Update.
59 * objfiles.h (struct objfile) <~objfile>: Make public.
60 * objfiles.c (objfile::make): Update.
61 (objfile::unlink): Don't call delete.
62
343cc952
TT
632019-12-12 Tom Tromey <tom@tromey.com>
64
65 * symfile.c (symbol_file_clear): Update.
66 * progspace.h (struct program_space) <free_all_objfiles>: Declare
67 method.
68 * progspace.c (program_space::free_all_objfiles): New method.
69 * objfiles.h (free_all_objfiles): Don't declare.
70 * objfiles.c (free_all_objfiles): Move to program_space.
71
d0801dd8
TT
722019-12-12 Tom Tromey <tom@tromey.com>
73
74 * progspace.c (program_space::add_objfile)
75 (program_space::remove_objfile): Update.
76 (program_space::multi_objfile_p): Remove.
77 * objfiles.h (struct objfile) <next>: Remove.
78 * objfiles.c (objfile::objfile): Update.
79 (put_objfile_before): Update.
80 (unlink_objfile): Update.
81 * progspace.h (object_files): Remove.
82 (struct program_space) <objfiles_head>: Remove.
83 <objfiles_list>: New member.
84 <objfiles_range, objfiles_safe_range>: Change type.
85 (objfiles): Change return type.
86 (objfiles_safe): Update.
87 (multi_objfile_p): Rewrite and inline.
88 (object_files): Remove macro.
89
13bff726
TT
902019-12-12 Tom Tromey <tom@tromey.com>
91
92 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
93 second constructor.
94 (basic_safe_range): New class.
95
deeafabb
TT
962019-12-12 Tom Tromey <tom@tromey.com>
97
98 * progspace.c (program_space::multi_objfile_p): New method.
99 * printcmd.c (info_symbol_command): Update.
100 * maint.c (maintenance_translate_address): Update.
101 * objfiles.h (MULTI_OBJFILE_P): Remove.
102 * progspace.h (struct program_space) <multi_objfile_p>: New
103 method.
104
23452926
TT
1052019-12-12 Tom Tromey <tom@tromey.com>
106
107 * progspace.h (struct program_space) <remove_objfile>: Declare.
108 * progspace.c (program_space::remove_objfile): New method.
109 * objfiles.c (unlink_objfile): Remove.
110 (objfile::unlink): Call remove_objfile.
111 (objfile): Don't call unlink_objfile.
112
7cac64af
TT
1132019-12-12 Tom Tromey <tom@tromey.com>
114
115 * progspace.h (struct program_space) <add_objfile>: Declare
116 method.
117 * progspace.c (program_space::add_objfile): New method.
118 * objfiles.c (~objfile): Don't unlink objfile.
119 (put_objfile_before): Remove.
120 (add_separate_debug_objfile): Don't call put_objfile_before.
121 (objfile::make): Call add_objfile. Set new_objfiles_available on
122 the per-program-space data.
123
268e4f09
TT
1242019-12-12 Tom Tromey <tom@tromey.com>
125
126 * symfile.c (syms_from_objfile_1): Use objfile_up.
127 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
128 method.
129 (reread_symbols): Use objfile_up.
130 * solib.c (update_solib_list, reload_shared_libraries_1): Call
131 unlink method.
132 * objfiles.h (struct objfile) <~objfile>: Now private.
133 <unlink>: New method.
134 (struct objfile_deleter): New.
135 (objfile_up): New typedef.
136 * objfiles.c (objfile::unlink): New method.
137 (free_objfile_separate_debug, free_all_objfiles)
138 (objfile_purge_solibs): Use it.
139 * jit.c (jit_unregister_code): Remove.
140 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
141 objfile.
142 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
143 objfile.
144 * compile/compile-object-load.c (compile_object_load): Use
145 objfile_up.
146
f65fe570
TT
1472019-12-12 Tom Tromey <tom@tromey.com>
148
149 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
150 objfile::make.
151 * objfiles.h (struct objjfile) <make>: No longer inline.
152 (add_separate_debug_objfile): Don't declare.
153 * objfiles.c (add_separate_debug_objfile): Now static.
154 (objfile::make): Move from objfiles.h. Call
155 add_separate_debug_objfile. Add "parent" parameter.
156
bda13cdc
TT
1572019-12-12 Tom Tromey <tom@tromey.com>
158
159 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
160 * objfiles.h (struct objfile): Make constructor private.
161 <make>: New static method.
162 * jit.c (jit_object_close_impl): Update.
163
7190276c
SM
1642019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
165
166 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
167 gdb::byte_vector.
168
d61df897
TT
1692019-12-12 Tom Tromey <tromey@adacore.com>
170
171 * xml-support.c (xml_fetch_content_from_file): Don't call
172 malloc_failure.
173 * utils.h (class gdb_argv): Remove malloc_failure comment.
174 * utils.c (gdb_argv::reset): Don't call malloc_failure.
175
db3ad2f0
TT
1762019-12-12 Tom Tromey <tromey@adacore.com>
177
178 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
179 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
180 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
181 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
182 * riscv-ravenscar-thread.c: New file.
183 * riscv-ravenscar-thread.h: New file.
184 * riscv-tdep.c (riscv_gdbarch_init): Call
185 register_riscv_ravenscar_ops.
186
2ffe5b9c
TT
1872019-12-12 Tom Tromey <tromey@adacore.com>
188
189 * gdbsupport/thread-pool.c (set_thread_name): Use
190 ATTRIBUTE_UNUSED.
191
39f34d7b
LM
1922019-12-12 Luis Machado <luis.machado@linaro.org>
193
194 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
195 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
196 macros.
197
d4eeccfe
TT
1982019-12-11 Tom Tromey <tom@tromey.com>
199
200 * tui/tui-win.c (tui_set_win_height_command): Call
201 tui_adjust_window_height.
202 (tui_adjust_win_heights, new_height_ok): Remove.
203 * tui/tui-layout.h (tui_adjust_window_height): Declare.
204 * tui/tui-layout.c (tui_adjust_window_height): New function.
205
3d979945
TT
2062019-12-11 Tom Tromey <tom@tromey.com>
207
208 * tui/tui-win.c (tui_resize_all): Remove code, call
209 tui_apply_current_layout.
210
2192a9d3
TT
2112019-12-11 Tom Tromey <tom@tromey.com>
212
213 * tui/tui-layout.h (tui_apply_current_layout): Declare.
214 * tui/tui-layout.c (standard_layouts, applied_layout): New
215 globals.
216 (tui_apply_current_layout): New function.
217 (show_layout): Set applied_layout. Call
218 tui_apply_current_layout.
219 (show_source_command, show_disasm_command)
220 (show_source_disasm_command, show_data)
221 (show_source_or_disasm_and_command): Remove.
222 (initialize_layouts): New function.
223 (_initialize_tui_layout): Call initialize_layouts.
224
389e7ddb
TT
2252019-12-11 Tom Tromey <tom@tromey.com>
226
227 * tui/tui-layout.h (class tui_layout_base)
228 (class tui_layout_window, class tui_layout_split): New.
229 * tui/tui-layout.c (tui_get_window_by_name)
230 (tui_layout_window::clone, tui_layout_window::apply)
231 (tui_layout_window::get_sizes, tui_layout_window::add_split)
232 (tui_layout_split::add_window, tui_layout_split::clone)
233 (tui_layout_split::get_sizes)
234 (tui_layout_split::set_weights_from_heights)
235 (tui_layout_split::adjust_size, tui_layout_split::apply): New
236 functions.
237 (tui_layout_split::add_split, tui_layout_split::add_split)
238 (tui_layout_split::set_weights_from_heights)
239 (tui_layout_split::set_weights_from_heights): New functions.
240
fb3184d8
TT
2412019-12-11 Tom Tromey <tom@tromey.com>
242
243 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
244 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
245 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
246 * tui/tui-data.h (struct tui_point): Remove.
247 (struct tui_gen_win_info) <origin>: Remove.
248 <x, y>: New fields.
249 * tui/tui-command.c (tui_cmd_window::resize): Update.
250
dc7ff8a6
TT
2512019-12-11 Tom Tromey <tom@tromey.com>
252
253 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
254 Implement.
255 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
256 Implement.
257 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
258 method.
259 (struct tui_win_info) <min_height>: Implement.
260
1431937b
TT
2612019-12-11 Tom Tromey <tom@tromey.com>
262
263 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
264 (struct tui_win_info) <can_box>: Update.
265
c8ec2f43
TT
2662019-12-11 Tom Tromey <tom@tromey.com>
267
268 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
269 method.
270 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
271 method.
272 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
273 method.
274 (struct tui_win_info) <max_height>: Now override.
275
4decd62b
JB
2762019-12-11 Joel Brobecker <brobecker@adacore.com>
277
278 * NEWS: Create a new section for the next release branch.
279 Rename the section of the current branch, now that it has
280 been cut.
281
d746744e
JB
2822019-12-11 Joel Brobecker <brobecker@adacore.com>
283
284 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
285 * version.in: Bump version to 10.0.50.DATE-git.
286
2e744276
TT
2872019-12-11 Tom Tromey <tromey@adacore.com>
288
289 PR build/25268:
290 * gdbsupport/thread-pool.c (set_thread_name): New function.
291 (thread_pool::set_thread_count): Don't call pthread_setname_np.
292 (thread_pool::thread_function): Call set_thread_name.
293
aac4760f
TT
2942019-12-11 Tom Tromey <tromey@adacore.com>
295
296 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
297 bfd_get_signed_8.
298
d8edc8b7
PW
2992019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
300
301 * NEWS: Document -raw-values option and the related setting commands.
302 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
303 only set it on when /r is given.
304 * valprint.c (value_print_option_defs): New element raw-values.
305 * Makefile.in: Add the new file.
306
cb511130
CB
3072019-12-10 Christian Biesinger <cbiesinger@google.com>
308
309 * gdbsupport/safe-strerror.c: Supress the unused function warning
310 for select_strerror_r.
311
ab7d13f0
CB
3122019-12-10 Christian Biesinger <cbiesinger@google.com>
313
314 * config.in: Regenerate.
315 * configure: Regenerate.
316 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
317 safe_strerror instead of strerror.
318 * gdbsupport/common.m4: Don't check for strerror.
319 * gdbsupport/safe-strerror.c: Support both the glibc version
320 of strerror_r and the XSI version.
321
6c71eb7d
TT
3222019-12-10 Tom Tromey <tromey@adacore.com>
323
324 * ada-typeprint.c (print_choices): Use a single "?".
325 (print_variant_part): Print "?" if the discriminant name
326 is not known.
327
bac7c5cf
GB
3282019-12-10 George Barrett <bob@bob131.so>
329
330 Fix scripted probe breakpoints.
331 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
332 declaration forward.
333 (breakpoint_ops_for_event_location_type)
334 (breakpoint_ops_for_event_location): Add function definitions.
335 (break_command_1, trace_command): Use
336 breakpoint_ops_for_event_location.
337 * breakpoint.h (breakpoint_ops_for_event_location): Add function
338 declarations.
339 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
340 breakpoint_ops_for_event_location.
341 * python/py-breakpoint.c (bppy_init): Use
342 breakpoint_ops_for_event_location.
343
330f1d38
TBA
3442019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
345
346 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
347 when ranking an lvalue argument for an rvalue parameter.
348
b1f0c0b9
WA
3492019-12-08 Wataru Ashihara <wataash@wataash.com>
350
351 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
352 template argument for scoped_restore_tmpl from bool to int.
353
aa2d5a42
KS
3542019-12-07 Keith Seitz <keiths@redhat.com>
355
356 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
357 (build_id_to_debug_bfd): Make static, rewriting to use
358 build_id_to_bfd_suffix.
359 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
360 adding `suffix' parameter. Append SUFFIX to file names
361 when searching for matching files.
362 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
363 (build_id_to_exec_bfd): Likewise.
364 * build-id.h (build_id_to_debug_bfd): Clarify that function
365 searches for BFD of debug info file.
366 (build_id_to_exec_bfd): Declare.
367 * corelow.c: Include build-id.h.
368 (locate_exec_from_corefile_build_id): New function.
369 (core_target_open): If no executable BFD is found,
370 search for a core file BFD using build-id.
371
dfb65191
CB
3722019-12-06 Christian Biesinger <cbiesinger@google.com>
373
374 * bcache.c: Put in namespace gdb.
375 * bcache.h: Likewise.
376 * gdbtypes.c (check_types_worklist): Update.
377 (types_deeply_equal): Update.
378 * macrotab.c (struct macro_table) <bcache>: Update.
379 (new_macro_table): Update.
380 * macrotab.h (struct bcache): Put this forward declaration
381 inside namespace gdb.
382 (new_macro_table): Update.
383 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
384 Update.
385 <macro_cache>: Update.
386 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
387
93e55f0a
TV
3882019-12-06 Tom de Vries <tdevries@suse.de>
389
390 PR symtab/24971
391 * block.c (best_symbol, better_symbol): New function.
392 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
393 decl.
394
06acc08f
TBA
3952019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
396
397 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
398 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
399 for ranking see-through reference cases.
400
e0fad1ea
PW
4012019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
402 * stack.c (faas_command): Check a command is provided.
403 * thread.c (taas_command, tfaas_command): Likewise.
404
908641f5
PW
4052019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
406 * inferior.c (prune_inferiors): Only call delete_inferior,
407 Do not modify the inferior list.
408
b858499d
SM
4092019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
410
411 * c-exp.y: Update calls to lookup_typename,
412 lookup_signed_typename and lookup_unsigned_typename.
413 * c-lang.c (evaluate_subexp_c): Likewise.
414 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
415 Likewise.
416 * eval.c (binop_promote): Likewise.
417 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
418 (lookup_unsigned_typename): Likewise.
419 (lookup_signed_typename): Likewise.
420 * gdbtypes.h (lookup_unsigned_typename): Likewise.
421 (lookup_signed_typename): Likewise.
422 (lookup_typename): Likewise.
423 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
424 lookup_typename, lookup_signed_typename,
425 lookup_unsigned_typename.
426 * m2-exp.y: Likewise.
427 * printcmd.c (printf_wide_c_string): Likewise.
428 (ui_printf): Likewise.
429 * python/py-type.c (typy_lookup_typename): Likewise.
430 * python/py-xmethods.c (python_xmethod_worker::invoke):
431 Likewise.
432 * rust-exp.y: Likewise.
433
3a8fa228
CB
4342019-12-04 Christian Biesinger <cbiesinger@google.com>
435
436 * configure.nat (obsd64): Add missing files x86-nat.o and
437 nat/x86-dregs.o.
438
2dbc041e
TT
4392019-12-04 Tom Tromey <tom@tromey.com>
440
441 * valprint.c (val_print_string): Use metadata_style.
442 * go-valprint.c (print_go_string): Use metadata style.
443 * p-valprint.c (pascal_object_print_static_field): Use metadata
444 style.
445 * cp-valprint.c (cp_print_static_field): Use metadata style.
446
36c8fb93
AB
4472019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
448 Chris January <chris.january@arm.com>
449
450 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
451 tokens.
452 (typebase): New patterns for complex, single/double precision, and
453 single/double complex.
454 (f77_keywords): Change token for complex keyword, and add single,
455 double, and precision keywords.
456
c6170c2c
SM
4572019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
458
459 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
460 "info io_registers".
461
894ecaf4
SM
4622019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
463
464 * regcache.c (cooked_read_test): Initialize thread list of
465 mock_inferior.
466
be155ebb
SM
4672019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * aarch64-linux-tdep.c: Remove includes.
470
c577cdd7
SM
4712019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
472
473 * aarch64-tdep.c: Remove includes.
474
610cfd61
SM
4752019-12-04 Simon Marchi <simon.marchi@efficios.com>
476
477 * filtered-iterator.h (filtered_iterator) <operator==,
478 operator!=>: Compare wrapped iterators, not wrapped pointers.
479 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
480 unittests/filtered_iterator-selftests.c.
481 * unittests/filtered_iterator-selftests.c: New file.
482
a05cf17a
TT
4832019-12-04 Tom Tromey <tromey@adacore.com>
484
485 * gdbtypes.c (create_range_type): Inherit endianity
486 from base type.
487
d5a22e77
TT
4882019-12-04 Tom Tromey <tromey@adacore.com>
489
490 * ada-lang.c (decode_constrained_packed_array)
491 (ada_value_assign, value_assign_to_component): Update.
492 * dwarf2loc.c (rw_pieced_value, access_memory)
493 (dwarf2_compile_expr_to_ax): Update.
494 * dwarf2read.c (dwarf2_add_field): Update.
495 * eval.c (evaluate_subexp_standard): Update.
496 * gdbarch.c, gdbarch.h: Rebuild.
497 * gdbarch.sh (bits_big_endian): Remove.
498 * gdbtypes.h (union field_location): Update comment.
499 * target-descriptions.c (make_gdb_type): Update.
500 * valarith.c (value_bit_index): Update.
501 * value.c (struct value) <bitpos>: Update comment.
502 (unpack_bits_as_long, modify_field): Update.
503 * value.h (value_bitpos): Update comment.
504
7ab4a236
TT
5052019-12-04 Tom Tromey <tromey@adacore.com>
506
507 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
508 endian-ness.
509
103a685e
TT
5102019-12-04 Tom Tromey <tromey@adacore.com>
511
512 * dwarf2read.c (dwarf2_init_float_type)
513 (dwarf2_init_complex_target_type): Add byte_order parameter.
514 (read_base_type): Compute byte order earlier.
515 * gdbtypes.c (init_float_type): Add byte_order parameter.
516 * gdbtypes.h (init_float_type): Add byte_order parameter.
517
7a9e9f9f
TT
5182019-12-04 Tom Tromey <tromey@adacore.com>
519
520 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
521
feee869b
TT
5222019-12-04 Tom Tromey <tromey@adacore.com>
523
524 * dwarf2read.c (process_structure_scope): Initialize
525 "discr_offset".
526
c2512106
AB
5272019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
528
529 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
530 add it into the search spec.
531 (parse_max_results_option): New function.
532 (mi_info_functions_or_variables): Parse -max-results flag and pass
533 it to mi_symbol_info.
534 (mi_cmd_symbol_info_modules): Likewise.
535 (mi_cmd_symbol_info_types): Likewise.
536 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
537 return type to bool, change result container into a set, and don't
538 add new results if we have enough already.
539 (global_symbol_searcher::add_matching_msymbols): Change return
540 type to bool, and don't add new results if we have enough already.
541 (sort_search_symbols_remove_dups): Delete.
542 (global_symbol_searcher::search): Early exit from search loop when
543 we have enough results. Use a std::set to collect the results
544 from calling add_matching_symbols.
545 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
546 member function.
547 (global_symbol_searcher) <m_max_search_results>: New member
548 variable.
549 (global_symbol_searcher) <add_matching_symbols>: Update header
550 comment and change return type to bool.
551 (global_symbol_searcher) <add_matching_msymbols>: Update header
552 comment and change return type to bool.
553
f97a63c5
AB
5542019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
555
556 * symtab.c (symbol_search::compare_search_syms): Update header
557 comment.
558 (global_symbol_searcher::is_suitable_msymbol): New function.
559 (global_symbol_searcher::expand_symtabs): New function.
560 (global_symbol_searcher::add_matching_symbols): New function.
561 (global_symbol_searcher::add_matching_msymbols): New function.
562 (global_symbol_searcher::search): Move most of the content
563 into the new functions above, and call them as needed.
564 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
565 function.
566 (global_symbol_searcher) <add_matching_symbols>: New member
567 function.
568 (global_symbol_searcher) <add_matching_msymbols>: New member
569 function.
570 (global_symbol_searcher) <is_suitable_msymbol>: New member
571 function.
572
293b38d6
AB
5732019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
576 -symbol-info-module-variables entries.
577 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
578 (mi_cmd_symbol_info_module_variables): Declare.
579 * mi/mi-symbol-cmds.c
580 (module_symbol_search_iterator): New typedef.
581 (output_module_symbols_in_single_module_and_file): New function.
582 (output_module_symbols_in_single_module): New function.
583 (mi_info_module_functions_or_variables): New function.
584 (mi_cmd_symbol_info_module_functions): New function.
585 (mi_cmd_symbol_info_module_variables): New function.
586 * NEWS: Mention new MI command.
587
4cbd39b2
CB
5882019-12-03 Christian Biesinger <cbiesinger@google.com>
589
590 * bcache.c (hash): Remove.
591 (hash_continue): Remove.
592 * bcache.h (hash): Remove.
593 (hash_continue): Remove.
594 (struct bcache) <ctor>: Update.
595 * psymtab.c (psymbol_hash): Update.
596 * stabsread.c (hashname): Update.
597 * utils.h (fast_hash): Add an argument for a start value,
598 defaulting to zero.
599
82f910ea
PW
6002019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
601 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
602 (destroy_block_symbol_cache): New function.
603 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
604 (resize_symbol_cache): Likewise.
605
de2396d0
TT
6062019-12-02 Tom Tromey <tom@tromey.com>
607
608 * unittests/tui-selftests.c (run_tests): Make conditional.
609 (_initialize_tui_selftest): Make conditional.
610
638d85bc
CB
6112019-12-02 Christian Biesinger <cbiesinger@google.com>
612
613 * aix-thread.c (debug_aix_thread): Change type to bool.
614
7532a164
LM
6152019-12-02 Luis Machado <luis.machado@linaro.org>
616
617 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
618
216a7e6b
AB
6192019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
620
621 * dwarf2read.c (read_tag_string_type): Read the fields required to
622 make a dynamic string, and possibly create a dynamic range for the
623 string.
624 (attr_to_dynamic_prop): Setup is_reference based on the type of
625 attribute being processed.
626 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
627 (resolve_dynamic_array): Rename to...
628 (resolve_dynamic_array_or_string): ...this, update header comment,
629 and accept TYPE_CODE_STRING.
630 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
631
11a8b164
AB
6322019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
633
634 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
635 of its implementation from...
636 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
637 the new function.
638
5bbd8269
AB
6392019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
640
641 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
642 create a range with stride where appropriate.
643 * f-valprint.c: Include 'gdbarch.h'.
644 (f77_print_array_1): Take the stride into account when walking the
645 array. Also convert the stride into addressable units.
646 * gdbtypes.c (create_range_type): Initialise the stride to
647 constant zero.
648 (create_range_type_with_stride): New function, initialise the
649 range as normal, and then setup the stride.
650 (has_static_range): Include the stride here. Also change the
651 return type to bool.
652 (create_array_type_with_stride): Consider the range stride if the
653 array isn't given its own stride.
654 (resolve_dynamic_range): Resolve the stride if needed.
655 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
656 (struct range_bounds) <flag_is_byte_stride>: New member variable.
657 (TYPE_BIT_STRIDE): Define.
658 (TYPE_ARRAY_BIT_STRIDE): Define.
659 (create_range_type_with_stride): Declare.
660 * valarith.c (value_subscripted_rvalue): Take range stride into
661 account when walking the array.
662
82e3b564
TT
6632019-12-01 Tom Tromey <tom@tromey.com>
664
665 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
666 specially.
667
517d261d
TT
6682019-12-01 Tom Tromey <tom@tromey.com>
669
670 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
671 \0.
672 * unittests/tui-selftests.c: New file.
673 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
674
484c9b64
TT
6752019-12-01 Tom Tromey <tom@tromey.com>
676
677 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
678
a2a7af0c
TT
6792019-12-01 Tom Tromey <tom@tromey.com>
680
681 * NEWS: Document new settings.
682 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
683 * tui/tui-win.c (_initialize_tui_win): Add border style
684 observers.
685 * tui/tui-io.h (tui_apply_style): Declare.
686 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
687 longer static.
688 (apply_ansi_escape, tui_set_reverse_mode): Update.
689 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
690 Add "skip_intensity" parameter.
691 <changed>: New member.
692 <do_set_value>: Declare.
693 (tui_border_style, tui_active_border_style): Declare.
694 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
695 globals.
696 (cli_style_option): Initialize "changed".
697 (cli_style_option::do_set_value): New function.
698 (cli_style_option::add_setshow_commands): Add "skip_intensity"
699 parameter. Update.
700 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
701 (_initialize_cli_style): Update. Create TUI border style
702 commands.
703
d1da6b01
TT
7042019-12-01 Tom Tromey <tom@tromey.com>
705
706 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
707 parameter.
708 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
709 parameter.
710 * tui/tui-win.h (compact_source): Declare.
711 * tui/tui-win.c (compact_source): New global.
712 (tui_set_compact_source, tui_show_compact_source): New functions.
713 (_initialize_tui_win): Add "compact-source" setting.
714 * tui/tui-source.c (tui_source_window::set_contents): Handle
715 compact_source setting.
716 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
717 * NEWS: Document new setting.
718
489dbda6
TT
7192019-11-30 Tom Tromey <tom@tromey.com>
720
721 * dwarf2read.c (dwarf2_add_field): Include field offset when
722 computing variant part length.
723
bf498525
PW
7242019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
725 * NEWS: Mention define-prefix. Tell that command names can now
726 contain a . character.
727
be09caf1
PW
7282019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
729
730 * command.h (valid_cmd_char_p): Declare.
731 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
732 the check of valid command char.
733 (find_command_name_length, valid_user_defined_cmd_name_p): Use
734 valid_cmd_char_p.
735 * cli/cli-script.c (validate_comname): Likewise.
736 * completer.c (gdb_completer_command_word_break_characters):
737 Do not remove . from the word break char, update comments.
738 (complete_line_internal_1): Use valid_cmd_char_p.
739 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
740 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
741
c6ac7fc9
PW
7422019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
743
744 * cli/cli-script.c (do_define_command): Ensure a redefined
745 prefix command is kept as a prefix command.
746 (define_prefix_command): New function.
747 (show_user_1): Report user defined prefixes.
748 (_initialize_cli_script): Create the new 'define-prefix' command.
749 Add completers for 'define' and 'document'.
750 * top.c (execute_command): If command is a user-defined prefix only
751 command, report the list of commands for this prefix command.
752
a992a3b0
TBA
7532019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
754
755 * valops.c (find_oload_champ): Improve debug output.
756
e9194a1a
TBA
7572019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
758
759 * valops.c (find_oload_champ): Print part of debug messages
760 before the badness vector is std::move'd.
761
53a008a6
TT
7622019-11-28 Tom Tromey <tom@tromey.com>
763
764 * value.c (creal_internal_fn): Fix comment.
765
bab05c83
TT
7662019-11-28 Tom Tromey <tom@tromey.com>
767
768 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
769 flag_bound_evaluated>: Now unsigned.
770
2522f049
TT
7712019-11-28 Tom Tromey <tom@tromey.com>
772
773 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
774 declare.
775
38b49e22
MS
7762019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
777
778 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
779 debug output.
780 * jit.c (jit_unregister_code): Add debug print to match
781 `jit_register_code`.
782
35125921
CB
7832019-11-27 Christian Biesinger <cbiesinger@google.com>
784
785 * NEWS: Mention the new multithreaded symbol loading.
786
62e77f56
CB
7872019-11-27 Christian Biesinger <cbiesinger@google.com>
788
789 * maint.c (n_worker_threads): Default to 0.
790 (worker_threads_disabled): New function.
791 * maint.h (worker_threads_disabled): New function.
792 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
793 here if worker_threads_disabled () is true.
794 (minimal_symbol_reader::install): Skip all threading if
795 worker_threads_disabled () is true.
796
f29d7f6b
CB
7972019-11-27 Christian Biesinger <cbiesinger@google.com>
798
799 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
800 hash code if possible.
801 (add_minsym_to_demangled_hash_table): Likewise.
802 (minimal_symbol_reader::install): Compute the hash codes for msymbol
803 on the background thread.
804 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
805 Add these fields.
806
e76b2246
CB
8072019-11-27 Christian Biesinger <cbiesinger@google.com>
808
809 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
810 of the mangled name on the background thread.
811 * symtab.c (symbol_set_names): Allow passing in the hash of the
812 linkage_name.
813 * symtab.h (symbol_set_names): Likewise.
814
8d9a2568
KB
8152019-11-27 Kevin Buettner <kevinb@redhat.com>
816
817 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
818 physnames are computed for inherited DIEs.
819
fad03f6e
TT
8202019-11-27 Tom Tromey <tromey@adacore.com>
821
822 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
823 backslashes.
824 * cp-support.c: Remove unnecessary backslashes.
825
43678b0a
CB
8262019-11-27 Christian Biesinger <cbiesinger@google.com>
827
828 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
829 with sym->set_linkage_name.
830 * coffread.c (coff_read_enum_type): Likewise.
831 * mdebugread.c (parse_symbol): Likewise.
832 * stabsread.c (patch_block_stabs): Likewise.
833 (define_symbol): Likewise.
834 (read_enum_type): Likewise.
835 (common_block_end): Likewise.
836 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
837 function.
838 (SYMBOL_SET_LINKAGE_NAME): Remove.
839 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
840 with sym->set_linkage_name.
841
db5960b4
AB
8422019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
843
844 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
845 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
846 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
847 * NEWS: Mention new MI command.
848
7dc42066
AB
8492019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
850
851 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
852 '-symbol-info-types', and '-symbol-info-variables'.
853 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
854 (mi_cmd_symbol_info_types): Declare.
855 (mi_cmd_symbol_info_variables): Declare.
856 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
857 (output_debug_symbol): New function.
858 (output_nondebug_symbol): New function.
859 (mi_symbol_info): New function.
860 (mi_info_functions_or_variables): New function.
861 (mi_cmd_symbol_info_functions): New function.
862 (mi_cmd_symbol_info_types): New function.
863 (mi_cmd_symbol_info_variables): New function.
864 * NEWS: Mention new commands.
865
5f512a7d
AB
8662019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
867
868 * symtab.c (symbol_to_info_string): New function, most content
869 moved from print_symbol_info, but updated to return a std::string.
870 (print_symbol_info): Update to use symbol_to_info_string and print
871 returned string.
872 * symtab.h (symbol_to_info_string): Declare new function.
873
470c0b1c
AB
8742019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
875
876 * python/python.c (gdbpy_rbreak): Convert to using
877 global_symbol_searcher.
878 * symtab.c (file_matches): Convert return type to bool, change
879 file list to std::vector, update header comment.
880 (search_symbols): Rename to...
881 (global_symbol_searcher::search): ...this and update now its
882 a member function of global_symbol_searcher. Take account of the
883 changes to file_matches.
884 (symtab_symbol_info): Convert to using global_symbol_searcher.
885 (rbreak_command): Likewise.
886 (search_module_symbols): Likewise.
887 * symtab.h (enum symbol_search): Update comment.
888 (search_symbols): Remove declaration.
889 (class global_symbol_searcher): New class.
890
57357d9d
TT
8912019-11-26 Tom Tromey <tromey@adacore.com>
892
893 * cp-support.c (_initialize_cp_support): Conditionally initialize
894 gdb_demangle_attempt_core_dump.
895
3ea16160
TT
8962019-11-26 Tom Tromey <tom@tromey.com>
897
898 * python/py-function.c (fnpy_init): Update.
899 * value.h (add_internal_function): Adjust declaration.
900 * value.c (function_destroyer): Remove.
901 (do_add_internal_function): Don't set destroyer or copy name.
902 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
903 Set name_allocated.
904 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
905 (cmdpy_init): Set name_allocated.
906 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
907 member.
908 (~cmd_list_element): Free "name" if needed.
909
1a6d41c6
TT
9102019-11-26 Tom Tromey <tom@tromey.com>
911
912 * value.h (add_internal_function): Add new overload. Move
913 documentation from value.h.
914 * value.c (do_add_internal_function): New function.
915 (add_internal_function): Use it. Add new overload.
916 (function_destroyer): Don't free doc.
917 * python/py-function.c (fnpy_init): Update.
918
8318f3c3
TT
9192019-11-26 Tom Tromey <tom@tromey.com>
920
921 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
922 (cmdpy_init): Set "doc_allocated".
923
4da8c3a8
TT
9242019-11-26 Tom Tromey <tom@tromey.com>
925
926 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
927 name of worker thread.
928 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
929 pthread_setname_np.
930 * configure, config.in: Rebuild.
931
971db5e2
TT
9322019-11-26 Tom Tromey <tom@tromey.com>
933
934 * python/python.c (class gdbpy_gil): New.
935 (struct gdbpy_event): Add constructor, destructor, operator().
936 (gdbpy_post_event): Use run_on_main_thread.
937 (gdbpy_initialize_events): Remove.
938 (do_start_initialization): Update.
939
22138db6
TT
9402019-11-26 Tom Tromey <tom@tromey.com>
941
942 * NEWS: Add entry.
943 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
944 commands. Call update_thread_pool_size.
945 (update_thread_pool_size, maintenance_set_worker_threads): New
946 functions.
947 (n_worker_threads): New global.
948
d55c9a68
TT
9492019-11-26 Christian Biesinger <cbiesinger@google.com>
950 Tom Tromey <tom@tromey.com>
951
952 * minsyms.c (minimal_symbol_reader::install): Use
953 parallel_for_each.
954 * gdbsupport/parallel-for.h: New file.
955 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
956
a0b57563
CB
9572019-11-26 Christian Biesinger <cbiesinger@google.com>
958 Tom Tromey <tom@tromey.com>
959
960 * gdbsupport/thread-pool.h: New file.
961 * gdbsupport/thread-pool.c: New file.
962 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
963 (HFILES_NO_SRCDIR): Add thread-pool.h.
964
3b3978bc
TT
9652019-11-26 Tom Tromey <tom@tromey.com>
966
967 * event-top.h (thread_local_segv_handler): Declare.
968 * event-top.c (thread_local_segv_handler): New global.
969 (install_handle_sigsegv, handle_sigsegv): New functions.
970 (async_init_signals): Install SIGSEGV handler.
971 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
972 thread-local.
973 (report_failed_demangle): New function.
974 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
975 handler-setting code, instead use segv_handler. Run warning code
976 on main thread.
977
9411c49e
TT
9782019-11-26 Tom Tromey <tom@tromey.com>
979
980 * run-on-main-thread.c: New file.
981 * run-on-main-thread.h: New file.
982 * unittests/main-thread-selftests.c: New file.
983 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
984 main-thread-selftests.c.
985 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
986 (COMMON_SFILES): Add run-on-main-thread.c.
987
c3efb965
TT
9882019-11-26 Tom Tromey <tom@tromey.com>
989
990 * main.c (setup_alternate_signal_stack): Remove.
991 (captured_main_1): Use gdb::alternate_signal_stack.
992 * gdbsupport/alt-stack.h: New file.
993
21987b9c
TT
9942019-11-26 Tom Tromey <tom@tromey.com>
995
996 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
997 Remove comment.
998 (save_original_signals_state, restore_original_signals_state): Use
999 gdb_sigmask.
1000 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1001 (_initialize_linux_nat): Use gdb_sigmask.
1002 * guile/guile.c (_initialize_guile): Use block_signals.
1003 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1004 * gdbsupport/gdb-sigmask.h: New file.
1005 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1006 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1007 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1008 pthread_sigmask.
1009 * configure, config.in: Rebuild.
1010 * gdbsupport/block-signals.h: New file.
1011
5e030278
TT
10122019-11-26 Tom Tromey <tom@tromey.com>
1013
1014 * acinclude.m4: Include ax_pthread.m4.
1015 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1016 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1017 (CLIBS): Use PTHREAD_LIBS.
1018 (aclocal_m4_deps): Add ax_pthread.m4.
1019 * config.in, configure: Rebuild.
1020 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1021
5a79c107
TT
10222019-11-26 Tom Tromey <tom@tromey.com>
1023
1024 * symtab.h (struct minimal_symbol) <name_set>: New member.
1025 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1026 Don't call symbol_set_names.
1027 (minimal_symbol_reader::install): Call symbol_set_names.
1028
aa369509
PW
10292019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1030
1031 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1032 restore_active_ext_lang, as GIL is needed for (indirectly)
1033 called PyOS_InterruptOccurred.
1034
cadc9cb8
SM
10352019-11-26 Simon Marchi <simon.marchi@efficios.com>
1036
1037 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1038 definition.
1039
d04afd58
SM
10402019-11-26 Simon Marchi <simon.marchi@efficios.com>
1041
1042 * remote-sim.c (simulator_command): Make static, remove
1043 declaration.
1044
dd694d77
SM
10452019-11-26 Simon Marchi <simon.marchi@efficios.com>
1046
1047 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1048 static.
1049 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1050 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1051 (main): Likewise.
1052 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1053 (main): Likewise.
1054 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1055 (main): Likewise.
1056 * unittests/basic_string_view/element_access/char/1.cc (test01):
1057 Likewise.
1058 (main): Likewise.
1059 * unittests/basic_string_view/element_access/char/empty.cc (main):
1060 Likewise.
1061 * unittests/basic_string_view/element_access/char/front_back.cc
1062 (test01): Likewise.
1063 (main): Likewise.
1064 * unittests/basic_string_view/inserters/char/2.cc (test05):
1065 Likewise.
1066 (main): Likewise.
1067 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1068 (test01): Likewise.
1069 (main): Likewise.
1070 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1071 (test01): Likewise.
1072 (main): Likewise.
1073 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1074 Likewise.
1075 * unittests/basic_string_view/operations/compare/char/1.cc
1076 (test01): Likewise.
1077 (main): Likewise.
1078 * unittests/basic_string_view/operations/compare/char/13650.cc
1079 (test01): Likewise.
1080 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1081 Likewise.
1082 (main): Likewise.
1083 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1084 Likewise.
1085 (main): Likewise.
1086 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1087 Likewise.
1088 (main): Likewise.
1089 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1090 Likewise.
1091 (main): Likewise.
1092 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1093 Likewise.
1094 (main): Likewise.
1095 * unittests/basic_string_view/operations/find/char/4.cc (main):
1096 Likewise.
1097 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1098 Likewise.
1099 (main): Likewise.
1100 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1101 Likewise.
1102 (main): Likewise.
1103 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1104 Likewise.
1105 (main): Likewise.
1106 * unittests/basic_string_view/operations/substr/char/1.cc
1107 (test01): Likewise.
1108 (main): Likewise.
1109 * unittests/basic_string_view/operators/char/2.cc (main):
1110 Likewise.
1111 * unittests/optional/assignment/1.cc (test): Likewise.
1112 * unittests/optional/assignment/2.cc (test): Likewise.
1113 * unittests/optional/assignment/3.cc (test): Likewise.
1114 * unittests/optional/assignment/4.cc (test): Likewise.
1115 * unittests/optional/assignment/5.cc (test): Likewise.
1116 * unittests/optional/assignment/6.cc (test): Likewise.
1117 * unittests/optional/assignment/7.cc (test): Likewise.
1118 * unittests/optional/cons/copy.cc (test): Likewise.
1119 * unittests/optional/cons/default.cc (test): Likewise.
1120 * unittests/optional/cons/move.cc (test): Likewise.
1121 * unittests/optional/cons/value.cc (test): Likewise.
1122 * unittests/optional/in_place.cc (test): Likewise.
1123 * unittests/optional/observers/1.cc (test): Likewise.
1124 * unittests/optional/observers/2.cc (test): Likewise.
1125
3b5c1d49
SM
11262019-11-26 Simon Marchi <simon.marchi@efficios.com>
1127
1128 * tui-win.h (tui_set_var_cmd): Remove.
1129 * tui-win.c (tui_set_var_cmd): Make static.
1130
adce99fe
SM
11312019-11-26 Simon Marchi <simon.marchi@efficios.com>
1132
1133 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1134 rbreak_command_wrapper): Remove.
1135 * symtab.c (rbreak_command_wrapper): Remove.
1136
fe3adccf
SM
11372019-11-26 Simon Marchi <simon.marchi@efficios.com>
1138
1139 * inferior.h (info_terminal_command): Remove declaration.
1140 * inflow.c (info_terminal_command): Make static.
1141
b926335f
SM
11422019-11-26 Simon Marchi <simon.marchi@efficios.com>
1143
1144 * inferior.c (exit_inferior_silent): Remove.
1145
b62f6f54
SM
11462019-11-26 Simon Marchi <simon.marchi@efficios.com>
1147
1148 * dictionary.c (dict_empty, mdict_empty): Remove.
1149 * dictionary.c (mdict_empty): Remove.
1150
cb8c24b6
SM
11512019-11-26 Simon Marchi <simon.marchi@efficios.com>
1152
1153 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1154 (arc_insn_get_memory_offset): Likewise.
1155 (arc_insn_dump): Likewise.
1156 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1157 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1158 * dictionary.c (dict_iterator_next): Likewise.
1159 (dict_iter_match_first): Likewise.
1160 (dict_iter_match_next): Likewise.
1161 * f-lang.c (evaluate_subexp_f): Likewise.
1162 * hppa-tdep.c (hppa_read_pc): Likewise.
1163 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1164 * parse.c (write_exp_elt_msym): Likewise.
1165 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1166 * remote.c (remote_packet_size): Likewise.
1167 (remote_notif_stop_parse): Likewise.
1168 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1169 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1170 * source.c (prepare_path_for_appending): Likewise.
1171 * sparc64-linux-tdep.c
1172 (sparc64_linux_handle_segmentation_fault); Likewise.
1173 * stack.c (frame_selection_by_function_completer): Likewise.
1174
781597ff
SM
11752019-11-26 Simon Marchi <simon.marchi@efficios.com>
1176
1177 * completer.c (set_gdb_completion_word_break_characters):
1178 Remove.
1179
23baa4cc
SM
11802019-11-26 Simon Marchi <simon.marchi@efficios.com>
1181
1182 * dwarf-index-write.c: Include dwarf-index-write.h.
1183 * mi/mi-interp.c: Include mi/mi-interp.h.
1184
23767560
SM
11852019-11-26 Simon Marchi <simon.marchi@efficios.com>
1186
1187 * aarch32-tdep.c: Include aarch32-tdep.h.
1188 * aarch32-tdep.h: Forward-declare struct target_desc.
1189
6d91ce9a
CB
11902019-11-26 Christian Biesinger <cbiesinger@google.com>
1191
1192 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1193 strerror.
1194 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1195 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1196
3cf2f237
TV
11972019-11-25 Tom de Vries <tdevries@suse.de>
1198
1199 * contrib/words.sh: Add -c option.
1200
5b89c67a
CB
12012019-11-25 Christian Biesinger <cbiesinger@google.com>
1202
1203 * solib.c (solib_find_1): Change int to bool.
1204 (exec_file_find): Change int to bool.
1205 (solib_find): Change int to bool.
1206 (solib_read_symbols): Change int to bool.
1207 (solib_used): Change int to bool.
1208 (solib_add): Change int to bool.
1209 (info_sharedlibrary_command): Change int to bool.
1210 (solib_contains_address_p): Change int to bool.
1211 (solib_keep_data_in_core): Change int to bool.
1212 (in_solib_dynsym_resolve_code): Change int to bool.
1213 (reload_shared_libraries_1): Change int to bool.
1214 (gdb_sysroot_changed): Change int to bool.
1215 * solib.h (solib_read_symbols): Change int to bool.
1216 (solib_contains_address_p): Change int to bool.
1217 (solib_keep_data_in_core): Change int to bool.
1218 (in_solib_dynsym_resolve_code): Change int to bool.
1219 (libpthread_name_p): Change int to bool.
1220
6cc8564b
LM
12212019-11-25 Luis Machado <luis.machado@linaro.org>
1222
1223 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1224 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1225 (remote_packet_max_chars): New static global.
1226 (show_remote_packet_max_chars): New function.
1227 (remote_target::putpkt_binary): Adjust to use new
1228 remote_packet_max_chars option.
1229 (remote_target::getpkt_or_notif_sane_1): Likewise.
1230 (_initialize_remote): Register new remote-packet-max-chars option.
1231
a7cdaa91
SM
12322019-11-24 Simon Marchi <simon.marchi@efficios.com>
1233
1234 * m68k-linux-nat.c: Include gdbarch.h.
1235
26abc753
TT
12362019-11-24 Tom Tromey <tom@tromey.com>
1237
1238 * symfile.c (read_symbols): Update.
1239 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1240 bool.
1241 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1242 (psym_lookup_symbol, psym_find_last_source_symtab)
1243 (psym_forget_cached_source_info, psym_print_stats)
1244 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1245 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1246 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1247 (psym_find_compunit_symtab_by_address)
1248 (maintenance_print_psymbols, maintenance_info_psymtabs)
1249 (maintenance_check_psymtabs): Update.
1250 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1251 bool.
1252
012fc909
TT
12532019-11-22 Tom Tromey <tom@tromey.com>
1254
1255 * observable.h: Update comments.
1256
c83d8d32
TT
12572019-11-22 Tom Tromey <tromey@adacore.com>
1258
1259 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1260 (print_ada_task_info): Don't try to fetch thread id if task is not
1261 alive.
1262
987012b8
CB
12632019-11-22 Christian Biesinger <cbiesinger@google.com>
1264
1265 * ada-exp.y: Update.
1266 * ada-lang.c (sort_choices): Update.
1267 (ada_print_symbol_signature): Update.
1268 (resolve_subexp): Update.
1269 (ada_parse_renaming): Update.
1270 (ada_read_renaming_var_value): Update.
1271 (lesseq_defined_than): Update.
1272 (remove_extra_symbols): Update.
1273 (remove_irrelevant_renamings): Update.
1274 (ada_add_block_symbols): Update.
1275 (ada_collect_symbol_completion_matches): Update.
1276 (ada_is_renaming_symbol): Update.
1277 (aggregate_assign_from_choices): Update.
1278 (ada_evaluate_subexp): Update.
1279 (ada_has_this_exception_support): Update.
1280 (ada_is_non_standard_exception_sym): Update.
1281 (ada_add_exceptions_from_frame): Update.
1282 (ada_add_global_exceptions): Update.
1283 (ada_print_subexp): Update.
1284 * ax-gdb.c (gen_var_ref): Update.
1285 (gen_maybe_namespace_elt): Update.
1286 (gen_expr_for_cast): Update.
1287 (gen_expr): Update.
1288 * block.h: Update.
1289 * blockframe.c (find_pc_partial_function): Update.
1290 * breakpoint.c (print_breakpoint_location): Update.
1291 (update_static_tracepoint): Update.
1292 * btrace.c (ftrace_print_function_name): Update.
1293 (ftrace_function_switched): Update.
1294 * buildsym.c (find_symbol_in_list): Update.
1295 * c-exp.y: Update.
1296 * c-typeprint.c (c_print_typedef): Update.
1297 (c_type_print_template_args): Update.
1298 * cli/cli-cmds.c (edit_command): Update.
1299 (list_command): Update.
1300 (print_sal_location): Update.
1301 * coffread.c (patch_opaque_types): Update.
1302 (process_coff_symbol): Update.
1303 (coff_read_enum_type): Update.
1304 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1305 (convert_one_symbol): Update.
1306 (hash_symname): Update.
1307 (eq_symname): Update.
1308 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1309 * compile/compile-cplus-types.c (debug_print_scope): Update.
1310 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1311 * compile/compile-object-load.c (get_out_value_type): Update.
1312 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1313 (search_symbol_list): Update.
1314 (cp_lookup_symbol_imports_or_template): Update.
1315 * cp-support.c (overload_list_add_symbol): Update.
1316 * ctfread.c (psymtab_to_symtab): Update.
1317 * dbxread.c (cp_set_block_scope): Update.
1318 * dictionary.c (iter_match_first_hashed): Update.
1319 (iter_match_next_hashed): Update.
1320 (insert_symbol_hashed): Update.
1321 (iter_match_next_linear): Update.
1322 * dictionary.h: Update.
1323 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1324 (locexpr_describe_location_piece): Update.
1325 (locexpr_describe_location_1): Update.
1326 (locexpr_generate_c_location): Update.
1327 (loclist_describe_location): Update.
1328 (loclist_generate_c_location): Update.
1329 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1330 (read_func_scope): Update.
1331 (process_enumeration_scope): Update.
1332 (new_symbol): Update.
1333 (dwarf2_const_value): Update.
1334 (dwarf2_symbol_mark_computed): Update.
1335 * eval.c (evaluate_funcall): Update.
1336 (evaluate_subexp_standard): Update.
1337 * expprint.c (print_subexp_standard): Update.
1338 (dump_subexp_body_standard): Update.
1339 * f-valprint.c (info_common_command_for_block): Update.
1340 * findvar.c (get_hosting_frame): Update.
1341 (default_read_var_value): Update.
1342 * go-lang.c (go_symbol_package_name): Update.
1343 * guile/scm-block.c (bkscm_print_block_smob): Update.
1344 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1345 (gdbscm_symbol_name): Update.
1346 (gdbscm_symbol_linkage_name): Update.
1347 (gdbscm_symbol_print_name): Update.
1348 * infcall.c (get_function_name): Update.
1349 * infcmd.c (jump_command): Update.
1350 (finish_command): Update.
1351 * infrun.c (insert_exception_resume_breakpoint): Update.
1352 * linespec.c (canonicalize_linespec): Update.
1353 (create_sals_line_offset): Update.
1354 (convert_linespec_to_sals): Update.
1355 (complete_label): Update.
1356 (find_label_symbols_in_block): Update.
1357 * m2-typeprint.c (m2_print_typedef): Update.
1358 * mdebugread.c (mdebug_reg_to_regnum): Update.
1359 (parse_symbol): Update.
1360 (mylookup_symbol): Update.
1361 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1362 (list_args_or_locals): Update.
1363 * objc-lang.c (compare_selectors): Update.
1364 (info_selectors_command): Update.
1365 (compare_classes): Update.
1366 (info_classes_command): Update.
1367 (find_imps): Update.
1368 * p-typeprint.c (pascal_print_typedef): Update.
1369 * printcmd.c (build_address_symbolic): Update.
1370 (info_address_command): Update.
1371 (print_variable_and_value): Update.
1372 * python/py-framefilter.c (extract_sym): Update.
1373 (py_print_single_arg): Update.
1374 * python/py-symbol.c (sympy_str): Update.
1375 (sympy_get_name): Update.
1376 (sympy_get_linkage_name): Update.
1377 * python/python.c (gdbpy_rbreak): Update.
1378 * record-btrace.c (btrace_get_bfun_name): Update.
1379 (btrace_call_history): Update.
1380 * rust-lang.c (rust_print_typedef): Update.
1381 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1382 * stabsread.c (stab_reg_to_regnum): Update.
1383 (define_symbol): Update.
1384 (read_enum_type): Update.
1385 (common_block_end): Update.
1386 (cleanup_undefined_types_1): Update.
1387 (scan_file_globals): Update.
1388 * stack.c (print_frame_arg): Update.
1389 (print_frame_args): Update.
1390 (find_frame_funname): Update.
1391 (info_frame_command_core): Update.
1392 (iterate_over_block_locals): Update.
1393 (print_block_frame_labels): Update.
1394 (do_print_variable_and_value): Update.
1395 (iterate_over_block_arg_vars): Update.
1396 (return_command): Update.
1397 * symmisc.c (dump_symtab_1): Update.
1398 (print_symbol): Update.
1399 * symtab.c (eq_symbol_entry): Update.
1400 (symbol_cache_dump): Update.
1401 (lookup_language_this): Update.
1402 (find_pc_sect_line): Update.
1403 (skip_prologue_sal): Update.
1404 (symbol_search::compare_search_syms): Update.
1405 (treg_matches_sym_type_name): Update.
1406 (search_symbols): Update.
1407 (print_symbol_info): Update.
1408 (rbreak_command): Update.
1409 (completion_list_add_symbol): Update.
1410 (find_gnu_ifunc): Update.
1411 (get_symbol_address): Update.
1412 (search_module_symbols): Update.
1413 (info_module_subcommand): Update.
1414 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1415 (SYMBOL_LINKAGE_NAME): Remove.
1416 (SYMBOL_DEMANGLED_NAME): Remove.
1417 (SYMBOL_PRINT_NAME): Remove.
1418 (SYMBOL_SEARCH_NAME): Remove.
1419 * tracepoint.c (set_traceframe_context): Update.
1420 (validate_actionline): Update.
1421 (collection_list::collect_symbol): Update.
1422 (encode_actions_1): Update.
1423 (info_scope_command): Update.
1424 (print_one_static_tracepoint_marker): Update.
1425 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1426 * valops.c (address_of_variable): Update.
1427 (find_overload_match): Update.
1428 (find_oload_champ): Update.
1429
c9d95fa3
CB
14302019-11-22 Christian Biesinger <cbiesinger@google.com>
1431
1432 * ada-lang.c (ada_lookup_simple_minsym): Update.
1433 (ada_collect_symbol_completion_matches): Update.
1434 * ada-tasks.c (read_atcb): Update.
1435 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1436 (amd64_windows_skip_trampoline_code): Update.
1437 * arm-tdep.c (skip_prologue_function): Update.
1438 (arm_skip_stack_protector): Update.
1439 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1440 (arm_wince_skip_main_prologue): Update.
1441 * ax-gdb.c (gen_expr): Update.
1442 * block.c (call_site_for_pc): Update.
1443 * blockframe.c (find_pc_partial_function): Update.
1444 * breakpoint.c (set_breakpoint_location_function): Update.
1445 * btrace.c (ftrace_print_function_name): Update.
1446 (ftrace_function_switched): Update.
1447 * c-valprint.c (print_unpacked_pointer): Update.
1448 * coffread.c (coff_symfile_read): Update.
1449 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1450 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1451 * dwarf-index-write.c (write_psymbols): Update.
1452 * dwarf2loc.c (call_site_to_target_addr): Update.
1453 (func_verify_no_selftailcall): Update.
1454 (tailcall_dump): Update.
1455 (call_site_find_chain_1): Update.
1456 (dwarf_expr_reg_to_entry_parameter): Update.
1457 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1458 * eval.c (evaluate_funcall): Update.
1459 (evaluate_subexp_standard): Update.
1460 (evaluate_subexp_for_sizeof): Update.
1461 * expprint.c (print_subexp_standard): Update.
1462 (dump_subexp_body_standard): Update.
1463 * frame.c (get_prev_frame_always_1): Update.
1464 * frv-tdep.c (frv_skip_main_prologue): Update.
1465 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1466 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1467 (gnuv3_get_typename_from_type_info): Update.
1468 (gnuv3_skip_trampoline): Update.
1469 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1470 * i386-tdep.c (i386_skip_main_prologue): Update.
1471 (i386_pe_skip_trampoline_code): Update.
1472 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1473 * infcall.c (get_function_name): Update.
1474 * linespec.c (minsym_found): Update.
1475 * linux-fork.c (info_checkpoints_command): Update.
1476 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1477 (m32c_m16c_pointer_to_address): Update.
1478 * maint.c (maintenance_translate_address): Update.
1479 * minsyms.c (add_minsym_to_hash_table): Update.
1480 (add_minsym_to_demangled_hash_table): Update.
1481 (lookup_minimal_symbol_mangled): Update.
1482 (lookup_minimal_symbol_demangled): Update.
1483 (lookup_minimal_symbol_linkage): Update.
1484 (lookup_minimal_symbol_text): Update.
1485 (lookup_minimal_symbol_by_pc_name): Update.
1486 (minimal_symbol_is_less_than): Update.
1487 (compact_minimal_symbols): Update.
1488 (build_minimal_symbol_hash_tables): Update.
1489 (find_solib_trampoline_target): Update.
1490 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1491 (mips_skip_pic_trampoline_code): Update.
1492 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1493 * objc-lang.c (info_selectors_command): Update.
1494 (info_classes_command): Update.
1495 (find_methods): Update.
1496 (find_imps): Update.
1497 * p-valprint.c (pascal_val_print): Update.
1498 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1499 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1500 * printcmd.c (build_address_symbolic): Update.
1501 (info_symbol_command): Update.
1502 * psymtab.c (psymbol_name_matches): Update.
1503 (match_partial_symbol): Update.
1504 (lookup_partial_symbol): Update.
1505 (print_partial_symbols): Update.
1506 (sort_pst_symbols): Update.
1507 (maintenance_check_psymtabs): Update.
1508 * python/py-framefilter.c (py_print_frame): Update.
1509 * python/python.c (gdbpy_rbreak): Update.
1510 * record-btrace.c (btrace_get_bfun_name): Update.
1511 (btrace_call_history): Update.
1512 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1513 (rs6000_skip_trampoline_code): Update.
1514 * sol-thread.c (info_cb): Update.
1515 * stabsread.c (scan_file_globals): Update.
1516 * stack.c (find_frame_funname): Update.
1517 (info_frame_command_core): Update.
1518 * symmisc.c (dump_msymbols): Update.
1519 * symtab.c (symbol_natural_name): Rename to..,
1520 (general_symbol_info::natural_name): ...this.
1521 (symbol_demangled_name): Rename to...
1522 (general_symbol_info::demangled_name): ...this.
1523 (symbol_search_name): Rename to...
1524 (general_symbol_info::search_name): ...this.
1525 (symbol_matches_search_name): Update.
1526 (find_pc_sect_line): Update.
1527 (skip_prologue_sal): Update.
1528 (search_symbols): Update.
1529 (print_msymbol_info): Update.
1530 (rbreak_command): Update.
1531 (completion_list_add_msymbol): Update.
1532 (completion_list_objc_symbol): Update.
1533 (get_msymbol_address): Update.
1534 * symtab.h (struct general_symbol_info): Add member functions
1535 natural_name (), linkage_name (), print_name (), demangled_name (),
1536 and search_name ().
1537 (SYMBOL_NATURAL_NAME): Update.
1538 (symbol_natural_name): Move to a member function on general_symbol_info.
1539 (SYMBOL_DEMANGLED_NAME): Update.
1540 (symbol_demangled_name): Move to a member function on
1541 general_symbol_info.
1542 (SYMBOL_SEARCH_NAME): Update.
1543 (symbol_search_name): Move to a member function on general_symbol_info.
1544 (MSYMBOL_NATURAL_NAME): Remove.
1545 (MSYMBOL_LINKAGE_NAME): Remove.
1546 (MSYMBOL_PRINT_NAME): Remove.
1547 (MSYMBOL_DEMANGLED_NAME): Remove.
1548 (MSYMBOL_SEARCH_NAME): Remove.
1549 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1550
f8bab2d6
CB
15512019-11-22 Christian Biesinger <cbiesinger@google.com>
1552
1553 * symtab.c (create_demangled_names_hash): Use per_bfd->
1554 minimal_symbol_count for computing the initial size, if greater
1555 than our default size.
1556
85e7588d
TV
15572019-11-22 Tom de Vries <tdevries@suse.de>
1558
1559 * contrib/words.sh: Improve words extraction.
1560
f6180073
TV
15612019-11-22 Tom de Vries <tdevries@suse.de>
1562
1563 * contrib/words.sh: Combine sed invocations.
1564
f10ffa41
CB
15652019-11-21 Christian Biesinger <cbiesinger@google.com>
1566
1567 * Makefile.in: Update.
1568 * demangle.c: Rename to...
1569 * gdb-demangle.c: ..this.
1570 (is_cplus_marker): Change return type to bool.
1571 (_initialize_demangler): Rename to...
1572 (_initialize_gdb_demangle): ...this.
1573 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1574 * symtab.h (demangle): Remove declaration; instead include
1575 gdb-demangle.h.
1576
6ba18521
TT
15772019-11-21 Tom Tromey <tromey@adacore.com>
1578
1579 * gdbsupport/format.c (format_pieces): Parse %I64d.
1580 * unittests/format_pieces-selftests.c (test_windows_formats): New
1581 function.
1582 (run_tests): Call it.
1583
34877895
PJ
15842019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1585
1586 Byte reverse display of variables with DW_END_big, DW_END_little
1587 (DW_AT_endianity) dwarf attributes if different than the native
1588 byte order.
1589 * ada-lang.c (ada_value_binop):
1590 Use type_byte_order instead of gdbarch_byte_order.
1591 * ada-valprint.c (printstr):
1592 (ada_val_print_string):
1593 * ada-lang.c (value_pointer):
1594 (ada_value_binop):
1595 Use type_byte_order instead of gdbarch_byte_order.
1596 * c-lang.c (c_get_string):
1597 Use type_byte_order instead of gdbarch_byte_order.
1598 * c-valprint.c (c_val_print_array):
1599 Use type_byte_order instead of gdbarch_byte_order.
1600 * cp-valprint.c (cp_print_class_member):
1601 Use type_byte_order instead of gdbarch_byte_order.
1602 * dwarf2loc.c (rw_pieced_value):
1603 Use type_byte_order instead of gdbarch_byte_order.
1604 * dwarf2read.c (read_base_type): Handle DW_END_big,
1605 DW_END_little
1606 * f-lang.c (f_get_encoding):
1607 Use type_byte_order instead of gdbarch_byte_order.
1608 * findvar.c (default_read_var_value):
1609 Use type_byte_order instead of gdbarch_byte_order.
1610 * gdbtypes.c (check_types_equal):
1611 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1612 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1613 and TYPE_ENDIANITY_LITTLE if set.
1614 (type_byte_order): new function.
1615 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1616 (struct main_type) <flag_endianity_not_default>:
1617 New field.
1618 (type_byte_order): New function.
1619 * infcmd.c (default_print_one_register_info):
1620 Use type_byte_order instead of gdbarch_byte_order.
1621 * p-lang.c (pascal_printstr):
1622 Use type_byte_order instead of gdbarch_byte_order.
1623 * p-valprint.c (pascal_val_print):
1624 Use type_byte_order instead of gdbarch_byte_order.
1625 * printcmd.c (print_scalar_formatted):
1626 Use type_byte_order instead of gdbarch_byte_order.
1627 * solib-darwin.c (darwin_current_sos):
1628 Use type_byte_order instead of gdbarch_byte_order.
1629 * solib-svr4.c (solib_svr4_r_ldsomap):
1630 Use type_byte_order instead of gdbarch_byte_order.
1631 * stap-probe.c (stap_modify_semaphore):
1632 Use type_byte_order instead of gdbarch_byte_order.
1633 * target-float.c (target_float_same_format_p):
1634 Use type_byte_order instead of gdbarch_byte_order.
1635 * valarith.c (scalar_binop):
1636 (value_bit_index):
1637 Use type_byte_order instead of gdbarch_byte_order.
1638 * valops.c (value_cast):
1639 Use type_byte_order instead of gdbarch_byte_order.
1640 * valprint.c (generic_emit_char):
1641 (generic_printstr):
1642 (val_print_string):
1643 Use type_byte_order instead of gdbarch_byte_order.
1644 * value.c (unpack_long):
1645 (unpack_bits_as_long):
1646 (unpack_value_bitfield):
1647 (modify_field):
1648 (pack_long):
1649 (pack_unsigned_long):
1650 Use type_byte_order instead of gdbarch_byte_order.
1651 * findvar.c (unsigned_pointer_to_address):
1652 (signed_pointer_to_address):
1653 (unsigned_address_to_pointer):
1654 (address_to_signed_pointer):
1655 (default_read_var_value):
1656 (default_value_from_register):
1657 Use type_byte_order instead of gdbarch_byte_order.
1658 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1659 Use type_byte_order instead of gdbarch_byte_order.
1660 * riscv-tdep.c (riscv_print_one_register_info):
1661 Use type_byte_order instead of gdbarch_byte_order.
1662
87fb00ea
SM
16632019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1664
1665 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1666 (current_ui_gdb_stdin_ptr): Likewise.
1667 (current_ui_gdb_stderr_ptr): Likewise.
1668 (current_ui_gdb_stdlog_ptr): Likewise.
1669 (current_ui_current_uiout_ptr): Likewise.
1670 (gen_ret_current_ui_field_ptr): Remove.
1671
65d1cd5f
TV
16722019-11-21 Tom de Vries <tdevries@suse.de>
1673
1674 PR gdb/24956
1675 * cli/cli-script.c (execute_control_command): Only switch to
1676 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1677
9f6ad286
TT
16782019-11-19 Tom Tromey <tom@tromey.com>
1679
1680 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1681 Now static. Change type of "name".
1682 (tui_set_win_height_command): Don't copy "arg".
1683 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1684 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1685
435d3d88
AT
16862019-11-19 Ali Tamur <tamur@google.com>
1687
1688 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1689 "if (attr != nullptr)".
1690 (dwarf2_find_base_address): Likewise.
1691 (dwarf2_build_include_psymtabs): Likewise.
1692 (read_cutu_die_from_dwo): Likewise.
1693 (read_func_scope): Likewise.
1694 (read_call_site_scope): Likewise.
1695 (dwarf2_get_pc_bounds): Likewise.
1696 (dwarf2_record_block_ranges): Likewise.
1697 (dwarf2_add_field): Likewise.
1698 (dwarf2_add_member_fn): Likewise.
1699 (read_structure_type): Likewise.
1700 (read_enumeration_type): Likewise.
1701 (read_array_type): Likewise.
1702 (read_array_order): Likewise.
1703 (read_set_type): Likewise.
1704 (read_common_block): Likewise.
1705 (read_tag_reference_type): Likewise.
1706 (read_tag_string_type): Likewise.
1707 (read_subroutine_type): Likewise.
1708 (read_base_type): Likewise.
1709 (read_subrange_type): Likewise.
1710 (new_symbol): Likewise.
1711 (prepare_one_comp_unit): Likewise.
1712
c9739b6a
TT
17132019-11-19 Tom Tromey <tromey@adacore.com>
1714
1715 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1716 result in error when DebugActiveProcess fails.
1717
494409bb
SDJ
17182019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1719 Pedro Alves <palves@redhat.com>
1720
1721 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1722 * target.c (target_stack::push): Call 'unpush' if there's a
1723 target on top of the stack.
1724
2e953aca
PW
17252019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1726
1727 * python/py-block.c (blpy_dealloc): Call tp_free.
1728 (blpy_block_syms_dealloc): Likewise.
1729 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1730 * python/py-inferior.c (infpy_dealloc): Likewise.
1731 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1732 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1733 * python/py-symbol.c (sympy_dealloc): Likewise.
1734 * python/py-symtab.c (stpy_dealloc): Likewise.
1735 * python/py-type.c (typy_iterator_dealloc): Likewise.
1736
6edc43ec
CB
17372019-11-18 Christian Biesinger <cbiesinger@google.com>
1738
1739 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1740 constructor instead of using a class initializer.
1741
cd850b40
CB
17422019-11-15 Christian Biesinger <cbiesinger@google.com>
1743
1744 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1745 * configure: Regenerate.
1746 * configure.ac: Don't source common.host.
1747 * gdbsupport/common.host: Remove.
1748 * gdbsupport/mingw-strerror.c: Remove.
1749 * gdbsupport/posix-strerror.c: Rename to...
1750 * gdbsupport/safe-strerror.c: ...this.
1751
53fea9c7
CB
17522019-11-15 Christian Biesinger <cbiesinger@google.com>
1753
1754 * maint.c (scoped_command_stats::print_time): Use localtime_r
1755 instead of localtime (provided through gnulib if necessary).
1756 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1757 of ctime.
1758
f8e27d88
CB
17592019-11-15 Christian Biesinger <cbiesinger@google.com>
1760
1761 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1762 avoid compile errors.
1763
5abebf3c
CB
17642019-11-15 Christian Biesinger <cbiesinger@google.com>
1765
1766 * config.in: Regenerate.
1767 * configure: Regenerate.
1768 * gdbsupport/common.m4: No longer check for strerror_r.
1769 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1770 POSIX version of strerror_r, now that gnulib provides it if
1771 necessary.
1772
9a351667
CB
17732019-11-14 Christian Biesinger <cbiesinger@google.com>
1774
1775 * README (`configure' options): Update.
1776
55708e99
TT
17772019-11-14 Tom Tromey <tromey@adacore.com>
1778
1779 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1780 expected type for the RHS if the LHS is a convenience variable.
1781
4b09bb2e
SM
17822019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1783
1784 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1785 Provide explicit default and copy constructor.
1786
bd454f8b
PW
17872019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1788
1789 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1790 only call Py_INCREF (newbp) in the bppy_pending_object case.
1791
d1aa3cf0
TT
17922019-11-13 Tom Tromey <tromey@adacore.com>
1793
1794 PR build/25182:
1795 * psympriv.h (partial_symbol): Remove static assert.
1796 * symtab.h (general_symbol_info, symbol): Remove static assert.
1797
e06f3d6e
AB
17982019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1799
1800 * gdbsupport/format.c (format_pieces::format_pieces): Support
1801 printf 'z' size modifier.
1802 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1803 * printcmd.c (ui_printf): Handle size_t_arg.
1804 * ui-out.c (ui_out::vmessage): Likewise.
1805 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1806 function.
1807 (run_tests): Call test_format_int_sizes.
1808
468c0cbb
CB
18092019-11-12 Christian Biesinger <cbiesinger@google.com>
1810
1811 * ada-exp.y (write_ambiguous_var): Update.
1812 * buildsym.c (add_symbol_to_list): Update.
1813 * dwarf2read.c (read_variable): Update.
1814 (new_symbol): Update.
1815 * jit.c (finalize_symtab): Update.
1816 * language.c (language_alloc_type_symbol): Update.
1817 * symtab.c (fixup_symbol_section): Update.
1818 (initialize_objfile_symbol_1): Move code to...
1819 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1820 (allocate_symbol): Update.
1821 (allocate_template_symbol): Update.
1822 (get_symbol_address): Update.
1823 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1824 of having as a field, and add a constructor.
1825 (SYMBOL_VALUE): Update.
1826 (SYMBOL_VALUE_ADDRESS): Update.
1827 (SET_SYMBOL_VALUE_ADDRESS): Update.
1828 (SYMBOL_VALUE_BYTES): Update.
1829 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1830 (SYMBOL_BLOCK_VALUE): Update.
1831 (SYMBOL_VALUE_CHAIN): Update.
1832 (SYMBOL_LANGUAGE): Update.
1833 (SYMBOL_SECTION): Update.
1834 (SYMBOL_OBJ_SECTION): Update.
1835 (SYMBOL_SET_LANGUAGE): Update.
1836 (SYMBOL_SET_LINKAGE_NAME): Update.
1837 (SYMBOL_SET_NAMES): Update.
1838 (SYMBOL_NATURAL_NAME): Update.
1839 (SYMBOL_LINKAGE_NAME): Update.
1840 (SYMBOL_DEMANGLED_NAME): Update.
1841 (SYMBOL_SEARCH_NAME): Update.
1842 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1843 (struct symbol): Update.
1844 (struct template_symbol): Update.
1845 (struct rust_vtable_symbol): Update.
1846 * xcoffread.c (SYMBOL_DUP): Update.
1847
ed2c82c3
TT
18482019-11-12 Tom Tromey <tom@tromey.com>
1849
1850 * tui/tui-layout.c (show_layout): Set current_layout.
1851 (show_source_disasm_command, show_data)
1852 (show_source_or_disasm_and_command): Don't set current_layout.
1853
d9fcefd5
TT
18542019-11-12 Tom Tromey <tom@tromey.com>
1855
1856 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1857
45e42163
TT
18582019-11-12 Tom Tromey <tom@tromey.com>
1859
1860 * tui/tui-win.c (resize_message): New global.
1861 (show_tui_resize_message): New function.
1862 (tui_async_resize_screen): Print message if requested.
1863 (_initialize_tui_win): Add tui-resize-message setting.
1864 * NEWS: Add entry for new commands.
1865
c86d74cc
TT
18662019-11-11 Tom Tromey <tom@tromey.com>
1867
1868 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1869 functions.
1870
7b7b9424
CB
18712019-11-11 Christian Biesinger <cbiesinger@google.com>
1872
1873 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1874
086baaf1
AB
18752019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1876
1877 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1878 function.
1879 * python/python-internal.h (gdbpy_lookup_static_symbols):
1880 Declare new function.
1881 * python/python.c (python_GdbMethods): Add
1882 gdb.lookup_static_symbols method.
1883 * NEWS: Mention gdb.lookup_static_symbols.
1884
09ff83af
AB
18852019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1888 static block of current object file first. Also fix typo in
1889 header comment.
1890
eb2dd8df
AB
18912019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1892
1893 * stack.c (set_last_displayed_sal): Delete.
1894 (last_displayed_sal_valid): Delete.
1895 (last_displayed_pspace): Delete.
1896 (last_displayed_addr): Delete.
1897 (last_displayed_symtab): Delete.
1898 (last_displayed_line): Delete.
1899 (class last_displayed_symtab_info_type): New.
1900 (last_displayed_symtab_info): New static global variable.
1901 (print_frame_info): Call methods on last_displayed_symtab_info.
1902 (clear_last_displayed_sal): Update header comment, and make use of
1903 last_displayed_symtab_info.
1904 (last_displayed_sal_is_valid): Likewise.
1905 (get_last_displayed_pspace): Likewise.
1906 (get_last_displayed_addr): Likewise.
1907 (get_last_displayed_symtab): Likewise.
1908 (get_last_displayed_line): Likewise.
1909 (get_last_displayed_sal): Likewise.
1910 * stack.h (clear_last_displayed_sal): Update header comment.
1911 (last_displayed_sal_is_valid): Likewise.
1912 (get_last_displayed_pspace): Likewise.
1913 (get_last_displayed_addr): Likewise.
1914 (get_last_displayed_symtab): Likewise.
1915 (get_last_displayed_line): Likewise.
1916 (get_last_displayed_sal): Likewise.
1917
62137775
AB
19182019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * stack.c (frame_show_address): Convert return type to bool.
1921 * stack.h (frame_show_address): Likewise, and update header
1922 comment.
1923
cf57ad6d
AB
19242019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1925
1926 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
1927 * unittests/vec-utils-selftests.c: New file.
1928 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
1929
0b026263
TT
19302019-11-10 Tom Tromey <tom@tromey.com>
1931
1932 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
1933 (tui_highlight_win): Likewise.
1934 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
1935 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
1936 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1937 Don't set can_highlight.
1938
b049ce2d
TT
19392019-11-10 Tom Tromey <tom@tromey.com>
1940
1941 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
1942 Remove unused declaration.
1943
992a7040
TT
19442019-11-08 Tom Tromey <tromey@adacore.com>
1945
1946 * top.c (read_command_file): Update.
1947 (command_line_input): Make return type const.
1948 * python/py-gdb-readline.c: Update.
1949 * linespec.c (decode_line_2): Update.
1950 * defs.h (command_line_input): Make return type const.
1951 * cli/cli-script.c (read_next_line): Make return type const.
1952 * ada-lang.c (get_selections): Update.
1953
ca3a04f6
CB
19542019-11-06 Christian Biesinger <cbiesinger@google.com>
1955
1956 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1957 * mi/mi-main.c (output_cores): Likewise.
1958 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1959 (linux_xfer_osdata_modules): Likewise.
1960 * remote.c (register_remote_support_xml): Likewise.
1961 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1962 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1963
e0eac551
TT
19642019-11-06 Tom Tromey <tom@tromey.com>
1965
1966 * tui/tui-interp.c: Don't include readline.h.
1967 * tui/tui-hooks.c: Don't include readline.h.
1968 * symmisc.c: Include tilde.h, not readline.h.
1969 * symfile.c: Include tilde.h, not readline.h.
1970 * source.c: Include tilde.h, not readline.h.
1971 * solib.c: Include tilde.h, not readline.h.
1972 * psymtab.c: Include tilde.h, not readline.h.
1973 * exec.c: Include tilde.h, not readline.h.
1974 * corelow.c: Include tilde.h, not readline.h.
1975 * cli/cli-dump.c: Include tilde.h, not readline.h.
1976 * cli/cli-cmds.c: Don't include readline.h.
1977
825165c5
TT
19782019-11-05 Tom Tromey <tom@tromey.com>
1979
1980 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
1981 (tui_disassemble): Set addr_size.
1982 (tui_disasm_window::set_contents): Use addr_size.
1983
91ae903f
TT
19842019-11-05 Tom Tromey <tom@tromey.com>
1985
1986 * rust-lang.c (rust_language_defn): Update.
1987 * python/py-value.c (valpy_string): Call c_get_string.
1988 * p-lang.c (pascal_language_defn): Update.
1989 * opencl-lang.c (opencl_language_defn): Update.
1990 * objc-lang.c (objc_language_defn): Update.
1991 * m2-lang.c (m2_language_defn): Update.
1992 * language.c (unknown_language_defn, auto_language_defn): Update.
1993 (default_get_string): Remove.
1994 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
1995 * go-lang.c (go_language_defn): Update.
1996 * f-lang.c (f_language_defn): Update.
1997 * d-lang.c (d_language_defn): Update.
1998 * c-lang.c (c_language_defn, cplus_language_defn)
1999 (asm_language_defn, minimal_language_defn): Update.
2000 * ada-lang.c (ada_language_defn): Update.
2001 * language.h (struct language_defn) <la_get_string>: Remove.
2002 (LA_GET_STRING): Remove.
2003 (default_get_string): Don't declare.
2004
1df2f9ef
TT
20052019-11-05 Tom Tromey <tom@tromey.com>
2006
2007 * tui/tui-source.h (struct tui_source_window): Inline
2008 constructor. Remove destructor.
2009 <style_changed, m_observable>: Move to superclass.
2010 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2011 (struct tui_source_window_base): Move private members to end.
2012 <style_changed, m_observable>: Move from tui_source_window.
2013 * tui/tui-winsource.c (tui_copy_source_line): Move from
2014 tui-source.c. Rename from copy_source_line. Add special handling
2015 for negative line number.
2016 (tui_source_window_base::style_changed): Move from
2017 tui_source_window.
2018 (tui_source_window_base): Register observer.
2019 (~tui_source_window_base): New.
2020 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2021 rename.
2022 (tui_source_window::set_contents): Use tui_copy_source_line.
2023 (tui_source_window::tui_source_window): Move to tui-source.h.
2024 (tui_source_window::~tui_source_window): Remove.
2025 (tui_source_window::style_changed): Move to superclass.
2026 * tui/tui-disasm.c (tui_disassemble): Create string file with
2027 styling, when possible. Add "addr_size" parameter.
2028 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2029 Don't compute maximum size.
2030 (len_without_escapes): New function
2031
5d051055
TT
20322019-11-05 Tom Tromey <tom@tromey.com>
2033
2034 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2035 std::string.
2036 * tui/tui-winsource.c (tui_show_source_line): Update.
2037 * tui/tui-source.c (tui_source_window::set_contents): Update.
2038 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2039
ade7beea
CB
20402019-11-05 Christian Biesinger <cbiesinger@google.com>
2041
2042 * symtab.h (gdb_static_assert): Put && operator at the beginning
2043 of the line instead of the end.
2044
3573abe1
CB
20452019-11-04 Christian Biesinger <cbiesinger@google.com>
2046
2047 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2048 and sizeof (symbol).
2049 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2050
dae8b3eb
RO
20512019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2052
2053 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2054 * configure.host: Mark *-*-solaris2.10* obsolete.
2055 * configure.tgt: Mark Solaris < 11 obsolete.
2056 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2057 Update target triplet.
2058
5df96a4e
TT
20592019-11-01 Tom Tromey <tromey@adacore.com>
2060
2061 * utils.c (print_sys_errmsg): Simplify.
2062
b7481649
TT
20632019-11-01 Tom Tromey <tromey@adacore.com>
2064
2065 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2066
e48f6033
CB
20672019-11-01 Christian Biesinger <cbiesinger@google.com>
2068
2069 * configure: Regenerate.
2070 * configure.ac: Remove check for strerror_r.
2071 * gdbsupport/common.m4: Check for strerror_r.
2072
bd5766ec
LM
20732019-11-01 Luis Machado <luis.machado@linaro.org>
2074
2075 PR gdb/25124
2076
2077 * arm-tdep.c (arm_per_objfile): Rename to ...
2078 (arm_per_bfd): ... this.
2079 (arm_objfile_data_key): Rename to ...
2080 (arm_bfd_data_key): ... this.
2081 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2082 data.
2083 (arm_record_special_symbol): Likewise.
2084
e1709896
AB
20852019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2086
2087 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2088 end.
2089 * c-typeprint.c (c_print_typedef): Likewise.
2090 * f-typeprint.c (f_print_typedef): Likewise.
2091 * m2-typeprint.c (m2_print_typedef): Likewise.
2092 * p-typeprint.c (pascal_print_typedef): Likewise.
2093 * rust-lang.c (rust_print_typedef): Likewise.
2094 * symtab.c (print_symbol_info): Print a newline after calling
2095 typedef_print.
2096
165f8965
AB
20972019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2098
2099 * symtab.c (info_module_cmdlist): New variable.
2100 (info_module_command): New function.
2101 (search_module_symbols): New function.
2102 (info_module_subcommand): New function.
2103 (struct info_modules_var_func_options): New struct.
2104 (info_modules_var_func_options_defs): New variable.
2105 (make_info_modules_var_func_options_def_group): New function.
2106 (info_module_functions_command): New function.
2107 (info_module_variables_command): New function.
2108 (info_module_var_func_command_completer): New function.
2109 (_initialize_symtab): Register new 'info module functions' and
2110 'info module variables' commands.
2111 * symtab.h (typedef symbol_search_in_module): New typedef.
2112 (search_module_symbols): Declare new function.
2113 * NEWS: Mention new commands.
2114
59c35742
AB
21152019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2116
2117 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2118 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2119 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2120 MODULES_DOMAIN.
2121 (scan_partial_symbols): Only create partial module symbols for non
2122 declarations.
2123 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2124 and MODULES_DOMAIN.
2125 * symtab.c (search_domain_name): Likewise.
2126 (search_symbols): Likewise.
2127 (print_symbol_info): Likewise.
2128 (symtab_symbol_info): Likewise.
2129 (info_modules_command): New function.
2130 (_initialize_symtab): Register 'info modules' command.
2131 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2132 * NEWS: Mention new 'info modules' command.
2133
aed61d02
PW
21342019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2135
2136 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2137 and $_gdb_maint_setting_str.
2138
9ad9b77d
PW
21392019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2140
2141 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2142 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2143 (str_value_from_setting, gdb_setting_str_internal_fn)
2144 (gdb_maint_setting_str_internal_fn): New functions.
2145 (_initialize_cli_cmds): Define the new convenience functions.
2146 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2147 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2148
8d6efaa2
CB
21492019-10-31 Christian Biesinger <cbiesinger@google.com>
2150
2151 * agent.c (set_can_use_agent): When the setting is turned on,
2152 look up agent symbols if we don't have them yet.
2153 (agent_new_objfile): Don't look up agent symbols when the agent
2154 setting is off.
2155
33cb1647
CB
21562019-10-31 Christian Biesinger <cbiesinger@google.com>
2157
2158 * config.in: Regenerate.
2159
b231e86a
CB
21602019-10-31 Christian Biesinger <cbiesinger@google.com>
2161
2162 * configure: Regenerate.
2163 * configure.ac: Check for strerror_r.
2164 * gdbsupport/common-utils.h (safe_strerror): Change return value
2165 to const char * and document that this function is now threadsafe.
2166 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2167 thread_local and call strerror_r, if available.
2168 * utils.c (perror_string): Update.
2169 (print_sys_errmsg): Update.
2170
a2726d4f
LM
21712019-10-31 Luis Machado <luis.machado@linaro.org>
2172
2173 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2174 objfile_key.
2175 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2176 objfile to fetch per-bfd data.
2177 (arm_find_exidx_entry): Likewise.
2178
75cafaa6
CB
21792019-10-31 Christian Biesinger <cbiesinger@google.com>
2180
2181 * gdbsupport/agent.c (debug_agent): Change type to bool.
2182 (use_agent): Likewise.
2183 (all_agent_symbols_look_up): Likewise.
2184 (agent_loaded_p): Change return value to bool.
2185 (agent_look_up_symbols): Update.
2186 (agent_capability_check): Change return value to bool.
2187 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2188 (debug_agent): Change type to bool.
2189 (use_agent): Likewise.
2190 (agent_capability_check): Change return value to bool.
2191
808590ec
CB
21922019-10-30 Christian Biesinger <cbiesinger@google.com>
2193
2194 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2195 (build_minimal_symbol_hash_tables): Code to clear the table moved
2196 to clear_minimal_symbol_hash_tables.
2197 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2198 when needed.
2199
f18ad8a1
SM
22002019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2201
2202 * infcmd.c: Remove includes.
2203 * infrun.c: Remove includes.
2204
de93309a
SM
22052019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2206
2207 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2208 (grow_vect): Remove declaration.
2209 (ada_type_of_array): Remove declaration.
2210 (ada_update_initial_language): Remove declaration.
2211 (ada_fold_name): Remove declaration.
2212 (ada_fill_in_ada_prototype): Remove declaration.
2213 (user_select_syms): Remove declaration.
2214 (get_selections): Remove declaration.
2215 (ada_tag_type): Remove declaration.
2216 (ada_value_tag): Remove declaration.
2217 (ada_is_others_clause): Remove declaration.
2218 (ada_in_variant): Remove declaration.
2219 (ada_value_struct_elt): Remove declaration.
2220 (ada_attribute_name): Remove declaration.
2221 (ada_system_address_type): Remove declaration.
2222 * ada-lang.c (ada_watch_location_expression): Make static.
2223 (GROW_VECT): Move here from ada-lang.h.
2224 (grow_vect): Make static.
2225 (ada_update_initial_language): Make static.
2226 (ada_fold_name): Make static.
2227 (ada_type_of_array): Make static.
2228 (encoded_ordered_before): Move up.
2229 (sort_choices): Move up.
2230 (print_signatures): Move up.
2231 (ada_print_symbol_signature): Move up.
2232 (get_selections): Move up and make static.
2233 (user_select_syms): Move up and make static.
2234 (ada_value_struct_elt): Move up and make static.
2235 (ada_tag_type): Make static.
2236 (ada_value_tag): Make static.
2237 (ada_is_others_clause): Make static.
2238 (ada_in_variant): Make static.
2239 (ada_attribute_name): Make static.
2240
cdc46a9f
SM
22412019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2242
2243 * ada-lang.c: Remove includes.
2244 * ada-typeprint.c: Remove includes.
2245 * ada-valprint.c: Remove includes.
2246
90421c56
SM
22472019-10-29 Simon Marchi <simon.marchi@efficios.com>
2248
2249 * addrmap.c: Add static assertions of type size, moved from
2250 _initialize_addrmap.
2251 (_initialize_addrmap): Remove.
2252
31edb802
CB
22532019-10-29 Christian Biesinger <cbiesinger@google.com>
2254
2255 * coffread.c (record_minimal_symbol): Update.
2256 (process_coff_symbol): Update.
2257 * dbxread.c (read_dbx_symtab): Update.
2258 * dwarf2read.c (add_partial_symbol): Update.
2259 (fixup_go_packaging): Update.
2260 (load_partial_dies): Update.
2261 (new_symbol): Update.
2262 * elfread.c (record_minimal_symbol): Change signature to use
2263 gdb::string_view instead of name+len.
2264 (elf_symtab_read): Update.
2265 (elf_rel_plt_read): Update.
2266 * mdebugread.c (parse_partial_symbols): Update.
2267 (handle_psymbol_enumerators): Update.
2268 (new_symbol): Update.
2269 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2270 to use gdb::string_view instead of name+len.
2271 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2272 * psympriv.h (add_psymbol_to_list): Likewise.
2273 * psymtab.c (add_psymbol_to_bcache): Likewise.
2274 (add_psymbol_to_list): Likewise.
2275 * stabsread.c (define_symbol): Update.
2276 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2277 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2278 (symbol_set_names): Likewise.
2279 * xcoffread.c (scan_xcoff_symtab): Update.
2280
0c921b21
CB
22812019-10-29 Christian Biesinger <cbiesinger@google.com>
2282
2283 * symtab.h (symbol_set_names): Document that copy_name must be
2284 set to true for non-nullterminated strings.
2285 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2286 linkage_name if the entry was not found and we need to demangle.
2287
35e65c49
CB
22882019-10-29 Christian Biesinger <cbiesinger@google.com>
2289
2290 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2291 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2292 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2293 * gdbsupport/gdb_binary_search.h: New file.
2294
ed2a2229
CB
22952019-10-29 Christian Biesinger <cbiesinger@google.com>
2296
2297 * NEWS: Mention new --with-system-gdbinit-dir option.
2298 * config.in: Regenerate.
2299 * configure: Regenerate.
2300 * configure.ac: Add new option --with-system-gdbinit-dir.
2301 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2302 for a ".gdb" suffix.
2303 * main.c (get_init_files): Change system_gdbinit argument to
2304 a vector and return the files in SYSTEM_GDBINIT_DIR in
2305 addition to SYSTEM_GDBINIT.
2306 (captured_main_1): Update.
2307 (print_gdb_help): Update.
2308 * top.c (print_gdb_configuration): Also print the value of
2309 SYSTEM_GDBINIT_DIR.
2310
87f34879
CB
23112019-10-28 Christian Biesinger <cbiesinger@google.com>
2312
2313 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2314 that takes gdb::string_view arguments.
2315
30baf67b
TV
23162019-10-26 Tom de Vries <tdevries@suse.de>
2317
2318 * aarch64-linux-tdep.c: Fix typos in comments.
2319 * aarch64-tdep.c: Same.
2320 * ada-lang.c: Same.
2321 * amd64-nat.c: Same.
2322 * arc-tdep.c: Same.
2323 * arch/aarch64-insn.c: Same.
2324 * block.c: Same.
2325 * breakpoint.h: Same.
2326 * btrace.h: Same.
2327 * c-varobj.c: Same.
2328 * cli/cli-decode.c: Same.
2329 * cli/cli-script.c: Same.
2330 * cli/cli-utils.h: Same.
2331 * coff-pe-read.c: Same.
2332 * coffread.c: Same.
2333 * compile/compile-cplus-symbols.c: Same.
2334 * compile/compile-object-run.c: Same.
2335 * completer.c: Same.
2336 * corelow.c: Same.
2337 * cp-support.c: Same.
2338 * demangle.c: Same.
2339 * dwarf-index-write.c: Same.
2340 * dwarf2-frame.c: Same.
2341 * dwarf2-frame.h: Same.
2342 * eval.c: Same.
2343 * frame-base.h: Same.
2344 * frame.h: Same.
2345 * gdbcmd.h: Same.
2346 * gdbtypes.h: Same.
2347 * gnu-nat.c: Same.
2348 * guile/scm-objfile.c: Same.
2349 * i386-tdep.c: Same.
2350 * i386-tdep.h: Same.
2351 * infcall.c: Same.
2352 * infcall.h: Same.
2353 * linux-nat.c: Same.
2354 * m68k-tdep.c: Same.
2355 * macroexp.c: Same.
2356 * memattr.c: Same.
2357 * mi/mi-cmd-disas.c: Same.
2358 * mi/mi-getopt.h: Same.
2359 * mi/mi-main.c: Same.
2360 * minsyms.c: Same.
2361 * nat/aarch64-sve-linux-sigcontext.h: Same.
2362 * objfiles.h: Same.
2363 * ppc-linux-nat.c: Same.
2364 * ppc-linux-tdep.c: Same.
2365 * ppc-tdep.h: Same.
2366 * progspace.h: Same.
2367 * prologue-value.h: Same.
2368 * python/py-evtregistry.c: Same.
2369 * python/py-instruction.h: Same.
2370 * record-btrace.c: Same.
2371 * record-full.c: Same.
2372 * remote.c: Same.
2373 * rs6000-tdep.c: Same.
2374 * ser-tcp.c: Same.
2375 * sol-thread.c: Same.
2376 * sparc-sol2-tdep.c: Same.
2377 * sparc64-tdep.c: Same.
2378 * stabsread.c: Same.
2379 * symfile.c: Same.
2380 * symtab.h: Same.
2381 * target.c: Same.
2382 * tracepoint.c: Same.
2383 * tui/tui-data.h: Same.
2384 * tui/tui-io.c: Same.
2385 * tui/tui-win.c: Same.
2386 * tui/tui.c: Same.
2387 * unittests/rsp-low-selftests.c: Same.
2388 * user-regs.h: Same.
2389 * utils.c: Same.
2390 * utils.h: Same.
2391 * valarith.c: Same.
2392 * valops.c: Same.
2393 * valprint.c: Same.
2394 * valprint.h: Same.
2395 * value.c: Same.
2396 * value.h: Same.
2397 * varobj.c: Same.
2398 * x86-nat.h: Same.
2399 * xtensa-tdep.c: Same.
2400
1834d45f
AT
24012019-10-25 Ali Tamur <tamur@google.com>
2402
2403 * charset.c (find_charset_names): Reflect API change.
2404
5396ae17
CB
24052019-10-25 Christian Biesinger <cbiesinger@google.com>
2406
2407 * symtab.c (struct demangled_name_entry): Change demangled name
2408 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2409 part of the struct anymore.
2410 (symbol_set_names): No longer obstack allocate + copy the demangled
2411 name, just store the allocated name from bfd.
2412
93878f47
TT
24132019-10-25 Tom Tromey <tromey@adacore.com>
2414
2415 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2416 (bsearch_cie_cmp, add_cie): Remove.
2417 (find_cie): Reimplement.
2418 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2419 (dwarf2_build_frame_info): Update.
2420
7b71fc97
L
24212019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2422
2423 PR gdb/25126
2424 * symfile.c (reread_symbols): Call forget_cached_source_info to
2425 clear the stale source cache.
2426
cbb5a2ea
CB
24272019-10-24 Christian Biesinger <cbiesinger@google.com>
2428
2429 * configure: Regenerate.
2430 * configure.ac: Remove code that sets python_has_threads.
2431
71737c43
CB
24322019-10-24 Christian Biesinger <cbiesinger@google.com>
2433
2434 * config.in: Regenerate.
2435 * configure: Regenerate.
2436 * configure.ac: Remove the code that uses sed to get the python
2437 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2438
33d569b7
AB
24392019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2440
2441 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2442 error paths.
2443
f16f7b7c
TT
24442019-10-23 Tom Tromey <tom@tromey.com>
2445
2446 * arc-tdep.c: Remove ".." from include.
2447 * frv-tdep.c: Remove ".." from include.
2448 * lm32-tdep.c: Remove ".." from include.
2449 * microblaze-tdep.c: Remove ".." from include.
2450 * or1k-tdep.h: Remove ".." from include.
2451 * s12z-tdep.c: Remove ".." from include.
2452 * Makefile.in (OPCODES_CFLAGS): Add comment.
2453 (TOP_CFLAGS): New variable.
2454 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2455
6999161a
TT
24562019-10-23 Tom Tromey <tom@tromey.com>
2457
2458 * Makefile.in (READLINE_DIR): Update.
2459
12e7c35e
TBA
24602019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2461
2462 * infcall.c (call_function_by_hand_dummy): Fix the function
2463 comment. And extract out a code section into...
2464 (reserve_stack_space): ...this new function.
2465
37055cad
TBA
24662019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2467
2468 * infcall.c (value_arg_coerce): Remove an unused parameter.
2469 (call_function_by_hand_dummy): Update the call to
2470 'value_arg_coerce'.
2471
39bcc47c
TBA
24722019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2473
2474 * infcall.c (call_function_by_hand_dummy): Refactor.
2475
bd888c0f
TBA
24762019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2477
2478 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2479
c12d372d
TT
24802019-10-23 Tom Tromey <tom@tromey.com>
2481
2482 * configure: Rebuild.
2483 * configure.ac: Don't check for sigprocmask.
2484 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2485
4d0b984b
TT
24862019-10-23 Tom Tromey <tom@tromey.com>
2487
2488 * configure: Rebuild.
2489 * acinclude.m4: Use m4_include, not sinclude.
2490
7e785608
TV
24912019-10-23 Tom de Vries <tdevries@suse.de>
2492
2493 PR breakpoints/24687
2494 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2495
403772ef
CB
24962019-10-22 Christian Biesinger <cbiesinger@google.com>
2497
2498 * symtab.c (struct demangled_name_entry) <language>: Change from
2499 bitfield to regular variable.
2500
3a494279
CB
25012019-10-22 Christian Biesinger <cbiesinger@google.com>
2502
2503 * symtab.c (struct demangled_name_entry): Add a constructor.
2504 (free_demangled_name_entry): New function to call the destructor
2505 for demangled_name_entry.
2506 (create_demangled_names_hash): Pass free_demangled_name_entry to
2507 htab_create_alloc.
2508 (symbol_set_names): Call placement new for demangled_name_entry.
2509 * utils.c: No longer include xxhash.h here, now that fast_hash
2510 is inlined in the header.
2511 * utils.h: Instead, include it here.
2512
ccb1ba62
CB
25132019-10-22 Christian Biesinger <cbiesinger@google.com>
2514
2515 * Makefile.in: Link with libxxhash.
2516 * config.in: Regenerate.
2517 * configure: Regenerate.
2518 * configure.ac: Search for libxxhash.
2519 * utils.c (fast_hash): Use xxhash if present.
2520
1a6ff1a9
CB
25212019-10-22 Christian Biesinger <cbiesinger@google.com>
2522
2523 * utils.h (fast_hash): New function.
2524 * symtab.c (hash_demangled_name_entry): Call new function
2525 fast_hash.
2526
7bb43059
CB
25272019-10-22 Christian Biesinger <cbiesinger@google.com>
2528
2529 * symtab.c (struct demangled_name_entry): Change type of mangled
2530 to gdb::string_view. Also adds a constructor that takes the
2531 mangled name.
2532 (hash_demangled_name_entry): Update.
2533 (eq_demangled_name_entry): Update.
2534 (free_demangled_name_entry): New function to call the destructor
2535 now that this is not a POD anymore.
2536 (create_demangled_names_hash): Pass free_demangled_name_entry to
2537 htab_create_alloc.
2538 (symbol_set_names): Update.
2539
7ba99d21
AT
25402019-10-21 Ali Tamur <tamu@google.com>
2541
2542 * dwarf2read.c (dir_index): Change type.
2543 (file_name_index): Likewise.
2544 (line_header::include_dir_at): Change comment and implementation on
2545 whether it is DWARF 5.
2546 (line_header::is_valid_file_index): New function.
2547 (line_header::file_name_at): Change comment and implementation on
2548 whether it is DWARF 5.
2549 (line_header::file_names): Change to private field renamed as
2550 m_file_names and introduce a new accessor method.
2551 (line_header::file_names_size): New method.
2552 (line_header::include_dirs): Change to private field and rename as
2553 m_include_dirs.
2554 (dw2_get_file_names_reader): Define local var at a smaller scope and
2555 reflect API change.
2556 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2557 (process_structure_scope): Likewise.
2558 (line_header::add_include_dir): Change message and reflect renaming.
2559 (line_header::add_file_name): Likewise.
2560 (read_formatted_entries): Handle DW_FORM_data16.
2561 (dwarf_decode_line_header): Fix line header length calculation.
2562 (psymtab_include_file_name): Change comment and API.
2563 (lnp_state_machine::m_file): Update comment and reflect type change.
2564 (lnp_state_machine::record_line): Reflect type change.
2565 (dwarf_decode_lines): Reflect API change.
2566 (file_file_name): Likewise.
2567 (file_full_name): Likewise.
2568
45f47c3a
AB
25692019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2570
2571 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2572
e5f3c0e3
TT
25732019-10-21 Tom Tromey <tom@tromey.com>
2574
2575 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2576
a0a461e5
TT
25772019-10-21 Tom Tromey <tom@tromey.com>
2578
2579 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2580 NM_H. Use AC_CONFIG_LINKS.
2581 * configure: Rebuild.
2582 * Makefile.in (NM_H): New variable.
2583 (generated_files): Add NM_H. Remove gcore.
2584 (nm.h, stamp-nmh): New targets.
2585
54d83b8d
TT
25862019-10-20 Tom Tromey <tom@tromey.com>
2587
2588 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2589 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2590 obsolete comment.
2591 (put_objfile_before): Now static.
2592
23771117
SM
25932019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2594
2595 * gdbsupport/common-utils.h (startswith): Change return type to
2596 bool.
2597
39ef2f62
CB
25982019-10-19 Christian Biesinger <cbiesinger@google.com>
2599
2600 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2601 * breakpoint.c (bp_locations_compare): Rename to...
2602 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2603 (update_global_location_list): Use std::sort instead of qsort.
2604 * buildsym.c (compare_line_numbers): Rename to...
2605 (lte_is_less_than): ...this, and change to std::sort semantics.
2606 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2607 instead of qsort.
2608 * disasm.c (compare_lines): Rename to...
2609 (line_is_less_than): ...this, and change to std::sort semantics.
2610 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2611 of qsort.
2612 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2613 (fde_is_less_than): ...this, and change to std::sort semantics.
2614 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2615 * mdebugread.c (compare_blocks):
2616 (block_is_less_than): ...this, and change to std::sort semantics.
2617 (sort_blocks): Call std::sort instead of qsort.
2618 * objfiles.c (qsort_cmp): Rename to...
2619 (sort_cmp): ...this, and change to std::sort semantics.
2620 (update_section_map): Call std::sort instead of qsort.
2621 * remote.c (compare_pnums): Remove.
2622 (map_regcache_remote_table): Call std::sort instead of qsort.
2623 * utils.c (compare_positive_ints): Remove.
2624 * utils.h (compare_positive_ints): Remove.
2625 * xcoffread.c (compare_lte): Remove.
2626 (arrange_linetable): Call std::sort instead of qsort.
2627
f71433ee
SDJ
26282019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2629
2630 * symfile.c (init_entry_point_info): Fix typo.
2631 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2632
85102364
TV
26332019-10-18 Tom de Vries <tdevries@suse.de>
2634
2635 * aarch64-tdep.c: Fix typos in comments.
2636 * ada-lang.c: Same.
2637 * ada-tasks.c: Same.
2638 * alpha-tdep.c: Same.
2639 * alpha-tdep.h: Same.
2640 * amd64-nat.c: Same.
2641 * amd64-windows-tdep.c: Same.
2642 * arc-tdep.c: Same.
2643 * arc-tdep.h: Same.
2644 * arch-utils.c: Same.
2645 * arm-nbsd-tdep.c: Same.
2646 * arm-tdep.c: Same.
2647 * ax-gdb.c: Same.
2648 * blockframe.c: Same.
2649 * btrace.c: Same.
2650 * c-varobj.c: Same.
2651 * coff-pe-read.c: Same.
2652 * coffread.c: Same.
2653 * cris-tdep.c: Same.
2654 * darwin-nat.c: Same.
2655 * dbxread.c: Same.
2656 * dcache.c: Same.
2657 * disasm.c: Same.
2658 * dtrace-probe.c: Same.
2659 * dwarf-index-write.c: Same.
2660 * dwarf2-frame-tailcall.c: Same.
2661 * dwarf2-frame.c: Same.
2662 * dwarf2read.c: Same.
2663 * eval.c: Same.
2664 * exceptions.c: Same.
2665 * fbsd-tdep.c: Same.
2666 * findvar.c: Same.
2667 * frame.c: Same.
2668 * frv-tdep.c: Same.
2669 * gnu-v3-abi.c: Same.
2670 * go32-nat.c: Same.
2671 * h8300-tdep.c: Same.
2672 * hppa-tdep.c: Same.
2673 * i386-linux-tdep.c: Same.
2674 * i386-tdep.c: Same.
2675 * ia64-libunwind-tdep.c: Same.
2676 * ia64-tdep.c: Same.
2677 * infcmd.c: Same.
2678 * infrun.c: Same.
2679 * linespec.c: Same.
2680 * linux-nat.c: Same.
2681 * linux-thread-db.c: Same.
2682 * machoread.c: Same.
2683 * mdebugread.c: Same.
2684 * mep-tdep.c: Same.
2685 * mn10300-tdep.c: Same.
2686 * namespace.c: Same.
2687 * objfiles.c: Same.
2688 * opencl-lang.c: Same.
2689 * or1k-tdep.c: Same.
2690 * osabi.c: Same.
2691 * ppc-linux-nat.c: Same.
2692 * ppc-linux-tdep.c: Same.
2693 * ppc-sysv-tdep.c: Same.
2694 * printcmd.c: Same.
2695 * procfs.c: Same.
2696 * record-btrace.c: Same.
2697 * record-full.c: Same.
2698 * remote-fileio.c: Same.
2699 * remote.c: Same.
2700 * rs6000-tdep.c: Same.
2701 * s12z-tdep.c: Same.
2702 * score-tdep.c: Same.
2703 * ser-base.c: Same.
2704 * ser-go32.c: Same.
2705 * skip.c: Same.
2706 * sol-thread.c: Same.
2707 * solib-svr4.c: Same.
2708 * solib.c: Same.
2709 * source.c: Same.
2710 * sparc-nat.c: Same.
2711 * sparc-sol2-tdep.c: Same.
2712 * sparc-tdep.c: Same.
2713 * sparc64-tdep.c: Same.
2714 * stabsread.c: Same.
2715 * stack.c: Same.
2716 * symfile.c: Same.
2717 * symtab.c: Same.
2718 * target-descriptions.c: Same.
2719 * target-float.c: Same.
2720 * thread.c: Same.
2721 * utils.c: Same.
2722 * valops.c: Same.
2723 * valprint.c: Same.
2724 * value.c: Same.
2725 * varobj.c: Same.
2726 * windows-nat.c: Same.
2727 * xcoffread.c: Same.
2728 * xstormy16-tdep.c: Same.
2729 * xtensa-tdep.c: Same.
2730
c5adaa19
TT
27312019-10-17 Tom Tromey <tromey@adacore.com>
2732
2733 * configure: Rebuild.
2734 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2735 in AC_CONFIG_FILES invocation.
2736 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2737 new-style config.status invocation.
2738
405feb71
TV
27392019-10-17 Tom de Vries <tdevries@suse.de>
2740
2741 * arm-nbsd-nat.c: Fix typos in comments.
2742 * arm-tdep.c: Same.
2743 * darwin-nat-info.c: Same.
2744 * dwarf2read.c: Same.
2745 * elfread.c: Same.
2746 * event-top.c: Same.
2747 * findvar.c: Same.
2748 * gdbtypes.c: Same.
2749 * hppa-tdep.c: Same.
2750 * i386-tdep.c: Same.
2751 * jit.c: Same.
2752 * main.c: Same.
2753 * mdebugread.c: Same.
2754 * moxie-tdep.c: Same.
2755 * nto-procfs.c: Same.
2756 * osabi.c: Same.
2757 * ppc-linux-tdep.c: Same.
2758 * remote.c: Same.
2759 * riscv-tdep.c: Same.
2760 * s390-tdep.c: Same.
2761 * sh-tdep.c: Same.
2762 * sparc-linux-tdep.c: Same.
2763 * sparc-nat.c: Same.
2764 * stack.c: Same.
2765 * target-descriptions.c: Same.
2766 * top.c: Same.
2767 * varobj.c: Same.
2768
befcd486
TT
27692019-10-16 Tom Tromey <tom@tromey.com>
2770
2771 * objfiles.h (struct objfile) <original_name>: Now const.
2772
17bfe554
CB
27732019-10-16 Christian Biesinger <cbiesinger@google.com>
2774
2775 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2776 pass on to sigsetjmp's second argument.
2777 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2778
950b7495
KS
27792019-10-16 Keith Seitz <keiths@redhat.com>
2780
2781 PR gdb/23567
2782 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2783 sections whose size is greater than the file size.
2784
ff371ec9
JW
27852019-10-16 Jim Wilson <jimw@sifive.com>
2786
2787 * riscv-tdep.c (riscv_gcc_target_options): New.
2788 (riscv_gnu_triplet_regexp): New.
2789 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2790 set_gdbarch_gnu_triplet_regexp.
2791
fec4e896
CB
27922019-10-16 Christian Biesinger <cbiesinger@google.com>
2793
2794 * Makefile.in: Add xml-builtin.h.
2795 * features/feature_to_c.sh: Add an include for xml-builtin.h
2796 to ensure that the compiler checks that the types match.
2797 * xml-builtin.h: New file.
2798 * xml-support.c (fetch_xml_builtin): Add missing const.
2799 * xml-support.h: Remove declaration of xml_builtins.
2800
d10eccaa
TV
28012019-10-16 Tom de Vries <tdevries@suse.de>
2802
2803 PR tdep/25096
2804 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2805 (amd64_classify_aggregate): ... here.
2806 (amd64_classify_aggregate_field): Handled fiels of nested structs
2807 recursively.
2808
745ff14e
TV
28092019-10-16 Tom de Vries <tdevries@suse.de>
2810
2811 PR tdep/24104
2812 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2813 that handles 'theclass'.
2814
791b7405
AB
28152019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2816
2817 * linespec.c (decode_digits_ordinary): Update comment.
2818 * make-target-delegates: No longer need to handle VEC case.
2819 * memrange.c (normalize_mem_ranges): Update comment.
2820 * namespace.c (add_using_directive): Update comment.
2821 * objc-lang.c (uniquify_strings): Update comment.
2822 * ppc-linux-nat.c (struct thread_points): Update comment.
2823 * probe.h (find_probes_in_objfile): Update comment.
2824 * target.h (enum flash_preserve_mode): Update comment.
2825 * varobj.c (varobj_restrict_range): Update comment.
2826 * varobj.h (varobj_list_children): Update comment.
2827
0dc32745
AB
28282019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2829
2830 * Makefile.in: Remove references to vec.h and vec.c.
2831 * aarch64-tdep.c: No longer include vec.h.
2832 * ada-lang.c: Likewise.
2833 * ada-lang.h: Likewise.
2834 * arm-tdep.c: Likewise.
2835 * ax.h: Likewise.
2836 * breakpoint.h: Likewise.
2837 * charset.c: Likewise.
2838 * cp-support.h: Likewise.
2839 * dtrace-probe.c: Likewise.
2840 * dwarf2read.c: Likewise.
2841 * extension.h: Likewise.
2842 * gdb_bfd.c: Likewise.
2843 * gdbsupport/gdb_vecs.h: Likewise.
2844 * gdbsupport/vec.c: Remove.
2845 * gdbsupport/vec.h: Remove.
2846 * gdbthread.h: Likewise.
2847 * guile/scm-type.c: Likewise.
2848 * inline-frame.c: Likewise.
2849 * machoread.c: Likewise.
2850 * memattr.c: Likewise.
2851 * memrange.h: Likewise.
2852 * namespace.h: Likewise.
2853 * nat/linux-btrace.h: Likewise.
2854 * osdata.c: Likewise.
2855 * parser-defs.h: Likewise.
2856 * progspace.h: Likewise.
2857 * python/py-type.c: Likewise.
2858 * record-btrace.c: Likewise.
2859 * rust-exp.y: Likewise.
2860 * solib-target.c: Likewise.
2861 * stap-probe.c: Likewise.
2862 * target-descriptions.c: Likewise.
2863 * target-memory.c: Likewise.
2864 * target.h: Likewise.
2865 * varobj.c: Likewise.
2866 * varobj.h: Likewise.
2867 * xml-support.h: Likewise.
2868
ae640021
AB
28692019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2870
2871 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2872 Update for new std::vector based implementation.
2873 (process_psymtab_comp_unit_reader): Likewise.
2874 (scan_partial_symbols): Likewise.
2875 (recursively_compute_inclusions): Likewise.
2876 (compute_compunit_symtab_includes): Likewise.
2877 (process_imported_unit_die): Likewise.
2878 (queue_and_load_dwo_tu): Likewise.
2879 (follow_die_sig_1): Likewise.
2880 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2881 (typedef dwarf2_per_cu_ptr): Remove.
2882 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2883 function.
2884 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2885 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2886 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2887 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2888 std::vector.
2889
55dfc88f
TT
28902019-10-15 Tom Tromey <tromey@adacore.com>
2891
2892 * windows-nat.c (windows_nat_target::resume): Use %x when logging
2893 TID.
2894
96b49c5e
TT
28952019-10-15 Tom Tromey <tromey@adacore.com>
2896
2897 * windows-nat.c (windows_nat_target::fetch_registers)
2898 (windows_nat_target::store_registers): Rename "pid" to "tid".
2899
953cff56
TT
29002019-10-15 Tom Tromey <tromey@adacore.com>
2901
2902 * gdbarch.h, gdbarch.c: Rebuild.
2903 * gdbarch.sh (gcc_target_options): Change return type to
2904 std::string.
2905 * compile/compile.c (get_args): Update.
2906 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
2907 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
2908 std::string.
2909 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
2910 std::string.
2911 * arch-utils.c (default_gcc_target_options): Return std::string.
2912 * arch-utils.h (default_gcc_target_options): Return std::string.
2913 * s390-tdep.c (s390_gcc_target_options): Return std::string.
2914
81e6b8eb
CB
29152019-10-15 Christian Biesinger <cbiesinger@google.com>
2916
2917 * breakpoint.c (breakpoint_chain): Make static.
2918 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
2919 of accessing breakpoint_chain.
2920
95da600f
CB
29212019-10-15 Christian Biesinger <cbiesinger@google.com>
2922
2923 * breakpoint.c (iterate_over_breakpoints): Change function pointer
2924 to a gdb::function_view and return value to bool.
2925 * breakpoint.h (iterate_over_breakpoints): Likewise.
2926 * dummy-frame.c (pop_dummy_frame_bpt): Update.
2927 (pop_dummy_frame): Update.
2928 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
2929 (gdbscm_breakpoints): Update.
2930 * python/py-breakpoint.c (build_bp_list): Update.
2931 (gdbpy_breakpoints): Update.
2932 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2933 Update.
2934 (bpfinishpy_handle_stop): Update.
2935 (bpfinishpy_handle_exit): Update.
2936 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
2937 (svr4_update_solib_event_breakpoints): Update.
2938
ba18312d
AA
29392019-10-15 Andreas Arnez <arnez@linux.ibm.com>
2940
2941 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
2942 when unwrapping single-field structs.
2943
6acc1a0b
SM
29442019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2945
2946 * dwarf2read.c: Remove includes.
2947
284782de
SM
29482019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2949
2950 * ui-out.c (ui_out::call_do_message): Silence
2951 -Wformat-nonliteral warning.
2952
073bbbb0
SM
29532019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
2954
2955 * breakpoint.c: Remove some includes: continuations.h, skip.h,
2956 mi/mi-main.h, readline/readline.h, readline/history.h. Add
2957 include: readline/tilde.h.
2958
7b9a15e1
CB
29592019-10-12 Christian Biesinger <cbiesinger@google.com>
2960
2961 * remote.c (remote_target::get_trace_status): Remove declaration of
2962 trace_regblock_size.
2963
cc8dee1f
CB
29642019-10-12 Christian Biesinger <cbiesinger@google.com>
2965
2966 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
2967 (show_user): Remove declaration of cmdlist.
2968 * cli/cli-cmds.h (max_user_call_depth): Declare.
2969 * cli/cli-script.c (execute_user_command): Remove declaration
2970 of max_user_call_depth.
2971
a83d4ef6
JW
29722019-10-11 Jim Wilson <jimw@sifive.com>
2973
5f93c5a6
JW
2974 * gdbsupport/print-utils.h (pulongest): Fix comment.
2975 (plongest): Likewise.
2976 (phex): Add missing comment, mention leading zeros.
2977 (phex_nz): Add mention of no leading zeros to comment.
2978
a83d4ef6
JW
2979 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
2980 plongest instead of unsigned long long cast.
2981
26344e0c
CB
29822019-10-10 Christian Biesinger <cbiesinger@google.com>
2983
2984 * main.c (captured_main_1): Include gdbtk.h and remove declarations
2985 for external_editor_command and gdbtk_test.
2986
c2c440a9
CB
29872019-10-10 Christian Biesinger <cbiesinger@google.com>
2988
2989 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
2990 * varobj.c (varobjdebug): Move comment to...
2991 * varobj.h (varobjdebug): ...here, and declare.
2992
a31bff9d
TT
29932019-10-09 Tom Tromey <tom@tromey.com>
2994
2995 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
2996 erase_data_content.
2997
7523da63
TT
29982019-10-09 Tom Tromey <tom@tromey.com>
2999
3000 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3001 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3002 * tui/tui-command.c (tui_cmd_window::resize)
3003 (tui_refresh_cmd_win): Update.
3004 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3005 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3006 * tui/tui-data.c (~tui_gen_win_info): Remove.
3007 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3008 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3009 (tui_redisplay_readline, tui_mld_flush)
3010 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3011 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3012 (tui_data_window::erase_data_content)
3013 (tui_data_item_window::rerender)
3014 (tui_data_item_window::refresh_window): Update.
3015 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3016 (box_win, tui_gen_win_info::make_window)
3017 (tui_gen_win_info::make_visible): Update.
3018 (tui_delete_win): Remove.
3019 * tui/tui-winsource.c
3020 (tui_source_window_base::do_erase_source_content): Update.
3021 (tui_show_source_line, tui_source_window_base::update_tab_width)
3022 (tui_source_window_base::update_exec_info): Update.
3023 * tui/tui-data.h (struct curses_deleter): New.
3024 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3025 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3026
a7798e7f
TT
30272019-10-09 Tom Tromey <tom@tromey.com>
3028
3029 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3030
5c45899e
TT
30312019-10-09 Tom Tromey <tom@tromey.com>
3032
3033 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3034 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3035
6d7fd9aa
TT
30362019-10-09 Tom Tromey <tom@tromey.com>
3037
3038 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3039 window height directly.
3040 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3041 declare.
3042 * tui/tui-layout.c (tui_default_win_height): Remove.
3043 (tui_default_win_viewport_height): Remove.
3044
d2dd1084
TT
30452019-10-09 Tom Tromey <tom@tromey.com>
3046
3047 * tui/tui.h: Remove comments.
3048
cff32449
TV
30492019-10-09 Tom de Vries <tdevries@suse.de>
3050
3051 * python/lib/gdb/printer/bound_registers.py: Use
3052 '^builtin_type_bound128' as regexp argument for
3053 add_builtin_pretty_printer.
3054
6a25e8a2
CB
30552019-10-09 Christian Biesinger <cbiesinger@google.com>
3056
3057 * guile/guile.c (guile_extension_script_ops): Remove forward
3058 declaration and mark as static.
3059 (guile_script_ops): Likewise.
3060 (extension_language_guile): Move further down in the file so
3061 it can reference the definitions for guile_{extension_,}script_ops.
3062
6d9d6da4
AA
30632019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3064
3065 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3066 except SORTL, DFLTCC, and KDSA.
3067
3abea05d
TT
30682019-10-08 Tom Tromey <tromey@adacore.com>
3069
3070 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3071 (struct safe_symbol_file_add_args): Remove.
3072
dde996e2
TT
30732019-10-08 Tom Tromey <tromey@adacore.com>
3074
3075 * windows-nat.c: Don't include buildsym-legacy.h.
3076
cd6fdaa1
TT
30772019-10-08 Tom Tromey <tromey@adacore.com>
3078
3079 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3080
79bb1944
CB
30812019-10-08 Christian Biesinger <cbiesinger@google.com>
3082
3083 * gdbtypes.c (overload_debug): Move comment to header.
3084 * gdbtypes.h (overload_debug): Declare.
3085 * valops.c: Remove declaration of overload_debug, instead
3086 include gdbtypes.h.
3087
34916edc
CB
30882019-10-08 Christian Biesinger <cbiesinger@google.com>
3089
3090 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3091 through _().
3092 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3093 move comment...
3094 * language.h (lang_frame_mismatch_warn): ... here. Also add
3095 declaration.
3096 * top.c (lang_frame_mismatch_warn): Remove declaration.
3097 (check_frame_language_change): Pass lang_frame_mismatch_warn
3098 through _().
3099
bad5c026
CB
31002019-10-07 Christian Biesinger <cbiesinger@google.com>
3101
3102 * c-lang.h (vtbl_ptr_name): Declare.
3103 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3104 it from the header.
3105 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3106
51f1fdc3
CB
31072019-10-07 Christian Biesinger <cbiesinger@google.com>
3108
3109 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3110 gdb_static_assert.
3111
30d1f018
WP
31122019-10-07 Weimin Pan <weimin.pan@oracle.com>
3113
606813d5
WP
3114 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3115 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
3116 * ctfread.c: New file.
3117 * ctfread.h: New file.
3118 * elfread.c: Include ctfread.h.
3119 (struct elfinfo text_p): New member ctfsect.
3120 (elf_locate_sections): Mark CTF section.
3121 (elf_symfile_read): Call elfctf_build_psymtabs.
3122 * Makefile.in (LIBCTF): Add.
3123 (CLIBS): Use it.
3124 (CDEPS): Likewise.
3125 (DIST): Add ctfread.c.
606813d5
WP
3126
31272019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3128
3129 * ctfread.c (struct nextfield): Renamed to ...
3130 (struct ctf_nextfield): ... this.
3131 (struct field_info): Renamed to ...
3132 (strut ctf_field_info): ... this.
3133 (attach_fields_to_type): Update for renamed structures.
3134 (ctf_add_member_cb): Likewise.
3135 (ctf_add_enum_member_cb): Likewise.
3136 (process_struct_members): Likewise.
3137 (process_enum_type): Likewise.
30d1f018 3138
518fe38c
WP
31392019-10-07 Weimin Pan <weimin.pan@oracle.com>
3140
3141 * tracectf.h: Rename, was ctf.h.
3142 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3143 * tracefile.c: Likewise.
3144 * tracepoint.c: Remove unused include ctf.h.
3145 * mi/mi-main.c: Likewise.
3146 * Makefile.in Replace ctf.c with tracectf.c.
3147
225f296a
JB
31482019-10-06 Joel Brobecker <brobecker@adacore.com>
3149
3150 * version.in: Change version number to "9.0.50.DATE-git".
3151
77c2dba3
TT
31522019-10-03 Tom Tromey <tom@tromey.com>
3153
3154 PR rust/24976:
3155 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3156
179aed7f
AB
31572019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3158
3159 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3160 cp_search_name_hash.
3161 * NEWS: Add entry about nested function support.
3162
0a4b0913
AB
31632019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3164 Andrew Burgess <andrew.burgess@embecosm.com>
3165
3166 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3167 for nested static variables when searchin VAR_DOMAIN.
3168 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3169 global scope, update comment.
3170 (add_partial_subprogram): Call add_partial_subprogram recursively
3171 for nested subroutines when processinng Fortran.
3172 (load_partial_dies): Process the child entities of a subprogram
3173 when processing Fortran.
3174 (partial_die_parent_scope): Handle building scope
3175 for Fortran nested functions.
3176 (process_die): Record that nested functions have a scope.
3177 (new_symbol): Always record Fortran subprograms on the global
3178 symbol list.
3179 (determine_prefix): How to build the prefix for Fortran
3180 subprograms.
3181
d8c06f22
AB
31822019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3183
3184 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3185 have just sent the thread a SIGSTOP and are waiting for it to
3186 arrive.
3187
a8b3b8e9
AB
31882019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3189
3190 * btrace.c (btrace_add_pc): Remove whitespace before the template
3191 parameter in 'std::vector <...>'.
3192 (parse_xml_btrace_block): Likewise.
3193 (btrace_maint_decode_pt): Likewise.
3194 (btrace_maint_update_packets): Likewise.
3195 (btrace_maint_print_packets): Likewise.
3196 * btrace.h (struct btrace_maint_info): Likewise.
3197 * dwarf2read.c (struct type_unit_group): Likewise.
3198 (build_type_psymtabs_reader): Likewise.
3199 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3200 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3201 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3202
4d825eab
TV
32032019-10-03 Tom de Vries <tdevries@suse.de>
3204
3205 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3206 the first line of the help text for set/show style metadata.
3207
80fd2826
TT
32082019-10-02 Tom Tromey <tromey@adacore.com>
3209
3210 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3211 * gdbsupport/common-inferior.c: New file.
3212 * infcmd.c (startup_with_shell): Don't define.
3213 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3214 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3215 * inferior.h (startup_with_shell): Don't declare.
3216
70054538
CB
32172019-10-02 Christian Biesinger <cbiesinger@google.com>
3218
3219 * gdbsupport/gdb_assert.h: Include errors.h.
3220 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3221
37f6a7f4
TT
32222019-10-02 Tom Tromey <tromey@adacore.com>
3223
3224 * NEWS: Add $_ada_exception entry.
3225 * ada-lang.c (struct ada_catchpoint): Add constructor.
3226 <m_kind>: New member.
3227 (allocate_location_exception, re_set_exception): Remove
3228 "ex" parameter.
3229 (should_stop_exception): Compute $_ada_exception.
3230 (check_status_exception, print_it_exception)
3231 (print_one_exception, print_mention_exception): Remove
3232 "ex" parameter.
3233 (allocate_location_catch_exception, re_set_catch_exception)
3234 (check_status_exception, print_it_catch_exception)
3235 (print_one_catch_exception, print_mention_catch_exception)
3236 (print_recreate_catch_exception)
3237 (allocate_location_catch_exception_unhandled)
3238 (re_set_catch_exception_unhandled)
3239 (check_status_exception, print_it_catch_exception_unhandled)
3240 (print_one_catch_exception_unhandled)
3241 (print_mention_catch_exception_unhandled)
3242 (print_recreate_catch_exception_unhandled)
3243 (allocate_location_catch_assert, re_set_catch_assert)
3244 (check_status_assert, print_it_catch_assert)
3245 (print_one_catch_assert, print_mention_catch_assert)
3246 (print_recreate_catch_assert)
3247 (allocate_location_catch_handlers, re_set_catch_handlers)
3248 (check_status_handlers, print_it_catch_handlers)
3249 (print_one_catch_handlers, print_mention_catch_handlers)
3250 (print_recreate_catch_handlers): Remove.
3251 (create_ada_exception_catchpoint): Update.
3252 (initialize_ada_catchpoint_ops): Update.
3253
fccf9de1
TT
32542019-10-02 Tom Tromey <tromey@adacore.com>
3255
3256 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3257 (create_excep_cond_exprs): Simplify exception string computation.
3258 (ada_exception_catchpoint_cond_string): Likewise.
3259
4b610737
TT
32602019-10-02 Tom Tromey <tromey@adacore.com>
3261
3262 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3263 * ada-lang.c (lesseq_defined_than): Handle
3264 LOC_STATIC.
3265 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3266 parameter.
3267 (dwarf2_has_info): Likewise.
3268 (new_symbol): Set maybe_copied on symbol when
3269 appropriate.
3270 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3271 parameter.
3272 <can_copy>: New member.
3273 * elfread.c (record_minimal_symbol): Set maybe_copied
3274 on symbol when appropriate.
3275 (elf_symfile_read): Update call to dwarf2_has_info.
3276 * minsyms.c (lookup_minimal_symbol_linkage): New
3277 function.
3278 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3279 * symtab.c (get_symbol_address, get_msymbol_address):
3280 New functions.
3281 * symtab.h (get_symbol_address, get_msymbol_address):
3282 Declare.
3283 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3284 maybe_copied.
3285 (struct symbol, struct minimal_symbol) <maybe_copied>:
3286 New member.
3287
1dd58850
TT
32882019-10-02 Tom Tromey <tromey@adacore.com>
3289
3290 * source.c (struct current_source_location): New.
3291 (current_source_key): New global.
3292 (current_source_symtab, current_source_line)
3293 (current_source_pspace): Remove.
3294 (get_source_location): New function.
3295 (get_current_source_symtab_and_line)
3296 (set_default_source_symtab_and_line)
3297 (set_current_source_symtab_and_line)
3298 (clear_current_source_symtab_and_line, select_source_symtab)
3299 (info_source_command, print_source_lines_base)
3300 (info_line_command, search_command_helper, _initialize_source):
3301 Update.
3302
5c281dbb
TT
33032019-10-02 Tom Tromey <tromey@adacore.com>
3304
3305 * source.c (select_source_symtab): Don't call
3306 decode_line_with_current_source.
3307
d3d32391
AB
33082019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3309
3310 * symtab.c (lookup_global_symbol): Search global block.
3311
38583298
TT
33122019-10-02 Tom Tromey <tromey@adacore.com>
3313
3314 * coffread.c (process_coff_symbol): Update.
3315 * dwarf2read.c (var_decode_location, new_symbol): Update.
3316 * mdebugread.c (parse_symbol): Update.
3317 * objfiles.c (relocate_one_symbol): Update.
3318 * stabsread.c (define_symbol, fix_common_block)
3319 (scan_file_globals): Update.
3320 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3321 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3322 * xcoffread.c (process_xcoff_symbol): Update.
3323
9344c18f
AA
33242019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3325
3326 * MAINTAINERS: Update my email address.
3327
df07e2c7
AB
33282019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3329
3330 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3331 std::vector.
3332 (build_type_psymtabs_reader): Update for std::vector.
3333 (build_type_psymtab_dependencies): Likewise.
3334 * dwarf2read.h: Remove use of DEF_VEC_P.
3335 (typedef sig_type_ptr): Delete.
3336
554ac434
AB
33372019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3338
3339 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3340 to std::vector.
3341 (btrace_maint_decode_pt): Likewise, and move allocation of the
3342 vector outside of the loop.
3343 (btrace_maint_update_packets): Update to handle change from VEC to
3344 std::vector.
3345 (btrace_maint_print_packets): Likewise.
3346 (maint_info_btrace_cmd): Likewise.
3347 * btrace.h: Remove use of DEF_VEC_O.
3348 (typedef btrace_pt_packet_s): Delete.
3349 (struct btrace_maint_info) <packets>: Change fromm VEC to
3350 std::vector.
3351 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3352
46f29a9a
AB
33532019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3354
3355 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3356 make accesses into the vector constant references.
3357 (btrace_add_pc): Update for std::vector.
3358 (btrace_stitch_bts): Likewise.
3359 (parse_xml_btrace_block): Likewise.
3360 (btrace_maint_update_packets): Likewise.
3361 (btrace_maint_print_packets): Likewise.
3362 (maint_info_btrace_cmd): Likewise.
3363 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3364 std::vector.
3365 (btrace_data::empty): Likewise.
3366 (btrace_data_append): Likewise.
3367 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3368 (typedef btrace_block_s): Delete.
3369 (struct btrace_block): Add constructor.
3370 (struct btrace_data_bts) <blocks>: Change to std::vector.
3371 * nat/linux-btrace.c (perf_event_read_bts): Update for
3372 std::vector.
3373 (linux_read_bts): Likewise.
3374
d770d56f
TT
33752019-10-01 Tom Tromey <tom@tromey.com>
3376
3377 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3378
9d636d67
TT
33792019-10-01 Tom Tromey <tom@tromey.com>
3380
3381 * stack.c (print_frame, info_frame_command_core): Use
3382 styled_string.
3383 * linux-thread-db.c (try_thread_db_load_1)
3384 (try_thread_db_load_from_pdir_1): Use styled_string.
3385 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3386 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3387 (maybe_print_unsupported_script_warning)
3388 (maybe_print_script_not_found_warning): Use styled_string.
3389 * ada-lang.c (user_select_syms): Use styled_string.
3390
7f6aba03
TT
33912019-10-01 Tom Tromey <tom@tromey.com>
3392
3393 * p-lang.c (pascal_printstr): Use metadata style.
3394 * value.c (show_convenience): Use metadata style.
3395 * valprint.c (valprint_check_validity, val_print_optimized_out)
3396 (val_print_not_saved, val_print_unavailable)
3397 (val_print_invalid_address, generic_val_print, val_print)
3398 (value_check_printable, val_print_array_elements): Use metadata
3399 style.
3400 * ui-out.h (class ui_out) <field_fmt>: New overload.
3401 <do_field_fmt>: Add style parameter.
3402 * ui-out.c (ui_out::field_fmt): New overload.
3403 * typeprint.c (type_print_unknown_return_type)
3404 (val_print_not_allocated, val_print_not_associated): Use metadata
3405 style.
3406 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3407 parameter.
3408 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3409 * tracepoint.c (tvariables_info_1): Use metadata style.
3410 * stack.c (print_frame_arg, print_frame_info, print_frame)
3411 (info_frame_command_core): Use metadata style.
3412 * skip.c (info_skip_command): Use metadata style.
3413 * rust-lang.c (rust_print_enum): Use metadata style.
3414 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3415 metadata style.
3416 * python/py-framefilter.c (py_print_single_arg): Use metadata
3417 style.
3418 * printcmd.c (do_one_display, print_variable_and_value): Use
3419 metadata style.
3420 * p-valprint.c (pascal_val_print)
3421 (pascal_object_print_value_fields): Use metadata style.
3422 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3423 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3424 parameter.
3425 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3426 * m2-valprint.c (m2_print_long_set): Use metadata style.
3427 * m2-typeprint.c (m2_print_type): Use metadata style.
3428 * infcmd.c (print_return_value_1): Use metadata style.
3429 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3430 * f-valprint.c (info_common_command_for_block): Use metadata
3431 style.
3432 * f-typeprint.c (f_type_print_base): Use metadata style.
3433 * expprint.c (print_subexp_standard): Use metadata style.
3434 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3435 * cli/cli-style.h (class cli_style_option): Add constructor.
3436 (metadata_style): Declare.
3437 * cli/cli-style.c (metadata_style): New global.
3438 (_initialize_cli_style): Register metadata style.
3439 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3440 parameter.
3441 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3442 * c-typeprint.c (c_type_print_base_struct_union)
3443 (c_type_print_base_1): Use metadata style.
3444 * breakpoint.c (watchpoint_value_print)
3445 (print_one_breakpoint_location): Use metadata style.
3446 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3447 style.
3448 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3449 style.
3450 * ada-valprint.c (val_print_packed_array_elements, printstr)
3451 (print_field_values, ada_val_print_ref, ada_val_print): Use
3452 metadata style.
3453 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3454 style.
3455 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3456 style.
3457 * ada-lang.c (user_select_syms): Use metadata style.
3458
14309bb6
TT
34592019-10-01 Tom Tromey <tom@tromey.com>
3460
3461 * cli/cli-cmds.c (pwd_command): Style output.
3462
6a831f06
PA
34632019-10-01 Pedro Alves <palves@redhat.com>
3464 Tom Tromey <tom@tromey.com>
3465
3466 * symtab.c (print_symbol_info): Use %ps.
3467 (print_msymbol_info): Use %ps.
3468 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3469 * printcmd.c (print_variable_and_value): Use %ps.
3470 * macrocmd.c (show_pp_source_pos): Use %ps.
3471 * infrun.c (print_exited_reason): Use ui_out::message.
3472 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3473 (describe_other_breakpoints): Use ui_out::message and new
3474 formats.
3475 (say_where): Use new formats.
3476 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3477 and new formats.
3478
2a3c1174
PA
34792019-10-01 Pedro Alves <palves@redhat.com>
3480 Tom Tromey <tom@tromey.com>
3481
3482 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3483 (test_gdb_formats): New function.
3484 (run_tests): Call it.
3485 (test_format_specifier): Update.
3486 * utils.h (fputs_filtered): Update comment.
3487 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3488 (fputs_styled_unfiltered): Declare.
3489 * utils.c (fputs_styled_unfiltered): New function.
3490 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3491 (vfprintf_filtered): Update.
3492 (vfprintf_unfiltered, vprintf_filtered): Update.
3493 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3494 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3495 disallow_ui_out_field>: New constants.
3496 (enum class field_kind): New.
3497 (struct base_field_s, struct signed_field_s): New.
3498 (signed_field): New function.
3499 (struct string_field_s): New.
3500 (string_field): New function.
3501 (struct styled_string_s): New.
3502 (styled_string): New function.
3503 (class ui_out) <message>: Add comment.
3504 <vmessage, call_do_message>: New methods.
3505 <do_message>: Add style parameter.
3506 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3507 methods.
3508 (ui_out::message): Rewrite.
3509 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3510 parameter.
3511 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3512 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3513 gdb_extensions parameter.
3514 (class format_piece): Add parameter to constructor.
3515 (n_int_args): New field.
3516 * gdbsupport/format.c (format_pieces::format_pieces): Add
3517 gdb_extensions parameter. Handle '*'.
3518 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3519 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3520 vfprintf_styled_no_gdbfmt.
3521 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3522 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3523 unfiltered output.
3524 * ui-style.h (struct ui_file_style) <ptr>: New method.
3525
0dfe5bfb
TT
35262019-10-01 Tom Tromey <tom@tromey.com>
3527
3528 * unittests/format_pieces-selftests.c: Update. Add final format.
3529 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3530 empty literal pieces.
3531
e43b10e1
TT
35322019-10-01 Tom Tromey <tom@tromey.com>
3533
3534 * ui-out.h (enum class ui_out_style_kind): Remove.
3535 (class ui_out) <field_string, field_stsream, do_field_string>:
3536 Change type of "style".
3537 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3538 (ui_out::field_string): Update.
3539 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3540 of "style".
3541 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3542 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3543 * stack.c (print_frame_arg, print_frame_info, print_frame):
3544 Update.
3545 * source.c (print_source_lines_base): Update.
3546 * solib.c (info_sharedlibrary_command): Update.
3547 * skip.c (info_skip_command): Update.
3548 * record-btrace.c (btrace_call_history_src_line)
3549 (btrace_call_history): Update.
3550 * python/py-framefilter.c (py_print_frame): Update.
3551 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3552 "style".
3553 * mi/mi-out.c (mi_ui_out::do_table_header)
3554 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3555 (mi_ui_out::do_field_string): Update.
3556 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3557 Update.
3558 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3559 "style".
3560 * cli-out.c (cli_ui_out::do_table_header)
3561 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3562 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3563 (cli_ui_out::do_field_fmt): Update.
3564 * breakpoint.c (print_breakpoint_location): Update.
3565 (update_static_tracepoint): Update.
3566
cd7c32c3
PW
35672019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3568
3569 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3570 conversion of gdb_datadir.
3571 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3572 remove not needed c_str ().
3573
8fe0f950
AT
35742019-09-30 Ali Tamur <tamur@google.com>
3575
3576 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3577 (dwarf2_string_attr): Likewise.
3578
5f48f8f3
AT
35792019-09-30 Ali Tamur <tamur@google.com>
3580
3581 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3582 (process_full_type_unit): Likewise.
3583 (dump_die_shallow): Likewise.
3584 (cu_debug_loc_section): Likewise.
3585
6fb08628
CB
35862019-09-28 Christian Biesinger <cbiesinger@google.com>
3587
3588 * minsyms.c (compare_minimal_symbols): Rename to...
3589 (minimal_symbol_is_less_than): ...this, and adjust to STL
3590 conventions (return bool, take arguments as references)
3591 (minimal_symbol_reader::install): Call std::sort instead
3592 of qsort.
3593
c7ee338a
CB
35942019-09-29 Christian Biesinger <cbiesinger@google.com>
3595
3596 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3597 hash and why.
3598 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3599 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3600
703a86c2
SM
36012019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3602
3603 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3604 * psympriv.h (add_psymbol_to_list): Move comment here and update
3605 it.
3606
0df0352a
TV
36072019-09-29 Tom de Vries <tdevries@suse.de>
3608
3609 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3610 Use $tmpdir/$(basename "$output_file").dwz instead of
3611 "${output_file}.dwz".
3612
ad75efa6
SM
36132019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3614
3615 PR gdb/25045
3616 * hppa-linux-nat.c: Include gdbarch.h.
3617
ececd218
CB
36182019-09-26 Christian Biesinger <cbiesinger@google.com>
3619
3620 * blockframe.c (find_pc_partial_function): Change return type to bool.
3621 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3622 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3623 (stub_gnu_ifunc_resolve_name): Likewise.
3624 * symtab.c (compare_filenames_for_search): Likewise.
3625 (compare_glob_filenames_for_search): Likewise.
3626 (matching_obj_sections): Likewise.
3627 (symbol_matches_domain): Likewise.
3628 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3629 (find_line_pc): Change return type to bool.
3630 (find_line_pc_range): Likewise.
3631 (producer_is_realview): Likewise.
3632 * symtab.h (symbol_matches_domain): Likewise.
3633 (find_pc_partial_function): Likewise.
3634 (find_pc_line_pc_range): Likewise.
3635 (in_gnu_ifunc_stub): Likewise.
3636 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3637 (find_line_pc): Likewise.
3638 (find_line_pc_range): Likewise.
3639 (matching_obj_sections): Likewise.
3640 (find_line_symtab): Change out parameter to bool.
3641 (producer_is_realview): Change return type to bool.
3642 (compare_filenames_for_search): Likewise.
3643 (compare_glob_filenames_for_search): Likewise.
3644
27a900b8
TT
36452019-09-26 Tom Tromey <tom@tromey.com>
3646
3647 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3648 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3649 * gdb_usleep.h: Remove.
3650 * gdb_usleep.c: Remove.
3651 * utils.c: Don't include gdb_usleep.h.
3652
5d63b30a
TT
36532019-09-26 Tom Tromey <tromey@adacore.com>
3654
3655 * python/py-type.c (type_to_type_object): Call check_typedef
3656 for stub types.
3657
12904d37
TT
36582019-09-26 Tom Tromey <tom@tromey.com>
3659
3660 * utils.h (initialize_utils): Don't declare.
3661 * top.c (gdb_init): Don't call initialize_utils.
3662 * utils.c (initialize_utils): Remove. Move contents...
3663 (_initialize_utils): ... here.
3664
858f25f0
TT
36652019-09-25 Tom Tromey <tom@tromey.com>
3666
3667 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3668 * utils.h (make_hex_string): Don't declare.
3669 * utils.c (make_hex_string): Remove.
3670
3d435220
TV
36712019-09-24 Tom de Vries <tdevries@suse.de>
3672
3673 PR gdb/23815
3674 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3675 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3676
ddd44b70
DD
36772019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3678
3679 * NEWS: Mention new simulator port for PRU.
3680
f945dedf
CB
36812019-09-23 Christian Biesinger <cbiesinger@google.com>
3682
3683 * ada-exp.y (write_object_remaining): Update.
3684 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3685 and eliminate the static buffer.
3686 (ada_decode_symbol): Update.
3687 (ada_la_decode): Update.
3688 (ada_sniff_from_mangled_name): Update.
3689 (is_valid_name_for_wild_match): Update.
3690 (ada_lookup_name_info::matches): Update and simplify.
3691 (name_matches_regex): Update.
3692 (ada_add_global_exceptions): Update.
3693 * ada-lang.h (ada_decode): Update signature.
3694 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3695 * dwarf-index-write.c (debug_names::insert): Update.
3696
7ab78ccb
SM
36972019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3698
3699 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3700 formatting.
3701
9252448b
SM
37022019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3703
3704 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3705 Change "nonzero" to "true" in documentation.
3706
626ca2c0
CB
37072019-09-20 Christian Biesinger <cbiesinger@google.com>
3708
3709 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3710 (_initialize_darwin_solib): Don't set
3711 darwin_so_ops.lookup_lib_global_symbol.
3712 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3713 set_gdbarch_iterate_over_objfiles_in_search_order.
3714 (elf_lookup_lib_symbol): Rename to...
3715 (svr4_iterate_over_objfiles_in_search_order): this, and update
3716 to iterate semantics.
3717 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3718 * solib.c (solib_global_lookup): Remove.
3719 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3720 (solib_global_lookup): Remove.
3721 * symtab.c (lookup_global_or_static_symbol): Remove call to
3722 solib_global_lookup.
3723
5a3a0d63
JB
37242019-09-20 Joel Brobecker <brobecker@adacore.com>
3725
3726 * NEWS: Move entries about default MI version now being
3727 version 3, and about the GDB/MI fix for multi-location
3728 breakpoints to the "since GDB 8.3" section.
3729
ffea1427
JB
37302019-09-20 Joel Brobecker <brobecker@adacore.com>
3731
3732 GDB 8.3.1 released.
3733
abf516c6
UW
37342019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3735
3736 * NEWS: Mention that Cell/B.E. debugging support was removed.
3737 * MAINTAINERS: Remove spu target.
3738
3739 * config/djgpp/fnchange.lst: Remove entries for removed files.
3740
3741 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3742 spu-multiarch.o, and spu-tdep.o.
3743 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3744 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3745 spu-multiarch.c, and spu-tdep.c.
3746 * spu-linux-nat.c: Remove file.
3747 * spu-multiarch.c: Remove file.
3748 * spu-tdep.c: Remove file.
3749 * spu-tdep.h: Remove file.
3750 * solib-spu.c: Remove file.
3751 * solib-spu.h: Remove file.
3752
3753 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3754 * configure.nat (spu-linux): Remove.
3755 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3756 solib-multiarch.o from gdb_target_obs.
3757 (spu*-*-*): Remove.
3758
3759 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3760 feature flag.
3761 (ppc_linux_no_features): Update.
3762 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3763 Cell/B.E. support.
3764 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3765 (tdesc_powerpc_cell64l): Likewise.
3766 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3767 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3768 Cell/B.E. support.
3769 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3770 Do not include "features/rs6000/powerpc-cell32l.c" or
3771 "features/rs6000/powerpc-cell64l.c".
3772 (ppc_linux_spu_section): Remove.
3773 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3774 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3775 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3776 (ppc_linux_spe_context_lookup): Remove.
3777 (ppc_linux_spe_context_inferior_created): Remove.
3778 (ppc_linux_spe_context_solib_loaded): Remove.
3779 (ppc_linux_spe_context_solib_unloaded): Remove.
3780 (ppc_linux_spe_context): Remove.
3781 (struct ppu2spu_cache): Remove.
3782 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3783 (struct ppu2spu_data): Remove.
3784 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3785 ppu2spu_unwind): Remove.
3786 (ppc_linux_init_abi): Remove Cell/B.E. support.
3787 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3788
3789 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3790 (rs6000/powerpc-cell64l-expedite): Likewise
3791 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3792 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3793 rs6000/powerpc-cell64l.xml.
3794 * features/rs6000/powerpc-cell32l.xml: Remove.
3795 * features/rs6000/powerpc-cell64l.xml: Likewise.
3796 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3797 * features/rs6000/powerpc-cell64l.c: Likewise.
3798 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3799 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3800 * regformats/reg-spu.dat: Remove.
3801
3802 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3803 * corelow.c (struct spuid_list): Remove.
3804 (add_to_spuid_list): Remove.
3805 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3806 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3807 (remote_protocol_features): Remove associated entries.
3808 (_initialize_remote): No longer initialize them.
3809 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3810 * linux-nat.c (SPUFS_MAGIC): Remove.
3811 (linux_proc_xfer_spu): Remove.
3812 (spu_enumerate_spu_ids): Remove.
3813 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3814 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3815 (linux_make_corefile_notes): No longer call it.
3816
3817 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3818 (cooked_write_test): Likewise.
3819
78e8cb91
TT
38202019-09-20 Tom Tromey <tom@tromey.com>
3821
3822 * NEWS: Mention case-sensitivity of TUI commands.
3823 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3824 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3825 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3826
f074b67e
TT
38272019-09-20 Tom Tromey <tom@tromey.com>
3828
3829 * tui/tui-source.c (tui_source_window::set_contents): Use
3830 make_unique_xstrdup.
3831 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3832 make_unique_xstrdup.
3833
63c4bf19
TT
38342019-09-20 Tom Tromey <tom@tromey.com>
3835
3836 * tui/tui-data.c: Remove separator comments.
3837 * tui/tui-layout.c: Remove separator comments.
3838 * tui/tui-win.c: Remove separator comments.
3839 * tui/tui-wingeneral.c: Remove separator comments.
3840
43df9b2f
TT
38412019-09-20 Tom Tromey <tom@tromey.com>
3842
3843 * tui/tui.h (strcat_to_buf): Don't declare.
3844 * tui/tui.c (strcat_to_buf): Remove.
3845
7226433c
TT
38462019-09-20 Tom Tromey <tom@tromey.com>
3847
3848 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3849 from "fullname".
3850 * tui/tui-source.c (tui_source_window::set_contents)
3851 (tui_source_window::location_matches_p)
3852 (tui_source_window::maybe_update): Update.
3853
80df3337
TT
38542019-09-20 Tom Tromey <tom@tromey.com>
3855
3856 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3857 Update.
3858 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3859 prefix.
3860 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3861 (tui_data_window::line_from_reg_element_no)
3862 (tui_data_window::first_reg_element_no_inline)
3863 (tui_data_window::show_registers)
3864 (tui_data_window::show_register_group)
3865 (tui_data_window::display_registers_from)
3866 (tui_data_window::display_registers_from_line)
3867 (tui_data_window::first_data_item_displayed)
3868 (tui_data_window::delete_data_content_windows)
3869 (tui_data_window::erase_data_content)
3870 (tui_data_window::do_scroll_vertical)
3871 (tui_data_window::refresh_window)
3872 (tui_data_window::check_register_values): Update.
3873
9923f347
TT
38742019-09-20 Tom Tromey <tom@tromey.com>
3875
3876 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3877 (struct tui_locator_window) <full_name, proc_name>: Now
3878 std::string.
3879 * tui/tui-stack.c (tui_locator_window::make_status_line)
3880 (tui_locator_window::set_locator_fullname)
3881 (tui_locator_window::set_locator_info): Update.
3882 * tui/tui-source.c (tui_source_window::set_contents)
3883 (tui_source_window::showing_source_p): Update.
3884
b76251ab
TT
38852019-09-20 Tom Tromey <tom@tromey.com>
3886
3887 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3888 Don't call tui_locator_win_info_ptr.
3889
0891be08
TT
38902019-09-20 Tom Tromey <tom@tromey.com>
3891
3892 * tui/tui-win.c (tui_resize_all): Don't call refresh.
3893
1b935acf
TT
38942019-09-20 Tom Tromey <tom@tromey.com>
3895
3896 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
3897 height for locator.
3898 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
3899 * tui/tui-layout.c (show_source_disasm_command, show_data)
3900 (show_source_or_disasm_and_command): Use 1 as height for locator.
3901
9abd8a65
TT
39022019-09-20 Tom Tromey <tom@tromey.com>
3903
3904 * tui/tui.c (tui_enable): Update.
3905 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
3906 Update.
3907 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
3908 Update.
3909 * tui/tui-data.c (win_resized): Now bool.
3910 (tui_win_resized): Return bool.
3911 (tui_set_win_resized_to): Accept a bool.
3912
b5457826
TT
39132019-09-20 Tom Tromey <tom@tromey.com>
3914
3915 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
3916 Change type of "refresh_values_only".
3917 * tui/tui-regs.c (tui_data_window::show_register_group): Change
3918 type of "refresh_values_only".
3919
6b915f7d
TT
39202019-09-20 Tom Tromey <tom@tromey.com>
3921
3922 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
3923 std::string.
3924 (tui_disassemble): Add "pos" parameter.
3925 (tui_disasm_window::set_contents): Simplify.
3926
2ad52f6f
TT
39272019-09-20 Tom Tromey <tom@tromey.com>
3928
3929 * tui/tui-winsource.h (struct tui_source_window_base)
3930 <show_source_content>: Now private.
3931 * tui/tui-winsource.c
3932 (tui_source_window_base::show_source_content): Don't handle empty
3933 content case.
3934
b3b1bde6
TT
39352019-09-20 Tom Tromey <tom@tromey.com>
3936
3937 * tui/tui-layout.c (show_source_disasm_command)
3938 (show_source_or_disasm_and_command): Don't call
3939 show_source_content.
3940
71a25ed2
TT
39412019-09-20 Tom Tromey <tom@tromey.com>
3942
3943 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
3944 Declare.
3945 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
3946 from tui_make_status_line.
3947 (tui_locator_window::rerender): Update.
3948
f8532154
TT
39492019-09-20 Tom Tromey <tom@tromey.com>
3950
3951 * tui/tui-stack.c (tui_make_status_line): Return std::string.
3952 (tui_locator_window::rerender): Update.
3953
2d81b349
TT
39542019-09-20 Tom Tromey <tom@tromey.com>
3955
3956 * tui/tui-winsource.h (struct tui_source_window_base)
3957 <~tui_source_window_base>: Don't declare.
3958 <fullname>: Remove.
3959 * tui/tui-winsource.c (~tui_source_window_base): Remove.
3960 * tui/tui-source.h (struct tui_source_window) <fullname>: New
3961 member.
3962 * tui/tui-source.c (tui_source_window::set_contents): Update.
3963 (tui_source_window::location_matches_p)
3964 (tui_source_window::maybe_update): Update.
3965
f14bec58
TT
39662019-09-20 Tom Tromey <tom@tromey.com>
3967
3968 * tui/tui-winsource.h (~tui_source_element): Remove.
3969 (tui_source_element): Update.
3970 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
3971 * tui/tui-winsource.c (tui_show_source_line): Update.
3972 * tui/tui-source.c (tui_source_window::set_contents): Update.
3973 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
3974
78d5933a
TT
39752019-09-20 Tom Tromey <tom@tromey.com>
3976
3977 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
3978 declare.
3979 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
3980 tui_clear_source_windows_detail.
3981 * tui/tui-winsource.h (struct tui_source_window_base)
3982 <clear_detail>: Don't declare.
3983 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
3984 Remove.
3985 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
3986
d4207696
TT
39872019-09-20 Tom Tromey <tromey@adacore.com>
3988
3989 PR ada/24919:
3990 * block.c (contained_in): Fix final return value.
3991
00f93c44
AM
39922019-09-20 Alan Modra <amodra@gmail.com>
3993
3994 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
3995 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
3996 (read_indirect_string_from_dwz): Use bfd accessor.
3997 * dwarf2read.h (struct dwz_file <filename>): Likewise.
3998 * machoread.c (macho_symfile_read_all_oso): Likewise.
3999 * solib.c (solib_bfd_open): Likewise.
4000
e4153ae6
CB
40012019-09-19 Christian Biesinger <cbiesinger@google.com>
4002
4003 * eval.c: Move declaration of overload_resolution to...
4004 * value.h: ...here.
4005
c7ae7675
CB
40062019-09-19 Christian Biesinger <cbiesinger@google.com>
4007
4008 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4009 * arm-linux-tdep.c: Likewise.
4010 * arm-nbsd-nat.c: Likewise.
4011 * arm-tdep.h: Declare arm_apcs_32.
4012 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4013
e86f08d2
CB
40142019-09-19 Christian Biesinger <cbiesinger@google.com>
4015
4016 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4017 * dwarf2read.h: Declare dwarf_always_disassemble.
4018
f64e2f40
TV
40192019-09-19 Tom de Vries <tdevries@suse.de>
4020
4021 PR gdb/25009
4022 * source-cache.c (source_cache::ensure): Catch exception thrown during
4023 construction of the highlighter.
4024
fd361982
AM
40252019-09-18 Alan Modra <amodra@gmail.com>
4026
4027 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4028 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4029 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4030 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4031 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4032 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4033 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4034 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4035 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4036 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4037 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4038 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4039 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4040 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4041 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4042 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4043 * mi/mi-interp.c: Update throughout for bfd section macro and
4044 function changes.
4045 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4046 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4047
11061048
TT
40482019-09-18 Tom Tromey <tom@tromey.com>
4049
4050 * NEWS: Add entry.
4051 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4052 call rl_initialize.
4053 (tui_enable): Do not call rl_initialize.
4054
7a27b85f
CG
40552019-09-18 Christian Groessler <chris@groessler.org>
4056
4057 * alpha-linux-nat.c: Include gdbarch.h.
4058
f64eea3a
SM
40592019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4060
4061 * ui-file.c: Include cli/cli-style.h.
4062 (term_cli_styling): Remove cli_styling declaration.
4063
e6f7f6d1
AM
40642019-09-18 Alan Modra <amodra@gmail.com>
4065
4066 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4067 to bfd_asymbol_section.
4068
1d38e9d1
AM
40692019-09-18 Alan Modra <amodra@gmail.com>
4070
4071 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4072 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4073 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4074
90d92a63
AM
40752019-09-18 Alan Modra <amodra@gmail.com>
4076
4077 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4078 * spu-linux-nat.c (spu_bfd_open): Likewise.
4079
a3d181d2
CB
40802019-09-18 Christian Biesinger <cbiesinger@google.com>
4081
4082 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4083 to bool to match definition in dwarf2read.c.
4084
491144b5
CB
40852019-09-17 Christian Biesinger <cbiesinger@google.com>
4086
4087 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4088 (print_signatures): Likewise.
4089 (trust_pad_over_xvs): Likewise.
4090 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4091 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4092 * arm-linux-nat.c (arm_apcs_32): Likewise.
4093 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4094 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4095 * arm-tdep.c (arm_debug): Likewise.
4096 (arm_apcs_32): Likewise.
4097 * auto-load.c (debug_auto_load): Likewise.
4098 (auto_load_gdb_scripts): Likewise.
4099 (global_auto_load): Likewise.
4100 (auto_load_local_gdbinit): Likewise.
4101 (auto_load_local_gdbinit_loaded): Likewise.
4102 * auto-load.h (global_auto_load): Likewise.
4103 (auto_load_local_gdbinit): Likewise.
4104 (auto_load_local_gdbinit_loaded): Likewise.
4105 * breakpoint.c (disconnected_dprintf): Likewise.
4106 (breakpoint_proceeded): Likewise.
4107 (automatic_hardware_breakpoints): Likewise.
4108 (always_inserted_mode): Likewise.
4109 (target_exact_watchpoints): Likewise.
4110 (_initialize_breakpoint): Update.
4111 * breakpoint.h (target_exact_watchpoints): Change to bool.
4112 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4113 * cli/cli-cmds.c (trace_commands): Likewise.
4114 * cli/cli-cmds.h (trace_commands): Likewise.
4115 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4116 to bool*.
4117 * cli/cli-logging.c (logging_overwrite): Change to bool.
4118 (logging_redirect): Likewise.
4119 (debug_redirect): Likewise.
4120 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4121 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4122 to bool.
4123 <boolean_option_def>: Update.
4124 (struct flag_option_def): Change default type of Context to bool
4125 from int.
4126 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4127 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4128 (get_setshow_command_value_string): Likewise.
4129 * cli/cli-style.c (cli_styling): Change to bool.
4130 (source_styling): Likewise.
4131 * cli/cli-style.h (source_styling): Likewise.
4132 (cli_styling): Likewise.
4133 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4134 to bool.
4135 * command.h (var_types): Update comment.
4136 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4137 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4138 bool.
4139 (debug_compile_cplus_scopes): Likewise.
4140 * compile/compile-internal.h (compile_debug): Likewise.
4141 * compile/compile.c (compile_debug): Likewise.
4142 (struct compile_options) <raw>: Likewise.
4143 * cp-support.c (catch_demangler_crashes): Likewise.
4144 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4145 (usr_cmd_cris_dwarf2_cfi): Likewise.
4146 * csky-tdep.c (csky_debug): Likewise.
4147 * darwin-nat.c (enable_mach_exceptions): Likewise.
4148 * dcache.c (dcache_enabled_p): Likewise.
4149 * defs.h (info_verbose): Likewise.
4150 * demangle.c (demangle): Likewise.
4151 (asm_demangle): Likewise.
4152 * dwarf-index-cache.c (debug_index_cache): Likewise.
4153 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4154 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4155 * dwarf2read.c (check_physname): Likewise.
4156 (use_deprecated_index_sections): Likewise.
4157 (dwarf_always_disassemble): Likewise.
4158 * eval.c (overload_resolution): Likewise.
4159 * event-top.c (set_editing_cmd_var): Likewise.
4160 (exec_done_display_p): Likewise.
4161 * event-top.h (set_editing_cmd_var): Likewise.
4162 (exec_done_display_p): Likewise.
4163 * exec.c (write_files): Likewise.
4164 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4165 (debug_fbsd_nat): Likewise.
4166 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4167 Likewise.
4168 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4169 <backtrace_past_entry> Likewise.
4170 * gdb-demangle.h (demangle): Likewise.
4171 (asm_demangle): Likewise.
4172 * gdb_bfd.c (bfd_sharing): Likewise.
4173 * gdbcore.h (write_files): Likewise.
4174 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4175 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4176 * gdbthread.h (print_thread_events): Likewise.
4177 * gdbtypes.c (opaque_type_resolution): Likewise.
4178 (strict_type_checking): Likewise.
4179 * gnu-nat.c (gnu_debug_flag): Likewise.
4180 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4181 * guile/scm-param.c (pascm_variable): Add boolval.
4182 (add_setshow_generic): Update.
4183 (pascm_param_value): Update.
4184 (pascm_set_param_value_x): Update.
4185 * hppa-tdep.c (hppa_debug): Change to bool..
4186 * infcall.c (may_call_functions_p): Likewise.
4187 (coerce_float_to_double_p): Likewise.
4188 (unwind_on_signal_p): Likewise.
4189 (unwind_on_terminating_exception_p): Likewise.
4190 * infcmd.c (startup_with_shell): Likewise.
4191 * inferior.c (print_inferior_events): Likewise.
4192 * inferior.h (startup_with_shell): Likewise.
4193 (print_inferior_events): Likewise.
4194 * infrun.c (step_stop_if_no_debug): Likewise.
4195 (detach_fork): Likewise.
4196 (debug_displaced): Likewise.
4197 (disable_randomization): Likewise.
4198 (non_stop): Likewise.
4199 (non_stop_1): Likewise.
4200 (observer_mode): Likewise.
4201 (observer_mode_1): Likewise.
4202 (set_observer_mode): Update.
4203 (sched_multi): Change to bool.
4204 * infrun.h (debug_displaced): Likewise.
4205 (sched_multi): Likewise.
4206 (step_stop_if_no_debug): Likewise.
4207 (non_stop): Likewise.
4208 (disable_randomization): Likewise.
4209 * linux-tdep.c (use_coredump_filter): Likewise.
4210 (dump_excluded_mappings): Likewise.
4211 * linux-thread-db.c (auto_load_thread_db): Likewise.
4212 (check_thread_db_on_load): Likewise.
4213 * main.c (captured_main_1): Update.
4214 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4215 xx2_opt, boolean_opt>: Change to bool.
4216 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4217 * maint.c (maintenance_profile_p): Likewise.
4218 (per_command_time): Likewise.
4219 (per_command_space): Likewise.
4220 (per_command_symtab): Likewise.
4221 * memattr.c (inaccessible_by_default): Likewise.
4222 * mi/mi-main.c (mi_async): Likewise.
4223 (mi_async_1): Likewise.
4224 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4225 * nat/fork-inferior.h (startup_with_shell): Likewise.
4226 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4227 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4228 * nios2-tdep.c (nios2_debug): Likewise.
4229 * or1k-tdep.c (or1k_debug): Likewise.
4230 * parse.c (parser_debug): Likewise.
4231 * parser-defs.h (parser_debug): Likewise.
4232 * printcmd.c (print_symbol_filename): Likewise.
4233 * proc-api.c (procfs_trace): Likewise.
4234 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4235 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4236 (set_parameter_value): Update.
4237 (add_setshow_generic): Update.
4238 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4239 to bool*.
4240 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4241 int*.
4242 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4243 * record-btrace.c (record_btrace_target::store_registers): Update.
4244 * record-full.c (record_full_memory_query): Change to bool.
4245 (record_full_stop_at_limit): Likewise.
4246 * record-full.h (record_full_memory_query): Likewise.
4247 * remote-notif.c (notif_debug): Likewise.
4248 * remote-notif.h (notif_debug): Likewise.
4249 * remote.c (use_range_stepping): Likewise.
4250 (interrupt_on_connect): Likewise.
4251 (remote_break): Likewise.
4252 * ser-tcp.c (tcp_auto_retry): Likewise.
4253 * ser-unix.c (serial_hwflow): Likewise.
4254 * skip.c (debug_skip): Likewise.
4255 * solib-aix.c (solib_aix_debug): Likewise.
4256 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4257 (spu_auto_flush_cache_p): Likewise.
4258 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4259 Likewise.
4260 (struct info_print_options) <quiet>: Likewise.
4261 * symfile-debug.c (debug_symfile): Likewise.
4262 * symfile.c (auto_solib_add): Likewise.
4263 (separate_debug_file_debug): Likewise.
4264 * symfile.h (auto_solib_add): Likewise.
4265 (separate_debug_file_debug): Likewise.
4266 * symtab.c (basenames_may_differ): Likewise.
4267 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4268 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4269 (struct info_types_options) <quiet>: Likewise.
4270 * symtab.h (demangle): Likewise.
4271 (basenames_may_differ): Likewise.
4272 * target-dcache.c (stack_cache_enabled_1): Likewise.
4273 (code_cache_enabled_1): Likewise.
4274 * target.c (trust_readonly): Likewise.
4275 (may_write_registers): Likewise.
4276 (may_write_memory): Likewise.
4277 (may_insert_breakpoints): Likewise.
4278 (may_insert_tracepoints): Likewise.
4279 (may_insert_fast_tracepoints): Likewise.
4280 (may_stop): Likewise.
4281 (auto_connect_native_target): Likewise.
4282 (target_stop_and_wait): Update.
4283 (target_async_permitted): Change to bool.
4284 (target_async_permitted_1): Likewise.
4285 (may_write_registers_1): Likewise.
4286 (may_write_memory_1): Likewise.
4287 (may_insert_breakpoints_1): Likewise.
4288 (may_insert_tracepoints_1): Likewise.
4289 (may_insert_fast_tracepoints_1): Likewise.
4290 (may_stop_1): Likewise.
4291 * target.h (target_async_permitted): Likewise.
4292 (may_write_registers): Likewise.
4293 (may_write_memory): Likewise.
4294 (may_insert_breakpoints): Likewise.
4295 (may_insert_tracepoints): Likewise.
4296 (may_insert_fast_tracepoints): Likewise.
4297 (may_stop): Likewise.
4298 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4299 (make_thread_apply_all_options_def_group): Change argument from int*
4300 to bool*.
4301 (thread_apply_all_command): Update.
4302 (print_thread_events): Change to bool.
4303 * top.c (confirm): Likewise.
4304 (command_editing_p): Likewise.
4305 (history_expansion_p): Likewise.
4306 (write_history_p): Likewise.
4307 (info_verbose): Likewise.
4308 * top.h (confirm): Likewise.
4309 (history_expansion_p): Likewise.
4310 * tracepoint.c (disconnected_tracing): Likewise.
4311 (circular_trace_buffer): Likewise.
4312 * typeprint.c (print_methods): Likewise.
4313 (print_typedefs): Likewise.
4314 * utils.c (debug_timestamp): Likewise.
4315 (sevenbit_strings): Likewise.
4316 (pagination_enabled): Likewise.
4317 * utils.h (sevenbit_strings): Likewise.
4318 (pagination_enabled): Likewise.
4319 * valops.c (overload_resolution): Likewise.
4320 * valprint.h (struct value_print_options) <prettyformat_arrays,
4321 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4322 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4323 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4324 Likewise.
4325 * windows-nat.c (new_console): Likewise.
4326 (cygwin_exceptions): Likewise.
4327 (new_group): Likewise.
4328 (debug_exec): Likewise.
4329 (debug_events): Likewise.
4330 (debug_memory): Likewise.
4331 (debug_exceptions): Likewise.
4332 (useshell): Likewise.
4333 * windows-tdep.c (maint_display_all_tib): Likewise.
4334 * xml-support.c (debug_xml): Likewise.
4335
f1b620e9
MG
43362019-09-17 Mike Gulick <mgulick@mathworks.com>
4337
4338 * source.c (prepare_path_for_appending): New function.
4339 (openp): Make use of new function.
4340 (find_and_open_source): Search for the compilation directory and
4341 source file as a relative path beneath the directory search path.
4342
67f3ed6a
AB
43432019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4344
4345 * source-cache.c (source_cache::get_line_charpos): Catch
4346 exceptions and return false, this matches the behaviour documented
4347 in the header file.
4348
74332189
JB
43492019-09-17 Joel Brobecker <brobecker@adacore.com>
4350
4351 * ada-tasks.c (info_task): Remove quoting of the task's name.
4352
f2f24aa9
CB
43532019-09-16 Christian Biesinger <cbiesinger@google.com>
4354
4355 * symfile.c (auto_solib_add): Replace comment with a reference
4356 to the header file.
4357
6a062a93
CB
43582019-09-14 Christian Biesinger <cbiesinger@google.com>
4359
4360 * NEWS: Mention that gdb can now be compiled with Python 3
4361 on Windows.
4362
ec6c8338
AB
43632019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4364
4365 * maint.c (maint_print_section_data::maint_print_section_data):
4366 Force use of 'float log10 (float)' by casting the argument to
4367 float.
4368
aa17805f
AB
43692019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4370
4371 * maint.c: Add 'cmath' include.
4372 (struct maint_print_section_data): New structure.
4373 (print_section_index): New function.
4374 (print_bfd_section_info): Add header comment, small whitespace
4375 cleanup, and update to call new print_section_index function.
4376 (print_objfile_section_info): Likewise.
4377 (maint_obj_section_from_bfd_section): New function.
4378 (print_bfd_section_info_maybe_relocated): New function.
4379 (maintenance_info_sections): Add header comment, always use
4380 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4381
3dd9bb46
AB
43822019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4383
4384 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4385 inner scope, add check that the objfile has psymtabs before
4386 checking psymtabs_addrmap.
4387 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4388
4993045d
PW
43892019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4390
4391 * NEWS: Announce that Ada task names are now shown at more places,
4392 and between quotes (except in info task output).
4393 * gdb/ada-tasks.c (task_to_str): New function.
4394 (display_current_task_id): Call task_to_str.
4395 (task_command_1): Likewise.
4396 (print_ada_task_info): In non-mi mode, Properly align headers and data
4397 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4398
7a289707
RO
43992019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4400
4401 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4402 prstatus.pr_lwp.pr_info instead of making it up.
4403
f2aec7f6
CB
44042019-09-11 Christian Biesinger <cbiesinger@google.com>
4405
4406 * auto-load.c (auto_load_expand_dir_vars): Update.
4407 * defs.h (gdb_datadir): Change to std::string.
4408 (python_libdir): Likewise.
4409 (relocate_gdb_directory): Change return type to std::string.
4410 * guile/guile.c (gdbscm_data_directory): Update.
4411 (initialize_scheme_side): Update.
4412 * jit.c (jit_reader_dir): Change to std::string.
4413 (jit_reader_load_command): Update.
4414 * main.c (gdb_datadir): Change to std::string.
4415 (python_libdir): Likewise.
4416 (set_gdb_data_directory): Update.
4417 (relocate_path): Change to return std::string.
4418 (relocate_gdb_directory): Change to return std::string.
4419 (relocate_gdbinit_path_maybe_in_datadir): Update.
4420 (captured_main_1): Update.
4421 * python/python.c (do_start_initialization): Update.
4422 * top.c (show_gdb_datadir): Update.
4423 * xml-syscall.c (xml_init_syscalls_info): Update.
4424 (init_syscalls_info): Update.
4425
9224a013
CB
44262019-09-11 Christian Biesinger <cbiesinger@google.com>
4427
4428 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4429 out of get_init_files.
4430 (get_init_files): Update.
4431
f48cd836
CB
44322019-09-11 Christian Biesinger <cbiesinger@google.com>
4433
4434 * main.c (get_init_files): Change to use std::string.
4435 (captured_main_1): Update.
4436 (print_gdb_help): Update.
4437
9cab7ecd
AT
44382019-09-11 Ali Tamur <tamur@google.com>
4439
4440 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4441 implementation.
4442
67547d89
CB
44432019-09-11 Christian Biesinger <cbiesinger@google.com>
4444
4445 * dbxread.c (read_dbx_symtab): Update.
4446 * dwarf2read.c (load_partial_dies): Update.
4447 * mdebugread.c (parse_partial_symbols): Update.
4448 (handle_psymbol_enumerators): Update.
4449 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4450 * psymtab.c (add_psymbol_to_bcache): Likewise.
4451 (add_psymbol_to_list): Likewise.
4452 * symtab.c (symbol_set_names): Likewise.
4453 * symtab.h (symbol_set_names): Likewise.
4454 * xcoffread.c (scan_xcoff_symtab): Update.
4455
64b2d4a0
TT
44562019-09-11 Tom Tromey <tom@tromey.com>
4457
4458 * symfile-mem.c (symbol_file_add_from_memory): Use
4459 bfd_set_filename.
4460 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4461 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4462
3b00ef10
TT
44632019-09-10 Tom Tromey <tromey@adacore.com>
4464
4465 * dwarf-index-write.c (write_psymbols): Extend error message.
4466 (debug_names::insert): Add Ada code.
4467 (debug_names::write_psymbols): Remove Ada check.
4468 (debug_names) <m_string_obstack>: New member.
4469 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4470 (gdb_index_symbol_name_matcher::matches): Remove.
4471 (mapped_index_base::find_name_components_bounds): Add "lang"
4472 parameter.
4473 (mapped_index_base::build_name_components): Also split names
4474 according to Ada syntax.
4475 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4476 type of "match_callback".
4477 (check_match, check_find_bounds_finds)
4478 (dw2_expand_symtabs_matching): Update.
4479 (dw2_debug_names_iterator): Add new constructor.
4480 (dw2_debug_names_map_matching_symbols): New function.
4481 (dw2_debug_names_expand_symtabs_matching): Update.
4482 (dwarf2_debug_names_functions): Use
4483 dw2_debug_names_map_matching_symbols.
4484
aa391654
TT
44852019-09-10 Tom Tromey <tromey@adacore.com>
4486
4487 * dwarf2read.c (dw2_get_file_names_reader): Add the
4488 CU's file name to the results.
4489
b054970d
TT
44902019-09-10 Tom Tromey <tromey@adacore.com>
4491
4492 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4493 map_matching_symbols. Update.
4494 * dwarf2read.c (dw2_map_matching_symbols): Update.
4495 * psymtab.c (match_partial_symbol): Change type; update.
4496 (psym_map_matching_symbols): Likewise.
4497 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4498 type; update.
4499 * symfile.h (struct quick_symbol_functions)
4500 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4501 Remove "match".
4502
6a3dbf1b
TT
45032019-09-10 Tom Tromey <tromey@adacore.com>
4504
4505 * psymtab.c (map_block): Remove.
4506 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4507 * symtab.c (iterate_over_symbols_terminated): New function.
4508 * symtab.c (iterate_over_symbols_terminated): Declare.
4509
6969f124
TT
45102019-09-10 Tom Tromey <tromey@adacore.com>
4511
4512 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4513 * language.h (struct language_defn) <la_iterate_over_symbols>:
4514 Return bool.
4515 * symtab.c (iterate_over_symbols): Return bool.
4516 * symtab.h (iterate_over_symbols): Return bool.
4517
199b4314
TT
45182019-09-10 Tom Tromey <tromey@adacore.com>
4519
4520 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4521 (add_nonlocal_symbols): Update.
4522 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4523 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4524 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4525 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4526 Change type of "callback". Remove "data".
4527
a084a2a6
AT
4528
45292019-09-09 Ali Tamur <tamur@google.com>
4530
4531 * dwarf2read.c (comp_unit_head): Update comment.
4532 (dwarf2_dwo_name): New function declaration.
4533 (dwarf_unit_type_name): New function declaration.
4534 (read_comp_unit_head): Add support for new compilation units,
4535 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4536 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4537 (currently named as "signature") in their header. Also clarify error
4538 messages.
4539 (lookup_dwo_id): New function. Returns the dwo id of the given
4540 compile unit.
4541 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4542 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4543 functions.
4544 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4545 (dwarf2_dwo_name): Get the dwo name if present.
4546 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4547 purposes.
4548
25a2915e
TT
45492019-09-09 Tom Tromey <tom@tromey.com>
4550
4551 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4552
e4df0874
PW
45532019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4554
4555 * python/python.c (do_start_initialization): Make progname_copy static,
4556 to avoid a leak report.
4557
8634b462
TT
45582019-09-08 Tom Tromey <tom@tromey.com>
4559
4560 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4561
c7f839cb
SM
45622019-09-07 Simon Marchi <simon.marchi@efficios.com>
4563
4564 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4565 Change type to gdb::optional<block_enum>.
4566 (dw2_symtab_iter_init): Change block_index parameter type
4567 to gdb::optional<block_enum>.
4568 (dw2_lookup_symbol): Change block_index parameter
4569 type to block_enum.c
4570 (dw2_debug_names_lookup_symbol): Likewise.
4571 * psymtab.c (psym_lookup_symbol): Likewise.
4572 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4573 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4574 Likewise.
4575
ead0e69a
CB
45762019-09-06 Christian Biesinger <cbiesinger@google.com>
4577
4578 * defs.h (relocate_gdb_directory): Change int to bool in
4579 signature and rename flag to relocatable.
4580 * main.c (relocate_path): Likewise.
4581 (relocate_gdb_directory): Likewise.
4582
b16c44de
AM
45832019-09-06 Alan Modra <amodra@gmail.com>
4584
4585 * coffread.c (coff_symfile_read): Constify filename variable.
4586 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4587 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4588 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4589 * solib.c (reload_shared_libraries_1): Likewise.
4590 * symfile.c (reread_symbols): Likewise.
4591 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4592 * solib-darwin.c (darwin_bfd_open): Likewise.
4593 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4594
06ff036e
AB
45952019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4596
4597 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4598 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4599
4e962e74
TT
46002019-09-03 Tom Tromey <tromey@adacore.com>
4601
4602 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4603 types.
4604 (has_negatives): Unbias a range type bound.
4605 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4606 * gdbtypes.c (operator==): Handle new field.
4607 (create_range_type): Add "bias" parameter.
4608 (create_static_range_type, resolve_dynamic_range): Update.
4609 * gdbtypes.h (struct range_bounds) <bias>: New member.
4610 (create_range_type): Add bias parameter.
4611 * printcmd.c (print_scalar_formatted): Unbias range types.
4612 * value.c (unpack_long): Unbias range types.
4613 (pack_long): Bias range types.
4614
d90b8f26
AH
46152019-09-02 Alan Hayward <alan.hayward@arm.com>
4616
4617 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4618 probe arguments.
4619
fe01123e
AH
46202019-09-02 Alan Hayward <alan.hayward@arm.com>
4621
4622 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4623 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4624 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4625 (compile_probe_arg): Likewise.
4626 * probe.h (get_argument_count): Likewise.
4627 * solib-svr4.c (solib_event_probe_action): Likewise.
4628 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4629
e661ef01
AH
46302019-09-02 Alan Hayward <alan.hayward@arm.com>
4631
4632 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4633 code to here...
4634 (svr4_create_solib_event_breakpoints): ...from here.
4635
47a536d9
SDJ
46362019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4637
4638 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4639 suffix from warning message.
4640
d6a00eba
TT
46412019-08-30 Tom Tromey <tom@tromey.com>
4642
4643 * tui/tui-winsource.h (struct tui_source_window_base)
4644 <refresh_all>: Don't declare.
4645 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4646 Remove.
4647 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4648 tui_show_locator_content.
4649 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4650 declare.
4651 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4652 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4653 declare.
4654
55b2657b
TT
46552019-08-30 Tom Tromey <tom@tromey.com>
4656
4657 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4658
12a8555a
TT
46592019-08-30 Tom Tromey <tom@tromey.com>
4660
4661 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4662 Remove unnecessary forward declarations.
4663
900ac242
TT
46642019-08-30 Tom Tromey <tom@tromey.com>
4665
4666 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4667 rerender.
4668 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4669 tui_show_locator_content.
4670
99ab33fb
TT
46712019-08-30 Tom Tromey <tom@tromey.com>
4672
4673 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4674 (tui_locator_window::rerender): Rewrite using body of previous
4675 tui_show_locator_content.
4676
e594a5d1
TT
46772019-08-30 Tom Tromey <tom@tromey.com>
4678
4679 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4680 set_locator_fullname>: New methods.
4681 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4682 Rename from tui_set_locator_fullname.
4683 (tui_locator_window::set_locator_info): Rename from
4684 tui_set_locator_info. Return bool.
4685 (tui_update_locator_fullname, tui_show_frame_info): Update.
4686
715bb467
TT
46872019-08-30 Tom Tromey <tom@tromey.com>
4688
4689 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4690
772f3f03
TT
46912019-08-30 Tom Tromey <tom@tromey.com>
4692
4693 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4694 call touchwin.
4695
108e13ab
TT
46962019-08-30 Tom Tromey <tom@tromey.com>
4697
4698 * tui/tui-wingeneral.c (box_win): Assume win_info and
4699 win_info->handle cannot be NULL.
4700
cdaa6eb4
TT
47012019-08-30 Tom Tromey <tom@tromey.com>
4702
4703 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4704 refresh_window>: Declare.
4705 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4706 resize.
4707 (tui_data_item_window::rerender): Rename from
4708 tui_display_register.
4709 (tui_data_item_window::refresh_window): New method.
4710 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4711 no-op.
4712
89df7f90
TT
47132019-08-30 Tom Tromey <tom@tromey.com>
4714
4715 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4716 regs_column_count, current_group>: Move later. Now private.
4717 <get_current_group>: New method.
4718 * tui/tui-regs.c (tui_reg_command): Update.
4719 * tui/tui-layout.c (tui_set_layout): Update.
4720
1bf2866a
TT
47212019-08-30 Tom Tromey <tom@tromey.com>
4722
4723 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4724 (tui_data_window::rerender): Don't call
4725 check_and_display_highlight_if_needed.
4726 (tui_data_window::refresh_all): Remove call to
4727 erase_data_content.
4728
0670413d
TT
47292019-08-30 Tom Tromey <tom@tromey.com>
4730
4731 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4732 (tui_data_window::display_registers_from)
4733 (tui_data_window::display_reg_element_at_line)
4734 (tui_data_window::display_registers_from_line): Remove checks of
4735 "empty".
4736
18bb55c7
TT
47372019-08-30 Tom Tromey <tom@tromey.com>
4738
4739 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4740 Don't declare.
4741 * tui/tui-regs.c (tui_data_window::show_registers): Call
4742 rerender.
4743 (tui_data_window::rerender): Rename from display_all_data.
4744 (tui_data_window::rerender): Remove old implementation.
4745
1f6d2f10
TT
47462019-08-30 Tom Tromey <tom@tromey.com>
4747
4748 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4749 text.
4750 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4751
16d01f9c
BW
47522019-08-29 Bernhard Wodok <barto@gmx.net>
4753 Sergio Durigan Junior <sergiodj@redhat.com>
4754
4755 PR win32/24284
4756 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4757
d8f27c60
AB
47582019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4759
4760 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4761 when searching for types.
4762
1f20c35e
AB
47632019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4764
4765 * f-lang.c (f_language_defn): Use f_print_typedef.
4766 * f-lang.h (f_print_typedef): Declare.
4767 * f-typeprint.c (f_print_typedef): Define.
4768
550105b7
CB
47692019-08-27 Christian Biesinger <cbiesinger@google.com>
4770
4771 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4772
4acfdd20
AB
47732019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4774
4775 * cli/cli-utils.c (info_print_options_defs): Delete.
4776 (make_info_print_options_def_group): Delete.
4777 (extract_info_print_options): Delete.
4778 (info_print_command_completer): Delete.
4779 (info_print_args_help): Add extra parameter, and optionally
4780 include text about -n flag.
4781 * cli/cli-utils.h (struct info_print_options): Delete.
4782 (extract_info_print_options): Delete declaration.
4783 (info_print_command_completer): Delete declaration.
4784 (info_print_args_help): Add extra parameter, extend header
4785 comment.
4786 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4787 search_symbols.
4788 * stack.c (struct info_print_options): New type.
4789 (info_print_options_defs): New file scoped variable.
4790 (make_info_print_options_def_group): New static function.
4791 (info_print_command_completer): New static function.
4792 (info_locals_command): Update to use new local functions.
4793 (info_args_command): Likewise.
4794 (_initialize_stack): Add extra parameter to calls to
4795 info_print_args_help.
4796 * symtab.c (search_symbols): Add extra parameter, use this to
4797 possibly excluse non-debug symbols.
4798 (symtab_symbol_info): Add extra parameter, which is passed on to
4799 search_symbols.
4800 (struct info_print_options): New type.
4801 (info_print_options_defs): New file scoped variable.
4802 (make_info_print_options_def_group): New static function.
4803 (info_print_command_completer): New static function.
4804 (info_variables_command): Update to use local functions, and pass
4805 extra parameter through to symtab_symbol_info.
4806 (info_functions_command): Likewise.
4807 (info_types_command): Pass additional argument through to
4808 symtab_symbol_info.
4809 (rbreak_command): Pass extra argument to search_symbols.
4810 (_initialize_symtab): Add extra arguments for calls to
4811 info_print_args_help, and update help text for 'info variables',
4812 'whereis', and 'info functions' commands.
4813 * symtab.h (search_symbols): Add extra argument to declaration.
4814 * NEWS: Mention new flags.
4815
9aa55206
CB
48162019-08-26 Christian Biesinger <cbiesinger@google.com>
4817
4818 * symtab.c (lookup_static_symbol): Call the new function (and move
4819 it down to be next to lookup_global_symbol).
4820 (struct global_sym_lookup_data): Add block_enum member and rename to...
4821 (struct global_or_static_sym_lookup_data): ...this.
4822 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4823 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4824 (lookup_symbol_global_or_static_iterator_cb): ...this.
4825 (lookup_global_or_static_symbol): New function.
4826 (lookup_global_symbol): Call new function.
4827
5c31b358
TV
48282019-08-26 Tom de Vries <tdevries@suse.de>
4829
4830 PR c++/24852
4831 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4832 when pc_probe.prob == NULL.
4833
23c13d42
SM
48342019-08-25 Simon Marchi <simon.marchi@efficios.com>
4835
4836 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4837 variable symbol_linkage to symbol_linkage_.
4838
beadd3e8
SM
48392019-08-25 Simon Marchi <simon.marchi@efficios.com>
4840
4841 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4842 represent whether the symbol is static, dynamic, or we don't
4843 know.
4844
e3ec872f
YS
48452019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4846
4847 * gdb/rx-tdep.c (rx_register_names): New.
4848 (rx_register_name): Delete.
4849 (rx_psw_type): Delete.
4850 (rx_fpsw_type): Delete.
4851 (rx_register_type): Delete.
4852 (rx_gdbarch_init): Convert target-descriptions.
4853 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4854 * gdb/features/Makefile: Add rx.xml.
4855 * gdb/features/rx.xml: New.
4856 * gdb/features/rx.c: Generated.
4857 * gdb/NEWS: Mention target description support.
4858
d0509ba4
CB
48592019-08-22 Christian Biesinger <cbiesinger@google.com>
4860
4861 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4862 *slot_ptr.
4863
2d41fa11
SDJ
48642019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4865
4866 * configure.ac: Don't check for 'dlfcn.h' (moved to
4867 gdbsupport/common.m4).
4868 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4869 'gdbsupport/'.
4870 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4871 * compile/compile-c-support.c: Include
4872 'gdbsupport/gdb-dlfcn.h'.
4873 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4874 * gdb-dlfcn.c: Move to...
4875 * gdbsupport/gdb-dlfcn.c: ... here.
4876 * gdb-dlfcn.h: Move to...
4877 * gdbsupport/gdb-dlfcn.h: ... here.
4878
de8af808
SL
48792019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4880
4881 * nios2-tdep.c (struct reg_value): Improve comments. Make
4882 the offset field signed.
4883
27204489
CB
48842019-08-22 Christian Biesinger <cbiesinger@google.com>
4885
4886 * python/lib/gdb/__init__.py (_execute_file): New function.
4887 * python/python.c (python_run_simple_file): Call gdb._execute_file
4888 on Windows.
4889
43771869
AB
48902019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
4891
4892 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
4893 all uses as this was never set to anything but a zero value.
4894
26c957f1
PA
48952019-08-21 Bogdan Harjoc <harjoc@gmail.com>
4896
4897 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
4898
c07aae6e
CB
48992019-08-21 Christian Biesinger <cbiesinger@google.com>
4900
4901 * tui/tui-data.h (tui_gen_win_info): Add an =default
4902 move constructor, required by some GCC versions.
4903
3960cb7a
JF
49042019-08-21 Jinke Fan <fanjinke51@yeah.net>
4905
4906 * go32-nat.c (go32_sysinfo): Add hygon_p.
4907
04c72a68
TT
49082019-08-20 Tom Tromey <tom@tromey.com>
4909
4910 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
4911 line_from_reg_element_no, first_reg_element_no_inline,
4912 display_all_data, delete_data_content_windows,
4913 erase_data_content>: Now private.
4914
072272ce
TT
49152019-08-20 Tom Tromey <tom@tromey.com>
4916
4917 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
4918 (tui_unhighlight_win, tui_highlight_win)
4919 (tui_win_info::make_window): Update.
4920 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
4921
973961bd
TT
49222019-08-20 Tom Tromey <tom@tromey.com>
4923
4924 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4925 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4926 (MAX_PID_WIDTH): Move to tui-stack.c.
4927 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
4928 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
4929 (MAX_PID_WIDTH): Move from tui-data.h.
4930
ab0e1f1a
TT
49312019-08-20 Tom Tromey <tom@tromey.com>
4932
4933 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
4934 * tui/tui-wingeneral.c (box_win): Change type of win_info.
4935 (box_win): Update.
4936 (tui_gen_win_info::make_window): Rename from tui_make_window.
4937 (tui_win_info::make_window): New method.
4938 (tui_gen_win_info::make_visible): Update.
4939 * tui/tui-source.c (tui_source_window::set_contents): Update.
4940 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4941 (tui_data_window::display_registers_from): Update.
4942 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
4943 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
4944 Declare.
4945 <can_box>: Remove.
4946 <title>: Remove.
4947 (struct tui_win_info) <make_window>: Declare.
4948 <can_box>: Now virtual.
4949 <title>: New member.
4950 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
4951 * tui/tui-command.c (tui_cmd_window::resize): Update.
4952
100c2bf3
TT
49532019-08-20 Tom Tromey <tom@tromey.com>
4954
4955 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
4956 * tui/tui-regs.c (tui_data_window::show_registers): Update.
4957 (tui_data_window::check_register_values): Update.
4958
fa4dc567
TT
49592019-08-20 Tom Tromey <tom@tromey.com>
4960
4961 * tui/tui-regs.h (struct tui_data_window): Use
4962 DISABLE_COPY_AND_ASSIGN.
4963 <regs_content>: Change type, removing unique_ptr.
4964 <tui_data_window>: Add move constructor.
4965 * tui/tui-regs.c (tui_data_window::show_registers)
4966 (tui_data_window::show_register_group)
4967 (tui_data_window::display_registers_from)
4968 (tui_data_window::display_registers_from)
4969 (tui_data_window::first_data_item_displayed)
4970 (tui_data_window::delete_data_content_windows)
4971 (tui_data_window::rerender, tui_data_window::refresh_window)
4972 (tui_data_window::check_register_values): Update.
4973
ca02d7c8
TT
49742019-08-20 Tom Tromey <tom@tromey.com>
4975
4976 * tui/tui-regs.h (struct tui_data_window) <show_registers,
4977 show_register_group>: Declare.
4978 (tui_show_register_group): Don't declare.
4979 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
4980 tui_show_registers.
4981 (tui_data_window::show_register_group): Rename from
4982 tui_show_register_group.
4983 (tui_data_window::check_register_values, tui_reg_command):
4984 Update.
4985 * tui/tui-layout.c (tui_set_layout): Update.
4986
63356bfd
TT
49872019-08-20 Tom Tromey <tom@tromey.com>
4988
4989 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
4990 Declare.
4991 (tui_check_register_values): Don't declare.
4992 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
4993 from tui_check_register_values.
4994 * tui/tui-hooks.c (tui_register_changed): Update.
4995
42cc14a7
TT
49962019-08-20 Tom Tromey <tom@tromey.com>
4997
4998 * tui/tui-regs.c (tui_reg_layout): Move later.
4999 (tui_show_registers): Don't enable TUI mode or change layout.
5000
b9ad3686
TT
50012019-08-20 Tom Tromey <tom@tromey.com>
5002
5003 * tui/tui-regs.h (struct tui_data_item_window)
5004 <~tui_data_item_window>: Remove.
5005 <content>: Now a unique_xmalloc_ptr.
5006 * tui/tui-regs.c (tui_register_format): Return a
5007 unique_xmalloc_ptr.
5008 (tui_get_register): Update.
5009 (~tui_data_item_window): Remove.
5010 (tui_data_window::display_registers_from, tui_display_register):
5011 Update.
5012 * tui/tui-io.h (tui_expand_tabs): Update.
5013 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5014 Remove "col" parameter.
5015
8e114aab
TT
50162019-08-20 Tom Tromey <tom@tromey.com>
5017
5018 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5019 field.
5020 * tui/tui-regs.c (~tui_data_item_window): Update.
5021
1a4f81dd
TT
50222019-08-20 Tom Tromey <tom@tromey.com>
5023
5024 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5025 earlier.
5026
0f8d8876
TT
50272019-08-20 Tom Tromey <tom@tromey.com>
5028
5029 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5030
605dc2c2
TT
50312019-08-20 Tom Tromey <tom@tromey.com>
5032
5033 * tui/tui-source.h (struct tui_source_window): Update.
5034 * tui/tui-regs.c (tui_show_registers): Update.
5035 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5036 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5037 (NO_REGS_STRING): Remove defines.
5038
aedbe3bb
CM
50392019-08-20 Conrad Meyer <cem@FreeBSD.org>
5040
5041 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5042 unnecessary thread walk if remote doesn't support the packet.
5043
7ce8f214
TT
50442019-08-19 Tom Tromey <tromey@adacore.com>
5045
5046 * python/py-value.c (value_has_field): Fix indentation.
5047
f21c2bd7
TT
50482019-08-19 Tom Tromey <tromey@adacore.com>
5049
5050 * printcmd.c (do_one_display, info_display_command): Update.
5051 * block.h (contained_in): Return bool. Add allow_nested
5052 parameter.
5053 * block.c (contained_in): Return bool. Add allow_nested
5054 parameter.
5055
d806ea2d
TT
50562019-08-19 Tom Tromey <tom@tromey.com>
5057
5058 * configure: Rebuild.
5059 * configure.ac: Disallow the combination of -static-libstdc++ and
5060 source highlight.
5061 * source-cache.c (get_language_name): Handle rust.
5062 (source_cache::get_source_lines): Ignore highlighting exceptions.
5063
398fdd60
TT
50642019-08-16 Tom Tromey <tom@tromey.com>
5065
5066 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5067 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5068 (struct tui_source_window_base) <make_visible, refresh_window,
5069 resize>: Remove methods.
5070 <execution_info>: Remove field.
5071 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5072 (tui_show_source_line, tui_source_window_base)
5073 (~tui_source_window_base): Update.
5074 (tui_source_window_base::resize)
5075 (tui_source_window_base::make_visible)
5076 (tui_source_window_base::refresh_window): Remove.
5077 (tui_source_window_base::update_exec_info): Update.
5078 * tui/tui-source.c (tui_source_window::set_contents): Update.
5079 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5080
e699d331
TT
50812019-08-16 Tom Tromey <tom@tromey.com>
5082
5083 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5084 deprecated_query_hook.
5085
bb01dbfc
TT
50862019-08-16 Tom Tromey <tom@tromey.com>
5087
5088 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5089 (tui_update_source_windows_with_line): Update.
5090 * tui/tui-source.h (struct tui_source_window)
5091 <show_symtab_source>: Declare.
5092 (tui_show_symtab_source): Don't declare.
5093 * tui/tui-source.c (tui_show_symtab_source): Rename from
5094 tui_show_symtab_source.
5095
81c82c4b
TT
50962019-08-16 Tom Tromey <tom@tromey.com>
5097
5098 * tui/tui-winsource.h (struct tui_source_window_base)
5099 <set_contents>: Declare.
5100 * tui/tui-winsource.c
5101 (tui_source_window_base::update_source_window_as_is): Update.
5102 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5103 Declare.
5104 (tui_set_source_content): Don't declare.
5105 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5106 tui_set_source_content.
5107 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5108 Declare.
5109 (tui_set_disassem_content): Don't declare.
5110 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5111 tui_set_disassem_content.
5112
2ddaf614
TT
51132019-08-16 Tom Tromey <tom@tromey.com>
5114
5115 * tui/tui-winsource.h (struct tui_source_window_base)
5116 <update_breakpoint_info>: Declare.
5117 (tui_update_breakpoint_info): Don't declare.
5118 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5119 (tui_update_all_breakpoint_info): Update.
5120 (tui_source_window_base::update_breakpoint_info): Rename from
5121 tui_update_breakpoint_info.
5122 (tui_source_window_base::update_exec_info): Update.
5123
017f9828
TT
51242019-08-16 Tom Tromey <tom@tromey.com>
5125
5126 * tui/tui-winsource.h (struct tui_source_window_base)
5127 <update_source_window>: Declare.
5128 (tui_update_source_window): Don't declare.
5129 * tui/tui-winsource.c
5130 (tui_source_window_base::update_source_window): Rename from
5131 tui_update_source_window.
5132 (tui_source_window_base::rerender): Update.
5133 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5134 * tui/tui-disasm.c (tui_show_disassem)
5135 (tui_show_disassem_and_update_source)
5136 (tui_disasm_window::maybe_update): Update.
5137
ed8358e9
TT
51382019-08-16 Tom Tromey <tom@tromey.com>
5139
5140 * tui/tui-winsource.h (struct tui_source_window_base)
5141 <update_source_window_as_is>: Declare.
5142 (tui_update_source_window_as_is): Don't declare.
5143 * tui/tui-winsource.c (tui_update_source_window): Update
5144 (tui_source_window_base::update_source_window_as_is): Rename from
5145 tui_update_source_window_as_is.
5146 (tui_source_window_base::refill): Update.
5147 * tui/tui-source.c (tui_show_symtab_source): Update.
5148 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5149 Update.
5150
20149b6b
TT
51512019-08-16 Tom Tromey <tom@tromey.com>
5152
5153 * tui/tui-winsource.h (tui_update_source_window)
5154 (tui_update_source_window_as_is): Remove "noerror" parameter.
5155 * tui/tui-winsource.c (tui_update_source_window)
5156 (tui_update_source_window_as_is): Remove "noerror" parameter.
5157 (tui_update_source_windows_with_addr)
5158 (tui_update_source_windows_with_line)
5159 (tui_source_window_base::rerender)
5160 (tui_source_window_base::refill): Update.
5161 * tui/tui-source.h (tui_set_source_content)
5162 (tui_show_symtab_source): Remove "noerror" parameter.
5163 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5164 parameter.
5165 (tui_show_symtab_source): Likewise.
5166 (tui_source_window::maybe_update): Update.
5167 * tui/tui-disasm.c (tui_show_disassem)
5168 (tui_show_disassem_and_update_source)
5169 (tui_disasm_window::do_scroll_vertical)
5170 (tui_disasm_window::maybe_update): Update.
5171
2d83e710
TT
51722019-08-16 Tom Tromey <tom@tromey.com>
5173
5174 * tui/tui.c (tui_is_window_visible): Update.
5175 * tui/tui-wingeneral.c (tui_make_window)
5176 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5177 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5178 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5179 (tui_set_win_height_command, parse_scrolling_args): Update.
5180 * tui/tui-source.c (tui_source_window::style_changed): Update.
5181 * tui/tui-regs.c (tui_show_registers)
5182 (tui_data_window::first_data_item_displayed)
5183 (tui_data_window::delete_data_content_windows)
5184 (tui_check_register_values, tui_reg_command): Update.
5185 * tui/tui-disasm.c (tui_show_disassem): Update.
5186 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5187 method.
5188 <is_visible>: Remove field.
5189 * tui/tui-data.c (tui_next_win, tui_prev_win)
5190 (tui_delete_invisible_windows): Update.
5191
d4ab829a
TT
51922019-08-16 Tom Tromey <tom@tromey.com>
5193
5194 * tui/tui-winsource.h (struct tui_source_window_base)
5195 <m_has_locator>: Remove.
5196 * tui/tui-layout.c (show_source_disasm_command, show_data)
5197 (show_source_or_disasm_and_command): Update.
5198
aa7ca1bb
AH
51992019-08-16 Alan Hayward <alan.hayward@arm.com>
5200
5201 * NEWS (Other MI changes): New subsection.
5202 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5203 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5204 * arch-utils.c (default_get_pc_address_flags): New function.
5205 * arch-utils.h (default_get_pc_address_flags): New declaration.
5206 * gdbarch.sh: Add get_pc_address_flags.
5207 * gdbarch.c: Regenerate.
5208 * gdbarch.h: Likewise.
5209 * stack.c (print_pc): New function.
5210 (print_frame_info) (print_frame): Call print_pc.
5211
6eac171f
TV
52122019-08-16 Tom de Vries <tdevries@suse.de>
5213
5214 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5215 print_objfile_section_info.
5216
3df505f6
TT
52172019-08-15 Tom Tromey <tom@tromey.com>
5218
5219 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5220 calling update_cmdwin_start_line.
5221 * tui/tui-winsource.h (struct tui_source_window_base)
5222 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5223 <rerender>: Declare.
5224 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5225 Call rerender.
5226 (tui_source_window_base::set_new_height): Remove.
5227 (tui_source_window_base::rerender): Rename from
5228 do_make_visible_with_new_height.
5229 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5230 resize method.
5231 (tui_win_info::make_invisible_and_set_new_height)
5232 (tui_win_info::make_visible_with_new_height): Remove.
5233 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5234 Declare.
5235 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5236 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5237 do_make_visible_with_new_height>: Don't declare.
5238 <rerender>: Declare.
5239 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5240 set_new_height.
5241 (tui_data_window::do_make_visible_with_new_height): Remove.
5242 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5243 call tui_show_locator_content.
5244 (tui_gen_win_info::resize): Call rerender.
5245 (show_source_or_disasm_and_command): Don't call
5246 tui_show_locator_content.
5247 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5248 method.
5249 (struct tui_win_info) <rerender>: Declare.
5250 <set_new_height, make_invisible_and_set_new_height,
5251 make_visible_with_new_height>: Don't declare.
5252 * tui/tui-data.c (tui_win_list::rerender): New method.
5253 * tui/tui-command.h (struct tui_cmd_window)
5254 <do_make_visible_with_new_height>: Don't declare.
5255 * tui/tui-command.c
5256 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5257
272560b5
TT
52582019-08-15 Tom Tromey <tromey@adacore.com>
5259
5260 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5261 * ada-lang.c (ada_enum_name): Likewise.
5262
08235187
CB
52632019-08-15 Christian Biesinger <cbiesinger@google.com>
5264
5265 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5266 leading underscore.
5267 (GdbOutputErrorFile): Likewise.
5268 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5269 accordingly.
5270 (execute_unwinders): Rename to have a leading underscore.
5271 (auto_load_packages): Likewise.
5272 (global scope): Adjust call to auto_load_packages accordingly.
5273 (GdbSetPythonDirectory): Likewise.
5274 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5275 instead of execute_unwinders.
5276
db502012
TT
52772019-08-15 Tom Tromey <tom@tromey.com>
5278
5279 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5280 (show_data): Don't change window visibility.
5281 (tui_gen_win_info::resize): Remove special case for command
5282 window. Use wresize, when available.
5283 (show_source_or_disasm_and_command): Don't change window
5284 visibility.
5285 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5286 <make_visible>: New method.
5287 * tui/tui-command.c (tui_cmd_window::resize): New method.
5288
3891b65e
TT
52892019-08-15 Tom Tromey <tom@tromey.com>
5290
5291 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5292 (struct tui_source_windows): New.
5293 * tui/tui-winsource.c (tui_display_main): Update.
5294 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5295 (new_height_ok, parse_scrolling_args): Update.
5296 * tui/tui-layout.c (show_layout, show_data): Update.
5297 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5298 (tui_add_to_source_windows): Don't declare.
5299 * tui/tui-data.c (source_windows, tui_source_windows)
5300 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5301
ee556432
TT
53022019-08-15 Tom Tromey <tom@tromey.com>
5303
5304 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5305 Rename from reset.
5306 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5307 * tui/tui-layout.c (show_source_disasm_command, show_data):
5308 Update.
5309 (tui_gen_win_info::resize): Rename.
5310 (show_source_or_disasm_and_command): Update.
5311 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5312 reset.
5313
46f438e3
TT
53142019-08-15 Tom Tromey <tom@tromey.com>
5315
5316 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5317 * tui/tui-interp.c (tui_interp::init): Don't call
5318 tui_initialize_static_data.
5319 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5320
f4ce562c
TT
53212019-08-15 Tom Tromey <tom@tromey.com>
5322
5323 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5324 examine tui_win_list.
5325
c398c3d0
TT
53262019-08-15 Tom Tromey <tom@tromey.com>
5327
5328 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5329 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5330 tui_clear_source_content.
5331 (tui_clear_source_content): Remove.
5332 (tui_source_window_base::do_erase_source_content): Hoist call to
5333 content.clear().
5334 * tui/tui-stack.c (tui_show_frame_info): Don't call
5335 tui_clear_source_content.
5336
e25d2004
TT
53372019-08-15 Tom Tromey <tom@tromey.com>
5338
5339 * tui/tui-winsource.h (struct tui_source_window_base)
5340 <do_erase_source_content>: New method.
5341 <erase_source_content>: New method.
5342 (tui_erase_source_content): Don't declare.
5343 * tui/tui-winsource.c (tui_clear_source_content): Update.
5344 (tui_source_window_base::do_erase_source_content): Rename from
5345 tui_erase_source_content.
5346 (tui_source_window_base::show_source_content): Update.
5347 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5348 * tui/tui-source.h (struct tui_source_window)
5349 <erase_source_content>: New method.
5350 * tui/tui-disasm.h (struct tui_disasm_window)
5351 <erase_source_content>: New method.
5352
002f15c2
TT
53532019-08-15 Tom Tromey <tom@tromey.com>
5354
5355 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5356 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5357 constructor.
5358 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5359 * tui/tui-source.c (tui_set_source_content): Update.
5360 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5361
c9033fe8
TT
53622019-08-15 Tom Tromey <tom@tromey.com>
5363
5364 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5365 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5366 tui-source.c.
5367 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5368 Declare.
5369 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5370 method.
5371 (tui_source_window::maybe_update): Update.
5372
088f37dd
TT
53732019-08-15 Tom Tromey <tom@tromey.com>
5374
5375 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5376 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5377 tui-disasm.c.
5378 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5379 Declare.
5380 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5381 method.
5382 (tui_disasm_window::maybe_update): Update.
5383
a54700c6
TT
53842019-08-15 Tom Tromey <tom@tromey.com>
5385
5386 * tui/tui-winsource.h (struct tui_source_window_base)
5387 <maybe_update>: Declare.
5388 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5389 method.
5390 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5391 Declare.
5392 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5393 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5394 Declare.
5395 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5396
e2a678a5
TT
53972019-08-15 Tom Tromey <tom@tromey.com>
5398
5399 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5400
f2dda477
TT
54012019-08-15 Tom Tromey <tom@tromey.com>
5402
5403 * tui/tui-wingeneral.c: Include tui-stack.h.
5404 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5405 (struct tui_locator_window): Move from tui-data.h.
5406 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5407 (tui_initialize_static_data): Move from tui-data.c.
5408 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5409 (struct tui_locator_window): Move to tui-stack.c.
5410 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5411 (tui_initialize_static_data): Move to tui-stack.c.
5412
ed4a1084
TT
54132019-08-15 Tom Tromey <tom@tromey.com>
5414
5415 * tui/tui-layout.c (show_source_disasm_command)
5416 (show_source_or_disasm_and_command): Use make_visible method, not
5417 tui_make_window.
5418 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5419 Remove.
5420
65962b20
TT
54212019-08-15 Tom Tromey <tom@tromey.com>
5422
5423 * tui/tui-wingeneral.h (tui_make_window): Update.
5424 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5425 parameter.
5426 (tui_gen_win_info::make_visible): Update.
5427 * tui/tui-regs.c (tui_data_window::display_registers_from):
5428 Update.
5429 * tui/tui-layout.c (show_source_disasm_command)
5430 (show_source_or_disasm_and_command): Update.
5431 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5432 (enum tui_box): Remove.
5433 (struct tui_win_info) <can_box>: New method.
5434 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5435 method.
5436
2208ee91
TV
54372019-08-15 Tom de Vries <tdevries@suse.de>
5438
5439 * linux-nat-trad.c: Include gdbarch.h.
5440
75faf5c4
AH
54412019-08-14 Alan Hayward <alan.hayward@arm.com>
5442
5443 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5444 register sizes.
5445
b1c896b3
TT
54462019-08-14 Tom Tromey <tromey@adacore.com>
5447
5448 * darwin-nat.c: Include gdbarch.h.
5449 * darwin-nat-info.c: Include gdbarch.h.
5450
6405cd73
TT
54512019-08-13 Tom Tromey <tom@tromey.com>
5452
5453 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5454 Remove.
5455 * tui/tui-data.c (tui_initialize_static_data): Update.
5456
5216580d
TT
54572019-08-13 Tom Tromey <tom@tromey.com>
5458
5459 * tui/tui-winsource.h (struct tui_exec_info_window)
5460 <~tui_exec_info_window, maybe_allocate_content, get_content,
5461 m_content>: Remove.
5462 (struct tui_source_window_base) <set_exec_info_content,
5463 show_exec_info_content>: Don't declare.
5464 * tui/tui-winsource.c
5465 (tui_exec_info_window::maybe_allocate_content): Remove.
5466 (tui_source_window_base::update_exec_info): Rename from
5467 set_exec_info_content.
5468 (tui_source_window_base::show_exec_info_content)
5469 (tui_source_window_base::update_exec_info): Remove.
5470
93858ad3
TT
54712019-08-13 Tom Tromey <tom@tromey.com>
5472
5473 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5474 declare.
5475 * tui/tui-winsource.c (tui_update_source_window_as_is)
5476 (tui_update_source_windows_with_addr, tui_erase_source_content):
5477 Update.
5478 (tui_clear_exec_info_content): Remove.
5479
e321e7ce
TT
54802019-08-13 Tom Tromey <tom@tromey.com>
5481
5482 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5483 declare.
5484 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5485 call tui_erase_exec_info_content.
5486 (tui_clear_exec_info_content): Rename from
5487 tui_erase_exec_info_content.
5488 (tui_clear_exec_info_content): Delete.
5489
8270ac62
TT
54902019-08-13 Tom Tromey <tom@tromey.com>
5491
5492 * tui/tui-winsource.h (struct tui_source_window_base)
5493 <show_exec_info_content>: Declare.
5494 (tui_show_exec_info_content): Don't declare.
5495 * tui/tui-winsource.c
5496 (tui_source_window_base::show_exec_info_content): Rename from
5497 tui_show_exec_info_content.
5498 (tui_source_window_base::update_exec_info): Update.
5499
7b56485d
TT
55002019-08-13 Tom Tromey <tom@tromey.com>
5501
5502 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5503 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5504 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5505 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5506 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5507 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5508 ... here.
5509
7ba913dc
TT
55102019-08-13 Tom Tromey <tom@tromey.com>
5511
5512 * tui/tui-winsource.h (struct tui_source_window_base)
5513 <update_exec_info>: Declare.
5514 (tui_update_exec_info): Don't declare.
5515 * tui/tui-winsource.c (tui_update_source_window_as_is)
5516 (tui_source_window_base::refresh_all)
5517 (tui_update_all_breakpoint_info): Update.
5518 (tui_source_window_base::update_exec_info): Rename from
5519 tui_update_exec_info.
5520 * tui/tui-stack.c (tui_show_frame_info): Update.
5521
37a4a131
TT
55222019-08-13 Tom Tromey <tom@tromey.com>
5523
5524 * tui/tui-winsource.h (struct tui_source_window_base)
5525 <set_exec_info_content>: Declare.
5526 (tui_set_exec_info_content): Don't declare.
5527 * tui/tui-winsource.c
5528 (tui_source_window_base::set_exec_info_content): Rename from
5529 tui_set_exec_info_content.
5530 (tui_update_exec_info): Update.
5531
0bd27e07
TT
55322019-08-13 Tom Tromey <tom@tromey.com>
5533
5534 * tui/tui-winsource.h (struct tui_source_window_base)
5535 <show_source_content>: Declare.
5536 (tui_show_source_content): Don't declare.
5537 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5538 (tui_source_window_base::show_source_content): Rename from
5539 tui_show_source_content.
5540 (tui_source_window_base::refresh_all): Update.
5541 * tui/tui-layout.c (show_source_disasm_command)
5542 (show_source_or_disasm_and_command): Update.
5543
b4ef5aeb
TT
55442019-08-13 Tom Tromey <tom@tromey.com>
5545
5546 * tui/tui-winsource.c (tui_erase_source_content)
5547 (tui_show_source_content, tui_source_window_base::refresh_all):
5548 Update.
5549 * tui/tui-wingeneral.h
5550 (tui_check_and_display_highlight_if_needed): Don't declare.
5551 * tui/tui-wingeneral.c
5552 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5553 check_and_display_highlight_if_needed.
5554 * tui/tui-win.c (tui_rehighlight_all)
5555 (tui_win_info::make_visible_with_new_height): Update.
5556 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5557 (tui_data_window::erase_data_content)
5558 (tui_data_window::display_all_data): Update.
5559 * tui/tui-data.h (struct tui_win_info)
5560 <check_and_display_highlight_if_needed>: Declare.
5561
fede5273
TT
55622019-08-13 Tom Tromey <tom@tromey.com>
5563
5564 * tui/tui-win.c (tui_resize_all): Call
5565 tui_delete_invisible_windows.
5566 * tui/tui-layout.c (show_layout): Call
5567 tui_delete_invisible_windows.
5568 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5569 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5570
22c3f490
TT
55712019-08-13 Tom Tromey <tom@tromey.com>
5572
5573 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5574 tui_add_win_to_layout.
5575
16cb7910
TT
55762019-08-13 Tom Tromey <tom@tromey.com>
5577
5578 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5579 * tui/tui-layout.c (tui_default_win_height): Now static.
5580
cc0c3ffb
TT
55812019-08-13 Tom Tromey <tom@tromey.com>
5582
5583 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5584 single switch.
5585 (show_source_disasm_command, show_source_or_disasm_and_command):
5586 Don't check current layout.
5587
3f3ffe54
TT
55882019-08-13 Tom Tromey <tom@tromey.com>
5589
5590 * tui/tui-wingeneral.c (make_all_visible): Remove.
5591 (tui_make_all_invisible): Simplify.
5592 * tui/tui-layout.c (tui_make_all_invisible): Move from
5593 tui-wingeneral.c; simplify.
5594 (show_layout): Hoist call to tui_make_all_invisible.
5595 (show_data): Don't call tui_make_all_invisible.
5596
69258091
TT
55972019-08-13 Tom Tromey <tom@tromey.com>
5598
5599 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5600 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5601
62cf57fe
TT
56022019-08-13 Tom Tromey <tom@tromey.com>
5603
5604 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5605 tui-data.c.
5606 (show_source_disasm_command, show_data)
5607 (show_source_or_disasm_and_command): Don't use
5608 tui_set_current_layout_to.
5609 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5610 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5611 tui-layout.c.
5612 (tui_set_current_layout_to): Remove.
5613
2afade5d
TT
56142019-08-13 Tom Tromey <tom@tromey.com>
5615
5616 * tui/tui-layout.c (tui_set_layout): Update.
5617 * tui/tui-data.h (struct tui_layout_def): Remove.
5618 (tui_layout_def): Don't declare.
5619 * tui/tui-data.c (layout_def): Remove.
5620 (tui_layout_def): Remove.
5621
a3504e96
TT
56222019-08-13 Tom Tromey <tom@tromey.com>
5623
5624 * tui/tui-winsource.h (struct tui_source_window_base)
5625 <clear_detail>: No longer "override".
5626 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5627 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5628 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5629 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5630 Remove.
5631 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5632
29c92911
TT
56332019-08-13 Tom Tromey <tromey@adacore.com>
5634
5635 * tracepoint.c: Don't include readline.h or history.h.
5636
86c6b807
TT
56372019-08-12 Tom Tromey <tom@tromey.com>
5638
5639 * configure: Rebuild.
5640 * configure.ac: Check for readline 7.
5641 * NEWS: Mention readline 7 requirement.
5642 * README: Update.
5643
5db2718c
TT
56442019-08-12 Tom Tromey <tom@tromey.com>
5645
5646 * mingw-hdep.c (gdb_select): Remove readline hack.
5647
dac36daf
PFC
56482019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5649
5650 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5651 when the function fails.
5652
1022c627
AA
56532019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5654
5655 * s390-tdep.c (s390_type_align): New function.
5656 (s390_gdbarch_init): Set it as type_align gdbarch method.
5657
eba4caf2
TV
56582019-08-09 Tom de Vries <tdevries@suse.de>
5659
5660 PR gdb/24591
5661 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5662 pc_low with relocation offset.
5663
123cd851
TT
56642019-08-07 Tom Tromey <tromey@adacore.com>
5665
5666 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5667 (print_frame_args): Update.
5668 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5669 Update.
5670 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5671 * frame.h (struct frame_arg): Add initializers.
5672 <error>: Now a unique_xmalloc_ptr.
5673
3d31bc39
AH
56742019-08-07 Alan Hayward <alan.hayward@arm.com>
5675
5676 * NEWS: Expand the Pointer Authentication entry.
5677 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5678 (aarch64_frame_unmask_lr): ... to this.
5679 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5680 Call aarch64_frame_unmask_lr.
5681 * frame.c (struct frame_info): Add "masked" variable.
5682 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5683 (fprint_frame): Check for masked pc.
5684 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5685 declarations.
5686 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5687 * stack.c (print_frame): Check for masked pc.
5688
0cf9feb9
TT
56892019-08-06 Tom Tromey <tom@tromey.com>
5690
5691 * stabsread.c (patch_block_stabs, read_one_struct_field)
5692 (read_enum_type): Use obstack_strndup.
5693 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5694 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5695 * dwarf2read.c (guess_full_die_structure_name)
5696 (anonymous_struct_prefix): Use obstack_strndup.
5697 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5698 * c-exp.y (yylex): Use obstack_strndup.
5699 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5700 (write_var_or_type): Use obstack_strndup.
5701
efba19b0
TT
57022019-08-06 Tom Tromey <tom@tromey.com>
5703
5704 * symfile.c (reread_symbols): Use obstack_strdup.
5705 * stabsread.c (read_type): Use obstack_strdup.
5706 * gdb_obstack.h (obstack_strdup): New overload.
5707 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5708 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5709 (dwarf2_canonicalize_name): Use obstack_strdup.
5710 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5711 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5712 Use obstack_strdup.
5713
f25102f7
TT
57142019-08-06 Tom Tromey <tom@tromey.com>
5715
5716 * gdb_obstack.h (obstack_strdup): Define.
5717 * gdb_obstack.c (obstack_strdup): Don't define.
5718
021887d8
TT
57192019-08-06 Tom Tromey <tom@tromey.com>
5720
5721 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5722 obstack_strdup.
5723 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5724 obstack_strdup.
5725 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5726 * stabsread.c (common_block_start): Use obstack_strdup.
5727 * objfiles.c (set_objfile_main_name, objfile): Use
5728 obstack_strdup.
5729 * namespace.c (add_using_directive): Use obstack_strdup.
5730 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5731 * jit.c (finalize_symtab): Use obstack_strdup.
5732 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5733 (guess_partial_die_structure_name, partial_die_info::fixup)
5734 (dwarf2_name): Use obstack_strdup.
5735 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5736 obstack_strdup.
5737 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5738 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5739 obstack_strdup.
5740 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5741
d2834edc
PW
57422019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5743
5744 * unittests/help-doc-selftests.c: New file.
5745 * Makefile.in: Add the new file.
5746
590042fc
PW
57472019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5748
5749 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5750 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5751 the full first line, except when FOR_VALUE_PREFIX. In this case,
5752 the trailing '.' is not output, and the first character is uppercased.
5753 (print_help_for_command): Update call to print_doc_line.
5754 (print_doc_of_command): Likewise.
5755 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5756 * cli/cli-option.c (append_indented_doc): Do not append newline.
5757 (build_help_option): Append newline after first appended_indented_doc
5758 only if a second call is done.
5759 (build_help): Append 2 new lines before each option, except the first
5760 one.
5761 * compile/compile.c (_initialize_compile): Add new lines after
5762 %OPTIONS%, when not at the end of the help.
5763 Change help doc or code
5764 producing the help doc to respect the invariants.
5765 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5766 Also removed the new line after 'Options:', as all other commands
5767 do not put an empty line between 'Options:' and the first option.
5768 * printcmd.c (_initialize_printcmd): Likewise.
5769 * stack.c (_initialize_stack): Likewise.
5770 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5771 incorrectly telling COMMAND is optional.
5772 * ada-lang.c (_initialize_ada_language): Change help doc or code
5773 producing the help doc to respect the invariants.
5774 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5775 * breakpoint.c (_initialize_breakpoint): Likewise.
5776 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5777 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5778 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5779 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5780 _initialize_cli_style): Likewise.
5781 * corelow.c (core_target_info): Likewise.
5782 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5783 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5784 * filesystem.c (_initialize_filesystem): Likewise.
5785 * frame.c (_initialize_frame): Likewise.
5786 * gnu-nat.c (add_task_commands): Likewise.
5787 * infcall.c (_initialize_infcall): Likewise.
5788 * infcmd.c (_initialize_infcmd): Likewise.
5789 * interps.c (_initialize_interpreter): Likewise.
5790 * language.c (_initialize_language): Likewise.
5791 * linux-fork.c (_initialize_linux_fork): Likewise.
5792 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5793 * maint.c (_initialize_maint_cmds): Likewise.
5794 * memattr.c (_initialize_mem): Likewise.
5795 * printcmd.c (_initialize_printcmd): Likewise.
5796 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5797 _RegEx): Likewise.
5798 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5799 * record-btrace.c (_initialize_record_btrace): Likewise.
5800 * record-full.c (_initialize_record_full): Likewise.
5801 * record.c (_initialize_record): Likewise.
5802 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5803 * regcache.c (_initialize_regcache): Likewise.
5804 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5805 _initialize_remote): Likewise.
5806 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5807 * serial.c (_initialize_serial): Likewise.
5808 * skip.c (_initialize_step_skip): Likewise.
5809 * source.c (_initialize_source): Likewise.
5810 * stack.c (_initialize_stack): Likewise.
5811 * symfile.c (_initialize_symfile): Likewise.
5812 * symtab.c (_initialize_symtab): Likewise.
5813 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5814 * top.c (init_main): Likewise.
5815 * tracefile-tfile.c (tfile_target_info): Likewise.
5816 * tracepoint.c (_initialize_tracepoint): Likewise.
5817 * tui/tui-win.c (_initialize_tui_win): Likewise.
5818 * utils.c (add_internal_problem_command): Likewise.
5819 * valprint.c (value_print_option_defs): Likewise.
5820
404f2902
FCE
58212019-08-06 Frank Ch. Eigler <fche@redhat.com>
5822
5823 PR build/24886
5824 * configure.ac: Drop enable-libmcheck support.
5825 * configure, config.in: Rebuild.
5826 * libmcheck.m4: Remove.
5827 * acinclude.m4: Don't include it.
5828 * Makefile.in: Don't distribute it.
5829 * top.c (print_gdb_configuration): Don't mention it.
5830
046bebe1
TT
58312019-08-06 Tom Tromey <tom@tromey.com>
5832
5833 * utils.c (set_output_style): Sometimes pass stream to
5834 emit_style_escape.
5835 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5836 * record-btrace.c (btrace_insn_history): Update.
5837 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5838 method.
5839 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5840 Update initializers.
5841 <m_uiout>: New field.
5842 <m_di>: Move lower.
5843 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5844 Remove "uiout" parameter.
5845 (dump_insns): Update.
5846 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5847 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5848
ddbcedf5
CB
58492019-08-06 Christian Biesinger <cbiesinger@google.com>
5850
5851 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5852 (error_in_psymtab_expansion): Likewise.
5853 (lookup_symbol_via_quick_fns): Likewise.
5854 (basic_lookup_transparent_type_quick): Likewise.
5855 (basic_lookup_transparent_type_1): Likewise.
5856
b08b16c8
TT
58572019-08-06 Tom Tromey <tromey@adacore.com>
5858
5859 * source.c (last_source_error): Now bool.
5860 (print_source_lines_base): Make "noprint" bool. Only open
5861 source file when last_source_visited changes.
5862
cb44333d
TT
58632019-08-06 Tom Tromey <tromey@adacore.com>
5864
5865 * annotate.c (annotate_source_line): Use g_source_cache.
5866 * source-cache.c (source_cache::get_plain_source_lines): Change
5867 parameters. Populate m_offset_cache.
5868 (source_cache::ensure): New method.
5869 (source_cache::get_line_charpos): New method.
5870 (extract_lines): Move lower. Change parameters.
5871 (source_cache::get_source_lines): Move lower.
5872 * source-cache.h (class source_cache): Update comment.
5873 <get_line_charpos>: New method.
5874 <get_source_lines>: Update comment.
5875 <clear>: Clear m_offset_cache.
5876 <get_plain_source_lines>: Change parameters.
5877 <ensure>: New method
5878 <m_offset_cache>: New member.
5879 * source.c (forget_cached_source_info_for_objfile): Update.
5880 (info_source_command): Use g_source_cache.
5881 (find_source_lines, open_source_file_with_line_charpos): Remove.
5882 (print_source_lines_base, search_command_helper): Use g_source_cache.
5883 * source.h (open_source_file_with_line_charpos): Don't declare.
5884 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5885 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5886 Use g_source_cache.
5887
872dceaa
TT
58882019-08-06 Tom Tromey <tromey@adacore.com>
5889
5890 * source-cache.c (source_cache::get_plain_source_lines):
5891 Remove "first_line" and "last_line" parameters.
5892 (source_cache::get_source_lines): Cache plain text.
5893 * source-cache.h (class source_cache)
5894 <get_plain_source_lines>: Update.
5895
269249d9
TT
58962019-08-06 Tom Tromey <tromey@adacore.com>
5897
5898 * source-cache.c (extract_lines): No longer a method.
5899 Changed type of parameter. Include final newline.
5900 (selftests::extract_lines_test): New function.
5901 (_initialize_source_cache): Likewise.
5902 * source-cache.h (class source_cache)
5903 <extract_lines>: Don't declare.
5904
c0e8dcd8
TT
59052019-08-06 Tom Tromey <tromey@adacore.com>
5906
5907 * breakpoint.c (init_breakpoint_sal): Update.
5908 (breakpoint): Update.
5909 * breakpoint.h (struct breakpoint) <filter>: Now a
5910 unique_xmalloc_ptr.
5911
0b27c27d
CB
59122019-08-05 Christian Biesinger <cbiesinger@google.com>
5913
5914 * NEWS: Mention dictionary access on blocks.
5915 * python/py-block.c (blpy_getitem): New function.
5916 (block_object_as_mapping): New struct.
5917 (block_object_type): Use new struct for tp_as_mapping field.
5918
4ee94178
CB
59192019-08-05 Christian Biesinger <cbiesinger@google.com>
5920
5921 * objfiles.h (objfile): Add a comment describing partial symbols.
5922
8abfcabc
TT
59232019-08-05 Tom Tromey <tromey@adacore.com>
5924
5925 * compile/compile.c (_initialize_compile): Use _(), not N_().
5926 * thread.c (_initialize_thread): Use _(), not N_().
5927 * stack.c (_initialize_stack): Use _(), not N_().
5928 * printcmd.c (_initialize_printcmd): Use _(), not N_().
5929
2b79f376
SM
59302019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5931
5932 * dwarf2read.c (struct dw2_symtab_iterator):
5933 <want_specific_block>: Remove.
5934 <block_index>: Change type to gdb::optional.
5935 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
5936 change type of BLOCK_INDEX parameter to gdb::optional.
5937 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
5938 (dw2_lookup_symbol): Don't pass argument for
5939 WANT_SPECIFIC_BLOCK.
5940 (dw2_expand_symtabs_for_function): Don't pass argument for
5941 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
5942 (class dw2_debug_names_iterator)
5943 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
5944 parameter, change BLOCK_INDEX type to gdb::optional.
5945 <m_want_specific_block>: Remove.
5946 <m_block_index>: Change type to gdb::optional.
5947 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
5948 gdb::optional. Re-write in function of gdb::optional.
5949 (dw2_debug_names_lookup_symbol): Don't pass argument for
5950 WANT_SPECIFIC_BLOCK.
5951 (dw2_debug_names_expand_symtabs_for_function): Don't pass
5952 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
5953 BLOCK_INDEX.
5954
ae60f04e
PW
59552019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5956
5957 * NEWS: Mention changes to "info sources" command.
5958
28cd9371
PW
59592019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5960
5961 * symtab.c (filename_partial_match_opts): New struct type.
5962 (struct output_source_filename_data): New members
5963 regexp, c_regexp, partial_match.
5964 (output_source_filename): Use new members to decide to print file.
5965 (info_sources_option_defs): New variable.
5966 (make_info_sources_options_def_group, print_info_sources_header,
5967 info_sources_command_completer):
5968 New functions.
5969 (info_sources_command): Read new optional arguments.
5970 (_initialize_symtab): Update info sources help.
5971
ca683e3a
AO
59722019-08-02 Alexandre Oliva <oliva@adacore.com>
5973
5974 * ada-lang.c (exception_support_info_v0): Renamed from...
5975 (default_exception_support_info): ... this. Create new
5976 definition for v1.
5977 (ada_has_this_exception_support): Look up catch_handlers_sym.
5978 (ada_exception_support_info_sniffer): Try v0 after default.
5979
f1264162
TT
59802019-08-01 Tom Tromey <tromey@adacore.com>
5981
5982 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
5983 gdbarch.h.
5984
0a7b2485
CB
59852019-08-01 Christian Biesinger <cbiesinger@google.com>
5986
5987 * s12z-tdep.c: Fix include path for s12z-opc.h.
5988
c6bdbeb7
AH
59892019-08-01 Alan Hayward <alan.hayward@arm.com>
5990
5991 * NEWS: Require GNU make 3.82.
5992
a2bd7b82
TT
59932019-07-16 Tom Tromey <tom@tromey.com>
5994
5995 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
5996 declare.
5997
aa3b6533
TT
59982019-07-30 Tom Tromey <tromey@adacore.com>
5999
6000 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6001
a1530dc7
KB
60022019-07-30 Kevin Buettner <kevinb@redhat.com>
6003
6004 * printcmd.c (print_address_symbolic): Print negative offsets.
6005 (build_address_symbolic): Force signed arithmetic when computing
6006 offset.
6007
2906593f
CB
60082019-07-30 Christian Biesinger <cbiesinger@google.com>
6009
6010 PR/24474: Add a function to lookup static variables.
6011 * NEWS: Mention this new function.
6012 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6013 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6014 * python/python.c (python_GdbMethods): Add new function.
6015
c620ed88
CB
60162019-07-29 Christian Biesinger <cbiesinger@google.com>
6017
6018 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6019 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6020 (objfpy_lookup_static_symbol): New function.
6021 (objfile_object_methods): Add new functions.
6022
bc4268a5
PW
60232019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6024
6025 * NEWS: Mention 'set|show print frame-info'. Mention new
6026 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6027 backtrace argument. Mention that python frame filtering code
6028 is now consistent with what 'backtrace' command prints.
6029
4b5e8d19
PW
60302019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6031
6032 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6033 comments.
6034 (print_frame_info_auto, print_frame_info_source_line,
6035 print_frame_info_location, print_frame_info_source_and_location,
6036 print_frame_info_location_and_address, print_frame_info_short_location):
6037 New declarations.
6038 (struct frame_print_options): New member print_frame_info.
6039 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6040 * stack.h (get_user_print_what_frame_info): New declaration.
6041 (frame_show_address): New declaration.
6042 * stack.c (print_frame_arguments_choices): New value 'presence'.
6043 (print_frame_info_auto, print_frame_info_source_line,
6044 print_frame_info_location, print_frame_info_source_and_location,
6045 print_frame_info_location_and_address, print_frame_info_short_location,
6046 print_frame_info_choices, print_frame_info_print_what): New definitions.
6047 (print_frame_args): Only print dots for args if print frame-arguments
6048 is 'presence'.
6049 (frame_print_option_defs): New element for "frame-info".
6050 (get_user_print_what_frame_info): New function.
6051 (frame_show_address): Make non static. Move comment to stack.h.
6052 (print_frame_info_to_print_what): New function.
6053 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6054 to decide what to print.
6055 (backtrace_command_1): Handle the new print_frame_arguments_presence
6056 value.
6057 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6058 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6059 (py_print_frame): In non-mi mode, use LOCATION as default for
6060 print_what, similarly to frame information printed directly by
6061 backtrace command. Handle frame-info user option in non MI mode.
6062
6bdfee81
KB
60632019-07-27 Kevin Buettner <kevinb@redhat.com>
6064
6065 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6066 Add case for debugging 32-bit target on 64-bit host. Revise
6067 comment.
6068
98a617f8
KB
60692019-07-27 Kevin Buettner <kevinb@redhat.com>
6070
6071 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6072 instead of find_function_entry_range_from_pc.
6073
567238c9
KB
60742019-07-27 Kevin Buettner <kevinb@redhat.com>
6075
6076 * stack.c (find_frame_funname): Remove code which preferred
6077 minsym over symtab sym in "certain pathological cases".
6078
2dc80cf8
KB
6079 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6080 parameter. Change type of "do_demangle" to bool.
6081 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6082 Pass suitable "prefer_sym_over_minsym" flag to
6083 build_address_symbolic(). Don't output "+" for negative offsets.
6084 * printcmd.c (print_address_symbolic): Update invocation of
6085 build_address_symbolic to include a "prefer_sym_over_minsym"
6086 flag.
6087 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6088 Restrict cases in which use of minimal symbol is preferred to that
6089 of a found symbol. Update comments.
6090
1aff7173
KB
6091 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6092 for entry pc when entry pc is out of range for that FDE.
6093
89b085ac
BC
60942019-07-26 Brian Callahan <bcallah@openbsd.org>
6095
6096 PR gdb/24839:
6097 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6098 type.
6099
f32feb4a
CB
61002019-07-25 Christian Biesinger <cbiesinger@google.com>
6101
6102 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6103 this function's Python signature.
6104
6105
61062019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
6107
6108 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6109 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6110 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6111 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6112 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6113
6114
c54e4253
YS
61152019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6116
6117 * h8300-tdep.c (h8300_register_name_common): New.
6118 h8300_register_name): Use h8300_register_name_common.
6119 (h8300s_register_name): Likewise.
6120 (h8300sx_register_name): Likewise.
6121 (h8300h_register_nam): New.
6122 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6123
6124
40eadf04
SP
61252019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6126
6127 * arm-tdep.c (arm_skip_cmse_entry): New function.
6128 (arm_is_sgstubs_section): New function.
6129 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6130
bfa2a36d
TT
61312019-07-22 Tom Tromey <tom@tromey.com>
6132
6133 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6134 Don't self-assign.
6135
a8e9d247
AB
61362019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6137
6138 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6139 type_print.
6140
eb86c5e2
AB
61412019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6142
6143 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6144 so that GDB doesn't match any msymbols when searching in the
6145 TYPES_DOMAIN.
6146 (print_symbol_info): Print using typedef_print or type_print based
6147 on the type of the symbol. Add updated FIXME comment moved from...
6148 (_initialize_symtab): ... move and update FIXME comment to above.
6149
a8eab7c6
AB
61502019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6151
6152 * NEWS: Mention adding -q option to "info types".
6153 * symtab.c (struct info_types_options): New struct.
6154 (info_types_options_defs): New variable.
6155 (make_info_types_options_def_group): New function.
6156 (info_types_command): Use gdb::option framework to parse options.
6157 (info_types_command_completer): New function.
6158 (_initialize_symtab): Extend the help text on "info types" and
6159 register command completer.
6160
b4603c34
CB
61612019-07-21 Christian Biesinger <cbiesinger@google.com>
6162
6163 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6164 (lookup_symbol_in_objfile): Change int to block_enum and add a
6165 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6166
c8cdc1e0
CB
61672019-07-20 Christian Biesinger <cbiesinger@google.com>
6168
6169 * MAINTAINERS (Write After Approval): Add self.
6170
01e175fe
AB
61712019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6172
6173 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6174 instruction to the dummy code region.
6175
56f79b63
TT
61762019-07-19 Tom Tromey <tromey@adacore.com>
6177
6178 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6179 (ARGSUSED, PARAMS, __func__): Remove rules.
6180
4c5aa8e0
AH
61812019-07-19 Alan Hayward <alan.hayward@arm.com>
6182
6183 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6184 * features/arm/arm-with-iwmmxt.c: Remove.
6185 * features/arm/arm-with-iwmmxt.xml: Remove.
6186 * features/arm/arm-with-m-fpa-layout.c: Remove.
6187 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6188 * features/arm/arm-with-m-vfp-d16.c: Remove.
6189 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6190 * features/arm/arm-with-m.c: Remove.
6191 * features/arm/arm-with-m.xml: Remove.
6192 * features/arm/arm-with-neon.c: Remove.
6193 * features/arm/arm-with-neon.xml: Remove.
6194 * features/arm/arm-with-vfpv2.c: Remove.
6195 * features/arm/arm-with-vfpv2.xml: Remove.
6196 * features/arm/arm-with-vfpv3.c: Remove.
6197 * features/arm/arm-with-vfpv3.xml: Remove.
6198
f42b2617
AH
61992019-07-19 Alan Hayward <alan.hayward@arm.com>
6200
6201 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6202
f29ec966
AH
62032019-07-19 Alan Hayward <alan.hayward@arm.com>
6204
6205 * arch/aarch32.c (aarch32_create_target_description): Create
6206 target descriptions using features.
6207 * arch/arm.c (arm_create_target_description)
6208 (arm_create_mprofile_target_description): Likewise.
6209 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6210
d105cce5
AH
62112019-07-19 Alan Hayward <alan.hayward@arm.com>
6212
6213 * Makefile.in: Add new files.
6214 * aarch32-tdep.c: New file.
6215 * aarch32-tdep.h: New file.
6216 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6217 Call aarch32_read_description.
6218 * arch/aarch32.c: New file.
6219 * arch/aarch32.h: New file.
6220 * arch/arm.c (arm_create_target_description)
6221 (arm_create_mprofile_target_description): New function.
6222 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6223 (arm_create_target_description)
6224 (arm_create_mprofile_target_description): New declaration.
6225 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6226 read_description functions.
6227 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6228 Likewise.
6229 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6230 * arm-tdep.c (tdesc_arm_list): New variable.
6231 (arm_register_g_packet_guesses): Call create description functions.
6232 (arm_read_description) (arm_read_mprofile_description): New
6233 function.
6234 * arm-tdep.h (arm_read_description)
6235 (arm_read_mprofile_description): Add declaration.
6236 * configure.tgt: Add new files.
6237
afe09f0b
GL
62382019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6239
6240 * top.c (new_ui_command): Open specified terminal just once.
6241
cd215b2e
TT
62422019-07-18 Tom Tromey <tromey@adacore.com>
6243
6244 * symtab.c (main_name): Constify return type.
6245 * symfile.c (set_initial_language): Update.
6246 * symtab.h (main_name): Constify return type.
6247
d8f68fcb
TT
62482019-07-17 Tom Tromey <tom@tromey.com>
6249
6250 * tui/tui-winsource.c (tui_update_source_window)
6251 (tui_update_source_window_as_is)
6252 (tui_update_source_windows_with_line): Remove return.
6253 * tui/tui-disasm.c (tui_show_disassem)
6254 (tui_show_disassem_and_update_source): Remove return.
6255 * tui/tui.c (tui_reset): Remove return.
6256 * tui/tui-wingeneral.c
6257 (tui_check_and_display_highlight_if_needed): Remove return.
6258
ca5af91e
TT
62592019-07-17 Tom Tromey <tom@tromey.com>
6260
6261 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6262
5104fe36
TT
62632019-07-17 Tom Tromey <tom@tromey.com>
6264
6265 * tui/tui-winsource.h (struct tui_exec_info_window)
6266 (struct tui_source_window_base): Move from tui-data.h.
6267 * tui/tui-winsource.c: Move many method definitions from
6268 elsewhere. Remove "structuring" comments.
6269 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6270 (tui_source_window_base::refresh_window): Move to
6271 tui-winsource.c.
6272 * tui/tui-win.c (tui_source_window_base::refresh_all)
6273 (tui_source_window_base::update_tab_width)
6274 (tui_source_window_base::set_new_height)
6275 (tui_source_window_base::do_make_visible_with_new_height): Move to
6276 tui-winsource.c.
6277 * tui/tui-source.h: Update.
6278 * tui/tui-source.c (tui_source_window_base::reset): Move to
6279 tui-winsource.c.
6280 * tui/tui-disasm.h: Update.
6281 * tui/tui-data.h (struct tui_exec_info_window): Move to
6282 tui-winsource.h.
6283 (struct tui_source_window_base): Likewise.
6284 * tui/tui-data.c (tui_source_window_base::clear_detail)
6285 (tui_source_window_base, ~tui_source_window_base): Move to
6286 tui-winsource.c.
6287
daa15dde
TT
62882019-07-17 Tom Tromey <tom@tromey.com>
6289
6290 * tui/tui-win.c (tui_resize_all)
6291 (tui_source_window_base::update_tab_width)
6292 (tui_adjust_win_heights): Update.
6293 (tui_win_info::make_invisible_and_set_new_height): Rename from
6294 make_invisible_and_set_new_height.
6295 * tui/tui-data.h (struct tui_win_info)
6296 <make_invisible_and_set_new_height>: New method.
6297
bfad4537
TT
62982019-07-17 Tom Tromey <tom@tromey.com>
6299
6300 * tui/tui.c: Update.
6301 * tui/tui-source.h (struct tui_source_window): Move from
6302 tui-data.h.
6303 * tui/tui-layout.c: Update.
6304 * tui/tui-disasm.c: Update.
6305 * tui/tui-data.h (struct tui_source_window): Move to
6306 tui-source.h.
6307
88f7e873
TT
63082019-07-17 Tom Tromey <tom@tromey.com>
6309
6310 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6311 tui-data.h.
6312 * tui/tui-data.h (struct tui_disasm_window): Move to
6313 tui-disasm.h.
6314
96bd6233
TT
63152019-07-17 Tom Tromey <tom@tromey.com>
6316
6317 * tui/tui-regs.h (struct tui_data_item_window): Move from
6318 tui-data.h.
6319 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6320 * tui/tui-data.h (struct tui_data_item_window): Move to
6321 tui-regs.h.
6322 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6323
ce38393b
TT
63242019-07-17 Tom Tromey <tom@tromey.com>
6325
6326 * tui/tui.c: Update.
6327 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6328 (tui_cmd_window::max_height): Move to tui-command.c.
6329 * tui/tui-layout.c: Update.
6330 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6331 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6332 tui-command.c.
6333 * tui/tui-command.h (struct tui_cmd_window): Move from
6334 tui-data.h.
6335 * tui/tui-command.c: Remove "structuring" comments.
6336 (tui_cmd_window::clear_detail)
6337 (tui_cmd_window::do_make_visible_with_new_height)
6338 (tui_cmd_window::max_height): Move from elsewhere.
6339
2d8b51cb
TT
63402019-07-17 Tom Tromey <tom@tromey.com>
6341
6342 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6343 Now static.
6344 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6345 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6346
18ab23af
TT
63472019-07-17 Tom Tromey <tom@tromey.com>
6348
6349 * tui/tui.c: Update.
6350 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6351 tui-regs.c.
6352 * tui/tui-windata.h: Remove file.
6353 * tui/tui-windata.c: Remove file.
6354 * tui/tui-win.c (tui_data_window::set_new_height)
6355 (tui_data_window::do_make_visible_with_new_height): Move to
6356 tui-regs.c.
6357 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6358 * tui/tui-regs.c: Remove "structuring" comments.
6359 (tui_data_window::first_data_item_displayed)
6360 (tui_data_window::delete_data_content_windows)
6361 (tui_data_window::erase_data_content)
6362 (tui_data_window::display_all_data)
6363 (tui_data_window::refresh_all)
6364 (tui_data_window::do_scroll_vertical)
6365 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6366 (tui_data_window::do_make_visible_with_new_height)
6367 (tui_data_window::refresh_window): Move from elsewhere.
6368 (_initialize_tui_regs): Move to end of file.
6369 * tui/tui-layout.c: Update.
6370 * tui/tui-hooks.c: Update.
6371 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6372 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6373 tui-regs.c.
6374 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6375
88b7e7cc
TT
63762019-07-17 Tom Tromey <tom@tromey.com>
6377
6378 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6379 seen.
6380
0fcd3711
TT
63812019-07-17 Tom Tromey <tom@tromey.com>
6382
6383 * tui/tui-win.c (tui_source_window_base::set_new_height)
6384 (tui_source_window_base::do_make_visible_with_new_height): Use
6385 m_has_locator field directly.
6386 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6387 method.
6388 (struct tui_source_window_base) <has_locator>: Likewise.
6389
4a38112d
TT
63902019-07-17 Tom Tromey <tom@tromey.com>
6391
6392 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6393 Don't declare.
6394 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6395 Remove.
6396 * tui/tui-win.c (tui_source_window_base::set_new_height)
6397 (tui_source_window_base::set_new_height)
6398 (make_invisible_and_set_new_height)
6399 (tui_source_window_base::do_make_visible_with_new_height)
6400 (tui_source_window_base::do_make_visible_with_new_height):
6401 Update.
6402 * tui/tui-layout.c (show_source_disasm_command, show_data)
6403 (show_source_or_disasm_and_command): Update.
6404 * tui/tui-layout.c (show_layout): Update.
6405
09129226
TT
64062019-07-17 Tom Tromey <tom@tromey.com>
6407
6408 * tui/tui-layout.c (make_data_window): Remove.
6409 (show_data): Unify creation and re-initialization cases.
6410
4a8a5e84
TT
64112019-07-17 Tom Tromey <tom@tromey.com>
6412
6413 * tui/tui-layout.c (make_source_window, make_disasm_window):
6414 Remove.
6415 (show_data): Unify creation and re-initialization cases.
6416
76d2be8e
TT
64172019-07-17 Tom Tromey <tom@tromey.com>
6418
6419 * tui/tui-layout.c (make_command_window): Remove.
6420 (show_source_disasm_command, show_source_or_disasm_and_command):
6421 Unify creation and re-initialization cases.
6422
890b8bde
TT
64232019-07-17 Tom Tromey <tom@tromey.com>
6424
6425 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6426 creation and re-initialization cases.
6427
2cdfa113
TT
64282019-07-17 Tom Tromey <tom@tromey.com>
6429
6430 * tui/tui-regs.c (tui_get_register): Return void.
6431
8e3cfd09
TT
64322019-07-17 Tom Tromey <tom@tromey.com>
6433
6434 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6435 Simplify.
6436
f4e04977
TT
64372019-07-17 Tom Tromey <tom@tromey.com>
6438
6439 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6440 resetting.
6441
0379b883
TT
64422019-07-17 Tom Tromey <tom@tromey.com>
6443
6444 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6445 * tui/tui-regs.c (tui_reg_layout): New function.
6446 (tui_show_registers, tui_reg_command): Use it.
6447 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6448 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6449 parameters.
6450 (tui_layout_command): Remove.
6451
b7fbad91
TT
64522019-07-17 Tom Tromey <tom@tromey.com>
6453
6454 * tui/tui-layout.h (tui/tui-layout): Return void.
6455 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6456
4e1e56b9
TT
64572019-07-17 Tom Tromey <tom@tromey.com>
6458
6459 * tui/tui-layout.c (show_source_disasm_command, show_data):
6460 Update.
6461 (reset_locator): Remove.
6462 (show_source_or_disasm_and_command): Update.
6463
1e0c09ba
TT
64642019-07-17 Tom Tromey <tom@tromey.com>
6465
6466 * tui/tui-source.c (tui_source_window_base::reset): Remove
6467 win_type parameter.
6468 * tui/tui-layout.c (make_command_window, make_source_window)
6469 (make_disasm_window, make_data_window)
6470 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6471 (reset_locator, show_source_or_disasm_and_command): Update.
6472 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6473 win_type parameter.
6474 (struct tui_source_window_base) <reset>: Likewise.
6475
1bf605de
TT
64762019-07-17 Tom Tromey <tom@tromey.com>
6477
6478 * tui/tui-layout.c (show_source_disasm_command): Use
6479 reset_locator.
6480 (reset_locator): New function.
6481 (init_and_make_win): Remove.
6482 (show_source_or_disasm_and_command): Use reset_locator.
6483
098f9ed4
TT
64842019-07-17 Tom Tromey <tom@tromey.com>
6485
6486 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6487 condition.
6488 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6489 Remove condition.
6490 * tui/tui-source.c (tui_source_window_base::reset): New method.
6491 * tui/tui-layout.c (make_command_window): Don't call
6492 init_and_make_win.
6493 (make_source_window, make_disasm_window): Don't call
6494 make_source_or_disasm_window.
6495 (make_data_window): Don't call init_and_make_win. Change calling
6496 convention.
6497 (show_source_disasm_command, show_data): Simplify.
6498 (make_source_or_disasm_window): Remove.
6499 (show_source_or_disasm_and_command): Simplify.
6500 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6501 (struct tui_source_window_base) <reset>: Likewise.
6502 <execution_info>: Remove initializer.
6503 * tui/tui-data.c (tui_source_window_base): Initialize
6504 execution_info.
6505
80110957
TT
65062019-07-17 Tom Tromey <tom@tromey.com>
6507
6508 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6509 variable.
6510
cf82af05
TT
65112019-07-17 Tom Tromey <tom@tromey.com>
6512
6513 * tui/tui.c (tui_rl_other_window): Update.
6514 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6515 superclass method first. Always iterate over regs_content.
6516 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6517 method.
6518 * tui/tui-win.c (tui_set_focus_command): Update.
6519
01aeb396
TT
65202019-07-17 Tom Tromey <tom@tromey.com>
6521
6522 * tui/tui-win.c (tui_set_focus_command): Rename from
6523 tui_set_focus. Call tui_enable.
6524 (tui_set_focus_command): Remove.
6525
fd6c75ee
TT
65262019-07-17 Tom Tromey <tom@tromey.com>
6527
6528 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6529 refresh_window.
6530 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6531 touchwin.
6532 (tui_data_window::refresh_window): Call refresh_window on data
6533 items. Always call superclass refresh_window.
6534 (tui_win_info::refresh): Remove.
6535 (tui_source_window_base::refresh_window): Update.
6536 (tui_refresh_all): Update.
6537 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6538 refresh_window.
6539 (show_source_or_disasm_and_command): Likewise.
6540 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6541 (struct tui_source_window_base) <refresh>: Likewise.
6542
f6cc34a9
TT
65432019-07-17 Tom Tromey <tom@tromey.com>
6544
6545 * tui/tui-winsource.c (tui_clear_source_content)
6546 (tui_show_source_content): Update.
6547 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6548 whether content is empty.
6549 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6550 Remove.
6551
f31ec9af
TT
65522019-07-17 Tom Tromey <tom@tromey.com>
6553
6554 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6555 window's contents.
6556 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6557 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6558
d1b6f1e5
TT
65592019-07-17 Tom Tromey <tom@tromey.com>
6560
6561 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6562 (struct tui_data_item_window): Update.
6563
d9743a13
TT
65642019-07-17 Tom Tromey <tom@tromey.com>
6565
6566 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6567 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6568 defines.
6569
caf0bc4e
TT
65702019-07-17 Tom Tromey <tom@tromey.com>
6571
6572 * tui/tui-winsource.h (tui_erase_source_content)
6573 (tui_clear_source_content): Remove "display_prompt" parameter.
6574 * tui/tui-winsource.c (tui_update_source_window_as_is)
6575 (tui_update_source_windows_with_addr): Update.
6576 (tui_clear_source_content): Remove "display_prompt" parameter.
6577 (tui_erase_source_content): Likewise. Simplify.
6578 (tui_show_source_content): Update.
6579 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6580 * tui/tui-stack.c (tui_show_frame_info): Update.
6581 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6582 Remove defines.
6583
9d391078
TT
65842019-07-17 Tom Tromey <tom@tromey.com>
6585
6586 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6587 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6588 parameter.
6589 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6590 parameter.
6591
a38da35d
TT
65922019-07-17 Tom Tromey <tom@tromey.com>
6593
6594 * tui/tui-winsource.c (tui_clear_source_content)
6595 (tui_show_source_content, tui_show_exec_info_content)
6596 (tui_clear_exec_info_content): Update.
6597 * tui/tui-stack.c (tui_show_locator_content): Update.
6598 (tui_show_frame_info): Update.
6599 * tui/tui-source.h (tui_source_window): Don't declare.
6600 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6601 from tui_source_is_displayed.
6602 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6603 Remove field.
6604 (struct tui_source_window_base) <content_in_use>: New field. Now
6605 bool.
6606 (struct tui_source_window) <showing_source_p>: New method.
6607 (TUI_SRC_WIN): Change cast.
6608 * tui/tui-data.c (tui_initialize_static_data): Update.
6609
c2cd8994
TT
66102019-07-17 Tom Tromey <tom@tromey.com>
6611
6612 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6613 location_matches_p.
6614 * tui/tui-source.c (tui_source_window::location_matches_p): New
6615 method.
6616 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6617 method.
6618 * tui/tui-data.h (struct tui_source_window_base)
6619 <location_matches_p>: New method.
6620 (struct tui_source_window, struct tui_disasm_window)
6621 <location_matches_p>: Likewise.
6622
4dde7b34
TT
66232019-07-17 Tom Tromey <tom@tromey.com>
6624
6625 * tui/tui-win.c (tui_set_win_height_command): Rename from
6626 tui_set_win_height.
6627 (tui_set_win_height_command): Remove.
6628
b73dd877
TT
66292019-07-17 Tom Tromey <tom@tromey.com>
6630
6631 * tui/tui-source.c (tui_source_window): New constructor. Add
6632 observer.
6633 (~tui_source_window): New destructor.
6634 (tui_source_window::style_changed): New method.
6635 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6636 (tui_attach_detach_observers): Update.
6637 * tui/tui-data.h (struct tui_source_window): Make constructor not
6638 inline. Add destructor.
6639 (struct tui_source_window) <style_changed>: New method.
6640 <m_observable>: New member.
6641
ae2b5380
TT
66422019-07-17 Tom Tromey <tom@tromey.com>
6643
6644 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6645 * tui/tui-win.c (tui_resize_all): Fix typo.
6646
1ce3e844
TT
66472019-07-17 Tom Tromey <tom@tromey.com>
6648
6649 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6650 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6651 (tui_refresh_all): Remove "list" parameter. Use foreach.
6652 * tui/tui-win.c (window_name_completer): Use foreach.
6653 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6654 (update_tab_width): Likewise.
6655 * tui/tui-layout.c (show_layout): Update.
6656 * tui/tui-data.h (class tui_window_iterator): New.
6657 (struct all_tui_windows): New.
6658 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6659
fe3eaf1c
TT
66602019-07-17 Tom Tromey <tom@tromey.com>
6661
6662 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6663 parameter. Don't reference globals.
6664 (tui_reg_command): Update.
6665
368c1354
TT
66662019-07-17 Tom Tromey <tom@tromey.com>
6667
6668 * tui/tui-regs.c (tui_show_registers): Simplify.
6669
e80cd204
TT
66702019-07-17 Tom Tromey <tom@tromey.com>
6671
6672 * tui/tui-regs.c (tui_show_registers): Update.
6673 (tui_show_register_group): Add win_info parameter.
6674
aca2dd16
TT
66752019-07-17 Tom Tromey <tom@tromey.com>
6676
6677 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6678 Rename from tui_display_reg_element_at_line.
6679 (tui_data_window::display_registers_from_line): Update.
6680 * tui/tui-data.h (struct tui_data_window)
6681 <display_reg_element_at_line>: New method.
6682
517e9505
TT
66832019-07-17 Tom Tromey <tom@tromey.com>
6684
6685 * tui/tui-regs.h (tui_display_registers_from)
6686 (tui_display_registers_from_line): Don't declare.
6687 * tui/tui-windata.c (tui_data_window::display_all_data)
6688 (tui_data_window::refresh_all)
6689 (tui_data_window::do_scroll_vertical): Update.
6690 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6691 from tui_display_registers_from.
6692 (tui_display_reg_element_at_line): Update.
6693 (tui_data_window::display_registers_from_line): Rename from
6694 tui_display_registers_from_line.
6695 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6696 display_registers_from_line>: New methods.
6697
f76d8b19
TT
66982019-07-17 Tom Tromey <tom@tromey.com>
6699
6700 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6701 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6702 from tui_erase_data_content.
6703 (tui_data_window::display_all_data)
6704 (tui_data_window::refresh_all)
6705 (tui_data_window::do_scroll_vertical): Update.
6706 * tui/tui-regs.c (tui_show_registers): Update.
6707 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6708 New method.
6709
b4094625
TT
67102019-07-17 Tom Tromey <tom@tromey.com>
6711
6712 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6713 declare.
6714 * tui/tui-windata.c
6715 (tui_data_window::delete_data_content_windows): Rename from
6716 tui_delete_data_content_windows.
6717 (tui_data_window::display_all_data)
6718 (tui_data_window::do_scroll_vertical): Update.
6719 * tui/tui-data.h (struct tui_data_window)
6720 <delete_data_content_windows>: New method.
6721
c223a729
TT
67222019-07-17 Tom Tromey <tom@tromey.com>
6723
6724 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6725 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6726
50daf268
TT
67272019-07-17 Tom Tromey <tom@tromey.com>
6728
6729 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6730 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6731 from tui_display_all_data.
6732 * tui/tui-win.c
6733 (tui_data_window::do_make_visible_with_new_height): Update.
6734 * tui/tui-regs.c (tui_show_registers): Update.
6735 * tui/tui-layout.c (tui_set_layout): Update.
6736 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6737 method.
6738
df5f8cab
TT
67392019-07-17 Tom Tromey <tom@tromey.com>
6740
6741 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6742 * tui/tui-windata.c (tui_display_data_from): Remove.
6743 (tui_data_window::refresh_all): Update.
6744
80cb6c27
TT
67452019-07-17 Tom Tromey <tom@tromey.com>
6746
6747 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6748 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6749 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6750 tui_display_registers_from_line.
6751 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6752 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6753 "force_display" parameter.
6754
baff0c28
TT
67552019-07-17 Tom Tromey <tom@tromey.com>
6756
6757 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6758 declare.
6759 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6760 Rename from tui_first_reg_element_no_inline.
6761 (tui_display_reg_element_at_line)
6762 (tui_display_registers_from_line): Update.
6763 * tui/tui-data.h (struct tui_data_window)
6764 <first_reg_element_no_inline>: New method.
6765
3b23c5f2
TT
67662019-07-17 Tom Tromey <tom@tromey.com>
6767
6768 * tui/tui-windata.c (tui_display_data_from)
6769 (tui_data_window::do_scroll_vertical): Update.
6770 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6771 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6772 Rename from tui_line_from_reg_element_no.
6773 (tui_display_registers_from_line): Update.
6774 * tui/tui-data.h (struct tui_data_window)
6775 <line_from_reg_element_no>: New method.
6776
0b5ec218
TT
67772019-07-17 Tom Tromey <tom@tromey.com>
6778
6779 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6780 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6781 tui_last_regs_line_no.
6782 (tui_display_reg_element_at_line)
6783 (tui_display_registers_from_line): Update.
6784 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6785 method.
6786
0807ab7b
TT
67872019-07-17 Tom Tromey <tom@tromey.com>
6788
6789 PR tui/24722:
6790 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6791 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6792 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6793 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6794 (tui_update_breakpoint_info): Likewise.
6795 * tui/tui-hooks.c (tui_event_create_breakpoint)
6796 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6797 Update.
6798
9ad7fdef
TT
67992019-07-17 Tom Tromey <tom@tromey.com>
6800
6801 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6802
5813316f
TT
68032019-07-17 Tom Tromey <tom@tromey.com>
6804
6805 * tui/tui-winsource.c (tui_update_source_window_as_is)
6806 (tui_update_source_windows_with_addr): Update.
6807 * tui/tui-source.h (tui_set_source_content)
6808 (tui_show_symtab_source): Add "win_info" parameter.
6809 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6810 parameter.
6811 (tui_show_symtab_source): Likewise.
6812
00e264e7
TT
68132019-07-17 Tom Tromey <tom@tromey.com>
6814
6815 * tui/tui-wingeneral.c
6816 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6817
06210ce4
TT
68182019-07-17 Tom Tromey <tom@tromey.com>
6819
6820 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6821 (struct tui_cmd_window) <can_scroll>: New method.
6822 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6823 method.
6824
381befee
TT
68252019-07-17 Tom Tromey <tromey@adacore.com>
6826
6827 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6828 do_field_signed>: Rename. Change type of "value".
6829 * ui-out.c (ui_out::field_signed): Rename from field_int.
6830 Change type of "value".
6831 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6832 type of "value".
6833 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6834 do_field_int. Change type of "value".
6835 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6836 do_field_int. Change type of "value".
6837 * tracepoint.c (trace_status_mi, tfind_1)
6838 (print_one_static_tracepoint_marker): Update.
6839 * thread.c (print_thread_info_1, print_selected_thread_frame):
6840 Update.
6841 * stack.c (print_frame, print_frame_info): Update.
6842 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6843 Update.
6844 * source.c (print_source_lines_base): Update.
6845 * skip.c (info_skip_command): Update.
6846 * record-btrace.c (btrace_ui_out_decode_error)
6847 (btrace_call_history_src_line): Update.
6848 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6849 Update.
6850 * progspace.c (print_program_space): Update.
6851 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6852 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6853 do_field_int. Change type of "value".
6854 * mi/mi-out.c (mi_ui_out::do_table_begin)
6855 (mi_ui_out::do_table_header): Update.
6856 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6857 type of "value".
6858 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6859 (mi_cmd_data_list_changed_registers, output_register)
6860 (mi_cmd_data_read_memory, mi_load_progress)
6861 (mi_cmd_trace_frame_collected): Update.
6862 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6863 Update.
6864 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6865 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6866 (mi_cmd_var_list_children, varobj_update_one): Update.
6867 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6868 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6869 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6870 * inferior.c (print_inferior): Update.
6871 * gdb_bfd.c (print_one_bfd): Update.
6872 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6873 Update.
6874 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6875 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6876 do_field_int. Change type of "value".
6877 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6878 do_field_int. Change type of "value".
6879 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6880 (print_one_breakpoint_location, print_it_catch_fork)
6881 (print_one_catch_fork, print_it_catch_vfork)
6882 (print_one_catch_vfork, print_it_catch_solib)
6883 (print_it_catch_exec, print_it_ranged_breakpoint)
6884 (print_mention_watchpoint, print_mention_masked_watchpoint)
6885 (bkpt_print_it, update_static_tracepoint): Update.
6886 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6887 * break-catch-syscall.c (print_it_catch_syscall): Update.
6888 * ada-tasks.c (print_ada_task_info): Update.
6889 * ada-lang.c (print_it_exception, print_mention_exception):
6890 Update.
6891
6b78c3f8
AB
68922019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6893
6894 PR breakpoints/24541
6895 * gdbarch.c: Regenerate.
6896 * gdbarch.h: Regenerate.
6897 * gdbarch.sh: Adjust return type and parameter types for
6898 'stap_adjust_register'.
6899 (i386_stap_adjust_register): Adjust signature and return new
6900 register name.
6901 * stap-probe.c (stap_parse_register_operand): Adjust use of
6902 'gdbarch_stap_adjust_register'.
6903
d72a9b85
TT
69042019-07-17 Tom Tromey <tromey@adacore.com>
6905
6906 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
6907 declare VEC.
6908 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
6909 std::vector.
6910 (struct s390_process_info): Add initializers.
6911 (s390_add_process): Use new.
6912 (s390_linux_nat_target::low_forget_process): Use delete.
6913 (s390_linux_nat_target::low_new_fork)
6914 (s390_linux_nat_target::stopped_by_watchpoint)
6915 (s390_linux_nat_target::low_prepare_to_resume)
6916 (s390_linux_nat_target::insert_watchpoint)
6917 (s390_linux_nat_target::insert_hw_breakpoint)
6918 (s390_linux_nat_target::remove_watchpoint)
6919 (s390_linux_nat_target::remove_hw_breakpoint): Update.
6920
206e6c58
JB
69212019-07-16 John Baldwin <jhb@FreeBSD.org>
6922
6923 * aarch64-fbsd-nat.c: Include regcache.h.
6924 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
6925 argument.
6926 (aarch64_fbsd_nat_target::fetch_registers)
6927 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
6928 variable.
6929 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
6930
cbde90f2
JB
69312019-07-16 John Baldwin <jhb@FreeBSD.org>
6932
6933 * fbsd-nat.c: Include gdbarch.h.
6934
07128006
TT
69352019-07-15 Tom Tromey <tromey@adacore.com>
6936
6937 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
6938
1f77b012
TT
69392019-07-15 Tom Tromey <tromey@adacore.com>
6940
6941 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
6942 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
6943 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
6944 * cli-out.c (cli_ui_out::do_field_int): New method.
6945 * ui-out.c (ui_out::field_unsigned): New method.
6946 * symfile.c (generic_load): Use field_unsigned.
6947 (print_transfer_performance): Likewise.
6948 * record-btrace.c (ui_out_field_uint): Remove.
6949 (btrace_call_history_insn_range, btrace_call_history): Use
6950 field_unsigned.
6951 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
6952 field_unsigned.
6953 * ui-out.h (class ui_out) <field_unsigned>: New method.
6954 <do_field_unsigned>: Likewise.
6955
33eca680
TT
69562019-07-15 Tom Tromey <tromey@adacore.com>
6957
6958 * mi/mi-main.c (list_available_thread_groups): Use field_string.
6959 * mi/mi-interp.c (mi_memory_changed): Use field_string.
6960 * target.c (flash_erase_command): Use field_string.
6961 * infrun.c (print_signal_received_reason): Use field_string.
6962 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
6963 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
6964 field_string.
6965 * ada-tasks.c (print_ada_task_info): Use field_string.
6966
ca8d69be
TT
69672019-07-15 Tom Tromey <tromey@adacore.com>
6968
6969 * target.c (flash_erase_command): Use field_core_addr.
6970 * symfile.c (generic_load): Use field_core_addr.
6971 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6972 Use field_core_addr.
6973 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
6974 field_core_addr.
6975
0d4e84ed
AB
69762019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6977
6978 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
6979 value if its desired type is smaller than a CORE_ADDR and signed.
6980
9a49df9d
AB
69812019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
6982
6983 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
6984 of changes to field names, and use new is_reference field to
6985 decide if a property is a reference or not.
6986 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
6987 field.
6988 (struct dwarf2_property_baton): Update header comment, rename
6989 'referenced_type' to 'property_type' and update comments.
6990 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
6991 default property type, store in property baton, update to take
6992 accound of renamed field.
6993 (read_func_scope): Update call to attr_to_dynamic_prop.
6994 (read_array_type): Likewise.
6995 (dwarf2_per_cu_addr_sized_int_type): New function.
6996 (read_subrange_index_type): Move type finding code to
6997 dwarf2_per_cu_addr_sized_int_type.
6998 (read_subrange_type): Update calls to attr_to_dynamic_prop.
6999 (dwarf2_per_cu_addr_type): New function.
7000 (set_die_type): Update calls to attr_to_dynamic_prop.
7001
b86352cf
AB
70022019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7003
7004 * dwarf2read.c (read_subrange_index_type): New function.
7005 (read_subrange_type): Move code into new function and call it.
7006 * gdbtypes.c (create_range_type): Add some asserts.
7007
603490bf
AB
70082019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7009
7010 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7011 update return statements.
7012 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7013 declaration, and update comment to match.
7014 * gdbtypes.c (resolve_dynamic_array): Update call to
7015 dwarf2_evaluate_property to match new return type.
7016
592f9d27
AB
70172019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7018
7019 * valarith.c (value_subscripted_rvalue): Change lowerbound
7020 parameter type from int to LONGEST.
7021 * value.h (value_subscripted_rvalue): Likewise in declaration.
7022
60cfcb20
AB
70232019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7024
7025 * cli/cli-utils.c (info_print_command_completer): New function.
7026 * cli/cli-utils.h: Add 'completer.h' include, and forward
7027 declaration for 'struct cmd_list_element'.
7028 (info_print_command_completer): Declare.
7029 * stack.c (_initialize_stack): Add completer for 'info locals' and
7030 'info args'.
7031 * symtab.c (_initialize_symtab): Add completer for 'info
7032 variables' and 'info functions'.
7033 * NEWS: Mention completion for additional info commands.
7034
b16507e0
AB
70352019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7036
7037 * cli/cli-utils.c (extract_info_print_args): Delete.
7038 (extract_arg_maybe_quoted): Delete.
7039 (info_print_options_defs): New variable.
7040 (make_info_print_options_def_group): New function.
7041 (extract_info_print_options): Define new function.
7042 * cli/cli-utils.h (extract_info_print_args): Delete.
7043 (struct info_print_options): New structure.
7044 (extract_info_print_options): Declare new function.
7045 * stack.c (info_locals_command): Update to use new
7046 extract_info_print_options, also add a header comment.
7047 (info_args_command): Likewise.
7048 * symtab.c (info_variables_command): Likewise.
7049 (info_functions_command): Likewise.
7050
021d8588
AB
70512019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7052
7053 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7054 to extract string arguments.
7055 * common/common-utils.c (extract_string_maybe_quoted): New function.
7056 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7057
b777eb6d
TT
70582019-07-11 Tom Tromey <tromey@adacore.com>
7059
7060 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7061 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7062 * top.h (gdbinit): Don't declare.
7063 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7064 into...
7065 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7066 * top.c (gdb_init): Don't call init_cli_cmds.
7067 (gdbinit): Remove.
7068 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7069
72ee03ff
TT
70702019-07-11 Tom Tromey <tromey@adacore.com>
7071
7072 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7073 after it has been moved.
7074
00db9531
SM
70752019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7076
7077 * valops.c (value_must_coerce_to_target): Change return type to
7078 bool.
7079 * value.h (value_must_coerce_to_target): Likewise.
7080
f2478a7e
SM
70812019-07-10 Simon Marchi <simon.marchi@efficios.com>
7082
7083 * breakpoint.c (is_hardware_watchpoint): Remove
7084 forward-declaration.
7085 (is_masked_watchpoint): Change return type to bool.
7086 (is_tracepoint): Likewise.
7087 (is_breakpoint): Likewise.
7088 (is_hardware_watchpoint): Likewise.
7089 (is_watchpoint): Likewise.
7090 (is_no_memory_software_watchpoint): Likewise.
7091 (is_catchpoint): Likewise.
7092 (breakpoint_1): Make FILTER parameter's return type bool.
7093 is_masked_watchpoint): Change return type to bool.
7094 (save_breakpoints): Make FILTER parameter's return type bool.
7095 * breakpoint.h (is_breakpoint): Change return type to bool.
7096 (is_watchpoint): Likewise.
7097 (is_catchpoint): Likewise.
7098 (is_tracepoint): Likewise.
7099
0d12e84c
TT
71002019-07-10 Tom Tromey <tom@tromey.com>
7101
7102 * defs.h: Don't include gdbarch.h.
7103 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7104 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7105 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7106 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7107 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7108 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7109 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7110 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7111 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7112 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7113 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7114 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7115 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7116 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7117 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7118 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7119 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7120 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7121 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7122 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7123 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7124 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7125 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7126 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7127 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7128 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7129 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7130
f06f1252
TT
71312019-07-10 Tom Tromey <tromey@adacore.com>
7132
7133 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7134 * breakpoint.c (init_ada_exception_breakpoint): Register as
7135 bp_catchpoint.
7136 (print_one_breakpoint_location, print_one_breakpoint): Use
7137 is_ada_exception_catchpoint.
7138 * ada-lang.c (class ada_catchpoint_location): Pass
7139 bp_loc_software_breakpoint to bp_location constructor.
7140 (is_ada_exception_catchpoint): New function.
7141
7a5d944b
TT
71422019-07-10 Tom Tromey <tromey@adacore.com>
7143
7144 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7145 VEC.
7146 (struct arm_exidx_entry): New method operator<.
7147 (struct arm_exidx_data) <section_maps>: Change type.
7148 (arm_exidx_data_free): Remove.
7149 (arm_exidx_data_key): Change type. Move lower.
7150 (arm_exidx_new_objfile): Update.
7151 (arm_compare_exidx_entries): Remove.
7152 (arm_find_exidx_entry, _initialize_arm_tdep)
7153
48c66e1d
TT
71542019-07-10 Tom Tromey <tromey@adacore.com>
7155
7156 * solib-spu.c (ocl_program_data_key): Change type.
7157 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7158 Update.
7159
a269fbf1
TT
71602019-07-10 Tom Tromey <tromey@adacore.com>
7161
7162 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7163 (struct solib_aix_inferior_data) <library_list>: Change type.
7164 (solib_aix_inferior_data_handle): Change type.
7165 (get_solib_aix_inferior_data): Update.
7166 (solib_aix_free_library_list): Remove.
7167 (library_list_start_library): Update.
7168 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7169 return type.
7170 (solib_aix_get_library_list)
7171 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7172 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7173
c294730c
TT
71742019-07-10 Tom Tromey <tromey@adacore.com>
7175
7176 * solib-dsbt.c (struct dsbt_info): Add initializers.
7177 (solib_dsbt_pspace_data): Change type.
7178 (dsbt_pspace_data_cleanup): Remove.
7179 (get_dsbt_info, _initialize_dsbt_solib): Update.
7180
9d52077d
TT
71812019-07-10 Tom Tromey <tromey@adacore.com>
7182
7183 * spu-tdep.c (spu_overlay_data): Change type.
7184 (spu_get_overlay_table, spu_overlay_new_objfile)
7185 (_initialize_spu_tdep): Update.
7186
22a20dca
TT
71872019-07-10 Tom Tromey <tromey@adacore.com>
7188
7189 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7190 destructor.
7191 (dbx_objfile_data_key): Change type and declare later.
7192 (DBX_SYMFILE_INFO): Rewrite.
7193 * dbxread.c (dbx_objfile_data_key): Change type.
7194 (dbx_symfile_init): Update.
7195 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7196 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7197 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7198
cb60f420
TT
71992019-07-10 Tom Tromey <tromey@adacore.com>
7200
7201 * jit.c (jit_program_space_key): Change type. Move lower.
7202 (get_jit_program_space_data): Update.
7203 (jit_program_space_data_cleanup): Remove.
7204 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7205 Update.
7206 (struct jit_program_space_data): Add initializers.
7207
51df2ae3
TT
72082019-07-10 Tom Tromey <tromey@adacore.com>
7209
7210 * solib-darwin.c (struct darwin_info): Add initializers.
7211 (solib_darwin_pspace_data): Change type.
7212 (darwin_pspace_data_cleanup): Remove.
7213 (get_darwin_info, _initialize_darwin_solib): Update.
7214
18101a35
TT
72152019-07-10 Tom Tromey <tromey@adacore.com>
7216
7217 * remote-sim.c (struct sim_inferior_data): Add initializers,
7218 constructor, and destructor.
7219 (sim_inferior_data_key): Change type. Move lower.
7220 (check_for_duplicate_sim_descriptor): Update.
7221 (get_sim_inferior_data): Use new. Update.
7222 (~sim_inferior_data_cleanup): Rename from
7223 sim_inferior_data_cleanup. Simplify.
7224 (gdbsim_close_inferior, simulator_command)
7225 (sim_command_completer, _initialize_remote_sim): Update.
7226 (next_pid, INITIAL_PID): Move earlier.
7227
05b08ac1
TT
72282019-07-10 Tom Tromey <tromey@adacore.com>
7229
7230 * python/python-internal.h (create_thread_object): Return
7231 gdbpy_ref.
7232 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7233 * python/py-inferior.c (struct threadlist_entry): Add
7234 constructor.
7235 <thread_obj>: Now a gdbpy_ref.
7236 (thread_to_thread_object): Update.
7237 (add_thread_object): Use new.
7238 (delete_thread_object): Use delete.
7239 (infpy_threads): Update.
7240 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7241 GIL.
7242
32372d80
TT
72432019-07-10 Tom Tromey <tromey@adacore.com>
7244
7245 * valops.c (value_cast): Specialize error message for Ada.
7246
5c458ae8
SM
72472019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7248
7249 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7250
4c462cb0
SM
72512019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7252
7253 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7254 bpstat_should_step): Return bool, adjust comments.
7255 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7256 bpstat_should_step): Likewise.
7257
89abbcc2
AH
72582019-07-10 Alan Hayward <alan.hayward@arm.com>
7259
7260 * features/Makefile: Use feature target descriptions for Arm.
7261 * features/arm/arm-core.c: Generate new file.
7262 * features/arm/arm-fpa.c: Likewise.
7263 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7264 * features/arm/arm-m-profile.c: Likewise.
7265 * features/arm/arm-vfpv2.c: Likewise.
7266 * features/arm/arm-vfpv3.c: Likewise.
7267 * features/arm/xscale-iwmmxt.c: Likewise.
7268 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7269
166a82be
AH
72702019-07-10 Alan Hayward <alan.hayward@arm.com>
7271
7272 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7273 ptrace earlier.
7274
9fb4c7e9
AH
72752019-07-10 Alan Hayward <alan.hayward@arm.com>
7276
7277 * features/aarch64-pauth.c: Regenerate.
7278
e2d0f980
SM
72792019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7280
7281 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7282 bool.
7283 (bpstat_what): Use false instead of 0.
7284
a38118e5
PA
72852019-07-09 Pedro Alves <palves@redhat.com>
7286
7287 * break-catch-throw.c (is_exception_catchpoint): New.
7288 * breakpoint.c (print_one_breakpoint_location): New parameter
7289 'raw_loc'. Handle it. Use
7290 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7291 looking at the breakpoint's type.
7292 (print_one_breakpoint): If handling "maint info breakpoints", also
7293 print locations of exception catchpoints.
7294 * breakpoint.h (is_exception_catchpoint): Declare.
7295
cb1e4e32
PA
72962019-07-09 Pedro Alves <palves@redhat.com>
7297
7298 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7299 "addr" field.
7300 (allocate_location_exception_catchpoint): New.
7301 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7302 (initialize_throw_catchpoint_ops): Install
7303 allocate_location_exception_catchpoint as allocate_location
7304 method.
7305 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7306 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7307 bp_loc_other.
7308 (breakpoint_address_is_meaningful): Delete.
7309 (bl_address_is_meaningful): New.
7310 (breakpoint_locations_match): Adjust comment.
7311 (bp_location_from_bp_type): New, factored out of...
7312 (bp_location::bp_location(breakpoint *)): ... this.
7313 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7314 factored out of...
7315 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7316 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7317 breakpoint_address_is_meaningful.
7318 (bp_locations_compare): Adjust comment.
7319 (update_global_location_list): Use bl_address_is_meaningful
7320 instead of breakpoint_address_is_meaningful.
7321 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7322 explicit.
7323 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7324 * python/py-breakpoint.c (bppy_get_location): No longer check
7325 whether location is null.
7326
b58a68fe
PA
73272019-07-09 Pedro Alves <palves@redhat.com>
7328
7329 PR c++/15468
7330 * breakpoint.c (print_one_breakpoint_location): Remove
7331 single-location assert.
7332
268a13a5
TT
73332019-07-09 Tom Tromey <tom@tromey.com>
7334
7335 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7336 * configure: Rebuild.
7337 * configure.ac: Change common to gdbsupport.
7338 * gdbsupport: Rename from common.
7339 * acinclude.m4: Change common to gdbsupport.
7340 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7341 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7342 gdbsupport.
7343 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7344 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7345 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7346 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7347 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7348 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7349 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7350 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7351 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7352 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7353 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7354 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7355 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7356 coff-pe-read.c, command.h, compile/compile-c-support.c,
7357 compile/compile-c.h, compile/compile-cplus-symbols.c,
7358 compile/compile-cplus-types.c, compile/compile-cplus.h,
7359 compile/compile-loc2c.c, compile/compile.c, completer.c,
7360 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7361 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7362 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7363 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7364 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7365 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7366 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7367 features/aarch64-core.c, features/aarch64-fpu.c,
7368 features/aarch64-pauth.c, features/aarch64-sve.c,
7369 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7370 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7371 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7372 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7373 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7374 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7375 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7376 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7377 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7378 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7379 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7380 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7381 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7382 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7383 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7384 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7385 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7386 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7387 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7388 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7389 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7390 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7391 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7392 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7393 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7394 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7395 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7396 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7397 minsyms.c, mips-linux-tdep.c, namespace.h,
7398 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7399 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7400 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7401 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7402 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7403 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7404 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7405 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7406 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7407 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7408 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7409 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7410 procfs.c, producer.c, progspace.h, psymtab.h,
7411 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7412 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7413 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7414 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7415 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7416 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7417 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7418 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7419 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7420 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7421 target-memory.c, target.c, target.h, target/waitstatus.c,
7422 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7423 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7424 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7425 unittests/array-view-selftests.c,
7426 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7427 unittests/common-utils-selftests.c,
7428 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7429 unittests/format_pieces-selftests.c,
7430 unittests/function-view-selftests.c,
7431 unittests/lookup_name_info-selftests.c,
7432 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7433 unittests/mkdir-recursive-selftests.c,
7434 unittests/observable-selftests.c,
7435 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7436 unittests/parse-connection-spec-selftests.c,
7437 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7438 unittests/scoped_fd-selftests.c,
7439 unittests/scoped_mmap-selftests.c,
7440 unittests/scoped_restore-selftests.c,
7441 unittests/string_view-selftests.c, unittests/style-selftests.c,
7442 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7443 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7444 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7445 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7446 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7447 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7448
5b0e2db4
AB
74492019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7450
7451 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7452 bool value.
7453 (decode_digits_ordinary): Set explicit_line field in sal.
7454 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7455 symtab_and_line that was set on an explicit line number in
7456 assembler code. Do always update the recorded symtab and line if
7457 we do skip the prologue.
7458
0ba852ab
AB
74592019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7460
7461 * breakpoint.c (set_breakpoint_location_function): Remove
7462 explicit_loc parameter.
7463 (momentary_breakpoint_from_master): Update call to
7464 set_breakpoint_location_function.
7465 (add_location_to_breakpoint): Likewise.
7466
b3a7d171
AB
74672019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7468
7469 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7470 required features based on default bfd type when no specific bfd
7471 is present.
7472
1f6f6e21
PW
74732019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7474
7475 * NEWS: Mention that GDB printf and eval commands can now print
7476 C-style and Ada-style convenience var strings without
7477 calling the inferior.
7478 * printcmd.c (printf_c_string): Locally print GDB internal var
7479 instead of transiting via the inferior.
7480 (printf_wide_c_string): Likewise.
7481
74822019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7483
5862c886 7484 PR breakpoints/25011
ea142fbf
AH
7485 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7486
0598af48
TT
74872019-07-04 Tom Tromey <tom@tromey.com>
7488
7489 PR tui/24724:
7490 * tui/tui-winsource.c (tui_clear_source_content): Update.
7491 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7492 (tui_update_breakpoint_info): Update.
7493 (tui_set_exec_info_content): Update.
7494 * tui/tui-source.c (tui_set_source_content_nil): Update.
7495 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7496 has_break.
7497 * tui/tui-data.h (enum tui_bp_flag): New.
7498 (tui_bp_flags): New enum flags type.
7499 (struct tui_source_element) <break_mode>: Change type. Rename
7500 from has_break.
7501 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7502 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7503 constants.
7504 * tui/tui-winsource.h: Fix comment.
7505
350fab54
AH
75062019-07-04 Alan Hayward <alan.hayward@arm.com>
7507
7508 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7509 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7510 (store_fpregs_to_thread)
7511 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7512 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7513 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7514 (IWMMXT_REGS_SIZE): Add define.
7515 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7516 (fetch_vfp_regs, store_vfp_regs)
7517 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7518 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7519
f0452268
AH
75202019-07-04 Alan Hayward <alan.hayward@arm.com>
7521
7522 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7523 defines.
7524 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7525 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7526 (ARM_INT_REGISTER_SIZE): ...to this.
7527 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7528 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7529 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7530 (arm_linux_collect_gregset, supply_nwfpe_register)
7531 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7532 defines.
7533 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7534 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7535 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7536 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7537 (arm_return_in_memory, arm_store_return_value)
7538 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7539 (arm_record_ld_st_multiple): Likewise.
7540 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7541 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7542
e935475c
AH
75432019-07-04 Alan Hayward <alan.hayward@arm.com>
7544
7545 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7546 AARCH64_DISPLACED_MODIFIED_INSNS.
7547 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7548 (aarch64_displaced_step_copy_insn): Likewise.
7549 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7550 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7551 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7552 ARM_DISPLACED_MODIFIED_INSNS.
7553 * arm-tdep.c (arm_gdbarch_init): Likewise.
7554 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7555 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7556 (struct arm_displaced_step_closure): Use
7557 ARM_DISPLACED_MODIFIED_INSNS.
7558
df0bb381
AH
75592019-07-04 Alan Hayward <alan.hayward@arm.com>
7560
7561 * features/Makefile: Remove unused xml files.
7562 * features/aarch64.xml: Remove.
7563 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7564 * features/i386/amd64-avx-avx512.xml: Remove.
7565 * features/i386/amd64-avx-linux.xml: Remove.
7566 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7567 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7568 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7569 * features/i386/amd64-avx-mpx.xml: Remove.
7570 * features/i386/amd64-avx.xml: Remove.
7571 * features/i386/amd64-linux.xml: Remove.
7572 * features/i386/amd64-mpx-linux.xml: Remove.
7573 * features/i386/amd64-mpx.xml: Remove.
7574 * features/i386/amd64.xml: Remove.
7575 * features/i386/i386-avx-avx512-linux.xml: Remove.
7576 * features/i386/i386-avx-avx512.xml: Remove.
7577 * features/i386/i386-avx-linux.xml: Remove.
7578 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7579 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7580 * features/i386/i386-avx-mpx-linux.xml: Remove.
7581 * features/i386/i386-avx-mpx.xml: Remove.
7582 * features/i386/i386-avx.xml: Remove.
7583 * features/i386/i386-linux.xml: Remove.
7584 * features/i386/i386-mmx-linux.xml: Remove.
7585 * features/i386/i386-mmx.xml: Remove.
7586 * features/i386/i386-mpx-linux.xml: Remove.
7587 * features/i386/i386-mpx.xml: Remove.
7588 * features/i386/i386.xml: Remove.
7589 * features/i386/x32-avx-avx512-linux.xml: Remove.
7590 * features/i386/x32-avx-linux.xml: Remove.
7591 * features/i386/x32-linux.xml: Remove.
7592
edd6266a
AH
75932019-07-04 Alan Hayward <alan.hayward@arm.com>
7594
7595 * regformats/aarch64.dat: Remove.
7596 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7597 * regformats/i386/amd64-avx-linux.dat: Remove.
7598 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7599 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7600 * regformats/i386/amd64-linux.dat: Remove.
7601 * regformats/i386/amd64-mpx-linux.dat: Remove.
7602 * regformats/i386/amd64.dat: Remove.
7603 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7604 * regformats/i386/i386-avx-linux.dat: Remove.
7605 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7606 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7607 * regformats/i386/i386-linux.dat: Remove.
7608 * regformats/i386/i386-mmx-linux.dat: Remove.
7609 * regformats/i386/i386-mpx-linux.dat: Remove.
7610 * regformats/i386/i386.dat: Remove.
7611 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7612 * regformats/i386/x32-avx-linux.dat: Remove.
7613 * regformats/i386/x32-linux.dat: Remove.
7614
2b40fda7
AH
76152019-07-04 Alan Hayward <alan.hayward@arm.com>
7616
7617 * aarch64-tdep.c: Remove xml self tests.
7618 * amd64-linux-tdep.c: Likewise.
7619 * amd64-tdep.c: Likewise.
7620 * i386-linux-tdep.c: Likewise.
7621 * i386-tdep.c: Likewise.
7622
5f4ba3e7
PA
76232019-07-03 Pedro Alves <palves@redhat.com>
7624
7625 PR cli/24732
7626 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7627 (pipe_cmd_option_defs): New.
7628 (make_pipe_cmd_options_def_group): New.
7629 (pipe_command): Use gdb::option::process_options.
7630 (pipe_command_completer): New function.
7631 (_initialize_cli_cmds): Install completer for "pipe" command.
7632
3d9be6f5
PA
76332019-07-03 Pedro Alves <palves@redhat.com>
7634
7635 * cli/cli-option.c (union option_value) <string>: New field.
7636 (struct option_def_and_value): Add ctor, move ctor, dtor and
7637 use DISABLE_COPY_AND_ASSIGN.
7638 (option_def_and_value::clear_value): New.
7639 (parse_option, save_option_value_in_ctx, get_val_type_str)
7640 (add_setshow_cmds_for_options): Handle var_string.
7641 * cli-option.h (union option_def::var_address) <string>: New
7642 field.
7643 (struct string_option_def): New.
7644 * maint-test-options.c (struct test_options_opts): Add default
7645 ctor and use DISABLE_COPY_AND_ASSIGN.
7646 <string_opt>: New field.
7647 (test_options_opts::~test_options_opts): New.
7648 (test_options_opts::dump): Also dump "-string".
7649 (test_options_option_defs): Install "string.
7650
41fc454c
PA
76512019-07-03 Pedro Alves <palves@redhat.com>
7652
7653 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7654 option_value with a null enumeration.
7655 (complete_options): Save the option values in the context.
7656 (save_option_value_in_ctx): New, factored out from ...
7657 (process_options): ... here.
7658 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7659 of the function.
7660 * maint-test-options.c (test_options_opts::dump): New, factored
7661 out from ...
7662 (maintenance_test_options_command_mode): ... here.
7663 (maintenance_test_options_command_completion_result): Delete.
7664 (maintenance_test_options_command_completion_text): Update
7665 comment.
7666 (maintenance_show_test_options_completion_result): Change
7667 prototype. Just print
7668 maintenance_test_options_command_completion_text.
7669 (save_completion_result): New.
7670 (maintenance_test_options_completer_mode): Pass options context to
7671 complete_options, and then save a dump.
7672 (_initialize_maint_test_options): Use add_cmd to install "maint
7673 show test-options-completion-result".
7674
fdbc9870
PA
76752019-07-03 Pedro Alves <palves@redhat.com>
7676
7677 * NEWS (New commands): Mention "with" and "maint with".
7678 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7679 (with_command, with_command_completer): New.
7680 (pipe_command): Adjust to new repeat_previous
7681 interface.
7682 (_initialize_cli_cmds): Install the "with" command and its "w"
7683 alias.
7684 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7685 declarations.
7686 * cli/cli-setshow.c (parse_cli_var_uinteger)
7687 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7688 argument strings for all var_types.
7689 (get_setshow_command_value_string): New, factored out from ...
7690 (do_show_command): ... this.
7691 * cli/cli-setshow.h: Include <string>.
7692 (get_setshow_command_value_string): Declare.
7693 * command.h (repeat_previous): Now returns const char *. Adjust
7694 comment.
7695 * maint.c: Include "cli/cli-cmds.h".
7696 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7697 (_initialize_maint_cmds): Register the "maintenance with" command.
7698 * top.c (repeat_previous): Move bits from pipe_command here:
7699 Return the saved command line, if any; error out if there's no
7700 command to relaunch.
7701
c6ac8931
PA
77022019-07-03 Pedro Alves <palves@redhat.com>
7703
7704 * NEWS (New commands): Mention "maint set/show test-settings"
7705 instead of "maint test-settings".
7706 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7707 (maintenance_test_settings_set_list): Rename to ...
7708 (maintenance_set_test_settings_list): ... this.
7709 (maintenance_test_settings_show_list): Rename to ...
7710 (maintenance_show_test_settings_list): ... this.
7711 (maintenance_test_settings_cmd): Delete.
7712 (maintenance_test_settings_set_cmd): ...
7713 (maintenance_set_test_settings_cmd): ... this.
7714 (maintenance_test_settings_show_cmd): ...
7715 (maintenance_show_test_settings_cmd): ... this.
7716 (maintenance_test_settings_show_value_cmd):
7717 (maintenance_show_test_settings_value_cmd): ... this.
7718 (_initialize_maint_test_settings): No longer install the "maint
7719 test-settings" prefix command. Rename "maint test-settings set"
7720 to "maint set test-settings", and "maint test-settings show" to
7721 "maint show test-settings". Adjust all subcommands.
7722
d1fcf2fd
PA
77232019-07-03 Pedro Alves <palves@redhat.com>
7724
7725 * maint-test-settings.c: Fix file's intro comment. Replace all
7726 references to "test-options" with references to "test-settings",
7727 in comments.
7728
970f9d09
PA
77292019-07-03 Pedro Alves <palves@redhat.com>
7730
7731 * maint-test-settings.c (maintenance_test_settings_xxx)
7732 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7733 New.
7734 (maintenance_test_settings_enums): Use them.
7735 (maintenance_test_settings_enum): Default to
7736 maintenance_test_settings_xxx.
7737 (_initialize_maint_test_settings): Initialize
7738 MAINTENANCE_TEST_SETTINGS_FILENAME.
7739
f3869b1a
SM
77402019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7741
7742 * breakpoint.h (remove_breakpoints_inf): Change return type to
7743 void, move function documentation here.
7744 * breakpoint.c (remove_breakpoints_inf): Change return type to
7745 void, move function documentation to header.
7746
54d66006
PA
77472019-07-02 Pedro Alves <palves@redhat.com>
7748
7749 * NEWS (Completion improvements): Mention "info threads".
7750 * thread.c (struct info_threads_opts, info_threads_option_defs)
7751 (make_info_threads_options_def_group): New.
7752 (info_threads_command): Use gdb::option::process_options.
7753 (info_threads_command_completer): New.
7754 (_initialize_thread): Use gdb::option::build_help to build the
7755 help text for "info threads".
7756
854f6088
SM
77572019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7758
7759 * defs.h (generic_load): Move from here...
7760 * symfile.h (generic_load): ... to here. Rename name parameter
7761 to args.
7762 * symfile.c (generic_load): Add comment.
7763
54ee4252
TT
77642019-07-01 Tom Tromey <tromey@adacore.com>
7765
7766 * dwarf2read.c
7767 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7768 declaration of without_params. Fix formatting.
7769
65392b3e
TT
77702019-07-01 Tom Tromey <tromey@adacore.com>
7771
7772 * ada-exp.y (find_primitive_type): Update.
7773 * ada-lang.h (ada_lookup_symbol): Update.
7774 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7775 parameter.
7776 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7777
7d7571f0
SDJ
77782019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7779
7780 PR breakpoints/24541
7781 * gdbarch.c: Regenerate.
7782 * gdbarch.h: Regenerate.
7783 * gdbarch.sh: Add 'stap_adjust_register'.
7784 * i386-tdep.c: Include '<unordered_set>'.
7785 (i386_stap_adjust_register): New function.
7786 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7787 * stap-probe.c (stap_parse_register_operand): Call
7788 'gdbarch_stap_adjust_register'.
7789
5af5392a
SDJ
77902019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7791
7792 PR python/24742
7793 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7794 * python/python.c (do_start_initialization): Use 'xmalloc'
7795 instead of 'PyMem_Malloc'.
7796
10d06d82
TT
77972019-06-28 Tom Tromey <tromey@adacore.com>
7798
7799 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7800 for Ada.
7801
1b7f24cd
TT
78022019-06-27 Tom Tromey <tromey@adacore.com>
7803
7804 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7805 objfile_key.
7806 (arm_find_mapping_symbol, arm_record_special_symbol)
7807 (_initialize_arm_tdep): Update.
7808 (arm_objfile_data_free): Remove.
7809
3d507ff2
TT
78102019-06-27 Tom Tromey <tromey@adacore.com>
7811
7812 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7813 to cp_print_static_field.
7814
762c164d
TT
78152019-06-26 Tom Tromey <tromey@adacore.com>
7816
7817 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7818 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7819 declare.
7820
aa2f9bcf
AH
78212019-06-26 Alan Hayward <alan.hayward@arm.com>
7822
7823 * features/aarch64-core.c (create_feature_aarch64_core):
7824 Regenerate.
7825 * features/aarch64-core.xml: Add cpsr flags.
7826
3426ae57
AH
78272019-06-26 Alan Hayward <alan.hayward@arm.com>
7828
7829 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7830 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7831
4838e44c
SM
78322019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7833
7834 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7835 field.
7836 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7837 use.
7838 (arm_record_special_symbol): Don't insert new symbol in sorted
7839 position, push it at the end.
7840
54cc7474
SM
78412019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7842
7843 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7844 (arm_mapping_symbol_s): Remove.
7845 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7846 (arm_mapping_symbol_vec): New typedef.
7847 (struct arm_per_objfile): Add constructor.
7848 <section_maps>: Change type to
7849 std::unique_ptr<arm_mapping_symbol_vec[]>.
7850 (arm_compare_mapping_symbols): Remove.
7851 (arm_find_mapping_symbol): Adjust to section_maps type change.
7852 (arm_objfile_data_free): Call delete on arm_per_objfile.
7853 (arm_record_special_symbol): Adjust to section_maps type change.
7854 Allocate arm_per_objfile with new.
7855
b65b566c
PW
78562019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7857
7858 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7859 with the command prefix.
7860
c2fc64f5
TT
78612019-06-25 Tom Tromey <tom@tromey.com>
7862
7863 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7864 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7865
fb54fa76
TT
78662019-06-25 Tom Tromey <tom@tromey.com>
7867
7868 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7869 type.
7870 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7871 protected.
7872
f7952c57
TT
78732019-06-25 Tom Tromey <tom@tromey.com>
7874
7875 * tui/tui-winsource.c
7876 (tui_source_window_base::set_is_exec_point_at): Add check against
7877 LOA_ADDRESS.
7878
17568d78
TT
78792019-06-25 Tom Tromey <tom@tromey.com>
7880
7881 * tui/tui-source.c (tui_set_source_content): Don't check before
7882 xfree.
7883 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7884
53e7cdba
TT
78852019-06-25 Tom Tromey <tom@tromey.com>
7886
7887 * tui/tui-winsource.h (tui_update_source_window_as_is)
7888 (tui_alloc_source_buffer, tui_line_is_displayed)
7889 (tui_addr_is_displayed): Change type of win_info.
7890 * tui/tui-winsource.c (tui_update_source_window_as_is)
7891 (tui_clear_source_content, tui_show_source_line)
7892 (tui_show_source_content, tui_source_window_base::refill)
7893 (tui_source_window_base::set_is_exec_point_at)
7894 (tui_source_window_base::set_is_exec_point_at)
7895 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
7896 (tui_alloc_source_buffer, tui_line_is_displayed)
7897 (tui_addr_is_displayed): Change type of win_info. Update.
7898 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
7899 (tui_source_window_base::do_make_visible_with_new_height):
7900 Update.
7901 * tui/tui-source.c (tui_set_source_content)
7902 (tui_set_source_content_nil)
7903 (tui_source_window::do_scroll_vertical): Update.
7904 * tui/tui-layout.c (show_layout): Update.
7905 * tui/tui-disasm.c (tui_set_disassem_content)
7906 (tui_disasm_window::do_scroll_vertical): Update.
7907 * tui/tui-data.h (tui_win_content): Remove.
7908 (struct tui_gen_win_info) <content, content_size>: Remove.
7909 (struct tui_source_element): Add initializers and destructor.
7910 (union tui_which_element, struct tui_win_element): Remove.
7911 (struct tui_source_window_base) <content>: New field.
7912 (struct tui_data_window): Remove destructor.
7913 (tui_alloc_content, tui_free_win_content)
7914 (tui_free_all_source_wins_content): Don't declare.
7915 * tui/tui-data.c (tui_initialize_static_data): Update.
7916 (init_content_element, tui_alloc_content): Remove.
7917 (~tui_gen_win_info): Update.
7918 (~tui_data_window, tui_free_all_source_wins_content)
7919 (tui_free_win_content, free_content, free_content_elements):
7920 Remove.
7921
7908abbf
TT
79222019-06-25 Tom Tromey <tom@tromey.com>
7923
7924 * tui/tui-winsource.h (tui_clear_source_content)
7925 (tui_erase_source_content, tui_show_source_content): Change type
7926 of win_info.
7927 * tui/tui-winsource.c (tui_clear_source_content)
7928 (tui_erase_source_content, tui_show_source_content): Change type
7929 of win_info.
7930 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
7931 * tui/tui-source.h (tui_set_source_content_nil): Change type of
7932 win_info.
7933 * tui/tui-source.c (tui_set_source_content_nil): Change type of
7934 win_info.
7935 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
7936
02c28df0
TT
79372019-06-25 Tom Tromey <tom@tromey.com>
7938
7939 * tui/tui-winsource.c (tui_clear_source_content)
7940 (tui_source_window_base::set_is_exec_point_at): Update.
7941 * tui/tui-source.c (tui_set_source_content_nil): Update.
7942 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
7943 a bool.
7944 * tui/tui-data.c (init_content_element): Update.
7945
6658b1bf
TT
79462019-06-25 Tom Tromey <tom@tromey.com>
7947
7948 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
7949 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
7950 * tui/tui-layout.c (init_and_make_win): Update.
7951 * tui/tui.h (enum tui_win_type): Update.
7952 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
7953 tui_win_is_auxillary.
7954 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
7955 tui_win_is_auxillary.
7956
21e1c91e
TT
79572019-06-25 Tom Tromey <tom@tromey.com>
7958
7959 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
7960 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
7961 (tui_delete_data_content_windows, tui_display_all_data)
7962 (tui_data_window::do_scroll_vertical, tui_display_data_from):
7963 Update.
7964 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
7965 * tui/tui-regs.c (tui_last_regs_line_no)
7966 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
7967 (tui_show_registers): Update.
7968 (tui_show_register_group): Return void. Update.
7969 (tui_display_registers_from, tui_display_reg_element_at_line)
7970 (tui_display_registers_from_line, tui_check_register_values):
7971 Update.
7972 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
7973 member.
7974 (struct tui_data_window) <regs_content>: Now a std::vector.
7975 <regs_content_count>: Remove.
7976 (tui_add_content_elements, tui_free_data_content): Don't declare.
7977 * tui/tui-data.c (tui_data_window::clear_detail): Update.
7978 (init_content_element): Remove DATA_WIN case. Add assert.
7979 (tui_add_content_elements): Remove.
7980 (tui_data_window): Update.
7981 (tui_free_data_content): Remove.
7982 (free_content_elements): Remove DATA_WIN case.
7983
115ac53b
TT
79842019-06-25 Tom Tromey <tom@tromey.com>
7985
7986 * tui/tui-data.c (tui_data_item_window): Update.
7987 * tui/tui-windata.h (tui_check_data_values): Don't declare.
7988 * tui/tui-windata.c (tui_display_all_data)
7989 (tui_display_data_from_line): Update.
7990 (tui_check_data_values): Remove.
7991 * tui/tui-regs.c (tui_show_register_group)
7992 (tui_display_reg_element_at_line): Update.
7993 * tui/tui-hooks.c (tui_register_changed)
7994 (tui_refresh_frame_and_register_information): Call
7995 tui_check_register_values.
7996 * tui/tui-data.h (struct tui_data_window) <data_content,
7997 data_content_count, data_type>: Remove.
7998 (enum tui_data_type): Remove.
7999
8000 * tui/tui-data.c (tui_data_window::clear_detail)
8001 (~tui_data_window): Update.
8002
eaf9738b
TT
80032019-06-25 Tom Tromey <tom@tromey.com>
8004
8005 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8006 declare.
8007 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8008 Rename from tui_first_data_item_displayed. Update.
8009 (tui_data_window::refresh_all)
8010 (tui_data_window::do_scroll_vertical): Update.
8011 * tui/tui-data.h (struct tui_data_window)
8012 <first_data_item_displayed>: Declare new method.
8013
31ca4723
TT
80142019-06-25 Tom Tromey <tom@tromey.com>
8015
8016 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8017 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8018 contents...
8019 (tui_initialize_static_data): ...here.
8020
41bcff7f
TT
80212019-06-25 Tom Tromey <tom@tromey.com>
8022
8023 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8024 (tui_display_registers_from, tui_check_register_values): Update.
8025 (tui_display_register): Remove win_info parameter; update.
8026 (tui_get_register): Change type of parameters.
8027 * tui/tui-data.h (struct tui_data_element): Remove.
8028 (union tui_which_element) <data>: Remove.
8029 <data_window>: Change type.
8030 (struct tui_data_item_window): New.
8031 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8032 case. Add assert.
8033 (~tui_data_item_window): New destructor.
8034 (free_content_elements): Remove DATA_ITEM_WIN case.
8035
d2802c33
TT
80362019-06-25 Tom Tromey <tom@tromey.com>
8037
8038 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8039 Remove.
8040
dd835f8b
TT
80412019-06-25 Tom Tromey <tom@tromey.com>
8042
8043 * tui/tui-data.h (struct tui_command_element): Remove.
8044 (union tui_which_element) <command>: Remove.
8045 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8046 assert.
8047 (free_content_elements): Remove CMD_WIN case.
8048
bd7db367
TT
80492019-06-25 Tom Tromey <tom@tromey.com>
8050
8051 * tui/tui-layout.c (tui_set_layout): Update.
8052 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8053 * tui/tui-data.c (layout_def): Update.
8054
3add462f
TT
80552019-06-25 Tom Tromey <tom@tromey.com>
8056
8057 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8058 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8059 (tui_source_window_base::set_new_height): Update.
8060 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8061 Update.
8062 (tui_set_locator_fullname, tui_set_locator_info)
8063 (tui_show_frame_info): Update.
8064 * tui/tui-source.c (tui_set_source_content)
8065 (tui_source_is_displayed): Update.
8066 * tui/tui-layout.c (show_source_disasm_command, show_data)
8067 (show_source_or_disasm_and_command): Update.
8068 * tui/tui-disasm.c (tui_set_disassem_content)
8069 (tui_get_begin_asm_address): Update.
8070 * tui/tui-data.h (struct tui_locator_element): Remove.
8071 (union tui_which_element) <locator>: Remove.
8072 (struct tui_locator_window): New.
8073 (tui_locator_win_info_ptr): Change return type.
8074 * tui/tui-data.c (_locator): Change type.
8075 (tui_locator_win_info_ptr): Change return type.
8076 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8077 (tui_alloc_content): Add assert.
8078
489e9d8b
TT
80792019-06-25 Tom Tromey <tom@tromey.com>
8080
8081 * tui/tui-winsource.c
8082 (tui_exec_info_window::maybe_allocate_content): New method.
8083 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8084 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8085 (make_source_or_disasm_window): Add cast.
8086 * tui/tui-data.h (union tui_which_element) <simple_string>:
8087 Remove.
8088 (struct tui_source_info): New.
8089 (struct tui_source_window_base) <execution_info>: Change type.
8090 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8091 case, and add assert.
8092 (tui_alloc_content): Add assert.
8093
c3fabb7d
TT
80942019-06-25 Tom Tromey <tom@tromey.com>
8095
8096 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8097 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8098 * tui/tui-data.c (tui_alloc_win_info): Remove.
8099
bbc228ee
TT
81002019-06-25 Tom Tromey <tom@tromey.com>
8101
8102 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8103 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8104 can_highlight.
8105
5fcee43a
TT
81062019-06-25 Tom Tromey <tom@tromey.com>
8107
8108 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8109 make_visible_with_new_height method.
8110 (tui_win_info::make_visible_with_new_height): New method.
8111 (tui_source_window_base::do_make_visible_with_new_height)
8112 (tui_data_window::do_make_visible_with_new_height)
8113 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8114 (make_visible_with_new_height): Remove.
8115 (tui_resize_all, tui_adjust_win_heights): Use
8116 make_visible_with_new_height method.
8117 * tui/tui-data.h (struct tui_win_info)
8118 <do_make_visible_with_new_height, make_visible_with_new_height>:
8119 New methods.
8120 (struct tui_source_window_base, struct tui_data_window)
8121 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8122 methods.
8123
d83f1fe6
TT
81242019-06-25 Tom Tromey <tom@tromey.com>
8125
8126 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8127 method.
8128 (update_tab_width): Call update_tab_width method.
8129 * tui/tui-data.h (struct tui_win_info)
8130 (struct tui_source_window_base) <update_tab_width>: New methods.
8131
17374de4
TT
81322019-06-25 Tom Tromey <tom@tromey.com>
8133
8134 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8135 parameter.
8136 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8137 parameter.
8138 (tui_gen_win_info::make_visible): Update.
8139 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8140 parameter.
8141 * tui/tui-data.h (enum tui_box): New enum.
8142 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8143
f936bca2
TT
81442019-06-25 Tom Tromey <tom@tromey.com>
8145
8146 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8147 init_and_make_win for EXEC_INFO_WIN.
8148 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8149 longer inline.
8150 (struct tui_win_info) <~tui_win_info>: Inline.
8151 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8152 Don't declare.
8153 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8154 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8155 Remove.
8156 (tui_initialize_static_data): Update.
8157 (~tui_gen_win_info): Handle more cleanup here.
8158 (~tui_source_window_base): Delete "execution_info".
8159 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8160
d6ba6a11
TT
81612019-06-25 Tom Tromey <tom@tromey.com>
8162
8163 * tui/tui-layout.c (make_command_window): Don't set
8164 can_highlight.
8165 (show_source_disasm_command): Call the reset method.
8166 (show_data): Don't set can_highlight. Call the reset method.
8167 (tui_gen_win_info::reset): Rename from init_gen_win_info
8168 (init_and_make_win): Simplify. Return tui_gen_win_info.
8169 (show_source_or_disasm_and_command): Call the reset method.
8170 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8171 (struct tui_cmd_window): Set can_highlight.
8172
48a3bd16
TT
81732019-06-25 Tom Tromey <tom@tromey.com>
8174
8175 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8176 from make_visible.
8177 (tui_make_visible, tui_make_invisible): Rewrite.
8178 (tui_win_info::make_visible): Remove.
8179 (tui_source_window_base::make_visible): Update.
8180 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8181 method. Moved from...
8182 (struct tui_win_info) <make_visible>: ...here.
8183
c3bd716f
TT
81842019-06-25 Tom Tromey <tom@tromey.com>
8185
8186 * tui/tui-winsource.c
8187 (tui_source_window_base::do_scroll_horizontal): Remove direction
8188 parameter.
8189 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8190 direction parameter.
8191 * tui/tui-win.c (tui_win_info::forward_scroll)
8192 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8193 (tui_win_info::right_scroll): Update.
8194 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8195 direction parameter.
8196 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8197 direction parameter.
8198 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8199 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8200 Remove direction parameter.
8201 (struct tui_source_window_base, struct tui_source_window)
8202 (struct tui_disasm_window, struct tui_data_window)
8203 (struct tui_cmd_window): Update.
8204
21c32dca
TT
82052019-06-25 Tom Tromey <tom@tromey.com>
8206
8207 * tui/tui-winsource.h (tui_set_exec_info_content)
8208 (tui_show_exec_info_content, tui_erase_exec_info_content)
8209 (tui_clear_exec_info_content, tui_update_exec_info): Change
8210 argument to tui_source_window_base.
8211 * tui/tui-winsource.c (tui_set_exec_info_content)
8212 (tui_show_exec_info_content, tui_erase_exec_info_content)
8213 (tui_clear_exec_info_content, tui_update_exec_info): Change
8214 argument to tui_source_window_base.
8215
73fbdc65
TT
82162019-06-25 Tom Tromey <tom@tromey.com>
8217
8218 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8219 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8220
33325343
TT
82212019-06-25 Tom Tromey <tom@tromey.com>
8222
8223 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8224 check.
8225
29d2c474
TT
82262019-06-25 Tom Tromey <tom@tromey.com>
8227
8228 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8229 type to void.
8230 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8231 type to void.
8232 * tui/tui-source.c (tui_set_source_content): Update.
8233 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8234
152f3f4b
TT
82352019-06-25 Tom Tromey <tom@tromey.com>
8236
8237 * tui/tui-win.c (window_name_completer, tui_set_focus)
8238 (tui_all_windows_info): Use name method.
8239 * tui/tui-data.h (struct tui_gen_win_info)
8240 (struct tui_source_window, struct tui_disasm_window)
8241 (struct tui_data_window, struct tui_cmd_window) <name>: New
8242 method.
8243 (tui_win_name): Don't declare.
8244 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8245 (tui_win_name): Remove.
8246
be4da588
TT
82472019-06-25 Tom Tromey <tom@tromey.com>
8248
8249 * tui/tui-winsource.h (tui_update_source_window)
8250 (tui_update_source_window_as_is): Change parameter type.
8251 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8252 to be a tui_source_window_base.
8253 (tui_update_source_window_as_is): Likewise.
8254 * tui/tui-win.c (make_visible_with_new_height): Update.
8255
5b81daba
TT
82562019-06-25 Tom Tromey <tom@tromey.com>
8257
8258 * tui/tui-winsource.c (tui_erase_source_content)
8259 (tui_show_source_content, tui_show_exec_info_content)
8260 (tui_erase_exec_info_content): Use refresh_window method.
8261 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8262 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8263 from tui_refresh_win.
8264 (tui_data_window::refresh_window): New method.
8265 (tui_win_info::refresh, tui_source_window_base::refresh)
8266 (tui_refresh_all): Use refresh_window method.
8267 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8268 method.
8269 * tui/tui-regs.c (tui_display_register): Call refresh_window
8270 method.
8271 * tui/tui-layout.c (show_source_disasm_command)
8272 (show_source_or_disasm_and_command): Call refresh_window method.
8273 * tui/tui-data.h (struct tui_gen_win_info)
8274 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8275 New method.
8276
cb2ce893
TT
82772019-06-25 Tom Tromey <tom@tromey.com>
8278
8279 * tui/tui.c (tui_rl_other_window, tui_enable)
8280 (tui_is_window_visible, tui_get_command_dimension): Update.
8281 * tui/tui-winsource.c (tui_update_source_window_as_is)
8282 (tui_clear_source_content, tui_erase_source_content)
8283 (tui_show_source_line, tui_source_window_base::refill)
8284 (tui_source_window_base::do_scroll_horizontal)
8285 (tui_source_window_base::set_is_exec_point_at)
8286 (tui_update_breakpoint_info, tui_set_exec_info_content)
8287 (tui_alloc_source_buffer, tui_line_is_displayed)
8288 (tui_addr_is_displayed): Update.
8289 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8290 (tui_check_and_display_highlight_if_needed)
8291 (tui_win_info::make_visible, tui_win_info::refresh)
8292 (tui_refresh_all): Update.
8293 * tui/tui-windata.c (tui_first_data_item_displayed)
8294 (tui_delete_data_content_windows, tui_erase_data_content)
8295 (tui_display_all_data, tui_data_window::refresh_all)
8296 (tui_check_data_values): Update.
8297 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8298 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8299 (tui_win_info::backward_scroll, tui_refresh_all_win)
8300 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8301 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8302 (tui_source_window_base::set_new_height)
8303 (tui_data_window::set_new_height)
8304 (make_invisible_and_set_new_height)
8305 (make_visible_with_new_height, new_height_ok)
8306 (parse_scrolling_args): Update.
8307 * tui/tui-stack.c (tui_show_frame_info): Update.
8308 * tui/tui-source.c (tui_set_source_content)
8309 (tui_set_source_content_nil, tui_source_is_displayed)
8310 (tui_source_window::do_scroll_vertical): Update.
8311 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8312 (tui_display_registers_from, tui_display_reg_element_at_line)
8313 (tui_check_register_values, tui_reg_command): Update.
8314 * tui/tui-layout.c (tui_default_win_height)
8315 (show_source_disasm_command, show_data, init_and_make_win)
8316 (show_source_or_disasm_and_command): Update.
8317 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8318 (tui_redisplay_readline, tui_mld_flush)
8319 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8320 (tui_getc): Update.
8321 * tui/tui-disasm.c (tui_set_disassem_content)
8322 (tui_disasm_window::do_scroll_vertical): Update.
8323 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8324 Now virtual.
8325 (struct tui_win_info): Derive from tui_gen_win_info.
8326 <~tui_win_info>: Mark as override.
8327 <generic>: Remove member.
8328 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8329 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8330 (~tui_data_window, ~tui_win_info)
8331 (tui_free_all_source_wins_content): Update.
8332 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8333
ab313b35
TT
83342019-06-25 Tom Tromey <tom@tromey.com>
8335
8336 * tui/tui-layout.c (init_and_make_win): Use new.
8337 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8338 destructor, initializers.
8339 (tui_alloc_generic_win_info): Don't declare.
8340 * tui/tui-data.c (_locator): Add argument to constructor.
8341 (source_win, disasm_win): New globals.
8342 (exec_info): Remove.
8343 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8344 Update.
8345 (tui_alloc_generic_win_info): Remove.
8346 (init_content_element): Use new.
8347 (tui_win_info::tui_win_info): Update.
8348 (free_content_elements) <case DATA_WIN>: Use delete.
8349
dc2c33e4
TT
83502019-06-25 Tom Tromey <tom@tromey.com>
8351
8352 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8353 * tui/tui-windata.c (tui_first_data_item_displayed)
8354 (tui_delete_data_content_windows): Update.
8355 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8356 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8357 (tui_display_registers_from, tui_check_register_values): Update.
8358 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8359 pointer.
8360 * tui/tui-data.c (init_content_element): Update. Allocate the new
8361 window.
8362 (tui_free_data_content): Update.
8363 (free_content_elements) <case DATA_WIN>: Free the window.
8364
214a5cbe
TT
83652019-06-25 Tom Tromey <tom@tromey.com>
8366
8367 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8368 Update.
8369 * tui/tui-layout.c (make_command_window)
8370 (show_source_disasm_command, show_data, init_and_make_win)
8371 (show_source_or_disasm_and_command): Update.
8372 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8373 method.
8374 <can_highight, is_highlighted>: Now bool.
8375 (tui_set_win_highlight): Don't declare.
8376 * tui/tui-data.c (tui_set_win_highlight): Remove.
8377
8e2daf15
TT
83782019-06-25 Tom Tromey <tom@tromey.com>
8379
8380 * tui/tui-wingeneral.c (make_visible): Remove check of window
8381 type.
8382
8903bd8a
TT
83832019-06-25 Tom Tromey <tom@tromey.com>
8384
8385 * tui/tui-win.c (tui_win_info::max_height)
8386 (tui_cmd_window::max_height): New methods.
8387 (new_height_ok): Call max_height.
8388 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8389 <max_height>: New method.
8390
3f02ce1e
TT
83912019-06-25 Tom Tromey <tom@tromey.com>
8392
8393 * tui/tui-win.c (tui_source_window_base::set_new_height)
8394 (tui_data_window::set_new_height): New methods.
8395 (make_invisible_and_set_new_height): Call set_new_height method.
8396 * tui/tui-data.h (struct tui_win_info)
8397 (struct tui_source_window_base, struct tui_data_window)
8398 <set_new_height>: New method.
8399
1825f487
TT
84002019-06-25 Tom Tromey <tom@tromey.com>
8401
8402 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8403 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8404 tui_refresh_data_win.
8405 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8406 method.
8407 (tui_refresh_all_win): Call the refresh_all method.
8408 (tui_set_focus): Likewise.
8409 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8410 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8411 Likewise.
8412
ad54d15b
TT
84132019-06-25 Tom Tromey <tom@tromey.com>
8414
8415 * tui/tui-winsource.h (tui_refill_source_window)
8416 (tui_set_is_exec_point_at): Don't declare.
8417 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8418 (tui_source_window_base::refill): Rename from
8419 tui_refill_source_window.
8420 (tui_source_window_base::do_scroll_horizontal): Update.
8421 (tui_source_window_base::set_is_exec_point_at): Rename from
8422 tui_set_is_exec_point_at.
8423 (tui_update_all_breakpoint_info): Update.
8424 * tui/tui-stack.c (tui_show_frame_info): Update.
8425 * tui/tui-layout.c (show_data): Add cast.
8426 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8427 * tui/tui-data.h (struct tui_source_window_base) <refill,
8428 set_is_exec_point_at>: New methods.
8429 (tui_source_windows, tui_add_to_source_windows): Update types.
8430 (tui_add_to_source_windows): Remove redundant declaration.
8431 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8432 (tui_source_windows): Change return type.
8433 (tui_clear_source_windows_detail): Update.
8434 (tui_add_to_source_windows): Change type of parameter.
8435 (tui_free_all_source_wins_content): Update.
8436
2042b506
TT
84372019-06-25 Tom Tromey <tom@tromey.com>
8438
8439 * tui/tui-wingeneral.c (tui_win_info::refresh)
8440 (tui_source_window_base::refresh): New methods.
8441 (tui_refresh_all): Call the refresh method.
8442 * tui/tui-data.h (struct tui_win_info)
8443 (struct tui_source_window_base) <refresh>: New method.
8444
56122977
TT
84452019-06-25 Tom Tromey <tom@tromey.com>
8446
8447 * tui/tui.h (tui_is_window_visible): Return bool.
8448 * tui/tui.c (tui_is_window_visible): Return bool.
8449 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8450 (tui_make_visible, tui_make_invisible)
8451 (tui_win_info::make_visible)
8452 (tui_source_window_base::make_visible, make_all_visible)
8453 (tui_make_all_visible, tui_make_all_invisible): Update.
8454 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8455 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8456 bool.
8457 (struct tui_win_info, struct tui_source_window_base)
8458 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8459 * tui/tui-data.c (tui_init_generic_part): Update.
8460
cda37efb
TT
84612019-06-25 Tom Tromey <tom@tromey.com>
8462
8463 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8464 (tui_source_window_base::make_visible): New methods.
8465 (make_all_visible): Make method call.
8466 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8467 (struct tui_source_window_base, struct tui_cmd_window): Override
8468 make_visible.
8469 (tui_win_is_source_type): Don't declare.
8470 * tui/tui-data.c (tui_win_is_source_type): Remove.
8471
6a0ee02c
TT
84722019-06-25 Tom Tromey <tom@tromey.com>
8473
8474 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8475 NULL check.
8476
63901aec
TT
84772019-06-25 Tom Tromey <tom@tromey.com>
8478
8479 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8480 Inline constructor. Add initializers for members.
8481 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8482 constructors; now inline in class.
8483
ceb13a13
TT
84842019-06-25 Tom Tromey <tom@tromey.com>
8485
8486 * tui/tui-regs.c (tui_show_registers): Update.
8487 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8488 bool.
8489 * tui/tui-data.c (tui_data_window::clear_detail)
8490 (tui_data_window): Update.
8491
238eb706
TT
84922019-06-25 Tom Tromey <tom@tromey.com>
8493
8494 * tui/tui-windata.c (tui_display_all_data)
8495 (tui_display_data_from_line, tui_display_data_from)
8496 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8497 Update.
8498 * tui/tui-regs.c (tui_last_regs_line_no)
8499 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8500 (tui_show_registers, tui_show_register_group)
8501 (tui_display_registers_from, tui_display_reg_element_at_line)
8502 (tui_display_registers_from_line, tui_check_register_values)
8503 (tui_reg_next, tui_reg_prev): Update.
8504 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8505 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8506 tui_data_window.
8507 (struct tui_win_info) <detail>: Remove. Add new fields from
8508 tui_data_info.
8509 (TUI_DATA_WIN): Add cast.
8510 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8511 (~tui_data_window): Simplify.
8512
81491aa0
TT
85132019-06-25 Tom Tromey <tom@tromey.com>
8514
8515 * tui/tui-layout.c (show_source_disasm_command)
8516 (show_source_or_disasm_and_command): Update.
8517 * tui/tui-io.c (update_cmdwin_start_line)
8518 (tui_redisplay_readline): Update.
8519 * tui/tui-data.h (struct tui_command_info): Remove.
8520 (struct tui_win_info) <detail>: Remove command_info member.
8521 (struct tui_data_window) <start_line>: New member, from
8522 tui_command_info.
8523 (TUI_CMD_WIN): Add casts.
8524
e6e41501
TT
85252019-06-25 Tom Tromey <tom@tromey.com>
8526
8527 * tui/tui-winsource.c (tui_update_source_window)
8528 (tui_refill_source_window)
8529 (tui_source_window_base::do_scroll_horizontal)
8530 (tui_update_breakpoint_info, tui_set_exec_info_content)
8531 (tui_show_exec_info_content, tui_erase_exec_info_content)
8532 (tui_clear_exec_info_content): Update.
8533 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8534 Update.
8535 * tui/tui-win.c (make_invisible_and_set_new_height)
8536 (make_visible_with_new_height): Update.
8537 * tui/tui-source.c (tui_set_source_content)
8538 (tui_show_symtab_source): Update.
8539 * tui/tui-layout.c (extract_display_start_addr)
8540 (show_source_disasm_command, show_data)
8541 (make_source_or_disasm_window)
8542 (show_source_or_disasm_and_command): Update.
8543 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8544 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8545 "gdbarch".
8546 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8547 to tui_source_window_base.
8548 (struct tui_win_info) <detail>: Remove source_info member.
8549 (struct tui_source_window_base) <has_locator>: Inline.
8550 Move contents from tui_source_info; rename has_locator member to
8551 m_has_locator.
8552 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8553 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8554 header file.
8555 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8556 Simplify.
8557 (tui_free_all_source_wins_content): Cast to
8558 tui_source_window_base.
8559
44f0e208
TT
85602019-06-25 Tom Tromey <tom@tromey.com>
8561
8562 * tui/tui-win.c (make_invisible_and_set_new_height)
8563 (make_visible_with_new_height): Call has_locator method.
8564 * tui/tui-layout.c (show_source_disasm_command, show_data)
8565 (show_source_or_disasm_and_command): Update for bool change.
8566 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8567 (tui_win_info) <has_locator>: New method.
8568 (struct tui_source_window_base) <has_locator>: New method.
8569 (tui_win_has_locator): Don't declare.
8570 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8571 from tui_win_has_locator.
8572 (tui_source_window_base): Use false, not FALSE.
8573
7778b912
TT
85742019-06-25 Tom Tromey <tom@tromey.com>
8575
8576 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8577 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8578 clear_detail method directly.
8579 (tui_clear_win_detail): Remove.
8580
f83d391c
TT
85812019-06-25 Tom Tromey <tom@tromey.com>
8582
8583 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8584 "this", not TUI_DISASM_WIN.
8585
13446e05
TT
85862019-06-25 Tom Tromey <tom@tromey.com>
8587
8588 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8589 declare.
8590 * tui/tui-winsource.c
8591 (tui_source_window_base::do_scroll_horizontal): Rename from
8592 tui_horizontal_source_scroll.
8593 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8594 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8595 from tui_vertical_data_scroll.
8596 * tui/tui-win.h (tui_scroll): Don't declare.
8597 * tui/tui-win.c (tui_win_info::forward_scroll)
8598 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8599 (tui_win_info::right_scroll): Rename and update.
8600 (tui_scroll_forward_command, tui_scroll_backward_command)
8601 (tui_scroll_left_command, tui_scroll_right_command): Update.
8602 (tui_scroll): Remove.
8603 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8604 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8605 from tui_vertical_source_scroll.
8606 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8607 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8608 from tui_vertical_disassem_scroll.
8609 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8610 do_scroll_horizontal>: New methods.
8611 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8612 Likewise.
8613 (struct tui_source_window_base): Add do_scroll_horizontal.
8614 (struct tui_source_window, struct tui_disasm_window): Add
8615 do_scroll_vertical.
8616 (struct tui_data_window, struct tui_cmd_window): Add
8617 do_scroll_horizontal and do_scroll_vertical.
8618 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8619
5cf82909
TT
86202019-06-25 Tom Tromey <tom@tromey.com>
8621
8622 * tui/tui-data.h (struct tui_source_window_base): New struct.
8623 (struct tui_source_window): Derive from tui_source_window_base.
8624 (struct tui_disasm_window): New struct.
8625 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8626 from tui_source_window::clear_detail.
8627 (tui_source_window_base): Rename from tui_source_window.
8628 (~tui_source_window_base): Rename from ~tui_source_window.
8629 (tui_alloc_win_info): Create a tui_disasm_window.
8630
ee1d42d6
TT
86312019-06-25 Tom Tromey <tom@tromey.com>
8632
8633 * tui/tui-data.h (struct tui_source_window)
8634 (struct tui_data_window): Declare destructors.
8635 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8636 destructors.
8637 (tui_win_info): Simplify.
8638
b4eb2452
TT
86392019-06-25 Tom Tromey <tom@tromey.com>
8640
8641 * tui/tui-winsource.c (tui_display_main)
8642 (tui_update_source_windows_with_addr)
8643 (tui_update_all_breakpoint_info): Update.
8644 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8645 (new_height_ok, parse_scrolling_args): Update.
8646 * tui/tui-stack.c (tui_show_frame_info): Update.
8647 * tui/tui-data.h (struct tui_list): Remove.
8648 (tui_source_windows): Return a reference to a std::vector.
8649 * tui/tui-data.c (source_windows): Now a std::vector.
8650 (tui_source_windows): Change return type.
8651 (tui_clear_source_windows): Rewrite.
8652 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8653 (tui_free_all_source_wins_content): Rewrite.
8654
8761a91b
TT
86552019-06-25 Tom Tromey <tom@tromey.com>
8656
8657 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8658 (struct tui_data_window, struct tui_cmd_window): Declare
8659 clear_detail method.
8660 * tui/tui-data.c (tui_source_window::clear_detail)
8661 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8662 methods.
8663 (tui_clear_win_detail): Simplify.
8664
0ed69eda
TT
86652019-06-25 Tom Tromey <tom@tromey.com>
8666
8667 * tui/tui-layout.c (make_source_window, make_disasm_window)
8668 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8669 Return the new window.
8670 (show_source_disasm_command, show_data)
8671 (show_source_or_disasm_and_command): Update.
8672
82432e10
TT
86732019-06-25 Tom Tromey <tom@tromey.com>
8674
8675 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8676 parameter. Return the new window.
8677 (show_source_disasm_command): Update and remove NULL check.
8678 (show_source_or_disasm_and_command): Update.
8679
ec328aa5
TT
86802019-06-25 Tom Tromey <tom@tromey.com>
8681
8682 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8683
33b906ab
TT
86842019-06-25 Tom Tromey <tom@tromey.com>
8685
8686 * tui/tui-data.h (struct tui_win_info): Make constructor
8687 protected. Make destructor virtual. Add initializers.
8688 (tui_source_window, tui_data_window, tui_cmd_window): New
8689 classes.
8690 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8691 constructor. Add "type" parameter.
8692 (tui_source_window, tui_data_window, tui_cmd_window): New
8693 constructors.
8694 (tui_alloc_win_info): Instantiate the appropriate subclass.
8695
e7e11af4
TT
86962019-06-25 Tom Tromey <tom@tromey.com>
8697
8698 * tui/tui-win.c (tui_resize_all): Use delete.
8699 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8700 destructor.
8701 (tui_free_window): Don't declare.
8702 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8703 Update.
8704
6792b55e
TT
87052019-06-25 Tom Tromey <tom@tromey.com>
8706
8707 * tui/tui-data.h (struct tui_win_info): Add constructor.
8708 * tui/tui-data.c (tui_alloc_win_info): Use new.
8709 (tui_free_window): Use delete.
8710
f95675e1
TT
87112019-06-22 Tom Tromey <tom@tromey.com>
8712
8713 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8714 declare.
8715 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8716
5bff081c
TT
87172019-06-22 Tom Tromey <tom@tromey.com>
8718
8719 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8720 declare.
8721 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8722
47e3f474
TV
87232019-06-22 Tom de Vries <tdevries@suse.de>
8724
8725 * dwarf2read.c (create_addrmap_from_aranges)
8726 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8727 instead of '%zu'.
8728
fd5866f6
SM
87292019-06-21 Simon Marchi <simon.marchi@efficios.com>
8730
8731 * dwarf2read.h (dwarf2_section_info_def): Remove.
8732 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8733 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8734 std::vector<dwarf2_section_info>.
8735 (struct dwo_file) <~dwo_file>: Remove.
8736 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8737 types field.
8738 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8739 (dwarf2_read_debug_names): Likewise.
8740 (create_debug_types_hash_table): Change parameter type to
8741 array_view, adjust code accordingly.
8742 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8743 (partial_die_info::fixup): Likewise.
8744 (determine_prefix): Likewise.
8745 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8746
fb1eb2f9
SM
87472019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8748
8749 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8750 gdb_bfd_ref_ptr.
8751 <~dwo_file>: Remove call to gdb_bfd_unref.
8752 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8753 gdb_bfd_ref_ptr::get.
8754
51ac9db5
SM
87552019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8756
8757 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8758 type to htab_up.
8759 * dwarf2read.c (struct dwo_file): Initialize fields.
8760 <~dwo_file>: New.
8761 (free_dwo_file): Remove, move content to ~dwo_file.
8762 (struct dwo_file_deleter): Remove.
8763 (dwo_file_up>: Remove custom deleter.
8764 (free_dwo_files): Remove.
8765 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8766 dwo_files.
8767 (process_skeletonless_type_units): Call unique_ptr::get.
8768 (allocate_dwo_file_hash_table): Add deleter to created hash
8769 table. Change return type to htab_up.
8770 (lookup_dwo_file_slot): Don't memset dwo_file, call
8771 unique_ptr::get.
8772 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8773 (create_dwo_unit_in_dwp_v2): Likewise.
8774 (open_and_init_dwo_file): Likewise.
8775 (free_dwo_file_from_slot): Remove.
8776
dc4ccb6f
SM
87772019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8778
8779 * dwarf2read.h (struct dwarf2_section_info) <readin,
8780 is_virtual>: Change type to bool.
8781 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8782 true instead of 1.
8783
e6a1c5cb
TT
87842019-06-19 Tom Tromey <tom@tromey.com>
8785
8786 * tui/tui-data.h (tui_init_content_element): Don't declare.
8787
6f6ffbeb
TT
87882019-06-19 Tom Tromey <tom@tromey.com>
8789
8790 * tui/tui-data.h (tui_init_win_info): Don't declare.
8791
f23f598e
TV
87922019-06-19 Tom de Vries <tdevries@suse.de>
8793
8794 * dwarf2read.h (abstract_to_concrete): Change type to
8795 std::unordered_map<sect_offset, std::vector<sect_offset>,
8796 gdb::hash_enum<sect_offset>>.
8797
680e1bee
TT
87982019-06-19 Tom Tromey <tromey@adacore.com>
8799
8800 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8801 EVAL_AVOID_SIDE_EFFECTS specially.
8802
dcf37923
TT
88032019-06-19 Tom Tromey <tromey@adacore.com>
8804
8805 * source-cache.c (highlighter): New global.
8806 (source_cache::get_source_lines): Create a highlighter on demand.
8807
494986d5
AB
88082019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8809
8810 * defs.h (deprecated_interactive_hook): Delete declaration.
8811 * interps.c (clear_interpreter_hooks): Remove use of
8812 deprecated_interactive_hook.
8813 * top.c (deprecated_interactive_hook): Delete definition.
8814 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8815
3360b6e7
TV
88162019-06-18 Tom de Vries <tdevries@suse.de>
8817
8818 PR gdb/24515
8819 * dwarf2read.h (abstract_to_concrete): Change type from
8820 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8821 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8822 * dwarf2read.c (read_variable): Update.
8823 (dwarf2_fetch_die_loc_sect_off): Update.
8824
310b3441
TV
88252019-06-17 Tom de Vries <tdevries@suse.de>
8826
8827 PR gdb/24617
8828 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8829 accessing parent[parent_len - 1].
8830
ba9777be
PP
88312019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8832
8833 PR gdb/24364
8834 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8835 call dtrace_process_dof with NULL dof.
8836
2b9f6e89
TV
88372019-06-16 Tom de Vries <tdevries@suse.de>
8838
8839 PR gdb/24445
8840 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8841
431b3ead
TT
88422019-06-16 Tom Tromey <tom@tromey.com>
8843
8844 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8845 (make_all_visible): Use address of member.
8846
d04b44a1
TT
88472019-06-16 Tom Tromey <tom@tromey.com>
8848
8849 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8850 (tui_free_window, free_content, free_content_elements): Remove
8851 unnecessary cast.
8852 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8853 cast.
8854 * tui/tui-regs.c (tui_show_register_group)
8855 (tui_display_registers_from, tui_display_reg_element_at_line):
8856 Remove unnecessary cast.
8857
bf5142e7
AB
88582019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8859
8860 * linux-nat.c (normal_mask): Delete.
8861 (_initialize_linux_nat): Don't initialise normal_mask.
8862
c4973306
SM
88632019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8864
8865 PR gdb/24445
8866 * dwarf-index-write.h (write_psymtabs_to_index): Add
8867 dwz_basename parameter.
8868 * dwarf-index-write.c (write_gdbindex): Move file writing to
8869 write_gdbindex_1. Change return type void.
8870 (assert_file_size): Move up, remove filename parameter.
8871 (write_gdbindex_1): New function.
8872 (write_debug_names): Change return type to void, call
8873 assert_file_size.
8874 (struct index_wip_file): New struct.
8875 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8876 file logic to index_wip_file. Write index for dwz file if
8877 needed.
8878 (save_gdb_index_command): Pass basename of dwz file, if present.
8879 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8880 build-id of dwz file, if present.
8881 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8882 (dwarf2_get_dwz_file): Likewise.
8883 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8884 (dwarf2_get_dwz_file): Likewise.
8885
395f9c91
TT
88862019-06-16 Tom Tromey <tom@tromey.com>
8887
8888 * coffread.c (process_coff_symbol): Use xstrdup.
8889 * value.c (create_internalvar): Use xstrdup.
8890
cafb3438
TT
88912019-06-16 Tom Tromey <tom@tromey.com>
8892
8893 * valops.c (value_cast, value_slice): Remove unnecessary cast.
8894 * breakpoint.c (stopin_command, stopat_command)
8895 (until_break_command, decode_location_default): Remove unnecessary
8896 cast.
8897 * utils.c (subset_compare): Remove unnecessary cast.
8898 * ada-lang.c (ada_update_initial_language): Remove unnecessary
8899 cast.
8900 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
8901 cast.
8902 * infcmd.c (path_command): Remove unnecessary cast.
8903 * coffread.c (decode_type): Remove unnecessary cast.
8904 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
8905 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
8906 * tui/tui-stack.c (tui_show_locator_content)
8907 (tui_show_frame_info): Remove unnecessary cast.
8908 * tui/tui-win.c (tui_scroll_forward_command)
8909 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
8910 (parse_scrolling_args): Remove unnecessary cast.
8911 * tui/tui-data.c (init_win_info, tui_del_window)
8912 (tui_free_window, tui_del_data_windows, tui_free_data_content)
8913 (free_content_elements): Remove unnecessary cast.
8914 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
8915 unnecessary cast.
8916 * tui/tui-source.c (tui_set_source_content)
8917 (tui_vertical_source_scroll): Remove unnecessary cast.
8918 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
8919 cast.
8920 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
8921 * tui/tui-regs.c (tui_display_registers_from)
8922 (tui_display_register): Remove unnecessary cast.
8923 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
8924 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
8925 (make_visible): Remove unnecessary cast.
8926 * tui/tui-winsource.c (tui_erase_source_content)
8927 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
8928 unnecessary cast.
8929 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
8930 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
8931 * stabsread.c (read_type, read_array_type, read_range_type):
8932 Remove unnecessary cast.
8933 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
8934 (parse_symbol, parse_type, upgrade_type, parse_external)
8935 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
8936 unnecessary cast.
8937 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
8938
730ead81
TT
89392019-06-16 Tom Tromey <tom@tromey.com>
8940
8941 * tui/tui-data.c (tui_alloc_generic_win_info)
8942 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
8943 checks.
8944
584a927c
AB
89452019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
8946 Andrew Burgess <andrew.burgess@embecosm.com>
8947
8948 * f-typeprint.c (f_print_type): Don't return early for not
8949 associated or not allocated types.
8950 (f_type_print_varspec_suffix): Add print_rank parameter and print
8951 ranks of array types in case they dangling.
8952 (f_type_print_base): Add print_rank parameter.
8953
30056ea0
AB
89542019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8955
8956 * NEWS: Mention new MI commands.
8957 * break-catch-throw.c (enum exception_event_kind): Move to
8958 breakpoint.h.
8959 (print_mention_exception_catchpoint): Output text as a single
8960 message.
8961 (catch_exception_command_1): Rename to...
8962 (catch_exception_event): ...this, make non-static, update header
8963 command, and change some parameter types.
8964 (catch_catch_command): Update for changes to
8965 catch_exception_command_1.
8966 (catch_throw_command): Likewise.
8967 (catch_rethrow_command): Likewise.
8968 * breakpoint.c (enum exception_event_kind): Delete.
8969 * breakpoint.h (enum exception_event_kind): Moved here from
8970 break-catch-throw.c.
8971 (catch_exception_event): Declare.
8972 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
8973 (mi_cmd_catch_throw): New function.
8974 (mi_cmd_catch_rethrow): New function.
8975 (mi_cmd_catch_catch): New function.
8976 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
8977 'catch-catch' entries.
8978 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
8979 (mi_cmd_catch_rethrow): Declare.
8980 (mi_cmd_catch_catch): Declare.
8981
ec8e2b6d
AB
89822019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8983
8984 * annotate.c (annotate_source_line): Change return type to void,
8985 update implementation to match.
8986 * annotate.h (annotate_source_line): Change return type to void,
8987 update header comment.
8988 * stack.c (print_frame_info): Don't change what frame information
8989 is printed based on whether annotations are on or not.
8990
0d3abd8c
AB
89912019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
8992
8993 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
8994 (annotate_source): Make static.
8995 (annotate_source_line): Moved from source.c and renamed from
8996 identify_source_line. Update the return type.
8997 * annotate.h (annotate_source): Delete declaration.
8998 (annotate_source_line): Declaration moved from source.h, and
8999 renamed from identify_source_line. Return type updated.
9000 * source.c (identify_source_line): Moved to annotate.c and renamed
9001 to annotate_source_line.
9002 (info_line_command): Remove check of annotation_level.
9003 * source.h (identify_source_line): Move declaration to annotate.h
9004 and rename to annotate_source_line.
9005 * stack.c: Add 'annotate.h' include.
9006 (print_frame_info): Remove check of annotation_level before
9007 calling annotate_source_line.
9008
00df30ae
AB
90092019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9010
9011 * source-cache.c (source_cache::get_plain_source_lines): Use
9012 open_source_file_with_line_charpos instead of just
9013 open_source_file, remove call to find_source_lines.
9014 (source_cache::get_source_lines): Likewise.
9015 * source.c (find_source_lines): Make static.
9016 (get_filename_and_charpos): Renamed into...
9017 (open_source_file_with_line_charpos): ..this along with changes to
9018 return a scoped_fd, and some other minor clean ups.
9019 (identify_source_line): Use open_source_file_with_line_charpos.
9020 (search_command_helper): Use open_source_file_with_line_charpos
9021 instead of just open_source_file, remove call to
9022 find_source_lines.
9023 * source.h (open_source_file_with_line_charpos): Declare new
9024 function.
9025 (find_source_lines): Delete declaration.
9026
afda45a2
AB
90272019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9028
9029 * source.c (get_filename_and_charpos): Remove fullname
9030 parameter.
9031 (identify_source_line): Update call to get_filename_and_charpos.
9032
0735b091
TT
90332019-06-14 Tom Tromey <tromey@adacore.com>
9034
9035 PR gdb/24502:
9036 * ui-style.h (skip_ansi_escape): Update comment.
9037 * ui-file.h (class no_terminal_escape_file): New class.
9038 * ui-file.c (no_terminal_escape_file::write)
9039 (no_terminal_escape_file::puts): New methods.
9040 * cli/cli-logging.c (handle_redirections): Use
9041 no_terminal_escape_file.
9042
52ce35e2
TT
90432019-06-14 Tom Tromey <tromey@adacore.com>
9044
9045 * NEWS: Move convenience variable news above Python news.
9046
73cc7272
TT
90472019-06-14 Tom Tromey <tom@tromey.com>
9048
9049 * gnulib: Move directory to top-level.
9050 * configure.ac: Don't configure gnulib.
9051 * configure: Rebuild.
9052 * common/common-defs.h: Use new path to gnulib.
9053 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9054 (GNULIB_H): Remove.
9055 (INCGNU): Look in new gnulib location.
9056 (HFILES_NO_SRCDIR): Remove gnulib files.
9057 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9058 (generated_files): Remove GNULIB_H.
9059 ($(LIBGNU), all-lib): Remove targets.
9060 (distclean): Don't mention GNULIB_BUILDDIR.
9061 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9062
f5686554
TT
90632019-06-14 Tom Tromey <tromey@adacore.com>
9064
9065 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9066 Warn if symbol file does not provide any symbols.
9067
a0c1ffed
TT
90682019-06-14 Tom Tromey <tromey@adacore.com>
9069
9070 * source.c (find_and_open_source): Respect basenames_may_differ.
9071
7c39e397
AB
90722019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9073
9074 * annotate.c (annotate_breakpoints_invalid): Make use of
9075 scoped_restore_terminal_state.
9076 (annotate_frames_invalid): Likewise.
9077
f411722c
TT
90782019-06-14 Tom Tromey <tromey@adacore.com>
9079
9080 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9081 allow assignment to an internalvar.
9082
4268ec18
TT
90832019-06-14 Tom Tromey <tromey@adacore.com>
9084
9085 * ada-lex.l: Allow "_" in attribute names.
9086
abdb711e
TT
90872019-06-14 Tom Tromey <tromey@adacore.com>
9088
9089 PR gdb/24653:
9090 * regcache.c (registers_changed): Don't call alloca.
9091 * top.c (execute_command): Don't call alloca.
9092
4c048731
PA
90932019-06-13 Pedro Alves <palves@redhat.com>
9094
9095 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9096 'expression'. When parsing an expression, error out if there's
9097 junk after "unlimited".
9098 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9099 (do_set_command): Adjust calls to is_unlimited_literal.
9100
66eb1ed3
PA
91012019-06-13 Pedro Alves <palves@redhat.com>
9102
9103 * compile/compile.c (make_compile_options_def_group): Add braces
9104 around array_view initializer.
9105 * thread.c (make_thread_apply_all_options_def_group)
9106 (make_thread_apply_all_options_def_group): Likewise.
9107
3345721a
PA
91082019-06-13 Pedro Alves <palves@redhat.com>
9109
9110 * NEWS (New commands): Mention "maint test-options
9111 require-delimiter", "maint test-options unknown-is-error", "maint
9112 test-options unknown-is-operand" and "maint show
9113 test-options-completion-result".
9114 (New command options, command completion): New section.
9115 (Completion improvements): New section.
9116 Mention that you can abbreviate "unlimited".
9117
6206060d
PA
91182019-06-13 Pedro Alves <palves@redhat.com>
9119
9120 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9121 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9122 * unittests/cli-utils-selftests.c (test_parse_flags)
9123 (test_parse_flags_qcs): Delete.
9124 (test_cli_utils): Don't call deleted functions.
9125
6665660a
PA
91262019-06-13 Pedro Alves <palves@redhat.com>
9127
9128 * thread.c: Include "cli/cli-option.h".
9129 (tp_array_compar_ascending): Global.
9130 (tp_array_compar): Delete function.
9131 (tp_array_compar_ascending, tp_array_compar_descending): New
9132 functions.
9133 (ascending_option_def, qcs_flag_option_def)
9134 (thr_qcs_flags_option_defs)
9135 (make_thread_apply_all_options_def_group)
9136 (make_thread_apply_options_def_group): New.
9137 (thread_apply_all_command): Use gdb::option::process_options.
9138 (thread_apply_command_completer)
9139 (thread_apply_all_command_completer): New.
9140 (thread_apply_command): Use gdb::option::process_options.
9141 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9142 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9143 to generate help text of "thread apply". Adjust "taas"'s help.
9144 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9145 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9146
f7e13587
PA
91472019-06-13 Pedro Alves <palves@redhat.com>
9148
9149 * thread.c (thread_apply_command): Check for invalid TID with
9150 isdigit instead of !isalpha.
9151
5d707134
PA
91522019-06-13 Pedro Alves <palves@redhat.com>
9153
9154 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9155 (validate_flags_qcs): New.
9156 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9157 (validate_flags_qcs): Declare.
9158 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9159 (make_frame_apply_options_def_group): New.
9160 (frame_apply_command_count): Process options with
9161 gdb::option::process_options.
9162 (frame_apply_completer): New.
9163 (frame_apply_level_completer, frame_apply_all_completer)
9164 (frame_apply_completer): New.
9165 (_initialize_stack): Update help of "frame apply", "frame apply
9166 level", "frame apply all" and "faas" to mention supported options
9167 and install command completers.
9168 * stack.h (frame_apply_all_completer): Declare.
9169 * thread.c: Include "stack.h".
9170 (tfaas_command): Add "--".
9171 (_initialize_thread): Update help "tfaas" to mention supported
9172 options and install command completer.
9173
272d4594
PA
91742019-06-13 Pedro Alves <palves@redhat.com>
9175
9176 * completer.c (complete_nested_command_line): New.
9177 (gdb_completion_word_break_characters_throw): Add assertion.
9178 * completer.h (complete_nested_command_line): Declare.
9179
90a1ef87
PA
91802019-06-13 Pedro Alves <palves@redhat.com>
9181
9182 * stack.c (parse_backtrace_qualifiers): New.
9183 (backtrace_command): Use it.
9184 (backtrace_command_completer): Complete on qualifiers.
9185
d4c16835
PA
91862019-06-13 Pedro Alves <palves@redhat.com>
9187
9188 * frame.c: Include "cli/cli-option.h.
9189 (user_set_backtrace_options): New.
9190 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9191 Delete.
9192 (get_prev_frame): Adjust.
9193 (boolean_option_def, uinteger_option_def)
9194 (set_backtrace_option_defs): New.
9195 (_initialize_frame): Adjust and use
9196 gdb::option::add_setshow_cmds_for_options to install "set
9197 backtrace past-main" and "set backtrace past-entry".
9198 * frame.h: Include "cli/cli-option.h".
9199 (struct frame_print_options): Forward declare.
9200 (print_frame_arguments_all, print_frame_arguments_scalars)
9201 (print_frame_arguments_none): Declare.
9202 (print_entry_values): Delete declaration.
9203 (struct frame_print_options, user_frame_print_options): New.
9204 (struct set_backtrace_options): New.
9205 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9206 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9207 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9208 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9209 (list_args_or_locals): Add frame_print_options parameter.
9210 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9211 * python/py-framefilter.c (enumerate_args): Pass down
9212 USER_FRAME_PRINT_OPTIONS.
9213 * stack.c: Include "cli/cli-option.h".
9214 (print_frame_arguments_all, print_frame_arguments_scalars)
9215 (print_frame_arguments_none): Declare.
9216 (print_raw_frame_arguments, print_entry_values): Delete.
9217 (user_frame_print_options): New.
9218 (boolean_option_def, enum_option_def, frame_print_option_defs):
9219 New.
9220 (struct backtrace_cmd_options): New.
9221 (bt_flag_option_def): New.
9222 (backtrace_command_option_defs): New.
9223 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9224 (print_frame_arg, read_frame_arg, print_frame_args)
9225 (print_frame_info, print_frame): Add frame_print_options parameter
9226 and use it.
9227 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9228 (backtrace_command_1): Add frame_print_options and
9229 backtrace_cmd_options parameters and use them.
9230 (make_backtrace_options_def_group): New.
9231 (backtrace_command): Process command options with
9232 gdb::option::process_options.
9233 (backtrace_command_completer): New.
9234 (_initialize_stack): Extend "backtrace"'s help to mention
9235 supported options. Install completer for "backtrace".
9236 Install some settings commands with add_setshow_cmds_for_options.
9237
2daf894e
PA
92382019-06-13 Pedro Alves <palves@redhat.com>
9239
9240 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9241 and that "set/show print raw frame-arguments" are now deprecated.
9242
9243 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9244 command.
9245 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9246 * stack.c (_initialize_stack): Install "set/show print
9247 raw-frame-arguments", and deprecate "set/show print raw
9248 frame-arguments".
9249 * valprint.c (_initialize_valprint): Deprecate "set/show print
9250 raw".
9251
e6ed716c
PA
92522019-06-13 Pedro Alves <palves@redhat.com>
9253
9254 * compile/compile.c (struct compile_options): New.
9255 (compile_flag_option_def, compile_command_option_defs)
9256 (make_compile_options_def_group): New.
9257 (compile_file_command): Handle options with
9258 gdb::option::process_options.
9259 (compile_file_command_completer): New function.
9260 (compile_code_command): Handle options with
9261 gdb::option::process_options.
9262 (compile_code_command_completer): New function.
9263 (_initialize_compiler): Install completers for "compile code" and
9264 "compile file". Mention available options in "compile code" and
9265 "compile code"'s help.
9266 * completer.c (advance_to_completion_word): New, factored out from
9267 ...
9268 (advance_to_expression_complete_word_point): ... this.
9269 (advance_to_filename_complete_word_point): New.
9270 * completer.h (advance_to_filename_complete_word_point): New
9271 declaration.
9272
7d8062de
PA
92732019-06-13 Pedro Alves <palves@redhat.com>
9274
9275 * compile/compile.c: Include "cli/cli-option.h".
9276 (compile_print_value): Scope data pointer is now a
9277 value_print_options pointer; adjust.
9278 (compile_print_command): Process options. Scope data pointer is
9279 now a value_print_options pointer; adjust.
9280 (_initialize_compile): Update "compile print"'s help to include
9281 supported options. Install a completer for "compile print".
9282 * cp-valprint.c (show_vtblprint, show_objectprint)
9283 (show_static_field_print): Delete.
9284 (_initialize_cp_valprint): Don't install "set print
9285 static-members", "set print vtbl", "set print object" here.
9286 * printcmd.c: Include "cli/cli-option.h" and
9287 "common/gdb_optional.h".
9288 (print_command_parse_format): Rework to fill in a
9289 value_print_options instead of a format_data.
9290 (print_value): Change parameter type from format_data pointer to
9291 value_print_options reference. Adjust.
9292 (print_command_1): Process options. Adjust to pass down a
9293 value_print_options.
9294 (print_command_completer): New.
9295 (_initialize_printcmd): Install print_command_completer as
9296 handle_brkchars completer for the "print" command. Update
9297 "print"'s help to include supported options.
9298 * valprint.c: Include "cli/cli-option.h".
9299 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9300 here from cp-valprint.c.
9301 (boolean_option_def, uinteger_option_def)
9302 (value_print_option_defs, make_value_print_options_def_group):
9303 New. Use gdb::option::add_setshow_cmds_for_options to install
9304 "set print elements", "set print null-stop", "set print repeats",
9305 "set print pretty", "set print union", "set print array", "set
9306 print address", "set print symbol", "set print array-indexes".
9307 * valprint.h: Include <string> and "cli/cli-option.h".
9308 (make_value_print_options_def_group): Declare.
9309 (print_value): Change parameter type from format_data pointer to
9310 value_print_options reference.
9311 (print_command_completer): Declare.
9312
9d0faba9
PA
93132019-06-13 Pedro Alves <palves@redhat.com>
9314
9315 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9316 (COMMON_SFILES): Add maint-test-settings.c.
9317 * cli/cli-decode.c (boolean_enums): New global, factored out from
9318 ...
9319 (add_setshow_boolean_cmd): ... here.
9320 * cli/cli-decode.h (boolean_enums): Declare.
9321 * cli/cli-option.c: New file.
9322 * cli/cli-option.h: New file.
9323 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9324 factored out from ...
9325 (parse_cli_boolean_value(const char *)): ... this.
9326 (is_unlimited_literal): Change parameter type to pointer to
9327 pointer. Adjust and advance ARG pointer.
9328 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9329 (parse_cli_var_enum): New, factored out from ...
9330 (do_set_command): ... this. Adjust.
9331 * cli/cli-setshow.h (parse_cli_boolean_value)
9332 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9333 (parse_cli_var_enum): Declare.
9334 * cli/cli-utils.c: Include "cli/cli-option.h".
9335 (get_ulongest): New.
9336 * cli/cli-utils.h (get_ulongest): Declare.
9337 (check_for_argument): New overloads.
9338 * maint-test-options.c: New file.
9339
2c722807
PA
93402019-06-13 Pedro Alves <palves@redhat.com>
9341
9342 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9343 parse a range if "-" is at the end of the string.
9344
dee7b4c8
PA
93452019-06-13 Pedro Alves <palves@redhat.com>
9346
9347 * cli/cli-setshow.c (parse_auto_binary_operation)
9348 (parse_cli_boolean_value): Don't allow "o".
9349
dca0f6c0
PA
93502019-06-13 Pedro Alves <palves@redhat.com>
9351
9352 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9353 * NEWS: Mention maint test-settings KIND.
9354 * maint-test-settings.c: New file.
9355
597bf39d
PA
93562019-06-13 Pedro Alves <palves@redhat.com>
9357
9358 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9359 completer.
9360 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9361 "set" completers.
9362
48c410fb
PA
93632019-06-13 Pedro Alves <palves@redhat.com>
9364
9365 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9366 after item.
9367
93bcb043
PA
93682019-06-13 Pedro Alves <palves@redhat.com>
9369
9370 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9371
cbba3ecd
PA
93722019-06-13 Pedro Alves <palves@redhat.com>
9373
9374 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9375 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9376 call.
9377 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9378 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9379 calls.
9380 (check_for_argument): Skip spaces after argument.
9381
b9a3f842
PA
93822019-06-13 Pedro Alves <palves@redhat.com>
9383
9384 * thread.c (thread_apply_command): Adjust TID parsing.
9385 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9386 detected before end of string.
9387 (tid_is_in_list): Error out if LIST is invalid.
9388
3844e605
PA
93892019-06-13 Pedro Alves <palves@redhat.com>
9390
9391 * completer.c (complete_line_internal_1): Rewind completion word
9392 point.
9393 (completion_tracker::advance_custom_word_point_by): Change
9394 parameter type to int.
9395 * completer.h (completion_tracker::advance_custom_word_point_by):
9396 Likewise.
9397
00b56dbe
PA
93982019-06-13 Pedro Alves <palves@redhat.com>
9399
9400 * completer.c (advance_to_completion_word): Handle delimiters.
9401
d106773e
PA
94022019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9403
9404 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9405
08f10e02
TT
94062019-06-11 Tom Tromey <tom@tromey.com>
9407
9408 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9409 (xmalloc_failed): Move to alloc.c.
9410 * alloc.c: New file.
9411 * Makefile.in (COMMON_SFILES): Add alloc.c.
9412
1c7fe951
TT
94132019-06-11 Tom Tromey <tom@tromey.com>
9414
9415 * nat/linux-waitpid.c: Don't include server.h.
9416 (linux_debug): Remove.
9417 (my_waitpid): Update.
9418
89549d7f
TT
94192019-06-11 Tom Tromey <tromey@adacore.com>
9420
9421 * infcall.c (_initialize_infcall): Remove trailing newline from
9422 help.
9423 * user-regs.c (_initialize_user_regs): Remove trailing newline
9424 from help.
9425 * typeprint.c (_initialize_typeprint): Remove trailing newline
9426 from help.
9427 * reverse.c (_initialize_reverse): Remove trailing newlines from
9428 help.
9429 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9430 from help.
9431 * language.c (add_set_language_command): Remove trailing newline
9432 from help.
9433 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9434 help.
9435 * disasm.c (_initialize_disasm): Remove trailing newline from
9436 help.
9437 * top.c (init_main): Remove trailing newline from help.
9438 * interps.c (_initialize_interpreter): Remove trailing newline
9439 from help.
9440 * btrace.c (_initialize_btrace): Remove trailing newlines from
9441 help.
9442 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9443 from help.
9444 * python/python.c (_initialize_python): Remove trailing newline
9445 from help.
9446 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9447 help.
9448 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9449 from help. Reformat some text.
9450 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9451 from help.
9452 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9453 newline from help.
9454
86108c13
TT
94552019-06-11 Tom Tromey <tromey@adacore.com>
9456
9457 * darwin-nat.c (darwin_decode_exception_message)
9458 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9459
a7067863
AB
94602019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9461
9462 * valops.c (value_slice): Check for not allocated or not
9463 associated values.
9464
9ab08412
TV
94652019-06-10 Tom de Vries <tdevries@suse.de>
9466
9467 PR gdb/24618
9468 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9469 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9470 invalid.
9471
f19e22e9
TV
94722019-06-10 Tom de Vries <tdevries@suse.de>
9473
9474 PR gdb/24611
9475 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9476 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9477
e99f9db0
TV
94782019-06-10 Tom de Vries <tdevries@suse.de>
9479
9480 PR symtab/24545
9481 * symtab.c (struct demangled_name_entry): Add language field.
9482 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9483 static minimal symbol". Set and use language field.
9484
9bf7038b
TT
94852019-06-10 Tom Tromey <tromey@adacore.com>
9486
9487 * ada-lang.c (_initialize_ada_language): Update help text.
9488
422186a9
TT
94892019-06-10 Tom Tromey <tromey@adacore.com>
9490
9491 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9492 with a newline.
9493 * guile/guile.c (handle_boot_error): Don't end warning with a
9494 newline.
9495 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9496 warning with a newline.
9497 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9498 newline.
9499 (s12z_frame_cache): Likewise.
9500 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9501 a newline.
9502 * solib-svr4.c (disable_probes_interface): Don't end warning with
9503 a newline.
9504 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9505 newline.
9506 * python/python.c (do_finish_initialization): Don't end warning
9507 with a newline.
9508
25ce02ee
TT
95092019-06-10 Tom Tromey <tom@tromey.com>
9510
9511 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9512 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9513 gdbpy_enter.
9514
caa429d8
TT
95152019-06-10 Tom Tromey <tromey@adacore.com>
9516
9517 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9518 data.
9519 (elf_new_init): Don't call stabsread_new_init.
9520 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9521 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9522 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9523
81873cc8
TV
95242019-06-10 Tom de Vries <tdevries@suse.de>
9525
9526 PR symtab/16264
9527 PR symtab/24517
9528 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9529
4fa0265e
РИ
95302019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9531
9532 * source.c (find_and_open_source): Also rewrite relative file
9533 names.
9534
1a3da2cd
AB
95352019-04-26 Amos Bird <amosbird@gmail.com>
9536
9537 * annotate.c (annotate_thread_exited): Add "thread-exited"
9538 annotation.
9539
3847a7bf
TT
95402019-06-06 Tom Tromey <tromey@adacore.com>
9541
9542 * maint.h (class scoped_command_stats): Use
9543 DISABLE_COPY_AND_ASSIGN.
9544 <print_time>: New method.
9545 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9546 print_time.
9547 (scoped_command_stats::print_time): New method.
9548
312617a3
AB
95492019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9550
9551 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9552 instructions of lengths 6 or 8 bytes.
9553
b02f78f9
PA
95542019-06-04 Pedro Alves <palves@redhat.com>
9555
9556 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9557
9558 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9559 * breakpoint.c (condition_completer): Likewise.
9560 * cli/cli-dump.c (scan_expression): Likewise.
9561 * common/filestuff.c (mkdir_recursive): Likewise.
9562 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9563 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9564 (gdb_abspath): Likewise.
9565 * compile/compile-cplus-types.c
9566 (compile_cplus_instance::decl_name): Likewise.
9567 * completer.c (complete_explicit_location):
9568 (signal_completer, reg_or_group_completer_1): Likewise.
9569 * cp-support.c (cp_remove_params_if_any): Likewise.
9570 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9571 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9572 * infcmd.c (strip_bg_char): Likewise.
9573 * linespec.c (copy_token_string): Likewise.
9574 * mi/mi-main.c (output_cores): Likewise.
9575 * psymtab.c (psymtab_search_name):
9576 * symfile.c (test_set_ext_lang_command): Likewise.
9577 * target.c (target_fileio_read_stralloc): Likewise.
9578 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9579 * value.c (complete_internalvar): Likewise.
9580
e1f2e1a2
CB
95812019-06-04 Christian Biesinger <cbiesinger@google.com>
9582
9583 Add objfile property to gdb.Type.
d3238f7d
PA
9584 * NEWS: Mention Python API addition.
9585 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9586
e664d728
PW
95872019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9588
9589 * NEWS: Mention the new set|show style [title|highlight].
9590 Mention changes to "show style", "help" and "apropos".
9591
66d8c862
PW
95922019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9593
9594 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9595 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9596 instead of print_help_for_command.
9597 (print_doc_of_command): New function.
9598 (help_list): Add 'apropos -v word' suggestion.
9599 (print_help_for_command): Style the command name using title style.
9600 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9601 (_initialize_cli_cmds): Describe -v in apropos_command help.
9602
9303eb2f
PW
96032019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9604
9605 * cli/cli-style.h (cli_style_option): Add name in constructor,
9606 add m_name class member, add constructor with intensity,
9607 add name class function.
9608 (cli_style_option::add_setshow_commands): Remove name argument.
9609 (highlight_style, title_style): New styles.
9610 * cli/cli-style.c (do_show): New function that shows a style
9611 characteristic styling the style name with itself.
9612 (set_style_name): New function.
9613 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9614 Update all callers according to the changes in cli/cli-style.h.
9615 * utils.h (fputs_highlighted): New function.
9616 * utils.c (fputs_highlighted): Likewise.
9617
e2c52041
PW
96182019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9619
9620 * NEWS: Mention new pipe command and new convenience variables.
9621
947d3946
PW
96222019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9623
9624 * cli/cli-cmds.c (pipe_command): New function.
9625 (_initialize_cli_cmds): Call add_com for pipe_command.
9626 Define | as an alias for pipe.
9627 (exit_status_set_internal_vars): New function.
9628 (shell_escape): Call exit_status_set_internal_vars.
9629 cli/cli-decode.c (find_command_name_length): Recognize | as
9630 a single character command.
9631
b8fd0918
PW
96322019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9633
9634 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9635 top.c (execute_command_to_ui_file): New function, mostly a copy
9636 of execute_command_to_string.
9637 (execute_command_to_string): Implement by calling
9638 execute_command_to_ui_file.
9639
68bb5386
PW
96402019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9641
9642 * top.h (saved_command_line): Remove declaration.
9643 * top.c (previous_saved_command_line, previous_repeat_arguments):
9644 New variables.
9645 (saved_command_line): Make static, define together with other
9646 'repeat variables'.
9647 (dont_repeat): Clear repeat_arguments.
9648 (repeat_previous, get_saved_command_line, save_command_line):
9649 New functions.
9650 (gdb_init): Initialize saved_command_line
9651 and previous_saved_command_line.
9652 * main.c (captured_main_1): Remove saved_command_line initialization.
9653 * event-top.c (handle_line_of_input): Update to use
9654 the new 'repeat' related functions instead of direct access to
9655 saved_command_line.
9656 * command.h (repeat_previous, get_saved_command_line,
9657 save_command_line): New declarations.
9658 (dont_repeat): Add comment.
9659
bfcdb852
TT
96602019-05-30 Tom Tromey <tromey@adacore.com>
9661
9662 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9663 Fix comment.
9664 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9665
0ef209f2
JV
96662019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9667
9668 PR cli/24587
9669 * completer.c (complete): Initialize variable word.
9670
955b06fa
SDJ
96712019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9672
9673 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9674 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9675 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9676 'body' is NULL to the outter 'if', protecting the '!is_define'
9677 situation as well.
9678
fa9c3fa0
TT
96792019-05-29 Tom Tromey <tromey@adacore.com>
9680
9681 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9682 (dwarf_unknown): New function.
9683 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9684 (dwarf_type_encoding_name): Use dwarf_unknown.
9685
4330d61d
TT
96862019-05-29 Tom Tromey <tromey@adacore.com>
9687
9688 PR c++/20020:
9689 * cp-valprint.c (cp_print_value_fields): Call
9690 cp_print_static_field inside "try".
9691
33a6bc35
TT
96922019-05-29 Tom Tromey <tromey@adacore.com>
9693
9694 * inflow.c (struct terminal_info): Add default operator=.
9695 * configure: Rebuild.
9696 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9697 -Wdeprecated-copy-dtor, -Wredundant-move.
9698
000439d5
TT
96992019-05-29 Tom Tromey <tromey@adacore.com>
9700
9701 * NEWS: Add entry.
9702 * infcmd.c (print_return_value_1): Handle finish_print
9703 option.
9704 (show_print_finish): New function.
9705 (_initialize_infcmd): Add "set/show print finish" commands.
9706 * valprint.c (user_print_options): Initialize new member.
9707 * valprint.h (struct value_print_options) <finish_print>: New
9708 member.
9709
c0e70c62
TT
97102019-05-28 Tom Tromey <tromey@adacore.com>
9711
9712 * ada-lang.c (ada_remove_Xbn_suffix)
9713 (find_old_style_renaming_symbol)
9714 (parse_old_style_renaming): Remove.
9715 (ada_find_renaming_symbol): Don't call
9716 find_old_style_renaming_symbol.
9717 (ada_is_renaming_symbol): Rename from
9718 ada_find_renaming_symbol. Remove "block" parameter. Return
9719 bool. Now static.
9720 (ada_read_var_value): Update and simplify.
9721 * ada-exp.y (write_var_or_type): Remove old code.
9722
766f8836
AH
97232019-05-28 Alan Hayward <alan.hayward@arm.com>
9724
68255adc 9725 PR gdb/25010
766f8836
AH
9726 * event-top.c: Remove include comment.
9727 * inflow.c (class scoped_ignore_sigttou): Move from here...
9728 * inflow.h (class scoped_ignore_sigttou): ...to here.
9729 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9730 * top.c: Remove include comment.
9731
eb41253a
TT
97322019-05-27 Tom Tromey <tom@tromey.com>
9733
9734 * NEWS: Fix typo.
9735
4ca51187
TT
97362019-05-22 Tom Tromey <tromey@adacore.com>
9737
9738 * target.c (target_follow_exec): Constify parameter.
9739 * target-delegates.c: Rebuild.
9740 * remote.c (remote_target::follow_exec): Constify parameter.
9741 * infrun.c (follow_exec): Constify parameter.
9742 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9743 (target_follow_exec): Likewise.
9744
8fca4da0
AH
97452019-05-22 Alan Hayward <alan.hayward@arm.com>
9746
9747 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9748 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9749
b7060614
AH
97502019-05-22 Alan Hayward <alan.hayward@arm.com>
9751
9752 * NEWS: Add debugredirect and testsuite sections.
9753
0a5954bd
SC
97542019-05-22 Simon Cook <simon.cook@embecosm.com>
9755
9756 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9757 target descriptions using exclusively floating point register name
9758 aliases.
9759
dc42e902
AB
97602019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9761
9762 PR gdb/18644:
9763 * f-lang.c (build_fortran_types): Handle the case where
9764 gdbarch_floatformat_for_type returns a nullptr.
9765
fb7806c7
TV
97662019-05-21 Tom de Vries <tdevries@suse.de>
9767
9768 PR cli/24587
9769 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9770
34d11c68
AB
97712019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9772
9773 PR gdb/18644:
9774 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9775 16-byte floats.
9776 * i386-tdep.c (i386_floatformat_for_type): Use
9777 floatformats_ia64_quad for the 16-byte floating point component
9778 within a fortran 32-byte complex number.
9779
122cf0f2
AB
97802019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9781
9782 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9783 delete default constructor.
9784 (find_partial_die): Update to return const struct.
9785 (partial_die_parent_scope): Move variable declaration into scope
9786 of its use and change its type to auto.
9787 (guess_partial_die_structure_name): Likewise.
9788 (partial_die_info::fixup): Likewise.
9789
33d0e35a
TT
97902019-05-17 Tom Tromey <tromey@adacore.com>
9791
9792 * source.c (find_and_open_source): Remove cast.
9793
a45575b0
TT
97942019-05-17 Tom Tromey <tromey@adacore.com>
9795
9796 * annotate.c (annotate_source): Make "filename" const.
9797 * annotate.h (annotate_source): Use const.
9798
81f47ac2
AH
97992019-05-17 Alan Hayward <alan.hayward@arm.com>
9800
9801 * disasm.c (set_disassembler_options): Send errors to stderr.
9802
ca1285d1
AH
98032019-05-17 Alan Hayward <alan.hayward@arm.com>
9804
9805 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9806 (cli_interp_base::set_logging): Check debug_redirect.
9807 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9808 * cli/cli-logging.c (debug_redirect): Add static variable.
9809 (pop_output_files): Add default param.
9810 (handle_redirections): Print debug setting.
9811 (show_logging_command): Likewise.
9812 (_initialize_cli_logging): Add debugredirect command.
9813 * interps.c (current_interp_set_logging): Add debug_redirect
9814 parameter.
9815 * interps.h (set_logging): Add debug_redirect parameter.
9816 (current_interp_set_logging): Likewise.
9817 * mi/mi-common.h: Likewise.
9818 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9819
98202019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9821 Tom Tromey <tromey@adacore.com>
9822
9823 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9824 directly.
9825 * cli/cli-interp.h (make_logging_output): Remove declaration.
9826 * cli/cli-logging.c (make_logging_output): Remove function.
9827 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9828 directly.
9829 * ui-file.c (tee_file::tee_file): Remove bools.
9830 (tee_file::~tee_file): Remove deletes.
9831 * ui-file.h (tee_file): Remove bools.
9832
26648588
JV
98332019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9834
9835 * mi/mi-cmds.h (mi_cmd_complete): New function.
9836 * mi/mi-main.c (mi_cmd_complete): Likewise.
9837 * mi/mi-cmds.c: Define new MI command -complete.
9838 * NEWS: Mention new -complete command.
9839
6e035501
JV
98402019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9841
9842 * completer.h (complete): New function.
9843 * completer.c (complete): Likewise.
9844 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9845 function defined in completer.h.
9846
7d0e2ece
JV
98472019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9848
e79be6e5 9849 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9850
fb816e8b
TV
98512019-05-17 Tom de Vries <tdevries@suse.de>
9852
9853 PR gdb/24094
9854 * dwarf2read.c (struct cu_partial_die_info): New struct.
9855 (find_partial_die): Return cu_partial_die_info.
9856 (partial_die_parent_scope, guess_partial_die_structure_name)
9857 (partial_die_info::fixup): Handle new return type of find_partial_die.
9858
677052f2
SDJ
98592019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9860
a1726c38 9861 PR breakpoints/24541
677052f2
SDJ
9862 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9863 "std::string", simplifying the algorithm.
9864
f3da9116
SDJ
98652019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9866
9867 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9868 (stap_static_probe_ops::get_probes): Likewise.
9869
f1bb75ab
SDJ
98702019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9871
9872 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9873 '-')" and "else if".
9874 (stap_parse_single_operand): Join checks for
9875 "gdbarch_stap_parse_special_token_p" and
9876 "gdbarch_stap_parse_special_token" in the same "if" statement.
9877 Invert check when verifying for operation on register
9878 displacement.
9879
3ca58cde
SDJ
98802019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9881
9882 * stap-probe.c (stap_get_opcode): Update comment.
9883 (stap_get_expected_argument_type): Likewise.
9884 (handle_stap_probe): Likewise.
9885
af2d9bee
SDJ
98862019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9887
9888 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9889 return type to 'bool'. Adjust comment. Use 'bool' when
9890 appropriate.
9891 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9892 * stap-probe.c (stap_parse_argument_1): Likewise.
9893 (stap_is_operator): Likewise.
9894 (stap_is_generic_prefix): Likewise.
9895 (stap_is_register_prefix): Likewise.
9896 (stap_is_register_indirection_prefix): Likewise.
9897 (stap_is_integer_prefix): Likewise.
9898 (stap_generic_check_suffix): Likewise.
9899 (stap_check_integer_suffix): Likewise.
9900 (stap_check_register_suffix): Likewise.
9901 (stap_check_register_indirection_suffix): Likewise.
9902 (stap_parse_register_operand): Likewise.
9903 (stap_parse_single_operand): Likewise.
9904 (stap_parse_argument_1): Likewise.
9905 (stap_probe::get_argument_count): Likewise.
9906 (stap_is_operator): Likewise.
9907
61c9c421
TT
99082019-05-16 Tom Tromey <tromey@adacore.com>
9909
9910 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
9911 keyword to foreach.
9912
9ddc1af1
SM
99132019-05-15 Simon Marchi <simon.marchi@efficios.com>
9914
9915 * linux-thread-db.c (try_thread_db_load_1): Change return type
9916 to bool.
9917 (try_thread_db_load): Likewise.
9918 (try_thread_db_load_from_pdir_1): Likewise.
9919 (try_thread_db_load_from_pdir): Likewise.
9920 (try_thread_db_load_from_sdir): Likewise.
9921 (try_thread_db_load_from_dir): Likewise.
9922 (thread_db_load_search): Likewise.
9923 (has_libpthread): Likewise.
9924 (thread_db_load): Likewise.
9925
7bede828
SDJ
99262019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
9927
9928 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9929 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
9930 NULL, and complain/return if that's the case.
9931
c5358db4
JD
99322019-05-15 John Darrington <john@darrington.wattle.id.au>
9933
9934 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
9935 (advance, posn, abstract_read_memory): New functions.
9936 [struct mem_read_abstraction]: New struct.
9937 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
9938
c408a94f
TT
99392019-05-14 Tom Tromey <tromey@adacore.com>
9940
9941 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
9942 value is not lval_memory.
9943
e7bd7fba
TT
99442019-05-14 Tom Tromey <tromey@adacore.com>
9945
9946 * solib.c (info_sharedlibrary_command): Style the file name.
9947
a6d0f249
AH
99482019-05-14 Alan Hayward <alan.hayward@arm.com>
9949
9950 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
9951 (aarch64_vnv_type): Likewise.
9952 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
9953 * common/tdesc.c: Likewise.
9954 * common/tdesc.h (enum tdesc_type_kind): Likewise.
9955 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
9956 * features/aarch64-fpu.xml: Add ieee half view.
9957 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
9958 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
9959 * gdbtypes.h (struct builtin_type): Likewise.
9960 (struct objfile_type): Likewise.
9961
66b8bb74
SM
99622019-05-12 Paul Naert <paul.naert@polymtl.ca>
9963
9964 * language.c (language_sniff_from_mangled_name): Fix "langauge"
9965 typo.
9966 * location.h (string_to_event_location): Likewise.
9967
21c219fd
JB
99682019-05-11 Joel Brobecker <brobecker@adacore.com>
9969
9970 GDB 8.3 released.
9971
13674803
SM
99722019-05-10 Simon Marchi <simon.marchi@efficios.com>
9973
9974 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
9975 New variable declaration.
9976 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
9977 New variable.
9978 (print_one_breakpoint): Use ui_out::test_flags and new global
9979 variable to compute use_fixed_output.
9980 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
9981 Remove.
9982 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
9983 (mi_multi_location_breakpoint_output_fixed): Remove.
9984 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
9985 new variable.
9986 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
9987 fix_multi_location_breakpoint_output flag if version >= 3.
9988 * ui-out.h (enum ui_out_flag)
9989 <fix_multi_location_breakpoint_output>: New enumerator.
9990
a9eac7f9
SM
99912019-05-10 Simon Marchi <simon.marchi@efficios.com>
9992
9993 * contrib/cc-with-tweaks.sh: Validate dwz's work.
9994
71bed2db
TT
99952019-05-10 Tom Tromey <tromey@adacore.com>
9996
9997 * ada-lang.c (catch_ada_completer): New function.
9998 (_initialize_ada_language): Use it.
9999
24c54127
TT
100002019-05-10 Tom Tromey <tromey@adacore.com>
10001
10002 * thread.c (print_thread_info): Make "requested_threads" const.
10003 * gdbthread.h (print_thread_info): Make "requested_threads"
10004 const.
10005 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10006 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10007
7a102139
TT
100082019-05-08 Tom Tromey <tom@tromey.com>
10009
10010 * gdbtypes.c (objfile_type_data): Change type.
10011 (objfile_type, _initialize_gdbtypes): Update.
10012
924d79e2
TT
100132019-05-08 Tom Tromey <tom@tromey.com>
10014
10015 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10016 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10017 (_initialize_dwarf2_frame): Update.
10018
4c58e337
TT
100192019-05-08 Tom Tromey <tom@tromey.com>
10020
10021 * objc-lang.c (objc_objfile_data): Change type.
10022 (find_methods): Update.
10023 (_initialize_objc_lang): Remove.
10024
d772d2ab
TT
100252019-05-08 Tom Tromey <tom@tromey.com>
10026
10027 * stabsread.c (rs6000_builtin_type_data): Change type.
10028 (rs6000_builtin_type, _initialize_stabsread): Update.
10029
d11d83f4
TT
100302019-05-08 Tom Tromey <tom@tromey.com>
10031
10032 * mips-tdep.c (mips_pdr_data): Remove.
10033 (_initialize_mips_tdep): Update.
10034
9a73f0ad
TT
100352019-05-08 Tom Tromey <tom@tromey.com>
10036
10037 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10038 (hppa_init_objfile_priv_data, read_unwind_info)
10039 (find_unwind_entry, _initialize_hppa_tdep): Update.
10040
8127a2fa
TT
100412019-05-08 Tom Tromey <tom@tromey.com>
10042
10043 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10044 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10045 on obstack.
10046 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10047
91d3055d
TT
100482019-05-08 Tom Tromey <tom@tromey.com>
10049
10050 * mdebugread.c (basic_type_data): Change type.
10051 (basic_type, _initialize_mdebugread): Update.
10052
31930bd3
TT
100532019-05-08 Tom Tromey <tom@tromey.com>
10054
10055 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10056
bdb3ed9e
TT
100572019-05-08 Tom Tromey <tom@tromey.com>
10058
10059 * nto-tdep.c (nto_inferior_data_reg): Change type.
10060 (nto_inferior_data): Update.
10061 (nto_inferior_data_cleanup, nto_new_inferior_data)
10062 (_initialize_nto_tdep): Remove.
10063 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10064
f37b313d
TT
100652019-05-08 Tom Tromey <tom@tromey.com>
10066
10067 * ada-lang.c (struct ada_inferior_data): Add initializers.
10068 (ada_inferior_data): Change type.
10069 (ada_inferior_data_cleanup): Remove.
10070 (get_ada_inferior_data, ada_inferior_exit)
10071 (struct ada_pspace_data): Add initializers, destructor.
10072 (ada_pspace_data_handle): Change type.
10073 (get_ada_pspace_data): Update.
10074 (ada_pspace_data_cleanup): Remove.
10075
24699405
TT
100762019-05-08 Tom Tromey <tom@tromey.com>
10077
10078 * coffread.c (struct coff_symfile_info): Add initializers.
10079 (coff_objfile_data_key): Move lower. Change type.
10080 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10081 Update.
10082 (coff_free_info): Remove.
10083
d4e05d2f
TT
100842019-05-08 Tom Tromey <tom@tromey.com>
10085
10086 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10087 (fbsd_pspace_data_handle): Move lower. Change type.
10088 (get_fbsd_pspace_data): Update.
10089 (fbsd_pspace_data_cleanup): Remove.
10090 (_initialize_fbsd_tdep): Update.
10091
14ef6690
TT
100922019-05-08 Tom Tromey <tom@tromey.com>
10093
10094 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10095 (get_ada_tasks_pspace_data): Update.
10096 (ada_tasks_pspace_data_cleanup): Remove.
10097 (_initialize_tasks): Update.
10098 (ada_tasks_inferior_data_handle): Change type.
10099 (get_ada_tasks_inferior_data): Update.
10100 (ada_tasks_inferior_data_cleanup): Remove.
10101 (struct ada_tasks_pspace_data): Add initializers.
10102
814cf43a
TT
101032019-05-08 Tom Tromey <tom@tromey.com>
10104
10105 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10106 * symfile-debug.c (debug_sym_get_probes): Change type.
10107 * stap-probe.c (handle_stap_probe):
10108 (stap_static_probe_ops::get_probes): Change type.
10109 * probe.h (class static_probe_ops) <get_probes>: Change type.
10110 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10111 (parse_probes_in_pspace): Update.
10112 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10113 Update.
10114 (any_static_probe_ops::get_probes): Change type.
10115 * elfread.c (elfread_data): New typedef.
10116 (probe_key): Change type.
10117 (elf_get_probes): Likewise. Update.
10118 (probe_key_free): Remove.
10119 (_initialize_elfread): Update.
10120 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10121 Change type.
10122 (dtrace_process_dof_probe, dtrace_process_dof)
10123 (dtrace_static_probe_ops::get_probe): Change type.
10124
02dc647e
TT
101252019-05-08 Tom Tromey <tom@tromey.com>
10126
10127 * xcoffread.c (struct xcoff_symfile_info): Rename from
10128 coff_symfile_info. Add initializers.
10129 (xcoff_objfile_data_key): Move lower. Change type.
10130 (XCOFF_DATA): Rewrite.
10131 (xcoff_free_info): Remove.
10132 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10133 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10134 (xcoff_initial_scan): Update.
10135
09232438
TT
101362019-05-08 Tom Tromey <tom@tromey.com>
10137
10138 * solib-svr4.c (struct svr4_info): Add initializers and
10139 destructor.
10140 <probes_table>: Now an htab_up.
10141 (solib_svr4_pspace_data): Change type.
10142 (free_probes_table): Simplify.
10143 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10144 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10145 (probes_table_remove_objfile_probes, register_solib_event_probe)
10146 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10147 (_initialize_svr4_solib): Update.
10148
7b4a314f
TT
101492019-05-08 Tom Tromey <tom@tromey.com>
10150
10151 * remote.c (remote_pspace_data): Change type.
10152 (remote_pspace_data_cleanup): Remove.
10153 (get_remote_exec_file, set_pspace_remote_exec_file)
10154 (_initialize_remote): Update.
10155
51d3063a
TT
101562019-05-08 Tom Tromey <tom@tromey.com>
10157
10158 * breakpoint.c (breakpoint_objfile_key): Change type.
10159 (get_breakpoint_objfile_data): Update.
10160 (free_breakpoint_objfile_data): Remove.
10161 (_initialize_breakpoint): Update.
10162
89fb8848
TT
101632019-05-08 Tom Tromey <tom@tromey.com>
10164
10165 * linux-tdep.c (struct linux_info): Add initializers.
10166 (linux_inferior_data): Move. Change type.
10167 (invalidate_linux_cache_inf): Update.
10168 (linux_inferior_data_cleanup): Remove.
10169 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10170
e9b89e2d
TT
101712019-05-08 Tom Tromey <tom@tromey.com>
10172
10173 * auxv.c (auxv_inferior_data): Move. Change type.
10174 (auxv_inferior_data_cleanup): Remove.
10175 (invalidate_auxv_cache_inf): Rewrite.
10176 (get_auxv_inferior_data, _initialize_auxv): Update.
10177
8c42777c
TT
101782019-05-08 Tom Tromey <tom@tromey.com>
10179
10180 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10181 (symfile_debug_objfile_data_key): Change type.
10182 (symfile_debug_installed, debug_qf_has_symbols)
10183 (debug_qf_find_last_source_symtab)
10184 (debug_qf_forget_cached_source_info)
10185 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10186 (debug_qf_print_stats, debug_qf_dump)
10187 (debug_qf_expand_symtabs_for_function)
10188 (debug_qf_expand_all_symtabs)
10189 (debug_qf_expand_symtabs_with_fullname)
10190 (debug_qf_map_matching_symbols)
10191 (debug_qf_expand_symtabs_matching)
10192 (debug_qf_find_pc_sect_compunit_symtab)
10193 (debug_qf_map_symbol_filenames)
10194 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10195 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10196 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10197 (debug_sym_read_linetable, debug_sym_relocate): Update.
10198 (symfile_debug_free_objfile): Remove.
10199 (install_symfile_debug_logging, _initialize_symfile_debug):
10200 Update.
10201
5bfd760d
TT
102022019-05-08 Tom Tromey <tom@tromey.com>
10203
10204 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10205 allocate_on_obstack.
10206 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10207 (get_dwarf2_per_objfile): Update.
10208 (set_dwarf2_per_objfile): Remove.
10209 (dwarf2_has_info, dwarf2_get_section_info): Update.
10210 (dwarf2_free_objfile): Remove.
10211 (_initialize_dwarf2_read): Update.
10212
e85e19b4
TT
102132019-05-08 Tom Tromey <tom@tromey.com>
10214
10215 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10216 initializers.
10217 <unsupported_script_warning_printed,
10218 script_not_found_warning_printed>: Now bool.
10219 (auto_load_pspace_data): Change type.
10220 (~auto_load_pspace_info): Rename from
10221 auto_load_pspace_data_cleanup.
10222 (get_auto_load_pspace_data, init_loaded_scripts_info)
10223 (clear_section_scripts, maybe_print_unsupported_script_warning)
10224 (maybe_print_script_not_found_warning, _initialize_auto_load):
10225 Update.
10226
f6aa7436
TT
102272019-05-08 Tom Tromey <tom@tromey.com>
10228
10229 * objfiles.c (objfile_pspace_info): Add destructor and
10230 initializers.
10231 (objfiles_pspace_data): Change type.
10232 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10233 (get_objfile_pspace_data): Update.
10234 (objfiles_bfd_data): Change type.
10235 (get_objfile_bfd_data): Update.
10236 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10237
6ae614f6
TT
102382019-05-08 Tom Tromey <tom@tromey.com>
10239
10240 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10241 Change type.
10242 (get_catch_syscall_inferior_data): Update.
10243 (catch_syscall_inferior_data_cleanup): Remove.
10244 (_initialize_break_catch_syscall): Update.
10245
6509b8eb
TT
102462019-05-08 Tom Tromey <tom@tromey.com>
10247
10248 * inflow.c (struct terminal_info): Add destructor and
10249 initializers.
10250 (inflow_inferior_data): Change type.
10251 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10252 (get_inflow_inferior_data, inflow_inferior_exit)
10253 (swap_terminal_info, _initialize_inflow): Update.
10254
35632941
TT
102552019-05-08 Tom Tromey <tom@tromey.com>
10256
10257 * target-dcache.c (target_dcache_cleanup): Remove.
10258 (target_dcache_aspace_key): Change type.
10259 (target_dcache_init_p, target_dcache_invalidate)
10260 (target_dcache_get, target_dcache_get_or_init)
10261 (_initialize_target_dcache): Update.
10262 * dcache.h (struct dcache_deleter): New.
10263
3017b94d
TT
102642019-05-08 Tom Tromey <tom@tromey.com>
10265
10266 * symtab.c (struct symbol_cache): Add destructor and
10267 initializers.
10268 (symbol_cache_key): Move. Change type.
10269 (make_symbol_cache, free_symbol_cache): Remove.
10270 (get_symbol_cache): Update.
10271 (symbol_cache_cleanup): Remove.
10272 (ALL_PSPACES, symbol_cache_flush)
10273 (maintenance_print_symbol_cache)
10274 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10275 Update.
10276
a32ad8c5
TT
102772019-05-08 Tom Tromey <tom@tromey.com>
10278
10279 * symtab.c (struct main_info): Add destructor and initializers.
10280 (main_progspace_key): Move. Change type.
10281 (get_main_info): Update.
10282 (main_info_cleanup): Remove.
10283 (_initialize_symtab): Update.
10284
5f6e90a0
TT
102852019-05-08 Tom Tromey <tom@tromey.com>
10286
10287 * registry.h (DECLARE_REGISTRY): Define the _key class.
10288
1bd0c6e4
AB
102892019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10290
10291 * NEWS: Merge two 'New commands' sections.
10292
2228ef77
XR
102932019-05-08 Joel Brobecker <brobecker@adacore.com>
10294
10295 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10296 parameter and use Ada language definition instead.
10297 (ada_val_print_ptr): Remove unused language parameter.
10298 (ada_val_print_num): Remove language parameter and use Ada language
10299 definition instead.
10300 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10301 parameter.
10302 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10303 parameter and use Ada language definition instead.
10304 (ada_val_print_1): Update all ada_val_print_xxx calls.
10305 Remove language parameter.
10306 (ada_val_print): Update ada_val_print_1 call.
10307
60fcc1c3
TT
103082019-05-08 Tom Tromey <tromey@adacore.com>
10309
10310 * remote.c (remote_hw_watchpoint_limit)
10311 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10312 Now static.
10313
ed2b7c17
TT
103142019-05-08 Tom Tromey <tromey@adacore.com>
10315
10316 * maint.c (_initialize_maint_cmds): Move initialization code to
10317 remote.c.
10318 (watchdog, show_watchdog): Move to remote.c.
10319 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10320 "watchdog" static.
10321 (_initialize_remote): Move initialization code from maint.c.
10322 * defs.h (watchdog): Don't declare.
10323
b0be6c91
TT
103242019-05-08 Tom Tromey <tromey@adacore.com>
10325
10326 * tui/tui-interp.c: Include main.h.
10327 * interps.c: Include main.h.
10328 * main.h (interpreter_p): Declare.
10329 * defs.h (interpreter_p): Don't declare.
10330
587ee17b
TT
103312019-05-08 Tom Tromey <tromey@adacore.com>
10332
10333 * dwarf2loc.c: Include dwarf2read.h.
10334 * defs.h (read_unsigned_leb128): Don't declare.
10335 * dwarf2read.h (read_unsigned_leb128): Declare.
10336
ca1df239
TT
103372019-05-08 Tom Tromey <tromey@adacore.com>
10338
10339 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10340 method.
10341
99f20f08
TT
103422019-05-08 Tom Tromey <tromey@adacore.com>
10343
10344 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10345 when no wrap column is set.
10346
80e55b13
TT
103472019-05-08 Tom Tromey <tromey@adacore.com>
10348
10349 * c-lang.c (c_get_string): Handle non-C-style arrays.
10350
9d3421af
TT
103512019-05-08 Tom Tromey <tromey@adacore.com>
10352
10353 * typeprint.c (print_offset_data::update): Print the bit offset,
10354 not the number of bits remaining.
10355
844333e2
TT
103562019-05-08 Tom Tromey <tromey@adacore.com>
10357
10358 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10359 padding at end of comment.
10360
988915ee
TT
103612019-05-08 Tom Tromey <tromey@adacore.com>
10362
10363 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10364 Compare main types.
10365
26bfd823
TT
103662019-05-06 Tom Tromey <tom@tromey.com>
10367
10368 * common/scoped_mmap.c: Include common-defs.h.
10369 * common/scoped_mmap.h: Don't include config.h.
10370
89055eaa
TT
103712019-05-04 Tom Tromey <tom@tromey.com>
10372
10373 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10374 (struct aarch64_call_info): Add initializers.
10375 <si>: Now a std::vector.
10376 (pass_on_stack, aarch64_push_dummy_call): Update.
10377
5da01df5
TT
103782019-05-04 Simon Marchi <simon.marchi@efficios.com>
10379 Tom Tromey <tom@tromey.com>
10380
10381 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10382 (ppc_threads): Now a std::vector. Now static.
10383 (hwdebug_find_thread_points_by_tid)
10384 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10385 Update.
10386
fbdf05a1
TT
103872019-05-04 Tom Tromey <tom@tromey.com>
10388
10389 * arc-tdep.c (arc_tdesc_init): Return bool.
10390
06d16ec9
TT
103912019-05-04 Tom Tromey <tom@tromey.com>
10392
10393 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10394 Use gdb_assert_not_reached.
10395
9c056022
TT
103962019-05-04 Tom Tromey <tom@tromey.com>
10397
10398 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10399 "false".
10400
fa9c2a59
TT
104012019-05-04 Tom Tromey <tom@tromey.com>
10402
10403 * arc-tdep.c (arc_tdesc_init): Use bool.
10404
e2eb806a
TT
104052019-05-04 Tom Tromey <tom@tromey.com>
10406
10407 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10408
6fe87677
TT
104092019-05-04 Tom Tromey <tom@tromey.com>
10410
10411 * cli/cli-cmds.c (valid_command_p): Return bool.
10412
7f008c9e
TT
104132019-05-04 Tom Tromey <tom@tromey.com>
10414
10415 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10416 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10417
b6484282
RT
104182019-05-04 Raul Tambre <raul@tambre.ee>
10419
10420 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10421 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10422 operator for comparison.
10423
af97b416
TT
104242019-05-04 Tom Tromey <tom@tromey.com>
10425
10426 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10427 (lookup_partial_symbol, print_partial_symbols)
10428 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10429 (psymbol_compare): Update.
10430 (add_psymbol_to_bcache): Clear the entire psymbol.
10431 (maintenance_check_psymtabs): Update.
10432 * psympriv.h (struct partial_symbol): Don't derive from
10433 general_symbol_info.
10434 <obj_section, unrelocated_address, address,
10435 set_unrelocated_address>: Update.
10436 <ginfo>: New member.
10437 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10438 (debug_names::write_psymbols): Update.
10439
9d6d4be8
TV
104402019-05-04 Tom de Vries <tdevries@suse.de>
10441
10442 * contrib/cc-with-tweaks.sh: Support -n arg.
10443
66452beb
PW
104442019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10445
10446 * corelow.c (core_target::detach): Ensure frame cache and
10447 register caches are cleared.
10448 inferior.c (exit_inferior_1): Likewise.
10449
bde09ab7
TT
104502019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10451 Tom Tromey <tom@tromey.com>
10452
10453 * dictionary.c (collate_pending_symbols_by_language): Remove
10454 "struct" from foreach.
10455 * symtab.c (lookup_global_symbol_from_objfile)
10456 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10457 foreach.
10458 * ser-tcp.c (net_open): Remove "struct" from foreach.
10459 * objfiles.c (objfile_relocate, objfile_rebase)
10460 (objfile_has_symbols): Remove "struct" from foreach.
10461 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10462 from foreach.
10463 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10464 foreach.
10465 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10466 "struct" from foreach.
10467 * ada-lang.c (create_excep_cond_exprs)
10468 (ada_exception_catchpoint_cond_string): Remove "struct" from
10469 foreach.
10470
222a8d25
TT
104712019-05-03 Tom Tromey <tromey@adacore.com>
10472
10473 * ada-exp.y (convert_char_literal): Check suffix of each
10474 enumerator.
10475
fcd60b84
DP
104762019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10477
10478 PR ada/21406:
10479 * ada-exp.y (yywrap): Don't define.
10480 * ada-lex.l (%option): Add noyywrap
10481 (yywrap): Remove.
10482
5f2459c2
EZ
104832019-05-03 Eli Zaretskii <eliz@gnu.org>
10484
353ea2d1
EZ
10485 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10486 _WIN32_WINNT to the XP level, unless already defined to a higher
10487 level.
10488
10489 * unittests/parse-connection-spec-selftests.c:
10490 * ser-tcp.c:
10491 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10492 override.
10493
5f2459c2
EZ
10494 * symfile.c (find_separate_debug_file): Remove colon from the
10495 drive spec of DOS/Windows file names of the target, so that the
10496 file name produced from DEBUGDIR and the target's directory will
10497 be valid on DOS/Windows systems.
10498
80062eb9
AB
104992019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10500
10501 * rust-lang.c (val_print_struct): Handle printing structures
10502 containing strings.
10503
b8c05e85
TT
105042019-05-02 Tom Tromey <tromey@adacore.com>
10505
10506 * valarith.c (_initialize_valarith): Remove.
10507
4504bbde
TT
105082019-05-01 Tom Tromey <tromey@adacore.com>
10509
10510 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10511 bitfields.
10512
d48e62f4
TT
105132019-05-01 Tom Tromey <tromey@adacore.com>
10514
10515 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10516 for big-endian copies.
10517
15f18d14
AT
105182019-04-30 Ali Tamur <tamur@google.com>
10519 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10520 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10521 (read_3_bytes): New function.
10522
ab4ee614
JB
105232019-04-30 Joel Brobecker <brobecker@adacore.com>
10524
10525 * windows-nat.c (main_thread_id): Delete.
10526 (handle_output_debug_string): Replace main_thread_id by
10527 current_event.dwThreadId.
10528 (fake_create_process): Likewise.
10529 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10530 Do not set main_thread_id.
10531 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10532 current_event.dwThreadId.
10533 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10534
8ed5b76e
JB
105352019-04-30 Joel Brobecker <brobecker@adacore.com>
10536
10537 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10538 Use current_event.dwThreadId instead of main_thread_id.
10539
2ff0a947
TT
105402019-04-30 Tom Tromey <tromey@adacore.com>
10541
10542 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10543 (create_excep_cond_exprs): Iterate over program spaces.
10544 (ada_exception_catchpoint_cond_string): Examine all minimal
10545 symbols for exception types.
10546
a776957c
TT
105472019-04-30 Tom Tromey <tromey@adacore.com>
10548
10549 PR c++/24470:
10550 * dwarf2read.c (process_structure_scope): Handle case where type
10551 has template parameters but no symbol was created.
10552
bc68014d
AB
105532019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10554 Chris January <chris.january@arm.com>
10555
10556 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10557 qualifier.
10558 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10559
f1fdc960
AB
105602019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10561
10562 * f-typeprint.c (f_print_type): Update rules for printing
10563 whitespace.
10564 (f_type_print_varspec_suffix): Likewise.
10565
bf7a4de1
AB
105662019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10567 Chris January <chris.january@arm.com>
10568
10569 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10570 function arguments.
10571
bbe75b9d
AB
105722019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10573
10574 * f-lang.c (build_fortran_types): Change name of void type to
10575 lower case.
10576 * f-typeprint.c (f_type_print_base): Print the name of the void
10577 type, rather than a fixed string.
10578 * f-valprint.c (f_decorations): Use lower case void string.
10579
1db455a7
AB
105802019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10581 Chris January <chris.january@arm.com>
10582
10583 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10584 types for Fortran.
10585
b6d03bb2
AB
105862019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10587 Chris January <chris.january@arm.com>
10588 David Lecomber <david.lecomber@arm.com>
10589
10590 * f-exp.y (BINOP_INTRINSIC): New token.
10591 (exp): New parser rule handling BINOP_INTRINSIC.
10592 (f77_keywords): Add new builtin procedures.
10593 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10594 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10595 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10596 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10597 (print_unop_subexp_f): New function.
10598 (print_binop_subexp_f): New function.
10599 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10600 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10601 (dump_subexp_body_f): Likewise.
10602 (operator_check_f): Likewise.
10603 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10604 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10605
83228e93
AB
106062019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10607
10608 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10609 UNOP_KIND.
10610 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10611 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10612 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10613 (operator_length_f): New fuction.
10614 (print_subexp_f): New function.
10615 (op_name_f): New function.
10616 (dump_subexp_body_f): New function.
10617 (operator_check_f): New function.
10618 (exp_descriptor_f): Replace standard expression handling functions
10619 with new functions.
10620 * gdb/fortran-operator.def: New file.
10621 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10622 * gdb/std-operator.def: Remove UNOP_KIND.
10623
6fdcd7cc
AB
106242019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10625
10626 * std-operator.def: Remove unbalanced, stray double quote
10627 character.
10628
2e62ab40
AB
106292019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10630 Chris January <chris.january@arm.com>
10631 Daniel Everett <daniel.everett@arm.com>
10632 Nick Forrington <nick.forrington@arm.com>
10633 Richard Bunt <richard.bunt@arm.com>
10634
10635 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10636 of depth when printing anonymous structs or unions.
10637 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10638 Don't print either the top-level value, or the children if the
10639 max-depth is exceeded.
10640 (ppscm_print_children): When printing the key of a map, allow one
10641 extra level of depth.
10642 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10643 print either the top-level value, or the children if the max-depth
10644 is exceeded.
10645 (print_children): When printing the key of a map, allow one extra
10646 level of depth.
10647 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10648 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10649 (user_print_options): Initialise max_depth field.
10650 (val_print_scalar_or_string_type_p): New function.
10651 (val_print): Check to see if the max depth has been reached.
10652 (val_print_check_max_depth): Define new function.
10653 (show_print_max_depth): New function.
10654 (_initialize_valprint): Add 'print max-depth' option.
10655 * valprint.h (struct value_print_options) <max_depth>: New field.
10656 (val_print_check_max_depth): Declare new function.
10657 * NEWS: Document new feature.
10658
4be290b2
AB
106592019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10660
10661 * ada-lang.c (ada_language_defn): Initialise new field.
10662 * c-lang.c (c_is_string_type_p): New function.
10663 (c_language_defn): Initialise new field.
10664 (cplus_language_defn): Initialise new field.
10665 (asm_language_defn): Initialise new field.
10666 (minimal_language_defn): Initialise new field.
10667 * c-lang.h (c_is_string_type_p): Declare new function.
10668 * d-lang.c (d_language_defn): Initialise new field.
10669 * f-lang.c (f_is_string_type_p): New function.
10670 (f_language_defn): Initialise new field.
10671 * go-lang.c (go_is_string_type_p): New function.
10672 (go_language_defn): Initialise new field.
10673 * language.c (default_is_string_type_p): New function.
10674 (unknown_language_defn): Initialise new field.
10675 (auto_language_defn): Initialise new field.
10676 * language.h (struct language_defn) <la_is_string_type_p>: New
10677 member variable.
10678 (default_is_string_type_p): Declare new function.
10679 * m2-lang.c (m2_language_defn): Initialise new field.
10680 * objc-lang.c (objc_language_defn): Initialise new field.
10681 * opencl-lang.c (opencl_language_defn): Initialise new field.
10682 * p-lang.c (pascal_is_string_type_p): New function.
10683 (pascal_language_defn): Initialise new field.
10684 * rust-lang.c (rust_is_string_type_p): New function.
10685 (rust_language_defn): Initialise new field.
10686
721b08c6
AB
106872019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10688
10689 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10690 New field.
10691 * ada-lang.c (ada_language_defn): Initialise new field.
10692 * c-lang.c (c_language_defn): Likewise.
10693 (cplus_language_defn): Likewise.
10694 (asm_language_defn): Likewise.
10695 (minimal_language_defn): Likewise.
10696 * d-lang.c (d_language_defn): Likewise.
10697 * f-lang.c (f_language_defn): Likewise.
10698 * go-lang.c (go_language_defn): Likewise.
10699 * language.c (unknown_language_defn): Likewise.
10700 (auto_language_defn): Likewise.
10701 * m2-lang.c (m2_language_defn): Likewise.
10702 * objc-lang.c (objc_language_defn): Likewise.
10703 * opencl-lang.c (opencl_language_defn): Likewise.
10704 * p-lang.c (pascal_language_defn): Likewise.
10705 * rust-lang.c (rust_language_defn): Likewise.
10706
fc913e53
AB
107072019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10708
10709 * ada-lang.c (ada_is_character_type): Change return type to bool.
10710 (ada_is_string_type): Likewise.
10711 * ada-lang.h (ada_is_character_type): Update declaration
10712 (ada_is_string_type): Likewise.
10713
fa731fa0
PW
107142019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10715
10716 Support style in 'frame|thread apply'
10717
10718 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10719 * record.c (record_start, record_stop): Update callers of
10720 execute_command_to_string with false.
10721 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10722 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10723 methods.
10724 (class string_file): New constructor with term_out parameter.
10725 Override methods term_out and can_emit_style_escape. New member
10726 term_out.
10727 (class stdio_file): Override can_emit_style_escape.
10728 (class tee_file): Override term_out and can_emit_style_escape.
10729 * utils.h (can_emit_style_escape): Remove.
10730 * utils.c (can_emit_style_escape): Likewise.
10731 Update all callers of can_emit_style_escape (SOMESTREAM) to
10732 SOMESTREAM->can_emit_style_escape.
10733 * source-cache.c (source_cache::get_source_lines): Likewise.
10734 * stack.c (frame_apply_command_count): Call execute_command_to_string
10735 passing the term_out characteristic of the current gdb_stdout.
10736 * thread.c (thr_try_catch_cmd): Likewise.
10737 * top.c (execute_command_to_string): pass term_out parameter
10738 to construct the string_file for the command output.
10739 * ui-file.c (term_cli_styling): New function (most code moved
10740 from utils.c can_emit_style_escape).
10741 (string_file::string_file, string_file::can_emit_style_escape,
10742 stdio_file::can_emit_style_escape, tee_file::term_out,
10743 tee_file::can_emit_style_escape): New functions.
10744
136afab8
PW
107452019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10746
10747 * NEWS: Mention the new set|show may-call-functions.
10748 * infcall.c (may_call_functions_p): New variable.
10749 (show_may_call_functions_p): New function.
10750 (call_function_by_hand_dummy): Throws an error if not
10751 may-call-functions.
10752 (_initialize_infcall): Call add_setshow_boolean_cmd for
10753 may-call-functions.
10754
725cbb63
KS
107552019-04-25 Keith Seitz <keiths@redhat.com>
10756
10757 PR c++/24367
10758 * cp-support.c (inspect_type): Don't attempt substitutions
10759 of symbol with the same name.
10760
3d1cbb78
TT
107612019-04-25 Tom Tromey <tromey@adacore.com>
10762
10763 PR gdb/24475:
10764 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10765 static.
10766
94aeb44b
TT
107672019-04-25 Tom Tromey <tromey@adacore.com>
10768
10769 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10770 rvalue reference.
10771 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10772 (gdb_xml_parser::parse): Use std::move.
10773 * python/python-internal.h (gdbpy_convert_exception): Take a const
10774 reference.
10775 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10776 std::move.
10777 * python/py-utils.c (gdbpy_convert_exception): Take a const
10778 reference.
10779 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10780 Use std::move.
10781 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10782 Use std::move.
10783 * mi/mi-main.c (mi_print_exception): Take a const reference.
10784 * main.c (handle_command_errors): Take a const reference.
10785 * linespec.c (parse_linespec): Use std::move.
10786 * infcall.c (run_inferior_call): Use std::move.
10787 (call_function_by_hand_dummy): Use std::move.
10788 * exec.c (try_open_exec_file): Use std::move.
10789 * exceptions.h (exception_print, exception_fprintf)
10790 (exception_print_same): Update.
10791 * exceptions.c (print_exception, exception_print)
10792 (exception_fprintf, exception_print_same): Change parameters to
10793 const reference.
10794 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10795 * common/new-op.c: Use std::move.
10796 * common/common-exceptions.h (struct gdb_exception): Add move
10797 constructor.
10798 (struct gdb_exception_error, struct gdb_exception_quit, struct
10799 gdb_quit_bad_alloc): Change constructor to move constructor.
10800 (throw_exception): Change parameter to rvalue reference.
10801 * common/common-exceptions.c (throw_exception): Take rvalue
10802 reference.
10803 * cli/cli-interp.c (safe_execute_command): Use std::move.
10804 * breakpoint.c (insert_bp_location, location_to_sals): Use
10805 std::move.
10806
680d7fd5
TT
108072019-04-25 Tom Tromey <tromey@adacore.com>
10808
10809 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10810 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10811 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10812 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10813 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10814 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10815 guile/scm-value.c: Use unpack.
10816 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10817 gdbscm_gdb_exception.
10818 (gdbscm_throw_gdb_exception): Likewise.
10819 (struct gdbscm_gdb_exception): New.
10820 (unpack): New function.
10821 (gdbscm_wrap): Use unpack.
10822
c6fdd8b2
TT
108232019-04-25 Tom Tromey <tromey@adacore.com>
10824
10825 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10826 (gdb_rl_callback_handler): Use std::move.
10827 * common/common-exceptions.h (struct gdb_exception): Add move
10828 assignment operator.
10829 (throw_exception_sjlj): Change "exception" to const reference.
10830 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10831 (throw_exception_sjlj): Change "exception" to const reference.
10832
cc06b668
TT
108332019-04-25 Tom Tromey <tromey@adacore.com>
10834
10835 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10836 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10837 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10838 Update.
10839 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10840 Update.
10841 * mi/mi-interp.c (mi_interp::exec): Update.
10842 * linespec.c (parse_linespec): Update.
10843 * infcall.c (run_inferior_call): Update.
10844 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10845 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10846 (gdbscm_lookup_global_symbol): Update.
10847 * guile/scm-param.c (gdbscm_parameter_value): Update.
10848 * guile/scm-frame.c (gdbscm_frame_read_register)
10849 (gdbscm_frame_read_var): Update.
10850 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10851 * exec.c (try_open_exec_file): Update.
10852 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10853 (gdb_rl_callback_handler): Update.
10854 * common/common-exceptions.h (exception_none): Don't declare.
10855 * common/common-exceptions.c (exception_none): Don't define.
10856 (struct catcher) <exception>: Update.
10857 * cli/cli-interp.c (safe_execute_command): Update.
10858 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10859
cf532bd1
AT
108602019-04-25 Ali Tamur <tamur@google.com>
10861
10862 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10863 (read_attribute_value): Likewise.
10864 (dwarf2_read_addr_index): Update comment.
10865 (read_str_index): Add DW_FORM_strx.
10866 (dwarf2_string_attr): Likewise.
10867 (dwarf2_const_value_attr): Likewise.
10868 (dump_die_shallow): Likewise.
10869 (dwarf2_fetch_constant_bytes): Likewise.
10870 (skip_form_bytes): Likewise.
10871 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10872
82433e3e
SDJ
108732019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10874
10875 PR corefiles/11608
10876 PR corefiles/18187
10877 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10878 OFFSET. Verify if current mapping contains an ELF header.
10879 (linux_find_memory_regions_full): Adjust call to
10880 dump_mapping_p.
10881
723adb65
SL
108822019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10883 Kang Li <kanglictf@gmail.com>
10884
10885 PR gdb/21600
10886
10887 * dwarf2-frame.c (read_initial_length): Be consistent about using
10888 unsigned representation of length.
10889 (decode_frame_entry_1): Likewise. Check for wraparound of
10890 end pointer as well as buffer overflow.
10891
596179f7
SDJ
108922019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
10893
10894 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
10895 "vq".
10896
a59240a4
TT
108972019-04-24 Tom Tromey <tromey@adacore.com>
10898
10899 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
10900
f872fdbb
AB
109012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10902
10903 * s12z-tdep.c (s12z_unwind_pc): Delete.
10904 (s12z_unwind_sp): Delete.
10905 (s12z_gdbarch_init): Don't register deleted functions with
10906 gdbarch.
10907
b614e6f3
AB
109082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10909
10910 * rl78-tdep.c (rl78_unwind_sp): Delete.
10911 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
10912
14faed38
AB
109132019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10914
10915 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
10916 (xstormy16_unwind_pc): Delete.
10917 (xstormy16_dummy_id): Delete.
10918 (xstormy16_gdbarch_init): Don't register deleted functions with
10919 gdbarch.
10920
541aad8a
AB
109212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10922
10923 * vax-tdep.c (vax_unwind_pc): Delete.
10924 (vax_gdbarch_init): Don't register deleted function with gdbarch.
10925
29222070
AB
109262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10927
10928 * v850-tdep.c (v850_unwind_sp): Delete.
10929 (v850_unwind_pc): Delete.
10930 (v850_dummy_id): Delete.
10931 (v850_gdbarch_init): Don't register deleted functions with
10932 gdbarch.
10933
0f534d76
AB
109342019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10935
10936 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
10937 (tilegx_unwind_pc): Delete.
10938 (tilegx_unwind_dummy_id): Delete.
10939 (tilegx_gdbarch_init): Don't register deleted functions with
10940 gdbarch.
10941
1ba7b7f9
AB
109422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10943
10944 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
10945 (tic6x_dummy_id): Delete.
10946 (tic6x_gdbarch_init): Don't register deleted functions with
10947 gdbarch.
10948
d31f262c
AB
109492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10950
10951 * sparc-tdep.c (sparc_unwind_pc): Delete.
10952 (sparc32_gdbarch_init): Don't register deleted function with
10953 gdbarch.
10954
6d14d64d
AB
109552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10956
10957 * sh-tdep.c (sh_unwind_sp): Delete.
10958 (sh_unwind_pc): Delete.
10959 (sh_dummy_id): Delete.
10960 (sh_gdbarch_init): Don't register deleted functions with
10961 gdbarch.
10962
a40dde9d
AB
109632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10964
10965 * score-tdep.c (score_unwind_sp): Delete.
10966 (score_unwind_pc): Delete.
10967 (score_dummy_id): Delete.
10968 (score_gdbarch_init): Don't register deleted functions with
10969 gdbarch.
10970
47c47d69
AB
109712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10972
10973 * rx-tdep.c (rx_unwind_pc): Delete.
10974 (rx_unwind_sp): Delete.
10975 (rx_dummy_id): Delete.
10976 (rx_gdbarch_init): Don't register deleted functions with
10977 gdbarch. Update comment.
10978
833a4480
AB
109792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10980
10981 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
10982 (rs6000_dummy_id): Delete.
10983 (rs6000_gdbarch_init): Don't register deleted functions with
10984 gdbarch.
10985
3f2cef49
AB
109862019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10987
10988 * or1k-tdep.c (or1k_dummy_id): Delete.
10989 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
10990
96acf884
AB
109912019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10992
10993 * nios2-tdep.c (nios2_dummy_id): Delete.
10994 (nios2_unwind_sp): Delete.
10995 (nios2_gdbarch_init): Don't register deleted functions with
10996 gdbarch.
10997
ca0ab0aa
AB
109982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
10999
11000 * nds32-tdep.c (nds32_dummy_id): Delete.
11001 (nds32_unwind_pc): Delete.
11002 (nds32_unwind_sp): Delete.
11003 (nds32_gdbarch_init): Don't register deleted functions with
11004 gdbarch.
11005
c8259044
AB
110062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11007
11008 * msp430-tdep.c (msp430_unwind_pc): Delete.
11009 (msp430_unwind_sp): Delete.
11010 (msp430_dummy_id): Delete.
11011 (msp430_gdbarch_init): Don't register deleted functions with
11012 gdbarch.
11013
27f113c8
AB
110142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11015
11016 * moxie-tdep.c (moxie_unwind_sp): Delete.
11017 (moxie_unwind_pc): Delete.
11018 (moxie_dummy_id): Delete.
11019 (moxie_gdbarch_init): Don't register deleted functions with
11020 gdbarch.
11021
aee6c3cd
AB
110222019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11023
11024 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11025 (mn10300_unwind_pc): Delete.
11026 (mn10300_unwind_sp): Delete.
11027 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11028 mn10300_unwind_sp.
11029 (mn10300_frame_unwind_init): Don't register deleted functions with
11030 gdbarch.
11031
8e2b5aea
AB
110322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11033
11034 * mep-tdep.c (mep_unwind_pc): Delete.
11035 (mep_unwind_sp): Delete.
11036 (mep_dummy_id): Delete.
11037 (mep_gdbarch_init): Don't register deleted functions with
11038 gdbarch.
11039
43cf3ede
AB
110402019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11041
11042 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11043 (m68hc11_unwind_sp): Delete.
11044 (m68hc11_gdbarch_init): Don't register deleted functions with
11045 gdbarch.
11046
5e79b7bb
AB
110472019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11048
11049 * m32r-tdep.c (m32r_unwind_sp): Delete.
11050 (m32r_unwind_pc): Delete.
11051 (m32r_dummy_id): Delete.
11052 (m32r_gdbarch_init): Don't register deleted functions with
11053 gdbarch.
11054
89b268d8
AB
110552019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11056
11057 * m32c-tdep.c (m32c_unwind_pc): Delete.
11058 (m32c_unwind_sp): Delete.
11059 (m32c_dummy_id): Delete.
11060 (m32c_gdbarch_init): Don't register deleted functions with
11061 gdbarch.
11062
946c28d2
AB
110632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11064
11065 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11066 (lm32_unwind_pc): Delete.
11067 (lm32_dummy_id): Delete.
11068 (lm32_gdbarch_init): Don't register deleted functions with
11069 gdbarch.
11070
bf12844a
AB
110712019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11072
11073 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11074 (iq2000_unwind_pc): Delete.
11075 (iq2000_dummy_id): Delete.
11076 (iq2000_gdbarch_init): Don't register deleted functions with
11077 gdbarch.
11078
ecbc06d2
AB
110792019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11080
11081 * nds32-tdep.c (nds32_type_align): Delete.
11082 (nds32_push_dummy_call): Use type_align instead.
11083
030197b4
AB
110842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11085
11086 * arm-tdep.c (arm_type_align): Only handle vector override case.
11087 (arm_push_dummy_call): Use type_align.
11088 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11089
b907456c
AB
110902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11091
11092 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11093 case.
11094 (pass_on_stack): Use type_align.
11095 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11096 function.
11097
9e97ba43
TT
110982019-04-23 Tom Tromey <tromey@adacore.com>
11099
11100 * dwarf2read.c (line_header::file_name_at): Remove unused
11101 overload.
11102
6892f601
TV
111032019-04-23 Tom de Vries <tdevries@suse.de>
11104
11105 PR gdb/24438
11106 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11107 invocation.
11108
336d760d
AT
11109
111102019-03-27 Ali Tamur <tamur@google.com>
11111
11112 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11113 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11114 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11115 (dwarf_expr_context::get_addr_index): Likewise
11116 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11117 (symbol_needs_eval_context::get_addr_index): Likewise
11118 (disassemble_dwarf_expression): Add DW_OP_addrx
11119 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11120 (read_cutu_die_from_dwo): Update comment
11121 (skip_one_die): Add DW_FORM_addrx
11122 (read_attribute_value): Likewise
11123 (var_decode_location): Add DW_OP_addrx
11124 (dwarf2_const_value_attr): Add DW_FORM_addrx
11125 (dump_die_shallow): Likewise
11126 (dwarf2_fetch_constant_bytes): Likewise
11127 (decode_locdesc): Add DW_OP_addrx
11128 (skip_form_bytes): Add DW_FORM_addrx
11129
ad9d13f8
AT
111302019-04-22 Ali Tamur <tamur@google.com>
11131
11132 * MAINTAINERS (Write After Approval): Add self.
11133
d70cc3ba
SM
111342019-04-22 Simon Marchi <simon.marchi@efficios.com>
11135
11136 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11137 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11138 (open_symbol_file_object): Likewise.
11139 (svr4_default_sos): Add info parameter.
11140 (svr4_read_so_list): Likewise.
11141 (svr4_current_sos_direct): Adjust functions calls to pass down
11142 info.
11143 (svr4_current_sos_1): Add info parameter.
11144 (svr4_current_sos): Call get_svr4_info, pass info down to
11145 svr4_current_sos_1.
11146 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11147 get_svr4_info.
11148 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11149 get_svr4_info.
11150 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11151 to get_svr4_info.
11152 (probes_table_remove_objfile_probes): Likewise.
11153 (register_solib_event_probe): Add info parameter.
11154 (solist_update_incremental): Pass info parameter down to
11155 svr4_read_so_list.
11156 (disable_probes_interface): Add info parameter.
11157 (svr4_handle_solib_event): Pass current_program_space to
11158 get_svr4_info. Adjust disable_probes_interface cleanup.
11159 (svr4_create_probe_breakpoints): Add info parameter, pass it
11160 down to register_solib_event_probe.
11161 (svr4_create_solib_event_breakpoints): Add info parameter,
11162 pass it down to svr4_create_probe_breakpoints.
11163 (enable_break): Pass info down to
11164 svr4_create_solib_event_breakpoints.
11165 (svr4_solib_create_inferior_hook): Pass current_program_space to
11166 get_svr4_info.
11167 (svr4_clear_solib): Likewise.
11168
7905fc35
PA
111692019-04-22 Pedro Alves <palves@redhat.com>
11170
11171 * solib-svr4.c (svr4_free_objfile_observer): New.
11172 (probe_and_action::objfile): New field.
11173 (probes_table_htab_remove_objfile_probes)
11174 (probes_table_remove_objfile_probes): New functions.
11175 (register_solib_event_probe): Add 'objfile' parameter. Store it
11176 in the new probe_and_action. Don't store the probe in 'lookup'.
11177 (svr4_create_probe_breakpoints): Pass objfile to
11178 register_solib_event_probe.
11179 (_initialize_svr4_solib): Register a free_objfile observer.
11180
fb881986
TT
111812019-04-19 Tom Tromey <tom@tromey.com>
11182
11183 * common/queue.h: Remove.
11184
8732db6c
TT
111852019-04-19 Tom Tromey <tom@tromey.com>
11186
11187 * event-loop.c: Don't include "common/queue.h".
11188
97dfbadd
TT
111892019-04-19 Tom Tromey <tom@tromey.com>
11190
11191 * remote.c (remote_target): Use delete.
11192 * remote-notif.h: Include <list>, not "common/queue.h".
11193 (notif_client_p): Remove typedef.
11194 (remote_notif_state): Add constructor, destructor, initializer.
11195 <notif_queue>: Now a std::list.
11196 (remote_notif_state_xfree): Don't declare.
11197 * remote-notif.c (remote_notif_process, handle_notification)
11198 (remote_notif_state_allocate): Update.
11199 (~remote_notif_state): Rename from remote_notif_state_xfree.
11200
cf250e36
TT
112012019-04-19 Tom Tromey <tom@tromey.com>
11202
11203 * symfile.c (reread_symbols): Update.
11204 * objfiles.c (objfile_register_static_link)
11205 (objfile_lookup_static_link): Update
11206 (~objfile) Don't delete static_links.
11207 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11208
61f4b350
TT
112092019-04-19 Tom Tromey <tom@tromey.com>
11210
11211 * type-stack.h (struct type_stack) <insert>: Constify string.
11212 * type-stack.c (type_stack::insert): Constify string.
11213 * gdbtypes.h (lookup_template_type): Update.
11214 (address_space_name_to_int): Update.
11215 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11216 const.
11217 (lookup_template_type): Make name const.
11218 * c-exp.y: Update rules.
11219 (lex_one_token, classify_name, classify_inner_name)
11220 (c_print_token): Update.
11221 * p-exp.y: Update rules.
11222 (yylex): Update.
11223 * f-exp.y: Update rules.
11224 (yylex): Update.
11225 * d-exp.y: Update rules.
11226 (lex_one_token, classify_name, classify_inner_name): Update.
11227 * parse.c (write_dollar_variable, copy_name): Return std::string.
11228 * parser-defs.h (copy_name): Change return type.
11229 * m2-exp.y: Update rules.
11230 (yylex): Update.
11231 * go-exp.y (lex_one_token): Update.
11232 Update rules.
11233 (classify_unsafe_function, classify_packaged_name)
11234 (classify_name, yylex): Update.
11235
189b8c2e
ST
112362019-04-19 Sergei Trofimovich <siarheit@google.com>
11237
11238 * configure.ac: add --enable-source-highlight switch.
11239 * configure: Regenerate.
11240 * top.c (print_gdb_version): plumb --enable-source-highlight
11241 status to "show configuration".
11242
8ecb59f8
TT
112432019-04-19 Tom Tromey <tromey@adacore.com>
11244
11245 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11246 Check ADA_TYPE_P.
11247 (empty_record, ada_template_to_fixed_record_type_1)
11248 (template_to_static_fixed_type)
11249 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11250 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11251 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11252 macros.
11253
62160ec9
TT
112542019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11255
11256 PR symtab/24423:
11257 * source.c (print_source_lines_base): Advance "iter" when a
11258 control character is seen.
11259
f2ae8bc8
PW
112602019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11261
11262 * inferior.h (struct infcall_suspend_state_deleter):
11263 Catch exception in destructor to avoid crash.
11264
d563b953
PW
112652019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11266
11267 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11268 close to the add_com "shell".
11269
dc34c897
TT
112702019-04-18 Tom Tromey <tromey@adacore.com>
11271
11272 * process-stratum-target.h (class process_stratum_target)
11273 <stratum>: Add "final".
11274
a12e5744
TT
112752019-04-17 Tom Tromey <tromey@adacore.com>
11276
11277 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11278 against nullptr before use.
11279
a7e559cc
AH
112802019-04-17 Alan Hayward <alan.hayward@arm.com>
11281
11282 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11283
c01660c6
AB
112842019-04-17 Jim Wilson <jimw@sifive.com>
11285 Andrew Burgess <andrew.burgess@embecosm.com>
11286
11287 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11288 code read might fail, assume 4-byte breakpoint in that case.
11289
4aa866af
LS
112902019-04-15 Leszek Swirski <leszeks@google.com>
11291
11292 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11293 rather than a hand-rolled POD check when checking for forced MEMORY
11294 classification.
11295
48574d91
AH
112962019-04-15 Alan Hayward <alan.hayward@arm.com>
11297
11298 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11299 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11300 function.
11301 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11302 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11303 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11304 declaration.
11305
4da037ef
AH
113062019-04-15 Alan Hayward <alan.hayward@arm.com>
11307
11308 * aarch64-linux-nat.c
11309 (aarch64_linux_nat_target::thread_architecture): Add override.
11310 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11311 each VQ.
11312
ccb8d7e8
AH
113132019-04-15 Alan Hayward <alan.hayward@arm.com>
11314
11315 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11316
35add35e
AB
113172019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11318
11319 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11320 target types of size 96-bits, add some additional comments, and
11321 check that the builtin type we found was the correct size.
11322
51196bbc
EZ
113232019-04-12 Eli Zaretskii <eliz@gnu.org>
11324
11325 * utils.c (prompt_for_continue): Don't restore the styling at the
11326 end, as applied_style has the wrong value. This fixes styling in
11327 long lists of file names that are interrupted by the "Continue?"
11328 prompt.
11329
62253a61
AB
113302019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11331
11332 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11333 * c-lang.c (c_language_defn): Likewise.
11334 (cplus_language_defn): Likewise.
11335 (asm_language_defn): Likewise.
11336 (minimal_language_defn): Likewise.
11337 * d-lang.c (d_language_defn): Likewise.
11338 * f-lang.c (f_language_defn): Likewise.
11339 * go-lang.c (go_language_defn): Likewise.
11340 * language.c (unknown_language_defn): Likewise.
11341 (auto_language_defn): Likewise.
11342 * language.h (struct language_defn): Remove la_magic field.
11343 (LANG_MAGIC): Delete.
11344 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11345 * objc-lang.c (objc_language_defn): Likewise.
11346 * opencl-lang.c (opencl_language_defn): Likewise.
11347 * p-lang.c (pascal_language_defn): Likewise.
11348 * rust-lang.c (rust_language_defn): Likewise.
11349
a9158a86
AB
113502019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11351
11352 * riscv-tdep.c (riscv_type_align): New function.
11353 (riscv_type_alignment): Delete.
11354 (riscv_arg_location): Use 'type_align'.
11355 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11356
41077b66
AB
113572019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11358
11359 * gdbtypes.c (type_align): A struct with no non-static fields also
11360 has alignment of 1.
11361
9f0272f8
AB
113622019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11363
11364 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11365 component to 0.
11366 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11367 member.
11368 (riscv_struct_info::analyse): New implementation using new
11369 analyse_inner member function.
11370 (riscv_struct_info::field_offset): New member function.
11371 (riscv_struct_info::m_offsets): New member variable.
11372 (riscv_struct_info::analyse_inner): New private member function,
11373 takes the old implementation of riscv_struct_info::analyse but
11374 extended to track field offsets.
11375 (riscv_call_arg_struct): Update the struct folding special cases
11376 to handle cases where empty C++ structs, which are non-zero
11377 length, are found.
11378 (riscv_arg_location): Initialise the length of each location, a
11379 non-zero length now indicates the location is in use.
11380 (riscv_push_dummy_call): Allow for the first location having a
11381 non-zero offset when setting up arguments.
11382 (riscv_return_value): Likewise, but for return values.
11383
02cf60c7
TT
113842019-04-11 Tom Tromey <tromey@adacore.com>
11385
11386 * utils.c (internal_vproblem): Make "msg" const.
11387
68811f8f
AH
113882019-04-11 Alan Hayward <alan.hayward@arm.com>
11389
11390 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11391 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11392 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11393 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11394
3f52fdbc
KB
113952019-04-10 Kevin Buettner <kevinb@redhat.com>
11396
11397 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11398 function.
11399 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11400 of amd64_collect_native_gregset.
11401 (amd64_linux_nat_target::store_registers): Likewise.
11402
e9ad22ee
TT
114032019-04-10 Tom Tromey <tom@tromey.com>
11404
11405 * symtab.c (lookup_global_symbol_from_objfile)
11406 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11407 * objfiles.h (class separate_debug_iterator): New.
11408 (class separate_debug_range): New.
11409 (struct objfile) <separate_debug_objfiles>: New method.
11410 (objfile_separate_debug_iterate): Don't declare.
11411 * objfiles.c (separate_debug_iterator::operator++): Rename from
11412 objfile_separate_debug_iterate.
11413 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11414 iterator.
11415 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11416 iterator.
11417
ee371134
TT
114182019-04-10 Tom Tromey <tom@tromey.com>
11419
11420 * symfile.c (reread_symbols): Remove old comment.
11421 * objfiles.c (free_all_objfiles): Fix a typo.
11422
bf227d61
TT
114232019-04-10 Tom Tromey <tom@tromey.com>
11424
11425 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11426 * minsyms.c (lookup_minimal_symbol): Use foreach.
11427 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11428 (lookup_minimal_symbol_solib_trampoline): Likewise.
11429 * symfile.c (reread_symbols): Use foreach.
11430
8dc433a0
TT
114312019-04-09 Ivan Begert <ivanbegert@gmail.com>
11432 Tom Tromey <tromey@adacore.com>
11433
11434 PR rust/24414:
11435 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11436 (rust_lex_int_test): Change "value" to be LONGEST.
11437 (rust_lex_tests): Add test for long integer literal.
11438
9ab8741a
TT
114392019-04-09 Tom Tromey <tromey@adacore.com>
11440
11441 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11442 to bool.
11443 (extended_remote_target::attach): Update.
11444 (remote_target::remote_notice_new_inferior): Update.
11445 (remote_target::add_current_inferior_and_thread): Update.
11446 * inferior.c (exit_inferior_1): Use "false".
11447 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11448
e242fd12
SM
114492019-04-09 Simon Marchi <simon.marchi@efficios.com>
11450
9ca1957f 11451 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11452 the "start" command.
11453
2b0c8b01
KB
114542019-04-08 Kevin Buettner <kevinb@redhat.com>
11455
11456 * python/py-inferior.c (infpy_thread_from_thread_handle):
11457 Adjust comments to reflect renaming of thread_from_thread_handle
11458 to thread_from_handle. Adjust keywords. Fix type error message.
11459 (inferior_object_methods): Add thread_from_handle. Retain
11460 thread_from_thread_handle, but mark it as deprecated.
11461
50a82723
KB
114622019-04-08 Kevin Buettner <kevinb@redhat.com>
11463
11464 * gdbthread.h (find_thread_by_handle): Revise declaration.
11465 * thread.c (find_thread_by_handle): Likewise. Adjust
11466 implementation too.
11467 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11468 support for buffer objects as handles.
11469
cf63b016
KB
114702019-04-08 Kevin Buettner <kevinb@redhat.com>
11471
11472 * python/py-infthread.c (thpy_thread_handle): New function.
11473 (thread_object_methods): Register thpy_thread_handle.
11474
3d6c6204
KB
114752019-04-08 Kevin Buettner <kevinb@redhat.com>
11476
11477 * gdbthread.h (thread_to_thread_handle): Declare.
11478 * thread.c (gdbtypes.h): Include.
11479 (thread_to_thread_handle): New function.
11480
11481 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11482 (target_thread_info_to_thread_handle): Declare.
11483 * target.c (target_thread_info_to_thread_handle): New function.
11484 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11485 * target-delegates.c: Regenerate.
11486
11487 * linux-thread-db.c (class thread_db_target): Add method
11488 thread_info_to_thread_handle.
11489 (thread_db_target::thread_info_to_thread_handle): Define.
11490 * remote.c (class remote_target): Add new method
11491 thread_info_to_thread_handle.
11492 (remote_target::thread_info_to_thread_handle): Define.
11493
56be6ea8
PA
114942019-04-08 Pedro Alves <palves@redhat.com>
11495
11496 * common/common-exceptions.c (throw_exception): Don't create
11497 named object to throw; throw directly.
11498 (throw_it): Likewise. Don't initialize gdb_exception::message
11499 here, with new; pass FMT and AP to the ctor instead.
11500 * common/common-exceptions.h: Include <string>.
11501 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11502 const char *, va_list)): New ctor. Use std::make_shared.
11503 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11504 errors)): Delete.
11505 (gdb_exception_error::gdb_exception_error(enum errors, const char
11506 *, va_list)): New.
11507 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11508 Add assertion.
11509 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11510 errors)): Delete.
11511 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11512 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11513 Add assertion.
11514
eedc3f4f
TT
115152019-04-08 Tom Tromey <tom@tromey.com>
11516
11517 * valops.c (value_rtti_indirect_type): Replace throw_exception
11518 with throw.
11519 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11520 with throw.
11521 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11522 throw.
11523 * target.c (target_translate_tls_address): Replace throw_exception
11524 with throw.
11525 * stack.c (frame_apply_command_count): Replace throw_exception
11526 with throw.
11527 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11528 throw.
11529 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11530 with throw.
11531 * rs6000-tdep.c (rs6000_frame_cache)
11532 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11533 * remote.c: Replace throw_exception with throw.
11534 * record-full.c (record_full_message, record_full_wait_1)
11535 (record_full_restore): Replace throw_exception with throw.
11536 * record-btrace.c:
11537 (get_thread_current_frame_id, record_btrace_start_replaying)
11538 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11539 (cmd_record_btrace_start): Replace throw_exception with throw.
11540 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11541 throw.
11542 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11543 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11544 * linespec.c:
11545 (find_linespec_symbols): Replace throw_exception with throw.
11546 * infrun.c (displaced_step_prepare, resume): Replace
11547 throw_exception with throw.
11548 * infcmd.c (post_create_inferior): Replace throw_exception with
11549 throw.
11550 * inf-loop.c (inferior_event_handler): Replace throw_exception
11551 with throw.
11552 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11553 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11554 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11555 (get_prev_frame_always, get_frame_pc_if_available)
11556 (get_frame_address_in_block_if_available, get_frame_language):
11557 Replace throw_exception with throw.
11558 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11559 throw_exception with throw.
11560 * eval.c (fetch_subexp_value, evaluate_var_value)
11561 (evaluate_funcall, evaluate_subexp_standard): Replace
11562 throw_exception with throw.
11563 * dwarf2loc.c (call_site_find_chain)
11564 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11565 Replace throw_exception with throw.
11566 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11567 with throw.
11568 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11569 throw.
11570 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11571 * completer.c (complete_line_internal): Replace throw_exception
11572 with throw.
11573 * compile/compile-object-run.c (compile_object_run): Replace
11574 throw_exception with throw.
11575 * cli/cli-script.c (process_next_line): Replace throw_exception
11576 with throw.
11577 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11578 (btrace_enable, btrace_maint_update_pt_packets): Replace
11579 throw_exception with throw.
11580 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11581 throw_exception with throw.
11582 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11583 throw_exception with throw.
11584 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11585 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11586 * aarch64-tdep.c (aarch64_make_prologue_cache)
11587 (aarch64_make_stub_cache): Replace throw_exception with throw.
11588
26003a20
TT
115892019-04-08 Tom Tromey <tom@tromey.com>
11590
11591 * common/common-exceptions.c (throw_exception): Rename from
11592 throw_exception_cxx. Remove old copy. Make argument const.
11593 (throw_it): Create and throw exception objects directly.
11594 * common/common-exceptions.h (throw_exception): Make argument
11595 const.
11596 (struct gdb_exception_error): Add constructor.
11597 (struct gdb_exception_quit): Add constructor.
11598
d272eb37
TT
115992019-04-08 Tom Tromey <tom@tromey.com>
11600
11601 * common/common-exceptions.h (exception_rethrow): Don't declare.
11602 (TRY_SJLJ): Update comment.
11603 (TRY, CATCH, END_CATCH): Remove.
11604 * common/common-exceptions.c (exception_rethrow): Remove.
11605
230d2906
TT
116062019-04-08 Tom Tromey <tom@tromey.com>
11607
11608 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11609 Remove.
11610 (gdb_exception_error): Rename from
11611 gdb_exception_RETURN_MASK_ERROR.
11612 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11613 (gdb_quit_bad_alloc): Update.
11614 * aarch64-tdep.c: Update.
11615 * ada-lang.c: Update.
11616 * ada-typeprint.c: Update.
11617 * ada-valprint.c: Update.
11618 * amd64-tdep.c: Update.
11619 * arch-utils.c: Update.
11620 * break-catch-throw.c: Update.
11621 * breakpoint.c: Update.
11622 * btrace.c: Update.
11623 * c-varobj.c: Update.
11624 * cli/cli-cmds.c: Update.
11625 * cli/cli-interp.c: Update.
11626 * cli/cli-script.c: Update.
11627 * common/common-exceptions.c: Update.
11628 * common/new-op.c: Update.
11629 * common/selftest.c: Update.
11630 * compile/compile-c-symbols.c: Update.
11631 * compile/compile-cplus-symbols.c: Update.
11632 * compile/compile-object-load.c: Update.
11633 * compile/compile-object-run.c: Update.
11634 * completer.c: Update.
11635 * corelow.c: Update.
11636 * cp-abi.c: Update.
11637 * cp-support.c: Update.
11638 * cp-valprint.c: Update.
11639 * darwin-nat.c: Update.
11640 * disasm-selftests.c: Update.
11641 * dtrace-probe.c: Update.
11642 * dwarf-index-cache.c: Update.
11643 * dwarf-index-write.c: Update.
11644 * dwarf2-frame-tailcall.c: Update.
11645 * dwarf2-frame.c: Update.
11646 * dwarf2loc.c: Update.
11647 * dwarf2read.c: Update.
11648 * eval.c: Update.
11649 * event-loop.c: Update.
11650 * event-top.c: Update.
11651 * exec.c: Update.
11652 * f-valprint.c: Update.
11653 * fbsd-tdep.c: Update.
11654 * frame-unwind.c: Update.
11655 * frame.c: Update.
11656 * gdbtypes.c: Update.
11657 * gnu-v3-abi.c: Update.
11658 * guile/guile-internal.h: Update.
11659 * guile/scm-block.c: Update.
11660 * guile/scm-breakpoint.c: Update.
11661 * guile/scm-cmd.c: Update.
11662 * guile/scm-disasm.c: Update.
11663 * guile/scm-frame.c: Update.
11664 * guile/scm-lazy-string.c: Update.
11665 * guile/scm-math.c: Update.
11666 * guile/scm-param.c: Update.
11667 * guile/scm-ports.c: Update.
11668 * guile/scm-pretty-print.c: Update.
11669 * guile/scm-symbol.c: Update.
11670 * guile/scm-symtab.c: Update.
11671 * guile/scm-type.c: Update.
11672 * guile/scm-value.c: Update.
11673 * i386-linux-tdep.c: Update.
11674 * i386-tdep.c: Update.
11675 * inf-loop.c: Update.
11676 * infcall.c: Update.
11677 * infcmd.c: Update.
11678 * infrun.c: Update.
11679 * jit.c: Update.
11680 * language.c: Update.
11681 * linespec.c: Update.
11682 * linux-fork.c: Update.
11683 * linux-nat.c: Update.
11684 * linux-tdep.c: Update.
11685 * linux-thread-db.c: Update.
11686 * main.c: Update.
11687 * mi/mi-cmd-break.c: Update.
11688 * mi/mi-cmd-stack.c: Update.
11689 * mi/mi-interp.c: Update.
11690 * mi/mi-main.c: Update.
11691 * objc-lang.c: Update.
11692 * p-valprint.c: Update.
11693 * parse.c: Update.
11694 * ppc-linux-tdep.c: Update.
11695 * printcmd.c: Update.
11696 * python/py-arch.c: Update.
11697 * python/py-breakpoint.c: Update.
11698 * python/py-cmd.c: Update.
11699 * python/py-finishbreakpoint.c: Update.
11700 * python/py-frame.c: Update.
11701 * python/py-framefilter.c: Update.
11702 * python/py-gdb-readline.c: Update.
11703 * python/py-inferior.c: Update.
11704 * python/py-infthread.c: Update.
11705 * python/py-lazy-string.c: Update.
11706 * python/py-linetable.c: Update.
11707 * python/py-objfile.c: Update.
11708 * python/py-param.c: Update.
11709 * python/py-prettyprint.c: Update.
11710 * python/py-progspace.c: Update.
11711 * python/py-record-btrace.c: Update.
11712 * python/py-record.c: Update.
11713 * python/py-symbol.c: Update.
11714 * python/py-type.c: Update.
11715 * python/py-unwind.c: Update.
11716 * python/py-utils.c: Update.
11717 * python/py-value.c: Update.
11718 * python/python.c: Update.
11719 * record-btrace.c: Update.
11720 * record-full.c: Update.
11721 * remote-fileio.c: Update.
11722 * remote.c: Update.
11723 * riscv-tdep.c: Update.
11724 * rs6000-aix-tdep.c: Update.
11725 * rs6000-tdep.c: Update.
11726 * rust-exp.y: Update.
11727 * rust-lang.c: Update.
11728 * s390-tdep.c: Update.
11729 * selftest-arch.c: Update.
11730 * solib-dsbt.c: Update.
11731 * solib-frv.c: Update.
11732 * solib-spu.c: Update.
11733 * solib-svr4.c: Update.
11734 * solib.c: Update.
11735 * sparc64-linux-tdep.c: Update.
11736 * stack.c: Update.
11737 * symfile-mem.c: Update.
11738 * symmisc.c: Update.
11739 * target.c: Update.
11740 * thread.c: Update.
11741 * top.c: Update.
11742 * tracefile-tfile.c: Update.
11743 * tui/tui.c: Update.
11744 * typeprint.c: Update.
11745 * unittests/cli-utils-selftests.c: Update.
11746 * unittests/parse-connection-spec-selftests.c: Update.
11747 * valops.c: Update.
11748 * valprint.c: Update.
11749 * value.c: Update.
11750 * varobj.c: Update.
11751 * windows-nat.c: Update.
11752 * x86-linux-nat.c: Update.
11753 * xml-support.c: Update.
11754
a70b8144
TT
117552019-04-08 Tom Tromey <tom@tromey.com>
11756
11757 * xml-support.c: Use C++ exception handling.
11758 * x86-linux-nat.c: Use C++ exception handling.
11759 * windows-nat.c: Use C++ exception handling.
11760 * varobj.c: Use C++ exception handling.
11761 * value.c: Use C++ exception handling.
11762 * valprint.c: Use C++ exception handling.
11763 * valops.c: Use C++ exception handling.
11764 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11765 handling.
11766 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11767 * typeprint.c: Use C++ exception handling.
11768 * tui/tui.c: Use C++ exception handling.
11769 * tracefile-tfile.c: Use C++ exception handling.
11770 * top.c: Use C++ exception handling.
11771 * thread.c: Use C++ exception handling.
11772 * target.c: Use C++ exception handling.
11773 * symmisc.c: Use C++ exception handling.
11774 * symfile-mem.c: Use C++ exception handling.
11775 * stack.c: Use C++ exception handling.
11776 * sparc64-linux-tdep.c: Use C++ exception handling.
11777 * solib.c: Use C++ exception handling.
11778 * solib-svr4.c: Use C++ exception handling.
11779 * solib-spu.c: Use C++ exception handling.
11780 * solib-frv.c: Use C++ exception handling.
11781 * solib-dsbt.c: Use C++ exception handling.
11782 * selftest-arch.c: Use C++ exception handling.
11783 * s390-tdep.c: Use C++ exception handling.
11784 * rust-lang.c: Use C++ exception handling.
11785 * rust-exp.y: Use C++ exception handling.
11786 * rs6000-tdep.c: Use C++ exception handling.
11787 * rs6000-aix-tdep.c: Use C++ exception handling.
11788 * riscv-tdep.c: Use C++ exception handling.
11789 * remote.c: Use C++ exception handling.
11790 * remote-fileio.c: Use C++ exception handling.
11791 * record-full.c: Use C++ exception handling.
11792 * record-btrace.c: Use C++ exception handling.
11793 * python/python.c: Use C++ exception handling.
11794 * python/py-value.c: Use C++ exception handling.
11795 * python/py-utils.c: Use C++ exception handling.
11796 * python/py-unwind.c: Use C++ exception handling.
11797 * python/py-type.c: Use C++ exception handling.
11798 * python/py-symbol.c: Use C++ exception handling.
11799 * python/py-record.c: Use C++ exception handling.
11800 * python/py-record-btrace.c: Use C++ exception handling.
11801 * python/py-progspace.c: Use C++ exception handling.
11802 * python/py-prettyprint.c: Use C++ exception handling.
11803 * python/py-param.c: Use C++ exception handling.
11804 * python/py-objfile.c: Use C++ exception handling.
11805 * python/py-linetable.c: Use C++ exception handling.
11806 * python/py-lazy-string.c: Use C++ exception handling.
11807 * python/py-infthread.c: Use C++ exception handling.
11808 * python/py-inferior.c: Use C++ exception handling.
11809 * python/py-gdb-readline.c: Use C++ exception handling.
11810 * python/py-framefilter.c: Use C++ exception handling.
11811 * python/py-frame.c: Use C++ exception handling.
11812 * python/py-finishbreakpoint.c: Use C++ exception handling.
11813 * python/py-cmd.c: Use C++ exception handling.
11814 * python/py-breakpoint.c: Use C++ exception handling.
11815 * python/py-arch.c: Use C++ exception handling.
11816 * printcmd.c: Use C++ exception handling.
11817 * ppc-linux-tdep.c: Use C++ exception handling.
11818 * parse.c: Use C++ exception handling.
11819 * p-valprint.c: Use C++ exception handling.
11820 * objc-lang.c: Use C++ exception handling.
11821 * mi/mi-main.c: Use C++ exception handling.
11822 * mi/mi-interp.c: Use C++ exception handling.
11823 * mi/mi-cmd-stack.c: Use C++ exception handling.
11824 * mi/mi-cmd-break.c: Use C++ exception handling.
11825 * main.c: Use C++ exception handling.
11826 * linux-thread-db.c: Use C++ exception handling.
11827 * linux-tdep.c: Use C++ exception handling.
11828 * linux-nat.c: Use C++ exception handling.
11829 * linux-fork.c: Use C++ exception handling.
11830 * linespec.c: Use C++ exception handling.
11831 * language.c: Use C++ exception handling.
11832 * jit.c: Use C++ exception handling.
11833 * infrun.c: Use C++ exception handling.
11834 * infcmd.c: Use C++ exception handling.
11835 * infcall.c: Use C++ exception handling.
11836 * inf-loop.c: Use C++ exception handling.
11837 * i386-tdep.c: Use C++ exception handling.
11838 * i386-linux-tdep.c: Use C++ exception handling.
11839 * guile/scm-value.c: Use C++ exception handling.
11840 * guile/scm-type.c: Use C++ exception handling.
11841 * guile/scm-symtab.c: Use C++ exception handling.
11842 * guile/scm-symbol.c: Use C++ exception handling.
11843 * guile/scm-pretty-print.c: Use C++ exception handling.
11844 * guile/scm-ports.c: Use C++ exception handling.
11845 * guile/scm-param.c: Use C++ exception handling.
11846 * guile/scm-math.c: Use C++ exception handling.
11847 * guile/scm-lazy-string.c: Use C++ exception handling.
11848 * guile/scm-frame.c: Use C++ exception handling.
11849 * guile/scm-disasm.c: Use C++ exception handling.
11850 * guile/scm-cmd.c: Use C++ exception handling.
11851 * guile/scm-breakpoint.c: Use C++ exception handling.
11852 * guile/scm-block.c: Use C++ exception handling.
11853 * guile/guile-internal.h: Use C++ exception handling.
11854 * gnu-v3-abi.c: Use C++ exception handling.
11855 * gdbtypes.c: Use C++ exception handling.
11856 * frame.c: Use C++ exception handling.
11857 * frame-unwind.c: Use C++ exception handling.
11858 * fbsd-tdep.c: Use C++ exception handling.
11859 * f-valprint.c: Use C++ exception handling.
11860 * exec.c: Use C++ exception handling.
11861 * event-top.c: Use C++ exception handling.
11862 * event-loop.c: Use C++ exception handling.
11863 * eval.c: Use C++ exception handling.
11864 * dwarf2read.c: Use C++ exception handling.
11865 * dwarf2loc.c: Use C++ exception handling.
11866 * dwarf2-frame.c: Use C++ exception handling.
11867 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11868 * dwarf-index-write.c: Use C++ exception handling.
11869 * dwarf-index-cache.c: Use C++ exception handling.
11870 * dtrace-probe.c: Use C++ exception handling.
11871 * disasm-selftests.c: Use C++ exception handling.
11872 * darwin-nat.c: Use C++ exception handling.
11873 * cp-valprint.c: Use C++ exception handling.
11874 * cp-support.c: Use C++ exception handling.
11875 * cp-abi.c: Use C++ exception handling.
11876 * corelow.c: Use C++ exception handling.
11877 * completer.c: Use C++ exception handling.
11878 * compile/compile-object-run.c: Use C++ exception handling.
11879 * compile/compile-object-load.c: Use C++ exception handling.
11880 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11881 * compile/compile-c-symbols.c: Use C++ exception handling.
11882 * common/selftest.c: Use C++ exception handling.
11883 * common/new-op.c: Use C++ exception handling.
11884 * cli/cli-script.c: Use C++ exception handling.
11885 * cli/cli-interp.c: Use C++ exception handling.
11886 * cli/cli-cmds.c: Use C++ exception handling.
11887 * c-varobj.c: Use C++ exception handling.
11888 * btrace.c: Use C++ exception handling.
11889 * breakpoint.c: Use C++ exception handling.
11890 * break-catch-throw.c: Use C++ exception handling.
11891 * arch-utils.c: Use C++ exception handling.
11892 * amd64-tdep.c: Use C++ exception handling.
11893 * ada-valprint.c: Use C++ exception handling.
11894 * ada-typeprint.c: Use C++ exception handling.
11895 * ada-lang.c: Use C++ exception handling.
11896 * aarch64-tdep.c: Use C++ exception handling.
11897
3d6e9d23
TT
118982019-04-08 Tom Tromey <tom@tromey.com>
11899
11900 * xml-support.c (gdb_xml_parser::parse): Update.
11901 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
11902 * value.c (show_convenience): Update.
11903 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
11904 (test_parse_flags_qcs): Update.
11905 * thread.c (thr_try_catch_cmd): Update.
11906 * target.c (target_translate_tls_address): Update.
11907 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
11908 (info_frame_command_core, frame_apply_command_count): Update.
11909 * rust-exp.y (rust_lex_exception_test): Update.
11910 * riscv-tdep.c (riscv_print_one_register_info): Update.
11911 * remote.c (remote_target::enable_btrace): Update.
11912 * record-btrace.c (record_btrace_enable_warn): Update.
11913 * python/py-utils.c (gdbpy_convert_exception): Update.
11914 * printcmd.c (do_one_display, print_variable_and_value): Update.
11915 * mi/mi-main.c (mi_print_exception): Update.
11916 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
11917 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
11918 * linux-nat.c (linux_nat_target::attach): Update.
11919 * linux-fork.c (class scoped_switch_fork_info): Update.
11920 * infrun.c (displaced_step_prepare): Update.
11921 * infcall.c (call_function_by_hand_dummy): Update.
11922 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
11923 * gnu-v3-abi.c (print_one_vtable): Update.
11924 * frame.c (get_prev_frame_always): Update.
11925 * f-valprint.c (info_common_command_for_block): Update.
11926 * exec.c (try_open_exec_file): Update.
11927 * exceptions.c (print_exception, exception_print)
11928 (exception_fprintf, exception_print_same): Update.
11929 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
11930 * dwarf-index-cache.c (index_cache::store)
11931 (index_cache::lookup_gdb_index): Update.
11932 * darwin-nat.c (maybe_cache_shell): Update.
11933 * cp-valprint.c (cp_print_value_fields): Update.
11934 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
11935 (gcc_cplus_symbol_address): Update.
11936 * compile/compile-c-symbols.c (gcc_convert_symbol)
11937 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
11938 * common/selftest.c: Update.
11939 * common/common-exceptions.h (struct gdb_exception) <message>: Now
11940 a std::string.
11941 (exception_try_scope_entry, exception_try_scope_exit): Don't
11942 declare.
11943 (struct exception_try_scope): Remove.
11944 (TRY): Don't use exception_try_scope.
11945 (struct gdb_exception): Add constructor, operator=.
11946 <what>: New method.
11947 (struct gdb_exception_RETURN_MASK_ALL)
11948 (struct gdb_exception_RETURN_MASK_ERROR)
11949 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
11950 (struct gdb_quit_bad_alloc): Update.
11951 * common/common-exceptions.c (exception_none): Change
11952 initializer.
11953 (struct catcher) <state, exception>: Initialize inline.
11954 <prev>: Remove member.
11955 (current_catcher): Remove.
11956 (catchers): New global.
11957 (exceptions_state_mc_init): Simplify.
11958 (catcher_pop): Remove.
11959 (exceptions_state_mc, exceptions_state_mc_catch): Update.
11960 (try_scope_depth, exception_try_scope_entry)
11961 (exception_try_scope_exit): Remove.
11962 (throw_exception_sjlj): Update.
11963 (exception_messages, exception_messages_size): Remove.
11964 (throw_it): Simplify.
11965 (gdb_exception_sliced_copy): Remove.
11966 (throw_exception_cxx): Update.
11967 * cli/cli-script.c (script_from_file): Update.
11968 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
11969 Update.
11970 * ada-valprint.c (ada_val_print): Update.
11971 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
11972 (create_excep_cond_exprs): Update.
11973
c5c10118
TT
119742019-04-08 Tom Tromey <tom@tromey.com>
11975
11976 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
11977 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
11978 (TRY, CATCH, END_CATCH): Remove some definitions.
11979 * common/common-exceptions.c: Don't use GDB_XCPT.
11980 (catcher_list_size): Remove.
11981 (throw_exception, throw_it): Simplify.
11982
4de283e4
TT
119832019-04-05 Tom Tromey <tom@tromey.com>
11984
11985 Revert the header-sorting patch.
11986 * ft32-tdep.c: Revert.
11987 * frv-tdep.c: Revert.
11988 * frv-linux-tdep.c: Revert.
11989 * frame.c: Revert.
11990 * frame-unwind.c: Revert.
11991 * frame-base.c: Revert.
11992 * fork-child.c: Revert.
11993 * findvar.c: Revert.
11994 * findcmd.c: Revert.
11995 * filesystem.c: Revert.
11996 * filename-seen-cache.h: Revert.
11997 * filename-seen-cache.c: Revert.
11998 * fbsd-tdep.c: Revert.
11999 * fbsd-nat.h: Revert.
12000 * fbsd-nat.c: Revert.
12001 * f-valprint.c: Revert.
12002 * f-typeprint.c: Revert.
12003 * f-lang.c: Revert.
12004 * extension.h: Revert.
12005 * extension.c: Revert.
12006 * extension-priv.h: Revert.
12007 * expprint.c: Revert.
12008 * exec.h: Revert.
12009 * exec.c: Revert.
12010 * exceptions.c: Revert.
12011 * event-top.c: Revert.
12012 * event-loop.c: Revert.
12013 * eval.c: Revert.
12014 * elfread.c: Revert.
12015 * dwarf2read.h: Revert.
12016 * dwarf2read.c: Revert.
12017 * dwarf2loc.c: Revert.
12018 * dwarf2expr.h: Revert.
12019 * dwarf2expr.c: Revert.
12020 * dwarf2-frame.c: Revert.
12021 * dwarf2-frame-tailcall.c: Revert.
12022 * dwarf-index-write.h: Revert.
12023 * dwarf-index-write.c: Revert.
12024 * dwarf-index-common.c: Revert.
12025 * dwarf-index-cache.h: Revert.
12026 * dwarf-index-cache.c: Revert.
12027 * dummy-frame.c: Revert.
12028 * dtrace-probe.c: Revert.
12029 * disasm.h: Revert.
12030 * disasm.c: Revert.
12031 * disasm-selftests.c: Revert.
12032 * dictionary.c: Revert.
12033 * dicos-tdep.c: Revert.
12034 * demangle.c: Revert.
12035 * dcache.h: Revert.
12036 * dcache.c: Revert.
12037 * darwin-nat.h: Revert.
12038 * darwin-nat.c: Revert.
12039 * darwin-nat-info.c: Revert.
12040 * d-valprint.c: Revert.
12041 * d-namespace.c: Revert.
12042 * d-lang.c: Revert.
12043 * ctf.c: Revert.
12044 * csky-tdep.c: Revert.
12045 * csky-linux-tdep.c: Revert.
12046 * cris-tdep.c: Revert.
12047 * cris-linux-tdep.c: Revert.
12048 * cp-valprint.c: Revert.
12049 * cp-support.c: Revert.
12050 * cp-namespace.c: Revert.
12051 * cp-abi.c: Revert.
12052 * corelow.c: Revert.
12053 * corefile.c: Revert.
12054 * continuations.c: Revert.
12055 * completer.h: Revert.
12056 * completer.c: Revert.
12057 * complaints.c: Revert.
12058 * coffread.c: Revert.
12059 * coff-pe-read.c: Revert.
12060 * cli-out.h: Revert.
12061 * cli-out.c: Revert.
12062 * charset.c: Revert.
12063 * c-varobj.c: Revert.
12064 * c-valprint.c: Revert.
12065 * c-typeprint.c: Revert.
12066 * c-lang.c: Revert.
12067 * buildsym.c: Revert.
12068 * buildsym-legacy.c: Revert.
12069 * build-id.h: Revert.
12070 * build-id.c: Revert.
12071 * btrace.c: Revert.
12072 * bsd-uthread.c: Revert.
12073 * breakpoint.h: Revert.
12074 * breakpoint.c: Revert.
12075 * break-catch-throw.c: Revert.
12076 * break-catch-syscall.c: Revert.
12077 * break-catch-sig.c: Revert.
12078 * blockframe.c: Revert.
12079 * block.c: Revert.
12080 * bfin-tdep.c: Revert.
12081 * bfin-linux-tdep.c: Revert.
12082 * bfd-target.c: Revert.
12083 * bcache.c: Revert.
12084 * ax-general.c: Revert.
12085 * ax-gdb.h: Revert.
12086 * ax-gdb.c: Revert.
12087 * avr-tdep.c: Revert.
12088 * auxv.c: Revert.
12089 * auto-load.c: Revert.
12090 * arm-wince-tdep.c: Revert.
12091 * arm-tdep.c: Revert.
12092 * arm-symbian-tdep.c: Revert.
12093 * arm-pikeos-tdep.c: Revert.
12094 * arm-obsd-tdep.c: Revert.
12095 * arm-nbsd-tdep.c: Revert.
12096 * arm-nbsd-nat.c: Revert.
12097 * arm-linux-tdep.c: Revert.
12098 * arm-linux-nat.c: Revert.
12099 * arm-fbsd-tdep.c: Revert.
12100 * arm-fbsd-nat.c: Revert.
12101 * arm-bsd-tdep.c: Revert.
12102 * arch-utils.c: Revert.
12103 * arc-tdep.c: Revert.
12104 * arc-newlib-tdep.c: Revert.
12105 * annotate.h: Revert.
12106 * annotate.c: Revert.
12107 * amd64-windows-tdep.c: Revert.
12108 * amd64-windows-nat.c: Revert.
12109 * amd64-tdep.c: Revert.
12110 * amd64-sol2-tdep.c: Revert.
12111 * amd64-obsd-tdep.c: Revert.
12112 * amd64-obsd-nat.c: Revert.
12113 * amd64-nbsd-tdep.c: Revert.
12114 * amd64-nbsd-nat.c: Revert.
12115 * amd64-nat.c: Revert.
12116 * amd64-linux-tdep.c: Revert.
12117 * amd64-linux-nat.c: Revert.
12118 * amd64-fbsd-tdep.c: Revert.
12119 * amd64-fbsd-nat.c: Revert.
12120 * amd64-dicos-tdep.c: Revert.
12121 * amd64-darwin-tdep.c: Revert.
12122 * amd64-bsd-nat.c: Revert.
12123 * alpha-tdep.c: Revert.
12124 * alpha-obsd-tdep.c: Revert.
12125 * alpha-nbsd-tdep.c: Revert.
12126 * alpha-mdebug-tdep.c: Revert.
12127 * alpha-linux-tdep.c: Revert.
12128 * alpha-linux-nat.c: Revert.
12129 * alpha-bsd-tdep.c: Revert.
12130 * alpha-bsd-nat.c: Revert.
12131 * aix-thread.c: Revert.
12132 * agent.c: Revert.
12133 * addrmap.c: Revert.
12134 * ada-varobj.c: Revert.
12135 * ada-valprint.c: Revert.
12136 * ada-typeprint.c: Revert.
12137 * ada-tasks.c: Revert.
12138 * ada-lang.c: Revert.
12139 * aarch64-tdep.c: Revert.
12140 * aarch64-ravenscar-thread.c: Revert.
12141 * aarch64-newlib-tdep.c: Revert.
12142 * aarch64-linux-tdep.c: Revert.
12143 * aarch64-linux-nat.c: Revert.
12144 * aarch64-fbsd-tdep.c: Revert.
12145 * aarch64-fbsd-nat.c: Revert.
12146 * aarch32-linux-nat.c: Revert.
12147
d55e5aa6
TT
121482019-04-05 Tom Tromey <tom@tromey.com>
12149
12150 * ft32-tdep.c: Sort headers.
12151 * frv-tdep.c: Sort headers.
12152 * frv-linux-tdep.c: Sort headers.
12153 * frame.c: Sort headers.
12154 * frame-unwind.c: Sort headers.
12155 * frame-base.c: Sort headers.
12156 * fork-child.c: Sort headers.
12157 * findvar.c: Sort headers.
12158 * findcmd.c: Sort headers.
12159 * filesystem.c: Sort headers.
12160 * filename-seen-cache.h: Sort headers.
12161 * filename-seen-cache.c: Sort headers.
12162 * fbsd-tdep.c: Sort headers.
12163 * fbsd-nat.h: Sort headers.
12164 * fbsd-nat.c: Sort headers.
12165 * f-valprint.c: Sort headers.
12166 * f-typeprint.c: Sort headers.
12167 * f-lang.c: Sort headers.
12168 * extension.h: Sort headers.
12169 * extension.c: Sort headers.
12170 * extension-priv.h: Sort headers.
12171 * expprint.c: Sort headers.
12172 * exec.h: Sort headers.
12173 * exec.c: Sort headers.
12174 * exceptions.c: Sort headers.
12175 * event-top.c: Sort headers.
12176 * event-loop.c: Sort headers.
12177 * eval.c: Sort headers.
12178 * elfread.c: Sort headers.
12179 * dwarf2read.h: Sort headers.
12180 * dwarf2read.c: Sort headers.
12181 * dwarf2loc.c: Sort headers.
12182 * dwarf2expr.h: Sort headers.
12183 * dwarf2expr.c: Sort headers.
12184 * dwarf2-frame.c: Sort headers.
12185 * dwarf2-frame-tailcall.c: Sort headers.
12186 * dwarf-index-write.h: Sort headers.
12187 * dwarf-index-write.c: Sort headers.
12188 * dwarf-index-common.c: Sort headers.
12189 * dwarf-index-cache.h: Sort headers.
12190 * dwarf-index-cache.c: Sort headers.
12191 * dummy-frame.c: Sort headers.
12192 * dtrace-probe.c: Sort headers.
12193 * disasm.h: Sort headers.
12194 * disasm.c: Sort headers.
12195 * disasm-selftests.c: Sort headers.
12196 * dictionary.c: Sort headers.
12197 * dicos-tdep.c: Sort headers.
12198 * demangle.c: Sort headers.
12199 * dcache.h: Sort headers.
12200 * dcache.c: Sort headers.
12201 * darwin-nat.h: Sort headers.
12202 * darwin-nat.c: Sort headers.
12203 * darwin-nat-info.c: Sort headers.
12204 * d-valprint.c: Sort headers.
12205 * d-namespace.c: Sort headers.
12206 * d-lang.c: Sort headers.
12207 * ctf.c: Sort headers.
12208 * csky-tdep.c: Sort headers.
12209 * csky-linux-tdep.c: Sort headers.
12210 * cris-tdep.c: Sort headers.
12211 * cris-linux-tdep.c: Sort headers.
12212 * cp-valprint.c: Sort headers.
12213 * cp-support.c: Sort headers.
12214 * cp-namespace.c: Sort headers.
12215 * cp-abi.c: Sort headers.
12216 * corelow.c: Sort headers.
12217 * corefile.c: Sort headers.
12218 * continuations.c: Sort headers.
12219 * completer.h: Sort headers.
12220 * completer.c: Sort headers.
12221 * complaints.c: Sort headers.
12222 * coffread.c: Sort headers.
12223 * coff-pe-read.c: Sort headers.
12224 * cli-out.h: Sort headers.
12225 * cli-out.c: Sort headers.
12226 * charset.c: Sort headers.
12227 * c-varobj.c: Sort headers.
12228 * c-valprint.c: Sort headers.
12229 * c-typeprint.c: Sort headers.
12230 * c-lang.c: Sort headers.
12231 * buildsym.c: Sort headers.
12232 * buildsym-legacy.c: Sort headers.
12233 * build-id.h: Sort headers.
12234 * build-id.c: Sort headers.
12235 * btrace.c: Sort headers.
12236 * bsd-uthread.c: Sort headers.
12237 * breakpoint.h: Sort headers.
12238 * breakpoint.c: Sort headers.
12239 * break-catch-throw.c: Sort headers.
12240 * break-catch-syscall.c: Sort headers.
12241 * break-catch-sig.c: Sort headers.
12242 * blockframe.c: Sort headers.
12243 * block.c: Sort headers.
12244 * bfin-tdep.c: Sort headers.
12245 * bfin-linux-tdep.c: Sort headers.
12246 * bfd-target.c: Sort headers.
12247 * bcache.c: Sort headers.
12248 * ax-general.c: Sort headers.
12249 * ax-gdb.h: Sort headers.
12250 * ax-gdb.c: Sort headers.
12251 * avr-tdep.c: Sort headers.
12252 * auxv.c: Sort headers.
12253 * auto-load.c: Sort headers.
12254 * arm-wince-tdep.c: Sort headers.
12255 * arm-tdep.c: Sort headers.
12256 * arm-symbian-tdep.c: Sort headers.
12257 * arm-pikeos-tdep.c: Sort headers.
12258 * arm-obsd-tdep.c: Sort headers.
12259 * arm-nbsd-tdep.c: Sort headers.
12260 * arm-nbsd-nat.c: Sort headers.
12261 * arm-linux-tdep.c: Sort headers.
12262 * arm-linux-nat.c: Sort headers.
12263 * arm-fbsd-tdep.c: Sort headers.
12264 * arm-fbsd-nat.c: Sort headers.
12265 * arm-bsd-tdep.c: Sort headers.
12266 * arch-utils.c: Sort headers.
12267 * arc-tdep.c: Sort headers.
12268 * arc-newlib-tdep.c: Sort headers.
12269 * annotate.h: Sort headers.
12270 * annotate.c: Sort headers.
12271 * amd64-windows-tdep.c: Sort headers.
12272 * amd64-windows-nat.c: Sort headers.
12273 * amd64-tdep.c: Sort headers.
12274 * amd64-sol2-tdep.c: Sort headers.
12275 * amd64-obsd-tdep.c: Sort headers.
12276 * amd64-obsd-nat.c: Sort headers.
12277 * amd64-nbsd-tdep.c: Sort headers.
12278 * amd64-nbsd-nat.c: Sort headers.
12279 * amd64-nat.c: Sort headers.
12280 * amd64-linux-tdep.c: Sort headers.
12281 * amd64-linux-nat.c: Sort headers.
12282 * amd64-fbsd-tdep.c: Sort headers.
12283 * amd64-fbsd-nat.c: Sort headers.
12284 * amd64-dicos-tdep.c: Sort headers.
12285 * amd64-darwin-tdep.c: Sort headers.
12286 * amd64-bsd-nat.c: Sort headers.
12287 * alpha-tdep.c: Sort headers.
12288 * alpha-obsd-tdep.c: Sort headers.
12289 * alpha-nbsd-tdep.c: Sort headers.
12290 * alpha-mdebug-tdep.c: Sort headers.
12291 * alpha-linux-tdep.c: Sort headers.
12292 * alpha-linux-nat.c: Sort headers.
12293 * alpha-bsd-tdep.c: Sort headers.
12294 * alpha-bsd-nat.c: Sort headers.
12295 * aix-thread.c: Sort headers.
12296 * agent.c: Sort headers.
12297 * addrmap.c: Sort headers.
12298 * ada-varobj.c: Sort headers.
12299 * ada-valprint.c: Sort headers.
12300 * ada-typeprint.c: Sort headers.
12301 * ada-tasks.c: Sort headers.
12302 * ada-lang.c: Sort headers.
12303 * aarch64-tdep.c: Sort headers.
12304 * aarch64-ravenscar-thread.c: Sort headers.
12305 * aarch64-newlib-tdep.c: Sort headers.
12306 * aarch64-linux-tdep.c: Sort headers.
12307 * aarch64-linux-nat.c: Sort headers.
12308 * aarch64-fbsd-tdep.c: Sort headers.
12309 * aarch64-fbsd-nat.c: Sort headers.
12310 * aarch32-linux-nat.c: Sort headers.
12311
699bd4cf
TT
123122019-04-04 Tom Tromey <tom@tromey.com>
12313
12314 * varobj.c (varobj_create): Update.
12315 * rust-exp.y (struct rust_parser) <update_innermost_block,
12316 lookup_symbol>: New methods.
12317 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12318 Rename.
12319 (rust_parser::rust_lookup_type)
12320 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12321 * printcmd.c (display_command, do_one_display): Update.
12322 * parser-defs.h (struct parser_state) <parser_state>: Add
12323 "tracker" parameter.
12324 (block_tracker): New member.
12325 (class innermost_block_tracker) <innermost_block_tracker>: Add
12326 "types" parameter.
12327 <reset>: Remove method.
12328 (innermost_block): Don't declare.
12329 (null_post_parser): Update.
12330 * parse.c (innermost_block): Remove global.
12331 (write_dollar_variable): Update.
12332 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12333 Remove "tracker_types" parameter.
12334 (parse_expression): Add "tracker" parameter.
12335 (parse_expression_for_completion): Update.
12336 (null_post_parser): Add "tracker" parameter.
12337 * p-exp.y: Update rules.
12338 * m2-exp.y: Update rules.
12339 * language.h (struct language_defn) <la_post_parser>: Add
12340 "tracker" parameter.
12341 * go-exp.y: Update rules.
12342 * f-exp.y: Update rules.
12343 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12344 parameter.
12345 * d-exp.y: Update rules.
12346 * c-exp.y: Update rules.
12347 * breakpoint.c (set_breakpoint_condition): Create an
12348 innermost_block_tracker.
12349 (watch_command_1): Likewise.
12350 * ada-lang.c (resolve): Add "tracker" parameter.
12351 (resolve_subexp): Likewise.
12352 * ada-exp.y (write_var_from_sym): Update.
12353
dac43e32
TT
123542019-04-04 Tom Tromey <tom@tromey.com>
12355
12356 * type-stack.h: New file.
12357 * type-stack.c: New file.
12358 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12359 type-stack.h.
12360 (insert_into_type_stack, insert_type, push_type, push_type_int)
12361 (insert_type_address_space, pop_type, pop_type_int)
12362 (pop_typelist, pop_type_stack, append_type_stack)
12363 (push_type_stack, get_type_stack, push_typelist)
12364 (follow_type_instance_flags, follow_types): Don't declare.
12365 * parse.c (type_stack): Remove global.
12366 (parse_exp_in_context): Update.
12367 (insert_into_type_stack, insert_type, push_type, push_type_int)
12368 (insert_type_address_space, pop_type, pop_type_int)
12369 (pop_typelist, pop_type_stack, append_type_stack)
12370 (push_type_stack, get_type_stack, push_typelist)
12371 (follow_type_instance_flags, follow_types): Remove (moved to
12372 type-stack.c).
12373 * f-exp.y (type_stack): New global.
12374 Update rules.
12375 (push_kind_type, f_parse): Update.
12376 * d-exp.y (type_stack): New global.
12377 Update rules.
12378 (d_parse): Update.
12379 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12380 Update rules.
12381 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12382 (HFILES_NO_SRCDIR): Add type-stack.h.
12383
2a612529
TT
123842019-04-04 Tom Tromey <tom@tromey.com>
12385
12386 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12387 (rust_parser::convert_ast_to_expression, rust_parse)
12388 (rust_lex_test_completion, rust_lex_tests): Update.
12389 * parser-defs.h (struct expr_completion_state): New.
12390 (struct parser_state) <parser_state>: Add completion parameter.
12391 <mark_struct_expression, mark_completion_tag>: New methods.
12392 <parse_completion, m_completion_state>: New members.
12393 (prefixify_expression, null_post_parser): Update.
12394 (mark_struct_expression, mark_completion_tag): Don't declare.
12395 * parse.c (parse_completion, expout_last_struct)
12396 (expout_tag_completion_type, expout_completion_name): Remove
12397 globals.
12398 (parser_state::mark_struct_expression)
12399 (parser_state::mark_completion_tag): Now methods.
12400 (prefixify_expression): Add last_struct parameter.
12401 (prefixify_subexp): Likewise.
12402 (parse_exp_1): Update.
12403 (parse_exp_in_context): Add cstate parameter. Update.
12404 (parse_expression_for_completion): Create an
12405 expr_completion_state.
12406 (null_post_parser): Add "completion" parameter.
12407 * p-exp.y: Update rules.
12408 (yylex): Update.
12409 * language.h (struct language_defn) <la_post_parser>: Add
12410 "completing" parameter.
12411 * go-exp.y: Update rules.
12412 (lex_one_token): Update.
12413 * expression.h (parse_completion): Don't declare.
12414 * d-exp.y: Update rules.
12415 (lex_one_token): Update rules.
12416 * c-exp.y: Update rules.
12417 (lex_one_token): Update.
12418 * ada-lang.c (resolve): Add "parse_completion" parameter.
12419 (resolve_subexp): Likewise.
12420 (ada_resolve_function): Likewise.
12421
43476f0b
TT
124222019-04-04 Tom Tromey <tom@tromey.com>
12423
12424 * parser-defs.h (struct parser_state) <start_arglist,
12425 end_arglist>: New methods.
12426 <arglist_len, m_funcall_chain>: New members.
12427 (arglist_len, start_arglist, end_arglist): Don't declare.
12428 * parse.c (arglist_len, funcall_chain): Remove global.
12429 (start_arglist, end_arglist): Remove functions.
12430 (parse_exp_in_context): Update.
12431 * p-exp.y: Update rules.
12432 * m2-exp.y: Update rules.
12433 * go-exp.y: Update rules.
12434 * f-exp.y: Update rules.
12435 * d-exp.y: Update rules.
12436 * c-exp.y: Update rules.
12437
5776fca3
TT
124382019-04-04 Tom Tromey <tom@tromey.com>
12439
12440 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12441 lex_operator, push_back>: New methods.
12442 Update all rules.
12443 (rust_parser::lex_hex, lex_escape): Rename and update.
12444 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12445 (rust_parser::lex_operator): Rename and update.
12446 (rust_parser::lex_number, rustyylex, rustyyerror)
12447 (rust_lex_test_init, rust_lex_test_sequence)
12448 (rust_lex_test_push_back, rust_lex_tests): Update.
12449 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12450 parameter.
12451 <lexptr, prev_lexptr>: New members.
12452 (lexptr, prev_lexptr): Don't declare.
12453 * parse.c (lexptr, prev_lexptr): Remove globals.
12454 (parse_exp_in_context): Update.
12455 * p-exp.y (yylex, yyerror): Update.
12456 * m2-exp.y (parse_number, yylex, yyerror): Update.
12457 * go-exp.y (lex_one_token, yyerror): Update.
12458 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12459 * d-exp.y (lex_one_token, yyerror): Update.
12460 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12461 (lex_one_token, yyerror): Update.
12462 * ada-lex.l (YY_INPUT): Update.
12463 (rewind_to_char): Update.
12464 * ada-exp.y (yyerror): Update.
12465
8621b685
TT
124662019-04-04 Tom Tromey <tom@tromey.com>
12467
12468 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12469 * parser-defs.h (struct parser_state) <parser_state>: Add new
12470 parameter.
12471 <comma_terminates>: New member.
12472 (comma_terminates): Don't declare global.
12473 * parse.c (comma_terminates): Remove global.
12474 (parse_exp_in_context): Update.
12475 * p-exp.y (yylex): Update.
12476 * m2-exp.y (yylex): Update.
12477 * go-exp.y (lex_one_token): Update.
12478 * f-exp.y (yylex): Update.
12479 * d-exp.y (lex_one_token): Update.
12480 * c-exp.y (lex_one_token): Update.
12481 * ada-lex.l: Update.
12482
28aaf3fd
TT
124832019-04-04 Tom Tromey <tom@tromey.com>
12484
12485 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12486 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12487 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12488 * parser-defs.h (paren_depth): Don't declare.
12489 * parse.c (paren_depth): Remove global.
12490 (parse_exp_in_context): Update.
12491 * p-exp.y (paren_depth): New global.
12492 (pascal_parse): Initialize it.
12493 * m2-exp.y (paren_depth): New global.
12494 (m2_parse): Initialize it.
12495 * go-exp.y (paren_depth): New global.
12496 (go_parse): Initialize it.
12497 * f-exp.y (paren_depth): New global.
12498 (f_parse): Initialize it.
12499 * d-exp.y (paren_depth): New global.
12500 (d_parse): Initialize it.
12501 * c-exp.y (paren_depth): New global.
12502 (c_parse): Initialize it.
12503 * ada-lex.l (paren_depth): New global.
12504 (lexer_init): Initialize it.
12505
1e58a4a4
TT
125062019-04-04 Tom Tromey <tom@tromey.com>
12507
12508 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12509 (rust_parser::convert_ast_to_type)
12510 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12511 * parser-defs.h (struct parser_state) <parser_state>: Add
12512 parameters. Initialize new members.
12513 <expression_context_block, expression_context_pc>: New members.
12514 * parse.c (expression_context_block, expression_context_pc):
12515 Remove globals.
12516 (parse_exp_in_context): Update.
12517 * p-exp.y: Update all rules.
12518 (yylex): Update.
12519 * m2-exp.y: Update all rules.
12520 (yylex): Update.
12521 * go-exp.y (yylex): Update.
12522 * f-exp.y (yylex): Update.
12523 * d-exp.y: Update all rules.
12524 (yylex): Update.
12525 * c-exp.y: Update all rules.
12526 (lex_one_token, classify_name, yylex, c_parse): Update.
12527 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12528
37eedb39
TT
125292019-04-04 Tom Tromey <tom@tromey.com>
12530
12531 * gdbarch.h, gdbarch.c: Rebuild.
12532 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12533 * stap-probe.h:
12534 (struct stap_parse_info): Replace "parser_state" with
12535 "expr_builder".
12536 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12537 (parser_state): New class.
12538 * parse.c (expr_builder): Rename.
12539 (expr_builder::release): Rename.
12540 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12541 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12542 (write_exp_elt_longcst, write_exp_elt_floatcst)
12543 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12544 (write_exp_string_vector, write_exp_bitstring)
12545 (write_exp_msymbol, mark_struct_expression)
12546 (write_dollar_variable)
12547 (insert_type_address_space, increase_expout_size): Replace
12548 "parser_state" with "expr_builder".
12549 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12550 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12551 "parser_state" with "expr_builder".
12552
73923d7e
TT
125532019-04-04 Tom Tromey <tom@tromey.com>
12554
12555 * rust-exp.y: Replace "parse_language" with method call.
12556 * p-exp.y:
12557 (yylex): Replace "parse_language" with method call.
12558 * m2-exp.y:
12559 (yylex): Replace "parse_language" with method call.
12560 * go-exp.y (classify_name): Replace "parse_language" with method
12561 call.
12562 * f-exp.y (yylex): Replace "parse_language" with method call.
12563 * d-exp.y (lex_one_token): Replace "parse_language" with method
12564 call.
12565 * c-exp.y:
12566 (lex_one_token, classify_name, yylex): Replace "parse_language"
12567 with method call.
12568 * ada-exp.y (find_primitive_type, type_char)
12569 (type_system_address): Replace "parse_language" with method call.
12570
fa9f5be6
TT
125712019-04-04 Tom Tromey <tom@tromey.com>
12572
12573 * rust-exp.y: Replace "parse_gdbarch" with method call.
12574 * parse.c (write_dollar_variable, insert_type_address_space):
12575 Replace "parse_gdbarch" with method call.
12576 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12577 call.
12578 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12579 call.
12580 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12581 "parse_gdbarch" with method call.
12582 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12583 with method call.
12584 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12585 "parse_gdbarch" with method call.
12586 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12587 "parse_gdbarch" with method call.
12588 * c-exp.y (parse_type, parse_number, classify_name): Replace
12589 "parse_gdbarch" with method call.
12590 * ada-lex.l: Replace "parse_gdbarch" with method call.
12591 * ada-exp.y (parse_type, find_primitive_type, type_char)
12592 (type_system_address): Replace "parse_gdbarch" with method call.
12593
1201a264
TT
125942019-04-04 Tom Tromey <tom@tromey.com>
12595
12596 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12597 * stap-probe.c (stap_parse_argument): Update.
12598 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12599 initial_size parameter.
12600 * rust-exp.y (rust_lex_tests): Update.
12601 * parse.c (parser_state): Update.
12602 (parse_exp_in_context): Update.
12603 * parser-defs.h (struct parser_state) <parser_state>: Remove
12604 "initial_size" parameter.
12605
e3980ce2
TT
126062019-04-04 Tom Tromey <tom@tromey.com>
12607
12608 * parser-defs.h (increase_expout_size): Don't declare.
12609 * parse.c (increase_expout_size): Now static.
12610
e9f8e3f1
TS
126112019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12612
12613 * gnu-nat.c (gnu_nat_target::wait): Fix
12614 target_waitstatus_to_string call.
12615
d7df6549
AB
126162019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12617
12618 * eval.c (evaluate_subexp_standard): Handle internal functions
12619 during Fortran function call handling.
12620
8bdc1658
AB
126212019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12622
12623 * NEWS: Mention new internal functions.
12624 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12625 (read_base_type): Use dwarf2_init_complex_target_type.
12626 * value.c (creal_internal_fn): New function.
12627 (cimag_internal_fn): New function.
12628 (_initialize_values): Register new internal functions.
12629
c29705b7
PW
126302019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12631
12632 * infrun.c (stop_all_threads): If debug_infrun, always
12633 trace the wait status after wait_one, using
12634 target_waitstatus_to_string and target_pid_to_str.
12635 (handle_inferior_event): Replace various trace of
12636 wait status kind by a single trace.
12637 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12638 wait status kind image by target_waitstatus_to_string.
12639 * target/waitstatus.c (target_waitstatus_to_string): Fix
12640 obsolete comment.
12641
05caa1d2
TT
126422019-04-01 Tom Tromey <tromey@adacore.com>
12643
12644 PR symtab/23331:
12645 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12646
9d1447e0
SDJ
126472019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12648 Pedro Alves <palves@redhat.com>
12649
12650 * top.c (quit_force): Call 'finalize_values'.
12651 * value.c (finalize_values): New function.
12652 * value.h (finalize_values): Declare.
12653
7734102d
EZ
126542019-03-30 Eli Zaretskii <eliz@gnu.org>
12655
12656 * NEWS: Announce $_gdb_major and $_gdb_minor.
12657
12658 * top.c (init_gdb_version_vars): New function.
12659 (gdb_init): Call init_gdb_version_vars.
12660
188e1fa9
TT
126612019-03-29 Tom Tromey <tromey@adacore.com>
12662
12663 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12664 help text. Remove dead code.
12665
2880242d
KS
126662019-03-29 Keith Seitz <keiths@redhat.com>
12667
12668 From Siddhesh Poyarekar:
12669 * f-lang.h (f77_get_upperbound): Return LONGEST.
12670 (f77_get_lowerbound): Likewise.
12671 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12672 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12673 print them.
12674 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12675 plongest to format print it.
12676 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12677 (f77_get_upperbound): Likewise.
12678 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12679 LOWER_BOUND to LONGEST.
12680 (f77_create_arrayprint_offset_tbl): Likewise.
12681
cc1defb1
KS
126822019-03-29 Keith Seitz <keiths@redhat.com>
12683
12684 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12685 %s/pulongest for TYPE_LENGTH instead of %d in format
12686 strings.
12687 * ada-typerint.c (ada_print_type): Likewise.
12688 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12689 * compile/compile-c-support.c (generate_register_struct): Likewise.
12690 * gdbtypes.c (recursive_dump_type): Likewise.
12691 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12692 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12693 instead of %d in format strings.
12694 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12695 to std::min to ULONGEST.
12696 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12697 instead of %d in format strings.
12698 * tracepoint.c (info_scope_command): Likewise.
12699 * typeprint.c (print_offset_data::update)
12700 (print_offset_data::finish): Likewise.
12701 * xtensa-tdep.c (xtensa_store_return_value)
12702 (xtensa_push_dummy_call): Likewise.
12703
e432ccf1
JT
127042019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12705
12706 * windows-nat.c (display_selector): Fixed format specifications
12707 for 64-bit Cygwin.
12708
65d2b333
PW
127092019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12710
12711 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12712
f489207e
SL
127132019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12714
12715 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12716 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12717 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12718 (nios2_linux_init_abi): Install it.
12719
bffa1015
AH
127202019-03-28 Alan Hayward <alan.hayward@arm.com>
12721
12722 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12723
fc96163a
AH
127242019-03-28 Alan Hayward <alan.hayward@arm.com>
12725
12726 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12727
20dc7e9b
PW
127282019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12729 Tom Tromey <tromey@adacore.com>
12730
12731 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12732
7f5331a8
JB
127332019-03-26 Joel Brobecker <brobecker@adacore.com>
12734
12735 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12736 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12737 method to compute the bounds of range types. Also print "[evaluated]"
12738 if the bounds' values come from a dynamic evaluation.
12739
18c77628
AB
127402019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12741
12742 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12743 whitespace when pretty printing is on.
12744
53c973f2
AH
127452019-03-26 Alan Hayward <alan.hayward@arm.com>
12746
e79be6e5 12747 * ppc-linux-nat.c: Add include.
53c973f2 12748
d851aa71
AH
127492019-03-26 Alan Hayward <alan.hayward@arm.com>
12750
e79be6e5 12751 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12752
2fe7bab7
AH
127532019-03-26 Alan Hayward <alan.hayward@arm.com>
12754
e79be6e5 12755 * arm-linux-nat.c: Add include.
2fe7bab7 12756
068ef30e
SM
127572019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12758
12759 * source-cache.c (source_cache::get_source_lines): Re-read
12760 fullname after calling open_source_file.
12761
81a24d04
JB
127622019-03-25 John Baldwin <jhb@FreeBSD.org>
12763
12764 * NEWS: Mention TLS support for FreeBSD.
12765
79e7ae11
TT
127662019-03-25 Tom Tromey <tromey@adacore.com>
12767
12768 * minsyms.c (BUNCH_SIZE): Update comment.
12769 (~minimal_symbol_reader): Remove old comment.
12770 (compact_minimal_symbols): Update comment.
12771 (minimal_symbol_reader::install): Remove old comment. Update
12772 other comments.
12773
d45963c2
AH
127742019-03-25 Alan Hayward <alan.hayward@arm.com>
12775
12776 * s390-linux-nat.c: Add include.
12777
0f83012e
AH
127782019-03-25 Alan Hayward <alan.hayward@arm.com>
12779
12780 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12781 Call linux_get_hwcap.
12782 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12783 Likewise.
12784 (aarch64_linux_get_hwcap): Remove function.
12785 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12786 declaration.
12787 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12788 linux_get_hwcap.
12789 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12790 * linux-tdep.c (linux_get_hwcap): Add function.
12791 (linux_get_hwcap2): Likewise.
12792 * linux-tdep.h (linux_get_hwcap): Add declaration.
12793 (linux_get_hwcap2): Likewise.
12794 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12795 (ppc_linux_get_hwcap2): Likewise.
12796 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12797 linux_get_hwcap.
12798 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12799 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12800 (ppc_linux_nat_target::read_description): Likewise.
12801 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12802 * s390-linux-nat.c: Likewise.
12803 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12804
6640a367
TT
128052019-03-24 Tom Tromey <tom@tromey.com>
12806
12807 * ada-lang.c (standard_lookup): Simplify initialization.
12808 (ada_lookup_symbol_nonlocal): Simplify return.
12809 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12810 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12811 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12812 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12813 initialization.
12814 * solib.c (solib_global_lookup): Simplify.
12815 * symtab.c (null_block_symbol): Remove.
12816 (symbol_cache_lookup): Simplify returns.
12817 (lookup_language_this): Simplify returns.
12818 (lookup_symbol_aux): Simplify return.
12819 (lookup_local_symbol): Simplify returns.
12820 (lookup_global_symbol_from_objfile): Simplify return.
12821 (lookup_symbol_in_objfile_symtabs)
12822 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12823 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12824 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12825 * cp-namespace.c (cp_lookup_bare_symbol)
12826 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12827 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12828 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12829 (cp_lookup_symbol_via_imports): Simplify initialization.
12830 (find_symbol_in_baseclass): Likewise.
12831 * symtab.h (null_block_symbol): Remove.
12832 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12833 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12834 (d_lookup_symbol_module): Likewise.
12835 (find_symbol_in_baseclass): Simplify initialization.
12836
a930ebcd
TT
128372019-03-24 Tom Tromey <tom@tromey.com>
12838
12839 * expression.h: Don't include symtab.h.
12840 (struct block): Forward declare.
12841
582942f4
TT
128422019-03-24 Tom Tromey <tom@tromey.com>
12843
12844 * c-exp.y (typebase): Remove casts.
12845 * gdbtypes.c (lookup_unsigned_typename, )
12846 (lookup_signed_typename): Remove cast.
12847 * eval.c (parse_to_comma_and_eval): Remove cast.
12848 * parse.c (write_dollar_variable): Remove cast.
12849 * block.h (struct block) <superblock>: Now const.
12850 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12851 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12852 (map_block): Make "block" const.
12853 * symfile.h (struct quick_symbol_functions)
12854 <map_matching_symbols>: Constify block argument to "callback".
12855 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12856 const.
12857 (find_pc_sect_compunit_symtab): Make "b" const.
12858 (find_symbol_at_address): Likewise.
12859 (search_symbols): Likewise.
12860 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12861 (dw2_debug_names_lookup_symbol): Likewise.
12862 (dw2_map_matching_symbols): Update.
12863 * p-valprint.c (pascal_val_print): Remove "block".
12864 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12865 (aux_add_nonlocal_symbols): Make "block" const.
12866 (resolve_subexp): Remove cast.
12867 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12868 const.
12869 (iterate_over_file_blocks): Likewise.
12870 * f-exp.y (%union) <bval>: Remove.
12871 * coffread.c (patch_opaque_types): Make "b" const.
12872 * spu-tdep.c (spu_catch_start): Make "block" const.
12873 * c-valprint.c (print_unpacked_pointer): Remove "block".
12874 * symmisc.c (dump_symtab_1): Make "b" const.
12875 (block_depth): Make "block" const.
12876 * d-exp.y (%union) <bval>: Remove.
12877 * cp-support.h (cp_lookup_rtti_type): Update.
12878 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12879 * psymtab.c (psym_lookup_symbol): Make "block" const.
12880 (maintenance_check_psymtabs): Make "b" const.
12881 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12882 (enumerate_locals, enumerate_args): Update.
12883 * python/py-symtab.c (stpy_global_block): Make "block" const.
12884 (stpy_static_block): Likewise.
12885 * inline-frame.c (block_starting_point_at): Make "new_block"
12886 const.
12887 * block.c (find_block_in_blockvector): Make return type const.
12888 (blockvector_for_pc_sect): Make "b" const.
12889 (find_block_in_blockvector): Make "b" const.
12890
7ad417dd
TT
128912019-03-23 Tom Tromey <tom@tromey.com>
12892
12893 * varobj.c (varobj_create): Update.
12894 * symfile.c (clear_symtab_users): Don't reset innermost_block.
12895 * printcmd.c (display_command, do_one_display): Don't reset
12896 innermost_block.
12897 * parser-defs.h (enum innermost_block_tracker_type): Move to
12898 expression.h.
12899 (innermost_block): Update comment.
12900 * parse.c (parse_exp_1): Add tracker_types parameter.
12901 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
12902 tracker_types parameter. Reset innermost_block.
12903 (parse_exp_in_context): Remove.
12904 (parse_expression_for_completion): Update.
12905 * objfiles.c (~objfile): Don't reset expression_context_block or
12906 innermost_block.
12907 * expression.h (enum innermost_block_tracker_type): Move from
12908 parser-defs.h.
12909 (parse_exp_1): Add tracker_types parameter.
12910 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
12911 reset innermost_block.
12912
b366c208
TT
129132019-03-23 Tom Tromey <tom@tromey.com>
12914
12915 * objfiles.h: Include bcache.h.
12916
9bb9b2f9
TT
129172019-03-23 Tom Tromey <tom@tromey.com>
12918
12919 * linespec.c (get_current_search_block): Use
12920 scoped_restore_current_language.
12921 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
12922
59c28372
AH
129232019-03-22 Alan Hayward <alan.hayward@arm.com>
12924 Jiong Wang <jiong.wang@arm.com>
12925
12926 * aarch64-linux-tdep.c
12927 (aarch64_linux_iterate_over_regset_sections): Check for pauth
12928 section.
12929 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
12930
17e116a7
AH
129312019-03-22 Alan Hayward <alan.hayward@arm.com>
12932 Jiong Wang <jiong.wang@arm.com>
12933
12934 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
12935 instructions.
12936 (aarch64_analyze_prologue_test): Add PACIASP test.
12937 (aarch64_prologue_prev_register): Unmask PC value.
12938
11e1b75f
AH
129392019-03-22 Alan Hayward <alan.hayward@arm.com>
12940 Jiong Wang <jiong.wang@arm.com>
12941
12942 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
12943 (aarch64_dwarf2_prev_register): Unmask PC value.
12944 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
12945 (aarch64_execute_dwarf_cfa_vendor_op): Check for
12946 DW_CFA_AARCH64_negate_ra_state.
12947 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
12948
34dcc7cf
AH
129492019-03-22 Alan Hayward <alan.hayward@arm.com>
12950 Jiong Wang <jiong.wang@arm.com>
12951
12952 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
12953 registers.
12954 (aarch64_pseudo_register_name): Likewise.
12955 (aarch64_pseudo_register_type): Likewise.
12956 (aarch64_pseudo_register_reggroup_p): Likewise.
12957 (aarch64_gdbarch_init): Add pauth registers.
12958 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
12959 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12960 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
12961 (struct gdbarch_tdep): Add regnum for ra_state.
12962
1ef53e6b
AH
129632019-03-22 Alan Hayward <alan.hayward@arm.com>
12964 Jiong Wang <jiong.wang@arm.com>
12965
12966 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
12967
76bed0fd
AH
129682019-03-22 Alan Hayward <alan.hayward@arm.com>
12969 Jiong Wang <jiong.wang@arm.com>
12970
12971 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
12972 function.
12973 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
12974 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
12975 (aarch64_gdbarch_init): Add puth registers.
12976 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
12977 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
12978 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
12979
ee4fbcfa
AH
129802019-03-22 Alan Hayward <alan.hayward@arm.com>
12981 Jiong Wang <jiong.wang@arm.com>
12982
12983 * aarch64-linux-nat.c
12984 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
12985 * aarch64-linux-tdep.c
12986 (aarch64_linux_core_read_description): Likewise.
12987 (aarch64_linux_get_hwcap): New function.
12988 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
12989 (aarch64_linux_get_hwcap): New declaration.
12990
6dc0ebde
AH
129912019-03-22 Alan Hayward <alan.hayward@arm.com>
12992 Jiong Wang <jiong.wang@arm.com>
12993
12994 * aarch64-linux-nat.c
12995 (aarch64_linux_nat_target::read_description): Add pauth param.
12996 * aarch64-linux-tdep.c
12997 (aarch64_linux_core_read_description): Likewise.
12998 * aarch64-tdep.c (struct target_desc): Add in pauth.
12999 (aarch64_read_description): Add pauth param.
13000 (aarch64_gdbarch_init): Likewise.
13001 * aarch64-tdep.h (aarch64_read_description): Likewise.
13002 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13003 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13004 * features/Makefile: Add new files.
13005 * features/aarch64-pauth.c: New file.
13006 * features/aarch64-pauth.xml: New file.
13007
595915c1
TT
130082019-03-20 Tom Tromey <tromey@adacore.com>
13009
13010 * infrun.c (handle_inferior_event): Rename from
13011 handle_inferior_event_1. Create a scoped_value_mark.
13012 (handle_inferior_event): Remove.
13013
4c7d57e7
TT
130142019-03-19 Tom Tromey <tromey@adacore.com>
13015
13016 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13017 * infrun.h (print_stop_event): Add "displays" parameter.
13018 * infrun.c (print_stop_event): Add "displays" parameter.
13019
cb246234
PA
130202019-03-19 Pedro Alves <palves@redhat.com>
13021
13022 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13023 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13024 to -1. Fix TABs vs spaces.
13025 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13026 * tui/tui-out.h (tui_ui_out) Add intro comments.
13027 <m_line, m_start_of_line>: In-class initialize, and add describing
13028 comment.
13029
3a0e45b2
AH
130302019-03-18 Alan Hayward <alan.hayward@arm.com>
13031
13032 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13033 variable names.
13034 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13035
5371b850
PA
130362019-03-18 Pedro Alves <palves@redhat.com>
13037 Eli Zaretskii <eliz@gnu.org>
13038
13039 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13040 m_line and m_start_of_line.
13041
b17c4cd0
EZ
130422019-03-18 Eli Zaretskii <eliz@gnu.org>
13043
13044 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13045 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13046 it returns a newline. This fixes a regression in TU mode, whereby
13047 the next line is output on the same screen line as the user input.
13048
4bd56d18
TT
130492019-03-18 Tom Tromey <tromey@adacore.com>
13050
13051 * minsyms.c (minimal_symbol_reader::install): Remove call to
13052 obstack_blank.
13053
55c10aca
PA
130542019-03-18 Pedro Alves <palves@redhat.com>
13055
13056 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13057 New globals.
13058 (apply_style): New, factored out from ...
13059 (apply_ansi_escape): ... this. Handle reverse video mode.
13060 (tui_set_reverse_mode): New function.
13061 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13062 * tui/tui-winsource.c (tui_show_source_line): Use
13063 tui_set_reverse_mode instead of setting A_STANDOUT.
13064 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13065 New setter methods.
13066
647bb750
HD
130672019-03-18 Hannes Domani <ssbssa@yahoo.de>
13068
13069 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13070 Handle tabs.
13071
bff8c71f
TT
130722019-03-18 Tom Tromey <tromey@adacore.com>
13073
13074 * ada-lang.c (empty_array): Add "high" parameter.
13075 (ada_evaluate_subexp): Update.
13076
58785d98
ST
130772019-03-17 Sergei Trofimovich <siarheit@google.com>
13078
13079 * unittests/string_view-selftests.c: Define
13080 _initialize_string_view_selftests unconditionally.
13081
d4cbef22
ВМ
130822019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13083
13084 PR gdb/24350
13085 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13086
fce4c071
ВМ
130872019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13088
13089 PR gdb/24351
13090 * windows-nat.c (display_selector): Fix format specifiers.
13091
f7f0a123
EZ
130922019-03-17 Eli Zaretskii <eliz@gnu.org>
13093
13094 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13095 tui_refill_source_window instead of tui_refresh_win, to update the
13096 current execution line. This fixes redisplay of the current line
13097 when stepping through the code with "next" or "step".
13098
ab42892f
EZ
130992019-03-16 Eli Zaretskii <eliz@gnu.org>
13100
13101 * source-cache.c (source_cache::get_source_lines): Call
13102 find_source_lines to initialize s->nlines. This fixes vertical
13103 scrolling of TUI source window when the DOWN arrow is pressed.
13104
8d8c087f
PW
131052019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13106
13107 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13108 linux-thread-db.c (_initialize_thread_db): Likewise.
13109
798e1c30
EZ
131102019-03-16 Eli Zaretskii <eliz@gnu.org>
13111
13112 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13113 wclrtoeol in tui_show_source_line". This reverts changes made in
13114 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13115
eefba3da
TT
131162019-03-15 Tom Tromey <tom@tromey.com>
13117
13118 * symtab.h (struct minimal_symbol): Derive from
13119 general_symbol_info.
13120 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13121 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13122 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13123 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13124 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13125 (MSYMBOL_SEARCH_NAME): Update.
13126 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13127 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13128 * minsyms.c (minimal_symbol_reader::record_full): Update.
13129
0de2420c
TT
131302019-03-15 Tom Tromey <tom@tromey.com>
13131
13132 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13133
042d75e4
TT
131342019-03-15 Tom Tromey <tom@tromey.com>
13135
13136 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13137 unique_xmalloc_ptr.
13138 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13139 Update.
13140 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13141 (build_minimal_symbol_hash_tables)
13142 (minimal_symbol_reader::install): Update.
13143
db92718b
TT
131442019-03-15 Tom Tromey <tom@tromey.com>
13145
13146 * symtab.c (create_demangled_names_hash): Update.
13147 (symbol_set_names): Update.
13148 * objfiles.h (struct objfile_per_bfd_storage)
13149 <demangled_names_hash>: Now an htab_up.
13150 * objfiles.c (objfile_per_bfd_storage): Simplify.
13151
d6797f46
TT
131522019-03-15 Tom Tromey <tom@tromey.com>
13153
13154 * objfiles.h (struct objfile_per_bfd_storage): Declare
13155 destructor.
13156 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13157 New.
13158 (get_objfile_bfd_data): Use new. Don't initialize
13159 language_of_main.
13160 (free_objfile_per_bfd_storage): Remove.
13161 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13162
741d7538
TT
131632019-03-15 Tom Tromey <tom@tromey.com>
13164
13165 * symfile.c (reread_symbols): Update.
13166 * objfiles.c (objfile::objfile): Update.
13167 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13168 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13169 comment.
13170 (minimal_symbol_reader::install): Update.
13171 (terminate_minimal_symbol_table): Remove.
13172 * jit.c (jit_object_close_impl): Update.
13173
788c80d1
TT
131742019-03-15 Tom Tromey <tom@tromey.com>
13175
13176 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13177 initializations.
13178
1b7a07cb
TT
131792019-03-15 Tom Tromey <tom@tromey.com>
13180
13181 * objfiles.h (struct objfile_per_bfd_storage)
13182 <demangled_hash_languages>: Now a bitset.
13183 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13184 (lookup_minimal_symbol): Update.
13185
3db066bc
TT
131862019-03-15 Tom Tromey <tom@tromey.com>
13187
13188 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13189 Don't return the symbol.
13190 * coffread.c (record_minimal_symbol): Use record_full.
13191
3fff2c37
EZ
131922019-03-14 Eli Zaretskii <eliz@gnu.org>
13193
13194 The MS-Windows port of ncurses fails to switch to a color pair if
13195 one or both of the colors are the implicit default colors. This
13196 change records the default colors when TUI is initialized, and
13197 then specifies them explicitly when a color pair uses the default
13198 colors. This allows color styling in TUI mode on MS-Windows.
13199
13200 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13201 ncurses_norm_attr.
13202 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13203 colors in ncurses_norm_attr.
13204 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13205 "none", replace it with the default color recorded in
13206 ncurses_norm_attr.
13207
3b336828
TT
132082019-03-14 Tom Tromey <tromey@adacore.com>
13209
13210 * source-cache.h (class source_cache) <get_source_lines>: Return
13211 std::string.
13212 * source-cache.c (source_cache::extract_lines): Handle case where
13213 first_pos==npos. Return std::string.
13214 (source_cache::get_source_lines): Update.
13215
d085f989
TT
132162019-03-14 Tom Tromey <tromey@adacore.com>
13217
13218 * NEWS: Add item for "style sources" commands.
13219 * source-cache.c (source_cache::get_source_lines): Check
13220 source_styling.
13221 * cli/cli-style.c (source_styling): New global.
13222 (_initialize_cli_style): Add "style sources" commands.
13223 (show_style_sources): New function.
13224 * cli/cli-style.h (source_styling): Declare.
13225
6f11e682
TT
132262019-03-14 Pedro Alves <palves@redhat.com>
13227 Tom Tromey <tromey@adacore.com>
13228
13229 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13230 * tui/tui-winsource.c (tui_refill_source_window): New function,
13231 from...
13232 (tui_horizontal_source_scroll): ... here. Move some logic.
13233 * cli/cli-style.c (set_style_enabled): Notify new observable.
13234 * tui/tui-hooks.c (tui_redisplay_source): New function.
13235 (tui_attach_detach_observers): Attach or detach
13236 tui_redisplay_source.
13237 * observable.h (source_styling_changed): New observable.
13238 * observable.c: Define source_styling_changed observable.
13239
a068643d
TT
132402019-03-13 Tom Tromey <tromey@adacore.com>
13241
13242 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13243 (i386_gnu_nat_target::store_registers): Update.
13244 * target-debug.h (target_debug_print_std_string): New macro.
13245 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13246 * windows-tdep.c (display_one_tib): Update.
13247 * tui/tui-stack.c (tui_make_status_line): Update.
13248 * top.c (print_inferior_quit_action): Update.
13249 * thread.c (thr_try_catch_cmd): Update.
13250 (add_thread_with_info): Update.
13251 (thread_target_id_str): Update.
13252 (thr_try_catch_cmd): Update.
13253 (thread_command): Update.
13254 (thread_find_command): Update.
13255 * record-btrace.c (record_btrace_target::info_record)
13256 (record_btrace_resume_thread, record_btrace_target::resume)
13257 (record_btrace_cancel_resume, record_btrace_step_thread)
13258 (record_btrace_target::wait, record_btrace_target::wait)
13259 (record_btrace_target::wait, record_btrace_target::stop): Update.
13260 * progspace.c (print_program_space): Update.
13261 * process-stratum-target.c
13262 (process_stratum_target::thread_address_space): Update.
13263 * linux-fork.c (linux_fork_mourn_inferior)
13264 (detach_checkpoint_command, info_checkpoints_command)
13265 (linux_fork_context): Update.
13266 (linux_fork_detach): Update.
13267 (class scoped_switch_fork_info): Update.
13268 (delete_checkpoint_command): Update.
13269 * infrun.c (follow_fork_inferior): Update.
13270 (follow_fork_inferior): Update.
13271 (proceed_after_vfork_done): Update.
13272 (handle_vfork_child_exec_or_exit): Update.
13273 (follow_exec): Update.
13274 (displaced_step_prepare_throw): Update.
13275 (displaced_step_restore): Update.
13276 (start_step_over): Update.
13277 (resume_1): Update.
13278 (clear_proceed_status_thread): Update.
13279 (proceed): Update.
13280 (print_target_wait_results): Update.
13281 (do_target_wait): Update.
13282 (context_switch): Update.
13283 (stop_all_threads): Update.
13284 (restart_threads): Update.
13285 (finish_step_over): Update.
13286 (handle_signal_stop): Update.
13287 (switch_back_to_stepped_thread): Update.
13288 (keep_going_pass_signal): Update.
13289 (print_exited_reason): Update.
13290 (normal_stop): Update.
13291 * inferior.c (inferior_pid_to_str): Change return type.
13292 (print_selected_inferior): Update.
13293 (add_inferior): Update.
13294 (detach_inferior): Update.
13295 * dummy-frame.c (fprint_dummy_frames): Update.
13296 * dcache.c (dcache_info_1): Update.
13297 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13298 (btrace_fetch, btrace_clear): Update.
13299 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13300 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13301 type.
13302 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13303 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13304 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13305 * gdbarch.c, gdbarch.h: Rebuild.
13306 * gdbarch.sh (core_pid_to_str): Change return type.
13307 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13308 return type.
13309 (windows_nat_target::pid_to_str): Change return type.
13310 (windows_delete_thread): Update.
13311 (windows_nat_target::attach): Update.
13312 (windows_nat_target::files_info): Update.
13313 * target-delegates.c: Rebuild.
13314 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13315 return type.
13316 (sol_thread_target::pid_to_str): Change return type.
13317 * remote.c (class remote_target) <pid_to_str>: Change return
13318 type.
13319 (remote_target::pid_to_str): Change return type.
13320 (extended_remote_target::attach, remote_target::remote_stop_ns)
13321 (remote_target::remote_notif_remove_queued_reply)
13322 (remote_target::push_stop_reply, remote_target::disable_btrace):
13323 Update.
13324 (extended_remote_target::attach): Update.
13325 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13326 type.
13327 (gdbsim_target::pid_to_str): Change return type.
13328 * ravenscar-thread.c (struct ravenscar_thread_target)
13329 <pid_to_str>: Change return type.
13330 (ravenscar_thread_target::pid_to_str): Change return type.
13331 * procfs.c (class procfs_target) <pid_to_str>: Change return
13332 type.
13333 (procfs_target::pid_to_str): Change return type.
13334 (procfs_target::attach): Update.
13335 (procfs_target::detach): Update.
13336 (procfs_target::fetch_registers): Update.
13337 (procfs_target::store_registers): Update.
13338 (procfs_target::wait): Update.
13339 (procfs_target::files_info): Update.
13340 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13341 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13342 return type.
13343 (nto_procfs_target::pid_to_str): Change return type.
13344 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13345 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13346 return type.
13347 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13348 (exit_lwp): Update.
13349 (attach_proc_task_lwp_callback, get_detach_signal)
13350 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13351 (linux_nat_target::resume, wait_lwp, stop_callback)
13352 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13353 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13354 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13355 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13356 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13357 type.
13358 (inf_ptrace_target::attach): Update.
13359 (inf_ptrace_target::files_info): Update.
13360 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13361 type.
13362 (go32_nat_target::pid_to_str): Change return type.
13363 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13364 (gnu_nat_target::wait): Update.
13365 (gnu_nat_target::wait): Update.
13366 (gnu_nat_target::resume): Update.
13367 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13368 (fbsd_nat_target::wait): Update.
13369 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13370 type.
13371 (darwin_nat_target::attach): Update.
13372 * corelow.c (class core_target) <pid_to_str>: Change return type.
13373 (core_target::pid_to_str): Change return type.
13374 * target.c (normal_pid_to_str): Change return type.
13375 (default_pid_to_str): Likewise.
13376 (target_pid_to_str): Change return type.
13377 (target_translate_tls_address): Update.
13378 (target_announce_detach): Update.
13379 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13380 return type.
13381 (bsd_uthread_target::pid_to_str): Change return type.
13382 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13383 type.
13384 (bsd_kvm_target::pid_to_str): Change return type.
13385 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13386 return type.
13387 (aix_thread_target::pid_to_str): Change return type.
13388 * target.h (struct target_ops) <pid_to_str>: Change return type.
13389 (target_pid_to_str, normal_pid_to_str): Likewise.
13390 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13391 type.
13392 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13393 type.
13394 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13395 return type.
13396 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13397 type.
13398 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13399 type.
13400 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13401 return type.
13402
b4be1b06
SM
134032019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13404
13405 * NEWS: Mention that the new default MI version is 3. Mention
13406 changes to the output of commands and events that deal with
13407 multi-location breakpoints.
13408 * breakpoint.c: Include "mi/mi-out.h".
13409 (print_one_breakpoint): Change output syntax if using MI version
13410 >= 3.
13411 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13412 New.
13413 (mi_multi_location_breakpoint_output_fixed): New.
13414 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13415 (mi_cmd_fix_multi_location_breakpoint_output): New.
13416 (mi_multi_location_breakpoint_output_fixed): New.
13417 * mi/mi-cmds.c (mi_cmds): Register command
13418 -fix-multi-location-breakpoint-output.
13419 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13420 interpreter "mi".
13421
8e5e5494
SM
134222019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13423
13424 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13425 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13426 instantiate mi_ui_out based on interpreter name.
13427 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13428 * mi/mi-main.c (mi_load_progress): Likewise.
13429
197df35e
JB
134302019-03-12 John Baldwin <jhb@FreeBSD.org>
13431
13432 * NEWS: Combine separate "New targets" sections for 8.3.
13433
8399425f
JB
134342019-03-12 John Baldwin <jhb@FreeBSD.org>
13435
13436 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13437 (ppcfbsd_init_abi): Install gdbarch
13438 "fetch_tls_load_module_address" and "get_thread_local_address"
13439 methods.
13440
b0f87ed0
JB
134412019-03-12 John Baldwin <jhb@FreeBSD.org>
13442
13443 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13444 (riscv_fbsd_init_abi): Install gdbarch
13445 "fetch_tls_load_module_address" and "get_thread_local_address"
13446 methods.
13447
ce25aa57
JB
134482019-03-12 John Baldwin <jhb@FreeBSD.org>
13449
13450 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13451 (i386fbsd_init_abi): Install gdbarch
13452 "fetch_tls_load_module_address" and "get_thread_local_address"
13453 methods.
13454
f5424cfa
JB
134552019-03-12 John Baldwin <jhb@FreeBSD.org>
13456
13457 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13458 (amd64fbsd_init_abi): Install gdbarch
13459 "fetch_tls_load_module_address" and "get_thread_local_address"
13460 methods.
13461
945f3901
JB
134622019-03-12 John Baldwin <jhb@FreeBSD.org>
13463
13464 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13465 (struct fbsd_pspace_data): New type.
13466 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13467 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13468 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13469 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13470 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13471
ef0bd204
JB
134722019-03-12 John Baldwin <jhb@FreeBSD.org>
13473
13474 * gdbtypes.c (lookup_struct_elt): New function.
13475 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13476 * gdbtypes.h (struct struct_elt): New type.
13477 (lookup_struct_elt): New prototype.
13478
36c53a02
JB
134792019-03-12 John Baldwin <jhb@FreeBSD.org>
13480
13481 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13482 remove disabled code block.
13483
6e056c81
JB
134842019-03-12 John Baldwin <jhb@FreeBSD.org>
13485
13486 * gdbarch.sh (get_thread_local_address): New method.
13487 * gdbarch.h, gdbarch.c: Regenerate.
13488 * target.c (target_translate_tls_address): Use
13489 gdbarch_get_thread_local_address if present instead of
13490 target::get_thread_local_address.
13491
cd250a18
JB
134922019-03-12 John Baldwin <jhb@FreeBSD.org>
13493
13494 * target.h (target::get_thread_local_address): Update comment.
13495
df22c1e5
JB
134962019-03-12 John Baldwin <jhb@FreeBSD.org>
13497
13498 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13499 objfile->separate_debug_objfile_backlink if not NULL.
13500
dd6876c9
JB
135012019-03-12 John Baldwin <jhb@FreeBSD.org>
13502
13503 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13504 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13505 (amd64bsd_store_inferior_registers): Likewise.
13506 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13507 Enable segment base registers.
13508 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13509 PT_GETFSBASE and PT_GETGSBASE.
13510 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13511 PT_SETGSBASE.
13512 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13513 segment base registers.
13514 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13515
1163a4b7
JB
135162019-03-12 John Baldwin <jhb@FreeBSD.org>
13517
13518 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13519 Update calls to i386_target_description to add 'segments'
13520 parameter.
13521 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13522 add segment base registers.
13523 * arch/i386.c (i386_create_target_description): Add 'segments'
13524 parameter to enable segment base registers.
13525 * arch/i386.h (i386_create_target_description): Likewise.
13526 * features/i386/32bit-segments.xml: New file.
13527 * features/i386/32bit-segments.c: Generate.
13528 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13529 call to i386_target_description to add 'segments' parameter.
13530 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13531 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13532 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13533 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13534 if feature is present.
13535 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13536 Add 'segments' parameter to call to i386_target_description.
13537 (i386_target_description): Add 'segments' parameter to enable
13538 segment base registers.
13539 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13540 to call to i386_target_description.
13541 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13542 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13543 Define I386_NUM_REGS.
13544 (i386_target_description): Add 'segments' parameter to enable
13545 segment base registers.
13546
3a350822
EZ
135472019-03-12 Eli Zaretskii <eliz@gnu.org>
13548
13549 PR/24325
13550 * source-cache.c: #undef open and close, to avoid unresolved
13551 externals during linking.
13552
ffdd69cf
TT
135532019-03-12 Tom Tromey <tromey@adacore.com>
13554
13555 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13556 const. Add initializers.
13557 (_initialize_remote): Don't initialize ptid globals.
13558
ec148c57
PA
135592019-03-12 Pedro Alves <palves@redhat.com>
13560
13561 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13562
32764270
PA
135632019-03-12 Pedro Alves <palves@redhat.com>
13564
13565 * cp-name-parser.y (main): Remove unused 'len' variable.
13566
17547186
TT
135672019-03-12 Tom Tromey <tromey@adacore.com>
13568
13569 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13570 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13571
d3a70e03
TT
135722019-03-12 Tom Tromey <tromey@adacore.com>
13573
13574 * linux-nat.c (iterate_over_lwps): Update.
13575 (stop_callback): Remove parameter.
13576 (stop_wait_callback, detach_callback, resume_set_callback)
13577 (select_singlestep_lwp_callback, set_ignore_sigint)
13578 (status_callback, resumed_callback, resume_clear_callback)
13579 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13580 data parameter.
13581 (linux_nat_target::detach, linux_nat_target::resume)
13582 (linux_stop_and_wait_all_lwps, select_event_lwp)
13583 (linux_nat_filter_event, linux_nat_wait_1)
13584 (linux_nat_target::kill, linux_nat_target::stop)
13585 (linux_nat_target::stop): Update.
13586 (linux_nat_resume_callback): Change type.
13587 (resume_stopped_resumed_lwps, count_events_callback)
13588 (select_event_lwp_callback): Likewise.
13589 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13590 * arm-linux-nat.c (struct update_registers_data): Remove.
13591 (update_registers_callback): Change type.
13592 (arm_linux_insert_hw_breakpoint1): Update.
13593 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13594 parameter.
13595 (x86_linux_dr_set_addr): Update.
13596 (x86_linux_dr_set_control): Update.
13597 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13598 (iterate_over_lwps): Use gdb::function_view.
13599 * nat/aarch64-linux-hw-point.c (struct
13600 aarch64_dr_update_callback_param): Remove.
13601 (debug_reg_change_callback): Change type.
13602 (aarch64_notify_debug_reg_change): Update.
13603 * s390-linux-nat.c (s390_refresh_per_info): Update.
13604
82cb27ff
TT
136052019-03-11 Tom Tromey <tromey@adacore.com>
13606
13607 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13608 redundant assignment to "this_cu".
13609
568c0683
SM
136102019-03-08 Simon Marchi <simon.marchi@efficios.com>
13611
13612 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13613
f09ce22d
SM
136142019-03-08 Simon Marchi <simon.marchi@efficios.com>
13615
13616 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13617 from...
13618 (rank_one_type): ... this.
13619
595f96a9
SM
136202019-03-08 Simon Marchi <simon.marchi@efficios.com>
13621
13622 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13623 from...
13624 (rank_one_type): ... this.
13625
2598a94b
SM
136262019-03-08 Simon Marchi <simon.marchi@efficios.com>
13627
13628 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13629 from...
13630 (rank_one_type): ... this.
13631
7f17b20d
SM
136322019-03-08 Simon Marchi <simon.marchi@efficios.com>
13633
13634 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13635 from...
13636 (rank_one_type): ... this.
13637
2c509035
SM
136382019-03-08 Simon Marchi <simon.marchi@efficios.com>
13639
13640 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13641 from...
13642 (rank_one_type): ... this.
13643
0dd322dc
SM
136442019-03-08 Simon Marchi <simon.marchi@efficios.com>
13645
13646 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13647 from...
13648 (rank_one_type): ... this.
13649
41ea4728
SM
136502019-03-08 Simon Marchi <simon.marchi@efficios.com>
13651
13652 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13653 from...
13654 (rank_one_type): ... this.
13655
793cd1d2
SM
136562019-03-08 Simon Marchi <simon.marchi@efficios.com>
13657
13658 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13659 from...
13660 (rank_one_type): ... this.
13661
34910087
SM
136622019-03-08 Simon Marchi <simon.marchi@efficios.com>
13663
13664 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13665 from...
13666 (rank_one_type): ... this.
13667
f1f832d6
SM
136682019-03-08 Simon Marchi <simon.marchi@efficios.com>
13669
13670 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13671 from...
13672 (rank_one_type): ... this.
13673
b9f4512f
SM
136742019-03-08 Simon Marchi <simon.marchi@efficios.com>
13675
13676 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13677 from...
13678 (rank_one_type): ... this.
13679
9293fc63
SM
136802019-03-08 Simon Marchi <simon.marchi@efficios.com>
13681
13682 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13683 from...
13684 (rank_one_type): ... this.
13685
e3abbe7e
PW
136862019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13687
13688 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13689 inferior-events' shows the example events.
13690
e4adb939
EZ
136912019-03-08 Eli Zaretskii <eliz@gnu.org>
13692
13693 Support styling on native MS-Windows console
13694
13695 PR/24315
13696 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13697 on MS-Windows if $TERM is not defined.
13698
13699 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13700
13701 * posix-hdep.c (gdb_console_fputs):
13702 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13703 functions.
13704 * ui-file.h (gdb_console_fputs): Add prototype.
13705
13706 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13707 back to fputs only if the former returns zero.
13708
25629dfd
TT
137092019-03-07 Tom Tromey <tom@tromey.com>
13710
13711 * symmisc.c (print_symbol_bcache_statistics): Update.
13712 (print_objfile_statistics): Update.
13713 * symfile.c (allocate_symtab): Update.
13714 * stabsread.c: Don't include bcache.h.
13715 * psymtab.h (struct psymbol_bcache): Don't declare.
13716 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13717 (psymbol_bcache_init, psymbol_bcache_free)
13718 (psymbol_bcache_get_bcache): Don't declare.
13719 * psymtab.c (struct psymbol_bcache): Remove.
13720 (psymtab_storage::psymtab_storage): Update.
13721 (psymtab_storage::~psymtab_storage): Update.
13722 (psymbol_bcache_init, psymbol_bcache_free)
13723 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13724 (add_psymbol_to_bcache): Update.
13725 (allocate_psymtab): Update.
13726 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13727 macro_cache>: No longer pointers.
13728 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13729 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13730 * macrotab.c (macro_bcache): Update.
13731 * macroexp.c: Don't include bcache.h.
13732 * gdbtypes.c (check_types_worklist): Update.
13733 (types_deeply_equal): Remove TRY/CATCH. Update.
13734 * elfread.c (elf_symtab_read): Update.
13735 * dwarf2read.c: Don't include bcache.h.
13736 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13737 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13738 (print_bcache_statistics, bcache_memory_used): Don't declare.
13739 (struct bcache): Move from bcache.c. Add constructor, destructor,
13740 methods. Rename all data members.
13741 * bcache.c (struct bcache): Move to bcache.h.
13742 (bcache::expand_hash_table): Rename from expand_hash_table.
13743 (bcache): Remove.
13744 (bcache::insert): Rename from bcache_full.
13745 (bcache::compare): Rename from bcache_compare.
13746 (bcache_xmalloc): Remove.
13747 (bcache::~bcache): Rename from bcache_xfree.
13748 (bcache::print_statistics): Rename from print_bcache_statistics.
13749 (bcache::memory_used): Rename from bcache_memory_used.
13750
fe726667
PA
137512019-03-07 Pedro Alves <palves@redhat.com>
13752
13753 * infrun.c (normal_stop): Also check for
13754 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13755
7584bb30
AB
137562019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13757
13758 * f-lang.c (value_from_host_double): Moved to...
13759 * value.c (value_from_host_double): ...here.
13760 * value.h (value_from_host_double): Declare.
13761 * guile/scm-math.c (vlscm_convert_typed_number): Use
13762 value_from_host_double.
13763 (vlscm_convert_number): Likewise.
13764 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13765 * python/py-value.c (convert_value_from_python): Likewise.
13766
a7b1986e
TT
137672019-03-06 Tom Tromey <tom@tromey.com>
13768
13769 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13770
0ccf4211
TT
137712019-03-06 Tom Tromey <tom@tromey.com>
13772
13773 * utils.h (free_current_contents): Don't declare.
13774 * utils.c (free_current_contents): Remove.
13775
fe7b42e5
TT
137762019-03-06 Tom Tromey <tom@tromey.com>
13777
13778 * top.c (quit_force): Update.
13779 * main.c (captured_command_loop): Update.
13780 * common/new-op.c (operator new): Update.
13781 * common/common-exceptions.c (struct catcher)
13782 <save_cleanup_chain>: Remove member.
13783 (exceptions_state_mc_init): Update.
13784 (exception_try_scope_entry): Return nullptr.
13785 (exception_try_scope_exit, exception_rethrow)
13786 (throw_exception_sjlj, throw_exception_cxx): Update.
13787 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13788 (all_cleanups, do_cleanups, discard_cleanups)
13789 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13790 (restore_cleanups, restore_final_cleanups): Don't declare.
13791 (do_final_cleanups): Remove parameter.
13792 * common/cleanups.c (cleanup_chain, make_cleanup)
13793 (make_cleanup_dtor, all_cleanups, do_cleanups)
13794 (discard_my_cleanups, discard_cleanups)
13795 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13796 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13797 (null_cleanup): Remove.
13798 (do_final_cleanups): Remove parameter.
13799
c6321f19
TT
138002019-03-06 Tom Tromey <tom@tromey.com>
13801
13802 * remote.c (remote_target::remote_parse_stop_reply): Use
13803 unique_xmalloc_ptr.
13804
61b30099
TT
138052019-03-06 Tom Tromey <tom@tromey.com>
13806
13807 * stabsread.c (struct stabs_field_info): Rename from field_info.
13808 <list, fnlist>: Add initializers.
13809 <obstack>: New member.
13810 (read_member_functions, read_struct_fields, read_baseclasses):
13811 Allocate on obstack. Don't use cleanups.
13812 (read_one_struct_field, read_member_functions, read_struct_fields)
13813 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13814 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13815 (read_struct_type): Update.
13816
6cceac94
TT
138172019-03-06 Tom Tromey <tom@tromey.com>
13818
13819 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13820 * common/filestuff.h (make_cleanup_close): Don't declare.
13821 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13822 Remove.
13823
72412762
TT
138242019-03-06 Tom Tromey <tom@tromey.com>
13825
13826 * solib-aix.c: Use make_scope_exit.
13827
2b6ff1c0
TT
138282019-03-06 Tom Tromey <tom@tromey.com>
13829
13830 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13831 Use make_scope_exit.
13832
d01c5877
TT
138332019-03-06 Tom Tromey <tom@tromey.com>
13834
13835 * solib-svr4.c (disable_probes_interface): Remove parameter.
13836 (svr4_handle_solib_event): Use make_scope_exit.
13837
32603266
TT
138382019-03-06 Tom Tromey <tom@tromey.com>
13839
13840 * remote.c (struct stop_reply_deleter): Remove.
13841 (stop_reply_up): Update.
13842 (struct stop_reply): Derive from notif_event. Don't typedef.
13843 <regcache>: Now a std::vector.
13844 (stop_reply_xfree): Remove.
13845 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13846 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13847 (remote_target::discard_pending_stop_replies): Use delete.
13848 (remote_target::remote_parse_stop_reply): Update.
13849 (remote_target::process_stop_reply): Update.
13850 * remote-notif.h (struct notif_event): Add virtual destructor.
13851 Remove "dtr" member.
13852 (struct notif_client) <alloc_event>: Return a unique_ptr.
13853 (notif_event_xfree): Don't declare.
13854 (notif_event_up): New typedef.
13855 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13856 (notif_event_xfree, do_notif_event_xfree): Remove.
13857 (remote_notif_state_xfree): Update.
13858
9799571e
TT
138592019-03-06 Tom Tromey <tom@tromey.com>
13860
13861 * infrun.c (displaced_step_clear_cleanup): Now a
13862 forward_scope_exit type.
13863 (displaced_step_prepare_throw): Update.
13864 (displaced_step_fixup): Update.
13865
09e3c4ca
TT
138662019-03-06 Tom Tromey <tom@tromey.com>
13867
13868 * inferior.h (class inferior): Update comment.
13869 * gdbthread.h (class thread_info): Update comment.
13870
e2a03548
TT
138712019-03-06 Joel Brobecker <brobecker@adacore.com>
13872 Tom Tromey <tom@tromey.com>
13873
13874 * stabsread.h (struct stab_section_list): Remove.
13875 (coffstab_build_psymtabs): Update.
13876 * dbxread.c (symbuf_sections): Now a std::vector.
13877 (sect_idx): New global.
13878 (fill_symbuf): Update.
13879 (coffstab_build_psymtabs): Change type of stabsects parameter.
13880 Update.
13881 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13882 std::vector.
13883 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13884 (coff_locate_sections): Update.
13885 (coff_symfile_read): Remove cleanups. Update.
13886 (init_stringtab): Add storage parameter.
13887 (free_stringtab, free_stringtab_cleanup): Remove.
13888 (init_lineno): Add storage parameter.
13889 (free_linetab, free_linetab_cleanup): Remove.
13890
b7e60d85
PA
138912019-03-06 Pedro Alves <palves@redhat.com>
13892
13893 * linux-fork.c (fork_info::clobber_regs): Delete.
13894 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
13895 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
13896 comment. Adjust.
13897 (scoped_switch_fork_info::scoped_switch_fork_info)
13898 (checkpoint_command, linux_fork_context): Adjust
13899 fork_save_infrun_state calls.
13900
e52c971f
PA
139012019-03-06 Pedro Alves <palves@redhat.com>
13902
13903 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
13904 (inf_has_multiple_threads): Return 'bool' and rewrite using
13905 inferior_info::threads().
13906
06974e6c
PA
139072019-03-06 Pedro Alves <palves@redhat.com>
13908
13909 * linux-fork.c: Include <list>.
13910 (fork_list): Now a std::list instance.
13911 (fork_info): Add ctor, dtor, and in-class initialize all fields.
13912 (forks_exist_p, find_last_fork): Adjust.
13913 (new_fork): Delete.
13914 (one_fork_p): New.
13915 (add_fork): Adjust.
13916 (free_fork): Delete, folded into fork_info::~fork_info().
13917 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
13918 Adjust.
13919 (init_fork_list): Delete.
13920 (linux_fork_killall, linux_fork_mourn_inferior)
13921 (linux_fork_detach, info_checkpoints_command): Adjust.
13922 (_initialize_linux_fork): No longer call init_fork_list.
13923
72f31aea
PA
139242019-03-06 Pedro Alves <palves@redhat.com>
13925
13926 * linux-fork.c (new_fork): New, split out of ...
13927 (add_fork): ... this. Return void. Move "first fork" special
13928 case from here, to ...
13929 (checkpoint_command): ... here.
13930 * linux-linux.h (add_fork): Return void.
13931
efbecbc1
AB
139322019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13933
13934 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
13935
0841c79a
AB
139362019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13937 Chris January <chris.january@arm.com>
13938 David Lecomber <david.lecomber@arm.com>
13939
13940 * f-exp.y: New token, UNOP_INTRINSIC.
13941 (exp): New pattern using UNOP_INTRINSIC token.
13942 (f77_keywords): Add 'abs' keyword.
13943 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
13944 (value_from_host_double): New function.
13945 (evaluate_subexp_f): Support UNOP_ABS.
13946
4a270568
AB
139472019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13948
13949 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
13950 types.
13951
067630bd
AB
139522019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13953
13954 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
13955 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
13956 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
13957
3be47f7a
AB
139582019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13959
13960 * f-exp.y (convert_to_kind_type): Handle more type kinds.
13961
4d00f5d8
AB
139622019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13963 Chris January <chris.january@arm.com>
13964
13965 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
13966 * f-exp.y: Define 'KIND' token.
13967 (exp): New pattern for KIND expressions.
13968 (ptype): Handle types with a kind extension.
13969 (direct_abs_decl): Extend to spot kind extensions.
13970 (f77_keywords): Add 'kind' to the list.
13971 (push_kind_type): New function.
13972 (convert_to_kind_type): New function.
13973 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
13974 * parse.c (operator_length_standard): Likewise.
13975 * parser-defs.h (enum type_pieces): Add tp_kind.
13976 * std-operator.def: Add UNOP_KIND.
13977
e454224f
AB
139782019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13979
13980 * f-exp.y (f_parse): Set yydebug.
13981
9dad4a58
AB
139822019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13983
13984 * f-lang.c (evaluate_subexp_f): New function.
13985 (exp_descriptor_f): New global.
13986 (f_language_defn): Use exp_descriptor_f instead of
13987 exp_descriptor_standard.
13988
c8f91604
AB
139892019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13990
13991 * f-exp.y (struct token): Add comments.
13992 (dot_ops): Remove uppercase versions and the end marker.
13993 (f77_keywords): Likewise.
13994 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
13995 entries in the dot_ops array are case insensitive, and use
13996 strncasecmp to compare strings. Also some whitespace cleanup in
13997 this area. Similar for the f77_keywords array, except entries in
13998 this list might be case sensitive.
13999
dd9f2c76
AB
140002019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14001
14002 * f-exp.y (struct f77_boolean_val): Add comments.
14003 (boolean_values): Remove uppercase versions, and end marker.
14004 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14005 and use strncasecmp to achieve case insensitivity. Additionally,
14006 perform whitespace cleanup around this code.
14007
67a3048c
TT
140082019-03-06 Tom Tromey <tromey@adacore.com>
14009
14010 * remote-sim.c (gdbsim_target_open): Use result of
14011 gdb_argv::release.
14012
aa3cfbda
RB
140132019-03-06 Richard Bunt <richard.bunt@arm.com>
14014 Dirk Schubert <dirk.schubert@arm.com>
14015 Chris January <chris.january@arm.com>
14016
14017 * eval.c (evaluate_subexp_standard): Call Fortran argument
14018 wrapping logic.
14019 * f-lang.c (struct value): A value which can be passed into a
14020 Fortran function call.
14021 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14022 where appropriate.
14023 (struct type): Value ready for a Fortran function call.
14024 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14025 is needed.
14026 * f-lang.h (fortran_argument_convert): Declaration.
14027 (fortran_preserve_arg_pointer): Declaration.
14028 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14029
ea38e5df
TT
140302019-03-05 Tom Tromey <tromey@adacore.com>
14031
14032 * python/py-prettyprint.c (print_string_repr): Remove #if.
14033 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14034
06b5b831
TT
140352019-03-05 Tom Tromey <tromey@adacore.com>
14036
14037 * target.c (the_dummy_target): Move later. Change type to
14038 "dummy_target".
14039 (initialize_targets): Don't initialize the_dummy_target.
14040
edbd9e45
TT
140412019-03-05 Tom Tromey <tromey@adacore.com>
14042
14043 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14044 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14045
c119e040
TT
140462019-03-05 Tom Tromey <tromey@adacore.com>
14047
14048 * windows-nat.c (windows_nat_target::attach)
14049 (windows_nat_target::detach): Don't call gdb_flush.
14050 * valprint.c (generic_val_print, val_print, val_print_string):
14051 Don't call gdb_flush.
14052 * utils.c (defaulted_query): Don't call gdb_flush.
14053 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14054 * target.c (target_announce_detach): Don't call gdb_flush.
14055 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14056 * remote.c (extended_remote_target::attach): Don't call
14057 gdb_flush.
14058 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14059 * printcmd.c (do_examine): Don't call gdb_flush.
14060 (info_display_command): Don't call gdb_flush.
14061 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14062 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14063 * memattr.c (info_mem_command): Don't call gdb_flush.
14064 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14065 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14066 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14067 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14068 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14069 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14070 (gnu_nat_target::detach): Don't call gdb_flush.
14071 * f-valprint.c (f_val_print): Don't call gdb_flush.
14072 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14073 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14074 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14075 gdb_flush.
14076 * c-valprint.c (c_val_print): Don't call gdb_flush.
14077 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14078
895dafa6
TT
140792019-03-05 Tom Tromey <tromey@adacore.com>
14080
14081 * varobj.c (update_dynamic_varobj_children): Update.
14082 (install_default_visualizer): Use reset, not release.
14083 * value.c (set_internalvar): Update.
14084 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14085 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14086 ATTRIBUTE_UNUSED_RESULT.
14087
88a774b9
TT
140882019-03-05 Tom Tromey <tromey@adacore.com>
14089
14090 * remote.c (class scoped_remote_fd) <release>: Add
14091 ATTRIBUTE_UNUSED_RESULT.
14092
4e4a8b93
TT
140932019-03-05 Tom Tromey <tromey@adacore.com>
14094
14095 * macroexp.c (struct macro_buffer) <release>: Add
14096 ATTRIBUTE_UNUSED_RESULT.
14097
083eef1f
TT
140982019-03-05 Tom Tromey <tromey@adacore.com>
14099
14100 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14101 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14102 ATTRIBUTE_UNUSED_RESULT.
14103
3cabd438
TT
141042019-03-05 Tom Tromey <tromey@adacore.com>
14105
14106 * common/scoped_fd.h (class scoped_fd) <release>: Add
14107 ATTRIBUTE_UNUSED_RESULT.
14108
41e3300a
TT
141092019-03-05 Tom Tromey <tromey@adacore.com>
14110
14111 * parser-defs.h (struct parser_state) <release>: Add
14112 ATTRIBUTE_UNUSED_RESULT.
14113
18cb7c9f
TT
141142019-03-05 Tom Tromey <tromey@adacore.com>
14115
14116 * utils.h (class gdb_argv) <release>: Add
14117 ATTRIBUTE_UNUSED_RESULT.
14118 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14119
41fa577f
EZ
141202019-03-02 Eli Zaretskii <eliz@gnu.org>
14121
a6a4b2c6
EZ
14122 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14123 for-loop range, to avoid compiler warnings.
14124
14125 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14126 avoid compiler warnings about unused variables.
14127
742a7df5
EZ
14128 * NEWS: Mention end of support for native debugging on MS-Windows
14129 before XP.
14130
41fa577f
EZ
14131 PR gdb/24292
14132 * common/netstuff.c:
14133 * gdbserver/gdbreplay.c
14134 * gdbserver/remote-utils.c:
14135 * ser-tcp.c:
14136 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14137 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14138 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14139 'getaddrinfo' and 'freeaddrinfo' were not available before
14140 Windows XP, and mingw.org's MinGW headers by default define
14141 _WIN32_WINNT to 0x500.
14142
827f438f
GB
141432019-03-01 Gary Benson <gbenson@redhat.com>
14144
14145 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14146
92137da0
RO
141472019-02-28 Brian Vandenberg <phantall@gmail.com>
14148 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14149
14150 PR gdb/8527
14151 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14152 set_sigint_trap, clear_sigint_trap.
14153
799efbe8
PW
141542019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14155
14156 * target.c (target_detach): Clear the regcache and the
14157 frame cache.
14158
8ed25214
PA
141592019-02-27 Pedro Alves <palves@redhat.com>
14160
14161 * utils.c (set_screen_size): When we cap the height/width sizes,
14162 tweak the corresponding command variable to show "unlimited":
14163
23031e31
SJ
141642019-02-27 Saagar Jha <saagar@saagarjha.com>
14165 Pedro Alves <palves@redhat.com>
14166
14167 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14168 before calling rl_set_screen_size.
14169
6c28e44a
TT
141702019-02-27 Tom Tromey <tromey@adacore.com>
14171
14172 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14173 define.
14174 * python/py-value.c: Remove Python 2.4 workaround.
14175 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14176 workaround.
14177 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14178 Python 2.4 workaround.
14179 * python/python-internal.h: Remove Python 2.4 comment.
14180 (Py_ssize_t): Don't define.
14181 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14182 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14183 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14184 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14185 * python/python.c (do_start_initialization): Remove Python 2.4
14186 workaround.
14187 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14188 (print_children): Remove Python 2.4 workaround.
14189 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14190 workaround.
14191 (CHARBUFFERPROC_NAME): Remove.
14192 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14193 Python 2.4 workaround.
14194
2c3fc25d 141952019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14196
2c3fc25d
KB
14197 * NEWS: Note minimum Python version.
14198
6ca62222
KB
141992019-02-27 Kevin Buettner <kevinb@redhat.com>
14200
14201 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14202 code from these functions. Remove corresponding ifdefs. Use
14203 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14204 Remove gotos and target of gotos.
14205 (infpy_search_memory): Likewise.
14206
f4bc7d2c
AB
142072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14208
14209 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14210 (hppa_gdbarch_init): Don't register deleted functions with
14211 gdbarch.
14212
9734a586
AB
142132019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14214
14215 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14216 (h8300_unwind_sp): Delete.
14217 (h8300_dummy_id): Delete.
14218 (h8300_gdbarch_init): Don't register deleted functions with
14219 gdbarch.
14220
68b867f3
AB
142212019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14222
14223 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14224 (ft32_unwind_pc): Delete.
14225 (ft32_unwind_sp): Delete.
14226 (ft32_gdbarch_init): Don't register deleted functions with
14227 gdbarch.
14228
2fbe7ad0
AB
142292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14230
14231 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14232 (frv_unwind_pc): Delete.
14233 (frv_unwind_sp): Delete.
14234 (frv_gdbarch_init): Don't register deleted functions with
14235 gdbarch.
14236
76055cbe
AB
142372019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14238
14239 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14240 (riscv_unwind_pc): Delete.
14241 (riscv_unwind_sp): Delete.
14242 (riscv_gdbarch_init): Don't register deleted functions with
14243 gdbarch.
14244
4133e5a1
AB
142452019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14246
14247 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14248 (csky_unwind_pc): Delete.
14249 (csky_unwind_sp): Delete.
14250 (csky_gdbarch_init): Don't register deleted functions with
14251 gdbarch.
14252
8010f576
AB
142532019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14254
14255 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14256 (cris_unwind_pc): Delete.
14257 (cris_unwind_sp): Delete.
14258 (cris_gdbarch_init): Don't register deleted functions with
14259 gdbarch.
14260
b56bf084
AB
142612019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14262
14263 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14264 (bfin_unwind_pc): Delete.
14265 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14266
a19a650f
AB
142672019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14268
14269 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14270 (arm_unwind_pc): Delete.
14271 (arm_unwind_sp): Delete.
14272 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14273
f8278c3c
AB
142742019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14275
14276 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14277 (arc_unwind_pc): Delete.
14278 (arc_unwind_sp): Delete.
14279 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14280
480e46cf
AB
142812019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14282
14283 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14284 (alpha_unwind_pc): Delete.
14285 (alpha_gdbarch_init): Don't register deleted functions with
14286 gdbarch.
14287
7a995095
AB
142882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14289
14290 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14291 (aarch64_unwind_pc): Delete.
14292 (aarch64_unwind_sp): Delete.
14293 (aarch64_gdbarch_init): Don't register deleted functions with
14294 gdbarch.
14295
bf9a735e
AB
142962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14297
14298 * gdbtypes.c (type_align): Don't consider static members when
14299 computing structure alignment.
14300
5561fc30
AB
143012019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14302
14303 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14304 return 0 for other types.
14305 * arch-utils.c (default_type_align): Always return 0.
14306 * gdbarch.h: Regenerate.
14307 * gdbarch.sh (type_align): Extend comment.
14308 * gdbtypes.c (type_align): Add additional comments, always call
14309 gdbarch_type_align before applying the default rules.
14310 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14311 generic code will then apply a suitable default.
14312 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14313 types, return 0 for other types.
14314
9335e75a
JB
143152019-02-27 Joel Brobecker <brobecker@adacore.com>
14316
14317 * NEWS: Create a new section for the next release branch.
14318 Rename the section of the current branch, now that it has
14319 been cut.
14320
3d34d8de
JB
143212019-02-27 Joel Brobecker <brobecker@adacore.com>
14322
14323 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14324 * version.in: Bump version to 8.3.50.DATE-git.
14325
143420fb
SM
143262019-02-26 Simon Marchi <simon.marchi@efficios.com>
14327
14328 * aix-thread.c (ptid_cmp): Remove unused variable.
14329 (get_signaled_thread): Likewise.
14330 (store_regs_user_thread): Likewise.
14331 (store_regs_kernel_thread): Likewise.
14332 (fetch_regs_kernel_thread): Remove shadowed variable.
14333
172fb711
AB
143342019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14335
14336 * features/riscv/32bit-cpu.xml: Add register numbers.
14337 * features/riscv/32bit-fpu.c: Regenerate.
14338 * features/riscv/32bit-fpu.xml: Add register numbers.
14339 * features/riscv/64bit-cpu.xml: Add register numbers.
14340 * features/riscv/64bit-fpu.c: Regenerate.
14341 * features/riscv/64bit-fpu.xml: Add register numbers.
14342
26c89782
KB
143432019-02-26 Kevin Buettner <kevinb@redhat.com>
14344
af54ade9 14345 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14346 * python/py-value.c (convert_buffer_and_type_to_value): New
14347 function.
14348 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14349 Add support for handling an optional second argument. Call
14350 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14351 * python/python-internal.h (Py_buffer_deleter): New struct.
14352 (Py_buffer_up): New typedef.
14353
0f58c9e8
JB
143542019-02-25 John Baldwin <jhb@FreeBSD.org>
14355
14356 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14357 instead of releasing ownership.
14358
0a0f4c01
JR
143592019-02-25 Jordan Rupprecht <rupprecht@google.com>
14360
14361 * dwarf2read.c (open_and_init_dwp_file): Call
14362 elf_numsections instead of bfd_count_sections to initialize
14363 dwp_file->num_sections.
14364
cd5a152c
TT
143652019-02-25 Tom Tromey <tromey@adacore.com>
14366
14367 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14368
8a6a8513
SDJ
143692019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14370
14371 * gcore.in: Add '--readnever' option when invoking GDB.
14372
04dcda9c
SM
143732019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14374
14375 * MAINTAINERS: Update my email address.
14376
07bc701d
SM
143772019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14378
14379 * build-id.c (build_id_to_debug_bfd_1): New function.
14380 (build_id_to_debug_bfd): Look for separate debug file in
14381 sysroot.
14382
c6f4a5d0
AB
143832019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14384
14385 * gdbarch.sh: Update the copyright year range that is placed into
14386 generated files.
14387
9600246d
KS
143882019-02-22 Keith Seitz <keiths@redhat.com>
14389
14390 PR symtab/23853
14391 * linespec.c (create_sals_line_offset): Search for the default
14392 symtab's filename instead of its fullname.
14393
7557a514
AH
143942019-02-21 Alan Hayward <alan.hayward@arm.com>
14395
14396 * NEWS: Update style defaults.
14397
ee2bcb0c
AH
143982019-02-21 Alan Hayward <alan.hayward@arm.com>
14399
14400 * main.c (captured_main_1): Disable styling in batch mode.
14401
0c95f9ed
TT
144022019-02-20 Tom Tromey <tom@tromey.com>
14403
14404 * symtab.c (symtab_symbol_info): Fix typos.
14405
c763b894
TT
144062019-02-20 Tom Tromey <tromey@adacore.com>
14407
14408 * findcmd.c (_initialize_mem_search): Use upper case for
14409 metasyntactic variables.
14410
0ef8a082
AH
144112019-02-20 Alan Hayward <alan.hayward@arm.com>
14412
14413 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14414 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14415
6caa91b6
SM
144162019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14417
14418 * top.h (source_file_name): Change to std::string.
14419 * top.c (source_file_name): Likewise.
14420 (command_line_input): Adjust.
14421 * cli/cli-script.c (script_from_file): Adjust.
14422
98814c6c
TT
144232019-02-19 Tom Tromey <tromey@adacore.com>
14424
14425 * ravenscar-thread.c
14426 (ravenscar_thread_target::update_thread_list): Don't call
14427 ada_build_task_list.
14428 * ada-lang.h (ada_build_task_list): Don't declare.
14429 * ada-tasks.c (struct ada_tasks_inferior_data)
14430 <task_list_valid_p>: Now bool.
14431 (read_known_tasks, ada_task_list_changed)
14432 (ada_tasks_invalidate_inferior_data): Update.
14433 (read_known_tasks_array): Return bool.
14434 (read_known_tasks_list): Likewise.
14435 (read_known_tasks): Return void.
14436 (ada_build_task_list): Now static.
14437
70cd633e
AB
144382019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14439
14440 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14441 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14442
040b3e95
PW
144432019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14444
14445 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14446 variant for ada_tasks_pspace_data_handle and
14447 ada_tasks_inferior_data_handle.
14448 (ada_tasks_pspace_data_cleanup): New function.
14449 (ada_tasks_inferior_data_cleanup): New function.
14450
9409233b
TT
144512019-02-17 Tom Tromey <tom@tromey.com>
14452
14453 * macrotab.h (macro_source_fullname): Return a std::string.
14454 * macrotab.c (macro_include, check_for_redefinition)
14455 (macro_undef, macro_lookup_definition, foreach_macro)
14456 (foreach_macro_in_scope): Update.
14457 (macro_source_fullname): Return a std::string.
14458 * macrocmd.c (show_pp_source_pos): Update.
14459
6506371f
TT
144602019-02-17 Tom Tromey <tom@tromey.com>
14461
14462 * macrocmd.c (show_pp_source_pos): Style the file names.
14463
0c820d67
TT
144642019-02-17 Tom Tromey <tom@tromey.com>
14465
14466 PR tui/24197:
14467 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14468
a0087920
TT
144692019-02-17 Tom Tromey <tom@tromey.com>
14470
14471 * ada-lang.c (user_select_syms): Use filtered printing.
14472 * utils.c (wrap_style): New global.
14473 (desired_style): Remove.
14474 (emit_style_escape): Add stream parameter.
14475 (set_output_style, reset_terminal_style, prompt_for_continue):
14476 Update.
14477 (flush_wrap_buffer): Only flush gdb_stdout.
14478 (wrap_here): Set wrap_style.
14479 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14480 treat escape sequences as a character. Change when wrap buffer is
14481 flushed.
14482 (fputs_styled): Do not set the output style when the default is
14483 requested.
14484 * ui-style.h (struct ui_file_style) <is_default>: New method.
14485 * source.c (print_source_lines_base): Emit escape sequences in one
14486 piece.
14487
75ba10dc
JB
144882019-02-17 Joel Brobecker <brobecker@adacore.com>
14489
14490 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14491 integers and enumeration types.
14492
a2cd4f14
JB
144932019-02-17 Joel Brobecker <brobecker@adacore.com>
14494
14495 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14496 instead of lookup_symbol_in_language
14497 (do_exact_match): New function.
14498 (ada_get_symbol_name_matcher): Return do_exact_match when
14499 doing a verbatim match.
14500
485b851b
TT
145012019-02-15 Tom Tromey <tromey@adacore.com>
14502
14503 * ravenscar-thread.c (ravenscar_thread_target::resume)
14504 (ravenscar_thread_target::wait): Special case wildcard requests.
14505
0b790b1e
TT
145062019-02-15 Tom Tromey <tromey@adacore.com>
14507
14508 * ravenscar-thread.c (base_ptid): Remove.
14509 (struct ravenscar_thread_target) <close>: New method.
14510 <m_base_ptid>: New member.
14511 <update_inferior_ptid, active_task, task_is_currently_active,
14512 runtime_initialized>: Declare methods.
14513 <ravenscar_thread_target>: Add constructor.
14514 (ravenscar_thread_target::task_is_currently_active)
14515 (ravenscar_thread_target::update_inferior_ptid)
14516 (ravenscar_runtime_initialized): Rename. Now methods.
14517 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14518 (ravenscar_thread_target::update_thread_list): Update.
14519 (ravenscar_thread_target::active_task): Now method.
14520 (ravenscar_thread_target::store_registers)
14521 (ravenscar_thread_target::prepare_to_store)
14522 (ravenscar_thread_target::prepare_to_store)
14523 (ravenscar_thread_target::mourn_inferior): Update.
14524 (ravenscar_inferior_created): Use "new" to create target.
14525 (ravenscar_thread_target::get_ada_task_ptid): Update.
14526 (_initialize_ravenscar): Don't initialize base_ptid.
14527 (ravenscar_ops): Remove global.
14528
dea57a62
TT
145292019-02-15 Tom Tromey <tromey@adacore.com>
14530
14531 * target.h (push_target): Declare new overload.
14532 * target.c (push_target): New overload, taking an rvalue reference.
14533 * remote.c (remote_target::open_1): Use push_target overload.
14534 * corelow.c (core_target_open): Use push_target overload.
14535
989f3c58
TT
145362019-02-15 Tom Tromey <tromey@adacore.com>
14537
14538 * ravenscar-thread.c (is_ravenscar_task)
14539 (ravenscar_task_is_currently_active): Return bool.
14540 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14541 (_initialize_ravenscar): Remove "(void)".
14542 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14543 Return bool.
14544
6cbcc006
TT
145452019-02-15 Tom Tromey <tromey@adacore.com>
14546
14547 * ravenscar-thread.c (ravenscar_runtime_initializer)
14548 (has_ravenscar_runtime, get_running_thread_id)
14549 (ravenscar_thread_target::resume): Fix indentation.
14550
7657f14d
TT
145512019-02-15 Tom Tromey <tromey@adacore.com>
14552
14553 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14554 from ravenscar_arch_ops.
14555 (sparc_ravenscar_ops::fetch_registers)
14556 (sparc_ravenscar_ops::store_registers): Now methods.
14557 (sparc_ravenscar_prepare_to_store): Remove.
14558 (sparc_ravenscar_ops): Redefine.
14559 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14560 methods and destructor. Remove members.
14561 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14562 (ravenscar_thread_target::store_registers)
14563 (ravenscar_thread_target::prepare_to_store): Update.
14564 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14565 Remove.
14566 (struct ppc_ravenscar_powerpc_ops): Derive from
14567 ravenscar_arch_ops.
14568 (ppc_ravenscar_powerpc_ops::fetch_registers)
14569 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14570 (ppc_ravenscar_powerpc_ops): Redefine.
14571 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14572 (ppc_ravenscar_e500_ops::fetch_registers)
14573 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14574 (ppc_ravenscar_e500_ops): Redefine.
14575 * aarch64-ravenscar-thread.c
14576 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14577 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14578 (aarch64_ravenscar_fetch_registers)
14579 (aarch64_ravenscar_store_registers): Now methods.
14580 (aarch64_ravenscar_ops): Redefine.
14581
5b6ea500
TT
145822019-02-15 Tom Tromey <tromey@adacore.com>
14583
14584 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14585 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14586 (ravenscar_thread_target::stopped_by_watchpoint)
14587 (ravenscar_thread_target::stopped_data_address)
14588 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14589
e397fd39
TT
145902019-02-15 Tom Tromey <tromey@adacore.com>
14591
14592 * ravenscar-thread.c: Fix some typos.
14593
cc12f4a8
TT
145942019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14595 Tom Tromey <tromey@adacore.com>
14596
14597 * ada-lang.c (ada_exception_sal): Change addr_string to a
14598 std::string.
14599 (create_ada_exception_catchpoint): Update.
14600
5f486660
TT
146012019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14602 Tom Tromey <tromey@adacore.com>
14603
14604 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14605 (bp_location_ops): Remove.
14606 (base_breakpoint_allocate_location): Update.
14607 (free_bp_location): Update.
14608 * ada-lang.c (class ada_catchpoint_location)
14609 <ada_catchpoint_location>: Remove ops parameter.
14610 (ada_catchpoint_location_dtor): Remove.
14611 (ada_catchpoint_location_ops): Remove.
14612 (allocate_location_exception): Update.
14613 * breakpoint.h (struct bp_location_ops): Remove.
14614 (class bp_location) <bp_location>: Remove bp_location_ops
14615 parameter.
14616 <~bp_location>: Add destructor.
14617 <ops>: Remove.
14618
b671c7fb
TS
146192019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14620 Pedro Alves <palves@redhat.com>
14621
14622 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14623 'PATH_MAX'.
14624
8071c5ce
DM
146252019-02-14 David Michael <fedora.dm0@gmail.com>
14626 Samuel Thibault <samuel.thibault@gnu.org>
14627 Thomas Schwinge <thomas@codesourcery.com>
14628
14629 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14630 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14631
b1041ae0
TS
146322019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14633
924514e1
TS
14634 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14635 (check_empty): Use "const char *".
14636
c29ee8d4
TS
14637 * gnu-nat.c (gnu_nat_target::detach): Instead of
14638 'detach_inferior (pid)' call
14639 'detach_inferior (find_inferior_pid (pid))'.
14640
6c6ef69f
TS
14641 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14642 'nat/fork-inferior.o'.
14643 * gnu-nat.c: #include "nat/fork-inferior.h".
14644
2d0a338c
TS
14645 * gnu-nat.c (gnu_nat_target::detach): Instead of
14646 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14647 * gnu-nat.h: #include "inf-child.h".
14648 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14649 'i386_gnu_nat_target::fetch_registers'.
14650 (gnu_store_registers): Rename/move to
14651 'i386_gnu_nat_target::store_registers'.
14652
cabb5f06
TS
14653 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14654 * gnu-nat.h (mach_thread_info): New function.
14655 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14656
b1041ae0
TS
14657 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14658
2988d01e
KF
146592019-02-14 Frederic Konrad <konrad@adacore.com>
14660
14661 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14662
c559d709
JB
146632019-02-14 Joel Brobecker <brobecker@adacore.com>
14664
14665 * windows-nat.c (windows_add_thread): Add new parameter
14666 "main_thread_p" with default value set to false. Update
14667 function documentation as well as all callers.
14668 (windows_delete_thread): Likewise.
14669 (fake_create_process): Update call to windows_add_thread.
14670 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14671 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14672 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14673 call to windows_delete_thread.
14674
007024cc
SM
146752019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14676
14677 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14678
f62318e9
JB
146792019-02-12 John Baldwin <jhb@FreeBSD.org>
14680
14681 * symfile.c (find_separate_debug_file): Use canonical path of
14682 sysroot with child_path instead of gdb_sysroot if it is valid.
14683
cd4b7848
JB
146842019-02-12 John Baldwin <jhb@FreeBSD.org>
14685
14686 * symfile.c (find_separate_debug_file): Use child_path to
14687 determine if an object file is under a sysroot.
14688
efac4bfe
JB
146892019-02-12 John Baldwin <jhb@FreeBSD.org>
14690
14691 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14692 unittests/child-path-selftests.c.
14693 * common/pathstuff.c (child_path): New function.
14694 * common/pathstuff.h (child_path): New prototype.
14695 * unittests/child-path-selftests.c: New file.
14696
402d2bfe
JB
146972019-02-12 John Baldwin <jhb@FreeBSD.org>
14698
14699 * symfile.c (find_separate_debug_file): Look for separate debug
14700 files in debug directories under the sysroot.
14701
1ed9f74e
PW
147022019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14703
14704 * symtab.h (struct minimal_symbol data_p): New const method.
14705 (struct minimal_symbol text_p): Likewise.
14706 * symtab.c (output_source_filename): Use file name style
14707 to print file name.
14708 (print_symbol_info): Likewise.
14709 (print_msymbol_info): Use address style to print addresses.
14710 Use function name style to print executable text symbols.
14711 (expand_symtab_containing_pc): Use data_p.
14712 (find_pc_sect_compunit_symtab): Likewise.
14713
2636d81d
PW
147142019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14715
14716 * breakpoint.c (describe_other_breakpoints): Use address style
14717 to print addresses.
14718 (say_where): Likewise.
14719
ac8c53cc
PW
147202019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14721
14722 * ada-typeprint.c (print_func_type): Print function name
14723 style to print function name.
14724 * c-typeprint.c (c_print_type_1): Likewise.
14725
ea638c43
AH
147262019-02-11 Alan Hayward <alan.hayward@arm.com>
14727
14728 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14729 for execve.
14730
ab759ca8
PW
147312019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14732
14733 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14734 type_stack.
14735
aff29d1c
JB
147362019-02-10 Joel Brobecker <brobecker@adacore.com>
14737
14738 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14739 TYPE_CODE_REF types.
14740
617126bc
JW
147412019-02-08 Jim Wilson <jimw@sifive.com>
14742
14743 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14744 (riscv_linux_fregset): New.
14745 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14746
46e3ed7f
TT
147472019-02-07 Tom Tromey <tom@tromey.com>
14748
14749 * thread.c (thread_cancel_execution_command): Update.
14750 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14751 methods.
14752 (struct thread_fsm_ops): Remove.
14753 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14754 (thread_fsm_should_stop, thread_fsm_return_value)
14755 (thread_fsm_set_finished, thread_fsm_finished_p)
14756 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14757 Don't declare.
14758 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14759 * infrun.c (clear_proceed_status_thread)
14760 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14761 (print_stop_event): Update.
14762 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14763 Add constructor.
14764 (step_command_fsm_ops): Remove.
14765 (new_step_command_fsm): Remove.
14766 (step_1): Update.
14767 (step_command_fsm::should_stop): Rename from
14768 step_command_fsm_should_stop.
14769 (step_command_fsm::clean_up): Rename from
14770 step_command_fsm_clean_up.
14771 (step_command_fsm::do_async_reply_reason): Rename from
14772 step_command_fsm_async_reply_reason.
14773 (struct until_next_fsm): Inherit from thread_fsm. Add
14774 constructor.
14775 (until_next_fsm_ops): Remove.
14776 (new_until_next_fsm): Remove.
14777 (until_next_fsm::should_stop): Rename from
14778 until_next_fsm_should_stop.
14779 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14780 (until_next_fsm::do_async_reply_reason): Rename from
14781 until_next_fsm_async_reply_reason.
14782 (struct finish_command_fsm): Inherit from thread_fsm. Add
14783 constructor. Change type of breakpoint.
14784 (finish_command_fsm_ops): Remove.
14785 (new_finish_command_fsm): Remove.
14786 (finish_command_fsm::should_stop): Rename from
14787 finish_command_fsm_should_stop.
14788 (finish_command_fsm::clean_up): Rename from
14789 finish_command_fsm_clean_up.
14790 (finish_command_fsm::return_value): Rename from
14791 finish_command_fsm_return_value.
14792 (finish_command_fsm::do_async_reply_reason): Rename from
14793 finish_command_fsm_async_reply_reason.
14794 (finish_command): Update.
14795 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14796 Add constructor.
14797 (call_thread_fsm_ops): Remove.
14798 (call_thread_fsm::call_thread_fsm): Rename from
14799 new_call_thread_fsm.
14800 (call_thread_fsm::should_stop): Rename from
14801 call_thread_fsm_should_stop.
14802 (call_thread_fsm::should_notify_stop): Rename from
14803 call_thread_fsm_should_notify_stop.
14804 (run_inferior_call, call_function_by_hand_dummy): Update.
14805 * cli/cli-interp.c (should_print_stop_to_console): Update.
14806 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14807 Add constructor. Change type of location_breakpoint,
14808 caller_breakpoint.
14809 (until_break_fsm_ops): Remove.
14810 (new_until_break_fsm): Remove.
14811 (until_break_fsm::should_stop): Rename from
14812 until_break_fsm_should_stop.
14813 (until_break_fsm::clean_up): Rename from
14814 until_break_fsm_clean_up.
14815 (until_break_fsm::do_async_reply_reason): Rename from
14816 until_break_fsm_async_reply_reason.
14817 (until_break_command): Update.
14818 * thread-fsm.c: Remove.
14819 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14820
1a5c2598
TT
148212019-02-07 Tom Tromey <tom@tromey.com>
14822
14823 * yy-remap.h: Add include guard.
14824 * xtensa-tdep.h: Add include guard.
14825 * xcoffread.h: Rename include guard.
14826 * varobj-iter.h: Add include guard.
14827 * tui/tui.h: Rename include guard.
14828 * tui/tui-winsource.h: Rename include guard.
14829 * tui/tui-wingeneral.h: Rename include guard.
14830 * tui/tui-windata.h: Rename include guard.
14831 * tui/tui-win.h: Rename include guard.
14832 * tui/tui-stack.h: Rename include guard.
14833 * tui/tui-source.h: Rename include guard.
14834 * tui/tui-regs.h: Rename include guard.
14835 * tui/tui-out.h: Rename include guard.
14836 * tui/tui-layout.h: Rename include guard.
14837 * tui/tui-io.h: Rename include guard.
14838 * tui/tui-hooks.h: Rename include guard.
14839 * tui/tui-file.h: Rename include guard.
14840 * tui/tui-disasm.h: Rename include guard.
14841 * tui/tui-data.h: Rename include guard.
14842 * tui/tui-command.h: Rename include guard.
14843 * tic6x-tdep.h: Add include guard.
14844 * target/waitstatus.h: Rename include guard.
14845 * target/wait.h: Rename include guard.
14846 * target/target.h: Rename include guard.
14847 * target/resume.h: Rename include guard.
14848 * target-float.h: Rename include guard.
14849 * stabsread.h: Add include guard.
14850 * rs6000-tdep.h: Add include guard.
14851 * riscv-fbsd-tdep.h: Add include guard.
14852 * regformats/regdef.h: Rename include guard.
14853 * record.h: Rename include guard.
14854 * python/python.h: Rename include guard.
14855 * python/python-internal.h: Rename include guard.
14856 * python/py-stopevent.h: Rename include guard.
14857 * python/py-ref.h: Rename include guard.
14858 * python/py-record.h: Rename include guard.
14859 * python/py-record-full.h: Rename include guard.
14860 * python/py-record-btrace.h: Rename include guard.
14861 * python/py-instruction.h: Rename include guard.
14862 * python/py-events.h: Rename include guard.
14863 * python/py-event.h: Rename include guard.
14864 * procfs.h: Add include guard.
14865 * proc-utils.h: Add include guard.
14866 * p-lang.h: Add include guard.
14867 * or1k-tdep.h: Rename include guard.
14868 * observable.h: Rename include guard.
14869 * nto-tdep.h: Rename include guard.
14870 * nat/x86-linux.h: Rename include guard.
14871 * nat/x86-linux-dregs.h: Rename include guard.
14872 * nat/x86-gcc-cpuid.h: Add include guard.
14873 * nat/x86-dregs.h: Rename include guard.
14874 * nat/x86-cpuid.h: Rename include guard.
14875 * nat/ppc-linux.h: Rename include guard.
14876 * nat/mips-linux-watch.h: Rename include guard.
14877 * nat/linux-waitpid.h: Rename include guard.
14878 * nat/linux-ptrace.h: Rename include guard.
14879 * nat/linux-procfs.h: Rename include guard.
14880 * nat/linux-osdata.h: Rename include guard.
14881 * nat/linux-nat.h: Rename include guard.
14882 * nat/linux-namespaces.h: Rename include guard.
14883 * nat/linux-btrace.h: Rename include guard.
14884 * nat/glibc_thread_db.h: Rename include guard.
14885 * nat/gdb_thread_db.h: Rename include guard.
14886 * nat/gdb_ptrace.h: Rename include guard.
14887 * nat/fork-inferior.h: Rename include guard.
14888 * nat/amd64-linux-siginfo.h: Rename include guard.
14889 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
14890 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
14891 * nat/aarch64-linux.h: Rename include guard.
14892 * nat/aarch64-linux-hw-point.h: Rename include guard.
14893 * mn10300-tdep.h: Add include guard.
14894 * mips-linux-tdep.h: Add include guard.
14895 * mi/mi-parse.h: Rename include guard.
14896 * mi/mi-out.h: Rename include guard.
14897 * mi/mi-main.h: Rename include guard.
14898 * mi/mi-interp.h: Rename include guard.
14899 * mi/mi-getopt.h: Rename include guard.
14900 * mi/mi-console.h: Rename include guard.
14901 * mi/mi-common.h: Rename include guard.
14902 * mi/mi-cmds.h: Rename include guard.
14903 * mi/mi-cmd-break.h: Rename include guard.
14904 * m2-lang.h: Add include guard.
14905 * location.h: Rename include guard.
14906 * linux-record.h: Rename include guard.
14907 * linux-nat.h: Add include guard.
14908 * linux-fork.h: Add include guard.
14909 * i386-darwin-tdep.h: Rename include guard.
14910 * hppa-linux-offsets.h: Add include guard.
14911 * guile/guile.h: Rename include guard.
14912 * guile/guile-internal.h: Rename include guard.
14913 * gnu-nat.h: Rename include guard.
14914 * gdb-stabs.h: Rename include guard.
14915 * frv-tdep.h: Add include guard.
14916 * f-lang.h: Add include guard.
14917 * event-loop.h: Add include guard.
14918 * darwin-nat.h: Rename include guard.
14919 * cp-abi.h: Rename include guard.
14920 * config/sparc/nm-sol2.h: Rename include guard.
14921 * config/nm-nto.h: Rename include guard.
14922 * config/nm-linux.h: Add include guard.
14923 * config/i386/nm-i386gnu.h: Rename include guard.
14924 * config/djgpp/nl_types.h: Rename include guard.
14925 * config/djgpp/langinfo.h: Rename include guard.
14926 * compile/gcc-cp-plugin.h: Add include guard.
14927 * compile/gcc-c-plugin.h: Add include guard.
14928 * compile/compile.h: Rename include guard.
14929 * compile/compile-object-run.h: Rename include guard.
14930 * compile/compile-object-load.h: Rename include guard.
14931 * compile/compile-internal.h: Rename include guard.
14932 * compile/compile-cplus.h: Rename include guard.
14933 * compile/compile-c.h: Rename include guard.
14934 * common/xml-utils.h: Rename include guard.
14935 * common/x86-xstate.h: Rename include guard.
14936 * common/version.h: Rename include guard.
14937 * common/vec.h: Rename include guard.
14938 * common/tdesc.h: Rename include guard.
14939 * common/selftest.h: Rename include guard.
14940 * common/scoped_restore.h: Rename include guard.
14941 * common/scoped_mmap.h: Rename include guard.
14942 * common/scoped_fd.h: Rename include guard.
14943 * common/safe-iterator.h: Rename include guard.
14944 * common/run-time-clock.h: Rename include guard.
14945 * common/refcounted-object.h: Rename include guard.
14946 * common/queue.h: Rename include guard.
14947 * common/ptid.h: Rename include guard.
14948 * common/print-utils.h: Rename include guard.
14949 * common/preprocessor.h: Rename include guard.
14950 * common/pathstuff.h: Rename include guard.
14951 * common/observable.h: Rename include guard.
14952 * common/netstuff.h: Rename include guard.
14953 * common/job-control.h: Rename include guard.
14954 * common/host-defs.h: Rename include guard.
14955 * common/gdb_wait.h: Rename include guard.
14956 * common/gdb_vecs.h: Rename include guard.
14957 * common/gdb_unlinker.h: Rename include guard.
14958 * common/gdb_unique_ptr.h: Rename include guard.
14959 * common/gdb_tilde_expand.h: Rename include guard.
14960 * common/gdb_sys_time.h: Rename include guard.
14961 * common/gdb_string_view.h: Rename include guard.
14962 * common/gdb_splay_tree.h: Rename include guard.
14963 * common/gdb_setjmp.h: Rename include guard.
14964 * common/gdb_ref_ptr.h: Rename include guard.
14965 * common/gdb_optional.h: Rename include guard.
14966 * common/gdb_locale.h: Rename include guard.
14967 * common/gdb_assert.h: Rename include guard.
14968 * common/filtered-iterator.h: Rename include guard.
14969 * common/filestuff.h: Rename include guard.
14970 * common/fileio.h: Rename include guard.
14971 * common/environ.h: Rename include guard.
14972 * common/common-utils.h: Rename include guard.
14973 * common/common-types.h: Rename include guard.
14974 * common/common-regcache.h: Rename include guard.
14975 * common/common-inferior.h: Rename include guard.
14976 * common/common-gdbthread.h: Rename include guard.
14977 * common/common-exceptions.h: Rename include guard.
14978 * common/common-defs.h: Rename include guard.
14979 * common/common-debug.h: Rename include guard.
14980 * common/cleanups.h: Rename include guard.
14981 * common/buffer.h: Rename include guard.
14982 * common/btrace-common.h: Rename include guard.
14983 * common/break-common.h: Rename include guard.
14984 * cli/cli-utils.h: Rename include guard.
14985 * cli/cli-style.h: Rename include guard.
14986 * cli/cli-setshow.h: Rename include guard.
14987 * cli/cli-script.h: Rename include guard.
14988 * cli/cli-interp.h: Rename include guard.
14989 * cli/cli-decode.h: Rename include guard.
14990 * cli/cli-cmds.h: Rename include guard.
14991 * charset-list.h: Add include guard.
14992 * buildsym-legacy.h: Rename include guard.
14993 * bfin-tdep.h: Add include guard.
14994 * ax.h: Rename include guard.
14995 * arm-linux-tdep.h: Add include guard.
14996 * arm-fbsd-tdep.h: Add include guard.
14997 * arch/xtensa.h: Rename include guard.
14998 * arch/tic6x.h: Add include guard.
14999 * arch/i386.h: Add include guard.
15000 * arch/arm.h: Rename include guard.
15001 * arch/arm-linux.h: Rename include guard.
15002 * arch/arm-get-next-pcs.h: Rename include guard.
15003 * arch/amd64.h: Add include guard.
15004 * arch/aarch64-insn.h: Rename include guard.
15005 * arch-utils.h: Rename include guard.
15006 * annotate.h: Add include guard.
15007 * amd64-darwin-tdep.h: Rename include guard.
15008 * aarch64-linux-tdep.h: Add include guard.
15009 * aarch64-fbsd-tdep.h: Add include guard.
15010 * aarch32-linux-nat.h: Add include guard.
15011
ab9268d2
PW
150122019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15013
15014 * macrotab.c (macro_define_internal): New function that
15015 factorizes macro_define_object_internal and macro_define_function
15016 code.
15017 (macro_define_object_internal): Use macro_define_internal.
15018 (macro_define_function): Likewise.
15019
bb0da2b4
PW
150202019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15021
15022 * macrocmd.c (extract_identifier): Return
15023 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15024 callers.
15025
424eb552
JB
150262019-02-06 John Baldwin <jhb@FreeBSD.org>
15027
15028 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15029
1688cb29
TT
150302019-02-05 Tom Tromey <tom@tromey.com>
15031
15032 * target.c (target_stack::unpush): Move assertion earlier.
15033
b5eba2d8
TT
150342019-01-30 Tom Tromey <tom@tromey.com>
15035
15036 PR python/23615:
15037 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15038 (gdbpy_parse_and_eval): Likewise.
15039 * python/python-internal.h (gdbpy_allow_threads): New class.
15040
7054e2ff
JB
150412019-01-28 John Baldwin <jhb@FreeBSD.org>
15042
15043 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15044 (aarch64_fbsd_fpregmap): Move earlier.
15045 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15046 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15047 instead of individual calls to trad_frame_set_reg_addr.
15048 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15049 earlier.
15050 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15051 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15052 instead of individual calls to trad_frame_set_reg_addr.
15053
36c25ffa
AH
150542019-01-28 Alan Hayward <alan.hayward@arm.com>
15055
15056 * CONTRIBUTE: Replace contribution list with wiki link.
15057
a0707f3c
TT
150582019-01-25 Tom Tromey <tom@tromey.com>
15059
15060 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15061
0747795c
TT
150622019-01-25 Tom Tromey <tom@tromey.com>
15063
15064 * xtensa-linux-nat.c: Fix common/ includes.
15065 * xml-support.h: Fix common/ includes.
15066 * xml-support.c: Fix common/ includes.
15067 * x86-linux-nat.c: Fix common/ includes.
15068 * windows-nat.c: Fix common/ includes.
15069 * varobj.h: Fix common/ includes.
15070 * varobj.c: Fix common/ includes.
15071 * value.c: Fix common/ includes.
15072 * valops.c: Fix common/ includes.
15073 * utils.c: Fix common/ includes.
15074 * unittests/xml-utils-selftests.c: Fix common/ includes.
15075 * unittests/utils-selftests.c: Fix common/ includes.
15076 * unittests/unpack-selftests.c: Fix common/ includes.
15077 * unittests/tracepoint-selftests.c: Fix common/ includes.
15078 * unittests/style-selftests.c: Fix common/ includes.
15079 * unittests/string_view-selftests.c: Fix common/ includes.
15080 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15081 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15082 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15083 * unittests/rsp-low-selftests.c: Fix common/ includes.
15084 * unittests/parse-connection-spec-selftests.c: Fix common/
15085 includes.
15086 * unittests/optional-selftests.c: Fix common/ includes.
15087 * unittests/offset-type-selftests.c: Fix common/ includes.
15088 * unittests/observable-selftests.c: Fix common/ includes.
15089 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15090 * unittests/memrange-selftests.c: Fix common/ includes.
15091 * unittests/memory-map-selftests.c: Fix common/ includes.
15092 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15093 * unittests/function-view-selftests.c: Fix common/ includes.
15094 * unittests/environ-selftests.c: Fix common/ includes.
15095 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15096 * unittests/common-utils-selftests.c: Fix common/ includes.
15097 * unittests/cli-utils-selftests.c: Fix common/ includes.
15098 * unittests/array-view-selftests.c: Fix common/ includes.
15099 * ui-file.c: Fix common/ includes.
15100 * tui/tui-io.c: Fix common/ includes.
15101 * tracepoint.h: Fix common/ includes.
15102 * tracepoint.c: Fix common/ includes.
15103 * tracefile-tfile.c: Fix common/ includes.
15104 * top.h: Fix common/ includes.
15105 * top.c: Fix common/ includes.
15106 * thread.c: Fix common/ includes.
15107 * target/waitstatus.h: Fix common/ includes.
15108 * target/waitstatus.c: Fix common/ includes.
15109 * target.h: Fix common/ includes.
15110 * target.c: Fix common/ includes.
15111 * target-memory.c: Fix common/ includes.
15112 * target-descriptions.c: Fix common/ includes.
15113 * symtab.h: Fix common/ includes.
15114 * symfile.c: Fix common/ includes.
15115 * stap-probe.c: Fix common/ includes.
15116 * spu-linux-nat.c: Fix common/ includes.
15117 * sparc-nat.c: Fix common/ includes.
15118 * source.c: Fix common/ includes.
15119 * solib.c: Fix common/ includes.
15120 * solib-target.c: Fix common/ includes.
15121 * ser-unix.c: Fix common/ includes.
15122 * ser-tcp.c: Fix common/ includes.
15123 * ser-pipe.c: Fix common/ includes.
15124 * ser-base.c: Fix common/ includes.
15125 * selftest-arch.c: Fix common/ includes.
15126 * s12z-tdep.c: Fix common/ includes.
15127 * rust-exp.y: Fix common/ includes.
15128 * rs6000-aix-tdep.c: Fix common/ includes.
15129 * riscv-tdep.c: Fix common/ includes.
15130 * remote.c: Fix common/ includes.
15131 * remote-notif.h: Fix common/ includes.
15132 * remote-fileio.h: Fix common/ includes.
15133 * remote-fileio.c: Fix common/ includes.
15134 * regcache.h: Fix common/ includes.
15135 * regcache.c: Fix common/ includes.
15136 * record-btrace.c: Fix common/ includes.
15137 * python/python.c: Fix common/ includes.
15138 * python/py-type.c: Fix common/ includes.
15139 * python/py-inferior.c: Fix common/ includes.
15140 * progspace.h: Fix common/ includes.
15141 * producer.c: Fix common/ includes.
15142 * procfs.c: Fix common/ includes.
15143 * proc-api.c: Fix common/ includes.
15144 * printcmd.c: Fix common/ includes.
15145 * ppc-linux-nat.c: Fix common/ includes.
15146 * parser-defs.h: Fix common/ includes.
15147 * osdata.c: Fix common/ includes.
15148 * obsd-nat.c: Fix common/ includes.
15149 * nat/x86-linux.c: Fix common/ includes.
15150 * nat/x86-linux-dregs.c: Fix common/ includes.
15151 * nat/x86-dregs.h: Fix common/ includes.
15152 * nat/x86-dregs.c: Fix common/ includes.
15153 * nat/ppc-linux.c: Fix common/ includes.
15154 * nat/mips-linux-watch.h: Fix common/ includes.
15155 * nat/mips-linux-watch.c: Fix common/ includes.
15156 * nat/linux-waitpid.c: Fix common/ includes.
15157 * nat/linux-ptrace.h: Fix common/ includes.
15158 * nat/linux-ptrace.c: Fix common/ includes.
15159 * nat/linux-procfs.c: Fix common/ includes.
15160 * nat/linux-personality.c: Fix common/ includes.
15161 * nat/linux-osdata.c: Fix common/ includes.
15162 * nat/linux-namespaces.c: Fix common/ includes.
15163 * nat/linux-btrace.h: Fix common/ includes.
15164 * nat/linux-btrace.c: Fix common/ includes.
15165 * nat/fork-inferior.c: Fix common/ includes.
15166 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15167 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15168 * nat/aarch64-linux.c: Fix common/ includes.
15169 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15170 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15171 * namespace.h: Fix common/ includes.
15172 * mips-linux-tdep.c: Fix common/ includes.
15173 * minsyms.c: Fix common/ includes.
15174 * mi/mi-parse.h: Fix common/ includes.
15175 * mi/mi-main.c: Fix common/ includes.
15176 * mi/mi-cmd-env.c: Fix common/ includes.
15177 * memrange.h: Fix common/ includes.
15178 * memattr.c: Fix common/ includes.
15179 * maint.h: Fix common/ includes.
15180 * maint.c: Fix common/ includes.
15181 * main.c: Fix common/ includes.
15182 * machoread.c: Fix common/ includes.
15183 * location.c: Fix common/ includes.
15184 * linux-thread-db.c: Fix common/ includes.
15185 * linux-nat.c: Fix common/ includes.
15186 * linux-fork.c: Fix common/ includes.
15187 * inline-frame.c: Fix common/ includes.
15188 * infrun.c: Fix common/ includes.
15189 * inflow.c: Fix common/ includes.
15190 * inferior.h: Fix common/ includes.
15191 * inferior.c: Fix common/ includes.
15192 * infcmd.c: Fix common/ includes.
15193 * inf-ptrace.c: Fix common/ includes.
15194 * inf-child.c: Fix common/ includes.
15195 * ia64-linux-nat.c: Fix common/ includes.
15196 * i387-tdep.c: Fix common/ includes.
15197 * i386-tdep.c: Fix common/ includes.
15198 * i386-linux-tdep.c: Fix common/ includes.
15199 * i386-linux-nat.c: Fix common/ includes.
15200 * i386-go32-tdep.c: Fix common/ includes.
15201 * i386-fbsd-tdep.c: Fix common/ includes.
15202 * i386-fbsd-nat.c: Fix common/ includes.
15203 * guile/scm-type.c: Fix common/ includes.
15204 * guile/guile.c: Fix common/ includes.
15205 * go32-nat.c: Fix common/ includes.
15206 * gnu-nat.c: Fix common/ includes.
15207 * gdbthread.h: Fix common/ includes.
15208 * gdbarch-selftests.c: Fix common/ includes.
15209 * gdb_usleep.c: Fix common/ includes.
15210 * gdb_select.h: Fix common/ includes.
15211 * gdb_bfd.c: Fix common/ includes.
15212 * gcore.c: Fix common/ includes.
15213 * fork-child.c: Fix common/ includes.
15214 * findvar.c: Fix common/ includes.
15215 * fbsd-nat.c: Fix common/ includes.
15216 * event-top.c: Fix common/ includes.
15217 * event-loop.c: Fix common/ includes.
15218 * dwarf2read.c: Fix common/ includes.
15219 * dwarf2loc.c: Fix common/ includes.
15220 * dwarf2-frame.c: Fix common/ includes.
15221 * dwarf-index-cache.c: Fix common/ includes.
15222 * dtrace-probe.c: Fix common/ includes.
15223 * disasm-selftests.c: Fix common/ includes.
15224 * defs.h: Fix common/ includes.
15225 * csky-tdep.c: Fix common/ includes.
15226 * cp-valprint.c: Fix common/ includes.
15227 * cp-support.h: Fix common/ includes.
15228 * cp-support.c: Fix common/ includes.
15229 * corelow.c: Fix common/ includes.
15230 * completer.h: Fix common/ includes.
15231 * completer.c: Fix common/ includes.
15232 * compile/compile.c: Fix common/ includes.
15233 * compile/compile-loc2c.c: Fix common/ includes.
15234 * compile/compile-cplus-types.c: Fix common/ includes.
15235 * compile/compile-cplus-symbols.c: Fix common/ includes.
15236 * command.h: Fix common/ includes.
15237 * cli/cli-dump.c: Fix common/ includes.
15238 * cli/cli-cmds.c: Fix common/ includes.
15239 * charset.c: Fix common/ includes.
15240 * build-id.c: Fix common/ includes.
15241 * btrace.h: Fix common/ includes.
15242 * btrace.c: Fix common/ includes.
15243 * breakpoint.h: Fix common/ includes.
15244 * breakpoint.c: Fix common/ includes.
15245 * ax.h:
15246 (enum agent_op): Fix common/ includes.
15247 * ax-general.c (struct aop_map): Fix common/ includes.
15248 * ax-gdb.c: Fix common/ includes.
15249 * auxv.c: Fix common/ includes.
15250 * auto-load.c: Fix common/ includes.
15251 * arm-tdep.c: Fix common/ includes.
15252 * arch/riscv.c: Fix common/ includes.
15253 * arch/ppc-linux-common.c: Fix common/ includes.
15254 * arch/i386.c: Fix common/ includes.
15255 * arch/arm.c: Fix common/ includes.
15256 * arch/arm-linux.c: Fix common/ includes.
15257 * arch/arm-get-next-pcs.c: Fix common/ includes.
15258 * arch/amd64.c: Fix common/ includes.
15259 * arch/aarch64.c: Fix common/ includes.
15260 * arch/aarch64-insn.c: Fix common/ includes.
15261 * arch-utils.c: Fix common/ includes.
15262 * amd64-windows-tdep.c: Fix common/ includes.
15263 * amd64-tdep.c: Fix common/ includes.
15264 * amd64-sol2-tdep.c: Fix common/ includes.
15265 * amd64-obsd-tdep.c: Fix common/ includes.
15266 * amd64-nbsd-tdep.c: Fix common/ includes.
15267 * amd64-linux-tdep.c: Fix common/ includes.
15268 * amd64-linux-nat.c: Fix common/ includes.
15269 * amd64-fbsd-tdep.c: Fix common/ includes.
15270 * amd64-fbsd-nat.c: Fix common/ includes.
15271 * amd64-dicos-tdep.c: Fix common/ includes.
15272 * amd64-darwin-tdep.c: Fix common/ includes.
15273 * agent.c: Fix common/ includes.
15274 * ada-lang.h: Fix common/ includes.
15275 * ada-lang.c: Fix common/ includes.
15276 * aarch64-tdep.c: Fix common/ includes.
15277
2f5c153e
TT
152782019-01-25 Tom Tromey <tom@tromey.com>
15279
15280 * common/create-version.sh: Use common/version.h.
15281
adc6a863
PA
152822019-01-24 Pedro Alves <palves@redhat.com>
15283
15284 * infrun.c (signal_stop, signal_print, signal_program)
15285 (signal_catch, signal_pass): Now arrays instead of pointers.
15286 (update_signals_program_target, do_target_resume)
15287 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15288 * linux-nat.c (linux_nat_target::pass_signals)
15289 (linux_nat_target::create_inferior, linux_nat_target::attach):
15290 Adjust.
15291 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15292 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15293 * procfs.c (procfs_target::pass_signals): Adjust.
15294 * record-full.c (record_full_target::resume): Adjust.
15295 * remote.c (remote_target::pass_signals)
15296 (remote_target::program_signals): Adjust.
15297 * target-debug.h (target_debug_print_signals): Now takes a
15298 gdb::array_view as parameter. Adjust.
15299 * target.h (target_ops) <pass_signals, program_signals>: Replace
15300 pointer and length parameters with gdb::array_view.
15301 (target_pass_signals, target_program_signals): Likewise.
15302 * target-delegates.c: Regenerate.
15303
3046d67a
PA
153042019-01-24 Pedro Alves <palves@redhat.com>
15305
15306 * common/forward-scope-exit.h
15307 (forward_scope_exit::forward_scope_exit): Pass arguments to
15308 m_bind_function directly, instead of creating a std::bind and
15309 copying that.
15310
353229bf
AH
153112019-01-24 Alan Hayward <alan.hayward@arm.com>
15312
15313 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15314 for static members.
15315 (pass_in_v_vfp_candidate): Likewise.
15316
311dc83a
TT
153172019-01-23 Tom Tromey <tom@tromey.com>
15318 Pedro Alves <palves@redhat.com>
15319
15320 * regcache.c (class regcache_invalidator): Remove.
15321 (regcache::raw_write): Use make_scope_exit.
15322
296bd123
TT
153232019-01-23 Tom Tromey <tom@tromey.com>
15324
15325 * ui-out.h (class ui_out_emit_type): Update comment.
15326
979a0d13
TT
153272019-01-23 Tom Tromey <tom@tromey.com>
15328
15329 * infrun.c (fetch_inferior_event): Update comment.
15330
d238133d
TT
153312019-01-23 Tom Tromey <tom@tromey.com>
15332 Pedro Alves <palves@redhat.com>
15333
15334 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15335 parameter.
15336 (fetch_inferior_event): Use SCOPE_EXIT.
15337
15338
9885e6bb
TT
153392019-01-23 Tom Tromey <tom@tromey.com>
15340 Pedro Alves <palves@redhat.com>
15341
15342 * infrun.c (disable_thread_events): Delete.
15343 (stop_all_threads): Use SCOPE_EXIT.
15344
286526c1
TT
153452019-01-23 Tom Tromey <tom@tromey.com>
15346 Pedro Alves <palves@redhat.com>
15347
15348 * symfile.c: Include forward-scope-exit.h.
15349 (clear_symtab_users_cleanup): Replace forward declaration with
15350 a FORWARD_SCOPE_EXIT.
15351 (syms_from_objfile_1): Use the forward_scope_exit and
15352 gdb::optional instead of cleanup_function.
15353 (reread_symbols): Use the forward_scope_exit instead of
15354 cleanup_function.
15355 (clear_symtab_users_cleanup): Remove function.
15356
1db93f14
TT
153572019-01-23 Tom Tromey <tom@tromey.com>
15358 Pedro Alves <palves@redhat.com>
15359
15360 * linux-nat.c: Include scope-exit.h.
15361 (cleanup_target_stop): Remove.
15362 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15363 SCOPE_EXIT.
15364
2cc83d1e
TT
153652019-01-23 Tom Tromey <tom@tromey.com>
15366 Pedro Alves <palves@redhat.com>
15367
15368 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15369 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15370
694c6bf5
TT
153712019-01-23 Tom Tromey <tom@tromey.com>
15372 Andrew Burgess <andrew.burgess@embecosm.com>
15373 Pedro Alves <palves@redhat.com>
15374
15375 * infrun.c (fetch_inferior_event): Use scope_exit.
15376 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15377 * top.c (execute_command): Use scope_exit.
15378 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15379 * utils.c (do_bpstat_clear_actions_cleanup)
15380 (make_bpstat_clear_actions_cleanup): Remove.
15381
4c41382a
TT
153822019-01-23 Tom Tromey <tom@tromey.com>
15383 Pedro Alves <palves@redhat.com>
15384
15385 * infrun.c: Include "common/scope-exit.h"
15386 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15387 (wait_for_inferior): Use SCOPE_EXIT.
15388 (fetch_inferior_event): Use scope_exit.
15389
89f8fb50
TT
153902019-01-23 Tom Tromey <tom@tromey.com>
15391 Pedro Alves <palves@redhat.com>
15392
15393 * breakpoint.c (create_breakpoint): Remove cleanup.
15394
5419bdae
TT
153952019-01-23 Tom Tromey <tom@tromey.com>
15396 Andrew Burgess <andrew.burgess@embecosm.com>
15397 Pedro Alves <palves@redhat.com>
15398
e587ef42
PA
153992019-01-23 Pedro Alves <palves@redhat.com>
15400
15401 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15402
77f0e74c
PA
154032019-01-23 Pedro Alves <palves@redhat.com>
15404 Andrew Burgess <andrew.burgess@embecosm.com>
15405
15406 * gdbthread.h: Include "common/forward-scope-exit.h".
15407 (scoped_finish_thread_state): Redefine custom class in terms of
15408 forward_scope_exit.
15409
5b9b3e53
PA
154102019-01-23 Pedro Alves <palves@redhat.com>
15411 Andrew Burgess <andrew.burgess@embecosm.com>
15412
15413 * common/forward-scope-exit.h: New file.
15414
54b65c9b
PA
154152019-01-23 Pedro Alves <palves@redhat.com>
15416 Andrew Burgess <andrew.burgess@embecosm.com>
15417 Tom Tromey <tom@tromey.com>
15418
15419 * common/scope-exit.h: New file.
15420
cf08fb29
PA
154212019-01-23 Pedro Alves <palves@redhat.com>
15422
15423 * common/preprocessor.h (ESC): Rename to ...
15424 (ESC_PARENS): ... this.
15425 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15426 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15427
ae73e2e2
TT
154282019-01-23 Tom Tromey <tom@tromey.com>
15429
15430 * language.h (class scoped_switch_to_sym_language_if_auto):
15431 Initialize m_lang in both cases.
15432
6594e122
AH
154332019-01-23 Alan Hayward <alan.hayward@arm.com>
15434
15435 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15436 with XCNEW.
15437
a7c9855d
TT
154382019-01-22 Tom Tromey <tom@tromey.com>
15439
15440 * corelow.c: Do not include sys/file.h.
15441
93cc1d53
TT
154422019-01-22 Tom Tromey <tom@tromey.com>
15443
15444 * tui/tui-wingeneral.h: Include gdb_curses.h.
15445
38561778
TT
154462019-01-22 Tom Tromey <tom@tromey.com>
15447
15448 * source-cache.h (class source_cache) <get_source_lines,
15449 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15450
37b3ab5b
TT
154512019-01-22 Tom Tromey <tom@tromey.com>
15452
15453 * remote-fileio.h (struct remote_target): Declare.
15454
3fabc016
TT
154552019-01-22 Tom Tromey <tom@tromey.com>
15456
15457 * python/py-arch.c: Do not include py-ref.h.
15458 * python/py-bpevent.c: Do not include py-ref.h.
15459 * python/py-cmd.c: Do not include py-ref.h.
15460 * python/py-continueevent.c: Do not include py-ref.h.
15461 * python/py-event.h: Do not include py-ref.h.
15462 * python/py-evtregistry.c: Do not include py-ref.h.
15463 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15464 * python/py-frame.c: Do not include py-ref.h.
15465 * python/py-framefilter.c: Do not include py-ref.h.
15466 * python/py-function.c: Do not include py-ref.h.
15467 * python/py-infevents.c: Do not include py-ref.h.
15468 * python/py-linetable.c: Do not include py-ref.h.
15469 * python/py-objfile.c: Do not include py-ref.h.
15470 * python/py-param.c: Do not include py-ref.h.
15471 * python/py-prettyprint.c: Do not include py-ref.h.
15472 * python/py-progspace.c: Do not include py-ref.h.
15473 * python/py-symbol.c: Do not include py-ref.h.
15474 * python/py-symtab.c: Do not include py-ref.h.
15475 * python/py-type.c: Do not include py-ref.h.
15476 * python/py-unwind.c: Do not include py-ref.h.
15477 * python/py-utils.c: Do not include py-ref.h.
15478 * python/py-value.c: Do not include py-ref.h.
15479 * python/py-varobj.c: Do not include py-ref.h.
15480 * python/py-xmethods.c: Do not include py-ref.h.
15481 * python/python.c: Do not include py-ref.h.
15482 * varobj.c: Do not include py-ref.h.
15483
6b4d7774
TT
154842019-01-22 Tom Tromey <tom@tromey.com>
15485
15486 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15487 keyword for bcache.
15488
7af7e9b5
TT
154892019-01-22 Tom Tromey <tom@tromey.com>
15490
15491 * compile/compile-cplus-types.c: Remove a comment by #include.
15492
951d1049
TT
154932019-01-22 Tom Tromey <tom@tromey.com>
15494
15495 * compile/gcc-c-plugin.h: Include compile-internal.h.
15496
d65d5705
TT
154972019-01-22 Tom Tromey <tom@tromey.com>
15498
15499 * stabsread.c (EXTERN): Do not define.
15500 (symnum, next_symbol_text_func, processing_gcc_compilation)
15501 (within_function, global_sym_chain, global_stabs)
15502 (previous_stab_code, this_object_header_files)
15503 (n_this_object_header_files)
15504 (n_allocated_this_object_header_files): Define.
15505 * stabsread.h (EXTERN): Never define. Use "extern".
15506
b6fb1ee5
PW
155072019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15508
15509 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15510 history_value.
15511
be6d4f74
TT
155122019-01-21 Tom Tromey <tom@tromey.com>
15513
15514 * ui-out.c: Fix includes.
15515 * tui/tui-source.c: Fix includes.
15516 * target.c: Fix includes.
15517 * remote.c: Fix includes.
15518 * regcache.c: Fix includes.
15519 * python/py-block.c: Fix includes.
15520 * printcmd.c: Fix includes.
15521 * or1k-tdep.c: Fix includes.
15522 * mi/mi-main.c: Fix includes.
15523 * m32r-tdep.c: Fix includes.
15524 * csky-tdep.c: Fix includes.
15525 * compile/compile-cplus-types.c: Fix includes.
15526 * cli/cli-interp.c: Fix includes.
15527
73021deb
AH
155282019-01-21 Alan Hayward <alan.hayward@arm.com>
15529
15530 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15531 for padding.
15532
7932255d
TT
155332019-01-16 Tom Tromey <tom@tromey.com>
15534
15535 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15536 earlier.
15537 (struct objfile) <msymbols_range>: Move from top level.
15538 <msymbols>: New method.
15539 (class objfile_msymbols): Remove.
15540 * symtab.c (default_collect_symbol_completion_matches_break_on):
15541 Update.
15542 * symmisc.c (dump_msymbols): Update.
15543 * stabsread.c (scan_file_globals): Update.
15544 * objc-lang.c (info_selectors_command, info_classes_command)
15545 (find_methods): Update.
15546 * minsyms.c (find_solib_trampoline_target): Update.
15547 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15548 * coffread.c (coff_symfile_read): Update.
15549 * ada-lang.c (ada_lookup_simple_minsym)
15550 (ada_collect_symbol_completion_matches): Update.
15551
604b1bfb
TT
155522019-01-16 Tom Tromey <tom@tromey.com>
15553
15554 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15555 type. Remove no-argument constructor.
15556 <iterator::operator++>: Simplify.
15557 <begin>: Update.
15558 <end>: Use minimal_symbol_count.
15559
f252c6d5
TT
155602019-01-16 Tom Tromey <tom@tromey.com>
15561
15562 * objfiles.h (struct objfile) <psymtabs>: New method.
15563 (class objfile_psymtabs): Remove.
15564 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15565 typedef.
15566 <range>: New method.
15567 (require_partial_symbols): Change return type.
15568 * psymtab.c (require_partial_symbols)
15569 (psym_expand_symtabs_matching): Update.
15570 * mdebugread.c (parse_partial_symbols): Update.
15571 * dbxread.c (dbx_end_psymtab): Update.
15572
b669c953
TT
155732019-01-15 Tom Tromey <tom@tromey.com>
15574
15575 * symtab.c (lookup_objfile_from_block)
15576 (lookup_symbol_in_objfile_symtabs)
15577 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15578 (find_line_symtab, info_sources_command)
15579 (default_collect_symbol_completion_matches_break_on)
15580 (make_source_files_completion_list): Update.
15581 * symmisc.c (print_objfile_statistics, dump_objfile)
15582 (maintenance_print_symbols, maintenance_info_symtabs)
15583 (maintenance_check_symtabs, maintenance_info_line_tables):
15584 Update.
15585 * source.c (select_source_symtab)
15586 (forget_cached_source_info_for_objfile): Update.
15587 * objfiles.h (class objfile_compunits): Remove.
15588 (struct objfile) <compunits_range>: New typedef.
15589 (compunits): New method.
15590 * objfiles.c (objfile_relocate1): Update.
15591 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15592 * maint.c (count_symtabs_and_blocks): Update.
15593 * linespec.c (iterate_over_all_matching_symtabs): Update.
15594 * cp-support.c (add_symbol_overload_list_qualified): Update.
15595 * coffread.c (coff_symtab_read): Update.
15596 * ada-lang.c (add_nonlocal_symbols)
15597 (ada_collect_symbol_completion_matches)
15598 (ada_add_global_exceptions): Update.
15599
7e955d83
TT
156002019-01-15 Tom Tromey <tom@tromey.com>
15601
15602 * progspace.h (program_space) <objfiles_safe_range>: New
15603 typedef.
15604 <objfiles_safe>: New method.
15605 * objfiles.h (class all_objfiles_safe): Remove.
15606 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15607 * jit.c (jit_inferior_exit_hook): Update.
15608
2030c079
TT
156092019-01-17 Tom Tromey <tom@tromey.com>
15610
15611 * progspace.h (program_space) <objfiles_range>: New typedef.
15612 <objfiles>: New method.
15613 <objfiles_head>: Rename from objfiles.
15614 (object_files): Update.
15615 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15616 * guile/scm-pretty-print.c
15617 (ppscm_find_pretty_printer_from_objfiles): Update.
15618 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15619 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15620 Update.
15621 * python/py-progspace.c (pspy_get_objfiles): Update.
15622 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15623 Update.
15624 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15625 (objfpy_lookup_objfile_by_build_id): Update.
15626 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15627 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15628 Update.
15629 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15630 (expand_symtab_containing_pc, lookup_objfile_from_block)
15631 (lookup_static_symbol, basic_lookup_transparent_type)
15632 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15633 (find_line_symtab, info_sources_command)
15634 (default_collect_symbol_completion_matches_break_on)
15635 (make_source_files_completion_list, find_main_name): Update.
15636 * symmisc.c (print_symbol_bcache_statistics)
15637 (print_objfile_statistics, maintenance_print_symbols)
15638 (maintenance_print_msymbols, maintenance_print_objfiles)
15639 (maintenance_info_symtabs, maintenance_check_symtabs)
15640 (maintenance_expand_symtabs, maintenance_info_line_tables):
15641 Update.
15642 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15643 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15644 (map_overlay_command, unmap_overlay_command)
15645 (simple_overlay_update, expand_symtabs_matching)
15646 (map_symbol_filenames): Update.
15647 * symfile-debug.c (set_debug_symfile): Update.
15648 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15649 Update.
15650 * source.c (select_source_symtab, forget_cached_source_info):
15651 Update.
15652 * solib.c (solib_read_symbols): Update.
15653 * solib-spu.c (append_ocl_sos): Update.
15654 * psymtab.c (maintenance_print_psymbols)
15655 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15656 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15657 * printcmd.c (info_symbol_command): Update.
15658 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15659 Update.
15660 * objfiles.h (class all_objfiles): Remove.
15661 * objfiles.c (have_partial_symbols, have_full_symbols)
15662 (have_minimal_symbols, qsort_cmp, update_section_map)
15663 (shared_objfile_contains_address_p)
15664 (default_iterate_over_objfiles_in_search_order): Update.
15665 * objc-lang.c (info_selectors_command, info_classes_command)
15666 (find_methods): Update.
15667 * minsyms.c (find_solib_trampoline_target): Update.
15668 * maint.c (maintenance_info_sections)
15669 (maintenance_translate_address, count_symtabs_and_blocks):
15670 Update.
15671 * main.c (captured_main_1): Update.
15672 * linux-thread-db.c (try_thread_db_load_from_pdir)
15673 (has_libpthread): Update.
15674 * linespec.c (iterate_over_all_matching_symtabs)
15675 (search_minsyms_for_name): Update.
15676 * jit.c (jit_find_objf_with_entry_addr): Update.
15677 * hppa-tdep.c (find_unwind_entry)
15678 (hppa_lookup_stub_minimal_symbol): Update.
15679 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15680 Update.
15681 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15682 (elf_gnu_ifunc_resolve_by_got): Update.
15683 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15684 * dwarf-index-write.c (save_gdb_index_command): Update.
15685 * cp-support.c (add_symbol_overload_list_qualified): Update.
15686 * breakpoint.c (create_overlay_event_breakpoint)
15687 (create_longjmp_master_breakpoint)
15688 (create_std_terminate_master_breakpoint)
15689 (create_exception_master_breakpoint): Update.
15690 * blockframe.c (find_pc_partial_function): Update.
15691 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15692 (ada_collect_symbol_completion_matches)
15693 (ada_add_global_exceptions): Update.
15694
776489e0
TT
156952019-01-17 Tom Tromey <tom@tromey.com>
15696
15697 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15698 declare VEC.
15699 (solib_target_parse_libraries): Change return type.
15700 (library_list_start_segment, library_list_start_section)
15701 (library_list_end_library, library_list_start_library); Update.
15702 (solib_target_free_library_list): Remove.
15703 (solib_target_parse_libraries): Remove cleanup. Change return
15704 type.
15705 (solib_target_current_sos): Update.
15706
6471e7d2
TT
157072019-01-17 Tom Tromey <tromey@bapiya>
15708
15709 * valprint.c: Replace "the the" with "the".
15710 * symtab.c: Replace "the the" with "the".
15711 * solib.c: Replace "the the" with "the".
15712 * solib-dsbt.c: Replace "the the" with "the".
15713 * linespec.c: Replace "the the" with "the".
15714 * dwarf2loc.h: Replace "the the" with "the".
15715 * amd64-windows-tdep.c: Replace "the the" with "the".
15716 * aarch64-tdep.c: Replace "the the" with "the".
15717
c24bdb02
KS
157182019-01-16 Keith Seitz <keiths@redhat.com>
15719
15720 PR gdb/23773
15721 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15722 <builder>: Rename to ..
15723 <m_builder>: ... this and make private.
15724 (dwarf2_cu::get_builder): New method. Change all users of
15725 `builder' to use this method.
15726 (dwarf2_start_symtab): Move to ...
15727 (dwarf2_cu::start_symtab): ... here. Update all callers
15728 (setup_type_unit_groups): Move to ...
15729 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15730 callers.
15731 (dwarf2_cu::reset_builder): New method.
15732 (process_full_compunit, process_full_type_unit): Use
15733 dwarf2_cu::reset_builder.
15734 (follow_die_offset): Record the ancestor CU if it is different
15735 from the followed DIE's CU.
15736 (follow_die_sig_1): Likewise.
15737
8d64371b
TT
157382019-01-15 Tom Tromey <tom@tromey.com>
15739
15740 * remote.c (class remote_state) <buf>: Now a char_vector.
15741 <buf_size>: Remove.
15742 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15743 parameter.
15744 (remote_target::getpkt_or_notif_sane_1)
15745 (remote_target::getpkt_sane)
15746 (remote_target::getpkt_or_notif_sane): Likewise.
15747 (class remote_target) <putpkt>: New overload.
15748 (remote_target::read_frame): Change type of "buf_p". Remove
15749 sizeof_p parameter.
15750 (packet_ok): New overload.
15751 (packet_check_result): New overload.
15752 Update all uses.
15753
bb277751
TT
157542019-01-14 Tom Tromey <tom@tromey.com>
15755
15756 * remote-notif.c (handle_notification, remote_notif_ack)
15757 (remote_notif_parse): Make "buf" const.
15758 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15759 const.
15760 (remote_notif_parse, remote_notif_ack, handle_notification):
15761 Likewise.
15762 * remote.c (remote_notif_stop_parse): Make "buf" const.
15763 (remote_target::remote_parse_stop_reply): Make "buf" const.
15764 (remote_notif_stop_ack): Make "buf" const.
15765
05be00a8
TT
157662019-01-14 Tom Tromey <tom@tromey.com>
15767
15768 * remote.c (remote_console_output): Make parameter const.
15769
491adeca
TT
157702019-01-14 Tom Tromey <tom@tromey.com>
15771
15772 * target-debug.h (target_debug_print_signals): Constify.
15773 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15774 * procfs.c (procfs_target::pass_signals): Update.
15775 * linux-nat.c (linux_nat_target::pass_signals): Update.
15776 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15777 * target-delegates.c: Rebuild.
15778 * remote.c (remote_target::program_signals): Update.
15779 (remote_target::pass_signals): Update.
15780 * target.c (target_pass_signals): Constify argument.
15781 (target_program_signals): Likewise.
15782 * target.h (struct target_ops) <pass_signals, program_signals>:
15783 Constify argument.
15784 (target_pass_signals, target_program_signals): Constify argument.
15785
bbd94648
TT
157862019-01-14 Tom Tromey <tom@tromey.com>
15787
15788 PR tui/28819:
15789 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15790
6f072a10
PFC
157912019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15792
15793 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15794 field.
15795 * rs6000-tdep.c: Include reggroups.h.
15796 (IS_V_ALIAS_PSEUDOREG): Define.
15797 (rs6000_register_name): Return names for the "vX" aliases.
15798 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15799 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15800 aliases. Call default_register_reggroup_p for all other
15801 pseudo-registers.
15802 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15803 New functions.
15804 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15805 Handle "vX" aliases.
15806 (v_alias_pseudo_register_collect): New function.
15807 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15808 (rs6000_gdbarch_init): Initialize "vX" aliases as
15809 pseudo-registers. Restore registration of
15810 rs6000_pseudo_register_reggroup_p with
15811 set_tdesc_pseudo_register_reggroup_p.
15812
1a782351
MF
158132019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15814
15815 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15816 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15817 set_gdbarch_num_pseudo_regs.
15818
d73cff18
PW
158192019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15820
15821 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15822 Remove arg prefixname, add do_set and do_show.
15823 Add member functions set_list and show_list.
15824 * cli/cli-style.c (class cli_style_option): Update accordingly.
15825 (style_set_list): Move to file scope.
15826 (style_show_list): Likewise.
15827 (set_style): Call help_list.
15828 (show_style): Call cmd_show_list.
15829 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15830 Update to use the new macro.
15831
60a90376
JB
158322019-10-12 Joel Brobecker <brobecker@adacore.com>
15833
15834 * ada-lang.c (_initialize_ada_language): Expand the help text
15835 for the "catch exception" command.
15836
9d7c67bf
PW
158372019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15838
15839 * symtab.c (matching_obj_sections): Initialize obj,
15840 declare it closer to its usage.
15841
7cf47dc4
TT
158422019-01-10 Tom Tromey <tom@tromey.com>
15843
15844 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15845 (basic_inf_threads_range): Remove.
15846 (inf_threads_range, inf_non_exited_threads_range)
15847 (safe_inf_threads_range): Use next_adapter.
15848
d3cb6808
KS
158492019-01-10 Keith Seitz <keiths@redhat.com>
15850
15851 PR gdb/23712
15852 PR symtab/23010
15853 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15854 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15855
63a20375
KS
158562019-01-10 Keith Seitz <keiths@redhat.com>
15857
15858 PR gdb/23712
15859 PR symtab/23010
15860 * dictionary.c (pending_to_vector): Remove.
15861 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15862 Remove _1 suffix, replacing functions of the same name. Update
15863 all callers.
15864 (dict_create_hashed, dict_create_hashed_expandable)
15865 (dict_create_linear, dict_create_linear_expandable, dict_free)
15866 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15867 Make functions static.
15868
b026f593
KS
158692019-01-10 Keith Seitz <keiths@redhat.com>
15870
15871 PR gdb/23712
15872 PR symtab/23010
15873 * dictionary.h (struct dictionary): Replace declaration with
15874 multidictionary.
15875 (dict_create_hashed, dict_create_hashed_expandable)
15876 (dict_create_linear, dict_create_linear_expandable)
15877 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15878 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15879 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15880 taking multidictionary argument.
15881 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15882 * block.h (struct block) <dict>: Change to multidictionary
15883 and rename `multidict'.
15884 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15885 symmisc.c: Update all dictionary references to multidictionary.
15886
c7748ee9
KS
158872019-01-10 Keith Seitz <keiths@redhat.com>
15888
15889 PR gdb/23712
15890 PR symtab/23010
15891 * dictionary.c: Include unordered_map.
15892 (pending_to_vector): New function.
15893 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15894 Rewrite the non-"_1" functions to take vector instead
15895 of linked list.
15896 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
15897 "new" _1 versions of the same name.
15898 (multidictionary): Define.
15899 (std::hash<enum language): New definition.
15900 (collate_pending_symbols_by_language, mdict_create_hashed)
15901 (mdict_create_hashed_expandable, mdict_create_linear)
15902 (mdict_create_linear_expandable, mdict_free)
15903 (find_language_dictionary, create_new_language_dictionary)
15904 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
15905 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
15906 (mdict_size, mdict_empty): New functions.
15907 * dictionary.h (mdict_iterator): Define.
15908
67aa1f3c
PA
159092019-01-10 Pedro Alves <palves@redhat.com>
15910
15911 * breakpoint.c (read_uploaded_action)
15912 (create_tracepoint_from_upload): Adjust to use
15913 gdb::unique_xmalloc_ptr.
15914 * ctf.c (ctf_write_uploaded_tp):
15915 (SET_ARRAY_FIELD): Use emplace_back.
15916 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
15917 * tracefile-tfile.c (tfile_write_uploaded_tp):
15918 * tracepoint.c (parse_tracepoint_definition): Adjust to use
15919 gdb::unique_xmalloc_ptr.
15920 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
15921 at_string, cond_string, cmd_strings>: Replace char pointers
15922 with gdb::unique_xmalloc_ptr.
15923
2f667667
PA
159242019-01-10 Pedro Alves <palves@redhat.com>
15925
15926 * solib-target.c (library_list_start_library): Don't xstrdup name.
15927
36cb7237
PA
159282019-01-10 Pedro Alves <palves@redhat.com>
15929
15930 * mdebugread.c (parse_partial_symbols): Use
15931 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
15932
da584958
AB
159332019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15934
15935 * linux-fork.c (scoped_switch_fork_info)
15936 <~scoped_switch_fork_info>: Fix incorrect variable name.
15937
1ef8573c
AB
159382019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
15939
15940 * linux-fork.c (scoped_switch_fork_info)
15941 <scoped_switch_fork_info>: Make explicit.
15942 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
15943
8d7bcccb
TT
159442019-01-10 Tom Tromey <tom@tromey.com>
15945
15946 * objfiles.h (objfile::reset_psymtabs): Update.
15947 * objfiles.c (objfile::objfile): Update.
15948 * psymtab.h (psymtab_storage::obstack): Update.
15949 (psymtab_storage::m_obstack): Use gdb::optional.
15950 (class psymtab_storage): Update comment. Remove objfile
15951 parameter.
15952 * psymtab.c (psymtab_storage::psymtab_storage): Update.
15953
b596a3c7
TT
159542019-01-10 Tom Tromey <tom@tromey.com>
15955
15956 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
15957 <free_psymtabs>: Now private.
15958 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
15959 (allocate_psymtab): Use new method.
15960
a9342b62
TT
159612019-01-10 Tom Tromey <tom@tromey.com>
15962
15963 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
15964 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
15965 * mdebugread.c (parse_partial_symbols): Use
15966 allocate_dependencies.
15967 * dwarf2read.c (dwarf2_create_include_psymtab): Use
15968 allocate_dependencies.
15969 (process_psymtab_comp_unit_reader)
15970 (build_type_psymtab_dependencies): Likewise.
15971 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
15972
5af70966
TT
159732019-01-10 Tom Tromey <tom@tromey.com>
15974
15975 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
15976 PSYMBOL_SET_LANGUAGE.
15977 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
15978
5923a04c
TT
159792019-01-10 Tom Tromey <tom@tromey.com>
15980
15981 * psymtab.h (psymtab_storage::obstack): New method.
15982 <m_obstack>: Rename from obstack; now private.
15983 * psymtab.c (psymtab_storage): Update.
15984 * dwarf2read.c (create_addrmap_from_index)
15985 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
15986 Update.
15987
6d6a12bf
TT
159882019-01-10 Tom Tromey <tom@tromey.com>
15989
15990 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
15991 * objfiles.h (objfile::reset_psymtabs): New method.
15992
d320c2b5
TT
159932019-01-10 Tom Tromey <tom@tromey.com>
15994
15995 * symmisc.c (print_symbol_bcache_statistics): Update.
15996 (print_objfile_statistics): Update.
15997 * symfile.c (reread_symbols): Update.
15998 * psymtab.h (class psymtab_storage): New.
15999 * psymtab.c (psymtab_storage): New constructor.
16000 (~psymtab_storage): New destructor.
16001 (require_partial_symbols): Update.
16002 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16003 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16004 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16005 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16006 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16007 (start_psymtab_common, end_psymtab_common)
16008 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16009 (allocate_psymtab): Update.
16010 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16011 Update.
16012 (dump_psymtab_addrmap, maintenance_print_psymbols)
16013 (maintenance_check_psymtabs): Update.
16014 (class objfile_psymtabs): Move to objfiles.h.
16015 * psympriv.h (discard_psymtab): Now inline.
16016 (psymtab_discarder::psymtab_discarder): Update.
16017 (psymtab_discarder::~psymtab_discarder): Update.
16018 (ALL_OBJFILE_PSYMTABS): Rewrite.
16019 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16020 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16021 Remove fields.
16022 <partial_symtabs>: New field.
16023 (class objfile_psymtabs): Move from psymtab.h. Update.
16024 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16025 psymbol_cache.
16026 (objfile::~objfile): Don't destroy psymbol_cache.
16027 * mdebugread.c (parse_partial_symbols): Update.
16028 * dwarf2read.c (create_addrmap_from_index)
16029 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16030 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16031 (add_partial_subprogram, dwarf2_ranges_read): Update.
16032 * dwarf-index-write.c (write_address_map)
16033 (write_one_signatured_type, recursively_write_psymbols)
16034 (class debug_names, class debug_names, write_psymtabs_to_index):
16035 Update.
16036
1d94a5a3
TT
160372019-01-10 Tom Tromey <tom@tromey.com>
16038
16039 * symtab.h (SYMBOL_SET_NAMES): Update.
16040 (symbol_set_names): Update.
16041 (MSYMBOL_SET_NAMES): Update.
16042 * symtab.c (symbol_set_names): Change argument to be an
16043 objfile_per_bfd_storage.
16044 * psymtab.c (add_psymbol_to_bcache): Update.
16045 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16046
0f14768a
TT
160472019-01-10 Tom Tromey <tom@tromey.com>
16048
16049 * symtab.c (create_demangled_names_hash): Change argument to be an
16050 objfile_per_bfd_storage.
16051 (symbol_set_names): Update.
16052
6eee24ce
TT
160532019-01-10 Tom Tromey <tom@tromey.com>
16054
16055 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16056 init_psymbol_list.
16057 * psymtab.c (init_psymbol_list): Do nothing if already called.
16058 * psympriv.h (init_psymbol_list): Add comment.
16059 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16060 init_psymbol_list.
16061 * dbxread.c (dbx_symfile_read): Unconditionally call
16062 init_psymbol_list.
16063
75aedd27
TT
160642019-01-10 Tom Tromey <tom@tromey.com>
16065
16066 * xcoffread.c (scan_xcoff_symtab): Update.
16067 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16068 "where".
16069 * mdebugread.c (parse_partial_symbols)
16070 (handle_psymbol_enumerators): Update.
16071 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16072 * dbxread.c (read_dbx_symtab): Update.
16073 * psympriv.h (psymbol_placement): New enum.
16074 (add_psymbol_to_list): Update.
16075
939652a5
TT
160762019-01-10 Tom Tromey <tom@tromey.com>
16077
16078 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16079 static_psymbols parameters.
16080 (scan_xcoff_symtab): Update.
16081 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16082 static_psymbols parameters.
16083 * psympriv.h (start_psymtab_common): Update.
16084 * mdebugread.c (parse_partial_symbols): Update.
16085 * dwarf2read.c (create_partial_symtab): Update.
16086 * dbxread.c (read_dbx_symtab): Update.
16087 (start_psymtab): Remove global_psymbols and static_psymbols
16088 parameters.
16089
baa62830
TT
160902019-01-10 Tom Tromey <tom@tromey.com>
16091
16092 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16093 * psymtab.c (allocate_psymtab): Add comment.
16094 * psympriv.h (allocate_psymtab): Add comment.
16095 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16096 initializations.
16097 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16098
0e8f53ba
TT
160992019-01-10 Tom Tromey <tom@tromey.com>
16100
16101 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16102 Don't declare.
16103 * mipsread.c: Include mdebugread.h.
16104 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16105 Declare.
16106 * elfread.c: Include mdebugread.h.
16107
b22a7c6a
TT
161082019-01-09 Tom Tromey <tom@tromey.com>
16109
16110 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16111 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16112 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16113 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16114 (psym_lookup_symbol, psym_find_last_source_symtab)
16115 (psym_forget_cached_source_info, psym_print_stats)
16116 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16117 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16118 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16119 (psym_find_compunit_symtab_by_address)
16120 (maintenance_print_psymbols, maintenance_info_psymtabs)
16121 (maintenance_check_psymtabs): Use ranged for.
16122 * psymtab.h (class objfile_psymtabs): New.
16123 (require_partial_symbols): Return objfile_psymtabs.
16124 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16125
3b9d3ac2
TT
161262019-01-09 Tom Tromey <tom@tromey.com>
16127
16128 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16129 (find_pc_mapped_section, list_overlays_command)
16130 (map_overlay_command, unmap_overlay_command)
16131 (simple_overlay_update): Use all_objfiles.
16132 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16133 * printcmd.c (info_symbol_command): Use all_objfiles.
16134 * objfiles.h (ALL_OBJSECTIONS): Remove.
16135 * maint.c (maintenance_translate_address): Use all_objfiles.
16136 * gcore.c (gcore_create_callback): Use all_objfiles.
16137 (objfile_find_memory_regions): Likewise.
16138
8b31193a
TT
161392019-01-09 Tom Tromey <tom@tromey.com>
16140
16141 * symtab.c (find_line_symtab, info_sources_command)
16142 (make_source_files_completion_list): Use objfile_compunits.
16143 * source.c (select_source_symtab): Use objfile_compunits.
16144 * objfiles.h (struct objfile): Update comment.
16145 (ALL_OBJFILES): Remove.
16146 (ALL_FILETABS): Remove.
16147 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16148 objfile_compunits.
16149
d5da8b3c
TT
161502019-01-09 Tom Tromey <tom@tromey.com>
16151
16152 * symmisc.c (print_objfile_statistics, dump_objfile)
16153 (maintenance_print_symbols): Use compunit_filetabs.
16154 * source.c (forget_cached_source_info_for_objfile): Use
16155 compunit_filetabs.
16156 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16157 (ALL_FILETABS): Use compunit_filetabs.
16158 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16159 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16160
5accd1a0
TT
161612019-01-09 Tom Tromey <tom@tromey.com>
16162
16163 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16164 (compunit_filetabs): New.
16165 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16166 compunit_filetabs.
16167 (info_sources_command, make_source_files_completion_list): Remove
16168 declaration.
16169 * symmisc.c (print_objfile_statistics, dump_objfile)
16170 (maintenance_print_symbols): Remove declaration.
16171 (maintenance_info_symtabs): Use compunit_filetabs.
16172 (maintenance_info_line_tables): Likewise.
16173 * source.c (select_source_symtab): Change local variable name.
16174 (forget_cached_source_info_for_objfile): Remove declaration.
16175 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16176 * objfiles.c (objfile_relocate1): Remove declaration.
16177 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16178 declaration.
16179 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16180 * coffread.c (coff_symtab_read): Remove declaration.
16181 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16182 compunit_filetabs.
16183
d8aeb77f
TT
161842019-01-09 Tom Tromey <tom@tromey.com>
16185
16186 * symtab.c (lookup_objfile_from_block)
16187 (find_pc_sect_compunit_symtab, search_symbols)
16188 (default_collect_symbol_completion_matches_break_on): Use
16189 objfile_compunits.
16190 * objfiles.h (ALL_COMPUNITS): Remove.
16191 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16192 * cp-support.c (add_symbol_overload_list_qualified): Use
16193 objfile_compunits.
16194 * ada-lang.c (ada_collect_symbol_completion_matches)
16195 (ada_add_global_exceptions): Use objfile_compunits.
16196
592553c4
TT
161972019-01-09 Tom Tromey <tom@tromey.com>
16198
16199 * source.c (select_source_symtab)
16200 (forget_cached_source_info_for_objfile): Remove declaration.
16201 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16202 declaration.
16203 * maint.c (count_symtabs_and_blocks): Remove declaration.
16204 * cp-support.c (add_symbol_overload_list_qualified): Remove
16205 declaration.
16206 * coffread.c (coff_symtab_read): Remove declaration.
16207 * symtab.c (lookup_symbol_in_objfile_symtabs)
16208 (basic_lookup_transparent_type_1): Use objfile_compunits.
16209 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16210 (info_sources_command, search_symbols)
16211 (default_collect_symbol_completion_matches_break_on)
16212 (make_source_files_completion_list): Remove declaration.
16213 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16214 (ada_collect_symbol_completion_matches)
16215 (ada_add_global_exceptions): Remove declaration.
16216 * linespec.c (iterate_over_all_matching_symtabs): Use
16217 objfile_compunits.
16218 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16219 (class objfile_compunits): New.
16220 (ALL_COMPUNITS): Use objfile_compunits.
16221 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16222 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16223 objfile_compunits.
16224 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16225
5325b9bf
TT
162262019-01-09 Tom Tromey <tom@tromey.com>
16227
16228 * symtab.c (search_symbols)
16229 (default_collect_symbol_completion_matches_break_on): Use
16230 objfile_msymbols.
16231 * ada-lang.c (ada_lookup_simple_minsym)
16232 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16233 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16234 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16235 objfile_msymbols.
16236 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16237 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16238 * objc-lang.c (find_methods): Use objfile_msymbols.
16239 (info_selectors_command, info_classes_command): Likewise.
16240 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16241 * objfiles.h (class objfile_msymbols): New.
16242 (ALL_OBJFILE_MSYMBOLS): Remove.
16243 (ALL_MSYMBOLS): Remove.
16244
cac85af2
TT
162452019-01-09 Tom Tromey <tom@tromey.com>
16246
16247 * common/next-iterator.h (next_adapter): Add Iterator template
16248 parameter.
16249 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16250 (class all_objfiles_safe): New.
16251 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16252 * objfiles.c (put_objfile_before): Update comment.
16253 (add_separate_debug_objfile): Likewise.
16254 (free_all_objfiles): Use all_objfiles_safe.
16255 (objfile_purge_solibs): Likewise.
16256
aed57c53
TT
162572019-01-09 Tom Tromey <tom@tromey.com>
16258
16259 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16260 (expand_symtab_containing_pc, lookup_static_symbol)
16261 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16262 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16263 all_objfiles.
16264 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16265 * breakpoint.c (create_overlay_event_breakpoint)
16266 (create_longjmp_master_breakpoint)
16267 (create_std_terminate_master_breakpoint)
16268 (create_exception_master_breakpoint): Use all_objfiles.
16269 * linux-thread-db.c (try_thread_db_load_from_pdir)
16270 (has_libpthread): Use all_objfiles.
16271 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16272 * linespec.c (iterate_over_all_matching_symtabs)
16273 (search_minsyms_for_name): Use all_objfiles.
16274 * maint.c (maintenance_info_sections): Use all_objfiles.
16275 * main.c (captured_main_1): Use all_objfiles.
16276 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16277 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16278 * guile/scm-pretty-print.c
16279 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16280 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16281 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16282 (maintenance_print_msymbols): Use all_objfiles.
16283 * source.c (select_source_symtab): Use all_objfiles.
16284 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16285 * symfile.c (remove_symbol_file_command)
16286 (expand_symtabs_matching, map_symbol_filenames): Use
16287 all_objfiles.
16288 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16289 all_objfiles.
16290 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16291 * objc-lang.c (find_methods): Use all_objfiles.
16292 * objfiles.c (have_partial_symbols, have_full_symbols)
16293 (have_minimal_symbols, qsort_cmp)
16294 (default_iterate_over_objfiles_in_search_order): Use
16295 all_objfiles.
16296 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16297 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16298 (maintenance_check_psymtabs): Use all_objfiles.
16299 (ALL_PSYMTABS): Remove.
16300 * compile/compile-object-run.c (do_module_cleanup): Use
16301 all_objfiles.
16302 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16303 * cp-support.c (add_symbol_overload_list_qualified): Use
16304 all_objfiles.
16305 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16306 Use all_objfiles.
16307 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16308 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16309 all_objfiles.
16310 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16311 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16312 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16313 Uses all_objfiles.
16314 * solib.c (solib_read_symbols): Use all_objfiles
16315
99d89cde
TT
163162019-01-09 Tom Tromey <tom@tromey.com>
16317
16318 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16319 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16320 all_objfiles.
16321 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16322 * symmisc.c (print_symbol_bcache_statistics)
16323 (print_objfile_statistics, maintenance_print_objfiles)
16324 (maintenance_info_symtabs, maintenance_check_symtabs)
16325 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16326 all_objfiles.
16327 * source.c (forget_cached_source_info): Use all_objfiles.
16328 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16329 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16330 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16331 * objfiles.c (update_section_map): Use all_objfiles.
16332 (shared_objfile_contains_address_p): Likewise.
16333 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16334 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16335
21708325
TT
163362019-01-09 Tom Tromey <tom@tromey.com>
16337
16338 * common/next-iterator.h: New file.
16339 * objfiles.h (class all_objfiles): New.
16340 (struct objfile_iterator): New.
16341
669e09f6
PW
163422019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16343
16344 * NEWS: Move the description of the changed "frame", "select-frame",
16345 and "info frame" commands to the Changed commands section.
16346
041be526
SM
163472019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16348
16349 * gdbtypes.c (check_stub_method_group): Remove handling of old
16350 mangling schemes.
16351 * linespec.c (find_methods): Likewise.
16352 * stabsread.c (read_member_functions): Likewise.
16353 * valops.c (search_struct_method): Likewise.
16354 (value_struct_elt_for_reference): Likewise.
16355 * NEWS: Mention this change.
16356
0e2a2133
AB
163572019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16358
16359 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16360 print_source_lines.
16361 * source.c (print_source_lines_base): Update line number check.
16362 (print_source_lines): New function.
16363 (source_lines_range::source_lines_range): New function.
16364 * source.h (class source_lines_range): New class.
16365 (print_source_lines): New declaration.
16366
1055a3b4
PW
163672019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16368
16369 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16370
cfeadda5
TT
163712019-01-08 Tom Tromey <tom@tromey.com>
16372 Simon Marchi <simon.marchi@ericsson.com>
16373
16374 PR gdb/24060
16375 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16376 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16377 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16378 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16379 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16380 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16381
583068ca
AB
163822019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16383
16384 * source.c (select_source_symtab): Move header comment to
16385 declaration in source.h.
16386 (forget_cached_source_info_for_objfile): Likewise.
16387 (forget_cached_source_info): Likewise.
16388 (identify_source_line): Likewise.
16389 * source.h (identify_source_line): Move declaration from symtab.h
16390 and add comment from source.c
16391 (print_source_lines): Likewise.
16392 (forget_cached_source_info_for_objfile): Likewise.
16393 (forget_cached_source_info): Likewise.
16394 (select_source_symtab): Likewise.
16395 (enum print_source_lines_flag): Move definition from symtab.h.
16396 * symtab.h (identify_source_line): Move declaration to source.h.
16397 (print_source_lines): Likewise.
16398 (forget_cached_source_info_for_objfile): Likewise.
16399 (forget_cached_source_info): Likewise.
16400 (select_source_symtab): Likewise.
16401 (enum print_source_lines_flag): Move definition to source.h.
16402 * tui/tui-hooks.c: Add 'source.h' include.
16403
ec98a4ad
AB
164042019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16405
16406 * source.c (print_source_lines_base): Handle requests to print
16407 reverse line number sequences, and guard against empty lines
16408 string.
16409
62ea19c1
AB
164102019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16411
16412 * source.c (print_source_lines_base): Fix skip of '\r' if next
16413 character is '\n'.
16414
9d30e1fd
TT
164152019-01-06 Tom Tromey <tom@tromey.com>
16416
16417 * c-exp.y (struct c_parse_state) <macro_original_text,
16418 expansion_obstack>: New member.
16419 (macro_original_text, expansion_obstack): Remove globals.
16420 (scan_macro_expansion, scanning_macro_expansion)
16421 (finished_macro_expansion): Update.
16422 (scan_macro_cleanup): Remove.
16423 (yylex, c_parse): Update.
16424
c65bac38
TT
164252019-01-06 Tom Tromey <tom@tromey.com>
16426
16427 * c-exp.y (struct c_parse_state) <strings>: New member.
16428 (operator_stoken): Update.
16429
02e12e38
TT
164302019-01-06 Tom Tromey <tom@tromey.com>
16431
16432 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16433 (union type_stack_elt) <typelist_val>: Now a pointer to
16434 std::vector.
16435 (type_stack_cleanup): Don't declare.
16436 (push_typelist): Update.
16437 * parse.c (pop_typelist): Return a std::vector.
16438 (push_typelist): Take a std::vector.
16439 (follow_types): Update. Do not free args.
16440 (type_stack_cleanup): Remove.
16441 * c-exp.y (struct c_parse_state): New.
16442 (cpstate): New global.
16443 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16444 (nonempty_typelist): Update.
16445 (func_mod): Create a new vector.
16446 (c_parse): Create a c_parse_state.
16447 (check_parameter_typelist): Do not delete params.
16448 (function_method): Update. Do not delete type_list.
16449
f097f5ad
TT
164502019-01-06 Tom Tromey <tom@tromey.com>
16451
16452 PR gdb/28155:
16453 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16454 check_typedef.
16455 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16456 (print_return_value): Likewise.
16457
d2adf9f1
TT
164582019-01-05 Tom Tromey <tom@tromey.com>
16459
16460 * contrib/cleanup_check.py: Remove.
16461 * contrib/gcc-with-excheck: Remove.
16462 * contrib/exsummary.py: Remove.
16463 * contrib/excheck.py: Remove.
16464
2eab46b1
JB
164652019-01-05 Joel Brobecker <brobecker@adacore.com>
16466
16467 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16468 NULL. Initialize tpprev to NULL instead of assigning it
16469 to NULL on the next statement.
16470 * windows-nat.c (windows_delete_thread): Remove check for
16471 main_thread_id before printing thread exit notifications.
16472 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16473 Remove thread ID check against main_thread_id.
16474 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16475 windows_delete_thread.
16476 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16477
48c5e7e2
TT
164782019-01-04 Tom Tromey <tom@tromey.com>
16479
16480 * compile/compile.c (_initialize_compile): Use upper case for
16481 metasyntactic variables.
16482 * symmisc.c (_initialize_symmisc): Use upper case for
16483 metasyntactic variables.
16484 * psymtab.c (_initialize_psymtab): Use upper case for
16485 metasyntactic variables.
16486 * demangle.c (demangle_command): Use upper case for metasyntactic
16487 variables.
16488 (_initialize_demangler): Likewise.
16489 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16490 variables.
16491
986041cd
TT
164922019-01-03 Tom Tromey <tom@tromey.com>
16493
16494 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16495
7c711119
TT
164962019-01-03 Tom Tromey <tom@tromey.com>
16497
16498 * python/py-symtab.c (salpy_str): Update.
16499 (struct salpy_sal_object) <symtab>: Now a PyObject.
16500 (salpy_dealloc): Update.
16501 (del_objfile_sal): Use gdbpy_ref.
16502
1b20edf0
TT
165032019-01-03 Tom Tromey <tom@tromey.com>
16504
16505 * python/py-type.c (convert_field): Use new_reference. Return
16506 gdbpy_ref.
16507 (make_fielditem): Return gdbpy_ref.
16508 (typy_fields): Update.
16509 (typy_getitem): Update.
16510 (field_name): Return gdbpy_ref. Use new_reference.
16511 (typy_iterator_iternext): Update.
16512
ea41325b
TT
165132019-01-03 Tom Tromey <tom@tromey.com>
16514
16515 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16516
2a3c71d6
TT
165172019-01-03 Tom Tromey <tom@tromey.com>
16518
16519 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16520 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16521 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16522 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16523 (pspy_set_type_printers): Likewise.
16524 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16525 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16526 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16527 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16528 (objfpy_set_type_printers): Likewise.
16529
5c329e6a
TT
165302019-01-03 Tom Tromey <tom@tromey.com>
16531
16532 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16533 (gdbpy_print_stack): Use gdbpy_err_fetch.
16534 * python/python-internal.h (class gdbpy_err_fetch): New class.
16535 (class gdbpy_enter) <m_error_type, m_error_value,
16536 m_error_traceback>: Remove.
16537 <m_error>: New member.
16538 (gdbpy_exception_to_string): Don't declare.
16539 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16540 * python/py-value.c (convert_value_from_python): Use
16541 gdbpy_err_fetch.
16542 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16543 gdbpy_exception_to_string.
16544 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16545 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16546 gdbpy_err_fetch.
16547
169bb27b
AB
165482019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16549
16550 * linux-nat.c (delete_lwp_cleanup): Delete.
16551 (struct lwp_deleter): New struct.
16552 (lwp_info_up): New typedef.
16553 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16554 lwp_info_up.
16555
a07c8880
AB
165562019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16557
16558 * linux-fork.c (class scoped_switch_fork_info): New class.
16559 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16560
26089c49
AB
165612019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16562
16563 * valops.c (find_overload_match): Remove use of null_cleanup, and
16564 calls to do_cleanups.
16565
06d3e5b0
AB
165662019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16567
16568 * compile/compile-cplus-types.c
16569 (compile_cplus_instance::decl_name): Handle changes to
16570 cp_func_name.
16571 * cp-support.c (cp_func_name): Update header comment, update
16572 return type.
16573 * cp-support.h (cp_func_name): Update return type in declaration.
16574 * valops.c (find_overload_match): Move temp_func local to top
16575 level of function and change its type. Use temp_func to hold and
16576 delete temporary string obtained from cp_func_name.
16577
66644cd3
AB
165782019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16579
16580 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16581 gdb::char_vector, remove cleanup, and update uses of `msg`.
16582
592d8c0a
JW
165832019-01-03 Jim Wilson <jimw@sifive.com>
16584
16585 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16586
c55d06ec
TT
165872019-01-02 Tom Tromey <tom@tromey.com>
16588
16589 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16590 (tdesc_parse_xml): Remove cleanups.
16591 * target-descriptions.h (make_cleanup_free_target_description):
16592 Don't declare.
16593 (target_desc_deleter): New struct.
16594 (target_desc_up): New typedef.
16595 * target-descriptions.c (target_desc_deleter::operator()): Rename
16596 from free_target_description.
16597 (make_cleanup_free_target_description): Remove.
16598
3a6ae42d
TT
165992019-01-02 Tom Tromey <tom@tromey.com>
16600
16601 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16602 constructor, destructor.
16603 (linespec_parser): Remove typedef.
16604 (~linespec_parser): Rename from linespec_parser_delete.
16605 (linespec_lex_to_end, linespec_complete_label)
16606 (linespec_complete): Update.
16607 (decode_line_full): Remove cleanups.
16608 (decode_line_1): Update.
16609
61fd3e73
TT
166102019-01-02 Tom Tromey <tom@tromey.com>
16611
16612 * python/python-internal.h (inferior_to_inferior_object): Change
16613 return type.
16614 * python/py-exitedevent.c (create_exited_event_object): Update.
16615 * python/py-inferior.c (inferior_to_inferior_object): Return
16616 gdbpy_ref.
16617 (python_new_inferior, python_inferior_deleted)
16618 (thread_to_thread_object, delete_thread_object)
16619 (build_inferior_list, gdbpy_selected_inferior): Update.
16620 * python/py-infthread.c (create_thread_object): Update. Also fail
16621 if inferior_to_inferior_object fails.
16622
d20172fc
SM
166232019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16624
16625 * inferior.h (class inferior) <displaced_step_state>: New field.
16626 * infrun.h (struct displaced_step_state): Move here from
16627 infrun.c. Initialize fields, add constructor.
16628 <inf>: Remove field.
16629 <reset>: New method.
16630 * infrun.c (struct displaced_step_inferior_state): Move to
16631 infrun.h.
16632 (displaced_step_inferior_states): Remove.
16633 (get_displaced_stepping_state): Adust.
16634 (displaced_step_in_progress_any_inferior): Adjust.
16635 (displaced_step_in_progress_thread): Adjust.
16636 (displaced_step_in_progress): Adjust.
16637 (add_displaced_stepping_state): Remove.
16638 (get_displaced_step_closure_by_addr): Adjust.
16639 (remove_displaced_stepping_state): Remove.
16640 (infrun_inferior_exit): Call displaced_step_state.reset.
16641 (use_displaced_stepping): Don't check for NULL.
16642 (displaced_step_prepare_throw): Call
16643 get_displaced_stepping_state.
16644 (displaced_step_fixup): Don't check for NULL.
16645 (prepare_for_detach): Don't check for NULL.
16646
e3319240
PW
166472019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16648
16649 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16650 in case of call that did not complete.
16651
5d36dfb9
AU
166522019-01-02 Andrey Utkin <autkin@undo.io>
16653
16654 * symfile.c (find_separate_debug_file): Fix search of debug files for
16655 remote debuggee.
16656
8833fbf0
TT
166572019-01-02 Tom Tromey <tom@tromey.com>
16658
16659 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16660 indentation.
16661 * python/py-frame.c (frapy_older): Remove cast.
16662 (frapy_newer): Likewise.
16663 * python/py-breakpoint.c (local_setattro): Remove cast.
16664 * python/py-arch.c (archpy_name): Remove local variable.
16665 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16666
4ada3dfd
JB
166672019-01-02 Joel Brobecker <brobecker@adacore.com>
16668
16669 * unittests/basic_string_view/element_access/char/empty.cc:
16670 Fix year range in copyright header.
16671
113b7b81
AB
166722019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16673
16674 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16675 Delete.
16676 <operator==>: Update with for removed field.
16677 <hash>: Likewise.
16678 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16679 <isa_features>: ...this.
16680 <abi_features>: New field.
16681 (riscv_isa_flen): Update comment.
16682 (riscv_abi_xlen): New declaration.
16683 (riscv_abi_flen): New declaration.
16684 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16685 isa_features.
16686 (riscv_abi_xlen): New function.
16687 (riscv_isa_flen): Update to get answer from isa_features.
16688 (riscv_abi_flen): New function.
16689 (riscv_has_fp_abi): Update to get answer from abi_features.
16690 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16691 xlen and flen.
16692 (riscv_call_info) <xlen, flen>: Update comment.
16693 (riscv_call_arg_struct): Remove invalid assertions
16694 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16695 is removed.
16696 (riscv_gdbarch_init): Gather isa features and abi features
16697 separately, ensure both match on the gdbarch when reusing an old
16698 gdbarch. Relax an error check to allow 32-bit abi float to run on
16699 a target with 64-bit float hardware.
16700
b18ca514
PW
167012019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16702
16703 * source.c (search_command_helper): Stop reverse search
16704 when line 1 has been searched.
16705
ec70d8db
PW
167062019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16707
16708 * record-full.c (record_full_base_target::close): Rewrite
16709 record_full_core_buf_list free logic.
16710
5b38f9c1
PW
167112019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16712
16713 * break-catch-syscall.c (print_one_catch_syscall): xfree
16714 the last text.
16715
66d91b39
JB
167162019-01-01 Joel Brobecker <brobecker@adacore.com>
16717
16718 * top.c (print_gdb_version): Update Copyright year in version
16719 message.
16720
42a4f53d
JB
167212019-01-01 Joel Brobecker <brobecker@adacore.com>
16722
16723 Update copyright year range in all GDB files.
16724
7e955d83 167252019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16726
5bbd631d 16727 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16728
5bbd631d 16729For older changes see ChangeLog-2018.
c906108c
SS
16730\f
16731Local Variables:
16732mode: change-log
16733left-margin: 8
16734fill-column: 74
16735version-control: never
57da7796 16736coding: utf-8
c906108c 16737End:
5bbd631d 16738
This page took 2.930502 seconds and 4 git commands to generate.