Use an accessor function for general_symbol_info::language
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c1b5c1eb
CB
12019-12-15 Christian Biesinger <cbiesinger@google.com>
2
3 * ada-lang.c (ada_add_block_symbols): Update.
4 (ada_collect_symbol_completion_matches): Update.
5 * ax-gdb.c (gen_expr): Update.
6 * block.c (block_lookup_symbol): Update.
7 (block_lookup_symbol_primary): Update.
8 (block_find_symbol): Update.
9 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Update.
10 * dbxread.c (process_one_symbol): Update.
11 * dictionary.c (insert_symbol_hashed): Update.
12 (collate_pending_symbols_by_language): Update.
13 (mdict_add_symbol): Update.
14 * dwarf-index-write.c (write_psymbols): Update.
15 * dwarf2read.c (fixup_go_packaging): Update.
16 * findvar.c (read_var_value): Update.
17 * ft32-tdep.c (ft32_skip_prologue): Update.
18 * go-lang.c (go_symbol_package_name): Update.
19 * language.h (scoped_switch_to_sym_language_if_auto::
20 scoped_switch_to_sym_language_if_auto): Update.
21 * linespec.c (find_method): Update.
22 (find_label_symbols_in_block): Update.
23 * mdebugread.c (parse_symbol): Update.
24 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
25 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
26 (minimal_symbol_reader::install): Update.
27 * moxie-tdep.c (moxie_skip_prologue): Update.
28 * parse.c (parse_exp_in_context): Update.
29 * psymtab.c (psymbol_name_matches): Update.
30 (match_partial_symbol): Update.
31 (lookup_partial_symbol): Update.
32 (psymbol_hash): Update.
33 (psymbol_compare): Update.
34 * python/py-framefilter.c (extract_sym): Update.
35 (py_print_single_arg): Update.
36 * stabsread.c (define_symbol): Update.
37 * stack.c (print_frame_arg): Update.
38 (find_frame_funname): Update.
39 (info_frame_command_core): Update.
40 * symfile.c (set_initial_language): Update.
41 * symtab.c (symbol_set_demangled_name): Update.
42 (symbol_get_demangled_name): Update.
43 (symbol_set_language): Update.
44 (symbol_find_demangled_name): Update.
45 (symbol_set_names): Update.
46 (general_symbol_info::natural_name): Update.
47 (general_symbol_info::demangled_name): Update.
48 (general_symbol_info::search_name): Update.
49 (symbol_matches_search_name): Update.
50 (eq_symbol_entry): Update.
51 (iterate_over_symbols): Update.
52 (completion_list_add_symbol): Update.
53 (completion_list_add_msymbol): Update.
54 (completion_list_add_fields): Update.
55 * symtab.h (struct general_symbol_info) <language>: New function.
56 <language>: Rename to...
57 <m_language>: ...this.
58 (SYMBOL_LANGUAGE): Remove.
59 (MSYMBOL_LANGUAGE): Remove.
60 (struct symbol) <ctor>: Update.
61 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
62
747cfc8c
CB
632019-12-15 Christian Biesinger <cbiesinger@google.com>
64
65 * ada-exp.y (write_ambiguous_var): Call symbol_set_language to
66 set the language of sym.
67 * language.c (language_alloc_type_symbol): Likewise.
68
ff8577f6
SDJ
692019-12-14 Sergio Durigan Junior <sergiodj@redhat.com>
70
71 https://bugzilla.redhat.com/show_bug.cgi?id=1728147
72 PR gdb/23613
73 * bsd-kvm.c (bsd_kvm_target_open): Use 'gdb_abspath'.
74 * corelow.c: Include 'gdbsupport/pathstuff.h'.
75 (core_target_open): Use 'gdb_abspath'.
76 * gdbsupport/pathstuff.c (gdb_abspath): Guard against
77 'current_directory == NULL' case.
78 * gdbsupport/pathstuff.h (gdb_abspath): Expand comment and
79 explain what happens when 'current_directory' is NULL.
80 * go32-nat.c (go32_nat_target::wait): Check if
81 'current_directory' is NULL before call to 'chdir'.
82 * source.c (add_path): Use 'gdb_abspath'.
83 * top.c: Include 'gdbsupport/pathstuff.h'.
84 (init_history): Use 'gdb_abspath'.
85 (set_history_filename): Likewise.
86 * tracefile-tfile.c: Include 'gdbsupport/pathstuff.h'.
87 (tfile_target_open): Use 'gdb_abspath'.
88
234c3068
TT
892019-12-13 Tom Tromey <tromey@adacore.com>
90
91 * contrib/ari/gdb_ari.sh: Remove check for multiple calls to
92 warning or error.
93
93537683
TT
942019-12-13 Tom Tromey <tromey@adacore.com>
95
96 * contrib/ari/gdb_ari.sh: Remove call to "fix" for "long long".
97
63456183
TT
982019-12-13 Tom Tromey <tromey@adacore.com>
99
100 * contrib/ari/gdb_ari.sh: Handle -Wno- prefix.
101
98f9338a
TT
1022019-12-13 Tom Tromey <tromey@adacore.com>
103
104 * contrib/ari/gdb_ari.sh (usage): Use GNU style.
105
3cb5a3a1
TT
1062019-12-13 Tom Tromey <tromey@adacore.com>
107
108 * gdbsupport/common-utils.c (string_printf, string_vprintf)
109 (string_vappendf): Add ARI comment.
110
c6cbf900
TT
1112019-12-13 Tom Tromey <tromey@adacore.com>
112
113 * contrib/ari/gdb_ari.sh: Remove "fix" call for
114 floatformat_to_double.
115 * target-float.c (host_float_ops<T>::from_target): Add ARI
116 comment.
117
036003a6
TT
1182019-12-13 Tom Tromey <tromey@adacore.com>
119
120 * contrib/ari/gdb_ari.sh: Remove "fix" call for abort.
121 * utils.c (abort_with_message, dump_core, internal_vproblem): Add
122 ARI marker to abort.
123 * event-top.c (handle_sigsegv): Add ARI marker to abort.
124
8aaaf757
TT
1252019-12-13 Tom Tromey <tromey@adacore.com>
126
127 * contrib/ari/gdb_ari.sh: Fix floatformat_from_double text.
128
fe56157f
TT
1292019-12-13 Tom Tromey <tromey@adacore.com>
130
131 * contrib/ari/gdb_ari.sh: Remove ATTRIBUTE_UNUSED check.
132
a15a95ed
TT
1332019-12-13 Tom Tromey <tromey@adacore.com>
134
135 * contrib/ari/gdb_ari.sh: Remove "boolean" and "var_boolean"
136 checks.
137
a5513db2
TT
1382019-12-13 Tom Tromey <tromey@adacore.com>
139
140 * gdbsupport/safe-iterator.h (class basic_safe_range) <begin,
141 end>: No longer "const".
142
3a90f266
SM
1432019-12-13 Simon Marchi <simon.marchi@polymtl.ca>
144
145 * jit.c: Fix indentation, replace spaces with tabs where
146 applicable.
147
b3f4b80f
JL
1482019-12-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
149
150 * configure.tgt: Match msp430-*-elf* targets when configuring GDB.
151
e671856c
TT
1522019-12-12 Tom Tromey <tom@tromey.com>
153
154 * objfiles.h (struct objfile) <partial_symtabs>: Now a
155 unique_ptr.
156
7d7167ce
TT
1572019-12-12 Tom Tromey <tom@tromey.com>
158
159 * progspace.h (objfile_list): New typedef.
160 (class unwrapping_objfile_iterator)
161 (struct unwrapping_objfile_range): Newl
162 (struct program_space) <objfiles_range>: Change type.
163 <objfiles>: Change return type.
164 <add_objfile>: Change type of "objfile" parameter.
165 <objfiles_list>: Now a list of shared_ptr.
166 * progspace.c (program_space::add_objfile): Change type of
167 "objfile". Update.
168 (program_space::remove_objfile): Update.
169 * objfiles.h (struct objfile) <~objfile>: Make public.
170 * objfiles.c (objfile::make): Update.
171 (objfile::unlink): Don't call delete.
172
343cc952
TT
1732019-12-12 Tom Tromey <tom@tromey.com>
174
175 * symfile.c (symbol_file_clear): Update.
176 * progspace.h (struct program_space) <free_all_objfiles>: Declare
177 method.
178 * progspace.c (program_space::free_all_objfiles): New method.
179 * objfiles.h (free_all_objfiles): Don't declare.
180 * objfiles.c (free_all_objfiles): Move to program_space.
181
d0801dd8
TT
1822019-12-12 Tom Tromey <tom@tromey.com>
183
184 * progspace.c (program_space::add_objfile)
185 (program_space::remove_objfile): Update.
186 (program_space::multi_objfile_p): Remove.
187 * objfiles.h (struct objfile) <next>: Remove.
188 * objfiles.c (objfile::objfile): Update.
189 (put_objfile_before): Update.
190 (unlink_objfile): Update.
191 * progspace.h (object_files): Remove.
192 (struct program_space) <objfiles_head>: Remove.
193 <objfiles_list>: New member.
194 <objfiles_range, objfiles_safe_range>: Change type.
195 (objfiles): Change return type.
196 (objfiles_safe): Update.
197 (multi_objfile_p): Rewrite and inline.
198 (object_files): Remove macro.
199
13bff726
TT
2002019-12-12 Tom Tromey <tom@tromey.com>
201
202 * gdbsupport/safe-iterator.h (basic_safe_iterator): Simplify. Add
203 second constructor.
204 (basic_safe_range): New class.
205
deeafabb
TT
2062019-12-12 Tom Tromey <tom@tromey.com>
207
208 * progspace.c (program_space::multi_objfile_p): New method.
209 * printcmd.c (info_symbol_command): Update.
210 * maint.c (maintenance_translate_address): Update.
211 * objfiles.h (MULTI_OBJFILE_P): Remove.
212 * progspace.h (struct program_space) <multi_objfile_p>: New
213 method.
214
23452926
TT
2152019-12-12 Tom Tromey <tom@tromey.com>
216
217 * progspace.h (struct program_space) <remove_objfile>: Declare.
218 * progspace.c (program_space::remove_objfile): New method.
219 * objfiles.c (unlink_objfile): Remove.
220 (objfile::unlink): Call remove_objfile.
221 (objfile): Don't call unlink_objfile.
222
7cac64af
TT
2232019-12-12 Tom Tromey <tom@tromey.com>
224
225 * progspace.h (struct program_space) <add_objfile>: Declare
226 method.
227 * progspace.c (program_space::add_objfile): New method.
228 * objfiles.c (~objfile): Don't unlink objfile.
229 (put_objfile_before): Remove.
230 (add_separate_debug_objfile): Don't call put_objfile_before.
231 (objfile::make): Call add_objfile. Set new_objfiles_available on
232 the per-program-space data.
233
268e4f09
TT
2342019-12-12 Tom Tromey <tom@tromey.com>
235
236 * symfile.c (syms_from_objfile_1): Use objfile_up.
237 (syms_from_objfile_1, remove_symbol_file_command): Call unlink
238 method.
239 (reread_symbols): Use objfile_up.
240 * solib.c (update_solib_list, reload_shared_libraries_1): Call
241 unlink method.
242 * objfiles.h (struct objfile) <~objfile>: Now private.
243 <unlink>: New method.
244 (struct objfile_deleter): New.
245 (objfile_up): New typedef.
246 * objfiles.c (objfile::unlink): New method.
247 (free_objfile_separate_debug, free_all_objfiles)
248 (objfile_purge_solibs): Use it.
249 * jit.c (jit_unregister_code): Remove.
250 (jit_inferior_exit_hook, jit_event_handler): Call unlink on
251 objfile.
252 * compile/compile-object-run.c (do_module_cleanup): Call unlink on
253 objfile.
254 * compile/compile-object-load.c (compile_object_load): Use
255 objfile_up.
256
f65fe570
TT
2572019-12-12 Tom Tromey <tom@tromey.com>
258
259 * symfile.c (symbol_file_add_with_addrs): Pass "parent" to
260 objfile::make.
261 * objfiles.h (struct objjfile) <make>: No longer inline.
262 (add_separate_debug_objfile): Don't declare.
263 * objfiles.c (add_separate_debug_objfile): Now static.
264 (objfile::make): Move from objfiles.h. Call
265 add_separate_debug_objfile. Add "parent" parameter.
266
bda13cdc
TT
2672019-12-12 Tom Tromey <tom@tromey.com>
268
269 * symfile.c (symbol_file_add_with_addrs): Use objfile::make.
270 * objfiles.h (struct objfile): Make constructor private.
271 <make>: New static method.
272 * jit.c (jit_object_close_impl): Update.
273
7190276c
SM
2742019-12-12 Simon Marchi <simon.marchi@polymtl.ca>
275
276 * jit.c (jit_reader_try_read_symtab): Replace xmalloc/xfree with
277 gdb::byte_vector.
278
d61df897
TT
2792019-12-12 Tom Tromey <tromey@adacore.com>
280
281 * xml-support.c (xml_fetch_content_from_file): Don't call
282 malloc_failure.
283 * utils.h (class gdb_argv): Remove malloc_failure comment.
284 * utils.c (gdb_argv::reset): Don't call malloc_failure.
285
db3ad2f0
TT
2862019-12-12 Tom Tromey <tromey@adacore.com>
287
288 * Makefile.in (ALL_TARGET_OBS): Add riscv-ravenscar-thread.o.
289 (HFILES_NO_SRCDIR): Add riscv-ravenscar-thread.h.
290 (ALLDEPFILES): Add riscv-ravenscar-thread.c.
291 * configure.tgt (riscv-*-*): Add riscv-ravenscar-thread.o.
292 * riscv-ravenscar-thread.c: New file.
293 * riscv-ravenscar-thread.h: New file.
294 * riscv-tdep.c (riscv_gdbarch_init): Call
295 register_riscv_ravenscar_ops.
296
2ffe5b9c
TT
2972019-12-12 Tom Tromey <tromey@adacore.com>
298
299 * gdbsupport/thread-pool.c (set_thread_name): Use
300 ATTRIBUTE_UNUSED.
301
39f34d7b
LM
3022019-12-12 Luis Machado <luis.machado@linaro.org>
303
304 * gdbsupport/safe-strerror.c: Don't include diagnostics.h.
305 (select_strerror_r): Use ATTRIBUTE_UNUSED instead of the diagnostics
306 macros.
307
d4eeccfe
TT
3082019-12-11 Tom Tromey <tom@tromey.com>
309
310 * tui/tui-win.c (tui_set_win_height_command): Call
311 tui_adjust_window_height.
312 (tui_adjust_win_heights, new_height_ok): Remove.
313 * tui/tui-layout.h (tui_adjust_window_height): Declare.
314 * tui/tui-layout.c (tui_adjust_window_height): New function.
315
3d979945
TT
3162019-12-11 Tom Tromey <tom@tromey.com>
317
318 * tui/tui-win.c (tui_resize_all): Remove code, call
319 tui_apply_current_layout.
320
2192a9d3
TT
3212019-12-11 Tom Tromey <tom@tromey.com>
322
323 * tui/tui-layout.h (tui_apply_current_layout): Declare.
324 * tui/tui-layout.c (standard_layouts, applied_layout): New
325 globals.
326 (tui_apply_current_layout): New function.
327 (show_layout): Set applied_layout. Call
328 tui_apply_current_layout.
329 (show_source_command, show_disasm_command)
330 (show_source_disasm_command, show_data)
331 (show_source_or_disasm_and_command): Remove.
332 (initialize_layouts): New function.
333 (_initialize_tui_layout): Call initialize_layouts.
334
389e7ddb
TT
3352019-12-11 Tom Tromey <tom@tromey.com>
336
337 * tui/tui-layout.h (class tui_layout_base)
338 (class tui_layout_window, class tui_layout_split): New.
339 * tui/tui-layout.c (tui_get_window_by_name)
340 (tui_layout_window::clone, tui_layout_window::apply)
341 (tui_layout_window::get_sizes, tui_layout_window::add_split)
342 (tui_layout_split::add_window, tui_layout_split::clone)
343 (tui_layout_split::get_sizes)
344 (tui_layout_split::set_weights_from_heights)
345 (tui_layout_split::adjust_size, tui_layout_split::apply): New
346 functions.
347 (tui_layout_split::add_split, tui_layout_split::add_split)
348 (tui_layout_split::set_weights_from_heights)
349 (tui_layout_split::set_weights_from_heights): New functions.
350
fb3184d8
TT
3512019-12-11 Tom Tromey <tom@tromey.com>
352
353 * tui/tui-wingeneral.c (tui_gen_win_info::make_window): Update.
354 * tui/tui-win.c (tui_adjust_win_heights, tui_resize_all): Update.
355 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
356 * tui/tui-data.h (struct tui_point): Remove.
357 (struct tui_gen_win_info) <origin>: Remove.
358 <x, y>: New fields.
359 * tui/tui-command.c (tui_cmd_window::resize): Update.
360
dc7ff8a6
TT
3612019-12-11 Tom Tromey <tom@tromey.com>
362
363 * tui/tui-stack.h (struct tui_locator_window) <min_height>:
364 Implement.
365 * tui/tui-regs.h (struct tui_data_item_window) <min_height>:
366 Implement.
367 * tui/tui-data.h (struct tui_gen_win_info) <min_height>: New
368 method.
369 (struct tui_win_info) <min_height>: Implement.
370
1431937b
TT
3712019-12-11 Tom Tromey <tom@tromey.com>
372
373 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
374 (struct tui_win_info) <can_box>: Update.
375
c8ec2f43
TT
3762019-12-11 Tom Tromey <tom@tromey.com>
377
378 * tui/tui-stack.h (struct tui_locator_window) <max_height>: New
379 method.
380 * tui/tui-regs.h (struct tui_data_item_window) <max_height>: New
381 method.
382 * tui/tui-data.h (struct tui_gen_win_info) <max_height>: New
383 method.
384 (struct tui_win_info) <max_height>: Now override.
385
4decd62b
JB
3862019-12-11 Joel Brobecker <brobecker@adacore.com>
387
388 * NEWS: Create a new section for the next release branch.
389 Rename the section of the current branch, now that it has
390 been cut.
391
d746744e
JB
3922019-12-11 Joel Brobecker <brobecker@adacore.com>
393
394 GDB 9 branch created (27f7b2f64062ac9e52afc60509263c2702a9ebd0):
395 * version.in: Bump version to 10.0.50.DATE-git.
396
2e744276
TT
3972019-12-11 Tom Tromey <tromey@adacore.com>
398
399 PR build/25268:
400 * gdbsupport/thread-pool.c (set_thread_name): New function.
401 (thread_pool::set_thread_count): Don't call pthread_setname_np.
402 (thread_pool::thread_function): Call set_thread_name.
403
aac4760f
TT
4042019-12-11 Tom Tromey <tromey@adacore.com>
405
406 * fbsd-tdep.c (fbsd_core_info_proc_status): Cast result of
407 bfd_get_signed_8.
408
d8edc8b7
PW
4092019-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
410
411 * NEWS: Document -raw-values option and the related setting commands.
412 * printcmd.c (print_command_parse_format): Do not set opts->raw off,
413 only set it on when /r is given.
414 * valprint.c (value_print_option_defs): New element raw-values.
415 * Makefile.in: Add the new file.
416
cb511130
CB
4172019-12-10 Christian Biesinger <cbiesinger@google.com>
418
419 * gdbsupport/safe-strerror.c: Supress the unused function warning
420 for select_strerror_r.
421
ab7d13f0
CB
4222019-12-10 Christian Biesinger <cbiesinger@google.com>
423
424 * config.in: Regenerate.
425 * configure: Regenerate.
426 * gdbsupport/agent.c (gdb_connect_sync_socket): Call
427 safe_strerror instead of strerror.
428 * gdbsupport/common.m4: Don't check for strerror.
429 * gdbsupport/safe-strerror.c: Support both the glibc version
430 of strerror_r and the XSI version.
431
6c71eb7d
TT
4322019-12-10 Tom Tromey <tromey@adacore.com>
433
434 * ada-typeprint.c (print_choices): Use a single "?".
435 (print_variant_part): Print "?" if the discriminant name
436 is not known.
437
bac7c5cf
GB
4382019-12-10 George Barrett <bob@bob131.so>
439
440 Fix scripted probe breakpoints.
441 * breakpoint.c (tracepoint_probe_breakpoint_ops): Move
442 declaration forward.
443 (breakpoint_ops_for_event_location_type)
444 (breakpoint_ops_for_event_location): Add function definitions.
445 (break_command_1, trace_command): Use
446 breakpoint_ops_for_event_location.
447 * breakpoint.h (breakpoint_ops_for_event_location): Add function
448 declarations.
449 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Use
450 breakpoint_ops_for_event_location.
451 * python/py-breakpoint.c (bppy_init): Use
452 breakpoint_ops_for_event_location.
453
330f1d38
TBA
4542019-12-09 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
455
456 * gdbtypes.c (rank_one_type): Return INCOMPATIBLE_TYPE_BADNESS
457 when ranking an lvalue argument for an rvalue parameter.
458
b1f0c0b9
WA
4592019-12-08 Wataru Ashihara <wataash@wataash.com>
460
461 * darwin-nat.c (darwin_nat_target::create_inferior): Fix
462 template argument for scoped_restore_tmpl from bool to int.
463
aa2d5a42
KS
4642019-12-07 Keith Seitz <keiths@redhat.com>
465
466 * build-id.c (build_id_bfd_get): Permit bfd_core, too.
467 (build_id_to_debug_bfd): Make static, rewriting to use
468 build_id_to_bfd_suffix.
469 (build_id_to_bfd_suffix): Copy of build_id_to_debug_bfd,
470 adding `suffix' parameter. Append SUFFIX to file names
471 when searching for matching files.
472 (build_id_to_debug_bfd): Use build_id_to_bfd_suffix.
473 (build_id_to_exec_bfd): Likewise.
474 * build-id.h (build_id_to_debug_bfd): Clarify that function
475 searches for BFD of debug info file.
476 (build_id_to_exec_bfd): Declare.
477 * corelow.c: Include build-id.h.
478 (locate_exec_from_corefile_build_id): New function.
479 (core_target_open): If no executable BFD is found,
480 search for a core file BFD using build-id.
481
dfb65191
CB
4822019-12-06 Christian Biesinger <cbiesinger@google.com>
483
484 * bcache.c: Put in namespace gdb.
485 * bcache.h: Likewise.
486 * gdbtypes.c (check_types_worklist): Update.
487 (types_deeply_equal): Update.
488 * macrotab.c (struct macro_table) <bcache>: Update.
489 (new_macro_table): Update.
490 * macrotab.h (struct bcache): Put this forward declaration
491 inside namespace gdb.
492 (new_macro_table): Update.
493 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
494 Update.
495 <macro_cache>: Update.
496 * psymtab.h: (psymtab_storage) <psymbol_cache>: Update.
497
93e55f0a
TV
4982019-12-06 Tom de Vries <tdevries@suse.de>
499
500 PR symtab/24971
501 * block.c (best_symbol, better_symbol): New function.
502 (block_lookup_symbol_primary, block_lookup_symbol): Prefer def over
503 decl.
504
06acc08f
TBA
5052019-12-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
506
507 * gdbtypes.h: Define the REFERENCE_SEE_THROUGH_BADNESS value.
508 * gdbtypes.c (rank_one_type): Use REFERENCE_SEE_THROUGH_BADNESS
509 for ranking see-through reference cases.
510
e0fad1ea
PW
5112019-12-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
512 * stack.c (faas_command): Check a command is provided.
513 * thread.c (taas_command, tfaas_command): Likewise.
514
908641f5
PW
5152019-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
516 * inferior.c (prune_inferiors): Only call delete_inferior,
517 Do not modify the inferior list.
518
b858499d
SM
5192019-12-05 Simon Marchi <simon.marchi@polymtl.ca>
520
521 * c-exp.y: Update calls to lookup_typename,
522 lookup_signed_typename and lookup_unsigned_typename.
523 * c-lang.c (evaluate_subexp_c): Likewise.
524 * cp-namespace.c (cp_lookup_symbol_imports_or_template):
525 Likewise.
526 * eval.c (binop_promote): Likewise.
527 * gdbtypes.c (lookup_typename): Remove gdbarch parameter.
528 (lookup_unsigned_typename): Likewise.
529 (lookup_signed_typename): Likewise.
530 * gdbtypes.h (lookup_unsigned_typename): Likewise.
531 (lookup_signed_typename): Likewise.
532 (lookup_typename): Likewise.
533 * guile/scm-type.c (tyscm_lookup_typename): Update calls to
534 lookup_typename, lookup_signed_typename,
535 lookup_unsigned_typename.
536 * m2-exp.y: Likewise.
537 * printcmd.c (printf_wide_c_string): Likewise.
538 (ui_printf): Likewise.
539 * python/py-type.c (typy_lookup_typename): Likewise.
540 * python/py-xmethods.c (python_xmethod_worker::invoke):
541 Likewise.
542 * rust-exp.y: Likewise.
543
3a8fa228
CB
5442019-12-04 Christian Biesinger <cbiesinger@google.com>
545
546 * configure.nat (obsd64): Add missing files x86-nat.o and
547 nat/x86-dregs.o.
548
2dbc041e
TT
5492019-12-04 Tom Tromey <tom@tromey.com>
550
551 * valprint.c (val_print_string): Use metadata_style.
552 * go-valprint.c (print_go_string): Use metadata style.
553 * p-valprint.c (pascal_object_print_static_field): Use metadata
554 style.
555 * cp-valprint.c (cp_print_static_field): Use metadata style.
556
36c8fb93
AB
5572019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
558 Chris January <chris.january@arm.com>
559
560 * f-exp.y (COMPLEX_KEYWORD, SINGLE, DOUBLE, PRECISION): New
561 tokens.
562 (typebase): New patterns for complex, single/double precision, and
563 single/double complex.
564 (f77_keywords): Change token for complex keyword, and add single,
565 double, and precision keywords.
566
c6170c2c
SM
5672019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
568
569 * avr-tdep.c (_initialize_avr_tdep): Improve help of command
570 "info io_registers".
571
894ecaf4
SM
5722019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
573
574 * regcache.c (cooked_read_test): Initialize thread list of
575 mock_inferior.
576
be155ebb
SM
5772019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
578
579 * aarch64-linux-tdep.c: Remove includes.
580
c577cdd7
SM
5812019-12-04 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * aarch64-tdep.c: Remove includes.
584
610cfd61
SM
5852019-12-04 Simon Marchi <simon.marchi@efficios.com>
586
587 * filtered-iterator.h (filtered_iterator) <operator==,
588 operator!=>: Compare wrapped iterators, not wrapped pointers.
589 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
590 unittests/filtered_iterator-selftests.c.
591 * unittests/filtered_iterator-selftests.c: New file.
592
a05cf17a
TT
5932019-12-04 Tom Tromey <tromey@adacore.com>
594
595 * gdbtypes.c (create_range_type): Inherit endianity
596 from base type.
597
d5a22e77
TT
5982019-12-04 Tom Tromey <tromey@adacore.com>
599
600 * ada-lang.c (decode_constrained_packed_array)
601 (ada_value_assign, value_assign_to_component): Update.
602 * dwarf2loc.c (rw_pieced_value, access_memory)
603 (dwarf2_compile_expr_to_ax): Update.
604 * dwarf2read.c (dwarf2_add_field): Update.
605 * eval.c (evaluate_subexp_standard): Update.
606 * gdbarch.c, gdbarch.h: Rebuild.
607 * gdbarch.sh (bits_big_endian): Remove.
608 * gdbtypes.h (union field_location): Update comment.
609 * target-descriptions.c (make_gdb_type): Update.
610 * valarith.c (value_bit_index): Update.
611 * value.c (struct value) <bitpos>: Update comment.
612 (unpack_bits_as_long, modify_field): Update.
613 * value.h (value_bitpos): Update comment.
614
7ab4a236
TT
6152019-12-04 Tom Tromey <tromey@adacore.com>
616
617 * gdbtypes.c (type_byte_order): Move earlier. Assert for unknown
618 endian-ness.
619
103a685e
TT
6202019-12-04 Tom Tromey <tromey@adacore.com>
621
622 * dwarf2read.c (dwarf2_init_float_type)
623 (dwarf2_init_complex_target_type): Add byte_order parameter.
624 (read_base_type): Compute byte order earlier.
625 * gdbtypes.c (init_float_type): Add byte_order parameter.
626 * gdbtypes.h (init_float_type): Add byte_order parameter.
627
7a9e9f9f
TT
6282019-12-04 Tom Tromey <tromey@adacore.com>
629
630 * unittests/tui-selftests.c: Conditionally include tui-winsource.h.
631
feee869b
TT
6322019-12-04 Tom Tromey <tromey@adacore.com>
633
634 * dwarf2read.c (process_structure_scope): Initialize
635 "discr_offset".
636
c2512106
AB
6372019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * mi/mi-symbol-cmds.c (mi_symbol_info): Take extra parameter, and
640 add it into the search spec.
641 (parse_max_results_option): New function.
642 (mi_info_functions_or_variables): Parse -max-results flag and pass
643 it to mi_symbol_info.
644 (mi_cmd_symbol_info_modules): Likewise.
645 (mi_cmd_symbol_info_types): Likewise.
646 * symtab.c (global_symbol_searcher::add_matching_symbols): Change
647 return type to bool, change result container into a set, and don't
648 add new results if we have enough already.
649 (global_symbol_searcher::add_matching_msymbols): Change return
650 type to bool, and don't add new results if we have enough already.
651 (sort_search_symbols_remove_dups): Delete.
652 (global_symbol_searcher::search): Early exit from search loop when
653 we have enough results. Use a std::set to collect the results
654 from calling add_matching_symbols.
655 * symtab.h (global_symbol_searcher) <set_max_seach_results>: New
656 member function.
657 (global_symbol_searcher) <m_max_search_results>: New member
658 variable.
659 (global_symbol_searcher) <add_matching_symbols>: Update header
660 comment and change return type to bool.
661 (global_symbol_searcher) <add_matching_msymbols>: Update header
662 comment and change return type to bool.
663
f97a63c5
AB
6642019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
665
666 * symtab.c (symbol_search::compare_search_syms): Update header
667 comment.
668 (global_symbol_searcher::is_suitable_msymbol): New function.
669 (global_symbol_searcher::expand_symtabs): New function.
670 (global_symbol_searcher::add_matching_symbols): New function.
671 (global_symbol_searcher::add_matching_msymbols): New function.
672 (global_symbol_searcher::search): Move most of the content
673 into the new functions above, and call them as needed.
674 * symtab.h (global_symbol_searcher) <expand_symtabs>: New member
675 function.
676 (global_symbol_searcher) <add_matching_symbols>: New member
677 function.
678 (global_symbol_searcher) <add_matching_msymbols>: New member
679 function.
680 (global_symbol_searcher) <is_suitable_msymbol>: New member
681 function.
682
293b38d6
AB
6832019-12-04 Andrew Burgess <andrew.burgess@embecosm.com>
684
685 * mi/mi-cmds.c (mi_cmds): Add -symbol-info-module-functions and
686 -symbol-info-module-variables entries.
687 * mi/mi-cmds.h (mi_cmd_symbol_info_module_functions): Declare.
688 (mi_cmd_symbol_info_module_variables): Declare.
689 * mi/mi-symbol-cmds.c
690 (module_symbol_search_iterator): New typedef.
691 (output_module_symbols_in_single_module_and_file): New function.
692 (output_module_symbols_in_single_module): New function.
693 (mi_info_module_functions_or_variables): New function.
694 (mi_cmd_symbol_info_module_functions): New function.
695 (mi_cmd_symbol_info_module_variables): New function.
696 * NEWS: Mention new MI command.
697
4cbd39b2
CB
6982019-12-03 Christian Biesinger <cbiesinger@google.com>
699
700 * bcache.c (hash): Remove.
701 (hash_continue): Remove.
702 * bcache.h (hash): Remove.
703 (hash_continue): Remove.
704 (struct bcache) <ctor>: Update.
705 * psymtab.c (psymbol_hash): Update.
706 * stabsread.c (hashname): Update.
707 * utils.h (fast_hash): Add an argument for a start value,
708 defaulting to zero.
709
82f910ea
PW
7102019-12-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
711 * symtab.c (symbol_cache_clear_slot): Move close to cleared type.
712 (destroy_block_symbol_cache): New function.
713 (symbol_cache:~symbol_cache) Call destroy_block_symbol_cache.
714 (resize_symbol_cache): Likewise.
715
de2396d0
TT
7162019-12-02 Tom Tromey <tom@tromey.com>
717
718 * unittests/tui-selftests.c (run_tests): Make conditional.
719 (_initialize_tui_selftest): Make conditional.
720
638d85bc
CB
7212019-12-02 Christian Biesinger <cbiesinger@google.com>
722
723 * aix-thread.c (debug_aix_thread): Change type to bool.
724
7532a164
LM
7252019-12-02 Luis Machado <luis.machado@linaro.org>
726
727 * infrun.c (follow_fork_inferior): Remove outdated FIXME comment.
728
216a7e6b
AB
7292019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
730
731 * dwarf2read.c (read_tag_string_type): Read the fields required to
732 make a dynamic string, and possibly create a dynamic range for the
733 string.
734 (attr_to_dynamic_prop): Setup is_reference based on the type of
735 attribute being processed.
736 * gdbtypes.c (is_dynamic_type_internal): Handle TYPE_CODE_STRING.
737 (resolve_dynamic_array): Rename to...
738 (resolve_dynamic_array_or_string): ...this, update header comment,
739 and accept TYPE_CODE_STRING.
740 (resolve_dynamic_type_internal): Handle TYPE_CODE_STRING.
741
11a8b164
AB
7422019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
743
744 * dwarf2read.c (dwarf2_per_cu_int_type): New function, takes most
745 of its implementation from...
746 (dwarf2_per_cu_addr_sized_int_type): ...here, which now just calls
747 the new function.
748
5bbd8269
AB
7492019-12-01 Andrew Burgess <andrew.burgess@embecosm.com>
750
751 * dwarf2read.c (read_subrange_type): Read bit and byte stride and
752 create a range with stride where appropriate.
753 * f-valprint.c: Include 'gdbarch.h'.
754 (f77_print_array_1): Take the stride into account when walking the
755 array. Also convert the stride into addressable units.
756 * gdbtypes.c (create_range_type): Initialise the stride to
757 constant zero.
758 (create_range_type_with_stride): New function, initialise the
759 range as normal, and then setup the stride.
760 (has_static_range): Include the stride here. Also change the
761 return type to bool.
762 (create_array_type_with_stride): Consider the range stride if the
763 array isn't given its own stride.
764 (resolve_dynamic_range): Resolve the stride if needed.
765 * gdbtypes.h (struct range_bounds) <stride>: New member variable.
766 (struct range_bounds) <flag_is_byte_stride>: New member variable.
767 (TYPE_BIT_STRIDE): Define.
768 (TYPE_ARRAY_BIT_STRIDE): Define.
769 (create_range_type_with_stride): Declare.
770 * valarith.c (value_subscripted_rvalue): Take range stride into
771 account when walking the array.
772
82e3b564
TT
7732019-12-01 Tom Tromey <tom@tromey.com>
774
775 * tui/tui-win.c (tui_all_windows_info): Treat inactive TUI
776 specially.
777
517d261d
TT
7782019-12-01 Tom Tromey <tom@tromey.com>
779
780 * tui/tui-winsource.c (tui_copy_source_line): Don't advance past
781 \0.
782 * unittests/tui-selftests.c: New file.
783 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add tui-selftests.c.
784
484c9b64
TT
7852019-12-01 Tom Tromey <tom@tromey.com>
786
787 * tui/tui.c (tui_enable): Call tui_update_variables earlier.
788
a2a7af0c
TT
7892019-12-01 Tom Tromey <tom@tromey.com>
790
791 * NEWS: Document new settings.
792 * tui/tui-wingeneral.c (box_win): Apply appropriate border style.
793 * tui/tui-win.c (_initialize_tui_win): Add border style
794 observers.
795 * tui/tui-io.h (tui_apply_style): Declare.
796 * tui/tui-io.c (tui_apply_style): Rename from apply_style. No
797 longer static.
798 (apply_ansi_escape, tui_set_reverse_mode): Update.
799 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
800 Add "skip_intensity" parameter.
801 <changed>: New member.
802 <do_set_value>: Declare.
803 (tui_border_style, tui_active_border_style): Declare.
804 * cli/cli-style.c (tui_border_style, tui_active_border_style): New
805 globals.
806 (cli_style_option): Initialize "changed".
807 (cli_style_option::do_set_value): New function.
808 (cli_style_option::add_setshow_commands): Add "skip_intensity"
809 parameter. Update.
810 (STYLE_ADD_SETSHOW_COMMANDS): Add "SKIP" parameter.
811 (_initialize_cli_style): Update. Create TUI border style
812 commands.
813
d1da6b01
TT
8142019-12-01 Tom Tromey <tom@tromey.com>
815
816 * tui/tui-winsource.h (tui_copy_source_line): Add "ndigits"
817 parameter.
818 * tui/tui-winsource.c (tui_copy_source_line): Add "ndigits"
819 parameter.
820 * tui/tui-win.h (compact_source): Declare.
821 * tui/tui-win.c (compact_source): New global.
822 (tui_set_compact_source, tui_show_compact_source): New functions.
823 (_initialize_tui_win): Add "compact-source" setting.
824 * tui/tui-source.c (tui_source_window::set_contents): Handle
825 compact_source setting.
826 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
827 * NEWS: Document new setting.
828
489dbda6
TT
8292019-11-30 Tom Tromey <tom@tromey.com>
830
831 * dwarf2read.c (dwarf2_add_field): Include field offset when
832 computing variant part length.
833
bf498525
PW
8342019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
835 * NEWS: Mention define-prefix. Tell that command names can now
836 contain a . character.
837
be09caf1
PW
8382019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
839
840 * command.h (valid_cmd_char_p): Declare.
841 * cli/cli-decode.c (valid_cmd_char_p): New function factorizing
842 the check of valid command char.
843 (find_command_name_length, valid_user_defined_cmd_name_p): Use
844 valid_cmd_char_p.
845 * cli/cli-script.c (validate_comname): Likewise.
846 * completer.c (gdb_completer_command_word_break_characters):
847 Do not remove . from the word break char, update comments.
848 (complete_line_internal_1): Use valid_cmd_char_p.
849 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
850 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
851
c6ac7fc9
PW
8522019-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
853
854 * cli/cli-script.c (do_define_command): Ensure a redefined
855 prefix command is kept as a prefix command.
856 (define_prefix_command): New function.
857 (show_user_1): Report user defined prefixes.
858 (_initialize_cli_script): Create the new 'define-prefix' command.
859 Add completers for 'define' and 'document'.
860 * top.c (execute_command): If command is a user-defined prefix only
861 command, report the list of commands for this prefix command.
862
a992a3b0
TBA
8632019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
864
865 * valops.c (find_oload_champ): Improve debug output.
866
e9194a1a
TBA
8672019-11-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
868
869 * valops.c (find_oload_champ): Print part of debug messages
870 before the badness vector is std::move'd.
871
53a008a6
TT
8722019-11-28 Tom Tromey <tom@tromey.com>
873
874 * value.c (creal_internal_fn): Fix comment.
875
bab05c83
TT
8762019-11-28 Tom Tromey <tom@tromey.com>
877
878 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count,
879 flag_bound_evaluated>: Now unsigned.
880
2522f049
TT
8812019-11-28 Tom Tromey <tom@tromey.com>
882
883 * guile/guile-internal.h (vlscm_scm_from_value_unsafe): Don't
884 declare.
885
38b49e22
MS
8862019-11-28 Mihails Strasuns <mihails.strasuns@intel.com>
887
888 * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
889 debug output.
890 * jit.c (jit_unregister_code): Add debug print to match
891 `jit_register_code`.
892
35125921
CB
8932019-11-27 Christian Biesinger <cbiesinger@google.com>
894
895 * NEWS: Mention the new multithreaded symbol loading.
896
62e77f56
CB
8972019-11-27 Christian Biesinger <cbiesinger@google.com>
898
899 * maint.c (n_worker_threads): Default to 0.
900 (worker_threads_disabled): New function.
901 * maint.h (worker_threads_disabled): New function.
902 * minsyms.c (minimal_symbol_reader::record_full): Call symbol_set_names
903 here if worker_threads_disabled () is true.
904 (minimal_symbol_reader::install): Skip all threading if
905 worker_threads_disabled () is true.
906
f29d7f6b
CB
9072019-11-27 Christian Biesinger <cbiesinger@google.com>
908
909 * minsyms.c (add_minsym_to_hash_table): Use a previously computed
910 hash code if possible.
911 (add_minsym_to_demangled_hash_table): Likewise.
912 (minimal_symbol_reader::install): Compute the hash codes for msymbol
913 on the background thread.
914 * symtab.h (struct minimal_symbol) <hash_value, demangled_hash_value>:
915 Add these fields.
916
e76b2246
CB
9172019-11-27 Christian Biesinger <cbiesinger@google.com>
918
919 * minsyms.c (minimal_symbol_reader::install): Also compute the hash
920 of the mangled name on the background thread.
921 * symtab.c (symbol_set_names): Allow passing in the hash of the
922 linkage_name.
923 * symtab.h (symbol_set_names): Likewise.
924
8d9a2568
KB
9252019-11-27 Kevin Buettner <kevinb@redhat.com>
926
927 * dwarf2read.c (inherit_abstract_dies): Ensure that delayed
928 physnames are computed for inherited DIEs.
929
fad03f6e
TT
9302019-11-27 Tom Tromey <tromey@adacore.com>
931
932 * dwarf2read.h (struct dwarf2_per_objfile): Remove unnecessary
933 backslashes.
934 * cp-support.c: Remove unnecessary backslashes.
935
43678b0a
CB
9362019-11-27 Christian Biesinger <cbiesinger@google.com>
937
938 * ada-exp.y (write_ambiguous_var): Replace SYMBOL_SET_LINKAGE_NAME
939 with sym->set_linkage_name.
940 * coffread.c (coff_read_enum_type): Likewise.
941 * mdebugread.c (parse_symbol): Likewise.
942 * stabsread.c (patch_block_stabs): Likewise.
943 (define_symbol): Likewise.
944 (read_enum_type): Likewise.
945 (common_block_end): Likewise.
946 * symtab.h (struct general_symbol_info) <set_linkage_name>: New
947 function.
948 (SYMBOL_SET_LINKAGE_NAME): Remove.
949 * xcoffread.c (process_xcoff_symbol): Replace SYMBOL_SET_LINKAGE_NAME
950 with sym->set_linkage_name.
951
db5960b4
AB
9522019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * mi/mi-cmds.c (mi_cmds): Add 'symbol-info-modules' entry.
955 * mi/mi-cmds.h (mi_cmd_symbol_info_modules): Declare.
956 * mi/mi-symbol-cmds.c (mi_cmd_symbol_info_modules): New function.
957 * NEWS: Mention new MI command.
958
7dc42066
AB
9592019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
960
961 * mi/mi-cmds.c (mi_cmds): Add '-symbol-info-functions',
962 '-symbol-info-types', and '-symbol-info-variables'.
963 * mi/mi-cmds.h (mi_cmd_symbol_info_functions): Declare.
964 (mi_cmd_symbol_info_types): Declare.
965 (mi_cmd_symbol_info_variables): Declare.
966 * mi/mi-symbol-cmds.c: Add 'source.h' and 'mi-getopt.h' includes.
967 (output_debug_symbol): New function.
968 (output_nondebug_symbol): New function.
969 (mi_symbol_info): New function.
970 (mi_info_functions_or_variables): New function.
971 (mi_cmd_symbol_info_functions): New function.
972 (mi_cmd_symbol_info_types): New function.
973 (mi_cmd_symbol_info_variables): New function.
974 * NEWS: Mention new commands.
975
5f512a7d
AB
9762019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
977
978 * symtab.c (symbol_to_info_string): New function, most content
979 moved from print_symbol_info, but updated to return a std::string.
980 (print_symbol_info): Update to use symbol_to_info_string and print
981 returned string.
982 * symtab.h (symbol_to_info_string): Declare new function.
983
470c0b1c
AB
9842019-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
985
986 * python/python.c (gdbpy_rbreak): Convert to using
987 global_symbol_searcher.
988 * symtab.c (file_matches): Convert return type to bool, change
989 file list to std::vector, update header comment.
990 (search_symbols): Rename to...
991 (global_symbol_searcher::search): ...this and update now its
992 a member function of global_symbol_searcher. Take account of the
993 changes to file_matches.
994 (symtab_symbol_info): Convert to using global_symbol_searcher.
995 (rbreak_command): Likewise.
996 (search_module_symbols): Likewise.
997 * symtab.h (enum symbol_search): Update comment.
998 (search_symbols): Remove declaration.
999 (class global_symbol_searcher): New class.
1000
57357d9d
TT
10012019-11-26 Tom Tromey <tromey@adacore.com>
1002
1003 * cp-support.c (_initialize_cp_support): Conditionally initialize
1004 gdb_demangle_attempt_core_dump.
1005
3ea16160
TT
10062019-11-26 Tom Tromey <tom@tromey.com>
1007
1008 * python/py-function.c (fnpy_init): Update.
1009 * value.h (add_internal_function): Adjust declaration.
1010 * value.c (function_destroyer): Remove.
1011 (do_add_internal_function): Don't set destroyer or copy name.
1012 (add_internal_function): Take unique_xmalloc_ptr<char> for name.
1013 Set name_allocated.
1014 * python/py-cmd.c (cmdpy_destroyer): Don't free "name".
1015 (cmdpy_init): Set name_allocated.
1016 * cli/cli-decode.h (struct cmd_list_element) <name_allocated>: New
1017 member.
1018 (~cmd_list_element): Free "name" if needed.
1019
1a6d41c6
TT
10202019-11-26 Tom Tromey <tom@tromey.com>
1021
1022 * value.h (add_internal_function): Add new overload. Move
1023 documentation from value.h.
1024 * value.c (do_add_internal_function): New function.
1025 (add_internal_function): Use it. Add new overload.
1026 (function_destroyer): Don't free doc.
1027 * python/py-function.c (fnpy_init): Update.
1028
8318f3c3
TT
10292019-11-26 Tom Tromey <tom@tromey.com>
1030
1031 * python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
1032 (cmdpy_init): Set "doc_allocated".
1033
4da8c3a8
TT
10342019-11-26 Tom Tromey <tom@tromey.com>
1035
1036 * gdbsupport/thread-pool.c (thread_pool::set_thread_count): Set
1037 name of worker thread.
1038 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1039 pthread_setname_np.
1040 * configure, config.in: Rebuild.
1041
971db5e2
TT
10422019-11-26 Tom Tromey <tom@tromey.com>
1043
1044 * python/python.c (class gdbpy_gil): New.
1045 (struct gdbpy_event): Add constructor, destructor, operator().
1046 (gdbpy_post_event): Use run_on_main_thread.
1047 (gdbpy_initialize_events): Remove.
1048 (do_start_initialization): Update.
1049
22138db6
TT
10502019-11-26 Tom Tromey <tom@tromey.com>
1051
1052 * NEWS: Add entry.
1053 * maint.c (_initialize_maint_cmds): Add "worker-threads" maint
1054 commands. Call update_thread_pool_size.
1055 (update_thread_pool_size, maintenance_set_worker_threads): New
1056 functions.
1057 (n_worker_threads): New global.
1058
d55c9a68
TT
10592019-11-26 Christian Biesinger <cbiesinger@google.com>
1060 Tom Tromey <tom@tromey.com>
1061
1062 * minsyms.c (minimal_symbol_reader::install): Use
1063 parallel_for_each.
1064 * gdbsupport/parallel-for.h: New file.
1065 * Makefile.in (HFILES_NO_SRCDIR): Add gdbsupport/parallel-for.h.
1066
a0b57563
CB
10672019-11-26 Christian Biesinger <cbiesinger@google.com>
1068 Tom Tromey <tom@tromey.com>
1069
1070 * gdbsupport/thread-pool.h: New file.
1071 * gdbsupport/thread-pool.c: New file.
1072 * Makefile.in (COMMON_SFILES): Add thread-pool.c.
1073 (HFILES_NO_SRCDIR): Add thread-pool.h.
1074
3b3978bc
TT
10752019-11-26 Tom Tromey <tom@tromey.com>
1076
1077 * event-top.h (thread_local_segv_handler): Declare.
1078 * event-top.c (thread_local_segv_handler): New global.
1079 (install_handle_sigsegv, handle_sigsegv): New functions.
1080 (async_init_signals): Install SIGSEGV handler.
1081 * cp-support.c (gdb_demangle_jmp_buf): Change type. Now
1082 thread-local.
1083 (report_failed_demangle): New function.
1084 (gdb_demangle): Make core_dump_allowed atomic. Remove signal
1085 handler-setting code, instead use segv_handler. Run warning code
1086 on main thread.
1087
9411c49e
TT
10882019-11-26 Tom Tromey <tom@tromey.com>
1089
1090 * run-on-main-thread.c: New file.
1091 * run-on-main-thread.h: New file.
1092 * unittests/main-thread-selftests.c: New file.
1093 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1094 main-thread-selftests.c.
1095 (HFILES_NO_SRCDIR): Add run-on-main-thread.h.
1096 (COMMON_SFILES): Add run-on-main-thread.c.
1097
c3efb965
TT
10982019-11-26 Tom Tromey <tom@tromey.com>
1099
1100 * main.c (setup_alternate_signal_stack): Remove.
1101 (captured_main_1): Use gdb::alternate_signal_stack.
1102 * gdbsupport/alt-stack.h: New file.
1103
21987b9c
TT
11042019-11-26 Tom Tromey <tom@tromey.com>
1105
1106 * gdbsupport/signals-state-save-restore.c (original_signal_mask):
1107 Remove comment.
1108 (save_original_signals_state, restore_original_signals_state): Use
1109 gdb_sigmask.
1110 * linux-nat.c (block_child_signals, restore_child_signals_mask)
1111 (_initialize_linux_nat): Use gdb_sigmask.
1112 * guile/guile.c (_initialize_guile): Use block_signals.
1113 * Makefile.in (HFILES_NO_SRCDIR): Add gdb-sigmask.h.
1114 * gdbsupport/gdb-sigmask.h: New file.
1115 * event-top.c (async_sigtstp_handler): Use gdb_sigmask.
1116 * cp-support.c (gdb_demangle): Use gdb_sigmask.
1117 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for
1118 pthread_sigmask.
1119 * configure, config.in: Rebuild.
1120 * gdbsupport/block-signals.h: New file.
1121
5e030278
TT
11222019-11-26 Tom Tromey <tom@tromey.com>
1123
1124 * acinclude.m4: Include ax_pthread.m4.
1125 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1126 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1127 (CLIBS): Use PTHREAD_LIBS.
1128 (aclocal_m4_deps): Add ax_pthread.m4.
1129 * config.in, configure: Rebuild.
1130 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for std::thread.
1131
5a79c107
TT
11322019-11-26 Tom Tromey <tom@tromey.com>
1133
1134 * symtab.h (struct minimal_symbol) <name_set>: New member.
1135 * minsyms.c (minimal_symbol_reader::record_full): Copy name.
1136 Don't call symbol_set_names.
1137 (minimal_symbol_reader::install): Call symbol_set_names.
1138
aa369509
PW
11392019-11-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1140
1141 * python/python.c (gdbpy_enter::~gdbpy_enter): Release GIL after
1142 restore_active_ext_lang, as GIL is needed for (indirectly)
1143 called PyOS_InterruptOccurred.
1144
cadc9cb8
SM
11452019-11-26 Simon Marchi <simon.marchi@efficios.com>
1146
1147 * sparc-nat.c (sparc_xfer_wcookie): Sync declaration with
1148 definition.
1149
d04afd58
SM
11502019-11-26 Simon Marchi <simon.marchi@efficios.com>
1151
1152 * remote-sim.c (simulator_command): Make static, remove
1153 declaration.
1154
dd694d77
SM
11552019-11-26 Simon Marchi <simon.marchi@efficios.com>
1156
1157 * unittests/array-view-selftests.c (check_ptr_size_ctor2): Make
1158 static.
1159 * unittests/basic_string_view/capacity/1.cc (test01): Likewise.
1160 * unittests/basic_string_view/cons/char/1.cc (test01): Likewise.
1161 (main): Likewise.
1162 * unittests/basic_string_view/cons/char/2.cc (test03): Likewise.
1163 (main): Likewise.
1164 * unittests/basic_string_view/cons/char/3.cc (test05): Likewise.
1165 (main): Likewise.
1166 * unittests/basic_string_view/element_access/char/1.cc (test01):
1167 Likewise.
1168 (main): Likewise.
1169 * unittests/basic_string_view/element_access/char/empty.cc (main):
1170 Likewise.
1171 * unittests/basic_string_view/element_access/char/front_back.cc
1172 (test01): Likewise.
1173 (main): Likewise.
1174 * unittests/basic_string_view/inserters/char/2.cc (test05):
1175 Likewise.
1176 (main): Likewise.
1177 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc
1178 (test01): Likewise.
1179 (main): Likewise.
1180 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc
1181 (test01): Likewise.
1182 (main): Likewise.
1183 * unittests/basic_string_view/modifiers/swap/char/1.cc (test01):
1184 Likewise.
1185 * unittests/basic_string_view/operations/compare/char/1.cc
1186 (test01): Likewise.
1187 (main): Likewise.
1188 * unittests/basic_string_view/operations/compare/char/13650.cc
1189 (test01): Likewise.
1190 * unittests/basic_string_view/operations/copy/char/1.cc (test01):
1191 Likewise.
1192 (main): Likewise.
1193 * unittests/basic_string_view/operations/data/char/1.cc (test01):
1194 Likewise.
1195 (main): Likewise.
1196 * unittests/basic_string_view/operations/find/char/1.cc (test01):
1197 Likewise.
1198 (main): Likewise.
1199 * unittests/basic_string_view/operations/find/char/2.cc (test02):
1200 Likewise.
1201 (main): Likewise.
1202 * unittests/basic_string_view/operations/find/char/3.cc (test03):
1203 Likewise.
1204 (main): Likewise.
1205 * unittests/basic_string_view/operations/find/char/4.cc (main):
1206 Likewise.
1207 * unittests/basic_string_view/operations/rfind/char/1.cc (test01):
1208 Likewise.
1209 (main): Likewise.
1210 * unittests/basic_string_view/operations/rfind/char/2.cc (test02):
1211 Likewise.
1212 (main): Likewise.
1213 * unittests/basic_string_view/operations/rfind/char/3.cc (test03):
1214 Likewise.
1215 (main): Likewise.
1216 * unittests/basic_string_view/operations/substr/char/1.cc
1217 (test01): Likewise.
1218 (main): Likewise.
1219 * unittests/basic_string_view/operators/char/2.cc (main):
1220 Likewise.
1221 * unittests/optional/assignment/1.cc (test): Likewise.
1222 * unittests/optional/assignment/2.cc (test): Likewise.
1223 * unittests/optional/assignment/3.cc (test): Likewise.
1224 * unittests/optional/assignment/4.cc (test): Likewise.
1225 * unittests/optional/assignment/5.cc (test): Likewise.
1226 * unittests/optional/assignment/6.cc (test): Likewise.
1227 * unittests/optional/assignment/7.cc (test): Likewise.
1228 * unittests/optional/cons/copy.cc (test): Likewise.
1229 * unittests/optional/cons/default.cc (test): Likewise.
1230 * unittests/optional/cons/move.cc (test): Likewise.
1231 * unittests/optional/cons/value.cc (test): Likewise.
1232 * unittests/optional/in_place.cc (test): Likewise.
1233 * unittests/optional/observers/1.cc (test): Likewise.
1234 * unittests/optional/observers/2.cc (test): Likewise.
1235
3b5c1d49
SM
12362019-11-26 Simon Marchi <simon.marchi@efficios.com>
1237
1238 * tui-win.h (tui_set_var_cmd): Remove.
1239 * tui-win.c (tui_set_var_cmd): Make static.
1240
adce99fe
SM
12412019-11-26 Simon Marchi <simon.marchi@efficios.com>
1242
1243 * breakpoint.h (hbreak_command_wrapper, thbreak_command_wrapper,
1244 rbreak_command_wrapper): Remove.
1245 * symtab.c (rbreak_command_wrapper): Remove.
1246
fe3adccf
SM
12472019-11-26 Simon Marchi <simon.marchi@efficios.com>
1248
1249 * inferior.h (info_terminal_command): Remove declaration.
1250 * inflow.c (info_terminal_command): Make static.
1251
b926335f
SM
12522019-11-26 Simon Marchi <simon.marchi@efficios.com>
1253
1254 * inferior.c (exit_inferior_silent): Remove.
1255
b62f6f54
SM
12562019-11-26 Simon Marchi <simon.marchi@efficios.com>
1257
1258 * dictionary.c (dict_empty, mdict_empty): Remove.
1259 * dictionary.c (mdict_empty): Remove.
1260
cb8c24b6
SM
12612019-11-26 Simon Marchi <simon.marchi@efficios.com>
1262
1263 * arc-tdep.c (arc_insn_get_memory_base_reg): Make static.
1264 (arc_insn_get_memory_offset): Likewise.
1265 (arc_insn_dump): Likewise.
1266 * cp-support.c (test_cp_symbol_name_matches): Likewise.
1267 * csky-linux-tdep.c (csky_supply_fregset): Likewise.
1268 * dictionary.c (dict_iterator_next): Likewise.
1269 (dict_iter_match_first): Likewise.
1270 (dict_iter_match_next): Likewise.
1271 * f-lang.c (evaluate_subexp_f): Likewise.
1272 * hppa-tdep.c (hppa_read_pc): Likewise.
1273 * i386-tdep.c (i386_floatformat_for_type): Likewise.
1274 * parse.c (write_exp_elt_msym): Likewise.
1275 * ppc-linux-tdep.c (ppc_floatformat_for_type): Likewise.
1276 * remote.c (remote_packet_size): Likewise.
1277 (remote_notif_stop_parse): Likewise.
1278 * rs6000-aix-tdep.c (aix_sighandle_frame_sniffer): Likewise.
1279 * s12z-tdep.c (s12z_disassemble_info): Likewise.
1280 * source.c (prepare_path_for_appending): Likewise.
1281 * sparc64-linux-tdep.c
1282 (sparc64_linux_handle_segmentation_fault); Likewise.
1283 * stack.c (frame_selection_by_function_completer): Likewise.
1284
781597ff
SM
12852019-11-26 Simon Marchi <simon.marchi@efficios.com>
1286
1287 * completer.c (set_gdb_completion_word_break_characters):
1288 Remove.
1289
23baa4cc
SM
12902019-11-26 Simon Marchi <simon.marchi@efficios.com>
1291
1292 * dwarf-index-write.c: Include dwarf-index-write.h.
1293 * mi/mi-interp.c: Include mi/mi-interp.h.
1294
23767560
SM
12952019-11-26 Simon Marchi <simon.marchi@efficios.com>
1296
1297 * aarch32-tdep.c: Include aarch32-tdep.h.
1298 * aarch32-tdep.h: Forward-declare struct target_desc.
1299
6d91ce9a
CB
13002019-11-26 Christian Biesinger <cbiesinger@google.com>
1301
1302 * linux-nat.c (detach_one_lwp): Call safe_strerror instead of
1303 strerror.
1304 * nto-procfs.c (nto_procfs_target::create_inferior): Likewise.
1305 * windows-nat.c (windows_nat_target::create_inferior): Likewise.
1306
3cf2f237
TV
13072019-11-25 Tom de Vries <tdevries@suse.de>
1308
1309 * contrib/words.sh: Add -c option.
1310
5b89c67a
CB
13112019-11-25 Christian Biesinger <cbiesinger@google.com>
1312
1313 * solib.c (solib_find_1): Change int to bool.
1314 (exec_file_find): Change int to bool.
1315 (solib_find): Change int to bool.
1316 (solib_read_symbols): Change int to bool.
1317 (solib_used): Change int to bool.
1318 (solib_add): Change int to bool.
1319 (info_sharedlibrary_command): Change int to bool.
1320 (solib_contains_address_p): Change int to bool.
1321 (solib_keep_data_in_core): Change int to bool.
1322 (in_solib_dynsym_resolve_code): Change int to bool.
1323 (reload_shared_libraries_1): Change int to bool.
1324 (gdb_sysroot_changed): Change int to bool.
1325 * solib.h (solib_read_symbols): Change int to bool.
1326 (solib_contains_address_p): Change int to bool.
1327 (solib_keep_data_in_core): Change int to bool.
1328 (in_solib_dynsym_resolve_code): Change int to bool.
1329 (libpthread_name_p): Change int to bool.
1330
6cc8564b
LM
13312019-11-25 Luis Machado <luis.machado@linaro.org>
1332
1333 * NEWS (New Commands): Mention "set debug remote-packet-max-chars".
1334 * remote.c (REMOTE_DEBUG_MAX_CHAR): Remove.
1335 (remote_packet_max_chars): New static global.
1336 (show_remote_packet_max_chars): New function.
1337 (remote_target::putpkt_binary): Adjust to use new
1338 remote_packet_max_chars option.
1339 (remote_target::getpkt_or_notif_sane_1): Likewise.
1340 (_initialize_remote): Register new remote-packet-max-chars option.
1341
a7cdaa91
SM
13422019-11-24 Simon Marchi <simon.marchi@efficios.com>
1343
1344 * m68k-linux-nat.c: Include gdbarch.h.
1345
26abc753
TT
13462019-11-24 Tom Tromey <tom@tromey.com>
1347
1348 * symfile.c (read_symbols): Update.
1349 * psymtab.c (require_partial_symbols): Change type of "verbose" to
1350 bool.
1351 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
1352 (psym_lookup_symbol, psym_find_last_source_symtab)
1353 (psym_forget_cached_source_info, psym_print_stats)
1354 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
1355 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
1356 (psym_map_matching_symbols, psym_expand_symtabs_matching)
1357 (psym_find_compunit_symtab_by_address)
1358 (maintenance_print_psymbols, maintenance_info_psymtabs)
1359 (maintenance_check_psymtabs): Update.
1360 * psymtab.h (require_partial_symbols): Change type of "verbose" to
1361 bool.
1362
012fc909
TT
13632019-11-22 Tom Tromey <tom@tromey.com>
1364
1365 * observable.h: Update comments.
1366
c83d8d32
TT
13672019-11-22 Tom Tromey <tromey@adacore.com>
1368
1369 * ada-tasks.c (ada_task_is_alive): Make parameter const.
1370 (print_ada_task_info): Don't try to fetch thread id if task is not
1371 alive.
1372
987012b8
CB
13732019-11-22 Christian Biesinger <cbiesinger@google.com>
1374
1375 * ada-exp.y: Update.
1376 * ada-lang.c (sort_choices): Update.
1377 (ada_print_symbol_signature): Update.
1378 (resolve_subexp): Update.
1379 (ada_parse_renaming): Update.
1380 (ada_read_renaming_var_value): Update.
1381 (lesseq_defined_than): Update.
1382 (remove_extra_symbols): Update.
1383 (remove_irrelevant_renamings): Update.
1384 (ada_add_block_symbols): Update.
1385 (ada_collect_symbol_completion_matches): Update.
1386 (ada_is_renaming_symbol): Update.
1387 (aggregate_assign_from_choices): Update.
1388 (ada_evaluate_subexp): Update.
1389 (ada_has_this_exception_support): Update.
1390 (ada_is_non_standard_exception_sym): Update.
1391 (ada_add_exceptions_from_frame): Update.
1392 (ada_add_global_exceptions): Update.
1393 (ada_print_subexp): Update.
1394 * ax-gdb.c (gen_var_ref): Update.
1395 (gen_maybe_namespace_elt): Update.
1396 (gen_expr_for_cast): Update.
1397 (gen_expr): Update.
1398 * block.h: Update.
1399 * blockframe.c (find_pc_partial_function): Update.
1400 * breakpoint.c (print_breakpoint_location): Update.
1401 (update_static_tracepoint): Update.
1402 * btrace.c (ftrace_print_function_name): Update.
1403 (ftrace_function_switched): Update.
1404 * buildsym.c (find_symbol_in_list): Update.
1405 * c-exp.y: Update.
1406 * c-typeprint.c (c_print_typedef): Update.
1407 (c_type_print_template_args): Update.
1408 * cli/cli-cmds.c (edit_command): Update.
1409 (list_command): Update.
1410 (print_sal_location): Update.
1411 * coffread.c (patch_opaque_types): Update.
1412 (process_coff_symbol): Update.
1413 (coff_read_enum_type): Update.
1414 * compile/compile-c-symbols.c (c_symbol_substitution_name): Update.
1415 (convert_one_symbol): Update.
1416 (hash_symname): Update.
1417 (eq_symname): Update.
1418 * compile/compile-cplus-symbols.c (convert_one_symbol): Update.
1419 * compile/compile-cplus-types.c (debug_print_scope): Update.
1420 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1421 * compile/compile-object-load.c (get_out_value_type): Update.
1422 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1423 (search_symbol_list): Update.
1424 (cp_lookup_symbol_imports_or_template): Update.
1425 * cp-support.c (overload_list_add_symbol): Update.
1426 * ctfread.c (psymtab_to_symtab): Update.
1427 * dbxread.c (cp_set_block_scope): Update.
1428 * dictionary.c (iter_match_first_hashed): Update.
1429 (iter_match_next_hashed): Update.
1430 (insert_symbol_hashed): Update.
1431 (iter_match_next_linear): Update.
1432 * dictionary.h: Update.
1433 * dwarf2loc.c (func_get_frame_base_dwarf_block): Update.
1434 (locexpr_describe_location_piece): Update.
1435 (locexpr_describe_location_1): Update.
1436 (locexpr_generate_c_location): Update.
1437 (loclist_describe_location): Update.
1438 (loclist_generate_c_location): Update.
1439 * dwarf2read.c (dw2_debug_names_lookup_symbol): Update.
1440 (read_func_scope): Update.
1441 (process_enumeration_scope): Update.
1442 (new_symbol): Update.
1443 (dwarf2_const_value): Update.
1444 (dwarf2_symbol_mark_computed): Update.
1445 * eval.c (evaluate_funcall): Update.
1446 (evaluate_subexp_standard): Update.
1447 * expprint.c (print_subexp_standard): Update.
1448 (dump_subexp_body_standard): Update.
1449 * f-valprint.c (info_common_command_for_block): Update.
1450 * findvar.c (get_hosting_frame): Update.
1451 (default_read_var_value): Update.
1452 * go-lang.c (go_symbol_package_name): Update.
1453 * guile/scm-block.c (bkscm_print_block_smob): Update.
1454 * guile/scm-symbol.c (syscm_print_symbol_smob): Update.
1455 (gdbscm_symbol_name): Update.
1456 (gdbscm_symbol_linkage_name): Update.
1457 (gdbscm_symbol_print_name): Update.
1458 * infcall.c (get_function_name): Update.
1459 * infcmd.c (jump_command): Update.
1460 (finish_command): Update.
1461 * infrun.c (insert_exception_resume_breakpoint): Update.
1462 * linespec.c (canonicalize_linespec): Update.
1463 (create_sals_line_offset): Update.
1464 (convert_linespec_to_sals): Update.
1465 (complete_label): Update.
1466 (find_label_symbols_in_block): Update.
1467 * m2-typeprint.c (m2_print_typedef): Update.
1468 * mdebugread.c (mdebug_reg_to_regnum): Update.
1469 (parse_symbol): Update.
1470 (mylookup_symbol): Update.
1471 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1472 (list_args_or_locals): Update.
1473 * objc-lang.c (compare_selectors): Update.
1474 (info_selectors_command): Update.
1475 (compare_classes): Update.
1476 (info_classes_command): Update.
1477 (find_imps): Update.
1478 * p-typeprint.c (pascal_print_typedef): Update.
1479 * printcmd.c (build_address_symbolic): Update.
1480 (info_address_command): Update.
1481 (print_variable_and_value): Update.
1482 * python/py-framefilter.c (extract_sym): Update.
1483 (py_print_single_arg): Update.
1484 * python/py-symbol.c (sympy_str): Update.
1485 (sympy_get_name): Update.
1486 (sympy_get_linkage_name): Update.
1487 * python/python.c (gdbpy_rbreak): Update.
1488 * record-btrace.c (btrace_get_bfun_name): Update.
1489 (btrace_call_history): Update.
1490 * rust-lang.c (rust_print_typedef): Update.
1491 * solib-frv.c (frv_fdpic_find_canonical_descriptor): Update.
1492 * stabsread.c (stab_reg_to_regnum): Update.
1493 (define_symbol): Update.
1494 (read_enum_type): Update.
1495 (common_block_end): Update.
1496 (cleanup_undefined_types_1): Update.
1497 (scan_file_globals): Update.
1498 * stack.c (print_frame_arg): Update.
1499 (print_frame_args): Update.
1500 (find_frame_funname): Update.
1501 (info_frame_command_core): Update.
1502 (iterate_over_block_locals): Update.
1503 (print_block_frame_labels): Update.
1504 (do_print_variable_and_value): Update.
1505 (iterate_over_block_arg_vars): Update.
1506 (return_command): Update.
1507 * symmisc.c (dump_symtab_1): Update.
1508 (print_symbol): Update.
1509 * symtab.c (eq_symbol_entry): Update.
1510 (symbol_cache_dump): Update.
1511 (lookup_language_this): Update.
1512 (find_pc_sect_line): Update.
1513 (skip_prologue_sal): Update.
1514 (symbol_search::compare_search_syms): Update.
1515 (treg_matches_sym_type_name): Update.
1516 (search_symbols): Update.
1517 (print_symbol_info): Update.
1518 (rbreak_command): Update.
1519 (completion_list_add_symbol): Update.
1520 (find_gnu_ifunc): Update.
1521 (get_symbol_address): Update.
1522 (search_module_symbols): Update.
1523 (info_module_subcommand): Update.
1524 * symtab.h (SYMBOL_NATURAL_NAME): Remove.
1525 (SYMBOL_LINKAGE_NAME): Remove.
1526 (SYMBOL_DEMANGLED_NAME): Remove.
1527 (SYMBOL_PRINT_NAME): Remove.
1528 (SYMBOL_SEARCH_NAME): Remove.
1529 * tracepoint.c (set_traceframe_context): Update.
1530 (validate_actionline): Update.
1531 (collection_list::collect_symbol): Update.
1532 (encode_actions_1): Update.
1533 (info_scope_command): Update.
1534 (print_one_static_tracepoint_marker): Update.
1535 * typeprint.c (typedef_hash_table::add_template_parameters): Update.
1536 * valops.c (address_of_variable): Update.
1537 (find_overload_match): Update.
1538 (find_oload_champ): Update.
1539
c9d95fa3
CB
15402019-11-22 Christian Biesinger <cbiesinger@google.com>
1541
1542 * ada-lang.c (ada_lookup_simple_minsym): Update.
1543 (ada_collect_symbol_completion_matches): Update.
1544 * ada-tasks.c (read_atcb): Update.
1545 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
1546 (amd64_windows_skip_trampoline_code): Update.
1547 * arm-tdep.c (skip_prologue_function): Update.
1548 (arm_skip_stack_protector): Update.
1549 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
1550 (arm_wince_skip_main_prologue): Update.
1551 * ax-gdb.c (gen_expr): Update.
1552 * block.c (call_site_for_pc): Update.
1553 * blockframe.c (find_pc_partial_function): Update.
1554 * breakpoint.c (set_breakpoint_location_function): Update.
1555 * btrace.c (ftrace_print_function_name): Update.
1556 (ftrace_function_switched): Update.
1557 * c-valprint.c (print_unpacked_pointer): Update.
1558 * coffread.c (coff_symfile_read): Update.
1559 * compile/compile-c-symbols.c (convert_symbol_bmsym): Update.
1560 * compile/compile-cplus-symbols.c (convert_symbol_bmsym): Update.
1561 * dwarf-index-write.c (write_psymbols): Update.
1562 * dwarf2loc.c (call_site_to_target_addr): Update.
1563 (func_verify_no_selftailcall): Update.
1564 (tailcall_dump): Update.
1565 (call_site_find_chain_1): Update.
1566 (dwarf_expr_reg_to_entry_parameter): Update.
1567 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1568 * eval.c (evaluate_funcall): Update.
1569 (evaluate_subexp_standard): Update.
1570 (evaluate_subexp_for_sizeof): Update.
1571 * expprint.c (print_subexp_standard): Update.
1572 (dump_subexp_body_standard): Update.
1573 * frame.c (get_prev_frame_always_1): Update.
1574 * frv-tdep.c (frv_skip_main_prologue): Update.
1575 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
1576 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
1577 (gnuv3_get_typename_from_type_info): Update.
1578 (gnuv3_skip_trampoline): Update.
1579 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
1580 * i386-tdep.c (i386_skip_main_prologue): Update.
1581 (i386_pe_skip_trampoline_code): Update.
1582 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1583 * infcall.c (get_function_name): Update.
1584 * linespec.c (minsym_found): Update.
1585 * linux-fork.c (info_checkpoints_command): Update.
1586 * m32c-tdep.c (m32c_m16c_address_to_pointer): Update.
1587 (m32c_m16c_pointer_to_address): Update.
1588 * maint.c (maintenance_translate_address): Update.
1589 * minsyms.c (add_minsym_to_hash_table): Update.
1590 (add_minsym_to_demangled_hash_table): Update.
1591 (lookup_minimal_symbol_mangled): Update.
1592 (lookup_minimal_symbol_demangled): Update.
1593 (lookup_minimal_symbol_linkage): Update.
1594 (lookup_minimal_symbol_text): Update.
1595 (lookup_minimal_symbol_by_pc_name): Update.
1596 (minimal_symbol_is_less_than): Update.
1597 (compact_minimal_symbols): Update.
1598 (build_minimal_symbol_hash_tables): Update.
1599 (find_solib_trampoline_target): Update.
1600 * mips-tdep.c (mips_stub_frame_sniffer): Update.
1601 (mips_skip_pic_trampoline_code): Update.
1602 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
1603 * objc-lang.c (info_selectors_command): Update.
1604 (info_classes_command): Update.
1605 (find_methods): Update.
1606 (find_imps): Update.
1607 * p-valprint.c (pascal_val_print): Update.
1608 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Update.
1609 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
1610 * printcmd.c (build_address_symbolic): Update.
1611 (info_symbol_command): Update.
1612 * psymtab.c (psymbol_name_matches): Update.
1613 (match_partial_symbol): Update.
1614 (lookup_partial_symbol): Update.
1615 (print_partial_symbols): Update.
1616 (sort_pst_symbols): Update.
1617 (maintenance_check_psymtabs): Update.
1618 * python/py-framefilter.c (py_print_frame): Update.
1619 * python/python.c (gdbpy_rbreak): Update.
1620 * record-btrace.c (btrace_get_bfun_name): Update.
1621 (btrace_call_history): Update.
1622 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
1623 (rs6000_skip_trampoline_code): Update.
1624 * sol-thread.c (info_cb): Update.
1625 * stabsread.c (scan_file_globals): Update.
1626 * stack.c (find_frame_funname): Update.
1627 (info_frame_command_core): Update.
1628 * symmisc.c (dump_msymbols): Update.
1629 * symtab.c (symbol_natural_name): Rename to..,
1630 (general_symbol_info::natural_name): ...this.
1631 (symbol_demangled_name): Rename to...
1632 (general_symbol_info::demangled_name): ...this.
1633 (symbol_search_name): Rename to...
1634 (general_symbol_info::search_name): ...this.
1635 (symbol_matches_search_name): Update.
1636 (find_pc_sect_line): Update.
1637 (skip_prologue_sal): Update.
1638 (search_symbols): Update.
1639 (print_msymbol_info): Update.
1640 (rbreak_command): Update.
1641 (completion_list_add_msymbol): Update.
1642 (completion_list_objc_symbol): Update.
1643 (get_msymbol_address): Update.
1644 * symtab.h (struct general_symbol_info): Add member functions
1645 natural_name (), linkage_name (), print_name (), demangled_name (),
1646 and search_name ().
1647 (SYMBOL_NATURAL_NAME): Update.
1648 (symbol_natural_name): Move to a member function on general_symbol_info.
1649 (SYMBOL_DEMANGLED_NAME): Update.
1650 (symbol_demangled_name): Move to a member function on
1651 general_symbol_info.
1652 (SYMBOL_SEARCH_NAME): Update.
1653 (symbol_search_name): Move to a member function on general_symbol_info.
1654 (MSYMBOL_NATURAL_NAME): Remove.
1655 (MSYMBOL_LINKAGE_NAME): Remove.
1656 (MSYMBOL_PRINT_NAME): Remove.
1657 (MSYMBOL_DEMANGLED_NAME): Remove.
1658 (MSYMBOL_SEARCH_NAME): Remove.
1659 * x86-tdep.c (x86_in_indirect_branch_thunk): Update.
1660
f8bab2d6
CB
16612019-11-22 Christian Biesinger <cbiesinger@google.com>
1662
1663 * symtab.c (create_demangled_names_hash): Use per_bfd->
1664 minimal_symbol_count for computing the initial size, if greater
1665 than our default size.
1666
85e7588d
TV
16672019-11-22 Tom de Vries <tdevries@suse.de>
1668
1669 * contrib/words.sh: Improve words extraction.
1670
f6180073
TV
16712019-11-22 Tom de Vries <tdevries@suse.de>
1672
1673 * contrib/words.sh: Combine sed invocations.
1674
f10ffa41
CB
16752019-11-21 Christian Biesinger <cbiesinger@google.com>
1676
1677 * Makefile.in: Update.
1678 * demangle.c: Rename to...
1679 * gdb-demangle.c: ..this.
1680 (is_cplus_marker): Change return type to bool.
1681 (_initialize_demangler): Rename to...
1682 (_initialize_gdb_demangle): ...this.
1683 * gdb-demangle.h (is_cplus_marker): Change return type to bool.
1684 * symtab.h (demangle): Remove declaration; instead include
1685 gdb-demangle.h.
1686
6ba18521
TT
16872019-11-21 Tom Tromey <tromey@adacore.com>
1688
1689 * gdbsupport/format.c (format_pieces): Parse %I64d.
1690 * unittests/format_pieces-selftests.c (test_windows_formats): New
1691 function.
1692 (run_tests): Call it.
1693
34877895
PJ
16942019-11-21 Peeter Joot <peeter.joot@lzlabs.com>
1695
1696 Byte reverse display of variables with DW_END_big, DW_END_little
1697 (DW_AT_endianity) dwarf attributes if different than the native
1698 byte order.
1699 * ada-lang.c (ada_value_binop):
1700 Use type_byte_order instead of gdbarch_byte_order.
1701 * ada-valprint.c (printstr):
1702 (ada_val_print_string):
1703 * ada-lang.c (value_pointer):
1704 (ada_value_binop):
1705 Use type_byte_order instead of gdbarch_byte_order.
1706 * c-lang.c (c_get_string):
1707 Use type_byte_order instead of gdbarch_byte_order.
1708 * c-valprint.c (c_val_print_array):
1709 Use type_byte_order instead of gdbarch_byte_order.
1710 * cp-valprint.c (cp_print_class_member):
1711 Use type_byte_order instead of gdbarch_byte_order.
1712 * dwarf2loc.c (rw_pieced_value):
1713 Use type_byte_order instead of gdbarch_byte_order.
1714 * dwarf2read.c (read_base_type): Handle DW_END_big,
1715 DW_END_little
1716 * f-lang.c (f_get_encoding):
1717 Use type_byte_order instead of gdbarch_byte_order.
1718 * findvar.c (default_read_var_value):
1719 Use type_byte_order instead of gdbarch_byte_order.
1720 * gdbtypes.c (check_types_equal):
1721 Require matching TYPE_ENDIANITY_NOT_DEFAULT if set.
1722 (recursive_dump_type): Print TYPE_ENDIANITY_BIG,
1723 and TYPE_ENDIANITY_LITTLE if set.
1724 (type_byte_order): new function.
1725 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): New macro.
1726 (struct main_type) <flag_endianity_not_default>:
1727 New field.
1728 (type_byte_order): New function.
1729 * infcmd.c (default_print_one_register_info):
1730 Use type_byte_order instead of gdbarch_byte_order.
1731 * p-lang.c (pascal_printstr):
1732 Use type_byte_order instead of gdbarch_byte_order.
1733 * p-valprint.c (pascal_val_print):
1734 Use type_byte_order instead of gdbarch_byte_order.
1735 * printcmd.c (print_scalar_formatted):
1736 Use type_byte_order instead of gdbarch_byte_order.
1737 * solib-darwin.c (darwin_current_sos):
1738 Use type_byte_order instead of gdbarch_byte_order.
1739 * solib-svr4.c (solib_svr4_r_ldsomap):
1740 Use type_byte_order instead of gdbarch_byte_order.
1741 * stap-probe.c (stap_modify_semaphore):
1742 Use type_byte_order instead of gdbarch_byte_order.
1743 * target-float.c (target_float_same_format_p):
1744 Use type_byte_order instead of gdbarch_byte_order.
1745 * valarith.c (scalar_binop):
1746 (value_bit_index):
1747 Use type_byte_order instead of gdbarch_byte_order.
1748 * valops.c (value_cast):
1749 Use type_byte_order instead of gdbarch_byte_order.
1750 * valprint.c (generic_emit_char):
1751 (generic_printstr):
1752 (val_print_string):
1753 Use type_byte_order instead of gdbarch_byte_order.
1754 * value.c (unpack_long):
1755 (unpack_bits_as_long):
1756 (unpack_value_bitfield):
1757 (modify_field):
1758 (pack_long):
1759 (pack_unsigned_long):
1760 Use type_byte_order instead of gdbarch_byte_order.
1761 * findvar.c (unsigned_pointer_to_address):
1762 (signed_pointer_to_address):
1763 (unsigned_address_to_pointer):
1764 (address_to_signed_pointer):
1765 (default_read_var_value):
1766 (default_value_from_register):
1767 Use type_byte_order instead of gdbarch_byte_order.
1768 * gnu-v3-abi.c (gnuv3_make_method_ptr):
1769 Use type_byte_order instead of gdbarch_byte_order.
1770 * riscv-tdep.c (riscv_print_one_register_info):
1771 Use type_byte_order instead of gdbarch_byte_order.
1772
87fb00ea
SM
17732019-11-21 Simon Marchi <simon.marchi@polymtl.ca>
1774
1775 * top.c (current_ui_gdb_stdout_ptr): Spell out by hand.
1776 (current_ui_gdb_stdin_ptr): Likewise.
1777 (current_ui_gdb_stderr_ptr): Likewise.
1778 (current_ui_gdb_stdlog_ptr): Likewise.
1779 (current_ui_current_uiout_ptr): Likewise.
1780 (gen_ret_current_ui_field_ptr): Remove.
1781
65d1cd5f
TV
17822019-11-21 Tom de Vries <tdevries@suse.de>
1783
1784 PR gdb/24956
1785 * cli/cli-script.c (execute_control_command): Only switch to
1786 INTERP_CONSOLE's ui_out when INTERP_MI is active.
1787
9f6ad286
TT
17882019-11-19 Tom Tromey <tom@tromey.com>
1789
1790 * tui/tui-win.c (tui_partial_win_by_name): Move from tui-data.c.
1791 Now static. Change type of "name".
1792 (tui_set_win_height_command): Don't copy "arg".
1793 * tui/tui-data.h (tui_partial_win_by_name): Don't declare.
1794 * tui/tui-data.c (tui_partial_win_by_name): Move to tui-win.c.
1795
435d3d88
AT
17962019-11-19 Ali Tamur <tamur@google.com>
1797
1798 * dwarf2read.c (dw2_get_file_names_reader): Replace "if (attr)" with
1799 "if (attr != nullptr)".
1800 (dwarf2_find_base_address): Likewise.
1801 (dwarf2_build_include_psymtabs): Likewise.
1802 (read_cutu_die_from_dwo): Likewise.
1803 (read_func_scope): Likewise.
1804 (read_call_site_scope): Likewise.
1805 (dwarf2_get_pc_bounds): Likewise.
1806 (dwarf2_record_block_ranges): Likewise.
1807 (dwarf2_add_field): Likewise.
1808 (dwarf2_add_member_fn): Likewise.
1809 (read_structure_type): Likewise.
1810 (read_enumeration_type): Likewise.
1811 (read_array_type): Likewise.
1812 (read_array_order): Likewise.
1813 (read_set_type): Likewise.
1814 (read_common_block): Likewise.
1815 (read_tag_reference_type): Likewise.
1816 (read_tag_string_type): Likewise.
1817 (read_subroutine_type): Likewise.
1818 (read_base_type): Likewise.
1819 (read_subrange_type): Likewise.
1820 (new_symbol): Likewise.
1821 (prepare_one_comp_unit): Likewise.
1822
c9739b6a
TT
18232019-11-19 Tom Tromey <tromey@adacore.com>
1824
1825 * windows-nat.c (windows_nat_target::attach): Include GetLastError
1826 result in error when DebugActiveProcess fails.
1827
494409bb
SDJ
18282019-11-18 Sergio Durigan Junior <sergiodj@redhat.com>
1829 Pedro Alves <palves@redhat.com>
1830
1831 https://bugzilla.redhat.com/show_bug.cgi?id=1765117
1832 * target.c (target_stack::push): Call 'unpush' if there's a
1833 target on top of the stack.
1834
2e953aca
PW
18352019-11-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1836
1837 * python/py-block.c (blpy_dealloc): Call tp_free.
1838 (blpy_block_syms_dealloc): Likewise.
1839 * python/py-finishbreakpoint.c (bpfinishpy_dealloc): Likewise.
1840 * python/py-inferior.c (infpy_dealloc): Likewise.
1841 * python/py-lazy-string.c (stpy_dealloc): Likewise.
1842 * python/py-linetable.c (ltpy_iterator_dealloc): Likewise.
1843 * python/py-symbol.c (sympy_dealloc): Likewise.
1844 * python/py-symtab.c (stpy_dealloc): Likewise.
1845 * python/py-type.c (typy_iterator_dealloc): Likewise.
1846
6edc43ec
CB
18472019-11-18 Christian Biesinger <cbiesinger@google.com>
1848
1849 * symtab.h (struct symbol) <owner>: Initialize explicitly in the
1850 constructor instead of using a class initializer.
1851
cd850b40
CB
18522019-11-15 Christian Biesinger <cbiesinger@google.com>
1853
1854 * Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
1855 * configure: Regenerate.
1856 * configure.ac: Don't source common.host.
1857 * gdbsupport/common.host: Remove.
1858 * gdbsupport/mingw-strerror.c: Remove.
1859 * gdbsupport/posix-strerror.c: Rename to...
1860 * gdbsupport/safe-strerror.c: ...this.
1861
53fea9c7
CB
18622019-11-15 Christian Biesinger <cbiesinger@google.com>
1863
1864 * maint.c (scoped_command_stats::print_time): Use localtime_r
1865 instead of localtime (provided through gnulib if necessary).
1866 * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
1867 of ctime.
1868
f8e27d88
CB
18692019-11-15 Christian Biesinger <cbiesinger@google.com>
1870
1871 * gdbsupport/common-defs.h: Include time.h before pathmax.h to
1872 avoid compile errors.
1873
5abebf3c
CB
18742019-11-15 Christian Biesinger <cbiesinger@google.com>
1875
1876 * config.in: Regenerate.
1877 * configure: Regenerate.
1878 * gdbsupport/common.m4: No longer check for strerror_r.
1879 * gdbsupport/posix-strerror.c (safe_strerror): Always call the
1880 POSIX version of strerror_r, now that gnulib provides it if
1881 necessary.
1882
9a351667
CB
18832019-11-14 Christian Biesinger <cbiesinger@google.com>
1884
1885 * README (`configure' options): Update.
1886
55708e99
TT
18872019-11-14 Tom Tromey <tromey@adacore.com>
1888
1889 * eval.c (evaluate_subexp_standard) <BINOP_ASSIGN>: Do not pass an
1890 expected type for the RHS if the LHS is a convenience variable.
1891
4b09bb2e
SM
18922019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
1893
1894 * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
1895 Provide explicit default and copy constructor.
1896
bd454f8b
PW
18972019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1898
1899 * python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
1900 only call Py_INCREF (newbp) in the bppy_pending_object case.
1901
d1aa3cf0
TT
19022019-11-13 Tom Tromey <tromey@adacore.com>
1903
1904 PR build/25182:
1905 * psympriv.h (partial_symbol): Remove static assert.
1906 * symtab.h (general_symbol_info, symbol): Remove static assert.
1907
e06f3d6e
AB
19082019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1909
1910 * gdbsupport/format.c (format_pieces::format_pieces): Support
1911 printf 'z' size modifier.
1912 * gdbsupport/format.h (enum argclass): Add size_t_arg.
1913 * printcmd.c (ui_printf): Handle size_t_arg.
1914 * ui-out.c (ui_out::vmessage): Likewise.
1915 * unittests/format_pieces-selftests.c (test_format_int_sizes): New
1916 function.
1917 (run_tests): Call test_format_int_sizes.
1918
468c0cbb
CB
19192019-11-12 Christian Biesinger <cbiesinger@google.com>
1920
1921 * ada-exp.y (write_ambiguous_var): Update.
1922 * buildsym.c (add_symbol_to_list): Update.
1923 * dwarf2read.c (read_variable): Update.
1924 (new_symbol): Update.
1925 * jit.c (finalize_symtab): Update.
1926 * language.c (language_alloc_type_symbol): Update.
1927 * symtab.c (fixup_symbol_section): Update.
1928 (initialize_objfile_symbol_1): Move code to...
1929 (initialize_objfile_symbol): ...here. Remove now-unnecessary memset.
1930 (allocate_symbol): Update.
1931 (allocate_template_symbol): Update.
1932 (get_symbol_address): Update.
1933 * symtab.h (struct symbol): Inherit from general_symbol_info instead
1934 of having as a field, and add a constructor.
1935 (SYMBOL_VALUE): Update.
1936 (SYMBOL_VALUE_ADDRESS): Update.
1937 (SET_SYMBOL_VALUE_ADDRESS): Update.
1938 (SYMBOL_VALUE_BYTES): Update.
1939 (SYMBOL_VALUE_COMMON_BLOCK): Update.
1940 (SYMBOL_BLOCK_VALUE): Update.
1941 (SYMBOL_VALUE_CHAIN): Update.
1942 (SYMBOL_LANGUAGE): Update.
1943 (SYMBOL_SECTION): Update.
1944 (SYMBOL_OBJ_SECTION): Update.
1945 (SYMBOL_SET_LANGUAGE): Update.
1946 (SYMBOL_SET_LINKAGE_NAME): Update.
1947 (SYMBOL_SET_NAMES): Update.
1948 (SYMBOL_NATURAL_NAME): Update.
1949 (SYMBOL_LINKAGE_NAME): Update.
1950 (SYMBOL_DEMANGLED_NAME): Update.
1951 (SYMBOL_SEARCH_NAME): Update.
1952 (SYMBOL_MATCHES_SEARCH_NAME): Update.
1953 (struct symbol): Update.
1954 (struct template_symbol): Update.
1955 (struct rust_vtable_symbol): Update.
1956 * xcoffread.c (SYMBOL_DUP): Update.
1957
ed2c82c3
TT
19582019-11-12 Tom Tromey <tom@tromey.com>
1959
1960 * tui/tui-layout.c (show_layout): Set current_layout.
1961 (show_source_disasm_command, show_data)
1962 (show_source_or_disasm_and_command): Don't set current_layout.
1963
d9fcefd5
TT
19642019-11-12 Tom Tromey <tom@tromey.com>
1965
1966 * tui/tui-layout.c (_initialize_tui_layout): Move to end.
1967
45e42163
TT
19682019-11-12 Tom Tromey <tom@tromey.com>
1969
1970 * tui/tui-win.c (resize_message): New global.
1971 (show_tui_resize_message): New function.
1972 (tui_async_resize_screen): Print message if requested.
1973 (_initialize_tui_win): Add tui-resize-message setting.
1974 * NEWS: Add entry for new commands.
1975
c86d74cc
TT
19762019-11-11 Tom Tromey <tom@tromey.com>
1977
1978 * tui/tui.c (tui_initialize_readline): Add new bindable readline
1979 functions.
1980
7b7b9424
CB
19812019-11-11 Christian Biesinger <cbiesinger@google.com>
1982
1983 * nat/linux-osdata.c (user_from_uid): Use getpwuid_r.
1984
086baaf1
AB
19852019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1986
1987 * python/py-symbol.c (gdbpy_lookup_static_symbols): New
1988 function.
1989 * python/python-internal.h (gdbpy_lookup_static_symbols):
1990 Declare new function.
1991 * python/python.c (python_GdbMethods): Add
1992 gdb.lookup_static_symbols method.
1993 * NEWS: Mention gdb.lookup_static_symbols.
1994
09ff83af
AB
19952019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
1996
1997 * python/py-symbol.c (gdbpy_lookup_static_symbol): Lookup in
1998 static block of current object file first. Also fix typo in
1999 header comment.
2000
eb2dd8df
AB
20012019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2002
2003 * stack.c (set_last_displayed_sal): Delete.
2004 (last_displayed_sal_valid): Delete.
2005 (last_displayed_pspace): Delete.
2006 (last_displayed_addr): Delete.
2007 (last_displayed_symtab): Delete.
2008 (last_displayed_line): Delete.
2009 (class last_displayed_symtab_info_type): New.
2010 (last_displayed_symtab_info): New static global variable.
2011 (print_frame_info): Call methods on last_displayed_symtab_info.
2012 (clear_last_displayed_sal): Update header comment, and make use of
2013 last_displayed_symtab_info.
2014 (last_displayed_sal_is_valid): Likewise.
2015 (get_last_displayed_pspace): Likewise.
2016 (get_last_displayed_addr): Likewise.
2017 (get_last_displayed_symtab): Likewise.
2018 (get_last_displayed_line): Likewise.
2019 (get_last_displayed_sal): Likewise.
2020 * stack.h (clear_last_displayed_sal): Update header comment.
2021 (last_displayed_sal_is_valid): Likewise.
2022 (get_last_displayed_pspace): Likewise.
2023 (get_last_displayed_addr): Likewise.
2024 (get_last_displayed_symtab): Likewise.
2025 (get_last_displayed_line): Likewise.
2026 (get_last_displayed_sal): Likewise.
2027
62137775
AB
20282019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2029
2030 * stack.c (frame_show_address): Convert return type to bool.
2031 * stack.h (frame_show_address): Likewise, and update header
2032 comment.
2033
cf57ad6d
AB
20342019-11-10 Andrew Burgess <andrew.burgess@embecosm.com>
2035
2036 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new file to the list.
2037 * unittests/vec-utils-selftests.c: New file.
2038 * gdbsupport/gdb_vecs.h (unordered_remove): Avoid self move assign.
2039
0b026263
TT
20402019-11-10 Tom Tromey <tom@tromey.com>
2041
2042 * tui/tui-wingeneral.c (tui_unhighlight_win): Use can_box.
2043 (tui_highlight_win): Likewise.
2044 (tui_win_info::check_and_display_highlight_if_needed): Likewise.
2045 * tui/tui-data.h (struct tui_win_info) <can_highlight>: Remove.
2046 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
2047 Don't set can_highlight.
2048
b049ce2d
TT
20492019-11-10 Tom Tromey <tom@tromey.com>
2050
2051 * cli/cli-style.h (class cli_style_option) <cli_style_option>:
2052 Remove unused declaration.
2053
992a7040
TT
20542019-11-08 Tom Tromey <tromey@adacore.com>
2055
2056 * top.c (read_command_file): Update.
2057 (command_line_input): Make return type const.
2058 * python/py-gdb-readline.c: Update.
2059 * linespec.c (decode_line_2): Update.
2060 * defs.h (command_line_input): Make return type const.
2061 * cli/cli-script.c (read_next_line): Make return type const.
2062 * ada-lang.c (get_selections): Update.
2063
ca3a04f6
CB
20642019-11-06 Christian Biesinger <cbiesinger@google.com>
2065
2066 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2067 * mi/mi-main.c (output_cores): Likewise.
2068 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2069 (linux_xfer_osdata_modules): Likewise.
2070 * remote.c (register_remote_support_xml): Likewise.
2071 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2072 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2073
e0eac551
TT
20742019-11-06 Tom Tromey <tom@tromey.com>
2075
2076 * tui/tui-interp.c: Don't include readline.h.
2077 * tui/tui-hooks.c: Don't include readline.h.
2078 * symmisc.c: Include tilde.h, not readline.h.
2079 * symfile.c: Include tilde.h, not readline.h.
2080 * source.c: Include tilde.h, not readline.h.
2081 * solib.c: Include tilde.h, not readline.h.
2082 * psymtab.c: Include tilde.h, not readline.h.
2083 * exec.c: Include tilde.h, not readline.h.
2084 * corelow.c: Include tilde.h, not readline.h.
2085 * cli/cli-dump.c: Include tilde.h, not readline.h.
2086 * cli/cli-cmds.c: Don't include readline.h.
2087
825165c5
TT
20882019-11-05 Tom Tromey <tom@tromey.com>
2089
2090 * tui/tui-disasm.c (struct tui_asm_line) <addr_size>: New member.
2091 (tui_disassemble): Set addr_size.
2092 (tui_disasm_window::set_contents): Use addr_size.
2093
91ae903f
TT
20942019-11-05 Tom Tromey <tom@tromey.com>
2095
2096 * rust-lang.c (rust_language_defn): Update.
2097 * python/py-value.c (valpy_string): Call c_get_string.
2098 * p-lang.c (pascal_language_defn): Update.
2099 * opencl-lang.c (opencl_language_defn): Update.
2100 * objc-lang.c (objc_language_defn): Update.
2101 * m2-lang.c (m2_language_defn): Update.
2102 * language.c (unknown_language_defn, auto_language_defn): Update.
2103 (default_get_string): Remove.
2104 * guile/scm-value.c (gdbscm_value_to_string): Use c_get_string.
2105 * go-lang.c (go_language_defn): Update.
2106 * f-lang.c (f_language_defn): Update.
2107 * d-lang.c (d_language_defn): Update.
2108 * c-lang.c (c_language_defn, cplus_language_defn)
2109 (asm_language_defn, minimal_language_defn): Update.
2110 * ada-lang.c (ada_language_defn): Update.
2111 * language.h (struct language_defn) <la_get_string>: Remove.
2112 (LA_GET_STRING): Remove.
2113 (default_get_string): Don't declare.
2114
1df2f9ef
TT
21152019-11-05 Tom Tromey <tom@tromey.com>
2116
2117 * tui/tui-source.h (struct tui_source_window): Inline
2118 constructor. Remove destructor.
2119 <style_changed, m_observable>: Move to superclass.
2120 * tui/tui-winsource.h (tui_copy_source_line): Declare.
2121 (struct tui_source_window_base): Move private members to end.
2122 <style_changed, m_observable>: Move from tui_source_window.
2123 * tui/tui-winsource.c (tui_copy_source_line): Move from
2124 tui-source.c. Rename from copy_source_line. Add special handling
2125 for negative line number.
2126 (tui_source_window_base::style_changed): Move from
2127 tui_source_window.
2128 (tui_source_window_base): Register observer.
2129 (~tui_source_window_base): New.
2130 * tui/tui-source.c (copy_source_line): Move to tui-winsource.c;
2131 rename.
2132 (tui_source_window::set_contents): Use tui_copy_source_line.
2133 (tui_source_window::tui_source_window): Move to tui-source.h.
2134 (tui_source_window::~tui_source_window): Remove.
2135 (tui_source_window::style_changed): Move to superclass.
2136 * tui/tui-disasm.c (tui_disassemble): Create string file with
2137 styling, when possible. Add "addr_size" parameter.
2138 (tui_disasm_window::set_contents): Use tui_copy_source_line.
2139 Don't compute maximum size.
2140 (len_without_escapes): New function
2141
5d051055
TT
21422019-11-05 Tom Tromey <tom@tromey.com>
2143
2144 * tui/tui-winsource.h (struct tui_source_element) <line>: Now a
2145 std::string.
2146 * tui/tui-winsource.c (tui_show_source_line): Update.
2147 * tui/tui-source.c (tui_source_window::set_contents): Update.
2148 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2149
ade7beea
CB
21502019-11-05 Christian Biesinger <cbiesinger@google.com>
2151
2152 * symtab.h (gdb_static_assert): Put && operator at the beginning
2153 of the line instead of the end.
2154
3573abe1
CB
21552019-11-04 Christian Biesinger <cbiesinger@google.com>
2156
2157 * psympriv.h: Add static_asserts for sizeof (general_symbol_info)
2158 and sizeof (symbol).
2159 * symtab.h: Add a static_assert for sizeof (partial_symbol).
2160
dae8b3eb
RO
21612019-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2162
2163 * NEWS (Changes since GDB 8.3): Document Solaris 10 removal.
2164 * configure.host: Mark *-*-solaris2.10* obsolete.
2165 * configure.tgt: Mark Solaris < 11 obsolete.
2166 * MAINTAINERS (Target Instruction Set Architectures) <sparc>:
2167 Update target triplet.
2168
5df96a4e
TT
21692019-11-01 Tom Tromey <tromey@adacore.com>
2170
2171 * utils.c (print_sys_errmsg): Simplify.
2172
b7481649
TT
21732019-11-01 Tom Tromey <tromey@adacore.com>
2174
2175 * gdbsupport/mingw-strerror.c (safe_strerror): Constify result.
2176
e48f6033
CB
21772019-11-01 Christian Biesinger <cbiesinger@google.com>
2178
2179 * configure: Regenerate.
2180 * configure.ac: Remove check for strerror_r.
2181 * gdbsupport/common.m4: Check for strerror_r.
2182
bd5766ec
LM
21832019-11-01 Luis Machado <luis.machado@linaro.org>
2184
2185 PR gdb/25124
2186
2187 * arm-tdep.c (arm_per_objfile): Rename to ...
2188 (arm_per_bfd): ... this.
2189 (arm_objfile_data_key): Rename to ...
2190 (arm_bfd_data_key): ... this.
2191 (arm_find_mapping_symbol): Adjust access to new bfd_key-based
2192 data.
2193 (arm_record_special_symbol): Likewise.
2194
e1709896
AB
21952019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2196
2197 * ada-typeprint.c (ada_print_typedef): Don't print newline at the
2198 end.
2199 * c-typeprint.c (c_print_typedef): Likewise.
2200 * f-typeprint.c (f_print_typedef): Likewise.
2201 * m2-typeprint.c (m2_print_typedef): Likewise.
2202 * p-typeprint.c (pascal_print_typedef): Likewise.
2203 * rust-lang.c (rust_print_typedef): Likewise.
2204 * symtab.c (print_symbol_info): Print a newline after calling
2205 typedef_print.
2206
165f8965
AB
22072019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2208
2209 * symtab.c (info_module_cmdlist): New variable.
2210 (info_module_command): New function.
2211 (search_module_symbols): New function.
2212 (info_module_subcommand): New function.
2213 (struct info_modules_var_func_options): New struct.
2214 (info_modules_var_func_options_defs): New variable.
2215 (make_info_modules_var_func_options_def_group): New function.
2216 (info_module_functions_command): New function.
2217 (info_module_variables_command): New function.
2218 (info_module_var_func_command_completer): New function.
2219 (_initialize_symtab): Register new 'info module functions' and
2220 'info module variables' commands.
2221 * symtab.h (typedef symbol_search_in_module): New typedef.
2222 (search_module_symbols): Declare new function.
2223 * NEWS: Mention new commands.
2224
59c35742
AB
22252019-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
2226
2227 * dwarf2read.c (dw2_symtab_iter_next): Handle MODULE_DOMAIN.
2228 (dw2_expand_marked_cus): Handle MODULES_DOMAIN.
2229 (dw2_debug_names_iterator::next): Handle MODULE_DOMAIN and
2230 MODULES_DOMAIN.
2231 (scan_partial_symbols): Only create partial module symbols for non
2232 declarations.
2233 * psymtab.c (recursively_search_psymtabs): Handle MODULE_DOMAIN
2234 and MODULES_DOMAIN.
2235 * symtab.c (search_domain_name): Likewise.
2236 (search_symbols): Likewise.
2237 (print_symbol_info): Likewise.
2238 (symtab_symbol_info): Likewise.
2239 (info_modules_command): New function.
2240 (_initialize_symtab): Register 'info modules' command.
2241 * symtab.h (enum search_domain): Add MODULES_DOMAIN.
2242 * NEWS: Mention new 'info modules' command.
2243
aed61d02
PW
22442019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2245
2246 * NEWS: Mention $_gdb_setting, $_gdb_setting_str, $_gdb_maint_setting
2247 and $_gdb_maint_setting_str.
2248
9ad9b77d
PW
22492019-10-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2250
2251 * cli/cli-cmds.c (setting_cmd, value_from_setting)
2252 (gdb_setting_internal_fn, gdb_maint_setting_internal_fn)
2253 (str_value_from_setting, gdb_setting_str_internal_fn)
2254 (gdb_maint_setting_str_internal_fn): New functions.
2255 (_initialize_cli_cmds): Define the new convenience functions.
2256 * gdb/cli/cli-setshow.h (get_setshow_command_value_string): Constify.
2257 * gdb/cli/cli-setshow.c (get_setshow_command_value_string): Constify.
2258
8d6efaa2
CB
22592019-10-31 Christian Biesinger <cbiesinger@google.com>
2260
2261 * agent.c (set_can_use_agent): When the setting is turned on,
2262 look up agent symbols if we don't have them yet.
2263 (agent_new_objfile): Don't look up agent symbols when the agent
2264 setting is off.
2265
33cb1647
CB
22662019-10-31 Christian Biesinger <cbiesinger@google.com>
2267
2268 * config.in: Regenerate.
2269
b231e86a
CB
22702019-10-31 Christian Biesinger <cbiesinger@google.com>
2271
2272 * configure: Regenerate.
2273 * configure.ac: Check for strerror_r.
2274 * gdbsupport/common-utils.h (safe_strerror): Change return value
2275 to const char * and document that this function is now threadsafe.
2276 * gdbsupport/posix-strerror.c (safe_strerror): Make buf
2277 thread_local and call strerror_r, if available.
2278 * utils.c (perror_string): Update.
2279 (print_sys_errmsg): Update.
2280
a2726d4f
LM
22812019-10-31 Luis Machado <luis.machado@linaro.org>
2282
2283 * arm-tdep.c (arm_exidx_data_key): Use bfd_key instead of
2284 objfile_key.
2285 (arm_exidx_new_objfile): Adjust to use objfile->obfd instead of
2286 objfile to fetch per-bfd data.
2287 (arm_find_exidx_entry): Likewise.
2288
75cafaa6
CB
22892019-10-31 Christian Biesinger <cbiesinger@google.com>
2290
2291 * gdbsupport/agent.c (debug_agent): Change type to bool.
2292 (use_agent): Likewise.
2293 (all_agent_symbols_look_up): Likewise.
2294 (agent_loaded_p): Change return value to bool.
2295 (agent_look_up_symbols): Update.
2296 (agent_capability_check): Change return value to bool.
2297 * gdbsupport/agent.h (agent_loaded_p): Likewise.
2298 (debug_agent): Change type to bool.
2299 (use_agent): Likewise.
2300 (agent_capability_check): Change return value to bool.
2301
808590ec
CB
23022019-10-30 Christian Biesinger <cbiesinger@google.com>
2303
2304 * minsyms.c (clear_minimal_symbol_hash_tables): New function.
2305 (build_minimal_symbol_hash_tables): Code to clear the table moved
2306 to clear_minimal_symbol_hash_tables.
2307 (minimal_symbol_reader::install): Call clear_minimal_symbol_hash_tables
2308 when needed.
2309
f18ad8a1
SM
23102019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2311
2312 * infcmd.c: Remove includes.
2313 * infrun.c: Remove includes.
2314
de93309a
SM
23152019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2316
2317 * ada-lang.h (GROW_VECT): Move to ada-lang.c.
2318 (grow_vect): Remove declaration.
2319 (ada_type_of_array): Remove declaration.
2320 (ada_update_initial_language): Remove declaration.
2321 (ada_fold_name): Remove declaration.
2322 (ada_fill_in_ada_prototype): Remove declaration.
2323 (user_select_syms): Remove declaration.
2324 (get_selections): Remove declaration.
2325 (ada_tag_type): Remove declaration.
2326 (ada_value_tag): Remove declaration.
2327 (ada_is_others_clause): Remove declaration.
2328 (ada_in_variant): Remove declaration.
2329 (ada_value_struct_elt): Remove declaration.
2330 (ada_attribute_name): Remove declaration.
2331 (ada_system_address_type): Remove declaration.
2332 * ada-lang.c (ada_watch_location_expression): Make static.
2333 (GROW_VECT): Move here from ada-lang.h.
2334 (grow_vect): Make static.
2335 (ada_update_initial_language): Make static.
2336 (ada_fold_name): Make static.
2337 (ada_type_of_array): Make static.
2338 (encoded_ordered_before): Move up.
2339 (sort_choices): Move up.
2340 (print_signatures): Move up.
2341 (ada_print_symbol_signature): Move up.
2342 (get_selections): Move up and make static.
2343 (user_select_syms): Move up and make static.
2344 (ada_value_struct_elt): Move up and make static.
2345 (ada_tag_type): Make static.
2346 (ada_value_tag): Make static.
2347 (ada_is_others_clause): Make static.
2348 (ada_in_variant): Make static.
2349 (ada_attribute_name): Make static.
2350
cdc46a9f
SM
23512019-10-29 Simon Marchi <simon.marchi@polymtl.ca>
2352
2353 * ada-lang.c: Remove includes.
2354 * ada-typeprint.c: Remove includes.
2355 * ada-valprint.c: Remove includes.
2356
90421c56
SM
23572019-10-29 Simon Marchi <simon.marchi@efficios.com>
2358
2359 * addrmap.c: Add static assertions of type size, moved from
2360 _initialize_addrmap.
2361 (_initialize_addrmap): Remove.
2362
31edb802
CB
23632019-10-29 Christian Biesinger <cbiesinger@google.com>
2364
2365 * coffread.c (record_minimal_symbol): Update.
2366 (process_coff_symbol): Update.
2367 * dbxread.c (read_dbx_symtab): Update.
2368 * dwarf2read.c (add_partial_symbol): Update.
2369 (fixup_go_packaging): Update.
2370 (load_partial_dies): Update.
2371 (new_symbol): Update.
2372 * elfread.c (record_minimal_symbol): Change signature to use
2373 gdb::string_view instead of name+len.
2374 (elf_symtab_read): Update.
2375 (elf_rel_plt_read): Update.
2376 * mdebugread.c (parse_partial_symbols): Update.
2377 (handle_psymbol_enumerators): Update.
2378 (new_symbol): Update.
2379 * minsyms.c (minimal_symbol_reader::record_full): Change signature
2380 to use gdb::string_view instead of name+len.
2381 * minsyms.h (class minimal_symbol_reader) <record_full>: Likewise.
2382 * psympriv.h (add_psymbol_to_list): Likewise.
2383 * psymtab.c (add_psymbol_to_bcache): Likewise.
2384 (add_psymbol_to_list): Likewise.
2385 * stabsread.c (define_symbol): Update.
2386 * symtab.c (symbol_set_names): Change signature to use gdb::string_view.
2387 * symtab.h (SYMBOL_SET_NAMES): Likewise.
2388 (symbol_set_names): Likewise.
2389 * xcoffread.c (scan_xcoff_symtab): Update.
2390
0c921b21
CB
23912019-10-29 Christian Biesinger <cbiesinger@google.com>
2392
2393 * symtab.h (symbol_set_names): Document that copy_name must be
2394 set to true for non-nullterminated strings.
2395 * symtab.c (symbol_set_names): Only make a nullterminated copy of
2396 linkage_name if the entry was not found and we need to demangle.
2397
35e65c49
CB
23982019-10-29 Christian Biesinger <cbiesinger@google.com>
2399
2400 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
2401 * dwarf2-frame.c (bsearch_fde_cmp): Update.
2402 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
2403 * gdbsupport/gdb_binary_search.h: New file.
2404
ed2a2229
CB
24052019-10-29 Christian Biesinger <cbiesinger@google.com>
2406
2407 * NEWS: Mention new --with-system-gdbinit-dir option.
2408 * config.in: Regenerate.
2409 * configure: Regenerate.
2410 * configure.ac: Add new option --with-system-gdbinit-dir.
2411 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
2412 for a ".gdb" suffix.
2413 * main.c (get_init_files): Change system_gdbinit argument to
2414 a vector and return the files in SYSTEM_GDBINIT_DIR in
2415 addition to SYSTEM_GDBINIT.
2416 (captured_main_1): Update.
2417 (print_gdb_help): Update.
2418 * top.c (print_gdb_configuration): Also print the value of
2419 SYSTEM_GDBINIT_DIR.
2420
87f34879
CB
24212019-10-28 Christian Biesinger <cbiesinger@google.com>
2422
2423 * gdbsupport/common-utils.h (startswith): Add an overloaded version
2424 that takes gdb::string_view arguments.
2425
30baf67b
TV
24262019-10-26 Tom de Vries <tdevries@suse.de>
2427
2428 * aarch64-linux-tdep.c: Fix typos in comments.
2429 * aarch64-tdep.c: Same.
2430 * ada-lang.c: Same.
2431 * amd64-nat.c: Same.
2432 * arc-tdep.c: Same.
2433 * arch/aarch64-insn.c: Same.
2434 * block.c: Same.
2435 * breakpoint.h: Same.
2436 * btrace.h: Same.
2437 * c-varobj.c: Same.
2438 * cli/cli-decode.c: Same.
2439 * cli/cli-script.c: Same.
2440 * cli/cli-utils.h: Same.
2441 * coff-pe-read.c: Same.
2442 * coffread.c: Same.
2443 * compile/compile-cplus-symbols.c: Same.
2444 * compile/compile-object-run.c: Same.
2445 * completer.c: Same.
2446 * corelow.c: Same.
2447 * cp-support.c: Same.
2448 * demangle.c: Same.
2449 * dwarf-index-write.c: Same.
2450 * dwarf2-frame.c: Same.
2451 * dwarf2-frame.h: Same.
2452 * eval.c: Same.
2453 * frame-base.h: Same.
2454 * frame.h: Same.
2455 * gdbcmd.h: Same.
2456 * gdbtypes.h: Same.
2457 * gnu-nat.c: Same.
2458 * guile/scm-objfile.c: Same.
2459 * i386-tdep.c: Same.
2460 * i386-tdep.h: Same.
2461 * infcall.c: Same.
2462 * infcall.h: Same.
2463 * linux-nat.c: Same.
2464 * m68k-tdep.c: Same.
2465 * macroexp.c: Same.
2466 * memattr.c: Same.
2467 * mi/mi-cmd-disas.c: Same.
2468 * mi/mi-getopt.h: Same.
2469 * mi/mi-main.c: Same.
2470 * minsyms.c: Same.
2471 * nat/aarch64-sve-linux-sigcontext.h: Same.
2472 * objfiles.h: Same.
2473 * ppc-linux-nat.c: Same.
2474 * ppc-linux-tdep.c: Same.
2475 * ppc-tdep.h: Same.
2476 * progspace.h: Same.
2477 * prologue-value.h: Same.
2478 * python/py-evtregistry.c: Same.
2479 * python/py-instruction.h: Same.
2480 * record-btrace.c: Same.
2481 * record-full.c: Same.
2482 * remote.c: Same.
2483 * rs6000-tdep.c: Same.
2484 * ser-tcp.c: Same.
2485 * sol-thread.c: Same.
2486 * sparc-sol2-tdep.c: Same.
2487 * sparc64-tdep.c: Same.
2488 * stabsread.c: Same.
2489 * symfile.c: Same.
2490 * symtab.h: Same.
2491 * target.c: Same.
2492 * tracepoint.c: Same.
2493 * tui/tui-data.h: Same.
2494 * tui/tui-io.c: Same.
2495 * tui/tui-win.c: Same.
2496 * tui/tui.c: Same.
2497 * unittests/rsp-low-selftests.c: Same.
2498 * user-regs.h: Same.
2499 * utils.c: Same.
2500 * utils.h: Same.
2501 * valarith.c: Same.
2502 * valops.c: Same.
2503 * valprint.c: Same.
2504 * valprint.h: Same.
2505 * value.c: Same.
2506 * value.h: Same.
2507 * varobj.c: Same.
2508 * x86-nat.h: Same.
2509 * xtensa-tdep.c: Same.
2510
1834d45f
AT
25112019-10-25 Ali Tamur <tamur@google.com>
2512
2513 * charset.c (find_charset_names): Reflect API change.
2514
5396ae17
CB
25152019-10-25 Christian Biesinger <cbiesinger@google.com>
2516
2517 * symtab.c (struct demangled_name_entry): Change demangled name
2518 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
2519 part of the struct anymore.
2520 (symbol_set_names): No longer obstack allocate + copy the demangled
2521 name, just store the allocated name from bfd.
2522
93878f47
TT
25232019-10-25 Tom Tromey <tromey@adacore.com>
2524
2525 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
2526 (bsearch_cie_cmp, add_cie): Remove.
2527 (find_cie): Reimplement.
2528 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
2529 (dwarf2_build_frame_info): Update.
2530
7b71fc97
L
25312019-10-24 H.J. Lu <hongjiu.lu@intel.com>
2532
2533 PR gdb/25126
2534 * symfile.c (reread_symbols): Call forget_cached_source_info to
2535 clear the stale source cache.
2536
cbb5a2ea
CB
25372019-10-24 Christian Biesinger <cbiesinger@google.com>
2538
2539 * configure: Regenerate.
2540 * configure.ac: Remove code that sets python_has_threads.
2541
71737c43
CB
25422019-10-24 Christian Biesinger <cbiesinger@google.com>
2543
2544 * config.in: Regenerate.
2545 * configure: Regenerate.
2546 * configure.ac: Remove the code that uses sed to get the python
2547 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
2548
33d569b7
AB
25492019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
2550
2551 * python/py-progspace.c (pspy_block_for_pc): Return None for all
2552 error paths.
2553
f16f7b7c
TT
25542019-10-23 Tom Tromey <tom@tromey.com>
2555
2556 * arc-tdep.c: Remove ".." from include.
2557 * frv-tdep.c: Remove ".." from include.
2558 * lm32-tdep.c: Remove ".." from include.
2559 * microblaze-tdep.c: Remove ".." from include.
2560 * or1k-tdep.h: Remove ".." from include.
2561 * s12z-tdep.c: Remove ".." from include.
2562 * Makefile.in (OPCODES_CFLAGS): Add comment.
2563 (TOP_CFLAGS): New variable.
2564 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
2565
6999161a
TT
25662019-10-23 Tom Tromey <tom@tromey.com>
2567
2568 * Makefile.in (READLINE_DIR): Update.
2569
12e7c35e
TBA
25702019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2571
2572 * infcall.c (call_function_by_hand_dummy): Fix the function
2573 comment. And extract out a code section into...
2574 (reserve_stack_space): ...this new function.
2575
37055cad
TBA
25762019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2577
2578 * infcall.c (value_arg_coerce): Remove an unused parameter.
2579 (call_function_by_hand_dummy): Update the call to
2580 'value_arg_coerce'.
2581
39bcc47c
TBA
25822019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2583
2584 * infcall.c (call_function_by_hand_dummy): Refactor.
2585
bd888c0f
TBA
25862019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2587
2588 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
2589
c12d372d
TT
25902019-10-23 Tom Tromey <tom@tromey.com>
2591
2592 * configure: Rebuild.
2593 * configure.ac: Don't check for sigprocmask.
2594 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
2595
4d0b984b
TT
25962019-10-23 Tom Tromey <tom@tromey.com>
2597
2598 * configure: Rebuild.
2599 * acinclude.m4: Use m4_include, not sinclude.
2600
7e785608
TV
26012019-10-23 Tom de Vries <tdevries@suse.de>
2602
2603 PR breakpoints/24687
2604 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
2605
403772ef
CB
26062019-10-22 Christian Biesinger <cbiesinger@google.com>
2607
2608 * symtab.c (struct demangled_name_entry) <language>: Change from
2609 bitfield to regular variable.
2610
3a494279
CB
26112019-10-22 Christian Biesinger <cbiesinger@google.com>
2612
2613 * symtab.c (struct demangled_name_entry): Add a constructor.
2614 (free_demangled_name_entry): New function to call the destructor
2615 for demangled_name_entry.
2616 (create_demangled_names_hash): Pass free_demangled_name_entry to
2617 htab_create_alloc.
2618 (symbol_set_names): Call placement new for demangled_name_entry.
2619 * utils.c: No longer include xxhash.h here, now that fast_hash
2620 is inlined in the header.
2621 * utils.h: Instead, include it here.
2622
ccb1ba62
CB
26232019-10-22 Christian Biesinger <cbiesinger@google.com>
2624
2625 * Makefile.in: Link with libxxhash.
2626 * config.in: Regenerate.
2627 * configure: Regenerate.
2628 * configure.ac: Search for libxxhash.
2629 * utils.c (fast_hash): Use xxhash if present.
2630
1a6ff1a9
CB
26312019-10-22 Christian Biesinger <cbiesinger@google.com>
2632
2633 * utils.h (fast_hash): New function.
2634 * symtab.c (hash_demangled_name_entry): Call new function
2635 fast_hash.
2636
7bb43059
CB
26372019-10-22 Christian Biesinger <cbiesinger@google.com>
2638
2639 * symtab.c (struct demangled_name_entry): Change type of mangled
2640 to gdb::string_view. Also adds a constructor that takes the
2641 mangled name.
2642 (hash_demangled_name_entry): Update.
2643 (eq_demangled_name_entry): Update.
2644 (free_demangled_name_entry): New function to call the destructor
2645 now that this is not a POD anymore.
2646 (create_demangled_names_hash): Pass free_demangled_name_entry to
2647 htab_create_alloc.
2648 (symbol_set_names): Update.
2649
7ba99d21
AT
26502019-10-21 Ali Tamur <tamu@google.com>
2651
2652 * dwarf2read.c (dir_index): Change type.
2653 (file_name_index): Likewise.
2654 (line_header::include_dir_at): Change comment and implementation on
2655 whether it is DWARF 5.
2656 (line_header::is_valid_file_index): New function.
2657 (line_header::file_name_at): Change comment and implementation on
2658 whether it is DWARF 5.
2659 (line_header::file_names): Change to private field renamed as
2660 m_file_names and introduce a new accessor method.
2661 (line_header::file_names_size): New method.
2662 (line_header::include_dirs): Change to private field and rename as
2663 m_include_dirs.
2664 (dw2_get_file_names_reader): Define local var at a smaller scope and
2665 reflect API change.
2666 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
2667 (process_structure_scope): Likewise.
2668 (line_header::add_include_dir): Change message and reflect renaming.
2669 (line_header::add_file_name): Likewise.
2670 (read_formatted_entries): Handle DW_FORM_data16.
2671 (dwarf_decode_line_header): Fix line header length calculation.
2672 (psymtab_include_file_name): Change comment and API.
2673 (lnp_state_machine::m_file): Update comment and reflect type change.
2674 (lnp_state_machine::record_line): Reflect type change.
2675 (dwarf_decode_lines): Reflect API change.
2676 (file_file_name): Likewise.
2677 (file_full_name): Likewise.
2678
45f47c3a
AB
26792019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
2680
2681 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
2682
e5f3c0e3
TT
26832019-10-21 Tom Tromey <tom@tromey.com>
2684
2685 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
2686
a0a461e5
TT
26872019-10-21 Tom Tromey <tom@tromey.com>
2688
2689 * configure.ac (nm.h): Conditionally create nm.h link. Subst
2690 NM_H. Use AC_CONFIG_LINKS.
2691 * configure: Rebuild.
2692 * Makefile.in (NM_H): New variable.
2693 (generated_files): Add NM_H. Remove gcore.
2694 (nm.h, stamp-nmh): New targets.
2695
54d83b8d
TT
26962019-10-20 Tom Tromey <tom@tromey.com>
2697
2698 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
2699 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
2700 obsolete comment.
2701 (put_objfile_before): Now static.
2702
23771117
SM
27032019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
2704
2705 * gdbsupport/common-utils.h (startswith): Change return type to
2706 bool.
2707
39ef2f62
CB
27082019-10-19 Christian Biesinger <cbiesinger@google.com>
2709
2710 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
2711 * breakpoint.c (bp_locations_compare): Rename to...
2712 (bp_location_is_less_than): ...this, and change to std::sort semantics.
2713 (update_global_location_list): Use std::sort instead of qsort.
2714 * buildsym.c (compare_line_numbers): Rename to...
2715 (lte_is_less_than): ...this, and change to std::sort semantics.
2716 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
2717 instead of qsort.
2718 * disasm.c (compare_lines): Rename to...
2719 (line_is_less_than): ...this, and change to std::sort semantics.
2720 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
2721 of qsort.
2722 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
2723 (fde_is_less_than): ...this, and change to std::sort semantics.
2724 (dwarf2_build_frame_info): Call std::sort instead of qsort.
2725 * mdebugread.c (compare_blocks):
2726 (block_is_less_than): ...this, and change to std::sort semantics.
2727 (sort_blocks): Call std::sort instead of qsort.
2728 * objfiles.c (qsort_cmp): Rename to...
2729 (sort_cmp): ...this, and change to std::sort semantics.
2730 (update_section_map): Call std::sort instead of qsort.
2731 * remote.c (compare_pnums): Remove.
2732 (map_regcache_remote_table): Call std::sort instead of qsort.
2733 * utils.c (compare_positive_ints): Remove.
2734 * utils.h (compare_positive_ints): Remove.
2735 * xcoffread.c (compare_lte): Remove.
2736 (arrange_linetable): Call std::sort instead of qsort.
2737
f71433ee
SDJ
27382019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
2739
2740 * symfile.c (init_entry_point_info): Fix typo.
2741 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
2742
85102364
TV
27432019-10-18 Tom de Vries <tdevries@suse.de>
2744
2745 * aarch64-tdep.c: Fix typos in comments.
2746 * ada-lang.c: Same.
2747 * ada-tasks.c: Same.
2748 * alpha-tdep.c: Same.
2749 * alpha-tdep.h: Same.
2750 * amd64-nat.c: Same.
2751 * amd64-windows-tdep.c: Same.
2752 * arc-tdep.c: Same.
2753 * arc-tdep.h: Same.
2754 * arch-utils.c: Same.
2755 * arm-nbsd-tdep.c: Same.
2756 * arm-tdep.c: Same.
2757 * ax-gdb.c: Same.
2758 * blockframe.c: Same.
2759 * btrace.c: Same.
2760 * c-varobj.c: Same.
2761 * coff-pe-read.c: Same.
2762 * coffread.c: Same.
2763 * cris-tdep.c: Same.
2764 * darwin-nat.c: Same.
2765 * dbxread.c: Same.
2766 * dcache.c: Same.
2767 * disasm.c: Same.
2768 * dtrace-probe.c: Same.
2769 * dwarf-index-write.c: Same.
2770 * dwarf2-frame-tailcall.c: Same.
2771 * dwarf2-frame.c: Same.
2772 * dwarf2read.c: Same.
2773 * eval.c: Same.
2774 * exceptions.c: Same.
2775 * fbsd-tdep.c: Same.
2776 * findvar.c: Same.
2777 * frame.c: Same.
2778 * frv-tdep.c: Same.
2779 * gnu-v3-abi.c: Same.
2780 * go32-nat.c: Same.
2781 * h8300-tdep.c: Same.
2782 * hppa-tdep.c: Same.
2783 * i386-linux-tdep.c: Same.
2784 * i386-tdep.c: Same.
2785 * ia64-libunwind-tdep.c: Same.
2786 * ia64-tdep.c: Same.
2787 * infcmd.c: Same.
2788 * infrun.c: Same.
2789 * linespec.c: Same.
2790 * linux-nat.c: Same.
2791 * linux-thread-db.c: Same.
2792 * machoread.c: Same.
2793 * mdebugread.c: Same.
2794 * mep-tdep.c: Same.
2795 * mn10300-tdep.c: Same.
2796 * namespace.c: Same.
2797 * objfiles.c: Same.
2798 * opencl-lang.c: Same.
2799 * or1k-tdep.c: Same.
2800 * osabi.c: Same.
2801 * ppc-linux-nat.c: Same.
2802 * ppc-linux-tdep.c: Same.
2803 * ppc-sysv-tdep.c: Same.
2804 * printcmd.c: Same.
2805 * procfs.c: Same.
2806 * record-btrace.c: Same.
2807 * record-full.c: Same.
2808 * remote-fileio.c: Same.
2809 * remote.c: Same.
2810 * rs6000-tdep.c: Same.
2811 * s12z-tdep.c: Same.
2812 * score-tdep.c: Same.
2813 * ser-base.c: Same.
2814 * ser-go32.c: Same.
2815 * skip.c: Same.
2816 * sol-thread.c: Same.
2817 * solib-svr4.c: Same.
2818 * solib.c: Same.
2819 * source.c: Same.
2820 * sparc-nat.c: Same.
2821 * sparc-sol2-tdep.c: Same.
2822 * sparc-tdep.c: Same.
2823 * sparc64-tdep.c: Same.
2824 * stabsread.c: Same.
2825 * stack.c: Same.
2826 * symfile.c: Same.
2827 * symtab.c: Same.
2828 * target-descriptions.c: Same.
2829 * target-float.c: Same.
2830 * thread.c: Same.
2831 * utils.c: Same.
2832 * valops.c: Same.
2833 * valprint.c: Same.
2834 * value.c: Same.
2835 * varobj.c: Same.
2836 * windows-nat.c: Same.
2837 * xcoffread.c: Same.
2838 * xstormy16-tdep.c: Same.
2839 * xtensa-tdep.c: Same.
2840
c5adaa19
TT
28412019-10-17 Tom Tromey <tromey@adacore.com>
2842
2843 * configure: Rebuild.
2844 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2845 in AC_CONFIG_FILES invocation.
2846 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
2847 new-style config.status invocation.
2848
405feb71
TV
28492019-10-17 Tom de Vries <tdevries@suse.de>
2850
2851 * arm-nbsd-nat.c: Fix typos in comments.
2852 * arm-tdep.c: Same.
2853 * darwin-nat-info.c: Same.
2854 * dwarf2read.c: Same.
2855 * elfread.c: Same.
2856 * event-top.c: Same.
2857 * findvar.c: Same.
2858 * gdbtypes.c: Same.
2859 * hppa-tdep.c: Same.
2860 * i386-tdep.c: Same.
2861 * jit.c: Same.
2862 * main.c: Same.
2863 * mdebugread.c: Same.
2864 * moxie-tdep.c: Same.
2865 * nto-procfs.c: Same.
2866 * osabi.c: Same.
2867 * ppc-linux-tdep.c: Same.
2868 * remote.c: Same.
2869 * riscv-tdep.c: Same.
2870 * s390-tdep.c: Same.
2871 * sh-tdep.c: Same.
2872 * sparc-linux-tdep.c: Same.
2873 * sparc-nat.c: Same.
2874 * stack.c: Same.
2875 * target-descriptions.c: Same.
2876 * top.c: Same.
2877 * varobj.c: Same.
2878
befcd486
TT
28792019-10-16 Tom Tromey <tom@tromey.com>
2880
2881 * objfiles.h (struct objfile) <original_name>: Now const.
2882
17bfe554
CB
28832019-10-16 Christian Biesinger <cbiesinger@google.com>
2884
2885 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
2886 pass on to sigsetjmp's second argument.
2887 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
2888
950b7495
KS
28892019-10-16 Keith Seitz <keiths@redhat.com>
2890
2891 PR gdb/23567
2892 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
2893 sections whose size is greater than the file size.
2894
ff371ec9
JW
28952019-10-16 Jim Wilson <jimw@sifive.com>
2896
2897 * riscv-tdep.c (riscv_gcc_target_options): New.
2898 (riscv_gnu_triplet_regexp): New.
2899 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
2900 set_gdbarch_gnu_triplet_regexp.
2901
fec4e896
CB
29022019-10-16 Christian Biesinger <cbiesinger@google.com>
2903
2904 * Makefile.in: Add xml-builtin.h.
2905 * features/feature_to_c.sh: Add an include for xml-builtin.h
2906 to ensure that the compiler checks that the types match.
2907 * xml-builtin.h: New file.
2908 * xml-support.c (fetch_xml_builtin): Add missing const.
2909 * xml-support.h: Remove declaration of xml_builtins.
2910
d10eccaa
TV
29112019-10-16 Tom de Vries <tdevries@suse.de>
2912
2913 PR tdep/25096
2914 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
2915 (amd64_classify_aggregate): ... here.
2916 (amd64_classify_aggregate_field): Handled fiels of nested structs
2917 recursively.
2918
745ff14e
TV
29192019-10-16 Tom de Vries <tdevries@suse.de>
2920
2921 PR tdep/24104
2922 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
2923 that handles 'theclass'.
2924
791b7405
AB
29252019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2926
2927 * linespec.c (decode_digits_ordinary): Update comment.
2928 * make-target-delegates: No longer need to handle VEC case.
2929 * memrange.c (normalize_mem_ranges): Update comment.
2930 * namespace.c (add_using_directive): Update comment.
2931 * objc-lang.c (uniquify_strings): Update comment.
2932 * ppc-linux-nat.c (struct thread_points): Update comment.
2933 * probe.h (find_probes_in_objfile): Update comment.
2934 * target.h (enum flash_preserve_mode): Update comment.
2935 * varobj.c (varobj_restrict_range): Update comment.
2936 * varobj.h (varobj_list_children): Update comment.
2937
0dc32745
AB
29382019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2939
2940 * Makefile.in: Remove references to vec.h and vec.c.
2941 * aarch64-tdep.c: No longer include vec.h.
2942 * ada-lang.c: Likewise.
2943 * ada-lang.h: Likewise.
2944 * arm-tdep.c: Likewise.
2945 * ax.h: Likewise.
2946 * breakpoint.h: Likewise.
2947 * charset.c: Likewise.
2948 * cp-support.h: Likewise.
2949 * dtrace-probe.c: Likewise.
2950 * dwarf2read.c: Likewise.
2951 * extension.h: Likewise.
2952 * gdb_bfd.c: Likewise.
2953 * gdbsupport/gdb_vecs.h: Likewise.
2954 * gdbsupport/vec.c: Remove.
2955 * gdbsupport/vec.h: Remove.
2956 * gdbthread.h: Likewise.
2957 * guile/scm-type.c: Likewise.
2958 * inline-frame.c: Likewise.
2959 * machoread.c: Likewise.
2960 * memattr.c: Likewise.
2961 * memrange.h: Likewise.
2962 * namespace.h: Likewise.
2963 * nat/linux-btrace.h: Likewise.
2964 * osdata.c: Likewise.
2965 * parser-defs.h: Likewise.
2966 * progspace.h: Likewise.
2967 * python/py-type.c: Likewise.
2968 * record-btrace.c: Likewise.
2969 * rust-exp.y: Likewise.
2970 * solib-target.c: Likewise.
2971 * stap-probe.c: Likewise.
2972 * target-descriptions.c: Likewise.
2973 * target-memory.c: Likewise.
2974 * target.h: Likewise.
2975 * varobj.c: Likewise.
2976 * varobj.h: Likewise.
2977 * xml-support.h: Likewise.
2978
ae640021
AB
29792019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2980
2981 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
2982 Update for new std::vector based implementation.
2983 (process_psymtab_comp_unit_reader): Likewise.
2984 (scan_partial_symbols): Likewise.
2985 (recursively_compute_inclusions): Likewise.
2986 (compute_compunit_symtab_includes): Likewise.
2987 (process_imported_unit_die): Likewise.
2988 (queue_and_load_dwo_tu): Likewise.
2989 (follow_die_sig_1): Likewise.
2990 * gdb/dwarf2read.h: Remove DEF_VEC_P.
2991 (typedef dwarf2_per_cu_ptr): Remove.
2992 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
2993 function.
2994 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
2995 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
2996 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
2997 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
2998 std::vector.
2999
55dfc88f
TT
30002019-10-15 Tom Tromey <tromey@adacore.com>
3001
3002 * windows-nat.c (windows_nat_target::resume): Use %x when logging
3003 TID.
3004
96b49c5e
TT
30052019-10-15 Tom Tromey <tromey@adacore.com>
3006
3007 * windows-nat.c (windows_nat_target::fetch_registers)
3008 (windows_nat_target::store_registers): Rename "pid" to "tid".
3009
953cff56
TT
30102019-10-15 Tom Tromey <tromey@adacore.com>
3011
3012 * gdbarch.h, gdbarch.c: Rebuild.
3013 * gdbarch.sh (gcc_target_options): Change return type to
3014 std::string.
3015 * compile/compile.c (get_args): Update.
3016 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
3017 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
3018 std::string.
3019 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
3020 std::string.
3021 * arch-utils.c (default_gcc_target_options): Return std::string.
3022 * arch-utils.h (default_gcc_target_options): Return std::string.
3023 * s390-tdep.c (s390_gcc_target_options): Return std::string.
3024
81e6b8eb
CB
30252019-10-15 Christian Biesinger <cbiesinger@google.com>
3026
3027 * breakpoint.c (breakpoint_chain): Make static.
3028 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
3029 of accessing breakpoint_chain.
3030
95da600f
CB
30312019-10-15 Christian Biesinger <cbiesinger@google.com>
3032
3033 * breakpoint.c (iterate_over_breakpoints): Change function pointer
3034 to a gdb::function_view and return value to bool.
3035 * breakpoint.h (iterate_over_breakpoints): Likewise.
3036 * dummy-frame.c (pop_dummy_frame_bpt): Update.
3037 (pop_dummy_frame): Update.
3038 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
3039 (gdbscm_breakpoints): Update.
3040 * python/py-breakpoint.c (build_bp_list): Update.
3041 (gdbpy_breakpoints): Update.
3042 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3043 Update.
3044 (bpfinishpy_handle_stop): Update.
3045 (bpfinishpy_handle_exit): Update.
3046 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
3047 (svr4_update_solib_event_breakpoints): Update.
3048
ba18312d
AA
30492019-10-15 Andreas Arnez <arnez@linux.ibm.com>
3050
3051 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
3052 when unwrapping single-field structs.
3053
6acc1a0b
SM
30542019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3055
3056 * dwarf2read.c: Remove includes.
3057
284782de
SM
30582019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
3059
3060 * ui-out.c (ui_out::call_do_message): Silence
3061 -Wformat-nonliteral warning.
3062
073bbbb0
SM
30632019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
3064
3065 * breakpoint.c: Remove some includes: continuations.h, skip.h,
3066 mi/mi-main.h, readline/readline.h, readline/history.h. Add
3067 include: readline/tilde.h.
3068
7b9a15e1
CB
30692019-10-12 Christian Biesinger <cbiesinger@google.com>
3070
3071 * remote.c (remote_target::get_trace_status): Remove declaration of
3072 trace_regblock_size.
3073
cc8dee1f
CB
30742019-10-12 Christian Biesinger <cbiesinger@google.com>
3075
3076 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
3077 (show_user): Remove declaration of cmdlist.
3078 * cli/cli-cmds.h (max_user_call_depth): Declare.
3079 * cli/cli-script.c (execute_user_command): Remove declaration
3080 of max_user_call_depth.
3081
a83d4ef6
JW
30822019-10-11 Jim Wilson <jimw@sifive.com>
3083
5f93c5a6
JW
3084 * gdbsupport/print-utils.h (pulongest): Fix comment.
3085 (plongest): Likewise.
3086 (phex): Add missing comment, mention leading zeros.
3087 (phex_nz): Add mention of no leading zeros to comment.
3088
a83d4ef6
JW
3089 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
3090 plongest instead of unsigned long long cast.
3091
26344e0c
CB
30922019-10-10 Christian Biesinger <cbiesinger@google.com>
3093
3094 * main.c (captured_main_1): Include gdbtk.h and remove declarations
3095 for external_editor_command and gdbtk_test.
3096
c2c440a9
CB
30972019-10-10 Christian Biesinger <cbiesinger@google.com>
3098
3099 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
3100 * varobj.c (varobjdebug): Move comment to...
3101 * varobj.h (varobjdebug): ...here, and declare.
3102
a31bff9d
TT
31032019-10-09 Tom Tromey <tom@tromey.com>
3104
3105 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
3106 erase_data_content.
3107
7523da63
TT
31082019-10-09 Tom Tromey <tom@tromey.com>
3109
3110 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
3111 * tui/tui-stack.c (tui_locator_window::rerender): Update.
3112 * tui/tui-command.c (tui_cmd_window::resize)
3113 (tui_refresh_cmd_win): Update.
3114 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
3115 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
3116 * tui/tui-data.c (~tui_gen_win_info): Remove.
3117 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
3118 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
3119 (tui_redisplay_readline, tui_mld_flush)
3120 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
3121 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
3122 (tui_data_window::erase_data_content)
3123 (tui_data_item_window::rerender)
3124 (tui_data_item_window::refresh_window): Update.
3125 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
3126 (box_win, tui_gen_win_info::make_window)
3127 (tui_gen_win_info::make_visible): Update.
3128 (tui_delete_win): Remove.
3129 * tui/tui-winsource.c
3130 (tui_source_window_base::do_erase_source_content): Update.
3131 (tui_show_source_line, tui_source_window_base::update_tab_width)
3132 (tui_source_window_base::update_exec_info): Update.
3133 * tui/tui-data.h (struct curses_deleter): New.
3134 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
3135 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
3136
a7798e7f
TT
31372019-10-09 Tom Tromey <tom@tromey.com>
3138
3139 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
3140
5c45899e
TT
31412019-10-09 Tom Tromey <tom@tromey.com>
3142
3143 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
3144 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
3145
6d7fd9aa
TT
31462019-10-09 Tom Tromey <tom@tromey.com>
3147
3148 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
3149 window height directly.
3150 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
3151 declare.
3152 * tui/tui-layout.c (tui_default_win_height): Remove.
3153 (tui_default_win_viewport_height): Remove.
3154
d2dd1084
TT
31552019-10-09 Tom Tromey <tom@tromey.com>
3156
3157 * tui/tui.h: Remove comments.
3158
cff32449
TV
31592019-10-09 Tom de Vries <tdevries@suse.de>
3160
3161 * python/lib/gdb/printer/bound_registers.py: Use
3162 '^builtin_type_bound128' as regexp argument for
3163 add_builtin_pretty_printer.
3164
6a25e8a2
CB
31652019-10-09 Christian Biesinger <cbiesinger@google.com>
3166
3167 * guile/guile.c (guile_extension_script_ops): Remove forward
3168 declaration and mark as static.
3169 (guile_script_ops): Likewise.
3170 (extension_language_guile): Move further down in the file so
3171 it can reference the definitions for guile_{extension_,}script_ops.
3172
6d9d6da4
AA
31732019-10-09 Andreas Arnez <arnez@linux.ibm.com>
3174
3175 * s390-tdep.c (390_process_record): Handle new arch13 instructions
3176 except SORTL, DFLTCC, and KDSA.
3177
3abea05d
TT
31782019-10-08 Tom Tromey <tromey@adacore.com>
3179
3180 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
3181 (struct safe_symbol_file_add_args): Remove.
3182
dde996e2
TT
31832019-10-08 Tom Tromey <tromey@adacore.com>
3184
3185 * windows-nat.c: Don't include buildsym-legacy.h.
3186
cd6fdaa1
TT
31872019-10-08 Tom Tromey <tromey@adacore.com>
3188
3189 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
3190
79bb1944
CB
31912019-10-08 Christian Biesinger <cbiesinger@google.com>
3192
3193 * gdbtypes.c (overload_debug): Move comment to header.
3194 * gdbtypes.h (overload_debug): Declare.
3195 * valops.c: Remove declaration of overload_debug, instead
3196 include gdbtypes.h.
3197
34916edc
CB
31982019-10-08 Christian Biesinger <cbiesinger@google.com>
3199
3200 * language.c (show_language_command): Pass lang_frame_mismatch_warn
3201 through _().
3202 (lang_frame_mismatch_warn): Make const, mark with N_(), and
3203 move comment...
3204 * language.h (lang_frame_mismatch_warn): ... here. Also add
3205 declaration.
3206 * top.c (lang_frame_mismatch_warn): Remove declaration.
3207 (check_frame_language_change): Pass lang_frame_mismatch_warn
3208 through _().
3209
bad5c026
CB
32102019-10-07 Christian Biesinger <cbiesinger@google.com>
3211
3212 * c-lang.h (vtbl_ptr_name): Declare.
3213 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
3214 it from the header.
3215 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
3216
51f1fdc3
CB
32172019-10-07 Christian Biesinger <cbiesinger@google.com>
3218
3219 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
3220 gdb_static_assert.
3221
30d1f018
WP
32222019-10-07 Weimin Pan <weimin.pan@oracle.com>
3223
606813d5
WP
3224 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
3225 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
30d1f018
WP
3226 * ctfread.c: New file.
3227 * ctfread.h: New file.
3228 * elfread.c: Include ctfread.h.
3229 (struct elfinfo text_p): New member ctfsect.
3230 (elf_locate_sections): Mark CTF section.
3231 (elf_symfile_read): Call elfctf_build_psymtabs.
3232 * Makefile.in (LIBCTF): Add.
3233 (CLIBS): Use it.
3234 (CDEPS): Likewise.
3235 (DIST): Add ctfread.c.
606813d5
WP
3236
32372019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
3238
3239 * ctfread.c (struct nextfield): Renamed to ...
3240 (struct ctf_nextfield): ... this.
3241 (struct field_info): Renamed to ...
3242 (strut ctf_field_info): ... this.
3243 (attach_fields_to_type): Update for renamed structures.
3244 (ctf_add_member_cb): Likewise.
3245 (ctf_add_enum_member_cb): Likewise.
3246 (process_struct_members): Likewise.
3247 (process_enum_type): Likewise.
30d1f018 3248
518fe38c
WP
32492019-10-07 Weimin Pan <weimin.pan@oracle.com>
3250
3251 * tracectf.h: Rename, was ctf.h.
3252 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
3253 * tracefile.c: Likewise.
3254 * tracepoint.c: Remove unused include ctf.h.
3255 * mi/mi-main.c: Likewise.
3256 * Makefile.in Replace ctf.c with tracectf.c.
3257
225f296a
JB
32582019-10-06 Joel Brobecker <brobecker@adacore.com>
3259
3260 * version.in: Change version number to "9.0.50.DATE-git".
3261
77c2dba3
TT
32622019-10-03 Tom Tromey <tom@tromey.com>
3263
3264 PR rust/24976:
3265 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
3266
179aed7f
AB
32672019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3268
3269 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
3270 cp_search_name_hash.
3271 * NEWS: Add entry about nested function support.
3272
0a4b0913
AB
32732019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
3274 Andrew Burgess <andrew.burgess@embecosm.com>
3275
3276 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
3277 for nested static variables when searchin VAR_DOMAIN.
3278 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
3279 global scope, update comment.
3280 (add_partial_subprogram): Call add_partial_subprogram recursively
3281 for nested subroutines when processinng Fortran.
3282 (load_partial_dies): Process the child entities of a subprogram
3283 when processing Fortran.
3284 (partial_die_parent_scope): Handle building scope
3285 for Fortran nested functions.
3286 (process_die): Record that nested functions have a scope.
3287 (new_symbol): Always record Fortran subprograms on the global
3288 symbol list.
3289 (determine_prefix): How to build the prefix for Fortran
3290 subprograms.
3291
d8c06f22
AB
32922019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3293
3294 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
3295 have just sent the thread a SIGSTOP and are waiting for it to
3296 arrive.
3297
a8b3b8e9
AB
32982019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
3299
3300 * btrace.c (btrace_add_pc): Remove whitespace before the template
3301 parameter in 'std::vector <...>'.
3302 (parse_xml_btrace_block): Likewise.
3303 (btrace_maint_decode_pt): Likewise.
3304 (btrace_maint_update_packets): Likewise.
3305 (btrace_maint_print_packets): Likewise.
3306 * btrace.h (struct btrace_maint_info): Likewise.
3307 * dwarf2read.c (struct type_unit_group): Likewise.
3308 (build_type_psymtabs_reader): Likewise.
3309 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
3310 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
3311 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
3312
4d825eab
TV
33132019-10-03 Tom de Vries <tdevries@suse.de>
3314
3315 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
3316 the first line of the help text for set/show style metadata.
3317
80fd2826
TT
33182019-10-02 Tom Tromey <tromey@adacore.com>
3319
3320 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
3321 * gdbsupport/common-inferior.c: New file.
3322 * infcmd.c (startup_with_shell): Don't define.
3323 * nat/fork-inferior.h (startup_with_shell): Don't declare.
3324 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
3325 * inferior.h (startup_with_shell): Don't declare.
3326
70054538
CB
33272019-10-02 Christian Biesinger <cbiesinger@google.com>
3328
3329 * gdbsupport/gdb_assert.h: Include errors.h.
3330 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
3331
37f6a7f4
TT
33322019-10-02 Tom Tromey <tromey@adacore.com>
3333
3334 * NEWS: Add $_ada_exception entry.
3335 * ada-lang.c (struct ada_catchpoint): Add constructor.
3336 <m_kind>: New member.
3337 (allocate_location_exception, re_set_exception): Remove
3338 "ex" parameter.
3339 (should_stop_exception): Compute $_ada_exception.
3340 (check_status_exception, print_it_exception)
3341 (print_one_exception, print_mention_exception): Remove
3342 "ex" parameter.
3343 (allocate_location_catch_exception, re_set_catch_exception)
3344 (check_status_exception, print_it_catch_exception)
3345 (print_one_catch_exception, print_mention_catch_exception)
3346 (print_recreate_catch_exception)
3347 (allocate_location_catch_exception_unhandled)
3348 (re_set_catch_exception_unhandled)
3349 (check_status_exception, print_it_catch_exception_unhandled)
3350 (print_one_catch_exception_unhandled)
3351 (print_mention_catch_exception_unhandled)
3352 (print_recreate_catch_exception_unhandled)
3353 (allocate_location_catch_assert, re_set_catch_assert)
3354 (check_status_assert, print_it_catch_assert)
3355 (print_one_catch_assert, print_mention_catch_assert)
3356 (print_recreate_catch_assert)
3357 (allocate_location_catch_handlers, re_set_catch_handlers)
3358 (check_status_handlers, print_it_catch_handlers)
3359 (print_one_catch_handlers, print_mention_catch_handlers)
3360 (print_recreate_catch_handlers): Remove.
3361 (create_ada_exception_catchpoint): Update.
3362 (initialize_ada_catchpoint_ops): Update.
3363
fccf9de1
TT
33642019-10-02 Tom Tromey <tromey@adacore.com>
3365
3366 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
3367 (create_excep_cond_exprs): Simplify exception string computation.
3368 (ada_exception_catchpoint_cond_string): Likewise.
3369
4b610737
TT
33702019-10-02 Tom Tromey <tromey@adacore.com>
3371
3372 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
3373 * ada-lang.c (lesseq_defined_than): Handle
3374 LOC_STATIC.
3375 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
3376 parameter.
3377 (dwarf2_has_info): Likewise.
3378 (new_symbol): Set maybe_copied on symbol when
3379 appropriate.
3380 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
3381 parameter.
3382 <can_copy>: New member.
3383 * elfread.c (record_minimal_symbol): Set maybe_copied
3384 on symbol when appropriate.
3385 (elf_symfile_read): Update call to dwarf2_has_info.
3386 * minsyms.c (lookup_minimal_symbol_linkage): New
3387 function.
3388 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
3389 * symtab.c (get_symbol_address, get_msymbol_address):
3390 New functions.
3391 * symtab.h (get_symbol_address, get_msymbol_address):
3392 Declare.
3393 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
3394 maybe_copied.
3395 (struct symbol, struct minimal_symbol) <maybe_copied>:
3396 New member.
3397
1dd58850
TT
33982019-10-02 Tom Tromey <tromey@adacore.com>
3399
3400 * source.c (struct current_source_location): New.
3401 (current_source_key): New global.
3402 (current_source_symtab, current_source_line)
3403 (current_source_pspace): Remove.
3404 (get_source_location): New function.
3405 (get_current_source_symtab_and_line)
3406 (set_default_source_symtab_and_line)
3407 (set_current_source_symtab_and_line)
3408 (clear_current_source_symtab_and_line, select_source_symtab)
3409 (info_source_command, print_source_lines_base)
3410 (info_line_command, search_command_helper, _initialize_source):
3411 Update.
3412
5c281dbb
TT
34132019-10-02 Tom Tromey <tromey@adacore.com>
3414
3415 * source.c (select_source_symtab): Don't call
3416 decode_line_with_current_source.
3417
d3d32391
AB
34182019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3419
3420 * symtab.c (lookup_global_symbol): Search global block.
3421
38583298
TT
34222019-10-02 Tom Tromey <tromey@adacore.com>
3423
3424 * coffread.c (process_coff_symbol): Update.
3425 * dwarf2read.c (var_decode_location, new_symbol): Update.
3426 * mdebugread.c (parse_symbol): Update.
3427 * objfiles.c (relocate_one_symbol): Update.
3428 * stabsread.c (define_symbol, fix_common_block)
3429 (scan_file_globals): Update.
3430 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3431 (SET_SYMBOL_VALUE_ADDRESS): New macro.
3432 * xcoffread.c (process_xcoff_symbol): Update.
3433
9344c18f
AA
34342019-10-02 Andreas Arnez <arnez@linux.ibm.com>
3435
3436 * MAINTAINERS: Update my email address.
3437
df07e2c7
AB
34382019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3439
3440 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
3441 std::vector.
3442 (build_type_psymtabs_reader): Update for std::vector.
3443 (build_type_psymtab_dependencies): Likewise.
3444 * dwarf2read.h: Remove use of DEF_VEC_P.
3445 (typedef sig_type_ptr): Delete.
3446
554ac434
AB
34472019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3448
3449 * btrace.c (btrace_maint_clear): Update to handle change from VEC
3450 to std::vector.
3451 (btrace_maint_decode_pt): Likewise, and move allocation of the
3452 vector outside of the loop.
3453 (btrace_maint_update_packets): Update to handle change from VEC to
3454 std::vector.
3455 (btrace_maint_print_packets): Likewise.
3456 (maint_info_btrace_cmd): Likewise.
3457 * btrace.h: Remove use of DEF_VEC_O.
3458 (typedef btrace_pt_packet_s): Delete.
3459 (struct btrace_maint_info) <packets>: Change fromm VEC to
3460 std::vector.
3461 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
3462
46f29a9a
AB
34632019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
3464
3465 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
3466 make accesses into the vector constant references.
3467 (btrace_add_pc): Update for std::vector.
3468 (btrace_stitch_bts): Likewise.
3469 (parse_xml_btrace_block): Likewise.
3470 (btrace_maint_update_packets): Likewise.
3471 (btrace_maint_print_packets): Likewise.
3472 (maint_info_btrace_cmd): Likewise.
3473 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
3474 std::vector.
3475 (btrace_data::empty): Likewise.
3476 (btrace_data_append): Likewise.
3477 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
3478 (typedef btrace_block_s): Delete.
3479 (struct btrace_block): Add constructor.
3480 (struct btrace_data_bts) <blocks>: Change to std::vector.
3481 * nat/linux-btrace.c (perf_event_read_bts): Update for
3482 std::vector.
3483 (linux_read_bts): Likewise.
3484
d770d56f
TT
34852019-10-01 Tom Tromey <tom@tromey.com>
3486
3487 * cli/cli-logging.c (show_logging_filename): Use styled_string.
3488
9d636d67
TT
34892019-10-01 Tom Tromey <tom@tromey.com>
3490
3491 * stack.c (print_frame, info_frame_command_core): Use
3492 styled_string.
3493 * linux-thread-db.c (try_thread_db_load_1)
3494 (try_thread_db_load_from_pdir_1): Use styled_string.
3495 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
3496 (auto_load_section_scripts, info_auto_load_local_gdbinit)
3497 (maybe_print_unsupported_script_warning)
3498 (maybe_print_script_not_found_warning): Use styled_string.
3499 * ada-lang.c (user_select_syms): Use styled_string.
3500
7f6aba03
TT
35012019-10-01 Tom Tromey <tom@tromey.com>
3502
3503 * p-lang.c (pascal_printstr): Use metadata style.
3504 * value.c (show_convenience): Use metadata style.
3505 * valprint.c (valprint_check_validity, val_print_optimized_out)
3506 (val_print_not_saved, val_print_unavailable)
3507 (val_print_invalid_address, generic_val_print, val_print)
3508 (value_check_printable, val_print_array_elements): Use metadata
3509 style.
3510 * ui-out.h (class ui_out) <field_fmt>: New overload.
3511 <do_field_fmt>: Add style parameter.
3512 * ui-out.c (ui_out::field_fmt): New overload.
3513 * typeprint.c (type_print_unknown_return_type)
3514 (val_print_not_allocated, val_print_not_associated): Use metadata
3515 style.
3516 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
3517 parameter.
3518 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
3519 * tracepoint.c (tvariables_info_1): Use metadata style.
3520 * stack.c (print_frame_arg, print_frame_info, print_frame)
3521 (info_frame_command_core): Use metadata style.
3522 * skip.c (info_skip_command): Use metadata style.
3523 * rust-lang.c (rust_print_enum): Use metadata style.
3524 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3525 metadata style.
3526 * python/py-framefilter.c (py_print_single_arg): Use metadata
3527 style.
3528 * printcmd.c (do_one_display, print_variable_and_value): Use
3529 metadata style.
3530 * p-valprint.c (pascal_val_print)
3531 (pascal_object_print_value_fields): Use metadata style.
3532 * p-typeprint.c (pascal_type_print_base): Use metadata style.
3533 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
3534 parameter.
3535 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
3536 * m2-valprint.c (m2_print_long_set): Use metadata style.
3537 * m2-typeprint.c (m2_print_type): Use metadata style.
3538 * infcmd.c (print_return_value_1): Use metadata style.
3539 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
3540 * f-valprint.c (info_common_command_for_block): Use metadata
3541 style.
3542 * f-typeprint.c (f_type_print_base): Use metadata style.
3543 * expprint.c (print_subexp_standard): Use metadata style.
3544 * cp-valprint.c (cp_print_value_fields): Use metadata style.
3545 * cli/cli-style.h (class cli_style_option): Add constructor.
3546 (metadata_style): Declare.
3547 * cli/cli-style.c (metadata_style): New global.
3548 (_initialize_cli_style): Register metadata style.
3549 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
3550 parameter.
3551 * cli-out.c (cli_ui_out::do_field_fmt): Update.
3552 * c-typeprint.c (c_type_print_base_struct_union)
3553 (c_type_print_base_1): Use metadata style.
3554 * breakpoint.c (watchpoint_value_print)
3555 (print_one_breakpoint_location): Use metadata style.
3556 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
3557 style.
3558 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
3559 style.
3560 * ada-valprint.c (val_print_packed_array_elements, printstr)
3561 (print_field_values, ada_val_print_ref, ada_val_print): Use
3562 metadata style.
3563 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
3564 style.
3565 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
3566 style.
3567 * ada-lang.c (user_select_syms): Use metadata style.
3568
14309bb6
TT
35692019-10-01 Tom Tromey <tom@tromey.com>
3570
3571 * cli/cli-cmds.c (pwd_command): Style output.
3572
6a831f06
PA
35732019-10-01 Pedro Alves <palves@redhat.com>
3574 Tom Tromey <tom@tromey.com>
3575
3576 * symtab.c (print_symbol_info): Use %ps.
3577 (print_msymbol_info): Use %ps.
3578 * symfile.c (symbol_file_add_with_addrs): Use %ps.
3579 * printcmd.c (print_variable_and_value): Use %ps.
3580 * macrocmd.c (show_pp_source_pos): Use %ps.
3581 * infrun.c (print_exited_reason): Use ui_out::message.
3582 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
3583 (describe_other_breakpoints): Use ui_out::message and new
3584 formats.
3585 (say_where): Use new formats.
3586 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
3587 and new formats.
3588
2a3c1174
PA
35892019-10-01 Pedro Alves <palves@redhat.com>
3590 Tom Tromey <tom@tromey.com>
3591
3592 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
3593 (test_gdb_formats): New function.
3594 (run_tests): Call it.
3595 (test_format_specifier): Update.
3596 * utils.h (fputs_filtered): Update comment.
3597 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
3598 (fputs_styled_unfiltered): Declare.
3599 * utils.c (fputs_styled_unfiltered): New function.
3600 (vfprintf_maybe_filtered): Add gdbfmt parameter.
3601 (vfprintf_filtered): Update.
3602 (vfprintf_unfiltered, vprintf_filtered): Update.
3603 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
3604 * ui-out.h (enum ui_out_flag) <unfiltered_output,
3605 disallow_ui_out_field>: New constants.
3606 (enum class field_kind): New.
3607 (struct base_field_s, struct signed_field_s): New.
3608 (signed_field): New function.
3609 (struct string_field_s): New.
3610 (string_field): New function.
3611 (struct styled_string_s): New.
3612 (styled_string): New function.
3613 (class ui_out) <message>: Add comment.
3614 <vmessage, call_do_message>: New methods.
3615 <do_message>: Add style parameter.
3616 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
3617 methods.
3618 (ui_out::message): Rewrite.
3619 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
3620 parameter.
3621 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
3622 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
3623 gdb_extensions parameter.
3624 (class format_piece): Add parameter to constructor.
3625 (n_int_args): New field.
3626 * gdbsupport/format.c (format_pieces::format_pieces): Add
3627 gdb_extensions parameter. Handle '*'.
3628 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
3629 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
3630 vfprintf_styled_no_gdbfmt.
3631 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
3632 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
3633 unfiltered output.
3634 * ui-style.h (struct ui_file_style) <ptr>: New method.
3635
0dfe5bfb
TT
36362019-10-01 Tom Tromey <tom@tromey.com>
3637
3638 * unittests/format_pieces-selftests.c: Update. Add final format.
3639 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
3640 empty literal pieces.
3641
e43b10e1
TT
36422019-10-01 Tom Tromey <tom@tromey.com>
3643
3644 * ui-out.h (enum class ui_out_style_kind): Remove.
3645 (class ui_out) <field_string, field_stsream, do_field_string>:
3646 Change type of "style".
3647 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
3648 (ui_out::field_string): Update.
3649 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
3650 of "style".
3651 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
3652 * tracepoint.c (print_one_static_tracepoint_marker): Update.
3653 * stack.c (print_frame_arg, print_frame_info, print_frame):
3654 Update.
3655 * source.c (print_source_lines_base): Update.
3656 * solib.c (info_sharedlibrary_command): Update.
3657 * skip.c (info_skip_command): Update.
3658 * record-btrace.c (btrace_call_history_src_line)
3659 (btrace_call_history): Update.
3660 * python/py-framefilter.c (py_print_frame): Update.
3661 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
3662 "style".
3663 * mi/mi-out.c (mi_ui_out::do_table_header)
3664 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
3665 (mi_ui_out::do_field_string): Update.
3666 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3667 Update.
3668 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
3669 "style".
3670 * cli-out.c (cli_ui_out::do_table_header)
3671 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
3672 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
3673 (cli_ui_out::do_field_fmt): Update.
3674 * breakpoint.c (print_breakpoint_location): Update.
3675 (update_static_tracepoint): Update.
3676
cd7c32c3
PW
36772019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3678
3679 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
3680 conversion of gdb_datadir.
3681 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
3682 remove not needed c_str ().
3683
8fe0f950
AT
36842019-09-30 Ali Tamur <tamur@google.com>
3685
3686 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
3687 (dwarf2_string_attr): Likewise.
3688
5f48f8f3
AT
36892019-09-30 Ali Tamur <tamur@google.com>
3690
3691 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
3692 (process_full_type_unit): Likewise.
3693 (dump_die_shallow): Likewise.
3694 (cu_debug_loc_section): Likewise.
3695
6fb08628
CB
36962019-09-28 Christian Biesinger <cbiesinger@google.com>
3697
3698 * minsyms.c (compare_minimal_symbols): Rename to...
3699 (minimal_symbol_is_less_than): ...this, and adjust to STL
3700 conventions (return bool, take arguments as references)
3701 (minimal_symbol_reader::install): Call std::sort instead
3702 of qsort.
3703
c7ee338a
CB
37042019-09-29 Christian Biesinger <cbiesinger@google.com>
3705
3706 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
3707 hash and why.
3708 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
3709 msymbol_hash, msymbol_demangled_hash>: Improve comments.
3710
703a86c2
SM
37112019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
3712
3713 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
3714 * psympriv.h (add_psymbol_to_list): Move comment here and update
3715 it.
3716
0df0352a
TV
37172019-09-29 Tom de Vries <tdevries@suse.de>
3718
3719 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
3720 Use $tmpdir/$(basename "$output_file").dwz instead of
3721 "${output_file}.dwz".
3722
ad75efa6
SM
37232019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3724
3725 PR gdb/25045
3726 * hppa-linux-nat.c: Include gdbarch.h.
3727
ececd218
CB
37282019-09-26 Christian Biesinger <cbiesinger@google.com>
3729
3730 * blockframe.c (find_pc_partial_function): Change return type to bool.
3731 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
3732 * minsyms.c (in_gnu_ifunc_stub): Likewise.
3733 (stub_gnu_ifunc_resolve_name): Likewise.
3734 * symtab.c (compare_filenames_for_search): Likewise.
3735 (compare_glob_filenames_for_search): Likewise.
3736 (matching_obj_sections): Likewise.
3737 (symbol_matches_domain): Likewise.
3738 (find_line_symtab): Change out param EXACT_MATCH to bool *.
3739 (find_line_pc): Change return type to bool.
3740 (find_line_pc_range): Likewise.
3741 (producer_is_realview): Likewise.
3742 * symtab.h (symbol_matches_domain): Likewise.
3743 (find_pc_partial_function): Likewise.
3744 (find_pc_line_pc_range): Likewise.
3745 (in_gnu_ifunc_stub): Likewise.
3746 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
3747 (find_line_pc): Likewise.
3748 (find_line_pc_range): Likewise.
3749 (matching_obj_sections): Likewise.
3750 (find_line_symtab): Change out parameter to bool.
3751 (producer_is_realview): Change return type to bool.
3752 (compare_filenames_for_search): Likewise.
3753 (compare_glob_filenames_for_search): Likewise.
3754
27a900b8
TT
37552019-09-26 Tom Tromey <tom@tromey.com>
3756
3757 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
3758 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
3759 * gdb_usleep.h: Remove.
3760 * gdb_usleep.c: Remove.
3761 * utils.c: Don't include gdb_usleep.h.
3762
5d63b30a
TT
37632019-09-26 Tom Tromey <tromey@adacore.com>
3764
3765 * python/py-type.c (type_to_type_object): Call check_typedef
3766 for stub types.
3767
12904d37
TT
37682019-09-26 Tom Tromey <tom@tromey.com>
3769
3770 * utils.h (initialize_utils): Don't declare.
3771 * top.c (gdb_init): Don't call initialize_utils.
3772 * utils.c (initialize_utils): Remove. Move contents...
3773 (_initialize_utils): ... here.
3774
858f25f0
TT
37752019-09-25 Tom Tromey <tom@tromey.com>
3776
3777 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
3778 * utils.h (make_hex_string): Don't declare.
3779 * utils.c (make_hex_string): Remove.
3780
3d435220
TV
37812019-09-24 Tom de Vries <tdevries@suse.de>
3782
3783 PR gdb/23815
3784 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
3785 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
3786
ddd44b70
DD
37872019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
3788
3789 * NEWS: Mention new simulator port for PRU.
3790
f945dedf
CB
37912019-09-23 Christian Biesinger <cbiesinger@google.com>
3792
3793 * ada-exp.y (write_object_remaining): Update.
3794 * ada-lang.c (ada_decode): Return a std::string instead of a char*
3795 and eliminate the static buffer.
3796 (ada_decode_symbol): Update.
3797 (ada_la_decode): Update.
3798 (ada_sniff_from_mangled_name): Update.
3799 (is_valid_name_for_wild_match): Update.
3800 (ada_lookup_name_info::matches): Update and simplify.
3801 (name_matches_regex): Update.
3802 (ada_add_global_exceptions): Update.
3803 * ada-lang.h (ada_decode): Update signature.
3804 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
3805 * dwarf-index-write.c (debug_names::insert): Update.
3806
7ab78ccb
SM
38072019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3808
3809 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
3810 formatting.
3811
9252448b
SM
38122019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
3813
3814 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
3815 Change "nonzero" to "true" in documentation.
3816
626ca2c0
CB
38172019-09-20 Christian Biesinger <cbiesinger@google.com>
3818
3819 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
3820 (_initialize_darwin_solib): Don't set
3821 darwin_so_ops.lookup_lib_global_symbol.
3822 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
3823 set_gdbarch_iterate_over_objfiles_in_search_order.
3824 (elf_lookup_lib_symbol): Rename to...
3825 (svr4_iterate_over_objfiles_in_search_order): this, and update
3826 to iterate semantics.
3827 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
3828 * solib.c (solib_global_lookup): Remove.
3829 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
3830 (solib_global_lookup): Remove.
3831 * symtab.c (lookup_global_or_static_symbol): Remove call to
3832 solib_global_lookup.
3833
5a3a0d63
JB
38342019-09-20 Joel Brobecker <brobecker@adacore.com>
3835
3836 * NEWS: Move entries about default MI version now being
3837 version 3, and about the GDB/MI fix for multi-location
3838 breakpoints to the "since GDB 8.3" section.
3839
ffea1427
JB
38402019-09-20 Joel Brobecker <brobecker@adacore.com>
3841
3842 GDB 8.3.1 released.
3843
abf516c6
UW
38442019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
3845
3846 * NEWS: Mention that Cell/B.E. debugging support was removed.
3847 * MAINTAINERS: Remove spu target.
3848
3849 * config/djgpp/fnchange.lst: Remove entries for removed files.
3850
3851 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
3852 spu-multiarch.o, and spu-tdep.o.
3853 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
3854 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
3855 spu-multiarch.c, and spu-tdep.c.
3856 * spu-linux-nat.c: Remove file.
3857 * spu-multiarch.c: Remove file.
3858 * spu-tdep.c: Remove file.
3859 * spu-tdep.h: Remove file.
3860 * solib-spu.c: Remove file.
3861 * solib-spu.h: Remove file.
3862
3863 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
3864 * configure.nat (spu-linux): Remove.
3865 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
3866 solib-multiarch.o from gdb_target_obs.
3867 (spu*-*-*): Remove.
3868
3869 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
3870 feature flag.
3871 (ppc_linux_no_features): Update.
3872 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
3873 Cell/B.E. support.
3874 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
3875 (tdesc_powerpc_cell64l): Likewise.
3876 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
3877 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
3878 Cell/B.E. support.
3879 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
3880 Do not include "features/rs6000/powerpc-cell32l.c" or
3881 "features/rs6000/powerpc-cell64l.c".
3882 (ppc_linux_spu_section): Remove.
3883 (ppc_linux_core_read_description): Remove Cell/B.E. support.
3884 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
3885 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
3886 (ppc_linux_spe_context_lookup): Remove.
3887 (ppc_linux_spe_context_inferior_created): Remove.
3888 (ppc_linux_spe_context_solib_loaded): Remove.
3889 (ppc_linux_spe_context_solib_unloaded): Remove.
3890 (ppc_linux_spe_context): Remove.
3891 (struct ppu2spu_cache): Remove.
3892 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
3893 (struct ppu2spu_data): Remove.
3894 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
3895 ppu2spu_unwind): Remove.
3896 (ppc_linux_init_abi): Remove Cell/B.E. support.
3897 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
3898
3899 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
3900 (rs6000/powerpc-cell64l-expedite): Likewise
3901 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
3902 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
3903 rs6000/powerpc-cell64l.xml.
3904 * features/rs6000/powerpc-cell32l.xml: Remove.
3905 * features/rs6000/powerpc-cell64l.xml: Likewise.
3906 * features/rs6000/powerpc-cell32l.c: Remove generated file.
3907 * features/rs6000/powerpc-cell64l.c: Likewise.
3908 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
3909 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
3910 * regformats/reg-spu.dat: Remove.
3911
3912 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
3913 * corelow.c (struct spuid_list): Remove.
3914 (add_to_spuid_list): Remove.
3915 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3916 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
3917 (remote_protocol_features): Remove associated entries.
3918 (_initialize_remote): No longer initialize them.
3919 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3920 * linux-nat.c (SPUFS_MAGIC): Remove.
3921 (linux_proc_xfer_spu): Remove.
3922 (spu_enumerate_spu_ids): Remove.
3923 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
3924 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
3925 (linux_make_corefile_notes): No longer call it.
3926
3927 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
3928 (cooked_write_test): Likewise.
3929
78e8cb91
TT
39302019-09-20 Tom Tromey <tom@tromey.com>
3931
3932 * NEWS: Mention case-sensitivity of TUI commands.
3933 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
3934 (tui_set_win_height_command, parse_scrolling_args): Likewise.
3935 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
3936
f074b67e
TT
39372019-09-20 Tom Tromey <tom@tromey.com>
3938
3939 * tui/tui-source.c (tui_source_window::set_contents): Use
3940 make_unique_xstrdup.
3941 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
3942 make_unique_xstrdup.
3943
63c4bf19
TT
39442019-09-20 Tom Tromey <tom@tromey.com>
3945
3946 * tui/tui-data.c: Remove separator comments.
3947 * tui/tui-layout.c: Remove separator comments.
3948 * tui/tui-win.c: Remove separator comments.
3949 * tui/tui-wingeneral.c: Remove separator comments.
3950
43df9b2f
TT
39512019-09-20 Tom Tromey <tom@tromey.com>
3952
3953 * tui/tui.h (strcat_to_buf): Don't declare.
3954 * tui/tui.c (strcat_to_buf): Remove.
3955
7226433c
TT
39562019-09-20 Tom Tromey <tom@tromey.com>
3957
3958 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
3959 from "fullname".
3960 * tui/tui-source.c (tui_source_window::set_contents)
3961 (tui_source_window::location_matches_p)
3962 (tui_source_window::maybe_update): Update.
3963
80df3337
TT
39642019-09-20 Tom Tromey <tom@tromey.com>
3965
3966 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
3967 Update.
3968 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
3969 prefix.
3970 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
3971 (tui_data_window::line_from_reg_element_no)
3972 (tui_data_window::first_reg_element_no_inline)
3973 (tui_data_window::show_registers)
3974 (tui_data_window::show_register_group)
3975 (tui_data_window::display_registers_from)
3976 (tui_data_window::display_registers_from_line)
3977 (tui_data_window::first_data_item_displayed)
3978 (tui_data_window::delete_data_content_windows)
3979 (tui_data_window::erase_data_content)
3980 (tui_data_window::do_scroll_vertical)
3981 (tui_data_window::refresh_window)
3982 (tui_data_window::check_register_values): Update.
3983
9923f347
TT
39842019-09-20 Tom Tromey <tom@tromey.com>
3985
3986 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
3987 (struct tui_locator_window) <full_name, proc_name>: Now
3988 std::string.
3989 * tui/tui-stack.c (tui_locator_window::make_status_line)
3990 (tui_locator_window::set_locator_fullname)
3991 (tui_locator_window::set_locator_info): Update.
3992 * tui/tui-source.c (tui_source_window::set_contents)
3993 (tui_source_window::showing_source_p): Update.
3994
b76251ab
TT
39952019-09-20 Tom Tromey <tom@tromey.com>
3996
3997 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
3998 Don't call tui_locator_win_info_ptr.
3999
0891be08
TT
40002019-09-20 Tom Tromey <tom@tromey.com>
4001
4002 * tui/tui-win.c (tui_resize_all): Don't call refresh.
4003
1b935acf
TT
40042019-09-20 Tom Tromey <tom@tromey.com>
4005
4006 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
4007 height for locator.
4008 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
4009 * tui/tui-layout.c (show_source_disasm_command, show_data)
4010 (show_source_or_disasm_and_command): Use 1 as height for locator.
4011
9abd8a65
TT
40122019-09-20 Tom Tromey <tom@tromey.com>
4013
4014 * tui/tui.c (tui_enable): Update.
4015 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
4016 Update.
4017 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
4018 Update.
4019 * tui/tui-data.c (win_resized): Now bool.
4020 (tui_win_resized): Return bool.
4021 (tui_set_win_resized_to): Accept a bool.
4022
b5457826
TT
40232019-09-20 Tom Tromey <tom@tromey.com>
4024
4025 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
4026 Change type of "refresh_values_only".
4027 * tui/tui-regs.c (tui_data_window::show_register_group): Change
4028 type of "refresh_values_only".
4029
6b915f7d
TT
40302019-09-20 Tom Tromey <tom@tromey.com>
4031
4032 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
4033 std::string.
4034 (tui_disassemble): Add "pos" parameter.
4035 (tui_disasm_window::set_contents): Simplify.
4036
2ad52f6f
TT
40372019-09-20 Tom Tromey <tom@tromey.com>
4038
4039 * tui/tui-winsource.h (struct tui_source_window_base)
4040 <show_source_content>: Now private.
4041 * tui/tui-winsource.c
4042 (tui_source_window_base::show_source_content): Don't handle empty
4043 content case.
4044
b3b1bde6
TT
40452019-09-20 Tom Tromey <tom@tromey.com>
4046
4047 * tui/tui-layout.c (show_source_disasm_command)
4048 (show_source_or_disasm_and_command): Don't call
4049 show_source_content.
4050
71a25ed2
TT
40512019-09-20 Tom Tromey <tom@tromey.com>
4052
4053 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
4054 Declare.
4055 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
4056 from tui_make_status_line.
4057 (tui_locator_window::rerender): Update.
4058
f8532154
TT
40592019-09-20 Tom Tromey <tom@tromey.com>
4060
4061 * tui/tui-stack.c (tui_make_status_line): Return std::string.
4062 (tui_locator_window::rerender): Update.
4063
2d81b349
TT
40642019-09-20 Tom Tromey <tom@tromey.com>
4065
4066 * tui/tui-winsource.h (struct tui_source_window_base)
4067 <~tui_source_window_base>: Don't declare.
4068 <fullname>: Remove.
4069 * tui/tui-winsource.c (~tui_source_window_base): Remove.
4070 * tui/tui-source.h (struct tui_source_window) <fullname>: New
4071 member.
4072 * tui/tui-source.c (tui_source_window::set_contents): Update.
4073 (tui_source_window::location_matches_p)
4074 (tui_source_window::maybe_update): Update.
4075
f14bec58
TT
40762019-09-20 Tom Tromey <tom@tromey.com>
4077
4078 * tui/tui-winsource.h (~tui_source_element): Remove.
4079 (tui_source_element): Update.
4080 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
4081 * tui/tui-winsource.c (tui_show_source_line): Update.
4082 * tui/tui-source.c (tui_source_window::set_contents): Update.
4083 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
4084
78d5933a
TT
40852019-09-20 Tom Tromey <tom@tromey.com>
4086
4087 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
4088 declare.
4089 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
4090 tui_clear_source_windows_detail.
4091 * tui/tui-winsource.h (struct tui_source_window_base)
4092 <clear_detail>: Don't declare.
4093 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
4094 Remove.
4095 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
4096
d4207696
TT
40972019-09-20 Tom Tromey <tromey@adacore.com>
4098
4099 PR ada/24919:
4100 * block.c (contained_in): Fix final return value.
4101
00f93c44
AM
41022019-09-20 Alan Modra <amodra@gmail.com>
4103
4104 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
4105 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
4106 (read_indirect_string_from_dwz): Use bfd accessor.
4107 * dwarf2read.h (struct dwz_file <filename>): Likewise.
4108 * machoread.c (macho_symfile_read_all_oso): Likewise.
4109 * solib.c (solib_bfd_open): Likewise.
4110
e4153ae6
CB
41112019-09-19 Christian Biesinger <cbiesinger@google.com>
4112
4113 * eval.c: Move declaration of overload_resolution to...
4114 * value.h: ...here.
4115
c7ae7675
CB
41162019-09-19 Christian Biesinger <cbiesinger@google.com>
4117
4118 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
4119 * arm-linux-tdep.c: Likewise.
4120 * arm-nbsd-nat.c: Likewise.
4121 * arm-tdep.h: Declare arm_apcs_32.
4122 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
4123
e86f08d2
CB
41242019-09-19 Christian Biesinger <cbiesinger@google.com>
4125
4126 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
4127 * dwarf2read.h: Declare dwarf_always_disassemble.
4128
f64e2f40
TV
41292019-09-19 Tom de Vries <tdevries@suse.de>
4130
4131 PR gdb/25009
4132 * source-cache.c (source_cache::ensure): Catch exception thrown during
4133 construction of the highlighter.
4134
fd361982
AM
41352019-09-18 Alan Modra <amodra@gmail.com>
4136
4137 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
4138 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
4139 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
4140 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
4141 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
4142 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
4143 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
4144 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
4145 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
4146 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
4147 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
4148 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
4149 * solib-spu.c, * solib-svr4.c, * solib-target.c,
4150 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
4151 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
4152 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
4153 * mi/mi-interp.c: Update throughout for bfd section macro and
4154 function changes.
4155 * gcore (gcore_create_callback): Use bfd_set_section_lma.
4156 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
4157
11061048
TT
41582019-09-18 Tom Tromey <tom@tromey.com>
4159
4160 * NEWS: Add entry.
4161 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
4162 call rl_initialize.
4163 (tui_enable): Do not call rl_initialize.
4164
7a27b85f
CG
41652019-09-18 Christian Groessler <chris@groessler.org>
4166
4167 * alpha-linux-nat.c: Include gdbarch.h.
4168
f64eea3a
SM
41692019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
4170
4171 * ui-file.c: Include cli/cli-style.h.
4172 (term_cli_styling): Remove cli_styling declaration.
4173
e6f7f6d1
AM
41742019-09-18 Alan Modra <amodra@gmail.com>
4175
4176 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
4177 to bfd_asymbol_section.
4178
1d38e9d1
AM
41792019-09-18 Alan Modra <amodra@gmail.com>
4180
4181 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
4182 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4183 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
4184
90d92a63
AM
41852019-09-18 Alan Modra <amodra@gmail.com>
4186
4187 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
4188 * spu-linux-nat.c (spu_bfd_open): Likewise.
4189
a3d181d2
CB
41902019-09-18 Christian Biesinger <cbiesinger@google.com>
4191
4192 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
4193 to bool to match definition in dwarf2read.c.
4194
491144b5
CB
41952019-09-17 Christian Biesinger <cbiesinger@google.com>
4196
4197 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
4198 (print_signatures): Likewise.
4199 (trust_pad_over_xvs): Likewise.
4200 * arch/aarch64-insn.c (aarch64_debug): Likewise.
4201 * arch/aarch64-insn.h (aarch64_debug): Likewise.
4202 * arm-linux-nat.c (arm_apcs_32): Likewise.
4203 * arm-linux-tdep.c (arm_apcs_32): Likewise.
4204 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
4205 * arm-tdep.c (arm_debug): Likewise.
4206 (arm_apcs_32): Likewise.
4207 * auto-load.c (debug_auto_load): Likewise.
4208 (auto_load_gdb_scripts): Likewise.
4209 (global_auto_load): Likewise.
4210 (auto_load_local_gdbinit): Likewise.
4211 (auto_load_local_gdbinit_loaded): Likewise.
4212 * auto-load.h (global_auto_load): Likewise.
4213 (auto_load_local_gdbinit): Likewise.
4214 (auto_load_local_gdbinit_loaded): Likewise.
4215 * breakpoint.c (disconnected_dprintf): Likewise.
4216 (breakpoint_proceeded): Likewise.
4217 (automatic_hardware_breakpoints): Likewise.
4218 (always_inserted_mode): Likewise.
4219 (target_exact_watchpoints): Likewise.
4220 (_initialize_breakpoint): Update.
4221 * breakpoint.h (target_exact_watchpoints): Change to bool.
4222 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
4223 * cli/cli-cmds.c (trace_commands): Likewise.
4224 * cli/cli-cmds.h (trace_commands): Likewise.
4225 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
4226 to bool*.
4227 * cli/cli-logging.c (logging_overwrite): Change to bool.
4228 (logging_redirect): Likewise.
4229 (debug_redirect): Likewise.
4230 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
4231 (struct boolean_option_def) <get_var_address_cb_>: Change return type
4232 to bool.
4233 <boolean_option_def>: Update.
4234 (struct flag_option_def): Change default type of Context to bool
4235 from int.
4236 <flag_option_def>: Change return type of var_address_cb_ to bool*.
4237 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
4238 (get_setshow_command_value_string): Likewise.
4239 * cli/cli-style.c (cli_styling): Change to bool.
4240 (source_styling): Likewise.
4241 * cli/cli-style.h (source_styling): Likewise.
4242 (cli_styling): Likewise.
4243 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
4244 to bool.
4245 * command.h (var_types): Update comment.
4246 (add_setshow_boolean_cmd): Change int* var argument to bool*.
4247 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
4248 bool.
4249 (debug_compile_cplus_scopes): Likewise.
4250 * compile/compile-internal.h (compile_debug): Likewise.
4251 * compile/compile.c (compile_debug): Likewise.
4252 (struct compile_options) <raw>: Likewise.
4253 * cp-support.c (catch_demangler_crashes): Likewise.
4254 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
4255 (usr_cmd_cris_dwarf2_cfi): Likewise.
4256 * csky-tdep.c (csky_debug): Likewise.
4257 * darwin-nat.c (enable_mach_exceptions): Likewise.
4258 * dcache.c (dcache_enabled_p): Likewise.
4259 * defs.h (info_verbose): Likewise.
4260 * demangle.c (demangle): Likewise.
4261 (asm_demangle): Likewise.
4262 * dwarf-index-cache.c (debug_index_cache): Likewise.
4263 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
4264 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
4265 * dwarf2read.c (check_physname): Likewise.
4266 (use_deprecated_index_sections): Likewise.
4267 (dwarf_always_disassemble): Likewise.
4268 * eval.c (overload_resolution): Likewise.
4269 * event-top.c (set_editing_cmd_var): Likewise.
4270 (exec_done_display_p): Likewise.
4271 * event-top.h (set_editing_cmd_var): Likewise.
4272 (exec_done_display_p): Likewise.
4273 * exec.c (write_files): Likewise.
4274 * fbsd-nat.c (debug_fbsd_lwp): Likewise
4275 (debug_fbsd_nat): Likewise.
4276 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
4277 Likewise.
4278 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
4279 <backtrace_past_entry> Likewise.
4280 * gdb-demangle.h (demangle): Likewise.
4281 (asm_demangle): Likewise.
4282 * gdb_bfd.c (bfd_sharing): Likewise.
4283 * gdbcore.h (write_files): Likewise.
4284 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
4285 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
4286 * gdbthread.h (print_thread_events): Likewise.
4287 * gdbtypes.c (opaque_type_resolution): Likewise.
4288 (strict_type_checking): Likewise.
4289 * gnu-nat.c (gnu_debug_flag): Likewise.
4290 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
4291 * guile/scm-param.c (pascm_variable): Add boolval.
4292 (add_setshow_generic): Update.
4293 (pascm_param_value): Update.
4294 (pascm_set_param_value_x): Update.
4295 * hppa-tdep.c (hppa_debug): Change to bool..
4296 * infcall.c (may_call_functions_p): Likewise.
4297 (coerce_float_to_double_p): Likewise.
4298 (unwind_on_signal_p): Likewise.
4299 (unwind_on_terminating_exception_p): Likewise.
4300 * infcmd.c (startup_with_shell): Likewise.
4301 * inferior.c (print_inferior_events): Likewise.
4302 * inferior.h (startup_with_shell): Likewise.
4303 (print_inferior_events): Likewise.
4304 * infrun.c (step_stop_if_no_debug): Likewise.
4305 (detach_fork): Likewise.
4306 (debug_displaced): Likewise.
4307 (disable_randomization): Likewise.
4308 (non_stop): Likewise.
4309 (non_stop_1): Likewise.
4310 (observer_mode): Likewise.
4311 (observer_mode_1): Likewise.
4312 (set_observer_mode): Update.
4313 (sched_multi): Change to bool.
4314 * infrun.h (debug_displaced): Likewise.
4315 (sched_multi): Likewise.
4316 (step_stop_if_no_debug): Likewise.
4317 (non_stop): Likewise.
4318 (disable_randomization): Likewise.
4319 * linux-tdep.c (use_coredump_filter): Likewise.
4320 (dump_excluded_mappings): Likewise.
4321 * linux-thread-db.c (auto_load_thread_db): Likewise.
4322 (check_thread_db_on_load): Likewise.
4323 * main.c (captured_main_1): Update.
4324 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
4325 xx2_opt, boolean_opt>: Change to bool.
4326 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
4327 * maint.c (maintenance_profile_p): Likewise.
4328 (per_command_time): Likewise.
4329 (per_command_space): Likewise.
4330 (per_command_symtab): Likewise.
4331 * memattr.c (inaccessible_by_default): Likewise.
4332 * mi/mi-main.c (mi_async): Likewise.
4333 (mi_async_1): Likewise.
4334 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
4335 * nat/fork-inferior.h (startup_with_shell): Likewise.
4336 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
4337 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
4338 * nios2-tdep.c (nios2_debug): Likewise.
4339 * or1k-tdep.c (or1k_debug): Likewise.
4340 * parse.c (parser_debug): Likewise.
4341 * parser-defs.h (parser_debug): Likewise.
4342 * printcmd.c (print_symbol_filename): Likewise.
4343 * proc-api.c (procfs_trace): Likewise.
4344 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
4345 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
4346 (set_parameter_value): Update.
4347 (add_setshow_generic): Update.
4348 * python/py-value.c (copy_py_bool_obj): Change argument from int*
4349 to bool*.
4350 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
4351 int*.
4352 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
4353 * record-btrace.c (record_btrace_target::store_registers): Update.
4354 * record-full.c (record_full_memory_query): Change to bool.
4355 (record_full_stop_at_limit): Likewise.
4356 * record-full.h (record_full_memory_query): Likewise.
4357 * remote-notif.c (notif_debug): Likewise.
4358 * remote-notif.h (notif_debug): Likewise.
4359 * remote.c (use_range_stepping): Likewise.
4360 (interrupt_on_connect): Likewise.
4361 (remote_break): Likewise.
4362 * ser-tcp.c (tcp_auto_retry): Likewise.
4363 * ser-unix.c (serial_hwflow): Likewise.
4364 * skip.c (debug_skip): Likewise.
4365 * solib-aix.c (solib_aix_debug): Likewise.
4366 * spu-tdep.c (spu_stop_on_load_p): Likewise.
4367 (spu_auto_flush_cache_p): Likewise.
4368 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
4369 Likewise.
4370 (struct info_print_options) <quiet>: Likewise.
4371 * symfile-debug.c (debug_symfile): Likewise.
4372 * symfile.c (auto_solib_add): Likewise.
4373 (separate_debug_file_debug): Likewise.
4374 * symfile.h (auto_solib_add): Likewise.
4375 (separate_debug_file_debug): Likewise.
4376 * symtab.c (basenames_may_differ): Likewise.
4377 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
4378 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
4379 (struct info_types_options) <quiet>: Likewise.
4380 * symtab.h (demangle): Likewise.
4381 (basenames_may_differ): Likewise.
4382 * target-dcache.c (stack_cache_enabled_1): Likewise.
4383 (code_cache_enabled_1): Likewise.
4384 * target.c (trust_readonly): Likewise.
4385 (may_write_registers): Likewise.
4386 (may_write_memory): Likewise.
4387 (may_insert_breakpoints): Likewise.
4388 (may_insert_tracepoints): Likewise.
4389 (may_insert_fast_tracepoints): Likewise.
4390 (may_stop): Likewise.
4391 (auto_connect_native_target): Likewise.
4392 (target_stop_and_wait): Update.
4393 (target_async_permitted): Change to bool.
4394 (target_async_permitted_1): Likewise.
4395 (may_write_registers_1): Likewise.
4396 (may_write_memory_1): Likewise.
4397 (may_insert_breakpoints_1): Likewise.
4398 (may_insert_tracepoints_1): Likewise.
4399 (may_insert_fast_tracepoints_1): Likewise.
4400 (may_stop_1): Likewise.
4401 * target.h (target_async_permitted): Likewise.
4402 (may_write_registers): Likewise.
4403 (may_write_memory): Likewise.
4404 (may_insert_breakpoints): Likewise.
4405 (may_insert_tracepoints): Likewise.
4406 (may_insert_fast_tracepoints): Likewise.
4407 (may_stop): Likewise.
4408 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
4409 (make_thread_apply_all_options_def_group): Change argument from int*
4410 to bool*.
4411 (thread_apply_all_command): Update.
4412 (print_thread_events): Change to bool.
4413 * top.c (confirm): Likewise.
4414 (command_editing_p): Likewise.
4415 (history_expansion_p): Likewise.
4416 (write_history_p): Likewise.
4417 (info_verbose): Likewise.
4418 * top.h (confirm): Likewise.
4419 (history_expansion_p): Likewise.
4420 * tracepoint.c (disconnected_tracing): Likewise.
4421 (circular_trace_buffer): Likewise.
4422 * typeprint.c (print_methods): Likewise.
4423 (print_typedefs): Likewise.
4424 * utils.c (debug_timestamp): Likewise.
4425 (sevenbit_strings): Likewise.
4426 (pagination_enabled): Likewise.
4427 * utils.h (sevenbit_strings): Likewise.
4428 (pagination_enabled): Likewise.
4429 * valops.c (overload_resolution): Likewise.
4430 * valprint.h (struct value_print_options) <prettyformat_arrays,
4431 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
4432 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
4433 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
4434 Likewise.
4435 * windows-nat.c (new_console): Likewise.
4436 (cygwin_exceptions): Likewise.
4437 (new_group): Likewise.
4438 (debug_exec): Likewise.
4439 (debug_events): Likewise.
4440 (debug_memory): Likewise.
4441 (debug_exceptions): Likewise.
4442 (useshell): Likewise.
4443 * windows-tdep.c (maint_display_all_tib): Likewise.
4444 * xml-support.c (debug_xml): Likewise.
4445
f1b620e9
MG
44462019-09-17 Mike Gulick <mgulick@mathworks.com>
4447
4448 * source.c (prepare_path_for_appending): New function.
4449 (openp): Make use of new function.
4450 (find_and_open_source): Search for the compilation directory and
4451 source file as a relative path beneath the directory search path.
4452
67f3ed6a
AB
44532019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
4454
4455 * source-cache.c (source_cache::get_line_charpos): Catch
4456 exceptions and return false, this matches the behaviour documented
4457 in the header file.
4458
74332189
JB
44592019-09-17 Joel Brobecker <brobecker@adacore.com>
4460
4461 * ada-tasks.c (info_task): Remove quoting of the task's name.
4462
f2f24aa9
CB
44632019-09-16 Christian Biesinger <cbiesinger@google.com>
4464
4465 * symfile.c (auto_solib_add): Replace comment with a reference
4466 to the header file.
4467
6a062a93
CB
44682019-09-14 Christian Biesinger <cbiesinger@google.com>
4469
4470 * NEWS: Mention that gdb can now be compiled with Python 3
4471 on Windows.
4472
ec6c8338
AB
44732019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4474
4475 * maint.c (maint_print_section_data::maint_print_section_data):
4476 Force use of 'float log10 (float)' by casting the argument to
4477 float.
4478
aa17805f
AB
44792019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4480
4481 * maint.c: Add 'cmath' include.
4482 (struct maint_print_section_data): New structure.
4483 (print_section_index): New function.
4484 (print_bfd_section_info): Add header comment, small whitespace
4485 cleanup, and update to call new print_section_index function.
4486 (print_objfile_section_info): Likewise.
4487 (maint_obj_section_from_bfd_section): New function.
4488 (print_bfd_section_info_maybe_relocated): New function.
4489 (maintenance_info_sections): Add header comment, always use
4490 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
4491
3dd9bb46
AB
44922019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
4493
4494 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
4495 inner scope, add check that the objfile has psymtabs before
4496 checking psymtabs_addrmap.
4497 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
4498
4993045d
PW
44992019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4500
4501 * NEWS: Announce that Ada task names are now shown at more places,
4502 and between quotes (except in info task output).
4503 * gdb/ada-tasks.c (task_to_str): New function.
4504 (display_current_task_id): Call task_to_str.
4505 (task_command_1): Likewise.
4506 (print_ada_task_info): In non-mi mode, Properly align headers and data
4507 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
4508
7a289707
RO
45092019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4510
4511 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
4512 prstatus.pr_lwp.pr_info instead of making it up.
4513
f2aec7f6
CB
45142019-09-11 Christian Biesinger <cbiesinger@google.com>
4515
4516 * auto-load.c (auto_load_expand_dir_vars): Update.
4517 * defs.h (gdb_datadir): Change to std::string.
4518 (python_libdir): Likewise.
4519 (relocate_gdb_directory): Change return type to std::string.
4520 * guile/guile.c (gdbscm_data_directory): Update.
4521 (initialize_scheme_side): Update.
4522 * jit.c (jit_reader_dir): Change to std::string.
4523 (jit_reader_load_command): Update.
4524 * main.c (gdb_datadir): Change to std::string.
4525 (python_libdir): Likewise.
4526 (set_gdb_data_directory): Update.
4527 (relocate_path): Change to return std::string.
4528 (relocate_gdb_directory): Change to return std::string.
4529 (relocate_gdbinit_path_maybe_in_datadir): Update.
4530 (captured_main_1): Update.
4531 * python/python.c (do_start_initialization): Update.
4532 * top.c (show_gdb_datadir): Update.
4533 * xml-syscall.c (xml_init_syscalls_info): Update.
4534 (init_syscalls_info): Update.
4535
9224a013
CB
45362019-09-11 Christian Biesinger <cbiesinger@google.com>
4537
4538 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
4539 out of get_init_files.
4540 (get_init_files): Update.
4541
f48cd836
CB
45422019-09-11 Christian Biesinger <cbiesinger@google.com>
4543
4544 * main.c (get_init_files): Change to use std::string.
4545 (captured_main_1): Update.
4546 (print_gdb_help): Update.
4547
9cab7ecd
AT
45482019-09-11 Ali Tamur <tamur@google.com>
4549
4550 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
4551 implementation.
4552
67547d89
CB
45532019-09-11 Christian Biesinger <cbiesinger@google.com>
4554
4555 * dbxread.c (read_dbx_symtab): Update.
4556 * dwarf2read.c (load_partial_dies): Update.
4557 * mdebugread.c (parse_partial_symbols): Update.
4558 (handle_psymbol_enumerators): Update.
4559 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
4560 * psymtab.c (add_psymbol_to_bcache): Likewise.
4561 (add_psymbol_to_list): Likewise.
4562 * symtab.c (symbol_set_names): Likewise.
4563 * symtab.h (symbol_set_names): Likewise.
4564 * xcoffread.c (scan_xcoff_symtab): Update.
4565
64b2d4a0
TT
45662019-09-11 Tom Tromey <tom@tromey.com>
4567
4568 * symfile-mem.c (symbol_file_add_from_memory): Use
4569 bfd_set_filename.
4570 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
4571 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
4572
3b00ef10
TT
45732019-09-10 Tom Tromey <tromey@adacore.com>
4574
4575 * dwarf-index-write.c (write_psymbols): Extend error message.
4576 (debug_names::insert): Add Ada code.
4577 (debug_names::write_psymbols): Remove Ada check.
4578 (debug_names) <m_string_obstack>: New member.
4579 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
4580 (gdb_index_symbol_name_matcher::matches): Remove.
4581 (mapped_index_base::find_name_components_bounds): Add "lang"
4582 parameter.
4583 (mapped_index_base::build_name_components): Also split names
4584 according to Ada syntax.
4585 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
4586 type of "match_callback".
4587 (check_match, check_find_bounds_finds)
4588 (dw2_expand_symtabs_matching): Update.
4589 (dw2_debug_names_iterator): Add new constructor.
4590 (dw2_debug_names_map_matching_symbols): New function.
4591 (dw2_debug_names_expand_symtabs_matching): Update.
4592 (dwarf2_debug_names_functions): Use
4593 dw2_debug_names_map_matching_symbols.
4594
aa391654
TT
45952019-09-10 Tom Tromey <tromey@adacore.com>
4596
4597 * dwarf2read.c (dw2_get_file_names_reader): Add the
4598 CU's file name to the results.
4599
b054970d
TT
46002019-09-10 Tom Tromey <tromey@adacore.com>
4601
4602 * ada-lang.c (add_nonlocal_symbols): Combine calls to
4603 map_matching_symbols. Update.
4604 * dwarf2read.c (dw2_map_matching_symbols): Update.
4605 * psymtab.c (match_partial_symbol): Change type; update.
4606 (psym_map_matching_symbols): Likewise.
4607 * symfile-debug.c (debug_qf_map_matching_symbols): Change
4608 type; update.
4609 * symfile.h (struct quick_symbol_functions)
4610 <map_matching_symbols>: Change "name" to be a lookup_name_info.
4611 Remove "match".
4612
6a3dbf1b
TT
46132019-09-10 Tom Tromey <tromey@adacore.com>
4614
4615 * psymtab.c (map_block): Remove.
4616 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
4617 * symtab.c (iterate_over_symbols_terminated): New function.
4618 * symtab.c (iterate_over_symbols_terminated): Declare.
4619
6969f124
TT
46202019-09-10 Tom Tromey <tromey@adacore.com>
4621
4622 * ada-lang.c (ada_iterate_over_symbols): Return bool.
4623 * language.h (struct language_defn) <la_iterate_over_symbols>:
4624 Return bool.
4625 * symtab.c (iterate_over_symbols): Return bool.
4626 * symtab.h (iterate_over_symbols): Return bool.
4627
199b4314
TT
46282019-09-10 Tom Tromey <tromey@adacore.com>
4629
4630 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
4631 (add_nonlocal_symbols): Update.
4632 * dwarf2read.c (dw2_map_matching_symbols): Change type.
4633 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
4634 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
4635 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
4636 Change type of "callback". Remove "data".
4637
a084a2a6
AT
4638
46392019-09-09 Ali Tamur <tamur@google.com>
4640
4641 * dwarf2read.c (comp_unit_head): Update comment.
4642 (dwarf2_dwo_name): New function declaration.
4643 (dwarf_unit_type_name): New function declaration.
4644 (read_comp_unit_head): Add support for new compilation units,
4645 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
4646 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
4647 (currently named as "signature") in their header. Also clarify error
4648 messages.
4649 (lookup_dwo_id): New function. Returns the dwo id of the given
4650 compile unit.
4651 (lookup_dwo_unit): Use the new lookup_dwo_id function.
4652 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
4653 functions.
4654 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
4655 (dwarf2_dwo_name): Get the dwo name if present.
4656 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
4657 purposes.
4658
25a2915e
TT
46592019-09-09 Tom Tromey <tom@tromey.com>
4660
4661 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
4662
e4df0874
PW
46632019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4664
4665 * python/python.c (do_start_initialization): Make progname_copy static,
4666 to avoid a leak report.
4667
8634b462
TT
46682019-09-08 Tom Tromey <tom@tromey.com>
4669
4670 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
4671
c7f839cb
SM
46722019-09-07 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
4675 Change type to gdb::optional<block_enum>.
4676 (dw2_symtab_iter_init): Change block_index parameter type
4677 to gdb::optional<block_enum>.
4678 (dw2_lookup_symbol): Change block_index parameter
4679 type to block_enum.c
4680 (dw2_debug_names_lookup_symbol): Likewise.
4681 * psymtab.c (psym_lookup_symbol): Likewise.
4682 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
4683 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
4684 Likewise.
4685
ead0e69a
CB
46862019-09-06 Christian Biesinger <cbiesinger@google.com>
4687
4688 * defs.h (relocate_gdb_directory): Change int to bool in
4689 signature and rename flag to relocatable.
4690 * main.c (relocate_path): Likewise.
4691 (relocate_gdb_directory): Likewise.
4692
b16c44de
AM
46932019-09-06 Alan Modra <amodra@gmail.com>
4694
4695 * coffread.c (coff_symfile_read): Constify filename variable.
4696 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
4697 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
4698 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
4699 * solib.c (reload_shared_libraries_1): Likewise.
4700 * symfile.c (reread_symbols): Likewise.
4701 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
4702 * solib-darwin.c (darwin_bfd_open): Likewise.
4703 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
4704
06ff036e
AB
47052019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
4706
4707 * psymtab.c (print_partial_symbols): Handle missing domain_enum
4708 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
4709
4e962e74
TT
47102019-09-03 Tom Tromey <tromey@adacore.com>
4711
4712 * ada-valprint.c (ada_val_print_num): Don't recurse for range
4713 types.
4714 (has_negatives): Unbias a range type bound.
4715 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
4716 * gdbtypes.c (operator==): Handle new field.
4717 (create_range_type): Add "bias" parameter.
4718 (create_static_range_type, resolve_dynamic_range): Update.
4719 * gdbtypes.h (struct range_bounds) <bias>: New member.
4720 (create_range_type): Add bias parameter.
4721 * printcmd.c (print_scalar_formatted): Unbias range types.
4722 * value.c (unpack_long): Unbias range types.
4723 (pack_long): Bias range types.
4724
d90b8f26
AH
47252019-09-02 Alan Hayward <alan.hayward@arm.com>
4726
4727 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
4728 probe arguments.
4729
fe01123e
AH
47302019-09-02 Alan Hayward <alan.hayward@arm.com>
4731
4732 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
4733 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
4734 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
4735 (compile_probe_arg): Likewise.
4736 * probe.h (get_argument_count): Likewise.
4737 * solib-svr4.c (solib_event_probe_action): Likewise.
4738 * stap-probe.c (stap_probe::get_argument_count): Likewise.
4739
e661ef01
AH
47402019-09-02 Alan Hayward <alan.hayward@arm.com>
4741
4742 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
4743 code to here...
4744 (svr4_create_solib_event_breakpoints): ...from here.
4745
47a536d9
SDJ
47462019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
4747
4748 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
4749 suffix from warning message.
4750
d6a00eba
TT
47512019-08-30 Tom Tromey <tom@tromey.com>
4752
4753 * tui/tui-winsource.h (struct tui_source_window_base)
4754 <refresh_all>: Don't declare.
4755 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
4756 Remove.
4757 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
4758 tui_show_locator_content.
4759 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
4760 declare.
4761 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
4762 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
4763 declare.
4764
55b2657b
TT
47652019-08-30 Tom Tromey <tom@tromey.com>
4766
4767 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
4768
12a8555a
TT
47692019-08-30 Tom Tromey <tom@tromey.com>
4770
4771 * tui/tui-stack.c (_initialize_tui_stack): Move later.
4772 Remove unnecessary forward declarations.
4773
900ac242
TT
47742019-08-30 Tom Tromey <tom@tromey.com>
4775
4776 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
4777 rerender.
4778 (tui_update_locator_fullname, tui_show_frame_info): Don't call
4779 tui_show_locator_content.
4780
99ab33fb
TT
47812019-08-30 Tom Tromey <tom@tromey.com>
4782
4783 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
4784 (tui_locator_window::rerender): Rewrite using body of previous
4785 tui_show_locator_content.
4786
e594a5d1
TT
47872019-08-30 Tom Tromey <tom@tromey.com>
4788
4789 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
4790 set_locator_fullname>: New methods.
4791 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
4792 Rename from tui_set_locator_fullname.
4793 (tui_locator_window::set_locator_info): Rename from
4794 tui_set_locator_info. Return bool.
4795 (tui_update_locator_fullname, tui_show_frame_info): Update.
4796
715bb467
TT
47972019-08-30 Tom Tromey <tom@tromey.com>
4798
4799 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
4800
772f3f03
TT
48012019-08-30 Tom Tromey <tom@tromey.com>
4802
4803 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
4804 call touchwin.
4805
108e13ab
TT
48062019-08-30 Tom Tromey <tom@tromey.com>
4807
4808 * tui/tui-wingeneral.c (box_win): Assume win_info and
4809 win_info->handle cannot be NULL.
4810
cdaa6eb4
TT
48112019-08-30 Tom Tromey <tom@tromey.com>
4812
4813 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
4814 refresh_window>: Declare.
4815 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
4816 resize.
4817 (tui_data_item_window::rerender): Rename from
4818 tui_display_register.
4819 (tui_data_item_window::refresh_window): New method.
4820 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
4821 no-op.
4822
89df7f90
TT
48232019-08-30 Tom Tromey <tom@tromey.com>
4824
4825 * tui/tui-regs.h (struct tui_data_window) <regs_content,
4826 regs_column_count, current_group>: Move later. Now private.
4827 <get_current_group>: New method.
4828 * tui/tui-regs.c (tui_reg_command): Update.
4829 * tui/tui-layout.c (tui_set_layout): Update.
4830
1bf2866a
TT
48312019-08-30 Tom Tromey <tom@tromey.com>
4832
4833 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
4834 (tui_data_window::rerender): Don't call
4835 check_and_display_highlight_if_needed.
4836 (tui_data_window::refresh_all): Remove call to
4837 erase_data_content.
4838
0670413d
TT
48392019-08-30 Tom Tromey <tom@tromey.com>
4840
4841 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
4842 (tui_data_window::display_registers_from)
4843 (tui_data_window::display_reg_element_at_line)
4844 (tui_data_window::display_registers_from_line): Remove checks of
4845 "empty".
4846
18bb55c7
TT
48472019-08-30 Tom Tromey <tom@tromey.com>
4848
4849 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
4850 Don't declare.
4851 * tui/tui-regs.c (tui_data_window::show_registers): Call
4852 rerender.
4853 (tui_data_window::rerender): Rename from display_all_data.
4854 (tui_data_window::rerender): Remove old implementation.
4855
1f6d2f10
TT
48562019-08-30 Tom Tromey <tom@tromey.com>
4857
4858 * tui/tui-regs.c (tui_data_window::display_all_data): Change
4859 text.
4860 * tui/tui-data.h (NO_DATA_STRING): Remove define.
4861
16d01f9c
BW
48622019-08-29 Bernhard Wodok <barto@gmx.net>
4863 Sergio Durigan Junior <sergiodj@redhat.com>
4864
4865 PR win32/24284
4866 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
4867
d8f27c60
AB
48682019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4869
4870 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
4871 when searching for types.
4872
1f20c35e
AB
48732019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
4874
4875 * f-lang.c (f_language_defn): Use f_print_typedef.
4876 * f-lang.h (f_print_typedef): Declare.
4877 * f-typeprint.c (f_print_typedef): Define.
4878
550105b7
CB
48792019-08-27 Christian Biesinger <cbiesinger@google.com>
4880
4881 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
4882
4acfdd20
AB
48832019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
4884
4885 * cli/cli-utils.c (info_print_options_defs): Delete.
4886 (make_info_print_options_def_group): Delete.
4887 (extract_info_print_options): Delete.
4888 (info_print_command_completer): Delete.
4889 (info_print_args_help): Add extra parameter, and optionally
4890 include text about -n flag.
4891 * cli/cli-utils.h (struct info_print_options): Delete.
4892 (extract_info_print_options): Delete declaration.
4893 (info_print_command_completer): Delete declaration.
4894 (info_print_args_help): Add extra parameter, extend header
4895 comment.
4896 * python/python.c (gdbpy_rbreak): Pass additional parameter to
4897 search_symbols.
4898 * stack.c (struct info_print_options): New type.
4899 (info_print_options_defs): New file scoped variable.
4900 (make_info_print_options_def_group): New static function.
4901 (info_print_command_completer): New static function.
4902 (info_locals_command): Update to use new local functions.
4903 (info_args_command): Likewise.
4904 (_initialize_stack): Add extra parameter to calls to
4905 info_print_args_help.
4906 * symtab.c (search_symbols): Add extra parameter, use this to
4907 possibly excluse non-debug symbols.
4908 (symtab_symbol_info): Add extra parameter, which is passed on to
4909 search_symbols.
4910 (struct info_print_options): New type.
4911 (info_print_options_defs): New file scoped variable.
4912 (make_info_print_options_def_group): New static function.
4913 (info_print_command_completer): New static function.
4914 (info_variables_command): Update to use local functions, and pass
4915 extra parameter through to symtab_symbol_info.
4916 (info_functions_command): Likewise.
4917 (info_types_command): Pass additional argument through to
4918 symtab_symbol_info.
4919 (rbreak_command): Pass extra argument to search_symbols.
4920 (_initialize_symtab): Add extra arguments for calls to
4921 info_print_args_help, and update help text for 'info variables',
4922 'whereis', and 'info functions' commands.
4923 * symtab.h (search_symbols): Add extra argument to declaration.
4924 * NEWS: Mention new flags.
4925
9aa55206
CB
49262019-08-26 Christian Biesinger <cbiesinger@google.com>
4927
4928 * symtab.c (lookup_static_symbol): Call the new function (and move
4929 it down to be next to lookup_global_symbol).
4930 (struct global_sym_lookup_data): Add block_enum member and rename to...
4931 (struct global_or_static_sym_lookup_data): ...this.
4932 (lookup_symbol_global_iterator_cb): Pass block_index instead of
4933 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
4934 (lookup_symbol_global_or_static_iterator_cb): ...this.
4935 (lookup_global_or_static_symbol): New function.
4936 (lookup_global_symbol): Call new function.
4937
5c31b358
TV
49382019-08-26 Tom de Vries <tdevries@suse.de>
4939
4940 PR c++/24852
4941 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
4942 when pc_probe.prob == NULL.
4943
23c13d42
SM
49442019-08-25 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
4947 variable symbol_linkage to symbol_linkage_.
4948
beadd3e8
SM
49492019-08-25 Simon Marchi <simon.marchi@efficios.com>
4950
4951 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
4952 represent whether the symbol is static, dynamic, or we don't
4953 know.
4954
e3ec872f
YS
49552019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
4956
4957 * gdb/rx-tdep.c (rx_register_names): New.
4958 (rx_register_name): Delete.
4959 (rx_psw_type): Delete.
4960 (rx_fpsw_type): Delete.
4961 (rx_register_type): Delete.
4962 (rx_gdbarch_init): Convert target-descriptions.
4963 (_initialize_rx_tdep): Add initialize_tdesc_rx.
4964 * gdb/features/Makefile: Add rx.xml.
4965 * gdb/features/rx.xml: New.
4966 * gdb/features/rx.c: Generated.
4967 * gdb/NEWS: Mention target description support.
4968
d0509ba4
CB
49692019-08-22 Christian Biesinger <cbiesinger@google.com>
4970
4971 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
4972 *slot_ptr.
4973
2d41fa11
SDJ
49742019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4975
4976 * configure.ac: Don't check for 'dlfcn.h' (moved to
4977 gdbsupport/common.m4).
4978 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
4979 'gdbsupport/'.
4980 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
4981 * compile/compile-c-support.c: Include
4982 'gdbsupport/gdb-dlfcn.h'.
4983 * gdbsupport/common.m4: Check for 'dlfcn.h'.
4984 * gdb-dlfcn.c: Move to...
4985 * gdbsupport/gdb-dlfcn.c: ... here.
4986 * gdb-dlfcn.h: Move to...
4987 * gdbsupport/gdb-dlfcn.h: ... here.
4988
de8af808
SL
49892019-08-23 Sandra Loosemore <sandra@codesourcery.com>
4990
4991 * nios2-tdep.c (struct reg_value): Improve comments. Make
4992 the offset field signed.
4993
27204489
CB
49942019-08-22 Christian Biesinger <cbiesinger@google.com>
4995
4996 * python/lib/gdb/__init__.py (_execute_file): New function.
4997 * python/python.c (python_run_simple_file): Call gdb._execute_file
4998 on Windows.
4999
43771869
AB
50002019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
5001
5002 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
5003 all uses as this was never set to anything but a zero value.
5004
26c957f1
PA
50052019-08-21 Bogdan Harjoc <harjoc@gmail.com>
5006
5007 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
5008
c07aae6e
CB
50092019-08-21 Christian Biesinger <cbiesinger@google.com>
5010
5011 * tui/tui-data.h (tui_gen_win_info): Add an =default
5012 move constructor, required by some GCC versions.
5013
3960cb7a
JF
50142019-08-21 Jinke Fan <fanjinke51@yeah.net>
5015
5016 * go32-nat.c (go32_sysinfo): Add hygon_p.
5017
04c72a68
TT
50182019-08-20 Tom Tromey <tom@tromey.com>
5019
5020 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
5021 line_from_reg_element_no, first_reg_element_no_inline,
5022 display_all_data, delete_data_content_windows,
5023 erase_data_content>: Now private.
5024
072272ce
TT
50252019-08-20 Tom Tromey <tom@tromey.com>
5026
5027 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
5028 (tui_unhighlight_win, tui_highlight_win)
5029 (tui_win_info::make_window): Update.
5030 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
5031
973961bd
TT
50322019-08-20 Tom Tromey <tom@tromey.com>
5033
5034 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5035 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5036 (MAX_PID_WIDTH): Move to tui-stack.c.
5037 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
5038 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
5039 (MAX_PID_WIDTH): Move from tui-data.h.
5040
ab0e1f1a
TT
50412019-08-20 Tom Tromey <tom@tromey.com>
5042
5043 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
5044 * tui/tui-wingeneral.c (box_win): Change type of win_info.
5045 (box_win): Update.
5046 (tui_gen_win_info::make_window): Rename from tui_make_window.
5047 (tui_win_info::make_window): New method.
5048 (tui_gen_win_info::make_visible): Update.
5049 * tui/tui-source.c (tui_source_window::set_contents): Update.
5050 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
5051 (tui_data_window::display_registers_from): Update.
5052 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
5053 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
5054 Declare.
5055 <can_box>: Remove.
5056 <title>: Remove.
5057 (struct tui_win_info) <make_window>: Declare.
5058 <can_box>: Now virtual.
5059 <title>: New member.
5060 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
5061 * tui/tui-command.c (tui_cmd_window::resize): Update.
5062
100c2bf3
TT
50632019-08-20 Tom Tromey <tom@tromey.com>
5064
5065 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
5066 * tui/tui-regs.c (tui_data_window::show_registers): Update.
5067 (tui_data_window::check_register_values): Update.
5068
fa4dc567
TT
50692019-08-20 Tom Tromey <tom@tromey.com>
5070
5071 * tui/tui-regs.h (struct tui_data_window): Use
5072 DISABLE_COPY_AND_ASSIGN.
5073 <regs_content>: Change type, removing unique_ptr.
5074 <tui_data_window>: Add move constructor.
5075 * tui/tui-regs.c (tui_data_window::show_registers)
5076 (tui_data_window::show_register_group)
5077 (tui_data_window::display_registers_from)
5078 (tui_data_window::display_registers_from)
5079 (tui_data_window::first_data_item_displayed)
5080 (tui_data_window::delete_data_content_windows)
5081 (tui_data_window::rerender, tui_data_window::refresh_window)
5082 (tui_data_window::check_register_values): Update.
5083
ca02d7c8
TT
50842019-08-20 Tom Tromey <tom@tromey.com>
5085
5086 * tui/tui-regs.h (struct tui_data_window) <show_registers,
5087 show_register_group>: Declare.
5088 (tui_show_register_group): Don't declare.
5089 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
5090 tui_show_registers.
5091 (tui_data_window::show_register_group): Rename from
5092 tui_show_register_group.
5093 (tui_data_window::check_register_values, tui_reg_command):
5094 Update.
5095 * tui/tui-layout.c (tui_set_layout): Update.
5096
63356bfd
TT
50972019-08-20 Tom Tromey <tom@tromey.com>
5098
5099 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
5100 Declare.
5101 (tui_check_register_values): Don't declare.
5102 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
5103 from tui_check_register_values.
5104 * tui/tui-hooks.c (tui_register_changed): Update.
5105
42cc14a7
TT
51062019-08-20 Tom Tromey <tom@tromey.com>
5107
5108 * tui/tui-regs.c (tui_reg_layout): Move later.
5109 (tui_show_registers): Don't enable TUI mode or change layout.
5110
b9ad3686
TT
51112019-08-20 Tom Tromey <tom@tromey.com>
5112
5113 * tui/tui-regs.h (struct tui_data_item_window)
5114 <~tui_data_item_window>: Remove.
5115 <content>: Now a unique_xmalloc_ptr.
5116 * tui/tui-regs.c (tui_register_format): Return a
5117 unique_xmalloc_ptr.
5118 (tui_get_register): Update.
5119 (~tui_data_item_window): Remove.
5120 (tui_data_window::display_registers_from, tui_display_register):
5121 Update.
5122 * tui/tui-io.h (tui_expand_tabs): Update.
5123 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
5124 Remove "col" parameter.
5125
8e114aab
TT
51262019-08-20 Tom Tromey <tom@tromey.com>
5127
5128 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
5129 field.
5130 * tui/tui-regs.c (~tui_data_item_window): Update.
5131
1a4f81dd
TT
51322019-08-20 Tom Tromey <tom@tromey.com>
5133
5134 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
5135 earlier.
5136
0f8d8876
TT
51372019-08-20 Tom Tromey <tom@tromey.com>
5138
5139 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
5140
605dc2c2
TT
51412019-08-20 Tom Tromey <tom@tromey.com>
5142
5143 * tui/tui-source.h (struct tui_source_window): Update.
5144 * tui/tui-regs.c (tui_show_registers): Update.
5145 * tui/tui-disasm.h (struct tui_disasm_window): Update.
5146 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
5147 (NO_REGS_STRING): Remove defines.
5148
aedbe3bb
CM
51492019-08-20 Conrad Meyer <cem@FreeBSD.org>
5150
5151 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
5152 unnecessary thread walk if remote doesn't support the packet.
5153
7ce8f214
TT
51542019-08-19 Tom Tromey <tromey@adacore.com>
5155
5156 * python/py-value.c (value_has_field): Fix indentation.
5157
f21c2bd7
TT
51582019-08-19 Tom Tromey <tromey@adacore.com>
5159
5160 * printcmd.c (do_one_display, info_display_command): Update.
5161 * block.h (contained_in): Return bool. Add allow_nested
5162 parameter.
5163 * block.c (contained_in): Return bool. Add allow_nested
5164 parameter.
5165
d806ea2d
TT
51662019-08-19 Tom Tromey <tom@tromey.com>
5167
5168 * configure: Rebuild.
5169 * configure.ac: Disallow the combination of -static-libstdc++ and
5170 source highlight.
5171 * source-cache.c (get_language_name): Handle rust.
5172 (source_cache::get_source_lines): Ignore highlighting exceptions.
5173
398fdd60
TT
51742019-08-16 Tom Tromey <tom@tromey.com>
5175
5176 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
5177 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
5178 (struct tui_source_window_base) <make_visible, refresh_window,
5179 resize>: Remove methods.
5180 <execution_info>: Remove field.
5181 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
5182 (tui_show_source_line, tui_source_window_base)
5183 (~tui_source_window_base): Update.
5184 (tui_source_window_base::resize)
5185 (tui_source_window_base::make_visible)
5186 (tui_source_window_base::refresh_window): Remove.
5187 (tui_source_window_base::update_exec_info): Update.
5188 * tui/tui-source.c (tui_source_window::set_contents): Update.
5189 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
5190
e699d331
TT
51912019-08-16 Tom Tromey <tom@tromey.com>
5192
5193 * tui/tui-hooks.c (tui_remove_hooks): Don't set
5194 deprecated_query_hook.
5195
bb01dbfc
TT
51962019-08-16 Tom Tromey <tom@tromey.com>
5197
5198 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
5199 (tui_update_source_windows_with_line): Update.
5200 * tui/tui-source.h (struct tui_source_window)
5201 <show_symtab_source>: Declare.
5202 (tui_show_symtab_source): Don't declare.
5203 * tui/tui-source.c (tui_show_symtab_source): Rename from
5204 tui_show_symtab_source.
5205
81c82c4b
TT
52062019-08-16 Tom Tromey <tom@tromey.com>
5207
5208 * tui/tui-winsource.h (struct tui_source_window_base)
5209 <set_contents>: Declare.
5210 * tui/tui-winsource.c
5211 (tui_source_window_base::update_source_window_as_is): Update.
5212 * tui/tui-source.h (struct tui_source_window) <set_contents>:
5213 Declare.
5214 (tui_set_source_content): Don't declare.
5215 * tui/tui-source.c (tui_source_window::set_contents): Rename from
5216 tui_set_source_content.
5217 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
5218 Declare.
5219 (tui_set_disassem_content): Don't declare.
5220 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
5221 tui_set_disassem_content.
5222
2ddaf614
TT
52232019-08-16 Tom Tromey <tom@tromey.com>
5224
5225 * tui/tui-winsource.h (struct tui_source_window_base)
5226 <update_breakpoint_info>: Declare.
5227 (tui_update_breakpoint_info): Don't declare.
5228 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
5229 (tui_update_all_breakpoint_info): Update.
5230 (tui_source_window_base::update_breakpoint_info): Rename from
5231 tui_update_breakpoint_info.
5232 (tui_source_window_base::update_exec_info): Update.
5233
017f9828
TT
52342019-08-16 Tom Tromey <tom@tromey.com>
5235
5236 * tui/tui-winsource.h (struct tui_source_window_base)
5237 <update_source_window>: Declare.
5238 (tui_update_source_window): Don't declare.
5239 * tui/tui-winsource.c
5240 (tui_source_window_base::update_source_window): Rename from
5241 tui_update_source_window.
5242 (tui_source_window_base::rerender): Update.
5243 * tui/tui-source.c (tui_source_window::maybe_update): Update.
5244 * tui/tui-disasm.c (tui_show_disassem)
5245 (tui_show_disassem_and_update_source)
5246 (tui_disasm_window::maybe_update): Update.
5247
ed8358e9
TT
52482019-08-16 Tom Tromey <tom@tromey.com>
5249
5250 * tui/tui-winsource.h (struct tui_source_window_base)
5251 <update_source_window_as_is>: Declare.
5252 (tui_update_source_window_as_is): Don't declare.
5253 * tui/tui-winsource.c (tui_update_source_window): Update
5254 (tui_source_window_base::update_source_window_as_is): Rename from
5255 tui_update_source_window_as_is.
5256 (tui_source_window_base::refill): Update.
5257 * tui/tui-source.c (tui_show_symtab_source): Update.
5258 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
5259 Update.
5260
20149b6b
TT
52612019-08-16 Tom Tromey <tom@tromey.com>
5262
5263 * tui/tui-winsource.h (tui_update_source_window)
5264 (tui_update_source_window_as_is): Remove "noerror" parameter.
5265 * tui/tui-winsource.c (tui_update_source_window)
5266 (tui_update_source_window_as_is): Remove "noerror" parameter.
5267 (tui_update_source_windows_with_addr)
5268 (tui_update_source_windows_with_line)
5269 (tui_source_window_base::rerender)
5270 (tui_source_window_base::refill): Update.
5271 * tui/tui-source.h (tui_set_source_content)
5272 (tui_show_symtab_source): Remove "noerror" parameter.
5273 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
5274 parameter.
5275 (tui_show_symtab_source): Likewise.
5276 (tui_source_window::maybe_update): Update.
5277 * tui/tui-disasm.c (tui_show_disassem)
5278 (tui_show_disassem_and_update_source)
5279 (tui_disasm_window::do_scroll_vertical)
5280 (tui_disasm_window::maybe_update): Update.
5281
2d83e710
TT
52822019-08-16 Tom Tromey <tom@tromey.com>
5283
5284 * tui/tui.c (tui_is_window_visible): Update.
5285 * tui/tui-wingeneral.c (tui_make_window)
5286 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
5287 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
5288 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
5289 (tui_set_win_height_command, parse_scrolling_args): Update.
5290 * tui/tui-source.c (tui_source_window::style_changed): Update.
5291 * tui/tui-regs.c (tui_show_registers)
5292 (tui_data_window::first_data_item_displayed)
5293 (tui_data_window::delete_data_content_windows)
5294 (tui_check_register_values, tui_reg_command): Update.
5295 * tui/tui-disasm.c (tui_show_disassem): Update.
5296 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
5297 method.
5298 <is_visible>: Remove field.
5299 * tui/tui-data.c (tui_next_win, tui_prev_win)
5300 (tui_delete_invisible_windows): Update.
5301
d4ab829a
TT
53022019-08-16 Tom Tromey <tom@tromey.com>
5303
5304 * tui/tui-winsource.h (struct tui_source_window_base)
5305 <m_has_locator>: Remove.
5306 * tui/tui-layout.c (show_source_disasm_command, show_data)
5307 (show_source_or_disasm_and_command): Update.
5308
aa7ca1bb
AH
53092019-08-16 Alan Hayward <alan.hayward@arm.com>
5310
5311 * NEWS (Other MI changes): New subsection.
5312 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
5313 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
5314 * arch-utils.c (default_get_pc_address_flags): New function.
5315 * arch-utils.h (default_get_pc_address_flags): New declaration.
5316 * gdbarch.sh: Add get_pc_address_flags.
5317 * gdbarch.c: Regenerate.
5318 * gdbarch.h: Likewise.
5319 * stack.c (print_pc): New function.
5320 (print_frame_info) (print_frame): Call print_pc.
5321
6eac171f
TV
53222019-08-16 Tom de Vries <tdevries@suse.de>
5323
5324 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
5325 print_objfile_section_info.
5326
3df505f6
TT
53272019-08-15 Tom Tromey <tom@tromey.com>
5328
5329 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
5330 calling update_cmdwin_start_line.
5331 * tui/tui-winsource.h (struct tui_source_window_base)
5332 <do_make_visible_with_new_height, set_new_height>: Don't declare.
5333 <rerender>: Declare.
5334 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
5335 Call rerender.
5336 (tui_source_window_base::set_new_height): Remove.
5337 (tui_source_window_base::rerender): Rename from
5338 do_make_visible_with_new_height.
5339 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
5340 resize method.
5341 (tui_win_info::make_invisible_and_set_new_height)
5342 (tui_win_info::make_visible_with_new_height): Remove.
5343 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
5344 Declare.
5345 * tui/tui-stack.c (tui_locator_window::rerender): New method.
5346 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
5347 do_make_visible_with_new_height>: Don't declare.
5348 <rerender>: Declare.
5349 * tui/tui-regs.c (tui_data_window::rerender): Rename from
5350 set_new_height.
5351 (tui_data_window::do_make_visible_with_new_height): Remove.
5352 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
5353 call tui_show_locator_content.
5354 (tui_gen_win_info::resize): Call rerender.
5355 (show_source_or_disasm_and_command): Don't call
5356 tui_show_locator_content.
5357 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
5358 method.
5359 (struct tui_win_info) <rerender>: Declare.
5360 <set_new_height, make_invisible_and_set_new_height,
5361 make_visible_with_new_height>: Don't declare.
5362 * tui/tui-data.c (tui_win_list::rerender): New method.
5363 * tui/tui-command.h (struct tui_cmd_window)
5364 <do_make_visible_with_new_height>: Don't declare.
5365 * tui/tui-command.c
5366 (tui_cmd_window::do_make_visible_with_new_height): Remove.
5367
272560b5
TT
53682019-08-15 Tom Tromey <tromey@adacore.com>
5369
5370 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
5371 * ada-lang.c (ada_enum_name): Likewise.
5372
08235187
CB
53732019-08-15 Christian Biesinger <cbiesinger@google.com>
5374
5375 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
5376 leading underscore.
5377 (GdbOutputErrorFile): Likewise.
5378 (global scope): Adjust constructor calls to GdbOutput{,Error}File
5379 accordingly.
5380 (execute_unwinders): Rename to have a leading underscore.
5381 (auto_load_packages): Likewise.
5382 (global scope): Adjust call to auto_load_packages accordingly.
5383 (GdbSetPythonDirectory): Likewise.
5384 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
5385 instead of execute_unwinders.
5386
db502012
TT
53872019-08-15 Tom Tromey <tom@tromey.com>
5388
5389 * tui/tui-layout.c (show_layout, show_source_disasm_command)
5390 (show_data): Don't change window visibility.
5391 (tui_gen_win_info::resize): Remove special case for command
5392 window. Use wresize, when available.
5393 (show_source_or_disasm_and_command): Don't change window
5394 visibility.
5395 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
5396 <make_visible>: New method.
5397 * tui/tui-command.c (tui_cmd_window::resize): New method.
5398
3891b65e
TT
53992019-08-15 Tom Tromey <tom@tromey.com>
5400
5401 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
5402 (struct tui_source_windows): New.
5403 * tui/tui-winsource.c (tui_display_main): Update.
5404 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5405 (new_height_ok, parse_scrolling_args): Update.
5406 * tui/tui-layout.c (show_layout, show_data): Update.
5407 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
5408 (tui_add_to_source_windows): Don't declare.
5409 * tui/tui-data.c (source_windows, tui_source_windows)
5410 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
5411
ee556432
TT
54122019-08-15 Tom Tromey <tom@tromey.com>
5413
5414 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
5415 Rename from reset.
5416 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
5417 * tui/tui-layout.c (show_source_disasm_command, show_data):
5418 Update.
5419 (tui_gen_win_info::resize): Rename.
5420 (show_source_or_disasm_and_command): Update.
5421 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
5422 reset.
5423
46f438e3
TT
54242019-08-15 Tom Tromey <tom@tromey.com>
5425
5426 * tui/tui-stack.c (tui_initialize_static_data): Remove.
5427 * tui/tui-interp.c (tui_interp::init): Don't call
5428 tui_initialize_static_data.
5429 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
5430
f4ce562c
TT
54312019-08-15 Tom Tromey <tom@tromey.com>
5432
5433 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
5434 examine tui_win_list.
5435
c398c3d0
TT
54362019-08-15 Tom Tromey <tom@tromey.com>
5437
5438 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
5439 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
5440 tui_clear_source_content.
5441 (tui_clear_source_content): Remove.
5442 (tui_source_window_base::do_erase_source_content): Hoist call to
5443 content.clear().
5444 * tui/tui-stack.c (tui_show_frame_info): Don't call
5445 tui_clear_source_content.
5446
e25d2004
TT
54472019-08-15 Tom Tromey <tom@tromey.com>
5448
5449 * tui/tui-winsource.h (struct tui_source_window_base)
5450 <do_erase_source_content>: New method.
5451 <erase_source_content>: New method.
5452 (tui_erase_source_content): Don't declare.
5453 * tui/tui-winsource.c (tui_clear_source_content): Update.
5454 (tui_source_window_base::do_erase_source_content): Rename from
5455 tui_erase_source_content.
5456 (tui_source_window_base::show_source_content): Update.
5457 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5458 * tui/tui-source.h (struct tui_source_window)
5459 <erase_source_content>: New method.
5460 * tui/tui-disasm.h (struct tui_disasm_window)
5461 <erase_source_content>: New method.
5462
002f15c2
TT
54632019-08-15 Tom Tromey <tom@tromey.com>
5464
5465 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
5466 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
5467 constructor.
5468 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
5469 * tui/tui-source.c (tui_set_source_content): Update.
5470 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5471
c9033fe8
TT
54722019-08-15 Tom Tromey <tom@tromey.com>
5473
5474 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
5475 * tui/tui-winsource.c (tui_line_is_displayed): Move to
5476 tui-source.c.
5477 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
5478 Declare.
5479 * tui/tui-source.c (tui_source_window::line_is_displayed): New
5480 method.
5481 (tui_source_window::maybe_update): Update.
5482
088f37dd
TT
54832019-08-15 Tom Tromey <tom@tromey.com>
5484
5485 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
5486 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
5487 tui-disasm.c.
5488 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
5489 Declare.
5490 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
5491 method.
5492 (tui_disasm_window::maybe_update): Update.
5493
a54700c6
TT
54942019-08-15 Tom Tromey <tom@tromey.com>
5495
5496 * tui/tui-winsource.h (struct tui_source_window_base)
5497 <maybe_update>: Declare.
5498 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
5499 method.
5500 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
5501 Declare.
5502 * tui/tui-source.c (tui_source_window::maybe_update): New method.
5503 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
5504 Declare.
5505 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
5506
e2a678a5
TT
55072019-08-15 Tom Tromey <tom@tromey.com>
5508
5509 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
5510
f2dda477
TT
55112019-08-15 Tom Tromey <tom@tromey.com>
5512
5513 * tui/tui-wingeneral.c: Include tui-stack.h.
5514 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
5515 (struct tui_locator_window): Move from tui-data.h.
5516 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
5517 (tui_initialize_static_data): Move from tui-data.c.
5518 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
5519 (struct tui_locator_window): Move to tui-stack.c.
5520 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
5521 (tui_initialize_static_data): Move to tui-stack.c.
5522
ed4a1084
TT
55232019-08-15 Tom Tromey <tom@tromey.com>
5524
5525 * tui/tui-layout.c (show_source_disasm_command)
5526 (show_source_or_disasm_and_command): Use make_visible method, not
5527 tui_make_window.
5528 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
5529 Remove.
5530
65962b20
TT
55312019-08-15 Tom Tromey <tom@tromey.com>
5532
5533 * tui/tui-wingeneral.h (tui_make_window): Update.
5534 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
5535 parameter.
5536 (tui_gen_win_info::make_visible): Update.
5537 * tui/tui-regs.c (tui_data_window::display_registers_from):
5538 Update.
5539 * tui/tui-layout.c (show_source_disasm_command)
5540 (show_source_or_disasm_and_command): Update.
5541 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
5542 (enum tui_box): Remove.
5543 (struct tui_win_info) <can_box>: New method.
5544 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
5545 method.
5546
2208ee91
TV
55472019-08-15 Tom de Vries <tdevries@suse.de>
5548
5549 * linux-nat-trad.c: Include gdbarch.h.
5550
75faf5c4
AH
55512019-08-14 Alan Hayward <alan.hayward@arm.com>
5552
5553 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
5554 register sizes.
5555
b1c896b3
TT
55562019-08-14 Tom Tromey <tromey@adacore.com>
5557
5558 * darwin-nat.c: Include gdbarch.h.
5559 * darwin-nat-info.c: Include gdbarch.h.
5560
6405cd73
TT
55612019-08-13 Tom Tromey <tom@tromey.com>
5562
5563 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
5564 Remove.
5565 * tui/tui-data.c (tui_initialize_static_data): Update.
5566
5216580d
TT
55672019-08-13 Tom Tromey <tom@tromey.com>
5568
5569 * tui/tui-winsource.h (struct tui_exec_info_window)
5570 <~tui_exec_info_window, maybe_allocate_content, get_content,
5571 m_content>: Remove.
5572 (struct tui_source_window_base) <set_exec_info_content,
5573 show_exec_info_content>: Don't declare.
5574 * tui/tui-winsource.c
5575 (tui_exec_info_window::maybe_allocate_content): Remove.
5576 (tui_source_window_base::update_exec_info): Rename from
5577 set_exec_info_content.
5578 (tui_source_window_base::show_exec_info_content)
5579 (tui_source_window_base::update_exec_info): Remove.
5580
93858ad3
TT
55812019-08-13 Tom Tromey <tom@tromey.com>
5582
5583 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
5584 declare.
5585 * tui/tui-winsource.c (tui_update_source_window_as_is)
5586 (tui_update_source_windows_with_addr, tui_erase_source_content):
5587 Update.
5588 (tui_clear_exec_info_content): Remove.
5589
e321e7ce
TT
55902019-08-13 Tom Tromey <tom@tromey.com>
5591
5592 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
5593 declare.
5594 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
5595 call tui_erase_exec_info_content.
5596 (tui_clear_exec_info_content): Rename from
5597 tui_erase_exec_info_content.
5598 (tui_clear_exec_info_content): Delete.
5599
8270ac62
TT
56002019-08-13 Tom Tromey <tom@tromey.com>
5601
5602 * tui/tui-winsource.h (struct tui_source_window_base)
5603 <show_exec_info_content>: Declare.
5604 (tui_show_exec_info_content): Don't declare.
5605 * tui/tui-winsource.c
5606 (tui_source_window_base::show_exec_info_content): Rename from
5607 tui_show_exec_info_content.
5608 (tui_source_window_base::update_exec_info): Update.
5609
7b56485d
TT
56102019-08-13 Tom Tromey <tom@tromey.com>
5611
5612 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
5613 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
5614 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
5615 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
5616 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
5617 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
5618 ... here.
5619
7ba913dc
TT
56202019-08-13 Tom Tromey <tom@tromey.com>
5621
5622 * tui/tui-winsource.h (struct tui_source_window_base)
5623 <update_exec_info>: Declare.
5624 (tui_update_exec_info): Don't declare.
5625 * tui/tui-winsource.c (tui_update_source_window_as_is)
5626 (tui_source_window_base::refresh_all)
5627 (tui_update_all_breakpoint_info): Update.
5628 (tui_source_window_base::update_exec_info): Rename from
5629 tui_update_exec_info.
5630 * tui/tui-stack.c (tui_show_frame_info): Update.
5631
37a4a131
TT
56322019-08-13 Tom Tromey <tom@tromey.com>
5633
5634 * tui/tui-winsource.h (struct tui_source_window_base)
5635 <set_exec_info_content>: Declare.
5636 (tui_set_exec_info_content): Don't declare.
5637 * tui/tui-winsource.c
5638 (tui_source_window_base::set_exec_info_content): Rename from
5639 tui_set_exec_info_content.
5640 (tui_update_exec_info): Update.
5641
0bd27e07
TT
56422019-08-13 Tom Tromey <tom@tromey.com>
5643
5644 * tui/tui-winsource.h (struct tui_source_window_base)
5645 <show_source_content>: Declare.
5646 (tui_show_source_content): Don't declare.
5647 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
5648 (tui_source_window_base::show_source_content): Rename from
5649 tui_show_source_content.
5650 (tui_source_window_base::refresh_all): Update.
5651 * tui/tui-layout.c (show_source_disasm_command)
5652 (show_source_or_disasm_and_command): Update.
5653
b4ef5aeb
TT
56542019-08-13 Tom Tromey <tom@tromey.com>
5655
5656 * tui/tui-winsource.c (tui_erase_source_content)
5657 (tui_show_source_content, tui_source_window_base::refresh_all):
5658 Update.
5659 * tui/tui-wingeneral.h
5660 (tui_check_and_display_highlight_if_needed): Don't declare.
5661 * tui/tui-wingeneral.c
5662 (tui_win_info::check_and_display_highlight_if_needed): Rename from
5663 check_and_display_highlight_if_needed.
5664 * tui/tui-win.c (tui_rehighlight_all)
5665 (tui_win_info::make_visible_with_new_height): Update.
5666 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
5667 (tui_data_window::erase_data_content)
5668 (tui_data_window::display_all_data): Update.
5669 * tui/tui-data.h (struct tui_win_info)
5670 <check_and_display_highlight_if_needed>: Declare.
5671
fede5273
TT
56722019-08-13 Tom Tromey <tom@tromey.com>
5673
5674 * tui/tui-win.c (tui_resize_all): Call
5675 tui_delete_invisible_windows.
5676 * tui/tui-layout.c (show_layout): Call
5677 tui_delete_invisible_windows.
5678 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
5679 * tui/tui-data.c (tui_delete_invisible_windows): New function.
5680
22c3f490
TT
56812019-08-13 Tom Tromey <tom@tromey.com>
5682
5683 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
5684 tui_add_win_to_layout.
5685
16cb7910
TT
56862019-08-13 Tom Tromey <tom@tromey.com>
5687
5688 * tui/tui-layout.h (tui_default_win_height): Don't declare.
5689 * tui/tui-layout.c (tui_default_win_height): Now static.
5690
cc0c3ffb
TT
56912019-08-13 Tom Tromey <tom@tromey.com>
5692
5693 * tui/tui-layout.c (show_layout): Unify all layout cases into a
5694 single switch.
5695 (show_source_disasm_command, show_source_or_disasm_and_command):
5696 Don't check current layout.
5697
3f3ffe54
TT
56982019-08-13 Tom Tromey <tom@tromey.com>
5699
5700 * tui/tui-wingeneral.c (make_all_visible): Remove.
5701 (tui_make_all_invisible): Simplify.
5702 * tui/tui-layout.c (tui_make_all_invisible): Move from
5703 tui-wingeneral.c; simplify.
5704 (show_layout): Hoist call to tui_make_all_invisible.
5705 (show_data): Don't call tui_make_all_invisible.
5706
69258091
TT
57072019-08-13 Tom Tromey <tom@tromey.com>
5708
5709 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
5710 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
5711
62cf57fe
TT
57122019-08-13 Tom Tromey <tom@tromey.com>
5713
5714 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
5715 tui-data.c.
5716 (show_source_disasm_command, show_data)
5717 (show_source_or_disasm_and_command): Don't use
5718 tui_set_current_layout_to.
5719 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
5720 * tui/tui-data.c (current_layout, tui_current_layout): Move to
5721 tui-layout.c.
5722 (tui_set_current_layout_to): Remove.
5723
2afade5d
TT
57242019-08-13 Tom Tromey <tom@tromey.com>
5725
5726 * tui/tui-layout.c (tui_set_layout): Update.
5727 * tui/tui-data.h (struct tui_layout_def): Remove.
5728 (tui_layout_def): Don't declare.
5729 * tui/tui-data.c (layout_def): Remove.
5730 (tui_layout_def): Remove.
5731
a3504e96
TT
57322019-08-13 Tom Tromey <tom@tromey.com>
5733
5734 * tui/tui-winsource.h (struct tui_source_window_base)
5735 <clear_detail>: No longer "override".
5736 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
5737 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
5738 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
5739 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
5740 Remove.
5741 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
5742
29c92911
TT
57432019-08-13 Tom Tromey <tromey@adacore.com>
5744
5745 * tracepoint.c: Don't include readline.h or history.h.
5746
86c6b807
TT
57472019-08-12 Tom Tromey <tom@tromey.com>
5748
5749 * configure: Rebuild.
5750 * configure.ac: Check for readline 7.
5751 * NEWS: Mention readline 7 requirement.
5752 * README: Update.
5753
5db2718c
TT
57542019-08-12 Tom Tromey <tom@tromey.com>
5755
5756 * mingw-hdep.c (gdb_select): Remove readline hack.
5757
dac36daf
PFC
57582019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5759
5760 * blockframe.c (find_pc_partial_function): Set *block to nullptr
5761 when the function fails.
5762
1022c627
AA
57632019-08-09 Andreas Arnez <arnez@linux.ibm.com>
5764
5765 * s390-tdep.c (s390_type_align): New function.
5766 (s390_gdbarch_init): Set it as type_align gdbarch method.
5767
eba4caf2
TV
57682019-08-09 Tom de Vries <tdevries@suse.de>
5769
5770 PR gdb/24591
5771 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
5772 pc_low with relocation offset.
5773
123cd851
TT
57742019-08-07 Tom Tromey <tromey@adacore.com>
5775
5776 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
5777 (print_frame_args): Update.
5778 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
5779 Update.
5780 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
5781 * frame.h (struct frame_arg): Add initializers.
5782 <error>: Now a unique_xmalloc_ptr.
5783
3d31bc39
AH
57842019-08-07 Alan Hayward <alan.hayward@arm.com>
5785
5786 * NEWS: Expand the Pointer Authentication entry.
5787 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
5788 (aarch64_frame_unmask_lr): ... to this.
5789 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
5790 Call aarch64_frame_unmask_lr.
5791 * frame.c (struct frame_info): Add "masked" variable.
5792 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
5793 (fprint_frame): Check for masked pc.
5794 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
5795 declarations.
5796 * python/py-framefilter.c (py_print_frame): Check for masked pc.
5797 * stack.c (print_frame): Check for masked pc.
5798
0cf9feb9
TT
57992019-08-06 Tom Tromey <tom@tromey.com>
5800
5801 * stabsread.c (patch_block_stabs, read_one_struct_field)
5802 (read_enum_type): Use obstack_strndup.
5803 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
5804 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
5805 * dwarf2read.c (guess_full_die_structure_name)
5806 (anonymous_struct_prefix): Use obstack_strndup.
5807 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
5808 * c-exp.y (yylex): Use obstack_strndup.
5809 * ada-exp.y (write_object_renaming, write_ambiguous_var)
5810 (write_var_or_type): Use obstack_strndup.
5811
efba19b0
TT
58122019-08-06 Tom Tromey <tom@tromey.com>
5813
5814 * symfile.c (reread_symbols): Use obstack_strdup.
5815 * stabsread.c (read_type): Use obstack_strdup.
5816 * gdb_obstack.h (obstack_strdup): New overload.
5817 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
5818 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
5819 (dwarf2_canonicalize_name): Use obstack_strdup.
5820 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
5821 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
5822 Use obstack_strdup.
5823
f25102f7
TT
58242019-08-06 Tom Tromey <tom@tromey.com>
5825
5826 * gdb_obstack.h (obstack_strdup): Define.
5827 * gdb_obstack.c (obstack_strdup): Don't define.
5828
021887d8
TT
58292019-08-06 Tom Tromey <tom@tromey.com>
5830
5831 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
5832 obstack_strdup.
5833 * typeprint.c (typedef_hash_table::find_global_typedef): Use
5834 obstack_strdup.
5835 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
5836 * stabsread.c (common_block_start): Use obstack_strdup.
5837 * objfiles.c (set_objfile_main_name, objfile): Use
5838 obstack_strdup.
5839 * namespace.c (add_using_directive): Use obstack_strdup.
5840 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
5841 * jit.c (finalize_symtab): Use obstack_strdup.
5842 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
5843 (guess_partial_die_structure_name, partial_die_info::fixup)
5844 (dwarf2_name): Use obstack_strdup.
5845 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
5846 obstack_strdup.
5847 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
5848 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5849 obstack_strdup.
5850 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
5851
d2834edc
PW
58522019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5853
5854 * unittests/help-doc-selftests.c: New file.
5855 * Makefile.in: Add the new file.
5856
590042fc
PW
58572019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5858
5859 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
5860 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
5861 the full first line, except when FOR_VALUE_PREFIX. In this case,
5862 the trailing '.' is not output, and the first character is uppercased.
5863 (print_help_for_command): Update call to print_doc_line.
5864 (print_doc_of_command): Likewise.
5865 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
5866 * cli/cli-option.c (append_indented_doc): Do not append newline.
5867 (build_help_option): Append newline after first appended_indented_doc
5868 only if a second call is done.
5869 (build_help): Append 2 new lines before each option, except the first
5870 one.
5871 * compile/compile.c (_initialize_compile): Add new lines after
5872 %OPTIONS%, when not at the end of the help.
5873 Change help doc or code
5874 producing the help doc to respect the invariants.
5875 * maint-test-options.c (_initialize_maint_test_options): Likewise.
5876 Also removed the new line after 'Options:', as all other commands
5877 do not put an empty line between 'Options:' and the first option.
5878 * printcmd.c (_initialize_printcmd): Likewise.
5879 * stack.c (_initialize_stack): Likewise.
5880 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
5881 incorrectly telling COMMAND is optional.
5882 * ada-lang.c (_initialize_ada_language): Change help doc or code
5883 producing the help doc to respect the invariants.
5884 * ada-tasks.c (_initialize_ada_tasks): Likewise.
5885 * breakpoint.c (_initialize_breakpoint): Likewise.
5886 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
5887 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
5888 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
5889 * cli/cli-style.c (cli_style_option::add_setshow_commands,
5890 _initialize_cli_style): Likewise.
5891 * corelow.c (core_target_info): Likewise.
5892 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
5893 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
5894 * filesystem.c (_initialize_filesystem): Likewise.
5895 * frame.c (_initialize_frame): Likewise.
5896 * gnu-nat.c (add_task_commands): Likewise.
5897 * infcall.c (_initialize_infcall): Likewise.
5898 * infcmd.c (_initialize_infcmd): Likewise.
5899 * interps.c (_initialize_interpreter): Likewise.
5900 * language.c (_initialize_language): Likewise.
5901 * linux-fork.c (_initialize_linux_fork): Likewise.
5902 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
5903 * maint.c (_initialize_maint_cmds): Likewise.
5904 * memattr.c (_initialize_mem): Likewise.
5905 * printcmd.c (_initialize_printcmd): Likewise.
5906 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
5907 _RegEx): Likewise.
5908 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
5909 * record-btrace.c (_initialize_record_btrace): Likewise.
5910 * record-full.c (_initialize_record_full): Likewise.
5911 * record.c (_initialize_record): Likewise.
5912 * regcache-dump.c (_initialize_regcache_dump): Likewise.
5913 * regcache.c (_initialize_regcache): Likewise.
5914 * remote.c (add_packet_config_cmd, init_remote_threadtests,
5915 _initialize_remote): Likewise.
5916 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5917 * serial.c (_initialize_serial): Likewise.
5918 * skip.c (_initialize_step_skip): Likewise.
5919 * source.c (_initialize_source): Likewise.
5920 * stack.c (_initialize_stack): Likewise.
5921 * symfile.c (_initialize_symfile): Likewise.
5922 * symtab.c (_initialize_symtab): Likewise.
5923 * target-descriptions.c (_initialize_target_descriptions): Likewise.
5924 * top.c (init_main): Likewise.
5925 * tracefile-tfile.c (tfile_target_info): Likewise.
5926 * tracepoint.c (_initialize_tracepoint): Likewise.
5927 * tui/tui-win.c (_initialize_tui_win): Likewise.
5928 * utils.c (add_internal_problem_command): Likewise.
5929 * valprint.c (value_print_option_defs): Likewise.
5930
404f2902
FCE
59312019-08-06 Frank Ch. Eigler <fche@redhat.com>
5932
5933 PR build/24886
5934 * configure.ac: Drop enable-libmcheck support.
5935 * configure, config.in: Rebuild.
5936 * libmcheck.m4: Remove.
5937 * acinclude.m4: Don't include it.
5938 * Makefile.in: Don't distribute it.
5939 * top.c (print_gdb_configuration): Don't mention it.
5940
046bebe1
TT
59412019-08-06 Tom Tromey <tom@tromey.com>
5942
5943 * utils.c (set_output_style): Sometimes pass stream to
5944 emit_style_escape.
5945 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
5946 * record-btrace.c (btrace_insn_history): Update.
5947 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
5948 method.
5949 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
5950 Update initializers.
5951 <m_uiout>: New field.
5952 <m_di>: Move lower.
5953 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5954 Remove "uiout" parameter.
5955 (dump_insns): Update.
5956 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
5957 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
5958
ddbcedf5
CB
59592019-08-06 Christian Biesinger <cbiesinger@google.com>
5960
5961 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
5962 (error_in_psymtab_expansion): Likewise.
5963 (lookup_symbol_via_quick_fns): Likewise.
5964 (basic_lookup_transparent_type_quick): Likewise.
5965 (basic_lookup_transparent_type_1): Likewise.
5966
b08b16c8
TT
59672019-08-06 Tom Tromey <tromey@adacore.com>
5968
5969 * source.c (last_source_error): Now bool.
5970 (print_source_lines_base): Make "noprint" bool. Only open
5971 source file when last_source_visited changes.
5972
cb44333d
TT
59732019-08-06 Tom Tromey <tromey@adacore.com>
5974
5975 * annotate.c (annotate_source_line): Use g_source_cache.
5976 * source-cache.c (source_cache::get_plain_source_lines): Change
5977 parameters. Populate m_offset_cache.
5978 (source_cache::ensure): New method.
5979 (source_cache::get_line_charpos): New method.
5980 (extract_lines): Move lower. Change parameters.
5981 (source_cache::get_source_lines): Move lower.
5982 * source-cache.h (class source_cache): Update comment.
5983 <get_line_charpos>: New method.
5984 <get_source_lines>: Update comment.
5985 <clear>: Clear m_offset_cache.
5986 <get_plain_source_lines>: Change parameters.
5987 <ensure>: New method
5988 <m_offset_cache>: New member.
5989 * source.c (forget_cached_source_info_for_objfile): Update.
5990 (info_source_command): Use g_source_cache.
5991 (find_source_lines, open_source_file_with_line_charpos): Remove.
5992 (print_source_lines_base, search_command_helper): Use g_source_cache.
5993 * source.h (open_source_file_with_line_charpos): Don't declare.
5994 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
5995 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
5996 Use g_source_cache.
5997
872dceaa
TT
59982019-08-06 Tom Tromey <tromey@adacore.com>
5999
6000 * source-cache.c (source_cache::get_plain_source_lines):
6001 Remove "first_line" and "last_line" parameters.
6002 (source_cache::get_source_lines): Cache plain text.
6003 * source-cache.h (class source_cache)
6004 <get_plain_source_lines>: Update.
6005
269249d9
TT
60062019-08-06 Tom Tromey <tromey@adacore.com>
6007
6008 * source-cache.c (extract_lines): No longer a method.
6009 Changed type of parameter. Include final newline.
6010 (selftests::extract_lines_test): New function.
6011 (_initialize_source_cache): Likewise.
6012 * source-cache.h (class source_cache)
6013 <extract_lines>: Don't declare.
6014
c0e8dcd8
TT
60152019-08-06 Tom Tromey <tromey@adacore.com>
6016
6017 * breakpoint.c (init_breakpoint_sal): Update.
6018 (breakpoint): Update.
6019 * breakpoint.h (struct breakpoint) <filter>: Now a
6020 unique_xmalloc_ptr.
6021
0b27c27d
CB
60222019-08-05 Christian Biesinger <cbiesinger@google.com>
6023
6024 * NEWS: Mention dictionary access on blocks.
6025 * python/py-block.c (blpy_getitem): New function.
6026 (block_object_as_mapping): New struct.
6027 (block_object_type): Use new struct for tp_as_mapping field.
6028
4ee94178
CB
60292019-08-05 Christian Biesinger <cbiesinger@google.com>
6030
6031 * objfiles.h (objfile): Add a comment describing partial symbols.
6032
8abfcabc
TT
60332019-08-05 Tom Tromey <tromey@adacore.com>
6034
6035 * compile/compile.c (_initialize_compile): Use _(), not N_().
6036 * thread.c (_initialize_thread): Use _(), not N_().
6037 * stack.c (_initialize_stack): Use _(), not N_().
6038 * printcmd.c (_initialize_printcmd): Use _(), not N_().
6039
2b79f376
SM
60402019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6041
6042 * dwarf2read.c (struct dw2_symtab_iterator):
6043 <want_specific_block>: Remove.
6044 <block_index>: Change type to gdb::optional.
6045 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
6046 change type of BLOCK_INDEX parameter to gdb::optional.
6047 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
6048 (dw2_lookup_symbol): Don't pass argument for
6049 WANT_SPECIFIC_BLOCK.
6050 (dw2_expand_symtabs_for_function): Don't pass argument for
6051 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
6052 (class dw2_debug_names_iterator)
6053 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
6054 parameter, change BLOCK_INDEX type to gdb::optional.
6055 <m_want_specific_block>: Remove.
6056 <m_block_index>: Change type to gdb::optional.
6057 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
6058 gdb::optional. Re-write in function of gdb::optional.
6059 (dw2_debug_names_lookup_symbol): Don't pass argument for
6060 WANT_SPECIFIC_BLOCK.
6061 (dw2_debug_names_expand_symtabs_for_function): Don't pass
6062 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
6063 BLOCK_INDEX.
6064
ae60f04e
PW
60652019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6066
6067 * NEWS: Mention changes to "info sources" command.
6068
28cd9371
PW
60692019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6070
6071 * symtab.c (filename_partial_match_opts): New struct type.
6072 (struct output_source_filename_data): New members
6073 regexp, c_regexp, partial_match.
6074 (output_source_filename): Use new members to decide to print file.
6075 (info_sources_option_defs): New variable.
6076 (make_info_sources_options_def_group, print_info_sources_header,
6077 info_sources_command_completer):
6078 New functions.
6079 (info_sources_command): Read new optional arguments.
6080 (_initialize_symtab): Update info sources help.
6081
ca683e3a
AO
60822019-08-02 Alexandre Oliva <oliva@adacore.com>
6083
6084 * ada-lang.c (exception_support_info_v0): Renamed from...
6085 (default_exception_support_info): ... this. Create new
6086 definition for v1.
6087 (ada_has_this_exception_support): Look up catch_handlers_sym.
6088 (ada_exception_support_info_sniffer): Try v0 after default.
6089
f1264162
TT
60902019-08-01 Tom Tromey <tromey@adacore.com>
6091
6092 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
6093 gdbarch.h.
6094
0a7b2485
CB
60952019-08-01 Christian Biesinger <cbiesinger@google.com>
6096
6097 * s12z-tdep.c: Fix include path for s12z-opc.h.
6098
c6bdbeb7
AH
60992019-08-01 Alan Hayward <alan.hayward@arm.com>
6100
6101 * NEWS: Require GNU make 3.82.
6102
a2bd7b82
TT
61032019-07-16 Tom Tromey <tom@tromey.com>
6104
6105 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
6106 declare.
6107
aa3b6533
TT
61082019-07-30 Tom Tromey <tromey@adacore.com>
6109
6110 * block.c (contained_in): Remove BLOCK_FUNCTION check.
6111
a1530dc7
KB
61122019-07-30 Kevin Buettner <kevinb@redhat.com>
6113
6114 * printcmd.c (print_address_symbolic): Print negative offsets.
6115 (build_address_symbolic): Force signed arithmetic when computing
6116 offset.
6117
2906593f
CB
61182019-07-30 Christian Biesinger <cbiesinger@google.com>
6119
6120 PR/24474: Add a function to lookup static variables.
6121 * NEWS: Mention this new function.
6122 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
6123 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
6124 * python/python.c (python_GdbMethods): Add new function.
6125
c620ed88
CB
61262019-07-29 Christian Biesinger <cbiesinger@google.com>
6127
6128 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
6129 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
6130 (objfpy_lookup_static_symbol): New function.
6131 (objfile_object_methods): Add new functions.
6132
bc4268a5
PW
61332019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6134
6135 * NEWS: Mention 'set|show print frame-info'. Mention new
6136 'presence' value for 'frame-arguments'. Mention new '-frame-info'
6137 backtrace argument. Mention that python frame filtering code
6138 is now consistent with what 'backtrace' command prints.
6139
4b5e8d19
PW
61402019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6141
6142 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
6143 comments.
6144 (print_frame_info_auto, print_frame_info_source_line,
6145 print_frame_info_location, print_frame_info_source_and_location,
6146 print_frame_info_location_and_address, print_frame_info_short_location):
6147 New declarations.
6148 (struct frame_print_options): New member print_frame_info.
6149 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
6150 * stack.h (get_user_print_what_frame_info): New declaration.
6151 (frame_show_address): New declaration.
6152 * stack.c (print_frame_arguments_choices): New value 'presence'.
6153 (print_frame_info_auto, print_frame_info_source_line,
6154 print_frame_info_location, print_frame_info_source_and_location,
6155 print_frame_info_location_and_address, print_frame_info_short_location,
6156 print_frame_info_choices, print_frame_info_print_what): New definitions.
6157 (print_frame_args): Only print dots for args if print frame-arguments
6158 is 'presence'.
6159 (frame_print_option_defs): New element for "frame-info".
6160 (get_user_print_what_frame_info): New function.
6161 (frame_show_address): Make non static. Move comment to stack.h.
6162 (print_frame_info_to_print_what): New function.
6163 (print_frame_info): Update comment. Use fp_opts.print_frame_info
6164 to decide what to print.
6165 (backtrace_command_1): Handle the new print_frame_arguments_presence
6166 value.
6167 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
6168 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
6169 (py_print_frame): In non-mi mode, use LOCATION as default for
6170 print_what, similarly to frame information printed directly by
6171 backtrace command. Handle frame-info user option in non MI mode.
6172
6bdfee81
KB
61732019-07-27 Kevin Buettner <kevinb@redhat.com>
6174
6175 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
6176 Add case for debugging 32-bit target on 64-bit host. Revise
6177 comment.
6178
98a617f8
KB
61792019-07-27 Kevin Buettner <kevinb@redhat.com>
6180
6181 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
6182 instead of find_function_entry_range_from_pc.
6183
567238c9
KB
61842019-07-27 Kevin Buettner <kevinb@redhat.com>
6185
6186 * stack.c (find_frame_funname): Remove code which preferred
6187 minsym over symtab sym in "certain pathological cases".
6188
2dc80cf8
KB
6189 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
6190 parameter. Change type of "do_demangle" to bool.
6191 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6192 Pass suitable "prefer_sym_over_minsym" flag to
6193 build_address_symbolic(). Don't output "+" for negative offsets.
6194 * printcmd.c (print_address_symbolic): Update invocation of
6195 build_address_symbolic to include a "prefer_sym_over_minsym"
6196 flag.
6197 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
6198 Restrict cases in which use of minimal symbol is preferred to that
6199 of a found symbol. Update comments.
6200
1aff7173
KB
6201 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
6202 for entry pc when entry pc is out of range for that FDE.
6203
89b085ac
BC
62042019-07-26 Brian Callahan <bcallah@openbsd.org>
6205
6206 PR gdb/24839:
6207 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
6208 type.
6209
f32feb4a
CB
62102019-07-25 Christian Biesinger <cbiesinger@google.com>
6211
6212 * python/py-objfile.c (add_separate_debug_file): Fix comment about
6213 this function's Python signature.
6214
6215
62162019-07-24 Christian Biesinger <cbiesinger@google.com>
442853af
CB
6217
6218 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
6219 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6220 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
6221 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
6222 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
6223
6224
c54e4253
YS
62252019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
6226
6227 * h8300-tdep.c (h8300_register_name_common): New.
6228 h8300_register_name): Use h8300_register_name_common.
6229 (h8300s_register_name): Likewise.
6230 (h8300sx_register_name): Likewise.
6231 (h8300h_register_nam): New.
6232 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
6233
6234
40eadf04
SP
62352019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6236
6237 * arm-tdep.c (arm_skip_cmse_entry): New function.
6238 (arm_is_sgstubs_section): New function.
6239 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
6240
bfa2a36d
TT
62412019-07-22 Tom Tromey <tom@tromey.com>
6242
6243 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
6244 Don't self-assign.
6245
a8e9d247
AB
62462019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6247
6248 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
6249 type_print.
6250
eb86c5e2
AB
62512019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6252
6253 * symtab.c (search_symbols): Adjust msymbol matching type arrays
6254 so that GDB doesn't match any msymbols when searching in the
6255 TYPES_DOMAIN.
6256 (print_symbol_info): Print using typedef_print or type_print based
6257 on the type of the symbol. Add updated FIXME comment moved from...
6258 (_initialize_symtab): ... move and update FIXME comment to above.
6259
a8eab7c6
AB
62602019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6261
6262 * NEWS: Mention adding -q option to "info types".
6263 * symtab.c (struct info_types_options): New struct.
6264 (info_types_options_defs): New variable.
6265 (make_info_types_options_def_group): New function.
6266 (info_types_command): Use gdb::option framework to parse options.
6267 (info_types_command_completer): New function.
6268 (_initialize_symtab): Extend the help text on "info types" and
6269 register command completer.
6270
b4603c34
CB
62712019-07-21 Christian Biesinger <cbiesinger@google.com>
6272
6273 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
6274 (lookup_symbol_in_objfile): Change int to block_enum and add a
6275 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
6276
c8cdc1e0
CB
62772019-07-20 Christian Biesinger <cbiesinger@google.com>
6278
6279 * MAINTAINERS (Write After Approval): Add self.
6280
01e175fe
AB
62812019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
6282
6283 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
6284 instruction to the dummy code region.
6285
56f79b63
TT
62862019-07-19 Tom Tromey <tromey@adacore.com>
6287
6288 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
6289 (ARGSUSED, PARAMS, __func__): Remove rules.
6290
4c5aa8e0
AH
62912019-07-19 Alan Hayward <alan.hayward@arm.com>
6292
6293 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
6294 * features/arm/arm-with-iwmmxt.c: Remove.
6295 * features/arm/arm-with-iwmmxt.xml: Remove.
6296 * features/arm/arm-with-m-fpa-layout.c: Remove.
6297 * features/arm/arm-with-m-fpa-layout.xml: Remove.
6298 * features/arm/arm-with-m-vfp-d16.c: Remove.
6299 * features/arm/arm-with-m-vfp-d16.xml: Remove.
6300 * features/arm/arm-with-m.c: Remove.
6301 * features/arm/arm-with-m.xml: Remove.
6302 * features/arm/arm-with-neon.c: Remove.
6303 * features/arm/arm-with-neon.xml: Remove.
6304 * features/arm/arm-with-vfpv2.c: Remove.
6305 * features/arm/arm-with-vfpv2.xml: Remove.
6306 * features/arm/arm-with-vfpv3.c: Remove.
6307 * features/arm/arm-with-vfpv3.xml: Remove.
6308
f42b2617
AH
63092019-07-19 Alan Hayward <alan.hayward@arm.com>
6310
6311 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
6312
f29ec966
AH
63132019-07-19 Alan Hayward <alan.hayward@arm.com>
6314
6315 * arch/aarch32.c (aarch32_create_target_description): Create
6316 target descriptions using features.
6317 * arch/arm.c (arm_create_target_description)
6318 (arm_create_mprofile_target_description): Likewise.
6319 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
6320
d105cce5
AH
63212019-07-19 Alan Hayward <alan.hayward@arm.com>
6322
6323 * Makefile.in: Add new files.
6324 * aarch32-tdep.c: New file.
6325 * aarch32-tdep.h: New file.
6326 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
6327 Call aarch32_read_description.
6328 * arch/aarch32.c: New file.
6329 * arch/aarch32.h: New file.
6330 * arch/arm.c (arm_create_target_description)
6331 (arm_create_mprofile_target_description): New function.
6332 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
6333 (arm_create_target_description)
6334 (arm_create_mprofile_target_description): New declaration.
6335 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
6336 read_description functions.
6337 * arm-linux-nat.c (arm_linux_nat_target::read_description):
6338 Likewise.
6339 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
6340 * arm-tdep.c (tdesc_arm_list): New variable.
6341 (arm_register_g_packet_guesses): Call create description functions.
6342 (arm_read_description) (arm_read_mprofile_description): New
6343 function.
6344 * arm-tdep.h (arm_read_description)
6345 (arm_read_mprofile_description): Add declaration.
6346 * configure.tgt: Add new files.
6347
afe09f0b
GL
63482019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
6349
6350 * top.c (new_ui_command): Open specified terminal just once.
6351
cd215b2e
TT
63522019-07-18 Tom Tromey <tromey@adacore.com>
6353
6354 * symtab.c (main_name): Constify return type.
6355 * symfile.c (set_initial_language): Update.
6356 * symtab.h (main_name): Constify return type.
6357
d8f68fcb
TT
63582019-07-17 Tom Tromey <tom@tromey.com>
6359
6360 * tui/tui-winsource.c (tui_update_source_window)
6361 (tui_update_source_window_as_is)
6362 (tui_update_source_windows_with_line): Remove return.
6363 * tui/tui-disasm.c (tui_show_disassem)
6364 (tui_show_disassem_and_update_source): Remove return.
6365 * tui/tui.c (tui_reset): Remove return.
6366 * tui/tui-wingeneral.c
6367 (tui_check_and_display_highlight_if_needed): Remove return.
6368
ca5af91e
TT
63692019-07-17 Tom Tromey <tom@tromey.com>
6370
6371 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
6372
5104fe36
TT
63732019-07-17 Tom Tromey <tom@tromey.com>
6374
6375 * tui/tui-winsource.h (struct tui_exec_info_window)
6376 (struct tui_source_window_base): Move from tui-data.h.
6377 * tui/tui-winsource.c: Move many method definitions from
6378 elsewhere. Remove "structuring" comments.
6379 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
6380 (tui_source_window_base::refresh_window): Move to
6381 tui-winsource.c.
6382 * tui/tui-win.c (tui_source_window_base::refresh_all)
6383 (tui_source_window_base::update_tab_width)
6384 (tui_source_window_base::set_new_height)
6385 (tui_source_window_base::do_make_visible_with_new_height): Move to
6386 tui-winsource.c.
6387 * tui/tui-source.h: Update.
6388 * tui/tui-source.c (tui_source_window_base::reset): Move to
6389 tui-winsource.c.
6390 * tui/tui-disasm.h: Update.
6391 * tui/tui-data.h (struct tui_exec_info_window): Move to
6392 tui-winsource.h.
6393 (struct tui_source_window_base): Likewise.
6394 * tui/tui-data.c (tui_source_window_base::clear_detail)
6395 (tui_source_window_base, ~tui_source_window_base): Move to
6396 tui-winsource.c.
6397
daa15dde
TT
63982019-07-17 Tom Tromey <tom@tromey.com>
6399
6400 * tui/tui-win.c (tui_resize_all)
6401 (tui_source_window_base::update_tab_width)
6402 (tui_adjust_win_heights): Update.
6403 (tui_win_info::make_invisible_and_set_new_height): Rename from
6404 make_invisible_and_set_new_height.
6405 * tui/tui-data.h (struct tui_win_info)
6406 <make_invisible_and_set_new_height>: New method.
6407
bfad4537
TT
64082019-07-17 Tom Tromey <tom@tromey.com>
6409
6410 * tui/tui.c: Update.
6411 * tui/tui-source.h (struct tui_source_window): Move from
6412 tui-data.h.
6413 * tui/tui-layout.c: Update.
6414 * tui/tui-disasm.c: Update.
6415 * tui/tui-data.h (struct tui_source_window): Move to
6416 tui-source.h.
6417
88f7e873
TT
64182019-07-17 Tom Tromey <tom@tromey.com>
6419
6420 * tui/tui-disasm.h (struct tui_disasm_window): Move from
6421 tui-data.h.
6422 * tui/tui-data.h (struct tui_disasm_window): Move to
6423 tui-disasm.h.
6424
96bd6233
TT
64252019-07-17 Tom Tromey <tom@tromey.com>
6426
6427 * tui/tui-regs.h (struct tui_data_item_window): Move from
6428 tui-data.h.
6429 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
6430 * tui/tui-data.h (struct tui_data_item_window): Move to
6431 tui-regs.h.
6432 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
6433
ce38393b
TT
64342019-07-17 Tom Tromey <tom@tromey.com>
6435
6436 * tui/tui.c: Update.
6437 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
6438 (tui_cmd_window::max_height): Move to tui-command.c.
6439 * tui/tui-layout.c: Update.
6440 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
6441 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
6442 tui-command.c.
6443 * tui/tui-command.h (struct tui_cmd_window): Move from
6444 tui-data.h.
6445 * tui/tui-command.c: Remove "structuring" comments.
6446 (tui_cmd_window::clear_detail)
6447 (tui_cmd_window::do_make_visible_with_new_height)
6448 (tui_cmd_window::max_height): Move from elsewhere.
6449
2d8b51cb
TT
64502019-07-17 Tom Tromey <tom@tromey.com>
6451
6452 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
6453 Now static.
6454 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
6455 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
6456
18ab23af
TT
64572019-07-17 Tom Tromey <tom@tromey.com>
6458
6459 * tui/tui.c: Update.
6460 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
6461 tui-regs.c.
6462 * tui/tui-windata.h: Remove file.
6463 * tui/tui-windata.c: Remove file.
6464 * tui/tui-win.c (tui_data_window::set_new_height)
6465 (tui_data_window::do_make_visible_with_new_height): Move to
6466 tui-regs.c.
6467 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
6468 * tui/tui-regs.c: Remove "structuring" comments.
6469 (tui_data_window::first_data_item_displayed)
6470 (tui_data_window::delete_data_content_windows)
6471 (tui_data_window::erase_data_content)
6472 (tui_data_window::display_all_data)
6473 (tui_data_window::refresh_all)
6474 (tui_data_window::do_scroll_vertical)
6475 (tui_data_window::clear_detail, tui_data_window::set_new_height)
6476 (tui_data_window::do_make_visible_with_new_height)
6477 (tui_data_window::refresh_window): Move from elsewhere.
6478 (_initialize_tui_regs): Move to end of file.
6479 * tui/tui-layout.c: Update.
6480 * tui/tui-hooks.c: Update.
6481 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
6482 * tui/tui-data.c (tui_data_window::clear_detail): Move to
6483 tui-regs.c.
6484 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
6485
88b7e7cc
TT
64862019-07-17 Tom Tromey <tom@tromey.com>
6487
6488 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
6489 seen.
6490
0fcd3711
TT
64912019-07-17 Tom Tromey <tom@tromey.com>
6492
6493 * tui/tui-win.c (tui_source_window_base::set_new_height)
6494 (tui_source_window_base::do_make_visible_with_new_height): Use
6495 m_has_locator field directly.
6496 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
6497 method.
6498 (struct tui_source_window_base) <has_locator>: Likewise.
6499
4a38112d
TT
65002019-07-17 Tom Tromey <tom@tromey.com>
6501
6502 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
6503 Don't declare.
6504 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
6505 Remove.
6506 * tui/tui-win.c (tui_source_window_base::set_new_height)
6507 (tui_source_window_base::set_new_height)
6508 (make_invisible_and_set_new_height)
6509 (tui_source_window_base::do_make_visible_with_new_height)
6510 (tui_source_window_base::do_make_visible_with_new_height):
6511 Update.
6512 * tui/tui-layout.c (show_source_disasm_command, show_data)
6513 (show_source_or_disasm_and_command): Update.
6514 * tui/tui-layout.c (show_layout): Update.
6515
09129226
TT
65162019-07-17 Tom Tromey <tom@tromey.com>
6517
6518 * tui/tui-layout.c (make_data_window): Remove.
6519 (show_data): Unify creation and re-initialization cases.
6520
4a8a5e84
TT
65212019-07-17 Tom Tromey <tom@tromey.com>
6522
6523 * tui/tui-layout.c (make_source_window, make_disasm_window):
6524 Remove.
6525 (show_data): Unify creation and re-initialization cases.
6526
76d2be8e
TT
65272019-07-17 Tom Tromey <tom@tromey.com>
6528
6529 * tui/tui-layout.c (make_command_window): Remove.
6530 (show_source_disasm_command, show_source_or_disasm_and_command):
6531 Unify creation and re-initialization cases.
6532
890b8bde
TT
65332019-07-17 Tom Tromey <tom@tromey.com>
6534
6535 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
6536 creation and re-initialization cases.
6537
2cdfa113
TT
65382019-07-17 Tom Tromey <tom@tromey.com>
6539
6540 * tui/tui-regs.c (tui_get_register): Return void.
6541
8e3cfd09
TT
65422019-07-17 Tom Tromey <tom@tromey.com>
6543
6544 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
6545 Simplify.
6546
f4e04977
TT
65472019-07-17 Tom Tromey <tom@tromey.com>
6548
6549 * tui/tui-layout.c (show_source_disasm_command): Simplify window
6550 resetting.
6551
0379b883
TT
65522019-07-17 Tom Tromey <tom@tromey.com>
6553
6554 * tui/tui.h (tui_set_layout_by_name): Don't declare.
6555 * tui/tui-regs.c (tui_reg_layout): New function.
6556 (tui_show_registers, tui_reg_command): Use it.
6557 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
6558 (tui_layout_command): Rename from tui_set_layout_by_name. Change
6559 parameters.
6560 (tui_layout_command): Remove.
6561
b7fbad91
TT
65622019-07-17 Tom Tromey <tom@tromey.com>
6563
6564 * tui/tui-layout.h (tui/tui-layout): Return void.
6565 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
6566
4e1e56b9
TT
65672019-07-17 Tom Tromey <tom@tromey.com>
6568
6569 * tui/tui-layout.c (show_source_disasm_command, show_data):
6570 Update.
6571 (reset_locator): Remove.
6572 (show_source_or_disasm_and_command): Update.
6573
1e0c09ba
TT
65742019-07-17 Tom Tromey <tom@tromey.com>
6575
6576 * tui/tui-source.c (tui_source_window_base::reset): Remove
6577 win_type parameter.
6578 * tui/tui-layout.c (make_command_window, make_source_window)
6579 (make_disasm_window, make_data_window)
6580 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
6581 (reset_locator, show_source_or_disasm_and_command): Update.
6582 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
6583 win_type parameter.
6584 (struct tui_source_window_base) <reset>: Likewise.
6585
1bf605de
TT
65862019-07-17 Tom Tromey <tom@tromey.com>
6587
6588 * tui/tui-layout.c (show_source_disasm_command): Use
6589 reset_locator.
6590 (reset_locator): New function.
6591 (init_and_make_win): Remove.
6592 (show_source_or_disasm_and_command): Use reset_locator.
6593
098f9ed4
TT
65942019-07-17 Tom Tromey <tom@tromey.com>
6595
6596 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
6597 condition.
6598 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
6599 Remove condition.
6600 * tui/tui-source.c (tui_source_window_base::reset): New method.
6601 * tui/tui-layout.c (make_command_window): Don't call
6602 init_and_make_win.
6603 (make_source_window, make_disasm_window): Don't call
6604 make_source_or_disasm_window.
6605 (make_data_window): Don't call init_and_make_win. Change calling
6606 convention.
6607 (show_source_disasm_command, show_data): Simplify.
6608 (make_source_or_disasm_window): Remove.
6609 (show_source_or_disasm_and_command): Simplify.
6610 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
6611 (struct tui_source_window_base) <reset>: Likewise.
6612 <execution_info>: Remove initializer.
6613 * tui/tui-data.c (tui_source_window_base): Initialize
6614 execution_info.
6615
80110957
TT
66162019-07-17 Tom Tromey <tom@tromey.com>
6617
6618 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
6619 variable.
6620
cf82af05
TT
66212019-07-17 Tom Tromey <tom@tromey.com>
6622
6623 * tui/tui.c (tui_rl_other_window): Update.
6624 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
6625 superclass method first. Always iterate over regs_content.
6626 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
6627 method.
6628 * tui/tui-win.c (tui_set_focus_command): Update.
6629
01aeb396
TT
66302019-07-17 Tom Tromey <tom@tromey.com>
6631
6632 * tui/tui-win.c (tui_set_focus_command): Rename from
6633 tui_set_focus. Call tui_enable.
6634 (tui_set_focus_command): Remove.
6635
fd6c75ee
TT
66362019-07-17 Tom Tromey <tom@tromey.com>
6637
6638 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
6639 refresh_window.
6640 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
6641 touchwin.
6642 (tui_data_window::refresh_window): Call refresh_window on data
6643 items. Always call superclass refresh_window.
6644 (tui_win_info::refresh): Remove.
6645 (tui_source_window_base::refresh_window): Update.
6646 (tui_refresh_all): Update.
6647 * tui/tui-layout.c (show_source_disasm_command): Remove call to
6648 refresh_window.
6649 (show_source_or_disasm_and_command): Likewise.
6650 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
6651 (struct tui_source_window_base) <refresh>: Likewise.
6652
f6cc34a9
TT
66532019-07-17 Tom Tromey <tom@tromey.com>
6654
6655 * tui/tui-winsource.c (tui_clear_source_content)
6656 (tui_show_source_content): Update.
6657 * tui/tui-source.c (tui_source_window::showing_source_p): Check
6658 whether content is empty.
6659 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
6660 Remove.
6661
f31ec9af
TT
66622019-07-17 Tom Tromey <tom@tromey.com>
6663
6664 * tui/tui-winsource.c (tui_erase_source_content): Clear the
6665 window's contents.
6666 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
6667 * tui/tui-source.c (tui_set_source_content_nil): Remove.
6668
d1b6f1e5
TT
66692019-07-17 Tom Tromey <tom@tromey.com>
6670
6671 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
6672 (struct tui_data_item_window): Update.
6673
d9743a13
TT
66742019-07-17 Tom Tromey <tom@tromey.com>
6675
6676 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
6677 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
6678 defines.
6679
caf0bc4e
TT
66802019-07-17 Tom Tromey <tom@tromey.com>
6681
6682 * tui/tui-winsource.h (tui_erase_source_content)
6683 (tui_clear_source_content): Remove "display_prompt" parameter.
6684 * tui/tui-winsource.c (tui_update_source_window_as_is)
6685 (tui_update_source_windows_with_addr): Update.
6686 (tui_clear_source_content): Remove "display_prompt" parameter.
6687 (tui_erase_source_content): Likewise. Simplify.
6688 (tui_show_source_content): Update.
6689 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
6690 * tui/tui-stack.c (tui_show_frame_info): Update.
6691 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
6692 Remove defines.
6693
9d391078
TT
66942019-07-17 Tom Tromey <tom@tromey.com>
6695
6696 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6697 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
6698 parameter.
6699 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
6700 parameter.
6701
a38da35d
TT
67022019-07-17 Tom Tromey <tom@tromey.com>
6703
6704 * tui/tui-winsource.c (tui_clear_source_content)
6705 (tui_show_source_content, tui_show_exec_info_content)
6706 (tui_clear_exec_info_content): Update.
6707 * tui/tui-stack.c (tui_show_locator_content): Update.
6708 (tui_show_frame_info): Update.
6709 * tui/tui-source.h (tui_source_window): Don't declare.
6710 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
6711 from tui_source_is_displayed.
6712 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
6713 Remove field.
6714 (struct tui_source_window_base) <content_in_use>: New field. Now
6715 bool.
6716 (struct tui_source_window) <showing_source_p>: New method.
6717 (TUI_SRC_WIN): Change cast.
6718 * tui/tui-data.c (tui_initialize_static_data): Update.
6719
c2cd8994
TT
67202019-07-17 Tom Tromey <tom@tromey.com>
6721
6722 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
6723 location_matches_p.
6724 * tui/tui-source.c (tui_source_window::location_matches_p): New
6725 method.
6726 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
6727 method.
6728 * tui/tui-data.h (struct tui_source_window_base)
6729 <location_matches_p>: New method.
6730 (struct tui_source_window, struct tui_disasm_window)
6731 <location_matches_p>: Likewise.
6732
4dde7b34
TT
67332019-07-17 Tom Tromey <tom@tromey.com>
6734
6735 * tui/tui-win.c (tui_set_win_height_command): Rename from
6736 tui_set_win_height.
6737 (tui_set_win_height_command): Remove.
6738
b73dd877
TT
67392019-07-17 Tom Tromey <tom@tromey.com>
6740
6741 * tui/tui-source.c (tui_source_window): New constructor. Add
6742 observer.
6743 (~tui_source_window): New destructor.
6744 (tui_source_window::style_changed): New method.
6745 * tui/tui-hooks.c (tui_redisplay_source): Remove.
6746 (tui_attach_detach_observers): Update.
6747 * tui/tui-data.h (struct tui_source_window): Make constructor not
6748 inline. Add destructor.
6749 (struct tui_source_window) <style_changed>: New method.
6750 <m_observable>: New member.
6751
ae2b5380
TT
67522019-07-17 Tom Tromey <tom@tromey.com>
6753
6754 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
6755 * tui/tui-win.c (tui_resize_all): Fix typo.
6756
1ce3e844
TT
67572019-07-17 Tom Tromey <tom@tromey.com>
6758
6759 * tui/tui-wingeneral.h (tui_refresh_all): Update.
6760 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
6761 (tui_refresh_all): Remove "list" parameter. Use foreach.
6762 * tui/tui-win.c (window_name_completer): Use foreach.
6763 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
6764 (update_tab_width): Likewise.
6765 * tui/tui-layout.c (show_layout): Update.
6766 * tui/tui-data.h (class tui_window_iterator): New.
6767 (struct all_tui_windows): New.
6768 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
6769
fe3eaf1c
TT
67702019-07-17 Tom Tromey <tom@tromey.com>
6771
6772 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
6773 parameter. Don't reference globals.
6774 (tui_reg_command): Update.
6775
368c1354
TT
67762019-07-17 Tom Tromey <tom@tromey.com>
6777
6778 * tui/tui-regs.c (tui_show_registers): Simplify.
6779
e80cd204
TT
67802019-07-17 Tom Tromey <tom@tromey.com>
6781
6782 * tui/tui-regs.c (tui_show_registers): Update.
6783 (tui_show_register_group): Add win_info parameter.
6784
aca2dd16
TT
67852019-07-17 Tom Tromey <tom@tromey.com>
6786
6787 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
6788 Rename from tui_display_reg_element_at_line.
6789 (tui_data_window::display_registers_from_line): Update.
6790 * tui/tui-data.h (struct tui_data_window)
6791 <display_reg_element_at_line>: New method.
6792
517e9505
TT
67932019-07-17 Tom Tromey <tom@tromey.com>
6794
6795 * tui/tui-regs.h (tui_display_registers_from)
6796 (tui_display_registers_from_line): Don't declare.
6797 * tui/tui-windata.c (tui_data_window::display_all_data)
6798 (tui_data_window::refresh_all)
6799 (tui_data_window::do_scroll_vertical): Update.
6800 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
6801 from tui_display_registers_from.
6802 (tui_display_reg_element_at_line): Update.
6803 (tui_data_window::display_registers_from_line): Rename from
6804 tui_display_registers_from_line.
6805 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
6806 display_registers_from_line>: New methods.
6807
f76d8b19
TT
68082019-07-17 Tom Tromey <tom@tromey.com>
6809
6810 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
6811 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
6812 from tui_erase_data_content.
6813 (tui_data_window::display_all_data)
6814 (tui_data_window::refresh_all)
6815 (tui_data_window::do_scroll_vertical): Update.
6816 * tui/tui-regs.c (tui_show_registers): Update.
6817 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
6818 New method.
6819
b4094625
TT
68202019-07-17 Tom Tromey <tom@tromey.com>
6821
6822 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
6823 declare.
6824 * tui/tui-windata.c
6825 (tui_data_window::delete_data_content_windows): Rename from
6826 tui_delete_data_content_windows.
6827 (tui_data_window::display_all_data)
6828 (tui_data_window::do_scroll_vertical): Update.
6829 * tui/tui-data.h (struct tui_data_window)
6830 <delete_data_content_windows>: New method.
6831
c223a729
TT
68322019-07-17 Tom Tromey <tom@tromey.com>
6833
6834 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
6835 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
6836
50daf268
TT
68372019-07-17 Tom Tromey <tom@tromey.com>
6838
6839 * tui/tui-windata.h (tui_display_all_data): Don't declare.
6840 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
6841 from tui_display_all_data.
6842 * tui/tui-win.c
6843 (tui_data_window::do_make_visible_with_new_height): Update.
6844 * tui/tui-regs.c (tui_show_registers): Update.
6845 * tui/tui-layout.c (tui_set_layout): Update.
6846 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
6847 method.
6848
df5f8cab
TT
68492019-07-17 Tom Tromey <tom@tromey.com>
6850
6851 * tui/tui-windata.h (tui_display_data_from): Don't declare.
6852 * tui/tui-windata.c (tui_display_data_from): Remove.
6853 (tui_data_window::refresh_all): Update.
6854
80cb6c27
TT
68552019-07-17 Tom Tromey <tom@tromey.com>
6856
6857 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
6858 * tui/tui-windata.c (tui_display_data_from_line): Remove.
6859 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
6860 tui_display_registers_from_line.
6861 * tui/tui-regs.h (tui_display_registers_from_line): Update.
6862 * tui/tui-regs.c (tui_display_registers_from_line): Remove
6863 "force_display" parameter.
6864
baff0c28
TT
68652019-07-17 Tom Tromey <tom@tromey.com>
6866
6867 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
6868 declare.
6869 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
6870 Rename from tui_first_reg_element_no_inline.
6871 (tui_display_reg_element_at_line)
6872 (tui_display_registers_from_line): Update.
6873 * tui/tui-data.h (struct tui_data_window)
6874 <first_reg_element_no_inline>: New method.
6875
3b23c5f2
TT
68762019-07-17 Tom Tromey <tom@tromey.com>
6877
6878 * tui/tui-windata.c (tui_display_data_from)
6879 (tui_data_window::do_scroll_vertical): Update.
6880 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
6881 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
6882 Rename from tui_line_from_reg_element_no.
6883 (tui_display_registers_from_line): Update.
6884 * tui/tui-data.h (struct tui_data_window)
6885 <line_from_reg_element_no>: New method.
6886
0b5ec218
TT
68872019-07-17 Tom Tromey <tom@tromey.com>
6888
6889 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
6890 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
6891 tui_last_regs_line_no.
6892 (tui_display_reg_element_at_line)
6893 (tui_display_registers_from_line): Update.
6894 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
6895 method.
6896
0807ab7b
TT
68972019-07-17 Tom Tromey <tom@tromey.com>
6898
6899 PR tui/24722:
6900 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
6901 (tui_update_breakpoint_info): Add "being_deleted" parameter.
6902 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
6903 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
6904 (tui_update_breakpoint_info): Likewise.
6905 * tui/tui-hooks.c (tui_event_create_breakpoint)
6906 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
6907 Update.
6908
9ad7fdef
TT
69092019-07-17 Tom Tromey <tom@tromey.com>
6910
6911 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
6912
5813316f
TT
69132019-07-17 Tom Tromey <tom@tromey.com>
6914
6915 * tui/tui-winsource.c (tui_update_source_window_as_is)
6916 (tui_update_source_windows_with_addr): Update.
6917 * tui/tui-source.h (tui_set_source_content)
6918 (tui_show_symtab_source): Add "win_info" parameter.
6919 * tui/tui-source.c (tui_set_source_content): Add "win_info"
6920 parameter.
6921 (tui_show_symtab_source): Likewise.
6922
00e264e7
TT
69232019-07-17 Tom Tromey <tom@tromey.com>
6924
6925 * tui/tui-wingeneral.c
6926 (tui_check_and_display_highlight_if_needed): Check can_highlight.
6927
06210ce4
TT
69282019-07-17 Tom Tromey <tom@tromey.com>
6929
6930 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
6931 (struct tui_cmd_window) <can_scroll>: New method.
6932 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
6933 method.
6934
381befee
TT
69352019-07-17 Tom Tromey <tromey@adacore.com>
6936
6937 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
6938 do_field_signed>: Rename. Change type of "value".
6939 * ui-out.c (ui_out::field_signed): Rename from field_int.
6940 Change type of "value".
6941 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
6942 type of "value".
6943 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
6944 do_field_int. Change type of "value".
6945 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
6946 do_field_int. Change type of "value".
6947 * tracepoint.c (trace_status_mi, tfind_1)
6948 (print_one_static_tracepoint_marker): Update.
6949 * thread.c (print_thread_info_1, print_selected_thread_frame):
6950 Update.
6951 * stack.c (print_frame, print_frame_info): Update.
6952 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
6953 Update.
6954 * source.c (print_source_lines_base): Update.
6955 * skip.c (info_skip_command): Update.
6956 * record-btrace.c (btrace_ui_out_decode_error)
6957 (btrace_call_history_src_line): Update.
6958 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
6959 Update.
6960 * progspace.c (print_program_space): Update.
6961 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
6962 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
6963 do_field_int. Change type of "value".
6964 * mi/mi-out.c (mi_ui_out::do_table_begin)
6965 (mi_ui_out::do_table_header): Update.
6966 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
6967 type of "value".
6968 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
6969 (mi_cmd_data_list_changed_registers, output_register)
6970 (mi_cmd_data_read_memory, mi_load_progress)
6971 (mi_cmd_trace_frame_collected): Update.
6972 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
6973 Update.
6974 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
6975 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
6976 (mi_cmd_var_list_children, varobj_update_one): Update.
6977 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
6978 (mi_cmd_stack_list_args, list_arg_or_local): Update.
6979 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
6980 * inferior.c (print_inferior): Update.
6981 * gdb_bfd.c (print_one_bfd): Update.
6982 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6983 Update.
6984 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
6985 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
6986 do_field_int. Change type of "value".
6987 * cli-out.c (cli_ui_out::do_field_signed): Rename from
6988 do_field_int. Change type of "value".
6989 * breakpoint.c (watchpoint_check, print_breakpoint_location)
6990 (print_one_breakpoint_location, print_it_catch_fork)
6991 (print_one_catch_fork, print_it_catch_vfork)
6992 (print_one_catch_vfork, print_it_catch_solib)
6993 (print_it_catch_exec, print_it_ranged_breakpoint)
6994 (print_mention_watchpoint, print_mention_masked_watchpoint)
6995 (bkpt_print_it, update_static_tracepoint): Update.
6996 * break-catch-throw.c (print_it_exception_catchpoint): Update.
6997 * break-catch-syscall.c (print_it_catch_syscall): Update.
6998 * ada-tasks.c (print_ada_task_info): Update.
6999 * ada-lang.c (print_it_exception, print_mention_exception):
7000 Update.
7001
6b78c3f8
AB
70022019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
7003
7004 PR breakpoints/24541
7005 * gdbarch.c: Regenerate.
7006 * gdbarch.h: Regenerate.
7007 * gdbarch.sh: Adjust return type and parameter types for
7008 'stap_adjust_register'.
7009 (i386_stap_adjust_register): Adjust signature and return new
7010 register name.
7011 * stap-probe.c (stap_parse_register_operand): Adjust use of
7012 'gdbarch_stap_adjust_register'.
7013
d72a9b85
TT
70142019-07-17 Tom Tromey <tromey@adacore.com>
7015
7016 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
7017 declare VEC.
7018 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
7019 std::vector.
7020 (struct s390_process_info): Add initializers.
7021 (s390_add_process): Use new.
7022 (s390_linux_nat_target::low_forget_process): Use delete.
7023 (s390_linux_nat_target::low_new_fork)
7024 (s390_linux_nat_target::stopped_by_watchpoint)
7025 (s390_linux_nat_target::low_prepare_to_resume)
7026 (s390_linux_nat_target::insert_watchpoint)
7027 (s390_linux_nat_target::insert_hw_breakpoint)
7028 (s390_linux_nat_target::remove_watchpoint)
7029 (s390_linux_nat_target::remove_hw_breakpoint): Update.
7030
206e6c58
JB
70312019-07-16 John Baldwin <jhb@FreeBSD.org>
7032
7033 * aarch64-fbsd-nat.c: Include regcache.h.
7034 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
7035 argument.
7036 (aarch64_fbsd_nat_target::fetch_registers)
7037 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
7038 variable.
7039 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
7040
cbde90f2
JB
70412019-07-16 John Baldwin <jhb@FreeBSD.org>
7042
7043 * fbsd-nat.c: Include gdbarch.h.
7044
07128006
TT
70452019-07-15 Tom Tromey <tromey@adacore.com>
7046
7047 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
7048
1f77b012
TT
70492019-07-15 Tom Tromey <tromey@adacore.com>
7050
7051 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
7052 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
7053 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
7054 * cli-out.c (cli_ui_out::do_field_int): New method.
7055 * ui-out.c (ui_out::field_unsigned): New method.
7056 * symfile.c (generic_load): Use field_unsigned.
7057 (print_transfer_performance): Likewise.
7058 * record-btrace.c (ui_out_field_uint): Remove.
7059 (btrace_call_history_insn_range, btrace_call_history): Use
7060 field_unsigned.
7061 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
7062 field_unsigned.
7063 * ui-out.h (class ui_out) <field_unsigned>: New method.
7064 <do_field_unsigned>: Likewise.
7065
33eca680
TT
70662019-07-15 Tom Tromey <tromey@adacore.com>
7067
7068 * mi/mi-main.c (list_available_thread_groups): Use field_string.
7069 * mi/mi-interp.c (mi_memory_changed): Use field_string.
7070 * target.c (flash_erase_command): Use field_string.
7071 * infrun.c (print_signal_received_reason): Use field_string.
7072 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
7073 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
7074 field_string.
7075 * ada-tasks.c (print_ada_task_info): Use field_string.
7076
ca8d69be
TT
70772019-07-15 Tom Tromey <tromey@adacore.com>
7078
7079 * target.c (flash_erase_command): Use field_core_addr.
7080 * symfile.c (generic_load): Use field_core_addr.
7081 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
7082 Use field_core_addr.
7083 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
7084 field_core_addr.
7085
0d4e84ed
AB
70862019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7087
7088 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
7089 value if its desired type is smaller than a CORE_ADDR and signed.
7090
9a49df9d
AB
70912019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7092
7093 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
7094 of changes to field names, and use new is_reference field to
7095 decide if a property is a reference or not.
7096 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
7097 field.
7098 (struct dwarf2_property_baton): Update header comment, rename
7099 'referenced_type' to 'property_type' and update comments.
7100 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
7101 default property type, store in property baton, update to take
7102 accound of renamed field.
7103 (read_func_scope): Update call to attr_to_dynamic_prop.
7104 (read_array_type): Likewise.
7105 (dwarf2_per_cu_addr_sized_int_type): New function.
7106 (read_subrange_index_type): Move type finding code to
7107 dwarf2_per_cu_addr_sized_int_type.
7108 (read_subrange_type): Update calls to attr_to_dynamic_prop.
7109 (dwarf2_per_cu_addr_type): New function.
7110 (set_die_type): Update calls to attr_to_dynamic_prop.
7111
b86352cf
AB
71122019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7113
7114 * dwarf2read.c (read_subrange_index_type): New function.
7115 (read_subrange_type): Move code into new function and call it.
7116 * gdbtypes.c (create_range_type): Add some asserts.
7117
603490bf
AB
71182019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7119
7120 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
7121 update return statements.
7122 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
7123 declaration, and update comment to match.
7124 * gdbtypes.c (resolve_dynamic_array): Update call to
7125 dwarf2_evaluate_property to match new return type.
7126
592f9d27
AB
71272019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
7128
7129 * valarith.c (value_subscripted_rvalue): Change lowerbound
7130 parameter type from int to LONGEST.
7131 * value.h (value_subscripted_rvalue): Likewise in declaration.
7132
60cfcb20
AB
71332019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7134
7135 * cli/cli-utils.c (info_print_command_completer): New function.
7136 * cli/cli-utils.h: Add 'completer.h' include, and forward
7137 declaration for 'struct cmd_list_element'.
7138 (info_print_command_completer): Declare.
7139 * stack.c (_initialize_stack): Add completer for 'info locals' and
7140 'info args'.
7141 * symtab.c (_initialize_symtab): Add completer for 'info
7142 variables' and 'info functions'.
7143 * NEWS: Mention completion for additional info commands.
7144
b16507e0
AB
71452019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7146
7147 * cli/cli-utils.c (extract_info_print_args): Delete.
7148 (extract_arg_maybe_quoted): Delete.
7149 (info_print_options_defs): New variable.
7150 (make_info_print_options_def_group): New function.
7151 (extract_info_print_options): Define new function.
7152 * cli/cli-utils.h (extract_info_print_args): Delete.
7153 (struct info_print_options): New structure.
7154 (extract_info_print_options): Declare new function.
7155 * stack.c (info_locals_command): Update to use new
7156 extract_info_print_options, also add a header comment.
7157 (info_args_command): Likewise.
7158 * symtab.c (info_variables_command): Likewise.
7159 (info_functions_command): Likewise.
7160
021d8588
AB
71612019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
7162
7163 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
7164 to extract string arguments.
7165 * common/common-utils.c (extract_string_maybe_quoted): New function.
7166 * common/common-utils.h (extract_string_maybe_quoted): Declare.
7167
b777eb6d
TT
71682019-07-11 Tom Tromey <tromey@adacore.com>
7169
7170 * main.c (get_init_files): Use GDBINIT, not gdbinit.
7171 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
7172 * top.h (gdbinit): Don't declare.
7173 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
7174 into...
7175 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
7176 * top.c (gdb_init): Don't call init_cli_cmds.
7177 (gdbinit): Remove.
7178 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
7179
72ee03ff
TT
71802019-07-11 Tom Tromey <tromey@adacore.com>
7181
7182 * python/py-inferior.c (add_thread_object): Don't use thread_obj
7183 after it has been moved.
7184
00db9531
SM
71852019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7186
7187 * valops.c (value_must_coerce_to_target): Change return type to
7188 bool.
7189 * value.h (value_must_coerce_to_target): Likewise.
7190
f2478a7e
SM
71912019-07-10 Simon Marchi <simon.marchi@efficios.com>
7192
7193 * breakpoint.c (is_hardware_watchpoint): Remove
7194 forward-declaration.
7195 (is_masked_watchpoint): Change return type to bool.
7196 (is_tracepoint): Likewise.
7197 (is_breakpoint): Likewise.
7198 (is_hardware_watchpoint): Likewise.
7199 (is_watchpoint): Likewise.
7200 (is_no_memory_software_watchpoint): Likewise.
7201 (is_catchpoint): Likewise.
7202 (breakpoint_1): Make FILTER parameter's return type bool.
7203 is_masked_watchpoint): Change return type to bool.
7204 (save_breakpoints): Make FILTER parameter's return type bool.
7205 * breakpoint.h (is_breakpoint): Change return type to bool.
7206 (is_watchpoint): Likewise.
7207 (is_catchpoint): Likewise.
7208 (is_tracepoint): Likewise.
7209
0d12e84c
TT
72102019-07-10 Tom Tromey <tom@tromey.com>
7211
7212 * defs.h: Don't include gdbarch.h.
7213 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
7214 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
7215 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
7216 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
7217 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
7218 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
7219 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
7220 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
7221 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
7222 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
7223 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
7224 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
7225 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
7226 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
7227 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
7228 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
7229 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
7230 record-btrace.c, record.h, regcache-dump.c, regcache.h,
7231 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
7232 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
7233 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
7234 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
7235 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
7236 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
7237 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
7238 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
7239 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
7240
f06f1252
TT
72412019-07-10 Tom Tromey <tromey@adacore.com>
7242
7243 * ada-lang.h (is_ada_exception_catchpoint): Declare.
7244 * breakpoint.c (init_ada_exception_breakpoint): Register as
7245 bp_catchpoint.
7246 (print_one_breakpoint_location, print_one_breakpoint): Use
7247 is_ada_exception_catchpoint.
7248 * ada-lang.c (class ada_catchpoint_location): Pass
7249 bp_loc_software_breakpoint to bp_location constructor.
7250 (is_ada_exception_catchpoint): New function.
7251
7a5d944b
TT
72522019-07-10 Tom Tromey <tromey@adacore.com>
7253
7254 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
7255 VEC.
7256 (struct arm_exidx_entry): New method operator<.
7257 (struct arm_exidx_data) <section_maps>: Change type.
7258 (arm_exidx_data_free): Remove.
7259 (arm_exidx_data_key): Change type. Move lower.
7260 (arm_exidx_new_objfile): Update.
7261 (arm_compare_exidx_entries): Remove.
7262 (arm_find_exidx_entry, _initialize_arm_tdep)
7263
48c66e1d
TT
72642019-07-10 Tom Tromey <tromey@adacore.com>
7265
7266 * solib-spu.c (ocl_program_data_key): Change type.
7267 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
7268 Update.
7269
a269fbf1
TT
72702019-07-10 Tom Tromey <tromey@adacore.com>
7271
7272 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
7273 (struct solib_aix_inferior_data) <library_list>: Change type.
7274 (solib_aix_inferior_data_handle): Change type.
7275 (get_solib_aix_inferior_data): Update.
7276 (solib_aix_free_library_list): Remove.
7277 (library_list_start_library): Update.
7278 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
7279 return type.
7280 (solib_aix_get_library_list)
7281 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
7282 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
7283
c294730c
TT
72842019-07-10 Tom Tromey <tromey@adacore.com>
7285
7286 * solib-dsbt.c (struct dsbt_info): Add initializers.
7287 (solib_dsbt_pspace_data): Change type.
7288 (dsbt_pspace_data_cleanup): Remove.
7289 (get_dsbt_info, _initialize_dsbt_solib): Update.
7290
9d52077d
TT
72912019-07-10 Tom Tromey <tromey@adacore.com>
7292
7293 * spu-tdep.c (spu_overlay_data): Change type.
7294 (spu_get_overlay_table, spu_overlay_new_objfile)
7295 (_initialize_spu_tdep): Update.
7296
22a20dca
TT
72972019-07-10 Tom Tromey <tromey@adacore.com>
7298
7299 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
7300 destructor.
7301 (dbx_objfile_data_key): Change type and declare later.
7302 (DBX_SYMFILE_INFO): Rewrite.
7303 * dbxread.c (dbx_objfile_data_key): Change type.
7304 (dbx_symfile_init): Update.
7305 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
7306 (coffstab_build_psymtabs, elfstab_build_psymtabs)
7307 (stabsect_build_psymtabs, _initialize_dbxread): Update.
7308
cb60f420
TT
73092019-07-10 Tom Tromey <tromey@adacore.com>
7310
7311 * jit.c (jit_program_space_key): Change type. Move lower.
7312 (get_jit_program_space_data): Update.
7313 (jit_program_space_data_cleanup): Remove.
7314 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
7315 Update.
7316 (struct jit_program_space_data): Add initializers.
7317
51df2ae3
TT
73182019-07-10 Tom Tromey <tromey@adacore.com>
7319
7320 * solib-darwin.c (struct darwin_info): Add initializers.
7321 (solib_darwin_pspace_data): Change type.
7322 (darwin_pspace_data_cleanup): Remove.
7323 (get_darwin_info, _initialize_darwin_solib): Update.
7324
18101a35
TT
73252019-07-10 Tom Tromey <tromey@adacore.com>
7326
7327 * remote-sim.c (struct sim_inferior_data): Add initializers,
7328 constructor, and destructor.
7329 (sim_inferior_data_key): Change type. Move lower.
7330 (check_for_duplicate_sim_descriptor): Update.
7331 (get_sim_inferior_data): Use new. Update.
7332 (~sim_inferior_data_cleanup): Rename from
7333 sim_inferior_data_cleanup. Simplify.
7334 (gdbsim_close_inferior, simulator_command)
7335 (sim_command_completer, _initialize_remote_sim): Update.
7336 (next_pid, INITIAL_PID): Move earlier.
7337
05b08ac1
TT
73382019-07-10 Tom Tromey <tromey@adacore.com>
7339
7340 * python/python-internal.h (create_thread_object): Return
7341 gdbpy_ref.
7342 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
7343 * python/py-inferior.c (struct threadlist_entry): Add
7344 constructor.
7345 <thread_obj>: Now a gdbpy_ref.
7346 (thread_to_thread_object): Update.
7347 (add_thread_object): Use new.
7348 (delete_thread_object): Use delete.
7349 (infpy_threads): Update.
7350 (py_free_inferior): Update. Construct "inf_obj" after acquiring
7351 GIL.
7352
32372d80
TT
73532019-07-10 Tom Tromey <tromey@adacore.com>
7354
7355 * valops.c (value_cast): Specialize error message for Ada.
7356
5c458ae8
SM
73572019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7358
7359 * breakpoint.c (breakpoint_1): Update doc and parameter names.
7360
4c462cb0
SM
73612019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
7362
7363 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
7364 bpstat_should_step): Return bool, adjust comments.
7365 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
7366 bpstat_should_step): Likewise.
7367
89abbcc2
AH
73682019-07-10 Alan Hayward <alan.hayward@arm.com>
7369
7370 * features/Makefile: Use feature target descriptions for Arm.
7371 * features/arm/arm-core.c: Generate new file.
7372 * features/arm/arm-fpa.c: Likewise.
7373 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
7374 * features/arm/arm-m-profile.c: Likewise.
7375 * features/arm/arm-vfpv2.c: Likewise.
7376 * features/arm/arm-vfpv3.c: Likewise.
7377 * features/arm/xscale-iwmmxt.c: Likewise.
7378 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
7379
166a82be
AH
73802019-07-10 Alan Hayward <alan.hayward@arm.com>
7381
7382 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
7383 ptrace earlier.
7384
9fb4c7e9
AH
73852019-07-10 Alan Hayward <alan.hayward@arm.com>
7386
7387 * features/aarch64-pauth.c: Regenerate.
7388
e2d0f980
SM
73892019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
7390
7391 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
7392 bool.
7393 (bpstat_what): Use false instead of 0.
7394
a38118e5
PA
73952019-07-09 Pedro Alves <palves@redhat.com>
7396
7397 * break-catch-throw.c (is_exception_catchpoint): New.
7398 * breakpoint.c (print_one_breakpoint_location): New parameter
7399 'raw_loc'. Handle it. Use
7400 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
7401 looking at the breakpoint's type.
7402 (print_one_breakpoint): If handling "maint info breakpoints", also
7403 print locations of exception catchpoints.
7404 * breakpoint.h (is_exception_catchpoint): Declare.
7405
cb1e4e32
PA
74062019-07-09 Pedro Alves <palves@redhat.com>
7407
7408 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
7409 "addr" field.
7410 (allocate_location_exception_catchpoint): New.
7411 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
7412 (initialize_throw_catchpoint_ops): Install
7413 allocate_location_exception_catchpoint as allocate_location
7414 method.
7415 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
7416 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
7417 bp_loc_other.
7418 (breakpoint_address_is_meaningful): Delete.
7419 (bl_address_is_meaningful): New.
7420 (breakpoint_locations_match): Adjust comment.
7421 (bp_location_from_bp_type): New, factored out of...
7422 (bp_location::bp_location(breakpoint *)): ... this.
7423 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
7424 factored out of...
7425 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
7426 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
7427 breakpoint_address_is_meaningful.
7428 (bp_locations_compare): Adjust comment.
7429 (update_global_location_list): Use bl_address_is_meaningful
7430 instead of breakpoint_address_is_meaningful.
7431 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
7432 explicit.
7433 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
7434 * python/py-breakpoint.c (bppy_get_location): No longer check
7435 whether location is null.
7436
b58a68fe
PA
74372019-07-09 Pedro Alves <palves@redhat.com>
7438
7439 PR c++/15468
7440 * breakpoint.c (print_one_breakpoint_location): Remove
7441 single-location assert.
7442
268a13a5
TT
74432019-07-09 Tom Tromey <tom@tromey.com>
7444
7445 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
7446 * configure: Rebuild.
7447 * configure.ac: Change common to gdbsupport.
7448 * gdbsupport: Rename from common.
7449 * acinclude.m4: Change common to gdbsupport.
7450 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
7451 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
7452 gdbsupport.
7453 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
7454 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
7455 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
7456 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
7457 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
7458 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
7459 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
7460 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
7461 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
7462 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
7463 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
7464 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
7465 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
7466 coff-pe-read.c, command.h, compile/compile-c-support.c,
7467 compile/compile-c.h, compile/compile-cplus-symbols.c,
7468 compile/compile-cplus-types.c, compile/compile-cplus.h,
7469 compile/compile-loc2c.c, compile/compile.c, completer.c,
7470 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
7471 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
7472 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
7473 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
7474 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
7475 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
7476 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
7477 features/aarch64-core.c, features/aarch64-fpu.c,
7478 features/aarch64-pauth.c, features/aarch64-sve.c,
7479 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
7480 features/i386/32bit-core.c, features/i386/32bit-linux.c,
7481 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
7482 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
7483 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
7484 features/i386/64bit-core.c, features/i386/64bit-linux.c,
7485 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
7486 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
7487 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
7488 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
7489 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
7490 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
7491 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
7492 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
7493 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
7494 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
7495 go32-nat.c, guile/guile.c, guile/scm-ports.c,
7496 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
7497 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
7498 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
7499 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
7500 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
7501 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
7502 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
7503 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
7504 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
7505 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
7506 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
7507 minsyms.c, mips-linux-tdep.c, namespace.h,
7508 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
7509 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
7510 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
7511 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
7512 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
7513 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
7514 nat/linux-waitpid.c, nat/mips-linux-watch.c,
7515 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
7516 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
7517 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
7518 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
7519 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
7520 procfs.c, producer.c, progspace.h, psymtab.h,
7521 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
7522 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
7523 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
7524 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
7525 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
7526 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
7527 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
7528 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
7529 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
7530 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
7531 target-memory.c, target.c, target.h, target/waitstatus.c,
7532 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
7533 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
7534 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
7535 unittests/array-view-selftests.c,
7536 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
7537 unittests/common-utils-selftests.c,
7538 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
7539 unittests/format_pieces-selftests.c,
7540 unittests/function-view-selftests.c,
7541 unittests/lookup_name_info-selftests.c,
7542 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
7543 unittests/mkdir-recursive-selftests.c,
7544 unittests/observable-selftests.c,
7545 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
7546 unittests/parse-connection-spec-selftests.c,
7547 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
7548 unittests/scoped_fd-selftests.c,
7549 unittests/scoped_mmap-selftests.c,
7550 unittests/scoped_restore-selftests.c,
7551 unittests/string_view-selftests.c, unittests/style-selftests.c,
7552 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
7553 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
7554 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
7555 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
7556 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
7557 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
7558
5b0e2db4
AB
75592019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7560
7561 * linespec.c (decode_digits_list_mode): Set explicit_line to a
7562 bool value.
7563 (decode_digits_ordinary): Set explicit_line field in sal.
7564 * symtab.c (skip_prologue_sal): Don't skip prologue for a
7565 symtab_and_line that was set on an explicit line number in
7566 assembler code. Do always update the recorded symtab and line if
7567 we do skip the prologue.
7568
0ba852ab
AB
75692019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7570
7571 * breakpoint.c (set_breakpoint_location_function): Remove
7572 explicit_loc parameter.
7573 (momentary_breakpoint_from_master): Update call to
7574 set_breakpoint_location_function.
7575 (add_location_to_breakpoint): Likewise.
7576
b3a7d171
AB
75772019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
7578
7579 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
7580 required features based on default bfd type when no specific bfd
7581 is present.
7582
1f6f6e21
PW
75832019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7584
7585 * NEWS: Mention that GDB printf and eval commands can now print
7586 C-style and Ada-style convenience var strings without
7587 calling the inferior.
7588 * printcmd.c (printf_c_string): Locally print GDB internal var
7589 instead of transiting via the inferior.
7590 (printf_wide_c_string): Likewise.
7591
75922019-07-04 Alan Hayward <alan.hayward@arm.com>
ea142fbf 7593
5862c886 7594 PR breakpoints/25011
ea142fbf
AH
7595 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
7596
0598af48
TT
75972019-07-04 Tom Tromey <tom@tromey.com>
7598
7599 PR tui/24724:
7600 * tui/tui-winsource.c (tui_clear_source_content): Update.
7601 (tui_source_window_base::set_is_exec_point_at): Fix comment.
7602 (tui_update_breakpoint_info): Update.
7603 (tui_set_exec_info_content): Update.
7604 * tui/tui-source.c (tui_set_source_content_nil): Update.
7605 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
7606 has_break.
7607 * tui/tui-data.h (enum tui_bp_flag): New.
7608 (tui_bp_flags): New enum flags type.
7609 (struct tui_source_element) <break_mode>: Change type. Rename
7610 from has_break.
7611 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
7612 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
7613 constants.
7614 * tui/tui-winsource.h: Fix comment.
7615
350fab54
AH
76162019-07-04 Alan Hayward <alan.hayward@arm.com>
7617
7618 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
7619 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
7620 (store_fpregs_to_thread)
7621 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7622 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
7623 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
7624 (IWMMXT_REGS_SIZE): Add define.
7625 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
7626 (fetch_vfp_regs, store_vfp_regs)
7627 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
7628 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
7629
f0452268
AH
76302019-07-04 Alan Hayward <alan.hayward@arm.com>
7631
7632 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
7633 defines.
7634 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
7635 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
7636 (ARM_INT_REGISTER_SIZE): ...to this.
7637 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
7638 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
7639 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
7640 (arm_linux_collect_gregset, supply_nwfpe_register)
7641 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
7642 defines.
7643 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
7644 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
7645 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
7646 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
7647 (arm_return_in_memory, arm_store_return_value)
7648 (arm_get_longjmp_target, arm_register_g_packet_guesses)
7649 (arm_record_ld_st_multiple): Likewise.
7650 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
7651 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
7652
e935475c
AH
76532019-07-04 Alan Hayward <alan.hayward@arm.com>
7654
7655 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
7656 AARCH64_DISPLACED_MODIFIED_INSNS.
7657 * aarch64-tdep.c (struct aarch64_displaced_step_data)
7658 (aarch64_displaced_step_copy_insn): Likewise.
7659 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7660 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
7661 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7662 ARM_DISPLACED_MODIFIED_INSNS.
7663 * arm-tdep.c (arm_gdbarch_init): Likewise.
7664 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
7665 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
7666 (struct arm_displaced_step_closure): Use
7667 ARM_DISPLACED_MODIFIED_INSNS.
7668
df0bb381
AH
76692019-07-04 Alan Hayward <alan.hayward@arm.com>
7670
7671 * features/Makefile: Remove unused xml files.
7672 * features/aarch64.xml: Remove.
7673 * features/i386/amd64-avx-avx512-linux.xml: Remove.
7674 * features/i386/amd64-avx-avx512.xml: Remove.
7675 * features/i386/amd64-avx-linux.xml: Remove.
7676 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
7677 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
7678 * features/i386/amd64-avx-mpx-linux.xml: Remove.
7679 * features/i386/amd64-avx-mpx.xml: Remove.
7680 * features/i386/amd64-avx.xml: Remove.
7681 * features/i386/amd64-linux.xml: Remove.
7682 * features/i386/amd64-mpx-linux.xml: Remove.
7683 * features/i386/amd64-mpx.xml: Remove.
7684 * features/i386/amd64.xml: Remove.
7685 * features/i386/i386-avx-avx512-linux.xml: Remove.
7686 * features/i386/i386-avx-avx512.xml: Remove.
7687 * features/i386/i386-avx-linux.xml: Remove.
7688 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
7689 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
7690 * features/i386/i386-avx-mpx-linux.xml: Remove.
7691 * features/i386/i386-avx-mpx.xml: Remove.
7692 * features/i386/i386-avx.xml: Remove.
7693 * features/i386/i386-linux.xml: Remove.
7694 * features/i386/i386-mmx-linux.xml: Remove.
7695 * features/i386/i386-mmx.xml: Remove.
7696 * features/i386/i386-mpx-linux.xml: Remove.
7697 * features/i386/i386-mpx.xml: Remove.
7698 * features/i386/i386.xml: Remove.
7699 * features/i386/x32-avx-avx512-linux.xml: Remove.
7700 * features/i386/x32-avx-linux.xml: Remove.
7701 * features/i386/x32-linux.xml: Remove.
7702
edd6266a
AH
77032019-07-04 Alan Hayward <alan.hayward@arm.com>
7704
7705 * regformats/aarch64.dat: Remove.
7706 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
7707 * regformats/i386/amd64-avx-linux.dat: Remove.
7708 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
7709 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
7710 * regformats/i386/amd64-linux.dat: Remove.
7711 * regformats/i386/amd64-mpx-linux.dat: Remove.
7712 * regformats/i386/amd64.dat: Remove.
7713 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
7714 * regformats/i386/i386-avx-linux.dat: Remove.
7715 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
7716 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
7717 * regformats/i386/i386-linux.dat: Remove.
7718 * regformats/i386/i386-mmx-linux.dat: Remove.
7719 * regformats/i386/i386-mpx-linux.dat: Remove.
7720 * regformats/i386/i386.dat: Remove.
7721 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
7722 * regformats/i386/x32-avx-linux.dat: Remove.
7723 * regformats/i386/x32-linux.dat: Remove.
7724
2b40fda7
AH
77252019-07-04 Alan Hayward <alan.hayward@arm.com>
7726
7727 * aarch64-tdep.c: Remove xml self tests.
7728 * amd64-linux-tdep.c: Likewise.
7729 * amd64-tdep.c: Likewise.
7730 * i386-linux-tdep.c: Likewise.
7731 * i386-tdep.c: Likewise.
7732
5f4ba3e7
PA
77332019-07-03 Pedro Alves <palves@redhat.com>
7734
7735 PR cli/24732
7736 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
7737 (pipe_cmd_option_defs): New.
7738 (make_pipe_cmd_options_def_group): New.
7739 (pipe_command): Use gdb::option::process_options.
7740 (pipe_command_completer): New function.
7741 (_initialize_cli_cmds): Install completer for "pipe" command.
7742
3d9be6f5
PA
77432019-07-03 Pedro Alves <palves@redhat.com>
7744
7745 * cli/cli-option.c (union option_value) <string>: New field.
7746 (struct option_def_and_value): Add ctor, move ctor, dtor and
7747 use DISABLE_COPY_AND_ASSIGN.
7748 (option_def_and_value::clear_value): New.
7749 (parse_option, save_option_value_in_ctx, get_val_type_str)
7750 (add_setshow_cmds_for_options): Handle var_string.
7751 * cli-option.h (union option_def::var_address) <string>: New
7752 field.
7753 (struct string_option_def): New.
7754 * maint-test-options.c (struct test_options_opts): Add default
7755 ctor and use DISABLE_COPY_AND_ASSIGN.
7756 <string_opt>: New field.
7757 (test_options_opts::~test_options_opts): New.
7758 (test_options_opts::dump): Also dump "-string".
7759 (test_options_option_defs): Install "string.
7760
41fc454c
PA
77612019-07-03 Pedro Alves <palves@redhat.com>
7762
7763 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
7764 option_value with a null enumeration.
7765 (complete_options): Save the option values in the context.
7766 (save_option_value_in_ctx): New, factored out from ...
7767 (process_options): ... here.
7768 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
7769 of the function.
7770 * maint-test-options.c (test_options_opts::dump): New, factored
7771 out from ...
7772 (maintenance_test_options_command_mode): ... here.
7773 (maintenance_test_options_command_completion_result): Delete.
7774 (maintenance_test_options_command_completion_text): Update
7775 comment.
7776 (maintenance_show_test_options_completion_result): Change
7777 prototype. Just print
7778 maintenance_test_options_command_completion_text.
7779 (save_completion_result): New.
7780 (maintenance_test_options_completer_mode): Pass options context to
7781 complete_options, and then save a dump.
7782 (_initialize_maint_test_options): Use add_cmd to install "maint
7783 show test-options-completion-result".
7784
fdbc9870
PA
77852019-07-03 Pedro Alves <palves@redhat.com>
7786
7787 * NEWS (New commands): Mention "with" and "maint with".
7788 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
7789 (with_command, with_command_completer): New.
7790 (pipe_command): Adjust to new repeat_previous
7791 interface.
7792 (_initialize_cli_cmds): Install the "with" command and its "w"
7793 alias.
7794 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
7795 declarations.
7796 * cli/cli-setshow.c (parse_cli_var_uinteger)
7797 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
7798 argument strings for all var_types.
7799 (get_setshow_command_value_string): New, factored out from ...
7800 (do_show_command): ... this.
7801 * cli/cli-setshow.h: Include <string>.
7802 (get_setshow_command_value_string): Declare.
7803 * command.h (repeat_previous): Now returns const char *. Adjust
7804 comment.
7805 * maint.c: Include "cli/cli-cmds.h".
7806 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
7807 (_initialize_maint_cmds): Register the "maintenance with" command.
7808 * top.c (repeat_previous): Move bits from pipe_command here:
7809 Return the saved command line, if any; error out if there's no
7810 command to relaunch.
7811
c6ac8931
PA
78122019-07-03 Pedro Alves <palves@redhat.com>
7813
7814 * NEWS (New commands): Mention "maint set/show test-settings"
7815 instead of "maint test-settings".
7816 * maint-test-settings.c (maintenance_test_settings_list): Delete.
7817 (maintenance_test_settings_set_list): Rename to ...
7818 (maintenance_set_test_settings_list): ... this.
7819 (maintenance_test_settings_show_list): Rename to ...
7820 (maintenance_show_test_settings_list): ... this.
7821 (maintenance_test_settings_cmd): Delete.
7822 (maintenance_test_settings_set_cmd): ...
7823 (maintenance_set_test_settings_cmd): ... this.
7824 (maintenance_test_settings_show_cmd): ...
7825 (maintenance_show_test_settings_cmd): ... this.
7826 (maintenance_test_settings_show_value_cmd):
7827 (maintenance_show_test_settings_value_cmd): ... this.
7828 (_initialize_maint_test_settings): No longer install the "maint
7829 test-settings" prefix command. Rename "maint test-settings set"
7830 to "maint set test-settings", and "maint test-settings show" to
7831 "maint show test-settings". Adjust all subcommands.
7832
d1fcf2fd
PA
78332019-07-03 Pedro Alves <palves@redhat.com>
7834
7835 * maint-test-settings.c: Fix file's intro comment. Replace all
7836 references to "test-options" with references to "test-settings",
7837 in comments.
7838
970f9d09
PA
78392019-07-03 Pedro Alves <palves@redhat.com>
7840
7841 * maint-test-settings.c (maintenance_test_settings_xxx)
7842 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
7843 New.
7844 (maintenance_test_settings_enums): Use them.
7845 (maintenance_test_settings_enum): Default to
7846 maintenance_test_settings_xxx.
7847 (_initialize_maint_test_settings): Initialize
7848 MAINTENANCE_TEST_SETTINGS_FILENAME.
7849
f3869b1a
SM
78502019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7851
7852 * breakpoint.h (remove_breakpoints_inf): Change return type to
7853 void, move function documentation here.
7854 * breakpoint.c (remove_breakpoints_inf): Change return type to
7855 void, move function documentation to header.
7856
54d66006
PA
78572019-07-02 Pedro Alves <palves@redhat.com>
7858
7859 * NEWS (Completion improvements): Mention "info threads".
7860 * thread.c (struct info_threads_opts, info_threads_option_defs)
7861 (make_info_threads_options_def_group): New.
7862 (info_threads_command): Use gdb::option::process_options.
7863 (info_threads_command_completer): New.
7864 (_initialize_thread): Use gdb::option::build_help to build the
7865 help text for "info threads".
7866
854f6088
SM
78672019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
7868
7869 * defs.h (generic_load): Move from here...
7870 * symfile.h (generic_load): ... to here. Rename name parameter
7871 to args.
7872 * symfile.c (generic_load): Add comment.
7873
54ee4252
TT
78742019-07-01 Tom Tromey <tromey@adacore.com>
7875
7876 * dwarf2read.c
7877 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
7878 declaration of without_params. Fix formatting.
7879
65392b3e
TT
78802019-07-01 Tom Tromey <tromey@adacore.com>
7881
7882 * ada-exp.y (find_primitive_type): Update.
7883 * ada-lang.h (ada_lookup_symbol): Update.
7884 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
7885 parameter.
7886 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
7887
7d7571f0
SDJ
78882019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7889
7890 PR breakpoints/24541
7891 * gdbarch.c: Regenerate.
7892 * gdbarch.h: Regenerate.
7893 * gdbarch.sh: Add 'stap_adjust_register'.
7894 * i386-tdep.c: Include '<unordered_set>'.
7895 (i386_stap_adjust_register): New function.
7896 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
7897 * stap-probe.c (stap_parse_register_operand): Call
7898 'gdbarch_stap_adjust_register'.
7899
5af5392a
SDJ
79002019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
7901
7902 PR python/24742
7903 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
7904 * python/python.c (do_start_initialization): Use 'xmalloc'
7905 instead of 'PyMem_Malloc'.
7906
10d06d82
TT
79072019-06-28 Tom Tromey <tromey@adacore.com>
7908
7909 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
7910 for Ada.
7911
1b7f24cd
TT
79122019-06-27 Tom Tromey <tromey@adacore.com>
7913
7914 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
7915 objfile_key.
7916 (arm_find_mapping_symbol, arm_record_special_symbol)
7917 (_initialize_arm_tdep): Update.
7918 (arm_objfile_data_free): Remove.
7919
3d507ff2
TT
79202019-06-27 Tom Tromey <tromey@adacore.com>
7921
7922 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
7923 to cp_print_static_field.
7924
762c164d
TT
79252019-06-26 Tom Tromey <tromey@adacore.com>
7926
7927 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
7928 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
7929 declare.
7930
aa2f9bcf
AH
79312019-06-26 Alan Hayward <alan.hayward@arm.com>
7932
7933 * features/aarch64-core.c (create_feature_aarch64_core):
7934 Regenerate.
7935 * features/aarch64-core.xml: Add cpsr flags.
7936
3426ae57
AH
79372019-06-26 Alan Hayward <alan.hayward@arm.com>
7938
7939 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
7940 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
7941
4838e44c
SM
79422019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7943
7944 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
7945 field.
7946 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
7947 use.
7948 (arm_record_special_symbol): Don't insert new symbol in sorted
7949 position, push it at the end.
7950
54cc7474
SM
79512019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
7952
7953 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
7954 (arm_mapping_symbol_s): Remove.
7955 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
7956 (arm_mapping_symbol_vec): New typedef.
7957 (struct arm_per_objfile): Add constructor.
7958 <section_maps>: Change type to
7959 std::unique_ptr<arm_mapping_symbol_vec[]>.
7960 (arm_compare_mapping_symbols): Remove.
7961 (arm_find_mapping_symbol): Adjust to section_maps type change.
7962 (arm_objfile_data_free): Call delete on arm_per_objfile.
7963 (arm_record_special_symbol): Adjust to section_maps type change.
7964 Allocate arm_per_objfile with new.
7965
b65b566c
PW
79662019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7967
7968 * cli/cli-cmds.c (alias_command): Compare the alias prefix
7969 with the command prefix.
7970
c2fc64f5
TT
79712019-06-25 Tom Tromey <tom@tromey.com>
7972
7973 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
7974 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
7975
fb54fa76
TT
79762019-06-25 Tom Tromey <tom@tromey.com>
7977
7978 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
7979 type.
7980 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
7981 protected.
7982
f7952c57
TT
79832019-06-25 Tom Tromey <tom@tromey.com>
7984
7985 * tui/tui-winsource.c
7986 (tui_source_window_base::set_is_exec_point_at): Add check against
7987 LOA_ADDRESS.
7988
17568d78
TT
79892019-06-25 Tom Tromey <tom@tromey.com>
7990
7991 * tui/tui-source.c (tui_set_source_content): Don't check before
7992 xfree.
7993 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
7994
53e7cdba
TT
79952019-06-25 Tom Tromey <tom@tromey.com>
7996
7997 * tui/tui-winsource.h (tui_update_source_window_as_is)
7998 (tui_alloc_source_buffer, tui_line_is_displayed)
7999 (tui_addr_is_displayed): Change type of win_info.
8000 * tui/tui-winsource.c (tui_update_source_window_as_is)
8001 (tui_clear_source_content, tui_show_source_line)
8002 (tui_show_source_content, tui_source_window_base::refill)
8003 (tui_source_window_base::set_is_exec_point_at)
8004 (tui_source_window_base::set_is_exec_point_at)
8005 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
8006 (tui_alloc_source_buffer, tui_line_is_displayed)
8007 (tui_addr_is_displayed): Change type of win_info. Update.
8008 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8009 (tui_source_window_base::do_make_visible_with_new_height):
8010 Update.
8011 * tui/tui-source.c (tui_set_source_content)
8012 (tui_set_source_content_nil)
8013 (tui_source_window::do_scroll_vertical): Update.
8014 * tui/tui-layout.c (show_layout): Update.
8015 * tui/tui-disasm.c (tui_set_disassem_content)
8016 (tui_disasm_window::do_scroll_vertical): Update.
8017 * tui/tui-data.h (tui_win_content): Remove.
8018 (struct tui_gen_win_info) <content, content_size>: Remove.
8019 (struct tui_source_element): Add initializers and destructor.
8020 (union tui_which_element, struct tui_win_element): Remove.
8021 (struct tui_source_window_base) <content>: New field.
8022 (struct tui_data_window): Remove destructor.
8023 (tui_alloc_content, tui_free_win_content)
8024 (tui_free_all_source_wins_content): Don't declare.
8025 * tui/tui-data.c (tui_initialize_static_data): Update.
8026 (init_content_element, tui_alloc_content): Remove.
8027 (~tui_gen_win_info): Update.
8028 (~tui_data_window, tui_free_all_source_wins_content)
8029 (tui_free_win_content, free_content, free_content_elements):
8030 Remove.
8031
7908abbf
TT
80322019-06-25 Tom Tromey <tom@tromey.com>
8033
8034 * tui/tui-winsource.h (tui_clear_source_content)
8035 (tui_erase_source_content, tui_show_source_content): Change type
8036 of win_info.
8037 * tui/tui-winsource.c (tui_clear_source_content)
8038 (tui_erase_source_content, tui_show_source_content): Change type
8039 of win_info.
8040 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
8041 * tui/tui-source.h (tui_set_source_content_nil): Change type of
8042 win_info.
8043 * tui/tui-source.c (tui_set_source_content_nil): Change type of
8044 win_info.
8045 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
8046
02c28df0
TT
80472019-06-25 Tom Tromey <tom@tromey.com>
8048
8049 * tui/tui-winsource.c (tui_clear_source_content)
8050 (tui_source_window_base::set_is_exec_point_at): Update.
8051 * tui/tui-source.c (tui_set_source_content_nil): Update.
8052 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
8053 a bool.
8054 * tui/tui-data.c (init_content_element): Update.
8055
6658b1bf
TT
80562019-06-25 Tom Tromey <tom@tromey.com>
8057
8058 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
8059 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
8060 * tui/tui-layout.c (init_and_make_win): Update.
8061 * tui/tui.h (enum tui_win_type): Update.
8062 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
8063 tui_win_is_auxillary.
8064 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
8065 tui_win_is_auxillary.
8066
21e1c91e
TT
80672019-06-25 Tom Tromey <tom@tromey.com>
8068
8069 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
8070 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
8071 (tui_delete_data_content_windows, tui_display_all_data)
8072 (tui_data_window::do_scroll_vertical, tui_display_data_from):
8073 Update.
8074 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
8075 * tui/tui-regs.c (tui_last_regs_line_no)
8076 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8077 (tui_show_registers): Update.
8078 (tui_show_register_group): Return void. Update.
8079 (tui_display_registers_from, tui_display_reg_element_at_line)
8080 (tui_display_registers_from_line, tui_check_register_values):
8081 Update.
8082 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
8083 member.
8084 (struct tui_data_window) <regs_content>: Now a std::vector.
8085 <regs_content_count>: Remove.
8086 (tui_add_content_elements, tui_free_data_content): Don't declare.
8087 * tui/tui-data.c (tui_data_window::clear_detail): Update.
8088 (init_content_element): Remove DATA_WIN case. Add assert.
8089 (tui_add_content_elements): Remove.
8090 (tui_data_window): Update.
8091 (tui_free_data_content): Remove.
8092 (free_content_elements): Remove DATA_WIN case.
8093
115ac53b
TT
80942019-06-25 Tom Tromey <tom@tromey.com>
8095
8096 * tui/tui-data.c (tui_data_item_window): Update.
8097 * tui/tui-windata.h (tui_check_data_values): Don't declare.
8098 * tui/tui-windata.c (tui_display_all_data)
8099 (tui_display_data_from_line): Update.
8100 (tui_check_data_values): Remove.
8101 * tui/tui-regs.c (tui_show_register_group)
8102 (tui_display_reg_element_at_line): Update.
8103 * tui/tui-hooks.c (tui_register_changed)
8104 (tui_refresh_frame_and_register_information): Call
8105 tui_check_register_values.
8106 * tui/tui-data.h (struct tui_data_window) <data_content,
8107 data_content_count, data_type>: Remove.
8108 (enum tui_data_type): Remove.
8109
8110 * tui/tui-data.c (tui_data_window::clear_detail)
8111 (~tui_data_window): Update.
8112
eaf9738b
TT
81132019-06-25 Tom Tromey <tom@tromey.com>
8114
8115 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
8116 declare.
8117 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
8118 Rename from tui_first_data_item_displayed. Update.
8119 (tui_data_window::refresh_all)
8120 (tui_data_window::do_scroll_vertical): Update.
8121 * tui/tui-data.h (struct tui_data_window)
8122 <first_data_item_displayed>: Declare new method.
8123
31ca4723
TT
81242019-06-25 Tom Tromey <tom@tromey.com>
8125
8126 * tui/tui-data.h (tui_init_generic_part): Don't declare.
8127 * tui/tui-data.c (tui_init_generic_part): Remove, moving
8128 contents...
8129 (tui_initialize_static_data): ...here.
8130
41bcff7f
TT
81312019-06-25 Tom Tromey <tom@tromey.com>
8132
8133 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8134 (tui_display_registers_from, tui_check_register_values): Update.
8135 (tui_display_register): Remove win_info parameter; update.
8136 (tui_get_register): Change type of parameters.
8137 * tui/tui-data.h (struct tui_data_element): Remove.
8138 (union tui_which_element) <data>: Remove.
8139 <data_window>: Change type.
8140 (struct tui_data_item_window): New.
8141 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
8142 case. Add assert.
8143 (~tui_data_item_window): New destructor.
8144 (free_content_elements): Remove DATA_ITEM_WIN case.
8145
d2802c33
TT
81462019-06-25 Tom Tromey <tom@tromey.com>
8147
8148 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
8149 Remove.
8150
dd835f8b
TT
81512019-06-25 Tom Tromey <tom@tromey.com>
8152
8153 * tui/tui-data.h (struct tui_command_element): Remove.
8154 (union tui_which_element) <command>: Remove.
8155 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
8156 assert.
8157 (free_content_elements): Remove CMD_WIN case.
8158
bd7db367
TT
81592019-06-25 Tom Tromey <tom@tromey.com>
8160
8161 * tui/tui-layout.c (tui_set_layout): Update.
8162 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
8163 * tui/tui-data.c (layout_def): Update.
8164
3add462f
TT
81652019-06-25 Tom Tromey <tom@tromey.com>
8166
8167 * tui/tui-wingeneral.c (tui_refresh_all): Update.
8168 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8169 (tui_source_window_base::set_new_height): Update.
8170 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
8171 Update.
8172 (tui_set_locator_fullname, tui_set_locator_info)
8173 (tui_show_frame_info): Update.
8174 * tui/tui-source.c (tui_set_source_content)
8175 (tui_source_is_displayed): Update.
8176 * tui/tui-layout.c (show_source_disasm_command, show_data)
8177 (show_source_or_disasm_and_command): Update.
8178 * tui/tui-disasm.c (tui_set_disassem_content)
8179 (tui_get_begin_asm_address): Update.
8180 * tui/tui-data.h (struct tui_locator_element): Remove.
8181 (union tui_which_element) <locator>: Remove.
8182 (struct tui_locator_window): New.
8183 (tui_locator_win_info_ptr): Change return type.
8184 * tui/tui-data.c (_locator): Change type.
8185 (tui_locator_win_info_ptr): Change return type.
8186 (init_content_element): Remove LOCATOR_WIN case. Add assert.
8187 (tui_alloc_content): Add assert.
8188
489e9d8b
TT
81892019-06-25 Tom Tromey <tom@tromey.com>
8190
8191 * tui/tui-winsource.c
8192 (tui_exec_info_window::maybe_allocate_content): New method.
8193 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
8194 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
8195 (make_source_or_disasm_window): Add cast.
8196 * tui/tui-data.h (union tui_which_element) <simple_string>:
8197 Remove.
8198 (struct tui_source_info): New.
8199 (struct tui_source_window_base) <execution_info>: Change type.
8200 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
8201 case, and add assert.
8202 (tui_alloc_content): Add assert.
8203
c3fabb7d
TT
82042019-06-25 Tom Tromey <tom@tromey.com>
8205
8206 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
8207 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
8208 * tui/tui-data.c (tui_alloc_win_info): Remove.
8209
bbc228ee
TT
82102019-06-25 Tom Tromey <tom@tromey.com>
8211
8212 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
8213 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
8214 can_highlight.
8215
5fcee43a
TT
82162019-06-25 Tom Tromey <tom@tromey.com>
8217
8218 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
8219 make_visible_with_new_height method.
8220 (tui_win_info::make_visible_with_new_height): New method.
8221 (tui_source_window_base::do_make_visible_with_new_height)
8222 (tui_data_window::do_make_visible_with_new_height)
8223 (tui_cmd_window::do_make_visible_with_new_height): New methods.
8224 (make_visible_with_new_height): Remove.
8225 (tui_resize_all, tui_adjust_win_heights): Use
8226 make_visible_with_new_height method.
8227 * tui/tui-data.h (struct tui_win_info)
8228 <do_make_visible_with_new_height, make_visible_with_new_height>:
8229 New methods.
8230 (struct tui_source_window_base, struct tui_data_window)
8231 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
8232 methods.
8233
d83f1fe6
TT
82342019-06-25 Tom Tromey <tom@tromey.com>
8235
8236 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
8237 method.
8238 (update_tab_width): Call update_tab_width method.
8239 * tui/tui-data.h (struct tui_win_info)
8240 (struct tui_source_window_base) <update_tab_width>: New methods.
8241
17374de4
TT
82422019-06-25 Tom Tromey <tom@tromey.com>
8243
8244 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
8245 parameter.
8246 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
8247 parameter.
8248 (tui_gen_win_info::make_visible): Update.
8249 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
8250 parameter.
8251 * tui/tui-data.h (enum tui_box): New enum.
8252 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
8253
f936bca2
TT
82542019-06-25 Tom Tromey <tom@tromey.com>
8255
8256 * tui/tui-layout.c (make_source_or_disasm_window): Always use
8257 init_and_make_win for EXEC_INFO_WIN.
8258 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
8259 longer inline.
8260 (struct tui_win_info) <~tui_win_info>: Inline.
8261 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8262 Don't declare.
8263 * tui/tui-data.c (source_win, disasm_win): Remove globals.
8264 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8265 Remove.
8266 (tui_initialize_static_data): Update.
8267 (~tui_gen_win_info): Handle more cleanup here.
8268 (~tui_source_window_base): Delete "execution_info".
8269 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
8270
d6ba6a11
TT
82712019-06-25 Tom Tromey <tom@tromey.com>
8272
8273 * tui/tui-layout.c (make_command_window): Don't set
8274 can_highlight.
8275 (show_source_disasm_command): Call the reset method.
8276 (show_data): Don't set can_highlight. Call the reset method.
8277 (tui_gen_win_info::reset): Rename from init_gen_win_info
8278 (init_and_make_win): Simplify. Return tui_gen_win_info.
8279 (show_source_or_disasm_and_command): Call the reset method.
8280 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
8281 (struct tui_cmd_window): Set can_highlight.
8282
48a3bd16
TT
82832019-06-25 Tom Tromey <tom@tromey.com>
8284
8285 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
8286 from make_visible.
8287 (tui_make_visible, tui_make_invisible): Rewrite.
8288 (tui_win_info::make_visible): Remove.
8289 (tui_source_window_base::make_visible): Update.
8290 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
8291 method. Moved from...
8292 (struct tui_win_info) <make_visible>: ...here.
8293
c3bd716f
TT
82942019-06-25 Tom Tromey <tom@tromey.com>
8295
8296 * tui/tui-winsource.c
8297 (tui_source_window_base::do_scroll_horizontal): Remove direction
8298 parameter.
8299 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
8300 direction parameter.
8301 * tui/tui-win.c (tui_win_info::forward_scroll)
8302 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8303 (tui_win_info::right_scroll): Update.
8304 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
8305 direction parameter.
8306 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
8307 direction parameter.
8308 * tui/tui-data.h (enum tui_scroll_direction): Remove.
8309 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
8310 Remove direction parameter.
8311 (struct tui_source_window_base, struct tui_source_window)
8312 (struct tui_disasm_window, struct tui_data_window)
8313 (struct tui_cmd_window): Update.
8314
21c32dca
TT
83152019-06-25 Tom Tromey <tom@tromey.com>
8316
8317 * tui/tui-winsource.h (tui_set_exec_info_content)
8318 (tui_show_exec_info_content, tui_erase_exec_info_content)
8319 (tui_clear_exec_info_content, tui_update_exec_info): Change
8320 argument to tui_source_window_base.
8321 * tui/tui-winsource.c (tui_set_exec_info_content)
8322 (tui_show_exec_info_content, tui_erase_exec_info_content)
8323 (tui_clear_exec_info_content, tui_update_exec_info): Change
8324 argument to tui_source_window_base.
8325
73fbdc65
TT
83262019-06-25 Tom Tromey <tom@tromey.com>
8327
8328 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
8329 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
8330
33325343
TT
83312019-06-25 Tom Tromey <tom@tromey.com>
8332
8333 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
8334 check.
8335
29d2c474
TT
83362019-06-25 Tom Tromey <tom@tromey.com>
8337
8338 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
8339 type to void.
8340 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
8341 type to void.
8342 * tui/tui-source.c (tui_set_source_content): Update.
8343 * tui/tui-disasm.c (tui_set_disassem_content): Update.
8344
152f3f4b
TT
83452019-06-25 Tom Tromey <tom@tromey.com>
8346
8347 * tui/tui-win.c (window_name_completer, tui_set_focus)
8348 (tui_all_windows_info): Use name method.
8349 * tui/tui-data.h (struct tui_gen_win_info)
8350 (struct tui_source_window, struct tui_disasm_window)
8351 (struct tui_data_window, struct tui_cmd_window) <name>: New
8352 method.
8353 (tui_win_name): Don't declare.
8354 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
8355 (tui_win_name): Remove.
8356
be4da588
TT
83572019-06-25 Tom Tromey <tom@tromey.com>
8358
8359 * tui/tui-winsource.h (tui_update_source_window)
8360 (tui_update_source_window_as_is): Change parameter type.
8361 * tui/tui-winsource.c (tui_update_source_window): Change win_info
8362 to be a tui_source_window_base.
8363 (tui_update_source_window_as_is): Likewise.
8364 * tui/tui-win.c (make_visible_with_new_height): Update.
8365
5b81daba
TT
83662019-06-25 Tom Tromey <tom@tromey.com>
8367
8368 * tui/tui-winsource.c (tui_erase_source_content)
8369 (tui_show_source_content, tui_show_exec_info_content)
8370 (tui_erase_exec_info_content): Use refresh_window method.
8371 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
8372 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
8373 from tui_refresh_win.
8374 (tui_data_window::refresh_window): New method.
8375 (tui_win_info::refresh, tui_source_window_base::refresh)
8376 (tui_refresh_all): Use refresh_window method.
8377 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
8378 method.
8379 * tui/tui-regs.c (tui_display_register): Call refresh_window
8380 method.
8381 * tui/tui-layout.c (show_source_disasm_command)
8382 (show_source_or_disasm_and_command): Call refresh_window method.
8383 * tui/tui-data.h (struct tui_gen_win_info)
8384 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
8385 New method.
8386
cb2ce893
TT
83872019-06-25 Tom Tromey <tom@tromey.com>
8388
8389 * tui/tui.c (tui_rl_other_window, tui_enable)
8390 (tui_is_window_visible, tui_get_command_dimension): Update.
8391 * tui/tui-winsource.c (tui_update_source_window_as_is)
8392 (tui_clear_source_content, tui_erase_source_content)
8393 (tui_show_source_line, tui_source_window_base::refill)
8394 (tui_source_window_base::do_scroll_horizontal)
8395 (tui_source_window_base::set_is_exec_point_at)
8396 (tui_update_breakpoint_info, tui_set_exec_info_content)
8397 (tui_alloc_source_buffer, tui_line_is_displayed)
8398 (tui_addr_is_displayed): Update.
8399 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8400 (tui_check_and_display_highlight_if_needed)
8401 (tui_win_info::make_visible, tui_win_info::refresh)
8402 (tui_refresh_all): Update.
8403 * tui/tui-windata.c (tui_first_data_item_displayed)
8404 (tui_delete_data_content_windows, tui_erase_data_content)
8405 (tui_display_all_data, tui_data_window::refresh_all)
8406 (tui_check_data_values): Update.
8407 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
8408 (tui_set_win_focus_to, tui_win_info::forward_scroll)
8409 (tui_win_info::backward_scroll, tui_refresh_all_win)
8410 (tui_resize_all, tui_set_focus, tui_all_windows_info)
8411 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
8412 (tui_source_window_base::set_new_height)
8413 (tui_data_window::set_new_height)
8414 (make_invisible_and_set_new_height)
8415 (make_visible_with_new_height, new_height_ok)
8416 (parse_scrolling_args): Update.
8417 * tui/tui-stack.c (tui_show_frame_info): Update.
8418 * tui/tui-source.c (tui_set_source_content)
8419 (tui_set_source_content_nil, tui_source_is_displayed)
8420 (tui_source_window::do_scroll_vertical): Update.
8421 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8422 (tui_display_registers_from, tui_display_reg_element_at_line)
8423 (tui_check_register_values, tui_reg_command): Update.
8424 * tui/tui-layout.c (tui_default_win_height)
8425 (show_source_disasm_command, show_data, init_and_make_win)
8426 (show_source_or_disasm_and_command): Update.
8427 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
8428 (tui_redisplay_readline, tui_mld_flush)
8429 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
8430 (tui_getc): Update.
8431 * tui/tui-disasm.c (tui_set_disassem_content)
8432 (tui_disasm_window::do_scroll_vertical): Update.
8433 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
8434 Now virtual.
8435 (struct tui_win_info): Derive from tui_gen_win_info.
8436 <~tui_win_info>: Mark as override.
8437 <generic>: Remove member.
8438 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
8439 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
8440 (~tui_data_window, ~tui_win_info)
8441 (tui_free_all_source_wins_content): Update.
8442 * tui/tui-command.c (tui_refresh_cmd_win): Update.
8443
ab313b35
TT
84442019-06-25 Tom Tromey <tom@tromey.com>
8445
8446 * tui/tui-layout.c (init_and_make_win): Use new.
8447 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
8448 destructor, initializers.
8449 (tui_alloc_generic_win_info): Don't declare.
8450 * tui/tui-data.c (_locator): Add argument to constructor.
8451 (source_win, disasm_win): New globals.
8452 (exec_info): Remove.
8453 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
8454 Update.
8455 (tui_alloc_generic_win_info): Remove.
8456 (init_content_element): Use new.
8457 (tui_win_info::tui_win_info): Update.
8458 (free_content_elements) <case DATA_WIN>: Use delete.
8459
dc2c33e4
TT
84602019-06-25 Tom Tromey <tom@tromey.com>
8461
8462 * tui/tui-wingeneral.c (tui_refresh_win): Update.
8463 * tui/tui-windata.c (tui_first_data_item_displayed)
8464 (tui_delete_data_content_windows): Update.
8465 * tui/tui-win.c (tui_data_window::set_new_height): Update.
8466 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
8467 (tui_display_registers_from, tui_check_register_values): Update.
8468 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
8469 pointer.
8470 * tui/tui-data.c (init_content_element): Update. Allocate the new
8471 window.
8472 (tui_free_data_content): Update.
8473 (free_content_elements) <case DATA_WIN>: Free the window.
8474
214a5cbe
TT
84752019-06-25 Tom Tromey <tom@tromey.com>
8476
8477 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
8478 Update.
8479 * tui/tui-layout.c (make_command_window)
8480 (show_source_disasm_command, show_data, init_and_make_win)
8481 (show_source_or_disasm_and_command): Update.
8482 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
8483 method.
8484 <can_highight, is_highlighted>: Now bool.
8485 (tui_set_win_highlight): Don't declare.
8486 * tui/tui-data.c (tui_set_win_highlight): Remove.
8487
8e2daf15
TT
84882019-06-25 Tom Tromey <tom@tromey.com>
8489
8490 * tui/tui-wingeneral.c (make_visible): Remove check of window
8491 type.
8492
8903bd8a
TT
84932019-06-25 Tom Tromey <tom@tromey.com>
8494
8495 * tui/tui-win.c (tui_win_info::max_height)
8496 (tui_cmd_window::max_height): New methods.
8497 (new_height_ok): Call max_height.
8498 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
8499 <max_height>: New method.
8500
3f02ce1e
TT
85012019-06-25 Tom Tromey <tom@tromey.com>
8502
8503 * tui/tui-win.c (tui_source_window_base::set_new_height)
8504 (tui_data_window::set_new_height): New methods.
8505 (make_invisible_and_set_new_height): Call set_new_height method.
8506 * tui/tui-data.h (struct tui_win_info)
8507 (struct tui_source_window_base, struct tui_data_window)
8508 <set_new_height>: New method.
8509
1825f487
TT
85102019-06-25 Tom Tromey <tom@tromey.com>
8511
8512 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
8513 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
8514 tui_refresh_data_win.
8515 * tui/tui-win.c (tui_source_window_base::refresh_all): New
8516 method.
8517 (tui_refresh_all_win): Call the refresh_all method.
8518 (tui_set_focus): Likewise.
8519 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
8520 (struct tui_source_window_base, struct tui_data_window) <refresh>:
8521 Likewise.
8522
ad54d15b
TT
85232019-06-25 Tom Tromey <tom@tromey.com>
8524
8525 * tui/tui-winsource.h (tui_refill_source_window)
8526 (tui_set_is_exec_point_at): Don't declare.
8527 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
8528 (tui_source_window_base::refill): Rename from
8529 tui_refill_source_window.
8530 (tui_source_window_base::do_scroll_horizontal): Update.
8531 (tui_source_window_base::set_is_exec_point_at): Rename from
8532 tui_set_is_exec_point_at.
8533 (tui_update_all_breakpoint_info): Update.
8534 * tui/tui-stack.c (tui_show_frame_info): Update.
8535 * tui/tui-layout.c (show_data): Add cast.
8536 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
8537 * tui/tui-data.h (struct tui_source_window_base) <refill,
8538 set_is_exec_point_at>: New methods.
8539 (tui_source_windows, tui_add_to_source_windows): Update types.
8540 (tui_add_to_source_windows): Remove redundant declaration.
8541 * tui/tui-data.c (source_windows): Store tui_source_window_base.
8542 (tui_source_windows): Change return type.
8543 (tui_clear_source_windows_detail): Update.
8544 (tui_add_to_source_windows): Change type of parameter.
8545 (tui_free_all_source_wins_content): Update.
8546
2042b506
TT
85472019-06-25 Tom Tromey <tom@tromey.com>
8548
8549 * tui/tui-wingeneral.c (tui_win_info::refresh)
8550 (tui_source_window_base::refresh): New methods.
8551 (tui_refresh_all): Call the refresh method.
8552 * tui/tui-data.h (struct tui_win_info)
8553 (struct tui_source_window_base) <refresh>: New method.
8554
56122977
TT
85552019-06-25 Tom Tromey <tom@tromey.com>
8556
8557 * tui/tui.h (tui_is_window_visible): Return bool.
8558 * tui/tui.c (tui_is_window_visible): Return bool.
8559 * tui/tui-wingeneral.c (tui_make_window, make_visible)
8560 (tui_make_visible, tui_make_invisible)
8561 (tui_win_info::make_visible)
8562 (tui_source_window_base::make_visible, make_all_visible)
8563 (tui_make_all_visible, tui_make_all_invisible): Update.
8564 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
8565 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
8566 bool.
8567 (struct tui_win_info, struct tui_source_window_base)
8568 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
8569 * tui/tui-data.c (tui_init_generic_part): Update.
8570
cda37efb
TT
85712019-06-25 Tom Tromey <tom@tromey.com>
8572
8573 * tui/tui-wingeneral.c (tui_win_info::make_visible)
8574 (tui_source_window_base::make_visible): New methods.
8575 (make_all_visible): Make method call.
8576 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
8577 (struct tui_source_window_base, struct tui_cmd_window): Override
8578 make_visible.
8579 (tui_win_is_source_type): Don't declare.
8580 * tui/tui-data.c (tui_win_is_source_type): Remove.
8581
6a0ee02c
TT
85822019-06-25 Tom Tromey <tom@tromey.com>
8583
8584 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
8585 NULL check.
8586
63901aec
TT
85872019-06-25 Tom Tromey <tom@tromey.com>
8588
8589 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
8590 Inline constructor. Add initializers for members.
8591 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
8592 constructors; now inline in class.
8593
ceb13a13
TT
85942019-06-25 Tom Tromey <tom@tromey.com>
8595
8596 * tui/tui-regs.c (tui_show_registers): Update.
8597 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
8598 bool.
8599 * tui/tui-data.c (tui_data_window::clear_detail)
8600 (tui_data_window): Update.
8601
238eb706
TT
86022019-06-25 Tom Tromey <tom@tromey.com>
8603
8604 * tui/tui-windata.c (tui_display_all_data)
8605 (tui_display_data_from_line, tui_display_data_from)
8606 (tui_check_data_values, tui_data_window::do_scroll_vertical):
8607 Update.
8608 * tui/tui-regs.c (tui_last_regs_line_no)
8609 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
8610 (tui_show_registers, tui_show_register_group)
8611 (tui_display_registers_from, tui_display_reg_element_at_line)
8612 (tui_display_registers_from_line, tui_check_register_values)
8613 (tui_reg_next, tui_reg_prev): Update.
8614 * tui/tui-layout.c (tui_set_layout, show_data): Update.
8615 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
8616 tui_data_window.
8617 (struct tui_win_info) <detail>: Remove. Add new fields from
8618 tui_data_info.
8619 (TUI_DATA_WIN): Add cast.
8620 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
8621 (~tui_data_window): Simplify.
8622
81491aa0
TT
86232019-06-25 Tom Tromey <tom@tromey.com>
8624
8625 * tui/tui-layout.c (show_source_disasm_command)
8626 (show_source_or_disasm_and_command): Update.
8627 * tui/tui-io.c (update_cmdwin_start_line)
8628 (tui_redisplay_readline): Update.
8629 * tui/tui-data.h (struct tui_command_info): Remove.
8630 (struct tui_win_info) <detail>: Remove command_info member.
8631 (struct tui_data_window) <start_line>: New member, from
8632 tui_command_info.
8633 (TUI_CMD_WIN): Add casts.
8634
e6e41501
TT
86352019-06-25 Tom Tromey <tom@tromey.com>
8636
8637 * tui/tui-winsource.c (tui_update_source_window)
8638 (tui_refill_source_window)
8639 (tui_source_window_base::do_scroll_horizontal)
8640 (tui_update_breakpoint_info, tui_set_exec_info_content)
8641 (tui_show_exec_info_content, tui_erase_exec_info_content)
8642 (tui_clear_exec_info_content): Update.
8643 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
8644 Update.
8645 * tui/tui-win.c (make_invisible_and_set_new_height)
8646 (make_visible_with_new_height): Update.
8647 * tui/tui-source.c (tui_set_source_content)
8648 (tui_show_symtab_source): Update.
8649 * tui/tui-layout.c (extract_display_start_addr)
8650 (show_source_disasm_command, show_data)
8651 (make_source_or_disasm_window)
8652 (show_source_or_disasm_and_command): Update.
8653 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
8654 (tui_disasm_window::do_scroll_vertical): Remove shadowing
8655 "gdbarch".
8656 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
8657 to tui_source_window_base.
8658 (struct tui_win_info) <detail>: Remove source_info member.
8659 (struct tui_source_window_base) <has_locator>: Inline.
8660 Move contents from tui_source_info; rename has_locator member to
8661 m_has_locator.
8662 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
8663 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
8664 header file.
8665 (tui_source_window_base::clear_detail, ~tui_source_window_base):
8666 Simplify.
8667 (tui_free_all_source_wins_content): Cast to
8668 tui_source_window_base.
8669
44f0e208
TT
86702019-06-25 Tom Tromey <tom@tromey.com>
8671
8672 * tui/tui-win.c (make_invisible_and_set_new_height)
8673 (make_visible_with_new_height): Call has_locator method.
8674 * tui/tui-layout.c (show_source_disasm_command, show_data)
8675 (show_source_or_disasm_and_command): Update for bool change.
8676 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
8677 (tui_win_info) <has_locator>: New method.
8678 (struct tui_source_window_base) <has_locator>: New method.
8679 (tui_win_has_locator): Don't declare.
8680 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
8681 from tui_win_has_locator.
8682 (tui_source_window_base): Use false, not FALSE.
8683
7778b912
TT
86842019-06-25 Tom Tromey <tom@tromey.com>
8685
8686 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
8687 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
8688 clear_detail method directly.
8689 (tui_clear_win_detail): Remove.
8690
f83d391c
TT
86912019-06-25 Tom Tromey <tom@tromey.com>
8692
8693 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
8694 "this", not TUI_DISASM_WIN.
8695
13446e05
TT
86962019-06-25 Tom Tromey <tom@tromey.com>
8697
8698 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
8699 declare.
8700 * tui/tui-winsource.c
8701 (tui_source_window_base::do_scroll_horizontal): Rename from
8702 tui_horizontal_source_scroll.
8703 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
8704 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
8705 from tui_vertical_data_scroll.
8706 * tui/tui-win.h (tui_scroll): Don't declare.
8707 * tui/tui-win.c (tui_win_info::forward_scroll)
8708 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
8709 (tui_win_info::right_scroll): Rename and update.
8710 (tui_scroll_forward_command, tui_scroll_backward_command)
8711 (tui_scroll_left_command, tui_scroll_right_command): Update.
8712 (tui_scroll): Remove.
8713 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
8714 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
8715 from tui_vertical_source_scroll.
8716 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
8717 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
8718 from tui_vertical_disassem_scroll.
8719 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
8720 do_scroll_horizontal>: New methods.
8721 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
8722 Likewise.
8723 (struct tui_source_window_base): Add do_scroll_horizontal.
8724 (struct tui_source_window, struct tui_disasm_window): Add
8725 do_scroll_vertical.
8726 (struct tui_data_window, struct tui_cmd_window): Add
8727 do_scroll_horizontal and do_scroll_vertical.
8728 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
8729
5cf82909
TT
87302019-06-25 Tom Tromey <tom@tromey.com>
8731
8732 * tui/tui-data.h (struct tui_source_window_base): New struct.
8733 (struct tui_source_window): Derive from tui_source_window_base.
8734 (struct tui_disasm_window): New struct.
8735 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
8736 from tui_source_window::clear_detail.
8737 (tui_source_window_base): Rename from tui_source_window.
8738 (~tui_source_window_base): Rename from ~tui_source_window.
8739 (tui_alloc_win_info): Create a tui_disasm_window.
8740
ee1d42d6
TT
87412019-06-25 Tom Tromey <tom@tromey.com>
8742
8743 * tui/tui-data.h (struct tui_source_window)
8744 (struct tui_data_window): Declare destructors.
8745 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
8746 destructors.
8747 (tui_win_info): Simplify.
8748
b4eb2452
TT
87492019-06-25 Tom Tromey <tom@tromey.com>
8750
8751 * tui/tui-winsource.c (tui_display_main)
8752 (tui_update_source_windows_with_addr)
8753 (tui_update_all_breakpoint_info): Update.
8754 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
8755 (new_height_ok, parse_scrolling_args): Update.
8756 * tui/tui-stack.c (tui_show_frame_info): Update.
8757 * tui/tui-data.h (struct tui_list): Remove.
8758 (tui_source_windows): Return a reference to a std::vector.
8759 * tui/tui-data.c (source_windows): Now a std::vector.
8760 (tui_source_windows): Change return type.
8761 (tui_clear_source_windows): Rewrite.
8762 (tui_clear_source_windows_detail, tui_add_to_source_windows)
8763 (tui_free_all_source_wins_content): Rewrite.
8764
8761a91b
TT
87652019-06-25 Tom Tromey <tom@tromey.com>
8766
8767 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
8768 (struct tui_data_window, struct tui_cmd_window): Declare
8769 clear_detail method.
8770 * tui/tui-data.c (tui_source_window::clear_detail)
8771 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
8772 methods.
8773 (tui_clear_win_detail): Simplify.
8774
0ed69eda
TT
87752019-06-25 Tom Tromey <tom@tromey.com>
8776
8777 * tui/tui-layout.c (make_source_window, make_disasm_window)
8778 (make_source_or_disasm_window): Remove win_info_ptr parameter.
8779 Return the new window.
8780 (show_source_disasm_command, show_data)
8781 (show_source_or_disasm_and_command): Update.
8782
82432e10
TT
87832019-06-25 Tom Tromey <tom@tromey.com>
8784
8785 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
8786 parameter. Return the new window.
8787 (show_source_disasm_command): Update and remove NULL check.
8788 (show_source_or_disasm_and_command): Update.
8789
ec328aa5
TT
87902019-06-25 Tom Tromey <tom@tromey.com>
8791
8792 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
8793
33b906ab
TT
87942019-06-25 Tom Tromey <tom@tromey.com>
8795
8796 * tui/tui-data.h (struct tui_win_info): Make constructor
8797 protected. Make destructor virtual. Add initializers.
8798 (tui_source_window, tui_data_window, tui_cmd_window): New
8799 classes.
8800 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
8801 constructor. Add "type" parameter.
8802 (tui_source_window, tui_data_window, tui_cmd_window): New
8803 constructors.
8804 (tui_alloc_win_info): Instantiate the appropriate subclass.
8805
e7e11af4
TT
88062019-06-25 Tom Tromey <tom@tromey.com>
8807
8808 * tui/tui-win.c (tui_resize_all): Use delete.
8809 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
8810 destructor.
8811 (tui_free_window): Don't declare.
8812 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
8813 Update.
8814
6792b55e
TT
88152019-06-25 Tom Tromey <tom@tromey.com>
8816
8817 * tui/tui-data.h (struct tui_win_info): Add constructor.
8818 * tui/tui-data.c (tui_alloc_win_info): Use new.
8819 (tui_free_window): Use delete.
8820
f95675e1
TT
88212019-06-22 Tom Tromey <tom@tromey.com>
8822
8823 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
8824 declare.
8825 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
8826
5bff081c
TT
88272019-06-22 Tom Tromey <tom@tromey.com>
8828
8829 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
8830 declare.
8831 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
8832
47e3f474
TV
88332019-06-22 Tom de Vries <tdevries@suse.de>
8834
8835 * dwarf2read.c (create_addrmap_from_aranges)
8836 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
8837 instead of '%zu'.
8838
fd5866f6
SM
88392019-06-21 Simon Marchi <simon.marchi@efficios.com>
8840
8841 * dwarf2read.h (dwarf2_section_info_def): Remove.
8842 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
8843 * dwarf2read.c (struct dwo_sections) <types>: Change type to
8844 std::vector<dwarf2_section_info>.
8845 (struct dwo_file) <~dwo_file>: Remove.
8846 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
8847 types field.
8848 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
8849 (dwarf2_read_debug_names): Likewise.
8850 (create_debug_types_hash_table): Change parameter type to
8851 array_view, adjust code accordingly.
8852 (dwarf2_locate_dwo_sections): Adjust to std::vector.
8853 (partial_die_info::fixup): Likewise.
8854 (determine_prefix): Likewise.
8855 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
8856
fb1eb2f9
SM
88572019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8858
8859 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
8860 gdb_bfd_ref_ptr.
8861 <~dwo_file>: Remove call to gdb_bfd_unref.
8862 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
8863 gdb_bfd_ref_ptr::get.
8864
51ac9db5
SM
88652019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8866
8867 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
8868 type to htab_up.
8869 * dwarf2read.c (struct dwo_file): Initialize fields.
8870 <~dwo_file>: New.
8871 (free_dwo_file): Remove, move content to ~dwo_file.
8872 (struct dwo_file_deleter): Remove.
8873 (dwo_file_up>: Remove custom deleter.
8874 (free_dwo_files): Remove.
8875 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
8876 dwo_files.
8877 (process_skeletonless_type_units): Call unique_ptr::get.
8878 (allocate_dwo_file_hash_table): Add deleter to created hash
8879 table. Change return type to htab_up.
8880 (lookup_dwo_file_slot): Don't memset dwo_file, call
8881 unique_ptr::get.
8882 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
8883 (create_dwo_unit_in_dwp_v2): Likewise.
8884 (open_and_init_dwo_file): Likewise.
8885 (free_dwo_file_from_slot): Remove.
8886
dc4ccb6f
SM
88872019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
8888
8889 * dwarf2read.h (struct dwarf2_section_info) <readin,
8890 is_virtual>: Change type to bool.
8891 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
8892 true instead of 1.
8893
e6a1c5cb
TT
88942019-06-19 Tom Tromey <tom@tromey.com>
8895
8896 * tui/tui-data.h (tui_init_content_element): Don't declare.
8897
6f6ffbeb
TT
88982019-06-19 Tom Tromey <tom@tromey.com>
8899
8900 * tui/tui-data.h (tui_init_win_info): Don't declare.
8901
f23f598e
TV
89022019-06-19 Tom de Vries <tdevries@suse.de>
8903
8904 * dwarf2read.h (abstract_to_concrete): Change type to
8905 std::unordered_map<sect_offset, std::vector<sect_offset>,
8906 gdb::hash_enum<sect_offset>>.
8907
680e1bee
TT
89082019-06-19 Tom Tromey <tromey@adacore.com>
8909
8910 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
8911 EVAL_AVOID_SIDE_EFFECTS specially.
8912
dcf37923
TT
89132019-06-19 Tom Tromey <tromey@adacore.com>
8914
8915 * source-cache.c (highlighter): New global.
8916 (source_cache::get_source_lines): Create a highlighter on demand.
8917
494986d5
AB
89182019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
8919
8920 * defs.h (deprecated_interactive_hook): Delete declaration.
8921 * interps.c (clear_interpreter_hooks): Remove use of
8922 deprecated_interactive_hook.
8923 * top.c (deprecated_interactive_hook): Delete definition.
8924 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
8925
3360b6e7
TV
89262019-06-18 Tom de Vries <tdevries@suse.de>
8927
8928 PR gdb/24515
8929 * dwarf2read.h (abstract_to_concrete): Change type from
8930 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
8931 std::unordered_map<sect_offset, std::vector<sect_offset>>.
8932 * dwarf2read.c (read_variable): Update.
8933 (dwarf2_fetch_die_loc_sect_off): Update.
8934
310b3441
TV
89352019-06-17 Tom de Vries <tdevries@suse.de>
8936
8937 PR gdb/24617
8938 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
8939 accessing parent[parent_len - 1].
8940
ba9777be
PP
89412019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
8942
8943 PR gdb/24364
8944 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
8945 call dtrace_process_dof with NULL dof.
8946
2b9f6e89
TV
89472019-06-16 Tom de Vries <tdevries@suse.de>
8948
8949 PR gdb/24445
8950 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
8951
431b3ead
TT
89522019-06-16 Tom Tromey <tom@tromey.com>
8953
8954 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
8955 (make_all_visible): Use address of member.
8956
d04b44a1
TT
89572019-06-16 Tom Tromey <tom@tromey.com>
8958
8959 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
8960 (tui_free_window, free_content, free_content_elements): Remove
8961 unnecessary cast.
8962 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
8963 cast.
8964 * tui/tui-regs.c (tui_show_register_group)
8965 (tui_display_registers_from, tui_display_reg_element_at_line):
8966 Remove unnecessary cast.
8967
bf5142e7
AB
89682019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
8969
8970 * linux-nat.c (normal_mask): Delete.
8971 (_initialize_linux_nat): Don't initialise normal_mask.
8972
c4973306
SM
89732019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
8974
8975 PR gdb/24445
8976 * dwarf-index-write.h (write_psymtabs_to_index): Add
8977 dwz_basename parameter.
8978 * dwarf-index-write.c (write_gdbindex): Move file writing to
8979 write_gdbindex_1. Change return type void.
8980 (assert_file_size): Move up, remove filename parameter.
8981 (write_gdbindex_1): New function.
8982 (write_debug_names): Change return type to void, call
8983 assert_file_size.
8984 (struct index_wip_file): New struct.
8985 (write_psymtabs_to_index): Add dwz_basename parameter. Move
8986 file logic to index_wip_file. Write index for dwz file if
8987 needed.
8988 (save_gdb_index_command): Pass basename of dwz file, if present.
8989 * dwarf-index-cache.c (index_cache::store): Obtain and pass
8990 build-id of dwz file, if present.
8991 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
8992 (dwarf2_get_dwz_file): Likewise.
8993 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
8994 (dwarf2_get_dwz_file): Likewise.
8995
395f9c91
TT
89962019-06-16 Tom Tromey <tom@tromey.com>
8997
8998 * coffread.c (process_coff_symbol): Use xstrdup.
8999 * value.c (create_internalvar): Use xstrdup.
9000
cafb3438
TT
90012019-06-16 Tom Tromey <tom@tromey.com>
9002
9003 * valops.c (value_cast, value_slice): Remove unnecessary cast.
9004 * breakpoint.c (stopin_command, stopat_command)
9005 (until_break_command, decode_location_default): Remove unnecessary
9006 cast.
9007 * utils.c (subset_compare): Remove unnecessary cast.
9008 * ada-lang.c (ada_update_initial_language): Remove unnecessary
9009 cast.
9010 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
9011 cast.
9012 * infcmd.c (path_command): Remove unnecessary cast.
9013 * coffread.c (decode_type): Remove unnecessary cast.
9014 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
9015 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
9016 * tui/tui-stack.c (tui_show_locator_content)
9017 (tui_show_frame_info): Remove unnecessary cast.
9018 * tui/tui-win.c (tui_scroll_forward_command)
9019 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
9020 (parse_scrolling_args): Remove unnecessary cast.
9021 * tui/tui-data.c (init_win_info, tui_del_window)
9022 (tui_free_window, tui_del_data_windows, tui_free_data_content)
9023 (free_content_elements): Remove unnecessary cast.
9024 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
9025 unnecessary cast.
9026 * tui/tui-source.c (tui_set_source_content)
9027 (tui_vertical_source_scroll): Remove unnecessary cast.
9028 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
9029 cast.
9030 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
9031 * tui/tui-regs.c (tui_display_registers_from)
9032 (tui_display_register): Remove unnecessary cast.
9033 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
9034 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
9035 (make_visible): Remove unnecessary cast.
9036 * tui/tui-winsource.c (tui_erase_source_content)
9037 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
9038 unnecessary cast.
9039 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
9040 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
9041 * stabsread.c (read_type, read_array_type, read_range_type):
9042 Remove unnecessary cast.
9043 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
9044 (parse_symbol, parse_type, upgrade_type, parse_external)
9045 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
9046 unnecessary cast.
9047 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
9048
730ead81
TT
90492019-06-16 Tom Tromey <tom@tromey.com>
9050
9051 * tui/tui-data.c (tui_alloc_generic_win_info)
9052 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
9053 checks.
9054
584a927c
AB
90552019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
9056 Andrew Burgess <andrew.burgess@embecosm.com>
9057
9058 * f-typeprint.c (f_print_type): Don't return early for not
9059 associated or not allocated types.
9060 (f_type_print_varspec_suffix): Add print_rank parameter and print
9061 ranks of array types in case they dangling.
9062 (f_type_print_base): Add print_rank parameter.
9063
30056ea0
AB
90642019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9065
9066 * NEWS: Mention new MI commands.
9067 * break-catch-throw.c (enum exception_event_kind): Move to
9068 breakpoint.h.
9069 (print_mention_exception_catchpoint): Output text as a single
9070 message.
9071 (catch_exception_command_1): Rename to...
9072 (catch_exception_event): ...this, make non-static, update header
9073 command, and change some parameter types.
9074 (catch_catch_command): Update for changes to
9075 catch_exception_command_1.
9076 (catch_throw_command): Likewise.
9077 (catch_rethrow_command): Likewise.
9078 * breakpoint.c (enum exception_event_kind): Delete.
9079 * breakpoint.h (enum exception_event_kind): Moved here from
9080 break-catch-throw.c.
9081 (catch_exception_event): Declare.
9082 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
9083 (mi_cmd_catch_throw): New function.
9084 (mi_cmd_catch_rethrow): New function.
9085 (mi_cmd_catch_catch): New function.
9086 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
9087 'catch-catch' entries.
9088 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
9089 (mi_cmd_catch_rethrow): Declare.
9090 (mi_cmd_catch_catch): Declare.
9091
ec8e2b6d
AB
90922019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9093
9094 * annotate.c (annotate_source_line): Change return type to void,
9095 update implementation to match.
9096 * annotate.h (annotate_source_line): Change return type to void,
9097 update header comment.
9098 * stack.c (print_frame_info): Don't change what frame information
9099 is printed based on whether annotations are on or not.
9100
0d3abd8c
AB
91012019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9102
9103 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
9104 (annotate_source): Make static.
9105 (annotate_source_line): Moved from source.c and renamed from
9106 identify_source_line. Update the return type.
9107 * annotate.h (annotate_source): Delete declaration.
9108 (annotate_source_line): Declaration moved from source.h, and
9109 renamed from identify_source_line. Return type updated.
9110 * source.c (identify_source_line): Moved to annotate.c and renamed
9111 to annotate_source_line.
9112 (info_line_command): Remove check of annotation_level.
9113 * source.h (identify_source_line): Move declaration to annotate.h
9114 and rename to annotate_source_line.
9115 * stack.c: Add 'annotate.h' include.
9116 (print_frame_info): Remove check of annotation_level before
9117 calling annotate_source_line.
9118
00df30ae
AB
91192019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9120
9121 * source-cache.c (source_cache::get_plain_source_lines): Use
9122 open_source_file_with_line_charpos instead of just
9123 open_source_file, remove call to find_source_lines.
9124 (source_cache::get_source_lines): Likewise.
9125 * source.c (find_source_lines): Make static.
9126 (get_filename_and_charpos): Renamed into...
9127 (open_source_file_with_line_charpos): ..this along with changes to
9128 return a scoped_fd, and some other minor clean ups.
9129 (identify_source_line): Use open_source_file_with_line_charpos.
9130 (search_command_helper): Use open_source_file_with_line_charpos
9131 instead of just open_source_file, remove call to
9132 find_source_lines.
9133 * source.h (open_source_file_with_line_charpos): Declare new
9134 function.
9135 (find_source_lines): Delete declaration.
9136
afda45a2
AB
91372019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
9138
9139 * source.c (get_filename_and_charpos): Remove fullname
9140 parameter.
9141 (identify_source_line): Update call to get_filename_and_charpos.
9142
0735b091
TT
91432019-06-14 Tom Tromey <tromey@adacore.com>
9144
9145 PR gdb/24502:
9146 * ui-style.h (skip_ansi_escape): Update comment.
9147 * ui-file.h (class no_terminal_escape_file): New class.
9148 * ui-file.c (no_terminal_escape_file::write)
9149 (no_terminal_escape_file::puts): New methods.
9150 * cli/cli-logging.c (handle_redirections): Use
9151 no_terminal_escape_file.
9152
52ce35e2
TT
91532019-06-14 Tom Tromey <tromey@adacore.com>
9154
9155 * NEWS: Move convenience variable news above Python news.
9156
73cc7272
TT
91572019-06-14 Tom Tromey <tom@tromey.com>
9158
9159 * gnulib: Move directory to top-level.
9160 * configure.ac: Don't configure gnulib.
9161 * configure: Rebuild.
9162 * common/common-defs.h: Use new path to gnulib.
9163 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
9164 (GNULIB_H): Remove.
9165 (INCGNU): Look in new gnulib location.
9166 (HFILES_NO_SRCDIR): Remove gnulib files.
9167 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
9168 (generated_files): Remove GNULIB_H.
9169 ($(LIBGNU), all-lib): Remove targets.
9170 (distclean): Don't mention GNULIB_BUILDDIR.
9171 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
9172
f5686554
TT
91732019-06-14 Tom Tromey <tromey@adacore.com>
9174
9175 * symfile.c (add_symbol_file_command): Remove obsolete comment.
9176 Warn if symbol file does not provide any symbols.
9177
a0c1ffed
TT
91782019-06-14 Tom Tromey <tromey@adacore.com>
9179
9180 * source.c (find_and_open_source): Respect basenames_may_differ.
9181
7c39e397
AB
91822019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
9183
9184 * annotate.c (annotate_breakpoints_invalid): Make use of
9185 scoped_restore_terminal_state.
9186 (annotate_frames_invalid): Likewise.
9187
f411722c
TT
91882019-06-14 Tom Tromey <tromey@adacore.com>
9189
9190 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
9191 allow assignment to an internalvar.
9192
4268ec18
TT
91932019-06-14 Tom Tromey <tromey@adacore.com>
9194
9195 * ada-lex.l: Allow "_" in attribute names.
9196
abdb711e
TT
91972019-06-14 Tom Tromey <tromey@adacore.com>
9198
9199 PR gdb/24653:
9200 * regcache.c (registers_changed): Don't call alloca.
9201 * top.c (execute_command): Don't call alloca.
9202
4c048731
PA
92032019-06-13 Pedro Alves <palves@redhat.com>
9204
9205 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
9206 'expression'. When parsing an expression, error out if there's
9207 junk after "unlimited".
9208 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9209 (do_set_command): Adjust calls to is_unlimited_literal.
9210
66eb1ed3
PA
92112019-06-13 Pedro Alves <palves@redhat.com>
9212
9213 * compile/compile.c (make_compile_options_def_group): Add braces
9214 around array_view initializer.
9215 * thread.c (make_thread_apply_all_options_def_group)
9216 (make_thread_apply_all_options_def_group): Likewise.
9217
3345721a
PA
92182019-06-13 Pedro Alves <palves@redhat.com>
9219
9220 * NEWS (New commands): Mention "maint test-options
9221 require-delimiter", "maint test-options unknown-is-error", "maint
9222 test-options unknown-is-operand" and "maint show
9223 test-options-completion-result".
9224 (New command options, command completion): New section.
9225 (Completion improvements): New section.
9226 Mention that you can abbreviate "unlimited".
9227
6206060d
PA
92282019-06-13 Pedro Alves <palves@redhat.com>
9229
9230 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
9231 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
9232 * unittests/cli-utils-selftests.c (test_parse_flags)
9233 (test_parse_flags_qcs): Delete.
9234 (test_cli_utils): Don't call deleted functions.
9235
6665660a
PA
92362019-06-13 Pedro Alves <palves@redhat.com>
9237
9238 * thread.c: Include "cli/cli-option.h".
9239 (tp_array_compar_ascending): Global.
9240 (tp_array_compar): Delete function.
9241 (tp_array_compar_ascending, tp_array_compar_descending): New
9242 functions.
9243 (ascending_option_def, qcs_flag_option_def)
9244 (thr_qcs_flags_option_defs)
9245 (make_thread_apply_all_options_def_group)
9246 (make_thread_apply_options_def_group): New.
9247 (thread_apply_all_command): Use gdb::option::process_options.
9248 (thread_apply_command_completer)
9249 (thread_apply_all_command_completer): New.
9250 (thread_apply_command): Use gdb::option::process_options.
9251 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
9252 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
9253 to generate help text of "thread apply". Adjust "taas"'s help.
9254 * tid-parse.c (tid_range_parser::in_thread_range): New method.
9255 * tid-parse.h (tid_range_parser::in_thread_range): New method.
9256
f7e13587
PA
92572019-06-13 Pedro Alves <palves@redhat.com>
9258
9259 * thread.c (thread_apply_command): Check for invalid TID with
9260 isdigit instead of !isalpha.
9261
5d707134
PA
92622019-06-13 Pedro Alves <palves@redhat.com>
9263
9264 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
9265 (validate_flags_qcs): New.
9266 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
9267 (validate_flags_qcs): Declare.
9268 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
9269 (make_frame_apply_options_def_group): New.
9270 (frame_apply_command_count): Process options with
9271 gdb::option::process_options.
9272 (frame_apply_completer): New.
9273 (frame_apply_level_completer, frame_apply_all_completer)
9274 (frame_apply_completer): New.
9275 (_initialize_stack): Update help of "frame apply", "frame apply
9276 level", "frame apply all" and "faas" to mention supported options
9277 and install command completers.
9278 * stack.h (frame_apply_all_completer): Declare.
9279 * thread.c: Include "stack.h".
9280 (tfaas_command): Add "--".
9281 (_initialize_thread): Update help "tfaas" to mention supported
9282 options and install command completer.
9283
272d4594
PA
92842019-06-13 Pedro Alves <palves@redhat.com>
9285
9286 * completer.c (complete_nested_command_line): New.
9287 (gdb_completion_word_break_characters_throw): Add assertion.
9288 * completer.h (complete_nested_command_line): Declare.
9289
90a1ef87
PA
92902019-06-13 Pedro Alves <palves@redhat.com>
9291
9292 * stack.c (parse_backtrace_qualifiers): New.
9293 (backtrace_command): Use it.
9294 (backtrace_command_completer): Complete on qualifiers.
9295
d4c16835
PA
92962019-06-13 Pedro Alves <palves@redhat.com>
9297
9298 * frame.c: Include "cli/cli-option.h.
9299 (user_set_backtrace_options): New.
9300 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
9301 Delete.
9302 (get_prev_frame): Adjust.
9303 (boolean_option_def, uinteger_option_def)
9304 (set_backtrace_option_defs): New.
9305 (_initialize_frame): Adjust and use
9306 gdb::option::add_setshow_cmds_for_options to install "set
9307 backtrace past-main" and "set backtrace past-entry".
9308 * frame.h: Include "cli/cli-option.h".
9309 (struct frame_print_options): Forward declare.
9310 (print_frame_arguments_all, print_frame_arguments_scalars)
9311 (print_frame_arguments_none): Declare.
9312 (print_entry_values): Delete declaration.
9313 (struct frame_print_options, user_frame_print_options): New.
9314 (struct set_backtrace_options): New.
9315 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
9316 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9317 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9318 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
9319 (list_args_or_locals): Add frame_print_options parameter.
9320 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9321 * python/py-framefilter.c (enumerate_args): Pass down
9322 USER_FRAME_PRINT_OPTIONS.
9323 * stack.c: Include "cli/cli-option.h".
9324 (print_frame_arguments_all, print_frame_arguments_scalars)
9325 (print_frame_arguments_none): Declare.
9326 (print_raw_frame_arguments, print_entry_values): Delete.
9327 (user_frame_print_options): New.
9328 (boolean_option_def, enum_option_def, frame_print_option_defs):
9329 New.
9330 (struct backtrace_cmd_options): New.
9331 (bt_flag_option_def): New.
9332 (backtrace_command_option_defs): New.
9333 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
9334 (print_frame_arg, read_frame_arg, print_frame_args)
9335 (print_frame_info, print_frame): Add frame_print_options parameter
9336 and use it.
9337 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
9338 (backtrace_command_1): Add frame_print_options and
9339 backtrace_cmd_options parameters and use them.
9340 (make_backtrace_options_def_group): New.
9341 (backtrace_command): Process command options with
9342 gdb::option::process_options.
9343 (backtrace_command_completer): New.
9344 (_initialize_stack): Extend "backtrace"'s help to mention
9345 supported options. Install completer for "backtrace".
9346 Install some settings commands with add_setshow_cmds_for_options.
9347
2daf894e
PA
93482019-06-13 Pedro Alves <palves@redhat.com>
9349
9350 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
9351 and that "set/show print raw frame-arguments" are now deprecated.
9352
9353 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
9354 command.
9355 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
9356 * stack.c (_initialize_stack): Install "set/show print
9357 raw-frame-arguments", and deprecate "set/show print raw
9358 frame-arguments".
9359 * valprint.c (_initialize_valprint): Deprecate "set/show print
9360 raw".
9361
e6ed716c
PA
93622019-06-13 Pedro Alves <palves@redhat.com>
9363
9364 * compile/compile.c (struct compile_options): New.
9365 (compile_flag_option_def, compile_command_option_defs)
9366 (make_compile_options_def_group): New.
9367 (compile_file_command): Handle options with
9368 gdb::option::process_options.
9369 (compile_file_command_completer): New function.
9370 (compile_code_command): Handle options with
9371 gdb::option::process_options.
9372 (compile_code_command_completer): New function.
9373 (_initialize_compiler): Install completers for "compile code" and
9374 "compile file". Mention available options in "compile code" and
9375 "compile code"'s help.
9376 * completer.c (advance_to_completion_word): New, factored out from
9377 ...
9378 (advance_to_expression_complete_word_point): ... this.
9379 (advance_to_filename_complete_word_point): New.
9380 * completer.h (advance_to_filename_complete_word_point): New
9381 declaration.
9382
7d8062de
PA
93832019-06-13 Pedro Alves <palves@redhat.com>
9384
9385 * compile/compile.c: Include "cli/cli-option.h".
9386 (compile_print_value): Scope data pointer is now a
9387 value_print_options pointer; adjust.
9388 (compile_print_command): Process options. Scope data pointer is
9389 now a value_print_options pointer; adjust.
9390 (_initialize_compile): Update "compile print"'s help to include
9391 supported options. Install a completer for "compile print".
9392 * cp-valprint.c (show_vtblprint, show_objectprint)
9393 (show_static_field_print): Delete.
9394 (_initialize_cp_valprint): Don't install "set print
9395 static-members", "set print vtbl", "set print object" here.
9396 * printcmd.c: Include "cli/cli-option.h" and
9397 "common/gdb_optional.h".
9398 (print_command_parse_format): Rework to fill in a
9399 value_print_options instead of a format_data.
9400 (print_value): Change parameter type from format_data pointer to
9401 value_print_options reference. Adjust.
9402 (print_command_1): Process options. Adjust to pass down a
9403 value_print_options.
9404 (print_command_completer): New.
9405 (_initialize_printcmd): Install print_command_completer as
9406 handle_brkchars completer for the "print" command. Update
9407 "print"'s help to include supported options.
9408 * valprint.c: Include "cli/cli-option.h".
9409 (show_vtblprint, show_objectprint, show_static_field_print): Moved
9410 here from cp-valprint.c.
9411 (boolean_option_def, uinteger_option_def)
9412 (value_print_option_defs, make_value_print_options_def_group):
9413 New. Use gdb::option::add_setshow_cmds_for_options to install
9414 "set print elements", "set print null-stop", "set print repeats",
9415 "set print pretty", "set print union", "set print array", "set
9416 print address", "set print symbol", "set print array-indexes".
9417 * valprint.h: Include <string> and "cli/cli-option.h".
9418 (make_value_print_options_def_group): Declare.
9419 (print_value): Change parameter type from format_data pointer to
9420 value_print_options reference.
9421 (print_command_completer): Declare.
9422
9d0faba9
PA
94232019-06-13 Pedro Alves <palves@redhat.com>
9424
9425 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
9426 (COMMON_SFILES): Add maint-test-settings.c.
9427 * cli/cli-decode.c (boolean_enums): New global, factored out from
9428 ...
9429 (add_setshow_boolean_cmd): ... here.
9430 * cli/cli-decode.h (boolean_enums): Declare.
9431 * cli/cli-option.c: New file.
9432 * cli/cli-option.h: New file.
9433 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
9434 factored out from ...
9435 (parse_cli_boolean_value(const char *)): ... this.
9436 (is_unlimited_literal): Change parameter type to pointer to
9437 pointer. Adjust and advance ARG pointer.
9438 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9439 (parse_cli_var_enum): New, factored out from ...
9440 (do_set_command): ... this. Adjust.
9441 * cli/cli-setshow.h (parse_cli_boolean_value)
9442 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
9443 (parse_cli_var_enum): Declare.
9444 * cli/cli-utils.c: Include "cli/cli-option.h".
9445 (get_ulongest): New.
9446 * cli/cli-utils.h (get_ulongest): Declare.
9447 (check_for_argument): New overloads.
9448 * maint-test-options.c: New file.
9449
2c722807
PA
94502019-06-13 Pedro Alves <palves@redhat.com>
9451
9452 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
9453 parse a range if "-" is at the end of the string.
9454
dee7b4c8
PA
94552019-06-13 Pedro Alves <palves@redhat.com>
9456
9457 * cli/cli-setshow.c (parse_auto_binary_operation)
9458 (parse_cli_boolean_value): Don't allow "o".
9459
dca0f6c0
PA
94602019-06-13 Pedro Alves <palves@redhat.com>
9461
9462 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
9463 * NEWS: Mention maint test-settings KIND.
9464 * maint-test-settings.c: New file.
9465
597bf39d
PA
94662019-06-13 Pedro Alves <palves@redhat.com>
9467
9468 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
9469 completer.
9470 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
9471 "set" completers.
9472
48c410fb
PA
94732019-06-13 Pedro Alves <palves@redhat.com>
9474
9475 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
9476 after item.
9477
93bcb043
PA
94782019-06-13 Pedro Alves <palves@redhat.com>
9479
9480 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
9481
cbba3ecd
PA
94822019-06-13 Pedro Alves <palves@redhat.com>
9483
9484 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
9485 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
9486 call.
9487 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
9488 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
9489 calls.
9490 (check_for_argument): Skip spaces after argument.
9491
b9a3f842
PA
94922019-06-13 Pedro Alves <palves@redhat.com>
9493
9494 * thread.c (thread_apply_command): Adjust TID parsing.
9495 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
9496 detected before end of string.
9497 (tid_is_in_list): Error out if LIST is invalid.
9498
3844e605
PA
94992019-06-13 Pedro Alves <palves@redhat.com>
9500
9501 * completer.c (complete_line_internal_1): Rewind completion word
9502 point.
9503 (completion_tracker::advance_custom_word_point_by): Change
9504 parameter type to int.
9505 * completer.h (completion_tracker::advance_custom_word_point_by):
9506 Likewise.
9507
00b56dbe
PA
95082019-06-13 Pedro Alves <palves@redhat.com>
9509
9510 * completer.c (advance_to_completion_word): Handle delimiters.
9511
d106773e
PA
95122019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
9513
9514 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
9515
08f10e02
TT
95162019-06-11 Tom Tromey <tom@tromey.com>
9517
9518 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
9519 (xmalloc_failed): Move to alloc.c.
9520 * alloc.c: New file.
9521 * Makefile.in (COMMON_SFILES): Add alloc.c.
9522
1c7fe951
TT
95232019-06-11 Tom Tromey <tom@tromey.com>
9524
9525 * nat/linux-waitpid.c: Don't include server.h.
9526 (linux_debug): Remove.
9527 (my_waitpid): Update.
9528
89549d7f
TT
95292019-06-11 Tom Tromey <tromey@adacore.com>
9530
9531 * infcall.c (_initialize_infcall): Remove trailing newline from
9532 help.
9533 * user-regs.c (_initialize_user_regs): Remove trailing newline
9534 from help.
9535 * typeprint.c (_initialize_typeprint): Remove trailing newline
9536 from help.
9537 * reverse.c (_initialize_reverse): Remove trailing newlines from
9538 help.
9539 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
9540 from help.
9541 * language.c (add_set_language_command): Remove trailing newline
9542 from help.
9543 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
9544 help.
9545 * disasm.c (_initialize_disasm): Remove trailing newline from
9546 help.
9547 * top.c (init_main): Remove trailing newline from help.
9548 * interps.c (_initialize_interpreter): Remove trailing newline
9549 from help.
9550 * btrace.c (_initialize_btrace): Remove trailing newlines from
9551 help.
9552 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
9553 from help.
9554 * python/python.c (_initialize_python): Remove trailing newline
9555 from help.
9556 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
9557 help.
9558 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
9559 from help. Reformat some text.
9560 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
9561 from help.
9562 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
9563 newline from help.
9564
86108c13
TT
95652019-06-11 Tom Tromey <tromey@adacore.com>
9566
9567 * darwin-nat.c (darwin_decode_exception_message)
9568 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
9569
a7067863
AB
95702019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
9571
9572 * valops.c (value_slice): Check for not allocated or not
9573 associated values.
9574
9ab08412
TV
95752019-06-10 Tom de Vries <tdevries@suse.de>
9576
9577 PR gdb/24618
9578 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
9579 sure an empty slot (defined by a 32-bit zero pair) is recognized as
9580 invalid.
9581
f19e22e9
TV
95822019-06-10 Tom de Vries <tdevries@suse.de>
9583
9584 PR gdb/24611
9585 * linespec.c (linespec_lexer_lex_string): Remove incorrect
9586 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
9587
e99f9db0
TV
95882019-06-10 Tom de Vries <tdevries@suse.de>
9589
9590 PR symtab/24545
9591 * symtab.c (struct demangled_name_entry): Add language field.
9592 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
9593 static minimal symbol". Set and use language field.
9594
9bf7038b
TT
95952019-06-10 Tom Tromey <tromey@adacore.com>
9596
9597 * ada-lang.c (_initialize_ada_language): Update help text.
9598
422186a9
TT
95992019-06-10 Tom Tromey <tromey@adacore.com>
9600
9601 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
9602 with a newline.
9603 * guile/guile.c (handle_boot_error): Don't end warning with a
9604 newline.
9605 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
9606 warning with a newline.
9607 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
9608 newline.
9609 (s12z_frame_cache): Likewise.
9610 * dwarf-index-cache.c (index_cache::store): Don't end warning with
9611 a newline.
9612 * solib-svr4.c (disable_probes_interface): Don't end warning with
9613 a newline.
9614 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
9615 newline.
9616 * python/python.c (do_finish_initialization): Don't end warning
9617 with a newline.
9618
25ce02ee
TT
96192019-06-10 Tom Tromey <tom@tromey.com>
9620
9621 * python/py-breakpoint.c (gdbpy_breakpoint_created)
9622 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
9623 gdbpy_enter.
9624
caa429d8
TT
96252019-06-10 Tom Tromey <tromey@adacore.com>
9626
9627 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
9628 data.
9629 (elf_new_init): Don't call stabsread_new_init.
9630 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
9631 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
9632 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
9633
81873cc8
TV
96342019-06-10 Tom de Vries <tdevries@suse.de>
9635
9636 PR symtab/16264
9637 PR symtab/24517
9638 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
9639
4fa0265e
РИ
96402019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
9641
9642 * source.c (find_and_open_source): Also rewrite relative file
9643 names.
9644
1a3da2cd
AB
96452019-04-26 Amos Bird <amosbird@gmail.com>
9646
9647 * annotate.c (annotate_thread_exited): Add "thread-exited"
9648 annotation.
9649
3847a7bf
TT
96502019-06-06 Tom Tromey <tromey@adacore.com>
9651
9652 * maint.h (class scoped_command_stats): Use
9653 DISABLE_COPY_AND_ASSIGN.
9654 <print_time>: New method.
9655 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
9656 print_time.
9657 (scoped_command_stats::print_time): New method.
9658
312617a3
AB
96592019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
9660
9661 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
9662 instructions of lengths 6 or 8 bytes.
9663
b02f78f9
PA
96642019-06-04 Pedro Alves <palves@redhat.com>
9665
9666 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
9667
9668 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
9669 * breakpoint.c (condition_completer): Likewise.
9670 * cli/cli-dump.c (scan_expression): Likewise.
9671 * common/filestuff.c (mkdir_recursive): Likewise.
9672 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
9673 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
9674 (gdb_abspath): Likewise.
9675 * compile/compile-cplus-types.c
9676 (compile_cplus_instance::decl_name): Likewise.
9677 * completer.c (complete_explicit_location):
9678 (signal_completer, reg_or_group_completer_1): Likewise.
9679 * cp-support.c (cp_remove_params_if_any): Likewise.
9680 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
9681 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
9682 * infcmd.c (strip_bg_char): Likewise.
9683 * linespec.c (copy_token_string): Likewise.
9684 * mi/mi-main.c (output_cores): Likewise.
9685 * psymtab.c (psymtab_search_name):
9686 * symfile.c (test_set_ext_lang_command): Likewise.
9687 * target.c (target_fileio_read_stralloc): Likewise.
9688 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
9689 * value.c (complete_internalvar): Likewise.
9690
e1f2e1a2
CB
96912019-06-04 Christian Biesinger <cbiesinger@google.com>
9692
9693 Add objfile property to gdb.Type.
d3238f7d
PA
9694 * NEWS: Mention Python API addition.
9695 * python/py-type.c (typy_get_objfile): New method.
e1f2e1a2 9696
e664d728
PW
96972019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9698
9699 * NEWS: Mention the new set|show style [title|highlight].
9700 Mention changes to "show style", "help" and "apropos".
9701
66d8c862
PW
97022019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9703
9704 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
9705 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
9706 instead of print_help_for_command.
9707 (print_doc_of_command): New function.
9708 (help_list): Add 'apropos -v word' suggestion.
9709 (print_help_for_command): Style the command name using title style.
9710 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
9711 (_initialize_cli_cmds): Describe -v in apropos_command help.
9712
9303eb2f
PW
97132019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9714
9715 * cli/cli-style.h (cli_style_option): Add name in constructor,
9716 add m_name class member, add constructor with intensity,
9717 add name class function.
9718 (cli_style_option::add_setshow_commands): Remove name argument.
9719 (highlight_style, title_style): New styles.
9720 * cli/cli-style.c (do_show): New function that shows a style
9721 characteristic styling the style name with itself.
9722 (set_style_name): New function.
9723 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
9724 Update all callers according to the changes in cli/cli-style.h.
9725 * utils.h (fputs_highlighted): New function.
9726 * utils.c (fputs_highlighted): Likewise.
9727
e2c52041
PW
97282019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9729
9730 * NEWS: Mention new pipe command and new convenience variables.
9731
947d3946
PW
97322019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9733
9734 * cli/cli-cmds.c (pipe_command): New function.
9735 (_initialize_cli_cmds): Call add_com for pipe_command.
9736 Define | as an alias for pipe.
9737 (exit_status_set_internal_vars): New function.
9738 (shell_escape): Call exit_status_set_internal_vars.
9739 cli/cli-decode.c (find_command_name_length): Recognize | as
9740 a single character command.
9741
b8fd0918
PW
97422019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9743
9744 * gdbcmd.h (execute_command_to_ui_file): New declaration.
9745 top.c (execute_command_to_ui_file): New function, mostly a copy
9746 of execute_command_to_string.
9747 (execute_command_to_string): Implement by calling
9748 execute_command_to_ui_file.
9749
68bb5386
PW
97502019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9751
9752 * top.h (saved_command_line): Remove declaration.
9753 * top.c (previous_saved_command_line, previous_repeat_arguments):
9754 New variables.
9755 (saved_command_line): Make static, define together with other
9756 'repeat variables'.
9757 (dont_repeat): Clear repeat_arguments.
9758 (repeat_previous, get_saved_command_line, save_command_line):
9759 New functions.
9760 (gdb_init): Initialize saved_command_line
9761 and previous_saved_command_line.
9762 * main.c (captured_main_1): Remove saved_command_line initialization.
9763 * event-top.c (handle_line_of_input): Update to use
9764 the new 'repeat' related functions instead of direct access to
9765 saved_command_line.
9766 * command.h (repeat_previous, get_saved_command_line,
9767 save_command_line): New declarations.
9768 (dont_repeat): Add comment.
9769
bfcdb852
TT
97702019-05-30 Tom Tromey <tromey@adacore.com>
9771
9772 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
9773 Fix comment.
9774 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
9775
0ef209f2
JV
97762019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
9777
9778 PR cli/24587
9779 * completer.c (complete): Initialize variable word.
9780
955b06fa
SDJ
97812019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
9782
9783 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
9784 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
9785 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
9786 'body' is NULL to the outter 'if', protecting the '!is_define'
9787 situation as well.
9788
fa9c3fa0
TT
97892019-05-29 Tom Tromey <tromey@adacore.com>
9790
9791 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
9792 (dwarf_unknown): New function.
9793 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
9794 (dwarf_type_encoding_name): Use dwarf_unknown.
9795
4330d61d
TT
97962019-05-29 Tom Tromey <tromey@adacore.com>
9797
9798 PR c++/20020:
9799 * cp-valprint.c (cp_print_value_fields): Call
9800 cp_print_static_field inside "try".
9801
33a6bc35
TT
98022019-05-29 Tom Tromey <tromey@adacore.com>
9803
9804 * inflow.c (struct terminal_info): Add default operator=.
9805 * configure: Rebuild.
9806 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
9807 -Wdeprecated-copy-dtor, -Wredundant-move.
9808
000439d5
TT
98092019-05-29 Tom Tromey <tromey@adacore.com>
9810
9811 * NEWS: Add entry.
9812 * infcmd.c (print_return_value_1): Handle finish_print
9813 option.
9814 (show_print_finish): New function.
9815 (_initialize_infcmd): Add "set/show print finish" commands.
9816 * valprint.c (user_print_options): Initialize new member.
9817 * valprint.h (struct value_print_options) <finish_print>: New
9818 member.
9819
c0e70c62
TT
98202019-05-28 Tom Tromey <tromey@adacore.com>
9821
9822 * ada-lang.c (ada_remove_Xbn_suffix)
9823 (find_old_style_renaming_symbol)
9824 (parse_old_style_renaming): Remove.
9825 (ada_find_renaming_symbol): Don't call
9826 find_old_style_renaming_symbol.
9827 (ada_is_renaming_symbol): Rename from
9828 ada_find_renaming_symbol. Remove "block" parameter. Return
9829 bool. Now static.
9830 (ada_read_var_value): Update and simplify.
9831 * ada-exp.y (write_var_or_type): Remove old code.
9832
766f8836
AH
98332019-05-28 Alan Hayward <alan.hayward@arm.com>
9834
68255adc 9835 PR gdb/25010
766f8836
AH
9836 * event-top.c: Remove include comment.
9837 * inflow.c (class scoped_ignore_sigttou): Move from here...
9838 * inflow.h (class scoped_ignore_sigttou): ...to here.
9839 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
9840 * top.c: Remove include comment.
9841
eb41253a
TT
98422019-05-27 Tom Tromey <tom@tromey.com>
9843
9844 * NEWS: Fix typo.
9845
4ca51187
TT
98462019-05-22 Tom Tromey <tromey@adacore.com>
9847
9848 * target.c (target_follow_exec): Constify parameter.
9849 * target-delegates.c: Rebuild.
9850 * remote.c (remote_target::follow_exec): Constify parameter.
9851 * infrun.c (follow_exec): Constify parameter.
9852 * target.h (struct target_ops) <follow_exec>: Constify parameter.
9853 (target_follow_exec): Likewise.
9854
8fca4da0
AH
98552019-05-22 Alan Hayward <alan.hayward@arm.com>
9856
9857 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
9858 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
9859
b7060614
AH
98602019-05-22 Alan Hayward <alan.hayward@arm.com>
9861
9862 * NEWS: Add debugredirect and testsuite sections.
9863
0a5954bd
SC
98642019-05-22 Simon Cook <simon.cook@embecosm.com>
9865
9866 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
9867 target descriptions using exclusively floating point register name
9868 aliases.
9869
dc42e902
AB
98702019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
9871
9872 PR gdb/18644:
9873 * f-lang.c (build_fortran_types): Handle the case where
9874 gdbarch_floatformat_for_type returns a nullptr.
9875
fb7806c7
TV
98762019-05-21 Tom de Vries <tdevries@suse.de>
9877
9878 PR cli/24587
9879 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
9880
34d11c68
AB
98812019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9882
9883 PR gdb/18644:
9884 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
9885 16-byte floats.
9886 * i386-tdep.c (i386_floatformat_for_type): Use
9887 floatformats_ia64_quad for the 16-byte floating point component
9888 within a fortran 32-byte complex number.
9889
122cf0f2
AB
98902019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
9891
9892 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
9893 delete default constructor.
9894 (find_partial_die): Update to return const struct.
9895 (partial_die_parent_scope): Move variable declaration into scope
9896 of its use and change its type to auto.
9897 (guess_partial_die_structure_name): Likewise.
9898 (partial_die_info::fixup): Likewise.
9899
33d0e35a
TT
99002019-05-17 Tom Tromey <tromey@adacore.com>
9901
9902 * source.c (find_and_open_source): Remove cast.
9903
a45575b0
TT
99042019-05-17 Tom Tromey <tromey@adacore.com>
9905
9906 * annotate.c (annotate_source): Make "filename" const.
9907 * annotate.h (annotate_source): Use const.
9908
81f47ac2
AH
99092019-05-17 Alan Hayward <alan.hayward@arm.com>
9910
9911 * disasm.c (set_disassembler_options): Send errors to stderr.
9912
ca1285d1
AH
99132019-05-17 Alan Hayward <alan.hayward@arm.com>
9914
9915 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
9916 (cli_interp_base::set_logging): Check debug_redirect.
9917 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
9918 * cli/cli-logging.c (debug_redirect): Add static variable.
9919 (pop_output_files): Add default param.
9920 (handle_redirections): Print debug setting.
9921 (show_logging_command): Likewise.
9922 (_initialize_cli_logging): Add debugredirect command.
9923 * interps.c (current_interp_set_logging): Add debug_redirect
9924 parameter.
9925 * interps.h (set_logging): Add debug_redirect parameter.
9926 (current_interp_set_logging): Likewise.
9927 * mi/mi-common.h: Likewise.
9928 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
9929
99302019-05-17 Alan Hayward <alan.hayward@arm.com>
f3a09c80
AH
9931 Tom Tromey <tromey@adacore.com>
9932
9933 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
9934 directly.
9935 * cli/cli-interp.h (make_logging_output): Remove declaration.
9936 * cli/cli-logging.c (make_logging_output): Remove function.
9937 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
9938 directly.
9939 * ui-file.c (tee_file::tee_file): Remove bools.
9940 (tee_file::~tee_file): Remove deletes.
9941 * ui-file.h (tee_file): Remove bools.
9942
26648588
JV
99432019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
9944
9945 * mi/mi-cmds.h (mi_cmd_complete): New function.
9946 * mi/mi-main.c (mi_cmd_complete): Likewise.
9947 * mi/mi-cmds.c: Define new MI command -complete.
9948 * NEWS: Mention new -complete command.
9949
6e035501
JV
99502019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
9951
9952 * completer.h (complete): New function.
9953 * completer.c (complete): Likewise.
9954 * cli/cli-cmds.c: (complete_command): Update to use new complete()
9955 function defined in completer.h.
9956
7d0e2ece
JV
99572019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
9958
e79be6e5 9959 * MAINTAINERS (Write After Approval): Add myself.
7d0e2ece 9960
fb816e8b
TV
99612019-05-17 Tom de Vries <tdevries@suse.de>
9962
9963 PR gdb/24094
9964 * dwarf2read.c (struct cu_partial_die_info): New struct.
9965 (find_partial_die): Return cu_partial_die_info.
9966 (partial_die_parent_scope, guess_partial_die_structure_name)
9967 (partial_die_info::fixup): Handle new return type of find_partial_die.
9968
677052f2
SDJ
99692019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9970
a1726c38 9971 PR breakpoints/24541
677052f2
SDJ
9972 * stap-probe.c (stap_parse_register_operand): Make "regname" an
9973 "std::string", simplifying the algorithm.
9974
f3da9116
SDJ
99752019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9976
9977 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
9978 (stap_static_probe_ops::get_probes): Likewise.
9979
f1bb75ab
SDJ
99802019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9981
9982 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
9983 '-')" and "else if".
9984 (stap_parse_single_operand): Join checks for
9985 "gdbarch_stap_parse_special_token_p" and
9986 "gdbarch_stap_parse_special_token" in the same "if" statement.
9987 Invert check when verifying for operation on register
9988 displacement.
9989
3ca58cde
SDJ
99902019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9991
9992 * stap-probe.c (stap_get_opcode): Update comment.
9993 (stap_get_expected_argument_type): Likewise.
9994 (handle_stap_probe): Likewise.
9995
af2d9bee
SDJ
99962019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
9997
9998 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
9999 return type to 'bool'. Adjust comment. Use 'bool' when
10000 appropriate.
10001 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10002 * stap-probe.c (stap_parse_argument_1): Likewise.
10003 (stap_is_operator): Likewise.
10004 (stap_is_generic_prefix): Likewise.
10005 (stap_is_register_prefix): Likewise.
10006 (stap_is_register_indirection_prefix): Likewise.
10007 (stap_is_integer_prefix): Likewise.
10008 (stap_generic_check_suffix): Likewise.
10009 (stap_check_integer_suffix): Likewise.
10010 (stap_check_register_suffix): Likewise.
10011 (stap_check_register_indirection_suffix): Likewise.
10012 (stap_parse_register_operand): Likewise.
10013 (stap_parse_single_operand): Likewise.
10014 (stap_parse_argument_1): Likewise.
10015 (stap_probe::get_argument_count): Likewise.
10016 (stap_is_operator): Likewise.
10017
61c9c421
TT
100182019-05-16 Tom Tromey <tromey@adacore.com>
10019
10020 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
10021 keyword to foreach.
10022
9ddc1af1
SM
100232019-05-15 Simon Marchi <simon.marchi@efficios.com>
10024
10025 * linux-thread-db.c (try_thread_db_load_1): Change return type
10026 to bool.
10027 (try_thread_db_load): Likewise.
10028 (try_thread_db_load_from_pdir_1): Likewise.
10029 (try_thread_db_load_from_pdir): Likewise.
10030 (try_thread_db_load_from_sdir): Likewise.
10031 (try_thread_db_load_from_dir): Likewise.
10032 (thread_db_load_search): Likewise.
10033 (has_libpthread): Likewise.
10034 (thread_db_load): Likewise.
10035
7bede828
SDJ
100362019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
10037
10038 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
10039 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
10040 NULL, and complain/return if that's the case.
10041
c5358db4
JD
100422019-05-15 John Darrington <john@darrington.wattle.id.au>
10043
10044 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
10045 (advance, posn, abstract_read_memory): New functions.
10046 [struct mem_read_abstraction]: New struct.
10047 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
10048
c408a94f
TT
100492019-05-14 Tom Tromey <tromey@adacore.com>
10050
10051 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
10052 value is not lval_memory.
10053
e7bd7fba
TT
100542019-05-14 Tom Tromey <tromey@adacore.com>
10055
10056 * solib.c (info_sharedlibrary_command): Style the file name.
10057
a6d0f249
AH
100582019-05-14 Alan Hayward <alan.hayward@arm.com>
10059
10060 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
10061 (aarch64_vnv_type): Likewise.
10062 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
10063 * common/tdesc.c: Likewise.
10064 * common/tdesc.h (enum tdesc_type_kind): Likewise.
10065 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
10066 * features/aarch64-fpu.xml: Add ieee half view.
10067 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
10068 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
10069 * gdbtypes.h (struct builtin_type): Likewise.
10070 (struct objfile_type): Likewise.
10071
66b8bb74
SM
100722019-05-12 Paul Naert <paul.naert@polymtl.ca>
10073
10074 * language.c (language_sniff_from_mangled_name): Fix "langauge"
10075 typo.
10076 * location.h (string_to_event_location): Likewise.
10077
21c219fd
JB
100782019-05-11 Joel Brobecker <brobecker@adacore.com>
10079
10080 GDB 8.3 released.
10081
13674803
SM
100822019-05-10 Simon Marchi <simon.marchi@efficios.com>
10083
10084 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
10085 New variable declaration.
10086 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
10087 New variable.
10088 (print_one_breakpoint): Use ui_out::test_flags and new global
10089 variable to compute use_fixed_output.
10090 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
10091 Remove.
10092 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
10093 (mi_multi_location_breakpoint_output_fixed): Remove.
10094 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
10095 new variable.
10096 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
10097 fix_multi_location_breakpoint_output flag if version >= 3.
10098 * ui-out.h (enum ui_out_flag)
10099 <fix_multi_location_breakpoint_output>: New enumerator.
10100
a9eac7f9
SM
101012019-05-10 Simon Marchi <simon.marchi@efficios.com>
10102
10103 * contrib/cc-with-tweaks.sh: Validate dwz's work.
10104
71bed2db
TT
101052019-05-10 Tom Tromey <tromey@adacore.com>
10106
10107 * ada-lang.c (catch_ada_completer): New function.
10108 (_initialize_ada_language): Use it.
10109
24c54127
TT
101102019-05-10 Tom Tromey <tromey@adacore.com>
10111
10112 * thread.c (print_thread_info): Make "requested_threads" const.
10113 * gdbthread.h (print_thread_info): Make "requested_threads"
10114 const.
10115 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
10116 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
10117
7a102139
TT
101182019-05-08 Tom Tromey <tom@tromey.com>
10119
10120 * gdbtypes.c (objfile_type_data): Change type.
10121 (objfile_type, _initialize_gdbtypes): Update.
10122
924d79e2
TT
101232019-05-08 Tom Tromey <tom@tromey.com>
10124
10125 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
10126 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
10127 (_initialize_dwarf2_frame): Update.
10128
4c58e337
TT
101292019-05-08 Tom Tromey <tom@tromey.com>
10130
10131 * objc-lang.c (objc_objfile_data): Change type.
10132 (find_methods): Update.
10133 (_initialize_objc_lang): Remove.
10134
d772d2ab
TT
101352019-05-08 Tom Tromey <tom@tromey.com>
10136
10137 * stabsread.c (rs6000_builtin_type_data): Change type.
10138 (rs6000_builtin_type, _initialize_stabsread): Update.
10139
d11d83f4
TT
101402019-05-08 Tom Tromey <tom@tromey.com>
10141
10142 * mips-tdep.c (mips_pdr_data): Remove.
10143 (_initialize_mips_tdep): Update.
10144
9a73f0ad
TT
101452019-05-08 Tom Tromey <tom@tromey.com>
10146
10147 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
10148 (hppa_init_objfile_priv_data, read_unwind_info)
10149 (find_unwind_entry, _initialize_hppa_tdep): Update.
10150
8127a2fa
TT
101512019-05-08 Tom Tromey <tom@tromey.com>
10152
10153 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
10154 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
10155 on obstack.
10156 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
10157
91d3055d
TT
101582019-05-08 Tom Tromey <tom@tromey.com>
10159
10160 * mdebugread.c (basic_type_data): Change type.
10161 (basic_type, _initialize_mdebugread): Update.
10162
31930bd3
TT
101632019-05-08 Tom Tromey <tom@tromey.com>
10164
10165 * common/gdb_unique_ptr.h (struct noop_deleter): New.
10166
bdb3ed9e
TT
101672019-05-08 Tom Tromey <tom@tromey.com>
10168
10169 * nto-tdep.c (nto_inferior_data_reg): Change type.
10170 (nto_inferior_data): Update.
10171 (nto_inferior_data_cleanup, nto_new_inferior_data)
10172 (_initialize_nto_tdep): Remove.
10173 * nto-tdep.h (struct nto_inferior_data): Add initializers.
10174
f37b313d
TT
101752019-05-08 Tom Tromey <tom@tromey.com>
10176
10177 * ada-lang.c (struct ada_inferior_data): Add initializers.
10178 (ada_inferior_data): Change type.
10179 (ada_inferior_data_cleanup): Remove.
10180 (get_ada_inferior_data, ada_inferior_exit)
10181 (struct ada_pspace_data): Add initializers, destructor.
10182 (ada_pspace_data_handle): Change type.
10183 (get_ada_pspace_data): Update.
10184 (ada_pspace_data_cleanup): Remove.
10185
24699405
TT
101862019-05-08 Tom Tromey <tom@tromey.com>
10187
10188 * coffread.c (struct coff_symfile_info): Add initializers.
10189 (coff_objfile_data_key): Move lower. Change type.
10190 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
10191 Update.
10192 (coff_free_info): Remove.
10193
d4e05d2f
TT
101942019-05-08 Tom Tromey <tom@tromey.com>
10195
10196 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
10197 (fbsd_pspace_data_handle): Move lower. Change type.
10198 (get_fbsd_pspace_data): Update.
10199 (fbsd_pspace_data_cleanup): Remove.
10200 (_initialize_fbsd_tdep): Update.
10201
14ef6690
TT
102022019-05-08 Tom Tromey <tom@tromey.com>
10203
10204 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
10205 (get_ada_tasks_pspace_data): Update.
10206 (ada_tasks_pspace_data_cleanup): Remove.
10207 (_initialize_tasks): Update.
10208 (ada_tasks_inferior_data_handle): Change type.
10209 (get_ada_tasks_inferior_data): Update.
10210 (ada_tasks_inferior_data_cleanup): Remove.
10211 (struct ada_tasks_pspace_data): Add initializers.
10212
814cf43a
TT
102132019-05-08 Tom Tromey <tom@tromey.com>
10214
10215 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
10216 * symfile-debug.c (debug_sym_get_probes): Change type.
10217 * stap-probe.c (handle_stap_probe):
10218 (stap_static_probe_ops::get_probes): Change type.
10219 * probe.h (class static_probe_ops) <get_probes>: Change type.
10220 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
10221 (parse_probes_in_pspace): Update.
10222 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
10223 Update.
10224 (any_static_probe_ops::get_probes): Change type.
10225 * elfread.c (elfread_data): New typedef.
10226 (probe_key): Change type.
10227 (elf_get_probes): Likewise. Update.
10228 (probe_key_free): Remove.
10229 (_initialize_elfread): Update.
10230 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
10231 Change type.
10232 (dtrace_process_dof_probe, dtrace_process_dof)
10233 (dtrace_static_probe_ops::get_probe): Change type.
10234
02dc647e
TT
102352019-05-08 Tom Tromey <tom@tromey.com>
10236
10237 * xcoffread.c (struct xcoff_symfile_info): Rename from
10238 coff_symfile_info. Add initializers.
10239 (xcoff_objfile_data_key): Move lower. Change type.
10240 (XCOFF_DATA): Rewrite.
10241 (xcoff_free_info): Remove.
10242 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
10243 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
10244 (xcoff_initial_scan): Update.
10245
09232438
TT
102462019-05-08 Tom Tromey <tom@tromey.com>
10247
10248 * solib-svr4.c (struct svr4_info): Add initializers and
10249 destructor.
10250 <probes_table>: Now an htab_up.
10251 (solib_svr4_pspace_data): Change type.
10252 (free_probes_table): Simplify.
10253 (~svr4_info): Rename from svr4_pspace_data_cleanup.
10254 (get_svr4_info, probes_table_htab_remove_objfile_probes)
10255 (probes_table_remove_objfile_probes, register_solib_event_probe)
10256 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
10257 (_initialize_svr4_solib): Update.
10258
7b4a314f
TT
102592019-05-08 Tom Tromey <tom@tromey.com>
10260
10261 * remote.c (remote_pspace_data): Change type.
10262 (remote_pspace_data_cleanup): Remove.
10263 (get_remote_exec_file, set_pspace_remote_exec_file)
10264 (_initialize_remote): Update.
10265
51d3063a
TT
102662019-05-08 Tom Tromey <tom@tromey.com>
10267
10268 * breakpoint.c (breakpoint_objfile_key): Change type.
10269 (get_breakpoint_objfile_data): Update.
10270 (free_breakpoint_objfile_data): Remove.
10271 (_initialize_breakpoint): Update.
10272
89fb8848
TT
102732019-05-08 Tom Tromey <tom@tromey.com>
10274
10275 * linux-tdep.c (struct linux_info): Add initializers.
10276 (linux_inferior_data): Move. Change type.
10277 (invalidate_linux_cache_inf): Update.
10278 (linux_inferior_data_cleanup): Remove.
10279 (get_linux_inferior_data, _initialize_linux_tdep): Update.
10280
e9b89e2d
TT
102812019-05-08 Tom Tromey <tom@tromey.com>
10282
10283 * auxv.c (auxv_inferior_data): Move. Change type.
10284 (auxv_inferior_data_cleanup): Remove.
10285 (invalidate_auxv_cache_inf): Rewrite.
10286 (get_auxv_inferior_data, _initialize_auxv): Update.
10287
8c42777c
TT
102882019-05-08 Tom Tromey <tom@tromey.com>
10289
10290 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
10291 (symfile_debug_objfile_data_key): Change type.
10292 (symfile_debug_installed, debug_qf_has_symbols)
10293 (debug_qf_find_last_source_symtab)
10294 (debug_qf_forget_cached_source_info)
10295 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
10296 (debug_qf_print_stats, debug_qf_dump)
10297 (debug_qf_expand_symtabs_for_function)
10298 (debug_qf_expand_all_symtabs)
10299 (debug_qf_expand_symtabs_with_fullname)
10300 (debug_qf_map_matching_symbols)
10301 (debug_qf_expand_symtabs_matching)
10302 (debug_qf_find_pc_sect_compunit_symtab)
10303 (debug_qf_map_symbol_filenames)
10304 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
10305 (debug_sym_new_init, debug_sym_init, debug_sym_read)
10306 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
10307 (debug_sym_read_linetable, debug_sym_relocate): Update.
10308 (symfile_debug_free_objfile): Remove.
10309 (install_symfile_debug_logging, _initialize_symfile_debug):
10310 Update.
10311
5bfd760d
TT
103122019-05-08 Tom Tromey <tom@tromey.com>
10313
10314 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
10315 allocate_on_obstack.
10316 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
10317 (get_dwarf2_per_objfile): Update.
10318 (set_dwarf2_per_objfile): Remove.
10319 (dwarf2_has_info, dwarf2_get_section_info): Update.
10320 (dwarf2_free_objfile): Remove.
10321 (_initialize_dwarf2_read): Update.
10322
e85e19b4
TT
103232019-05-08 Tom Tromey <tom@tromey.com>
10324
10325 * auto-load.c (struct auto_load_pspace_info): Add destructor and
10326 initializers.
10327 <unsupported_script_warning_printed,
10328 script_not_found_warning_printed>: Now bool.
10329 (auto_load_pspace_data): Change type.
10330 (~auto_load_pspace_info): Rename from
10331 auto_load_pspace_data_cleanup.
10332 (get_auto_load_pspace_data, init_loaded_scripts_info)
10333 (clear_section_scripts, maybe_print_unsupported_script_warning)
10334 (maybe_print_script_not_found_warning, _initialize_auto_load):
10335 Update.
10336
f6aa7436
TT
103372019-05-08 Tom Tromey <tom@tromey.com>
10338
10339 * objfiles.c (objfile_pspace_info): Add destructor and
10340 initializers.
10341 (objfiles_pspace_data): Change type.
10342 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
10343 (get_objfile_pspace_data): Update.
10344 (objfiles_bfd_data): Change type.
10345 (get_objfile_bfd_data): Update.
10346 (objfile_bfd_data_free, _initialize_objfiles): Remove.
10347
6ae614f6
TT
103482019-05-08 Tom Tromey <tom@tromey.com>
10349
10350 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
10351 Change type.
10352 (get_catch_syscall_inferior_data): Update.
10353 (catch_syscall_inferior_data_cleanup): Remove.
10354 (_initialize_break_catch_syscall): Update.
10355
6509b8eb
TT
103562019-05-08 Tom Tromey <tom@tromey.com>
10357
10358 * inflow.c (struct terminal_info): Add destructor and
10359 initializers.
10360 (inflow_inferior_data): Change type.
10361 (~terminal_info): Rename from inflow_inferior_data_cleanup.
10362 (get_inflow_inferior_data, inflow_inferior_exit)
10363 (swap_terminal_info, _initialize_inflow): Update.
10364
35632941
TT
103652019-05-08 Tom Tromey <tom@tromey.com>
10366
10367 * target-dcache.c (target_dcache_cleanup): Remove.
10368 (target_dcache_aspace_key): Change type.
10369 (target_dcache_init_p, target_dcache_invalidate)
10370 (target_dcache_get, target_dcache_get_or_init)
10371 (_initialize_target_dcache): Update.
10372 * dcache.h (struct dcache_deleter): New.
10373
3017b94d
TT
103742019-05-08 Tom Tromey <tom@tromey.com>
10375
10376 * symtab.c (struct symbol_cache): Add destructor and
10377 initializers.
10378 (symbol_cache_key): Move. Change type.
10379 (make_symbol_cache, free_symbol_cache): Remove.
10380 (get_symbol_cache): Update.
10381 (symbol_cache_cleanup): Remove.
10382 (ALL_PSPACES, symbol_cache_flush)
10383 (maintenance_print_symbol_cache)
10384 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
10385 Update.
10386
a32ad8c5
TT
103872019-05-08 Tom Tromey <tom@tromey.com>
10388
10389 * symtab.c (struct main_info): Add destructor and initializers.
10390 (main_progspace_key): Move. Change type.
10391 (get_main_info): Update.
10392 (main_info_cleanup): Remove.
10393 (_initialize_symtab): Update.
10394
5f6e90a0
TT
103952019-05-08 Tom Tromey <tom@tromey.com>
10396
10397 * registry.h (DECLARE_REGISTRY): Define the _key class.
10398
1bd0c6e4
AB
103992019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
10400
10401 * NEWS: Merge two 'New commands' sections.
10402
2228ef77
XR
104032019-05-08 Joel Brobecker <brobecker@adacore.com>
10404
10405 * ada-valprint.c (ada_val_print_gnat_array): Remove language
10406 parameter and use Ada language definition instead.
10407 (ada_val_print_ptr): Remove unused language parameter.
10408 (ada_val_print_num): Remove language parameter and use Ada language
10409 definition instead.
10410 (ada_val_print_enum, ada_val_print_flt): Remove unused language
10411 parameter.
10412 (ada_val_print_struct_union, ada_val_print_ref): Remove language
10413 parameter and use Ada language definition instead.
10414 (ada_val_print_1): Update all ada_val_print_xxx calls.
10415 Remove language parameter.
10416 (ada_val_print): Update ada_val_print_1 call.
10417
60fcc1c3
TT
104182019-05-08 Tom Tromey <tromey@adacore.com>
10419
10420 * remote.c (remote_hw_watchpoint_limit)
10421 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
10422 Now static.
10423
ed2b7c17
TT
104242019-05-08 Tom Tromey <tromey@adacore.com>
10425
10426 * maint.c (_initialize_maint_cmds): Move initialization code to
10427 remote.c.
10428 (watchdog, show_watchdog): Move to remote.c.
10429 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
10430 "watchdog" static.
10431 (_initialize_remote): Move initialization code from maint.c.
10432 * defs.h (watchdog): Don't declare.
10433
b0be6c91
TT
104342019-05-08 Tom Tromey <tromey@adacore.com>
10435
10436 * tui/tui-interp.c: Include main.h.
10437 * interps.c: Include main.h.
10438 * main.h (interpreter_p): Declare.
10439 * defs.h (interpreter_p): Don't declare.
10440
587ee17b
TT
104412019-05-08 Tom Tromey <tromey@adacore.com>
10442
10443 * dwarf2loc.c: Include dwarf2read.h.
10444 * defs.h (read_unsigned_leb128): Don't declare.
10445 * dwarf2read.h (read_unsigned_leb128): Declare.
10446
ca1df239
TT
104472019-05-08 Tom Tromey <tromey@adacore.com>
10448
10449 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
10450 method.
10451
99f20f08
TT
104522019-05-08 Tom Tromey <tromey@adacore.com>
10453
10454 * utils.c (fputs_maybe_filtered): Reset style after paging, even
10455 when no wrap column is set.
10456
80e55b13
TT
104572019-05-08 Tom Tromey <tromey@adacore.com>
10458
10459 * c-lang.c (c_get_string): Handle non-C-style arrays.
10460
9d3421af
TT
104612019-05-08 Tom Tromey <tromey@adacore.com>
10462
10463 * typeprint.c (print_offset_data::update): Print the bit offset,
10464 not the number of bits remaining.
10465
844333e2
TT
104662019-05-08 Tom Tromey <tromey@adacore.com>
10467
10468 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
10469 padding at end of comment.
10470
988915ee
TT
104712019-05-08 Tom Tromey <tromey@adacore.com>
10472
10473 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
10474 Compare main types.
10475
26bfd823
TT
104762019-05-06 Tom Tromey <tom@tromey.com>
10477
10478 * common/scoped_mmap.c: Include common-defs.h.
10479 * common/scoped_mmap.h: Don't include config.h.
10480
89055eaa
TT
104812019-05-04 Tom Tromey <tom@tromey.com>
10482
10483 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
10484 (struct aarch64_call_info): Add initializers.
10485 <si>: Now a std::vector.
10486 (pass_on_stack, aarch64_push_dummy_call): Update.
10487
5da01df5
TT
104882019-05-04 Simon Marchi <simon.marchi@efficios.com>
10489 Tom Tromey <tom@tromey.com>
10490
10491 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
10492 (ppc_threads): Now a std::vector. Now static.
10493 (hwdebug_find_thread_points_by_tid)
10494 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
10495 Update.
10496
fbdf05a1
TT
104972019-05-04 Tom Tromey <tom@tromey.com>
10498
10499 * arc-tdep.c (arc_tdesc_init): Return bool.
10500
06d16ec9
TT
105012019-05-04 Tom Tromey <tom@tromey.com>
10502
10503 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
10504 Use gdb_assert_not_reached.
10505
9c056022
TT
105062019-05-04 Tom Tromey <tom@tromey.com>
10507
10508 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
10509 "false".
10510
fa9c2a59
TT
105112019-05-04 Tom Tromey <tom@tromey.com>
10512
10513 * arc-tdep.c (arc_tdesc_init): Use bool.
10514
e2eb806a
TT
105152019-05-04 Tom Tromey <tom@tromey.com>
10516
10517 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
10518
6fe87677
TT
105192019-05-04 Tom Tromey <tom@tromey.com>
10520
10521 * cli/cli-cmds.c (valid_command_p): Return bool.
10522
7f008c9e
TT
105232019-05-04 Tom Tromey <tom@tromey.com>
10524
10525 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
10526 * command.h (valid_user_defined_cmd_name_p): Channge return type.
10527
b6484282
RT
105282019-05-04 Raul Tambre <raul@tambre.ee>
10529
10530 * python/lib/gdb/prompt.py (_ExtendedPrompt)
10531 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
10532 operator for comparison.
10533
af97b416
TT
105342019-05-04 Tom Tromey <tom@tromey.com>
10535
10536 * psymtab.c (psymbol_name_matches, match_partial_symbol)
10537 (lookup_partial_symbol, print_partial_symbols)
10538 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
10539 (psymbol_compare): Update.
10540 (add_psymbol_to_bcache): Clear the entire psymbol.
10541 (maintenance_check_psymtabs): Update.
10542 * psympriv.h (struct partial_symbol): Don't derive from
10543 general_symbol_info.
10544 <obj_section, unrelocated_address, address,
10545 set_unrelocated_address>: Update.
10546 <ginfo>: New member.
10547 * dwarf-index-write.c (write_psymbols, debug_names::insert)
10548 (debug_names::write_psymbols): Update.
10549
9d6d4be8
TV
105502019-05-04 Tom de Vries <tdevries@suse.de>
10551
10552 * contrib/cc-with-tweaks.sh: Support -n arg.
10553
66452beb
PW
105542019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10555
10556 * corelow.c (core_target::detach): Ensure frame cache and
10557 register caches are cleared.
10558 inferior.c (exit_inferior_1): Likewise.
10559
bde09ab7
TT
105602019-05-03 Sandra Loosemore <sandra@codesourcery.com>
10561 Tom Tromey <tom@tromey.com>
10562
10563 * dictionary.c (collate_pending_symbols_by_language): Remove
10564 "struct" from foreach.
10565 * symtab.c (lookup_global_symbol_from_objfile)
10566 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
10567 foreach.
10568 * ser-tcp.c (net_open): Remove "struct" from foreach.
10569 * objfiles.c (objfile_relocate, objfile_rebase)
10570 (objfile_has_symbols): Remove "struct" from foreach.
10571 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
10572 from foreach.
10573 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
10574 foreach.
10575 * darwin-nat.c (thread_info_from_private_thread_info): Remove
10576 "struct" from foreach.
10577 * ada-lang.c (create_excep_cond_exprs)
10578 (ada_exception_catchpoint_cond_string): Remove "struct" from
10579 foreach.
10580
222a8d25
TT
105812019-05-03 Tom Tromey <tromey@adacore.com>
10582
10583 * ada-exp.y (convert_char_literal): Check suffix of each
10584 enumerator.
10585
fcd60b84
DP
105862019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
10587
10588 PR ada/21406:
10589 * ada-exp.y (yywrap): Don't define.
10590 * ada-lex.l (%option): Add noyywrap
10591 (yywrap): Remove.
10592
5f2459c2
EZ
105932019-05-03 Eli Zaretskii <eliz@gnu.org>
10594
353ea2d1
EZ
10595 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
10596 _WIN32_WINNT to the XP level, unless already defined to a higher
10597 level.
10598
10599 * unittests/parse-connection-spec-selftests.c:
10600 * ser-tcp.c:
10601 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
10602 override.
10603
5f2459c2
EZ
10604 * symfile.c (find_separate_debug_file): Remove colon from the
10605 drive spec of DOS/Windows file names of the target, so that the
10606 file name produced from DEBUGDIR and the target's directory will
10607 be valid on DOS/Windows systems.
10608
80062eb9
AB
106092019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
10610
10611 * rust-lang.c (val_print_struct): Handle printing structures
10612 containing strings.
10613
b8c05e85
TT
106142019-05-02 Tom Tromey <tromey@adacore.com>
10615
10616 * valarith.c (_initialize_valarith): Remove.
10617
4504bbde
TT
106182019-05-01 Tom Tromey <tromey@adacore.com>
10619
10620 * ada-lang.c (ada_value_primitive_field): Treat more fields as
10621 bitfields.
10622
d48e62f4
TT
106232019-05-01 Tom Tromey <tromey@adacore.com>
10624
10625 * ada-lang.c (ada_value_assign): Correctly compute starting offset
10626 for big-endian copies.
10627
15f18d14
AT
106282019-04-30 Ali Tamur <tamur@google.com>
10629 * gdb/dwarf2read.c (read_3_bytes): New declaration.
10630 (read_attribute_value): Added DW_FORM_strx1-4 cases.
10631 (read_3_bytes): New function.
10632
ab4ee614
JB
106332019-04-30 Joel Brobecker <brobecker@adacore.com>
10634
10635 * windows-nat.c (main_thread_id): Delete.
10636 (handle_output_debug_string): Replace main_thread_id by
10637 current_event.dwThreadId.
10638 (fake_create_process): Likewise.
10639 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
10640 Do not set main_thread_id.
10641 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
10642 current_event.dwThreadId.
10643 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
10644
8ed5b76e
JB
106452019-04-30 Joel Brobecker <brobecker@adacore.com>
10646
10647 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
10648 Use current_event.dwThreadId instead of main_thread_id.
10649
2ff0a947
TT
106502019-04-30 Tom Tromey <tromey@adacore.com>
10651
10652 * ada-lang.c (ada_lookup_simple_minsyms): New function.
10653 (create_excep_cond_exprs): Iterate over program spaces.
10654 (ada_exception_catchpoint_cond_string): Examine all minimal
10655 symbols for exception types.
10656
a776957c
TT
106572019-04-30 Tom Tromey <tromey@adacore.com>
10658
10659 PR c++/24470:
10660 * dwarf2read.c (process_structure_scope): Handle case where type
10661 has template parameters but no symbol was created.
10662
bc68014d
AB
106632019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10664 Chris January <chris.january@arm.com>
10665
10666 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
10667 qualifier.
10668 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
10669
f1fdc960
AB
106702019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10671
10672 * f-typeprint.c (f_print_type): Update rules for printing
10673 whitespace.
10674 (f_type_print_varspec_suffix): Likewise.
10675
bf7a4de1
AB
106762019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10677 Chris January <chris.january@arm.com>
10678
10679 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
10680 function arguments.
10681
bbe75b9d
AB
106822019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10683
10684 * f-lang.c (build_fortran_types): Change name of void type to
10685 lower case.
10686 * f-typeprint.c (f_type_print_base): Print the name of the void
10687 type, rather than a fixed string.
10688 * f-valprint.c (f_decorations): Use lower case void string.
10689
1db455a7
AB
106902019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10691 Chris January <chris.january@arm.com>
10692
10693 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
10694 types for Fortran.
10695
b6d03bb2
AB
106962019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10697 Chris January <chris.january@arm.com>
10698 David Lecomber <david.lecomber@arm.com>
10699
10700 * f-exp.y (BINOP_INTRINSIC): New token.
10701 (exp): New parser rule handling BINOP_INTRINSIC.
10702 (f77_keywords): Add new builtin procedures.
10703 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
10704 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10705 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
10706 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10707 (print_unop_subexp_f): New function.
10708 (print_binop_subexp_f): New function.
10709 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10710 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
10711 (dump_subexp_body_f): Likewise.
10712 (operator_check_f): Likewise.
10713 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
10714 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
10715
83228e93
AB
107162019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10717
10718 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
10719 UNOP_KIND.
10720 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
10721 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
10722 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
10723 (operator_length_f): New fuction.
10724 (print_subexp_f): New function.
10725 (op_name_f): New function.
10726 (dump_subexp_body_f): New function.
10727 (operator_check_f): New function.
10728 (exp_descriptor_f): Replace standard expression handling functions
10729 with new functions.
10730 * gdb/fortran-operator.def: New file.
10731 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
10732 * gdb/std-operator.def: Remove UNOP_KIND.
10733
6fdcd7cc
AB
107342019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
10735
10736 * std-operator.def: Remove unbalanced, stray double quote
10737 character.
10738
2e62ab40
AB
107392019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10740 Chris January <chris.january@arm.com>
10741 Daniel Everett <daniel.everett@arm.com>
10742 Nick Forrington <nick.forrington@arm.com>
10743 Richard Bunt <richard.bunt@arm.com>
10744
10745 * cp-valprint.c (cp_print_value_fields): Allow an additional level
10746 of depth when printing anonymous structs or unions.
10747 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
10748 Don't print either the top-level value, or the children if the
10749 max-depth is exceeded.
10750 (ppscm_print_children): When printing the key of a map, allow one
10751 extra level of depth.
10752 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
10753 print either the top-level value, or the children if the max-depth
10754 is exceeded.
10755 (print_children): When printing the key of a map, allow one extra
10756 level of depth.
10757 * python/py-value.c (valpy_format_string): Add max_depth keyword.
10758 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
10759 (user_print_options): Initialise max_depth field.
10760 (val_print_scalar_or_string_type_p): New function.
10761 (val_print): Check to see if the max depth has been reached.
10762 (val_print_check_max_depth): Define new function.
10763 (show_print_max_depth): New function.
10764 (_initialize_valprint): Add 'print max-depth' option.
10765 * valprint.h (struct value_print_options) <max_depth>: New field.
10766 (val_print_check_max_depth): Declare new function.
10767 * NEWS: Document new feature.
10768
4be290b2
AB
107692019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10770
10771 * ada-lang.c (ada_language_defn): Initialise new field.
10772 * c-lang.c (c_is_string_type_p): New function.
10773 (c_language_defn): Initialise new field.
10774 (cplus_language_defn): Initialise new field.
10775 (asm_language_defn): Initialise new field.
10776 (minimal_language_defn): Initialise new field.
10777 * c-lang.h (c_is_string_type_p): Declare new function.
10778 * d-lang.c (d_language_defn): Initialise new field.
10779 * f-lang.c (f_is_string_type_p): New function.
10780 (f_language_defn): Initialise new field.
10781 * go-lang.c (go_is_string_type_p): New function.
10782 (go_language_defn): Initialise new field.
10783 * language.c (default_is_string_type_p): New function.
10784 (unknown_language_defn): Initialise new field.
10785 (auto_language_defn): Initialise new field.
10786 * language.h (struct language_defn) <la_is_string_type_p>: New
10787 member variable.
10788 (default_is_string_type_p): Declare new function.
10789 * m2-lang.c (m2_language_defn): Initialise new field.
10790 * objc-lang.c (objc_language_defn): Initialise new field.
10791 * opencl-lang.c (opencl_language_defn): Initialise new field.
10792 * p-lang.c (pascal_is_string_type_p): New function.
10793 (pascal_language_defn): Initialise new field.
10794 * rust-lang.c (rust_is_string_type_p): New function.
10795 (rust_language_defn): Initialise new field.
10796
721b08c6
AB
107972019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10798
10799 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
10800 New field.
10801 * ada-lang.c (ada_language_defn): Initialise new field.
10802 * c-lang.c (c_language_defn): Likewise.
10803 (cplus_language_defn): Likewise.
10804 (asm_language_defn): Likewise.
10805 (minimal_language_defn): Likewise.
10806 * d-lang.c (d_language_defn): Likewise.
10807 * f-lang.c (f_language_defn): Likewise.
10808 * go-lang.c (go_language_defn): Likewise.
10809 * language.c (unknown_language_defn): Likewise.
10810 (auto_language_defn): Likewise.
10811 * m2-lang.c (m2_language_defn): Likewise.
10812 * objc-lang.c (objc_language_defn): Likewise.
10813 * opencl-lang.c (opencl_language_defn): Likewise.
10814 * p-lang.c (pascal_language_defn): Likewise.
10815 * rust-lang.c (rust_language_defn): Likewise.
10816
fc913e53
AB
108172019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
10818
10819 * ada-lang.c (ada_is_character_type): Change return type to bool.
10820 (ada_is_string_type): Likewise.
10821 * ada-lang.h (ada_is_character_type): Update declaration
10822 (ada_is_string_type): Likewise.
10823
fa731fa0
PW
108242019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10825
10826 Support style in 'frame|thread apply'
10827
10828 * gdbcmd.h (execute_command_to_string): New term_out parameter.
10829 * record.c (record_start, record_stop): Update callers of
10830 execute_command_to_string with false.
10831 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
10832 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
10833 methods.
10834 (class string_file): New constructor with term_out parameter.
10835 Override methods term_out and can_emit_style_escape. New member
10836 term_out.
10837 (class stdio_file): Override can_emit_style_escape.
10838 (class tee_file): Override term_out and can_emit_style_escape.
10839 * utils.h (can_emit_style_escape): Remove.
10840 * utils.c (can_emit_style_escape): Likewise.
10841 Update all callers of can_emit_style_escape (SOMESTREAM) to
10842 SOMESTREAM->can_emit_style_escape.
10843 * source-cache.c (source_cache::get_source_lines): Likewise.
10844 * stack.c (frame_apply_command_count): Call execute_command_to_string
10845 passing the term_out characteristic of the current gdb_stdout.
10846 * thread.c (thr_try_catch_cmd): Likewise.
10847 * top.c (execute_command_to_string): pass term_out parameter
10848 to construct the string_file for the command output.
10849 * ui-file.c (term_cli_styling): New function (most code moved
10850 from utils.c can_emit_style_escape).
10851 (string_file::string_file, string_file::can_emit_style_escape,
10852 stdio_file::can_emit_style_escape, tee_file::term_out,
10853 tee_file::can_emit_style_escape): New functions.
10854
136afab8
PW
108552019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10856
10857 * NEWS: Mention the new set|show may-call-functions.
10858 * infcall.c (may_call_functions_p): New variable.
10859 (show_may_call_functions_p): New function.
10860 (call_function_by_hand_dummy): Throws an error if not
10861 may-call-functions.
10862 (_initialize_infcall): Call add_setshow_boolean_cmd for
10863 may-call-functions.
10864
725cbb63
KS
108652019-04-25 Keith Seitz <keiths@redhat.com>
10866
10867 PR c++/24367
10868 * cp-support.c (inspect_type): Don't attempt substitutions
10869 of symbol with the same name.
10870
3d1cbb78
TT
108712019-04-25 Tom Tromey <tromey@adacore.com>
10872
10873 PR gdb/24475:
10874 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
10875 static.
10876
94aeb44b
TT
108772019-04-25 Tom Tromey <tromey@adacore.com>
10878
10879 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
10880 rvalue reference.
10881 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
10882 (gdb_xml_parser::parse): Use std::move.
10883 * python/python-internal.h (gdbpy_convert_exception): Take a const
10884 reference.
10885 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
10886 std::move.
10887 * python/py-utils.c (gdbpy_convert_exception): Take a const
10888 reference.
10889 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10890 Use std::move.
10891 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10892 Use std::move.
10893 * mi/mi-main.c (mi_print_exception): Take a const reference.
10894 * main.c (handle_command_errors): Take a const reference.
10895 * linespec.c (parse_linespec): Use std::move.
10896 * infcall.c (run_inferior_call): Use std::move.
10897 (call_function_by_hand_dummy): Use std::move.
10898 * exec.c (try_open_exec_file): Use std::move.
10899 * exceptions.h (exception_print, exception_fprintf)
10900 (exception_print_same): Update.
10901 * exceptions.c (print_exception, exception_print)
10902 (exception_fprintf, exception_print_same): Change parameters to
10903 const reference.
10904 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
10905 * common/new-op.c: Use std::move.
10906 * common/common-exceptions.h (struct gdb_exception): Add move
10907 constructor.
10908 (struct gdb_exception_error, struct gdb_exception_quit, struct
10909 gdb_quit_bad_alloc): Change constructor to move constructor.
10910 (throw_exception): Change parameter to rvalue reference.
10911 * common/common-exceptions.c (throw_exception): Take rvalue
10912 reference.
10913 * cli/cli-interp.c (safe_execute_command): Use std::move.
10914 * breakpoint.c (insert_bp_location, location_to_sals): Use
10915 std::move.
10916
680d7fd5
TT
109172019-04-25 Tom Tromey <tromey@adacore.com>
10918
10919 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
10920 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
10921 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
10922 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
10923 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
10924 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
10925 guile/scm-value.c: Use unpack.
10926 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
10927 gdbscm_gdb_exception.
10928 (gdbscm_throw_gdb_exception): Likewise.
10929 (struct gdbscm_gdb_exception): New.
10930 (unpack): New function.
10931 (gdbscm_wrap): Use unpack.
10932
c6fdd8b2
TT
109332019-04-25 Tom Tromey <tromey@adacore.com>
10934
10935 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10936 (gdb_rl_callback_handler): Use std::move.
10937 * common/common-exceptions.h (struct gdb_exception): Add move
10938 assignment operator.
10939 (throw_exception_sjlj): Change "exception" to const reference.
10940 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
10941 (throw_exception_sjlj): Change "exception" to const reference.
10942
cc06b668
TT
109432019-04-25 Tom Tromey <tromey@adacore.com>
10944
10945 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
10946 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
10947 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
10948 Update.
10949 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
10950 Update.
10951 * mi/mi-interp.c (mi_interp::exec): Update.
10952 * linespec.c (parse_linespec): Update.
10953 * infcall.c (run_inferior_call): Update.
10954 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
10955 * guile/scm-symbol.c (gdbscm_lookup_symbol)
10956 (gdbscm_lookup_global_symbol): Update.
10957 * guile/scm-param.c (gdbscm_parameter_value): Update.
10958 * guile/scm-frame.c (gdbscm_frame_read_register)
10959 (gdbscm_frame_read_var): Update.
10960 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10961 * exec.c (try_open_exec_file): Update.
10962 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
10963 (gdb_rl_callback_handler): Update.
10964 * common/common-exceptions.h (exception_none): Don't declare.
10965 * common/common-exceptions.c (exception_none): Don't define.
10966 (struct catcher) <exception>: Update.
10967 * cli/cli-interp.c (safe_execute_command): Update.
10968 * breakpoint.c (insert_bp_location, location_to_sals): Update.
10969
cf532bd1
AT
109702019-04-25 Ali Tamur <tamur@google.com>
10971
10972 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
10973 (read_attribute_value): Likewise.
10974 (dwarf2_read_addr_index): Update comment.
10975 (read_str_index): Add DW_FORM_strx.
10976 (dwarf2_string_attr): Likewise.
10977 (dwarf2_const_value_attr): Likewise.
10978 (dump_die_shallow): Likewise.
10979 (dwarf2_fetch_constant_bytes): Likewise.
10980 (skip_form_bytes): Likewise.
10981 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
10982
82433e3e
SDJ
109832019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
10984
10985 PR corefiles/11608
10986 PR corefiles/18187
10987 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
10988 OFFSET. Verify if current mapping contains an ELF header.
10989 (linux_find_memory_regions_full): Adjust call to
10990 dump_mapping_p.
10991
723adb65
SL
109922019-04-25 Sandra Loosemore <sandra@codesourcery.com>
10993 Kang Li <kanglictf@gmail.com>
10994
10995 PR gdb/21600
10996
10997 * dwarf2-frame.c (read_initial_length): Be consistent about using
10998 unsigned representation of length.
10999 (decode_frame_entry_1): Likewise. Check for wraparound of
11000 end pointer as well as buffer overflow.
11001
596179f7
SDJ
110022019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
11003
11004 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
11005 "vq".
11006
a59240a4
TT
110072019-04-24 Tom Tromey <tromey@adacore.com>
11008
11009 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
11010
f872fdbb
AB
110112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11012
11013 * s12z-tdep.c (s12z_unwind_pc): Delete.
11014 (s12z_unwind_sp): Delete.
11015 (s12z_gdbarch_init): Don't register deleted functions with
11016 gdbarch.
11017
b614e6f3
AB
110182019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11019
11020 * rl78-tdep.c (rl78_unwind_sp): Delete.
11021 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
11022
14faed38
AB
110232019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11024
11025 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
11026 (xstormy16_unwind_pc): Delete.
11027 (xstormy16_dummy_id): Delete.
11028 (xstormy16_gdbarch_init): Don't register deleted functions with
11029 gdbarch.
11030
541aad8a
AB
110312019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11032
11033 * vax-tdep.c (vax_unwind_pc): Delete.
11034 (vax_gdbarch_init): Don't register deleted function with gdbarch.
11035
29222070
AB
110362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11037
11038 * v850-tdep.c (v850_unwind_sp): Delete.
11039 (v850_unwind_pc): Delete.
11040 (v850_dummy_id): Delete.
11041 (v850_gdbarch_init): Don't register deleted functions with
11042 gdbarch.
11043
0f534d76
AB
110442019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11045
11046 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
11047 (tilegx_unwind_pc): Delete.
11048 (tilegx_unwind_dummy_id): Delete.
11049 (tilegx_gdbarch_init): Don't register deleted functions with
11050 gdbarch.
11051
1ba7b7f9
AB
110522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11053
11054 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
11055 (tic6x_dummy_id): Delete.
11056 (tic6x_gdbarch_init): Don't register deleted functions with
11057 gdbarch.
11058
d31f262c
AB
110592019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11060
11061 * sparc-tdep.c (sparc_unwind_pc): Delete.
11062 (sparc32_gdbarch_init): Don't register deleted function with
11063 gdbarch.
11064
6d14d64d
AB
110652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11066
11067 * sh-tdep.c (sh_unwind_sp): Delete.
11068 (sh_unwind_pc): Delete.
11069 (sh_dummy_id): Delete.
11070 (sh_gdbarch_init): Don't register deleted functions with
11071 gdbarch.
11072
a40dde9d
AB
110732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11074
11075 * score-tdep.c (score_unwind_sp): Delete.
11076 (score_unwind_pc): Delete.
11077 (score_dummy_id): Delete.
11078 (score_gdbarch_init): Don't register deleted functions with
11079 gdbarch.
11080
47c47d69
AB
110812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11082
11083 * rx-tdep.c (rx_unwind_pc): Delete.
11084 (rx_unwind_sp): Delete.
11085 (rx_dummy_id): Delete.
11086 (rx_gdbarch_init): Don't register deleted functions with
11087 gdbarch. Update comment.
11088
833a4480
AB
110892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11090
11091 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
11092 (rs6000_dummy_id): Delete.
11093 (rs6000_gdbarch_init): Don't register deleted functions with
11094 gdbarch.
11095
3f2cef49
AB
110962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11097
11098 * or1k-tdep.c (or1k_dummy_id): Delete.
11099 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
11100
96acf884
AB
111012019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11102
11103 * nios2-tdep.c (nios2_dummy_id): Delete.
11104 (nios2_unwind_sp): Delete.
11105 (nios2_gdbarch_init): Don't register deleted functions with
11106 gdbarch.
11107
ca0ab0aa
AB
111082019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11109
11110 * nds32-tdep.c (nds32_dummy_id): Delete.
11111 (nds32_unwind_pc): Delete.
11112 (nds32_unwind_sp): Delete.
11113 (nds32_gdbarch_init): Don't register deleted functions with
11114 gdbarch.
11115
c8259044
AB
111162019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11117
11118 * msp430-tdep.c (msp430_unwind_pc): Delete.
11119 (msp430_unwind_sp): Delete.
11120 (msp430_dummy_id): Delete.
11121 (msp430_gdbarch_init): Don't register deleted functions with
11122 gdbarch.
11123
27f113c8
AB
111242019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11125
11126 * moxie-tdep.c (moxie_unwind_sp): Delete.
11127 (moxie_unwind_pc): Delete.
11128 (moxie_dummy_id): Delete.
11129 (moxie_gdbarch_init): Don't register deleted functions with
11130 gdbarch.
11131
aee6c3cd
AB
111322019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11133
11134 * mn10300-tdep.c (mn10300_dummy_id): Delete.
11135 (mn10300_unwind_pc): Delete.
11136 (mn10300_unwind_sp): Delete.
11137 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
11138 mn10300_unwind_sp.
11139 (mn10300_frame_unwind_init): Don't register deleted functions with
11140 gdbarch.
11141
8e2b5aea
AB
111422019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11143
11144 * mep-tdep.c (mep_unwind_pc): Delete.
11145 (mep_unwind_sp): Delete.
11146 (mep_dummy_id): Delete.
11147 (mep_gdbarch_init): Don't register deleted functions with
11148 gdbarch.
11149
43cf3ede
AB
111502019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11151
11152 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
11153 (m68hc11_unwind_sp): Delete.
11154 (m68hc11_gdbarch_init): Don't register deleted functions with
11155 gdbarch.
11156
5e79b7bb
AB
111572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11158
11159 * m32r-tdep.c (m32r_unwind_sp): Delete.
11160 (m32r_unwind_pc): Delete.
11161 (m32r_dummy_id): Delete.
11162 (m32r_gdbarch_init): Don't register deleted functions with
11163 gdbarch.
11164
89b268d8
AB
111652019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11166
11167 * m32c-tdep.c (m32c_unwind_pc): Delete.
11168 (m32c_unwind_sp): Delete.
11169 (m32c_dummy_id): Delete.
11170 (m32c_gdbarch_init): Don't register deleted functions with
11171 gdbarch.
11172
946c28d2
AB
111732019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11174
11175 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
11176 (lm32_unwind_pc): Delete.
11177 (lm32_dummy_id): Delete.
11178 (lm32_gdbarch_init): Don't register deleted functions with
11179 gdbarch.
11180
bf12844a
AB
111812019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11182
11183 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
11184 (iq2000_unwind_pc): Delete.
11185 (iq2000_dummy_id): Delete.
11186 (iq2000_gdbarch_init): Don't register deleted functions with
11187 gdbarch.
11188
ecbc06d2
AB
111892019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11190
11191 * nds32-tdep.c (nds32_type_align): Delete.
11192 (nds32_push_dummy_call): Use type_align instead.
11193
030197b4
AB
111942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11195
11196 * arm-tdep.c (arm_type_align): Only handle vector override case.
11197 (arm_push_dummy_call): Use type_align.
11198 (arm_gdbarch_init): Register arm_type_align gdbarch function.
11199
b907456c
AB
112002019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
11201
11202 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
11203 case.
11204 (pass_on_stack): Use type_align.
11205 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
11206 function.
11207
9e97ba43
TT
112082019-04-23 Tom Tromey <tromey@adacore.com>
11209
11210 * dwarf2read.c (line_header::file_name_at): Remove unused
11211 overload.
11212
6892f601
TV
112132019-04-23 Tom de Vries <tdevries@suse.de>
11214
11215 PR gdb/24438
11216 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
11217 invocation.
11218
336d760d
AT
11219
112202019-03-27 Ali Tamur <tamur@google.com>
11221
11222 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
11223 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
11224 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
11225 (dwarf_expr_context::get_addr_index): Likewise
11226 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
11227 (symbol_needs_eval_context::get_addr_index): Likewise
11228 (disassemble_dwarf_expression): Add DW_OP_addrx
11229 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
11230 (read_cutu_die_from_dwo): Update comment
11231 (skip_one_die): Add DW_FORM_addrx
11232 (read_attribute_value): Likewise
11233 (var_decode_location): Add DW_OP_addrx
11234 (dwarf2_const_value_attr): Add DW_FORM_addrx
11235 (dump_die_shallow): Likewise
11236 (dwarf2_fetch_constant_bytes): Likewise
11237 (decode_locdesc): Add DW_OP_addrx
11238 (skip_form_bytes): Add DW_FORM_addrx
11239
ad9d13f8
AT
112402019-04-22 Ali Tamur <tamur@google.com>
11241
11242 * MAINTAINERS (Write After Approval): Add self.
11243
d70cc3ba
SM
112442019-04-22 Simon Marchi <simon.marchi@efficios.com>
11245
11246 * solib-svr4.c (get_svr4_info): Add pspace parameter.
11247 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
11248 (open_symbol_file_object): Likewise.
11249 (svr4_default_sos): Add info parameter.
11250 (svr4_read_so_list): Likewise.
11251 (svr4_current_sos_direct): Adjust functions calls to pass down
11252 info.
11253 (svr4_current_sos_1): Add info parameter.
11254 (svr4_current_sos): Call get_svr4_info, pass info down to
11255 svr4_current_sos_1.
11256 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
11257 get_svr4_info.
11258 (svr4_in_dynsym_resolve_code): Pass current_program_space to
11259 get_svr4_info.
11260 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
11261 to get_svr4_info.
11262 (probes_table_remove_objfile_probes): Likewise.
11263 (register_solib_event_probe): Add info parameter.
11264 (solist_update_incremental): Pass info parameter down to
11265 svr4_read_so_list.
11266 (disable_probes_interface): Add info parameter.
11267 (svr4_handle_solib_event): Pass current_program_space to
11268 get_svr4_info. Adjust disable_probes_interface cleanup.
11269 (svr4_create_probe_breakpoints): Add info parameter, pass it
11270 down to register_solib_event_probe.
11271 (svr4_create_solib_event_breakpoints): Add info parameter,
11272 pass it down to svr4_create_probe_breakpoints.
11273 (enable_break): Pass info down to
11274 svr4_create_solib_event_breakpoints.
11275 (svr4_solib_create_inferior_hook): Pass current_program_space to
11276 get_svr4_info.
11277 (svr4_clear_solib): Likewise.
11278
7905fc35
PA
112792019-04-22 Pedro Alves <palves@redhat.com>
11280
11281 * solib-svr4.c (svr4_free_objfile_observer): New.
11282 (probe_and_action::objfile): New field.
11283 (probes_table_htab_remove_objfile_probes)
11284 (probes_table_remove_objfile_probes): New functions.
11285 (register_solib_event_probe): Add 'objfile' parameter. Store it
11286 in the new probe_and_action. Don't store the probe in 'lookup'.
11287 (svr4_create_probe_breakpoints): Pass objfile to
11288 register_solib_event_probe.
11289 (_initialize_svr4_solib): Register a free_objfile observer.
11290
fb881986
TT
112912019-04-19 Tom Tromey <tom@tromey.com>
11292
11293 * common/queue.h: Remove.
11294
8732db6c
TT
112952019-04-19 Tom Tromey <tom@tromey.com>
11296
11297 * event-loop.c: Don't include "common/queue.h".
11298
97dfbadd
TT
112992019-04-19 Tom Tromey <tom@tromey.com>
11300
11301 * remote.c (remote_target): Use delete.
11302 * remote-notif.h: Include <list>, not "common/queue.h".
11303 (notif_client_p): Remove typedef.
11304 (remote_notif_state): Add constructor, destructor, initializer.
11305 <notif_queue>: Now a std::list.
11306 (remote_notif_state_xfree): Don't declare.
11307 * remote-notif.c (remote_notif_process, handle_notification)
11308 (remote_notif_state_allocate): Update.
11309 (~remote_notif_state): Rename from remote_notif_state_xfree.
11310
cf250e36
TT
113112019-04-19 Tom Tromey <tom@tromey.com>
11312
11313 * symfile.c (reread_symbols): Update.
11314 * objfiles.c (objfile_register_static_link)
11315 (objfile_lookup_static_link): Update
11316 (~objfile) Don't delete static_links.
11317 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
11318
61f4b350
TT
113192019-04-19 Tom Tromey <tom@tromey.com>
11320
11321 * type-stack.h (struct type_stack) <insert>: Constify string.
11322 * type-stack.c (type_stack::insert): Constify string.
11323 * gdbtypes.h (lookup_template_type): Update.
11324 (address_space_name_to_int): Update.
11325 * gdbtypes.c (address_space_name_to_int): Make space_identifier
11326 const.
11327 (lookup_template_type): Make name const.
11328 * c-exp.y: Update rules.
11329 (lex_one_token, classify_name, classify_inner_name)
11330 (c_print_token): Update.
11331 * p-exp.y: Update rules.
11332 (yylex): Update.
11333 * f-exp.y: Update rules.
11334 (yylex): Update.
11335 * d-exp.y: Update rules.
11336 (lex_one_token, classify_name, classify_inner_name): Update.
11337 * parse.c (write_dollar_variable, copy_name): Return std::string.
11338 * parser-defs.h (copy_name): Change return type.
11339 * m2-exp.y: Update rules.
11340 (yylex): Update.
11341 * go-exp.y (lex_one_token): Update.
11342 Update rules.
11343 (classify_unsafe_function, classify_packaged_name)
11344 (classify_name, yylex): Update.
11345
189b8c2e
ST
113462019-04-19 Sergei Trofimovich <siarheit@google.com>
11347
11348 * configure.ac: add --enable-source-highlight switch.
11349 * configure: Regenerate.
11350 * top.c (print_gdb_version): plumb --enable-source-highlight
11351 status to "show configuration".
11352
8ecb59f8
TT
113532019-04-19 Tom Tromey <tromey@adacore.com>
11354
11355 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
11356 Check ADA_TYPE_P.
11357 (empty_record, ada_template_to_fixed_record_type_1)
11358 (template_to_static_fixed_type)
11359 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
11360 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
11361 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
11362 macros.
11363
62160ec9
TT
113642019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11365
11366 PR symtab/24423:
11367 * source.c (print_source_lines_base): Advance "iter" when a
11368 control character is seen.
11369
f2ae8bc8
PW
113702019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11371
11372 * inferior.h (struct infcall_suspend_state_deleter):
11373 Catch exception in destructor to avoid crash.
11374
d563b953
PW
113752019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11376
11377 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
11378 close to the add_com "shell".
11379
dc34c897
TT
113802019-04-18 Tom Tromey <tromey@adacore.com>
11381
11382 * process-stratum-target.h (class process_stratum_target)
11383 <stratum>: Add "final".
11384
a12e5744
TT
113852019-04-17 Tom Tromey <tromey@adacore.com>
11386
11387 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
11388 against nullptr before use.
11389
a7e559cc
AH
113902019-04-17 Alan Hayward <alan.hayward@arm.com>
11391
11392 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
11393
c01660c6
AB
113942019-04-17 Jim Wilson <jimw@sifive.com>
11395 Andrew Burgess <andrew.burgess@embecosm.com>
11396
11397 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
11398 code read might fail, assume 4-byte breakpoint in that case.
11399
4aa866af
LS
114002019-04-15 Leszek Swirski <leszeks@google.com>
11401
11402 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
11403 rather than a hand-rolled POD check when checking for forced MEMORY
11404 classification.
11405
48574d91
AH
114062019-04-15 Alan Hayward <alan.hayward@arm.com>
11407
11408 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
11409 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
11410 function.
11411 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
11412 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
11413 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
11414 declaration.
11415
4da037ef
AH
114162019-04-15 Alan Hayward <alan.hayward@arm.com>
11417
11418 * aarch64-linux-nat.c
11419 (aarch64_linux_nat_target::thread_architecture): Add override.
11420 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
11421 each VQ.
11422
ccb8d7e8
AH
114232019-04-15 Alan Hayward <alan.hayward@arm.com>
11424
11425 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
11426
35add35e
AB
114272019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
11428
11429 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
11430 target types of size 96-bits, add some additional comments, and
11431 check that the builtin type we found was the correct size.
11432
51196bbc
EZ
114332019-04-12 Eli Zaretskii <eliz@gnu.org>
11434
11435 * utils.c (prompt_for_continue): Don't restore the styling at the
11436 end, as applied_style has the wrong value. This fixes styling in
11437 long lists of file names that are interrupted by the "Continue?"
11438 prompt.
11439
62253a61
AB
114402019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
11441
11442 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
11443 * c-lang.c (c_language_defn): Likewise.
11444 (cplus_language_defn): Likewise.
11445 (asm_language_defn): Likewise.
11446 (minimal_language_defn): Likewise.
11447 * d-lang.c (d_language_defn): Likewise.
11448 * f-lang.c (f_language_defn): Likewise.
11449 * go-lang.c (go_language_defn): Likewise.
11450 * language.c (unknown_language_defn): Likewise.
11451 (auto_language_defn): Likewise.
11452 * language.h (struct language_defn): Remove la_magic field.
11453 (LANG_MAGIC): Delete.
11454 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
11455 * objc-lang.c (objc_language_defn): Likewise.
11456 * opencl-lang.c (opencl_language_defn): Likewise.
11457 * p-lang.c (pascal_language_defn): Likewise.
11458 * rust-lang.c (rust_language_defn): Likewise.
11459
a9158a86
AB
114602019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11461
11462 * riscv-tdep.c (riscv_type_align): New function.
11463 (riscv_type_alignment): Delete.
11464 (riscv_arg_location): Use 'type_align'.
11465 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
11466
41077b66
AB
114672019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11468
11469 * gdbtypes.c (type_align): A struct with no non-static fields also
11470 has alignment of 1.
11471
9f0272f8
AB
114722019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
11473
11474 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
11475 component to 0.
11476 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
11477 member.
11478 (riscv_struct_info::analyse): New implementation using new
11479 analyse_inner member function.
11480 (riscv_struct_info::field_offset): New member function.
11481 (riscv_struct_info::m_offsets): New member variable.
11482 (riscv_struct_info::analyse_inner): New private member function,
11483 takes the old implementation of riscv_struct_info::analyse but
11484 extended to track field offsets.
11485 (riscv_call_arg_struct): Update the struct folding special cases
11486 to handle cases where empty C++ structs, which are non-zero
11487 length, are found.
11488 (riscv_arg_location): Initialise the length of each location, a
11489 non-zero length now indicates the location is in use.
11490 (riscv_push_dummy_call): Allow for the first location having a
11491 non-zero offset when setting up arguments.
11492 (riscv_return_value): Likewise, but for return values.
11493
02cf60c7
TT
114942019-04-11 Tom Tromey <tromey@adacore.com>
11495
11496 * utils.c (internal_vproblem): Make "msg" const.
11497
68811f8f
AH
114982019-04-11 Alan Hayward <alan.hayward@arm.com>
11499
11500 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
11501 * trad-frame.c (trad_frame_reset_saved_regs): New function.
11502 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
11503 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
11504
3f52fdbc
KB
115052019-04-10 Kevin Buettner <kevinb@redhat.com>
11506
11507 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
11508 function.
11509 (fill_gregset): Call amd64_linux_collect_native_gregset instead
11510 of amd64_collect_native_gregset.
11511 (amd64_linux_nat_target::store_registers): Likewise.
11512
e9ad22ee
TT
115132019-04-10 Tom Tromey <tom@tromey.com>
11514
11515 * symtab.c (lookup_global_symbol_from_objfile)
11516 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
11517 * objfiles.h (class separate_debug_iterator): New.
11518 (class separate_debug_range): New.
11519 (struct objfile) <separate_debug_objfiles>: New method.
11520 (objfile_separate_debug_iterate): Don't declare.
11521 * objfiles.c (separate_debug_iterator::operator++): Rename from
11522 objfile_separate_debug_iterate.
11523 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
11524 iterator.
11525 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
11526 iterator.
11527
ee371134
TT
115282019-04-10 Tom Tromey <tom@tromey.com>
11529
11530 * symfile.c (reread_symbols): Remove old comment.
11531 * objfiles.c (free_all_objfiles): Fix a typo.
11532
bf227d61
TT
115332019-04-10 Tom Tromey <tom@tromey.com>
11534
11535 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
11536 * minsyms.c (lookup_minimal_symbol): Use foreach.
11537 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
11538 (lookup_minimal_symbol_solib_trampoline): Likewise.
11539 * symfile.c (reread_symbols): Use foreach.
11540
8dc433a0
TT
115412019-04-09 Ivan Begert <ivanbegert@gmail.com>
11542 Tom Tromey <tromey@adacore.com>
11543
11544 PR rust/24414:
11545 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
11546 (rust_lex_int_test): Change "value" to be LONGEST.
11547 (rust_lex_tests): Add test for long integer literal.
11548
9ab8741a
TT
115492019-04-09 Tom Tromey <tromey@adacore.com>
11550
11551 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
11552 to bool.
11553 (extended_remote_target::attach): Update.
11554 (remote_target::remote_notice_new_inferior): Update.
11555 (remote_target::add_current_inferior_and_thread): Update.
11556 * inferior.c (exit_inferior_1): Use "false".
11557 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
11558
e242fd12
SM
115592019-04-09 Simon Marchi <simon.marchi@efficios.com>
11560
9ca1957f 11561 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
e242fd12
SM
11562 the "start" command.
11563
2b0c8b01
KB
115642019-04-08 Kevin Buettner <kevinb@redhat.com>
11565
11566 * python/py-inferior.c (infpy_thread_from_thread_handle):
11567 Adjust comments to reflect renaming of thread_from_thread_handle
11568 to thread_from_handle. Adjust keywords. Fix type error message.
11569 (inferior_object_methods): Add thread_from_handle. Retain
11570 thread_from_thread_handle, but mark it as deprecated.
11571
50a82723
KB
115722019-04-08 Kevin Buettner <kevinb@redhat.com>
11573
11574 * gdbthread.h (find_thread_by_handle): Revise declaration.
11575 * thread.c (find_thread_by_handle): Likewise. Adjust
11576 implementation too.
11577 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
11578 support for buffer objects as handles.
11579
cf63b016
KB
115802019-04-08 Kevin Buettner <kevinb@redhat.com>
11581
11582 * python/py-infthread.c (thpy_thread_handle): New function.
11583 (thread_object_methods): Register thpy_thread_handle.
11584
3d6c6204
KB
115852019-04-08 Kevin Buettner <kevinb@redhat.com>
11586
11587 * gdbthread.h (thread_to_thread_handle): Declare.
11588 * thread.c (gdbtypes.h): Include.
11589 (thread_to_thread_handle): New function.
11590
11591 * target.h (struct target_ops): Add thread_info_to_thread_handle.
11592 (target_thread_info_to_thread_handle): Declare.
11593 * target.c (target_thread_info_to_thread_handle): New function.
11594 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
11595 * target-delegates.c: Regenerate.
11596
11597 * linux-thread-db.c (class thread_db_target): Add method
11598 thread_info_to_thread_handle.
11599 (thread_db_target::thread_info_to_thread_handle): Define.
11600 * remote.c (class remote_target): Add new method
11601 thread_info_to_thread_handle.
11602 (remote_target::thread_info_to_thread_handle): Define.
11603
56be6ea8
PA
116042019-04-08 Pedro Alves <palves@redhat.com>
11605
11606 * common/common-exceptions.c (throw_exception): Don't create
11607 named object to throw; throw directly.
11608 (throw_it): Likewise. Don't initialize gdb_exception::message
11609 here, with new; pass FMT and AP to the ctor instead.
11610 * common/common-exceptions.h: Include <string>.
11611 (gdb_exception::gdb_exception(enum return_reason, enum errors,
11612 const char *, va_list)): New ctor. Use std::make_shared.
11613 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
11614 errors)): Delete.
11615 (gdb_exception_error::gdb_exception_error(enum errors, const char
11616 *, va_list)): New.
11617 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
11618 Add assertion.
11619 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
11620 errors)): Delete.
11621 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
11622 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
11623 Add assertion.
11624
eedc3f4f
TT
116252019-04-08 Tom Tromey <tom@tromey.com>
11626
11627 * valops.c (value_rtti_indirect_type): Replace throw_exception
11628 with throw.
11629 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
11630 with throw.
11631 * thread.c (thr_try_catch_cmd): Replace throw_exception with
11632 throw.
11633 * target.c (target_translate_tls_address): Replace throw_exception
11634 with throw.
11635 * stack.c (frame_apply_command_count): Replace throw_exception
11636 with throw.
11637 * solib-spu.c (append_ocl_sos): Replace throw_exception with
11638 throw.
11639 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
11640 with throw.
11641 * rs6000-tdep.c (rs6000_frame_cache)
11642 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
11643 * remote.c: Replace throw_exception with throw.
11644 * record-full.c (record_full_message, record_full_wait_1)
11645 (record_full_restore): Replace throw_exception with throw.
11646 * record-btrace.c:
11647 (get_thread_current_frame_id, record_btrace_start_replaying)
11648 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
11649 (cmd_record_btrace_start): Replace throw_exception with throw.
11650 * parse.c (parse_exp_in_context_1): Replace throw_exception with
11651 throw.
11652 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
11653 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
11654 * linespec.c:
11655 (find_linespec_symbols): Replace throw_exception with throw.
11656 * infrun.c (displaced_step_prepare, resume): Replace
11657 throw_exception with throw.
11658 * infcmd.c (post_create_inferior): Replace throw_exception with
11659 throw.
11660 * inf-loop.c (inferior_event_handler): Replace throw_exception
11661 with throw.
11662 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
11663 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
11664 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
11665 (get_prev_frame_always, get_frame_pc_if_available)
11666 (get_frame_address_in_block_if_available, get_frame_language):
11667 Replace throw_exception with throw.
11668 * frame-unwind.c (frame_unwind_try_unwinder): Replace
11669 throw_exception with throw.
11670 * eval.c (fetch_subexp_value, evaluate_var_value)
11671 (evaluate_funcall, evaluate_subexp_standard): Replace
11672 throw_exception with throw.
11673 * dwarf2loc.c (call_site_find_chain)
11674 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
11675 Replace throw_exception with throw.
11676 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
11677 with throw.
11678 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
11679 throw.
11680 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
11681 * completer.c (complete_line_internal): Replace throw_exception
11682 with throw.
11683 * compile/compile-object-run.c (compile_object_run): Replace
11684 throw_exception with throw.
11685 * cli/cli-script.c (process_next_line): Replace throw_exception
11686 with throw.
11687 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
11688 (btrace_enable, btrace_maint_update_pt_packets): Replace
11689 throw_exception with throw.
11690 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
11691 throw_exception with throw.
11692 * break-catch-throw.c (re_set_exception_catchpoint): Replace
11693 throw_exception with throw.
11694 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
11695 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
11696 * aarch64-tdep.c (aarch64_make_prologue_cache)
11697 (aarch64_make_stub_cache): Replace throw_exception with throw.
11698
26003a20
TT
116992019-04-08 Tom Tromey <tom@tromey.com>
11700
11701 * common/common-exceptions.c (throw_exception): Rename from
11702 throw_exception_cxx. Remove old copy. Make argument const.
11703 (throw_it): Create and throw exception objects directly.
11704 * common/common-exceptions.h (throw_exception): Make argument
11705 const.
11706 (struct gdb_exception_error): Add constructor.
11707 (struct gdb_exception_quit): Add constructor.
11708
d272eb37
TT
117092019-04-08 Tom Tromey <tom@tromey.com>
11710
11711 * common/common-exceptions.h (exception_rethrow): Don't declare.
11712 (TRY_SJLJ): Update comment.
11713 (TRY, CATCH, END_CATCH): Remove.
11714 * common/common-exceptions.c (exception_rethrow): Remove.
11715
230d2906
TT
117162019-04-08 Tom Tromey <tom@tromey.com>
11717
11718 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
11719 Remove.
11720 (gdb_exception_error): Rename from
11721 gdb_exception_RETURN_MASK_ERROR.
11722 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
11723 (gdb_quit_bad_alloc): Update.
11724 * aarch64-tdep.c: Update.
11725 * ada-lang.c: Update.
11726 * ada-typeprint.c: Update.
11727 * ada-valprint.c: Update.
11728 * amd64-tdep.c: Update.
11729 * arch-utils.c: Update.
11730 * break-catch-throw.c: Update.
11731 * breakpoint.c: Update.
11732 * btrace.c: Update.
11733 * c-varobj.c: Update.
11734 * cli/cli-cmds.c: Update.
11735 * cli/cli-interp.c: Update.
11736 * cli/cli-script.c: Update.
11737 * common/common-exceptions.c: Update.
11738 * common/new-op.c: Update.
11739 * common/selftest.c: Update.
11740 * compile/compile-c-symbols.c: Update.
11741 * compile/compile-cplus-symbols.c: Update.
11742 * compile/compile-object-load.c: Update.
11743 * compile/compile-object-run.c: Update.
11744 * completer.c: Update.
11745 * corelow.c: Update.
11746 * cp-abi.c: Update.
11747 * cp-support.c: Update.
11748 * cp-valprint.c: Update.
11749 * darwin-nat.c: Update.
11750 * disasm-selftests.c: Update.
11751 * dtrace-probe.c: Update.
11752 * dwarf-index-cache.c: Update.
11753 * dwarf-index-write.c: Update.
11754 * dwarf2-frame-tailcall.c: Update.
11755 * dwarf2-frame.c: Update.
11756 * dwarf2loc.c: Update.
11757 * dwarf2read.c: Update.
11758 * eval.c: Update.
11759 * event-loop.c: Update.
11760 * event-top.c: Update.
11761 * exec.c: Update.
11762 * f-valprint.c: Update.
11763 * fbsd-tdep.c: Update.
11764 * frame-unwind.c: Update.
11765 * frame.c: Update.
11766 * gdbtypes.c: Update.
11767 * gnu-v3-abi.c: Update.
11768 * guile/guile-internal.h: Update.
11769 * guile/scm-block.c: Update.
11770 * guile/scm-breakpoint.c: Update.
11771 * guile/scm-cmd.c: Update.
11772 * guile/scm-disasm.c: Update.
11773 * guile/scm-frame.c: Update.
11774 * guile/scm-lazy-string.c: Update.
11775 * guile/scm-math.c: Update.
11776 * guile/scm-param.c: Update.
11777 * guile/scm-ports.c: Update.
11778 * guile/scm-pretty-print.c: Update.
11779 * guile/scm-symbol.c: Update.
11780 * guile/scm-symtab.c: Update.
11781 * guile/scm-type.c: Update.
11782 * guile/scm-value.c: Update.
11783 * i386-linux-tdep.c: Update.
11784 * i386-tdep.c: Update.
11785 * inf-loop.c: Update.
11786 * infcall.c: Update.
11787 * infcmd.c: Update.
11788 * infrun.c: Update.
11789 * jit.c: Update.
11790 * language.c: Update.
11791 * linespec.c: Update.
11792 * linux-fork.c: Update.
11793 * linux-nat.c: Update.
11794 * linux-tdep.c: Update.
11795 * linux-thread-db.c: Update.
11796 * main.c: Update.
11797 * mi/mi-cmd-break.c: Update.
11798 * mi/mi-cmd-stack.c: Update.
11799 * mi/mi-interp.c: Update.
11800 * mi/mi-main.c: Update.
11801 * objc-lang.c: Update.
11802 * p-valprint.c: Update.
11803 * parse.c: Update.
11804 * ppc-linux-tdep.c: Update.
11805 * printcmd.c: Update.
11806 * python/py-arch.c: Update.
11807 * python/py-breakpoint.c: Update.
11808 * python/py-cmd.c: Update.
11809 * python/py-finishbreakpoint.c: Update.
11810 * python/py-frame.c: Update.
11811 * python/py-framefilter.c: Update.
11812 * python/py-gdb-readline.c: Update.
11813 * python/py-inferior.c: Update.
11814 * python/py-infthread.c: Update.
11815 * python/py-lazy-string.c: Update.
11816 * python/py-linetable.c: Update.
11817 * python/py-objfile.c: Update.
11818 * python/py-param.c: Update.
11819 * python/py-prettyprint.c: Update.
11820 * python/py-progspace.c: Update.
11821 * python/py-record-btrace.c: Update.
11822 * python/py-record.c: Update.
11823 * python/py-symbol.c: Update.
11824 * python/py-type.c: Update.
11825 * python/py-unwind.c: Update.
11826 * python/py-utils.c: Update.
11827 * python/py-value.c: Update.
11828 * python/python.c: Update.
11829 * record-btrace.c: Update.
11830 * record-full.c: Update.
11831 * remote-fileio.c: Update.
11832 * remote.c: Update.
11833 * riscv-tdep.c: Update.
11834 * rs6000-aix-tdep.c: Update.
11835 * rs6000-tdep.c: Update.
11836 * rust-exp.y: Update.
11837 * rust-lang.c: Update.
11838 * s390-tdep.c: Update.
11839 * selftest-arch.c: Update.
11840 * solib-dsbt.c: Update.
11841 * solib-frv.c: Update.
11842 * solib-spu.c: Update.
11843 * solib-svr4.c: Update.
11844 * solib.c: Update.
11845 * sparc64-linux-tdep.c: Update.
11846 * stack.c: Update.
11847 * symfile-mem.c: Update.
11848 * symmisc.c: Update.
11849 * target.c: Update.
11850 * thread.c: Update.
11851 * top.c: Update.
11852 * tracefile-tfile.c: Update.
11853 * tui/tui.c: Update.
11854 * typeprint.c: Update.
11855 * unittests/cli-utils-selftests.c: Update.
11856 * unittests/parse-connection-spec-selftests.c: Update.
11857 * valops.c: Update.
11858 * valprint.c: Update.
11859 * value.c: Update.
11860 * varobj.c: Update.
11861 * windows-nat.c: Update.
11862 * x86-linux-nat.c: Update.
11863 * xml-support.c: Update.
11864
a70b8144
TT
118652019-04-08 Tom Tromey <tom@tromey.com>
11866
11867 * xml-support.c: Use C++ exception handling.
11868 * x86-linux-nat.c: Use C++ exception handling.
11869 * windows-nat.c: Use C++ exception handling.
11870 * varobj.c: Use C++ exception handling.
11871 * value.c: Use C++ exception handling.
11872 * valprint.c: Use C++ exception handling.
11873 * valops.c: Use C++ exception handling.
11874 * unittests/parse-connection-spec-selftests.c: Use C++ exception
11875 handling.
11876 * unittests/cli-utils-selftests.c: Use C++ exception handling.
11877 * typeprint.c: Use C++ exception handling.
11878 * tui/tui.c: Use C++ exception handling.
11879 * tracefile-tfile.c: Use C++ exception handling.
11880 * top.c: Use C++ exception handling.
11881 * thread.c: Use C++ exception handling.
11882 * target.c: Use C++ exception handling.
11883 * symmisc.c: Use C++ exception handling.
11884 * symfile-mem.c: Use C++ exception handling.
11885 * stack.c: Use C++ exception handling.
11886 * sparc64-linux-tdep.c: Use C++ exception handling.
11887 * solib.c: Use C++ exception handling.
11888 * solib-svr4.c: Use C++ exception handling.
11889 * solib-spu.c: Use C++ exception handling.
11890 * solib-frv.c: Use C++ exception handling.
11891 * solib-dsbt.c: Use C++ exception handling.
11892 * selftest-arch.c: Use C++ exception handling.
11893 * s390-tdep.c: Use C++ exception handling.
11894 * rust-lang.c: Use C++ exception handling.
11895 * rust-exp.y: Use C++ exception handling.
11896 * rs6000-tdep.c: Use C++ exception handling.
11897 * rs6000-aix-tdep.c: Use C++ exception handling.
11898 * riscv-tdep.c: Use C++ exception handling.
11899 * remote.c: Use C++ exception handling.
11900 * remote-fileio.c: Use C++ exception handling.
11901 * record-full.c: Use C++ exception handling.
11902 * record-btrace.c: Use C++ exception handling.
11903 * python/python.c: Use C++ exception handling.
11904 * python/py-value.c: Use C++ exception handling.
11905 * python/py-utils.c: Use C++ exception handling.
11906 * python/py-unwind.c: Use C++ exception handling.
11907 * python/py-type.c: Use C++ exception handling.
11908 * python/py-symbol.c: Use C++ exception handling.
11909 * python/py-record.c: Use C++ exception handling.
11910 * python/py-record-btrace.c: Use C++ exception handling.
11911 * python/py-progspace.c: Use C++ exception handling.
11912 * python/py-prettyprint.c: Use C++ exception handling.
11913 * python/py-param.c: Use C++ exception handling.
11914 * python/py-objfile.c: Use C++ exception handling.
11915 * python/py-linetable.c: Use C++ exception handling.
11916 * python/py-lazy-string.c: Use C++ exception handling.
11917 * python/py-infthread.c: Use C++ exception handling.
11918 * python/py-inferior.c: Use C++ exception handling.
11919 * python/py-gdb-readline.c: Use C++ exception handling.
11920 * python/py-framefilter.c: Use C++ exception handling.
11921 * python/py-frame.c: Use C++ exception handling.
11922 * python/py-finishbreakpoint.c: Use C++ exception handling.
11923 * python/py-cmd.c: Use C++ exception handling.
11924 * python/py-breakpoint.c: Use C++ exception handling.
11925 * python/py-arch.c: Use C++ exception handling.
11926 * printcmd.c: Use C++ exception handling.
11927 * ppc-linux-tdep.c: Use C++ exception handling.
11928 * parse.c: Use C++ exception handling.
11929 * p-valprint.c: Use C++ exception handling.
11930 * objc-lang.c: Use C++ exception handling.
11931 * mi/mi-main.c: Use C++ exception handling.
11932 * mi/mi-interp.c: Use C++ exception handling.
11933 * mi/mi-cmd-stack.c: Use C++ exception handling.
11934 * mi/mi-cmd-break.c: Use C++ exception handling.
11935 * main.c: Use C++ exception handling.
11936 * linux-thread-db.c: Use C++ exception handling.
11937 * linux-tdep.c: Use C++ exception handling.
11938 * linux-nat.c: Use C++ exception handling.
11939 * linux-fork.c: Use C++ exception handling.
11940 * linespec.c: Use C++ exception handling.
11941 * language.c: Use C++ exception handling.
11942 * jit.c: Use C++ exception handling.
11943 * infrun.c: Use C++ exception handling.
11944 * infcmd.c: Use C++ exception handling.
11945 * infcall.c: Use C++ exception handling.
11946 * inf-loop.c: Use C++ exception handling.
11947 * i386-tdep.c: Use C++ exception handling.
11948 * i386-linux-tdep.c: Use C++ exception handling.
11949 * guile/scm-value.c: Use C++ exception handling.
11950 * guile/scm-type.c: Use C++ exception handling.
11951 * guile/scm-symtab.c: Use C++ exception handling.
11952 * guile/scm-symbol.c: Use C++ exception handling.
11953 * guile/scm-pretty-print.c: Use C++ exception handling.
11954 * guile/scm-ports.c: Use C++ exception handling.
11955 * guile/scm-param.c: Use C++ exception handling.
11956 * guile/scm-math.c: Use C++ exception handling.
11957 * guile/scm-lazy-string.c: Use C++ exception handling.
11958 * guile/scm-frame.c: Use C++ exception handling.
11959 * guile/scm-disasm.c: Use C++ exception handling.
11960 * guile/scm-cmd.c: Use C++ exception handling.
11961 * guile/scm-breakpoint.c: Use C++ exception handling.
11962 * guile/scm-block.c: Use C++ exception handling.
11963 * guile/guile-internal.h: Use C++ exception handling.
11964 * gnu-v3-abi.c: Use C++ exception handling.
11965 * gdbtypes.c: Use C++ exception handling.
11966 * frame.c: Use C++ exception handling.
11967 * frame-unwind.c: Use C++ exception handling.
11968 * fbsd-tdep.c: Use C++ exception handling.
11969 * f-valprint.c: Use C++ exception handling.
11970 * exec.c: Use C++ exception handling.
11971 * event-top.c: Use C++ exception handling.
11972 * event-loop.c: Use C++ exception handling.
11973 * eval.c: Use C++ exception handling.
11974 * dwarf2read.c: Use C++ exception handling.
11975 * dwarf2loc.c: Use C++ exception handling.
11976 * dwarf2-frame.c: Use C++ exception handling.
11977 * dwarf2-frame-tailcall.c: Use C++ exception handling.
11978 * dwarf-index-write.c: Use C++ exception handling.
11979 * dwarf-index-cache.c: Use C++ exception handling.
11980 * dtrace-probe.c: Use C++ exception handling.
11981 * disasm-selftests.c: Use C++ exception handling.
11982 * darwin-nat.c: Use C++ exception handling.
11983 * cp-valprint.c: Use C++ exception handling.
11984 * cp-support.c: Use C++ exception handling.
11985 * cp-abi.c: Use C++ exception handling.
11986 * corelow.c: Use C++ exception handling.
11987 * completer.c: Use C++ exception handling.
11988 * compile/compile-object-run.c: Use C++ exception handling.
11989 * compile/compile-object-load.c: Use C++ exception handling.
11990 * compile/compile-cplus-symbols.c: Use C++ exception handling.
11991 * compile/compile-c-symbols.c: Use C++ exception handling.
11992 * common/selftest.c: Use C++ exception handling.
11993 * common/new-op.c: Use C++ exception handling.
11994 * cli/cli-script.c: Use C++ exception handling.
11995 * cli/cli-interp.c: Use C++ exception handling.
11996 * cli/cli-cmds.c: Use C++ exception handling.
11997 * c-varobj.c: Use C++ exception handling.
11998 * btrace.c: Use C++ exception handling.
11999 * breakpoint.c: Use C++ exception handling.
12000 * break-catch-throw.c: Use C++ exception handling.
12001 * arch-utils.c: Use C++ exception handling.
12002 * amd64-tdep.c: Use C++ exception handling.
12003 * ada-valprint.c: Use C++ exception handling.
12004 * ada-typeprint.c: Use C++ exception handling.
12005 * ada-lang.c: Use C++ exception handling.
12006 * aarch64-tdep.c: Use C++ exception handling.
12007
3d6e9d23
TT
120082019-04-08 Tom Tromey <tom@tromey.com>
12009
12010 * xml-support.c (gdb_xml_parser::parse): Update.
12011 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
12012 * value.c (show_convenience): Update.
12013 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
12014 (test_parse_flags_qcs): Update.
12015 * thread.c (thr_try_catch_cmd): Update.
12016 * target.c (target_translate_tls_address): Update.
12017 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
12018 (info_frame_command_core, frame_apply_command_count): Update.
12019 * rust-exp.y (rust_lex_exception_test): Update.
12020 * riscv-tdep.c (riscv_print_one_register_info): Update.
12021 * remote.c (remote_target::enable_btrace): Update.
12022 * record-btrace.c (record_btrace_enable_warn): Update.
12023 * python/py-utils.c (gdbpy_convert_exception): Update.
12024 * printcmd.c (do_one_display, print_variable_and_value): Update.
12025 * mi/mi-main.c (mi_print_exception): Update.
12026 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
12027 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
12028 * linux-nat.c (linux_nat_target::attach): Update.
12029 * linux-fork.c (class scoped_switch_fork_info): Update.
12030 * infrun.c (displaced_step_prepare): Update.
12031 * infcall.c (call_function_by_hand_dummy): Update.
12032 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
12033 * gnu-v3-abi.c (print_one_vtable): Update.
12034 * frame.c (get_prev_frame_always): Update.
12035 * f-valprint.c (info_common_command_for_block): Update.
12036 * exec.c (try_open_exec_file): Update.
12037 * exceptions.c (print_exception, exception_print)
12038 (exception_fprintf, exception_print_same): Update.
12039 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
12040 * dwarf-index-cache.c (index_cache::store)
12041 (index_cache::lookup_gdb_index): Update.
12042 * darwin-nat.c (maybe_cache_shell): Update.
12043 * cp-valprint.c (cp_print_value_fields): Update.
12044 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
12045 (gcc_cplus_symbol_address): Update.
12046 * compile/compile-c-symbols.c (gcc_convert_symbol)
12047 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
12048 * common/selftest.c: Update.
12049 * common/common-exceptions.h (struct gdb_exception) <message>: Now
12050 a std::string.
12051 (exception_try_scope_entry, exception_try_scope_exit): Don't
12052 declare.
12053 (struct exception_try_scope): Remove.
12054 (TRY): Don't use exception_try_scope.
12055 (struct gdb_exception): Add constructor, operator=.
12056 <what>: New method.
12057 (struct gdb_exception_RETURN_MASK_ALL)
12058 (struct gdb_exception_RETURN_MASK_ERROR)
12059 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
12060 (struct gdb_quit_bad_alloc): Update.
12061 * common/common-exceptions.c (exception_none): Change
12062 initializer.
12063 (struct catcher) <state, exception>: Initialize inline.
12064 <prev>: Remove member.
12065 (current_catcher): Remove.
12066 (catchers): New global.
12067 (exceptions_state_mc_init): Simplify.
12068 (catcher_pop): Remove.
12069 (exceptions_state_mc, exceptions_state_mc_catch): Update.
12070 (try_scope_depth, exception_try_scope_entry)
12071 (exception_try_scope_exit): Remove.
12072 (throw_exception_sjlj): Update.
12073 (exception_messages, exception_messages_size): Remove.
12074 (throw_it): Simplify.
12075 (gdb_exception_sliced_copy): Remove.
12076 (throw_exception_cxx): Update.
12077 * cli/cli-script.c (script_from_file): Update.
12078 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
12079 Update.
12080 * ada-valprint.c (ada_val_print): Update.
12081 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
12082 (create_excep_cond_exprs): Update.
12083
c5c10118
TT
120842019-04-08 Tom Tromey <tom@tromey.com>
12085
12086 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
12087 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
12088 (TRY, CATCH, END_CATCH): Remove some definitions.
12089 * common/common-exceptions.c: Don't use GDB_XCPT.
12090 (catcher_list_size): Remove.
12091 (throw_exception, throw_it): Simplify.
12092
4de283e4
TT
120932019-04-05 Tom Tromey <tom@tromey.com>
12094
12095 Revert the header-sorting patch.
12096 * ft32-tdep.c: Revert.
12097 * frv-tdep.c: Revert.
12098 * frv-linux-tdep.c: Revert.
12099 * frame.c: Revert.
12100 * frame-unwind.c: Revert.
12101 * frame-base.c: Revert.
12102 * fork-child.c: Revert.
12103 * findvar.c: Revert.
12104 * findcmd.c: Revert.
12105 * filesystem.c: Revert.
12106 * filename-seen-cache.h: Revert.
12107 * filename-seen-cache.c: Revert.
12108 * fbsd-tdep.c: Revert.
12109 * fbsd-nat.h: Revert.
12110 * fbsd-nat.c: Revert.
12111 * f-valprint.c: Revert.
12112 * f-typeprint.c: Revert.
12113 * f-lang.c: Revert.
12114 * extension.h: Revert.
12115 * extension.c: Revert.
12116 * extension-priv.h: Revert.
12117 * expprint.c: Revert.
12118 * exec.h: Revert.
12119 * exec.c: Revert.
12120 * exceptions.c: Revert.
12121 * event-top.c: Revert.
12122 * event-loop.c: Revert.
12123 * eval.c: Revert.
12124 * elfread.c: Revert.
12125 * dwarf2read.h: Revert.
12126 * dwarf2read.c: Revert.
12127 * dwarf2loc.c: Revert.
12128 * dwarf2expr.h: Revert.
12129 * dwarf2expr.c: Revert.
12130 * dwarf2-frame.c: Revert.
12131 * dwarf2-frame-tailcall.c: Revert.
12132 * dwarf-index-write.h: Revert.
12133 * dwarf-index-write.c: Revert.
12134 * dwarf-index-common.c: Revert.
12135 * dwarf-index-cache.h: Revert.
12136 * dwarf-index-cache.c: Revert.
12137 * dummy-frame.c: Revert.
12138 * dtrace-probe.c: Revert.
12139 * disasm.h: Revert.
12140 * disasm.c: Revert.
12141 * disasm-selftests.c: Revert.
12142 * dictionary.c: Revert.
12143 * dicos-tdep.c: Revert.
12144 * demangle.c: Revert.
12145 * dcache.h: Revert.
12146 * dcache.c: Revert.
12147 * darwin-nat.h: Revert.
12148 * darwin-nat.c: Revert.
12149 * darwin-nat-info.c: Revert.
12150 * d-valprint.c: Revert.
12151 * d-namespace.c: Revert.
12152 * d-lang.c: Revert.
12153 * ctf.c: Revert.
12154 * csky-tdep.c: Revert.
12155 * csky-linux-tdep.c: Revert.
12156 * cris-tdep.c: Revert.
12157 * cris-linux-tdep.c: Revert.
12158 * cp-valprint.c: Revert.
12159 * cp-support.c: Revert.
12160 * cp-namespace.c: Revert.
12161 * cp-abi.c: Revert.
12162 * corelow.c: Revert.
12163 * corefile.c: Revert.
12164 * continuations.c: Revert.
12165 * completer.h: Revert.
12166 * completer.c: Revert.
12167 * complaints.c: Revert.
12168 * coffread.c: Revert.
12169 * coff-pe-read.c: Revert.
12170 * cli-out.h: Revert.
12171 * cli-out.c: Revert.
12172 * charset.c: Revert.
12173 * c-varobj.c: Revert.
12174 * c-valprint.c: Revert.
12175 * c-typeprint.c: Revert.
12176 * c-lang.c: Revert.
12177 * buildsym.c: Revert.
12178 * buildsym-legacy.c: Revert.
12179 * build-id.h: Revert.
12180 * build-id.c: Revert.
12181 * btrace.c: Revert.
12182 * bsd-uthread.c: Revert.
12183 * breakpoint.h: Revert.
12184 * breakpoint.c: Revert.
12185 * break-catch-throw.c: Revert.
12186 * break-catch-syscall.c: Revert.
12187 * break-catch-sig.c: Revert.
12188 * blockframe.c: Revert.
12189 * block.c: Revert.
12190 * bfin-tdep.c: Revert.
12191 * bfin-linux-tdep.c: Revert.
12192 * bfd-target.c: Revert.
12193 * bcache.c: Revert.
12194 * ax-general.c: Revert.
12195 * ax-gdb.h: Revert.
12196 * ax-gdb.c: Revert.
12197 * avr-tdep.c: Revert.
12198 * auxv.c: Revert.
12199 * auto-load.c: Revert.
12200 * arm-wince-tdep.c: Revert.
12201 * arm-tdep.c: Revert.
12202 * arm-symbian-tdep.c: Revert.
12203 * arm-pikeos-tdep.c: Revert.
12204 * arm-obsd-tdep.c: Revert.
12205 * arm-nbsd-tdep.c: Revert.
12206 * arm-nbsd-nat.c: Revert.
12207 * arm-linux-tdep.c: Revert.
12208 * arm-linux-nat.c: Revert.
12209 * arm-fbsd-tdep.c: Revert.
12210 * arm-fbsd-nat.c: Revert.
12211 * arm-bsd-tdep.c: Revert.
12212 * arch-utils.c: Revert.
12213 * arc-tdep.c: Revert.
12214 * arc-newlib-tdep.c: Revert.
12215 * annotate.h: Revert.
12216 * annotate.c: Revert.
12217 * amd64-windows-tdep.c: Revert.
12218 * amd64-windows-nat.c: Revert.
12219 * amd64-tdep.c: Revert.
12220 * amd64-sol2-tdep.c: Revert.
12221 * amd64-obsd-tdep.c: Revert.
12222 * amd64-obsd-nat.c: Revert.
12223 * amd64-nbsd-tdep.c: Revert.
12224 * amd64-nbsd-nat.c: Revert.
12225 * amd64-nat.c: Revert.
12226 * amd64-linux-tdep.c: Revert.
12227 * amd64-linux-nat.c: Revert.
12228 * amd64-fbsd-tdep.c: Revert.
12229 * amd64-fbsd-nat.c: Revert.
12230 * amd64-dicos-tdep.c: Revert.
12231 * amd64-darwin-tdep.c: Revert.
12232 * amd64-bsd-nat.c: Revert.
12233 * alpha-tdep.c: Revert.
12234 * alpha-obsd-tdep.c: Revert.
12235 * alpha-nbsd-tdep.c: Revert.
12236 * alpha-mdebug-tdep.c: Revert.
12237 * alpha-linux-tdep.c: Revert.
12238 * alpha-linux-nat.c: Revert.
12239 * alpha-bsd-tdep.c: Revert.
12240 * alpha-bsd-nat.c: Revert.
12241 * aix-thread.c: Revert.
12242 * agent.c: Revert.
12243 * addrmap.c: Revert.
12244 * ada-varobj.c: Revert.
12245 * ada-valprint.c: Revert.
12246 * ada-typeprint.c: Revert.
12247 * ada-tasks.c: Revert.
12248 * ada-lang.c: Revert.
12249 * aarch64-tdep.c: Revert.
12250 * aarch64-ravenscar-thread.c: Revert.
12251 * aarch64-newlib-tdep.c: Revert.
12252 * aarch64-linux-tdep.c: Revert.
12253 * aarch64-linux-nat.c: Revert.
12254 * aarch64-fbsd-tdep.c: Revert.
12255 * aarch64-fbsd-nat.c: Revert.
12256 * aarch32-linux-nat.c: Revert.
12257
d55e5aa6
TT
122582019-04-05 Tom Tromey <tom@tromey.com>
12259
12260 * ft32-tdep.c: Sort headers.
12261 * frv-tdep.c: Sort headers.
12262 * frv-linux-tdep.c: Sort headers.
12263 * frame.c: Sort headers.
12264 * frame-unwind.c: Sort headers.
12265 * frame-base.c: Sort headers.
12266 * fork-child.c: Sort headers.
12267 * findvar.c: Sort headers.
12268 * findcmd.c: Sort headers.
12269 * filesystem.c: Sort headers.
12270 * filename-seen-cache.h: Sort headers.
12271 * filename-seen-cache.c: Sort headers.
12272 * fbsd-tdep.c: Sort headers.
12273 * fbsd-nat.h: Sort headers.
12274 * fbsd-nat.c: Sort headers.
12275 * f-valprint.c: Sort headers.
12276 * f-typeprint.c: Sort headers.
12277 * f-lang.c: Sort headers.
12278 * extension.h: Sort headers.
12279 * extension.c: Sort headers.
12280 * extension-priv.h: Sort headers.
12281 * expprint.c: Sort headers.
12282 * exec.h: Sort headers.
12283 * exec.c: Sort headers.
12284 * exceptions.c: Sort headers.
12285 * event-top.c: Sort headers.
12286 * event-loop.c: Sort headers.
12287 * eval.c: Sort headers.
12288 * elfread.c: Sort headers.
12289 * dwarf2read.h: Sort headers.
12290 * dwarf2read.c: Sort headers.
12291 * dwarf2loc.c: Sort headers.
12292 * dwarf2expr.h: Sort headers.
12293 * dwarf2expr.c: Sort headers.
12294 * dwarf2-frame.c: Sort headers.
12295 * dwarf2-frame-tailcall.c: Sort headers.
12296 * dwarf-index-write.h: Sort headers.
12297 * dwarf-index-write.c: Sort headers.
12298 * dwarf-index-common.c: Sort headers.
12299 * dwarf-index-cache.h: Sort headers.
12300 * dwarf-index-cache.c: Sort headers.
12301 * dummy-frame.c: Sort headers.
12302 * dtrace-probe.c: Sort headers.
12303 * disasm.h: Sort headers.
12304 * disasm.c: Sort headers.
12305 * disasm-selftests.c: Sort headers.
12306 * dictionary.c: Sort headers.
12307 * dicos-tdep.c: Sort headers.
12308 * demangle.c: Sort headers.
12309 * dcache.h: Sort headers.
12310 * dcache.c: Sort headers.
12311 * darwin-nat.h: Sort headers.
12312 * darwin-nat.c: Sort headers.
12313 * darwin-nat-info.c: Sort headers.
12314 * d-valprint.c: Sort headers.
12315 * d-namespace.c: Sort headers.
12316 * d-lang.c: Sort headers.
12317 * ctf.c: Sort headers.
12318 * csky-tdep.c: Sort headers.
12319 * csky-linux-tdep.c: Sort headers.
12320 * cris-tdep.c: Sort headers.
12321 * cris-linux-tdep.c: Sort headers.
12322 * cp-valprint.c: Sort headers.
12323 * cp-support.c: Sort headers.
12324 * cp-namespace.c: Sort headers.
12325 * cp-abi.c: Sort headers.
12326 * corelow.c: Sort headers.
12327 * corefile.c: Sort headers.
12328 * continuations.c: Sort headers.
12329 * completer.h: Sort headers.
12330 * completer.c: Sort headers.
12331 * complaints.c: Sort headers.
12332 * coffread.c: Sort headers.
12333 * coff-pe-read.c: Sort headers.
12334 * cli-out.h: Sort headers.
12335 * cli-out.c: Sort headers.
12336 * charset.c: Sort headers.
12337 * c-varobj.c: Sort headers.
12338 * c-valprint.c: Sort headers.
12339 * c-typeprint.c: Sort headers.
12340 * c-lang.c: Sort headers.
12341 * buildsym.c: Sort headers.
12342 * buildsym-legacy.c: Sort headers.
12343 * build-id.h: Sort headers.
12344 * build-id.c: Sort headers.
12345 * btrace.c: Sort headers.
12346 * bsd-uthread.c: Sort headers.
12347 * breakpoint.h: Sort headers.
12348 * breakpoint.c: Sort headers.
12349 * break-catch-throw.c: Sort headers.
12350 * break-catch-syscall.c: Sort headers.
12351 * break-catch-sig.c: Sort headers.
12352 * blockframe.c: Sort headers.
12353 * block.c: Sort headers.
12354 * bfin-tdep.c: Sort headers.
12355 * bfin-linux-tdep.c: Sort headers.
12356 * bfd-target.c: Sort headers.
12357 * bcache.c: Sort headers.
12358 * ax-general.c: Sort headers.
12359 * ax-gdb.h: Sort headers.
12360 * ax-gdb.c: Sort headers.
12361 * avr-tdep.c: Sort headers.
12362 * auxv.c: Sort headers.
12363 * auto-load.c: Sort headers.
12364 * arm-wince-tdep.c: Sort headers.
12365 * arm-tdep.c: Sort headers.
12366 * arm-symbian-tdep.c: Sort headers.
12367 * arm-pikeos-tdep.c: Sort headers.
12368 * arm-obsd-tdep.c: Sort headers.
12369 * arm-nbsd-tdep.c: Sort headers.
12370 * arm-nbsd-nat.c: Sort headers.
12371 * arm-linux-tdep.c: Sort headers.
12372 * arm-linux-nat.c: Sort headers.
12373 * arm-fbsd-tdep.c: Sort headers.
12374 * arm-fbsd-nat.c: Sort headers.
12375 * arm-bsd-tdep.c: Sort headers.
12376 * arch-utils.c: Sort headers.
12377 * arc-tdep.c: Sort headers.
12378 * arc-newlib-tdep.c: Sort headers.
12379 * annotate.h: Sort headers.
12380 * annotate.c: Sort headers.
12381 * amd64-windows-tdep.c: Sort headers.
12382 * amd64-windows-nat.c: Sort headers.
12383 * amd64-tdep.c: Sort headers.
12384 * amd64-sol2-tdep.c: Sort headers.
12385 * amd64-obsd-tdep.c: Sort headers.
12386 * amd64-obsd-nat.c: Sort headers.
12387 * amd64-nbsd-tdep.c: Sort headers.
12388 * amd64-nbsd-nat.c: Sort headers.
12389 * amd64-nat.c: Sort headers.
12390 * amd64-linux-tdep.c: Sort headers.
12391 * amd64-linux-nat.c: Sort headers.
12392 * amd64-fbsd-tdep.c: Sort headers.
12393 * amd64-fbsd-nat.c: Sort headers.
12394 * amd64-dicos-tdep.c: Sort headers.
12395 * amd64-darwin-tdep.c: Sort headers.
12396 * amd64-bsd-nat.c: Sort headers.
12397 * alpha-tdep.c: Sort headers.
12398 * alpha-obsd-tdep.c: Sort headers.
12399 * alpha-nbsd-tdep.c: Sort headers.
12400 * alpha-mdebug-tdep.c: Sort headers.
12401 * alpha-linux-tdep.c: Sort headers.
12402 * alpha-linux-nat.c: Sort headers.
12403 * alpha-bsd-tdep.c: Sort headers.
12404 * alpha-bsd-nat.c: Sort headers.
12405 * aix-thread.c: Sort headers.
12406 * agent.c: Sort headers.
12407 * addrmap.c: Sort headers.
12408 * ada-varobj.c: Sort headers.
12409 * ada-valprint.c: Sort headers.
12410 * ada-typeprint.c: Sort headers.
12411 * ada-tasks.c: Sort headers.
12412 * ada-lang.c: Sort headers.
12413 * aarch64-tdep.c: Sort headers.
12414 * aarch64-ravenscar-thread.c: Sort headers.
12415 * aarch64-newlib-tdep.c: Sort headers.
12416 * aarch64-linux-tdep.c: Sort headers.
12417 * aarch64-linux-nat.c: Sort headers.
12418 * aarch64-fbsd-tdep.c: Sort headers.
12419 * aarch64-fbsd-nat.c: Sort headers.
12420 * aarch32-linux-nat.c: Sort headers.
12421
699bd4cf
TT
124222019-04-04 Tom Tromey <tom@tromey.com>
12423
12424 * varobj.c (varobj_create): Update.
12425 * rust-exp.y (struct rust_parser) <update_innermost_block,
12426 lookup_symbol>: New methods.
12427 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
12428 Rename.
12429 (rust_parser::rust_lookup_type)
12430 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12431 * printcmd.c (display_command, do_one_display): Update.
12432 * parser-defs.h (struct parser_state) <parser_state>: Add
12433 "tracker" parameter.
12434 (block_tracker): New member.
12435 (class innermost_block_tracker) <innermost_block_tracker>: Add
12436 "types" parameter.
12437 <reset>: Remove method.
12438 (innermost_block): Don't declare.
12439 (null_post_parser): Update.
12440 * parse.c (innermost_block): Remove global.
12441 (write_dollar_variable): Update.
12442 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
12443 Remove "tracker_types" parameter.
12444 (parse_expression): Add "tracker" parameter.
12445 (parse_expression_for_completion): Update.
12446 (null_post_parser): Add "tracker" parameter.
12447 * p-exp.y: Update rules.
12448 * m2-exp.y: Update rules.
12449 * language.h (struct language_defn) <la_post_parser>: Add
12450 "tracker" parameter.
12451 * go-exp.y: Update rules.
12452 * f-exp.y: Update rules.
12453 * expression.h (parse_expression, parse_exp_1): Add "tracker"
12454 parameter.
12455 * d-exp.y: Update rules.
12456 * c-exp.y: Update rules.
12457 * breakpoint.c (set_breakpoint_condition): Create an
12458 innermost_block_tracker.
12459 (watch_command_1): Likewise.
12460 * ada-lang.c (resolve): Add "tracker" parameter.
12461 (resolve_subexp): Likewise.
12462 * ada-exp.y (write_var_from_sym): Update.
12463
dac43e32
TT
124642019-04-04 Tom Tromey <tom@tromey.com>
12465
12466 * type-stack.h: New file.
12467 * type-stack.c: New file.
12468 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
12469 type-stack.h.
12470 (insert_into_type_stack, insert_type, push_type, push_type_int)
12471 (insert_type_address_space, pop_type, pop_type_int)
12472 (pop_typelist, pop_type_stack, append_type_stack)
12473 (push_type_stack, get_type_stack, push_typelist)
12474 (follow_type_instance_flags, follow_types): Don't declare.
12475 * parse.c (type_stack): Remove global.
12476 (parse_exp_in_context): Update.
12477 (insert_into_type_stack, insert_type, push_type, push_type_int)
12478 (insert_type_address_space, pop_type, pop_type_int)
12479 (pop_typelist, pop_type_stack, append_type_stack)
12480 (push_type_stack, get_type_stack, push_typelist)
12481 (follow_type_instance_flags, follow_types): Remove (moved to
12482 type-stack.c).
12483 * f-exp.y (type_stack): New global.
12484 Update rules.
12485 (push_kind_type, f_parse): Update.
12486 * d-exp.y (type_stack): New global.
12487 Update rules.
12488 (d_parse): Update.
12489 * c-exp.y (struct c_parse_state) <type_stack>: New member.
12490 Update rules.
12491 * Makefile.in (COMMON_SFILES): Add type-stack.c.
12492 (HFILES_NO_SRCDIR): Add type-stack.h.
12493
2a612529
TT
124942019-04-04 Tom Tromey <tom@tromey.com>
12495
12496 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
12497 (rust_parser::convert_ast_to_expression, rust_parse)
12498 (rust_lex_test_completion, rust_lex_tests): Update.
12499 * parser-defs.h (struct expr_completion_state): New.
12500 (struct parser_state) <parser_state>: Add completion parameter.
12501 <mark_struct_expression, mark_completion_tag>: New methods.
12502 <parse_completion, m_completion_state>: New members.
12503 (prefixify_expression, null_post_parser): Update.
12504 (mark_struct_expression, mark_completion_tag): Don't declare.
12505 * parse.c (parse_completion, expout_last_struct)
12506 (expout_tag_completion_type, expout_completion_name): Remove
12507 globals.
12508 (parser_state::mark_struct_expression)
12509 (parser_state::mark_completion_tag): Now methods.
12510 (prefixify_expression): Add last_struct parameter.
12511 (prefixify_subexp): Likewise.
12512 (parse_exp_1): Update.
12513 (parse_exp_in_context): Add cstate parameter. Update.
12514 (parse_expression_for_completion): Create an
12515 expr_completion_state.
12516 (null_post_parser): Add "completion" parameter.
12517 * p-exp.y: Update rules.
12518 (yylex): Update.
12519 * language.h (struct language_defn) <la_post_parser>: Add
12520 "completing" parameter.
12521 * go-exp.y: Update rules.
12522 (lex_one_token): Update.
12523 * expression.h (parse_completion): Don't declare.
12524 * d-exp.y: Update rules.
12525 (lex_one_token): Update rules.
12526 * c-exp.y: Update rules.
12527 (lex_one_token): Update.
12528 * ada-lang.c (resolve): Add "parse_completion" parameter.
12529 (resolve_subexp): Likewise.
12530 (ada_resolve_function): Likewise.
12531
43476f0b
TT
125322019-04-04 Tom Tromey <tom@tromey.com>
12533
12534 * parser-defs.h (struct parser_state) <start_arglist,
12535 end_arglist>: New methods.
12536 <arglist_len, m_funcall_chain>: New members.
12537 (arglist_len, start_arglist, end_arglist): Don't declare.
12538 * parse.c (arglist_len, funcall_chain): Remove global.
12539 (start_arglist, end_arglist): Remove functions.
12540 (parse_exp_in_context): Update.
12541 * p-exp.y: Update rules.
12542 * m2-exp.y: Update rules.
12543 * go-exp.y: Update rules.
12544 * f-exp.y: Update rules.
12545 * d-exp.y: Update rules.
12546 * c-exp.y: Update rules.
12547
5776fca3
TT
125482019-04-04 Tom Tromey <tom@tromey.com>
12549
12550 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
12551 lex_operator, push_back>: New methods.
12552 Update all rules.
12553 (rust_parser::lex_hex, lex_escape): Rename and update.
12554 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
12555 (rust_parser::lex_operator): Rename and update.
12556 (rust_parser::lex_number, rustyylex, rustyyerror)
12557 (rust_lex_test_init, rust_lex_test_sequence)
12558 (rust_lex_test_push_back, rust_lex_tests): Update.
12559 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
12560 parameter.
12561 <lexptr, prev_lexptr>: New members.
12562 (lexptr, prev_lexptr): Don't declare.
12563 * parse.c (lexptr, prev_lexptr): Remove globals.
12564 (parse_exp_in_context): Update.
12565 * p-exp.y (yylex, yyerror): Update.
12566 * m2-exp.y (parse_number, yylex, yyerror): Update.
12567 * go-exp.y (lex_one_token, yyerror): Update.
12568 * f-exp.y (match_string_literal, yylex, yyerror): Update.
12569 * d-exp.y (lex_one_token, yyerror): Update.
12570 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
12571 (lex_one_token, yyerror): Update.
12572 * ada-lex.l (YY_INPUT): Update.
12573 (rewind_to_char): Update.
12574 * ada-exp.y (yyerror): Update.
12575
8621b685
TT
125762019-04-04 Tom Tromey <tom@tromey.com>
12577
12578 * rust-exp.y (rustyylex, rust_lex_tests): Update.
12579 * parser-defs.h (struct parser_state) <parser_state>: Add new
12580 parameter.
12581 <comma_terminates>: New member.
12582 (comma_terminates): Don't declare global.
12583 * parse.c (comma_terminates): Remove global.
12584 (parse_exp_in_context): Update.
12585 * p-exp.y (yylex): Update.
12586 * m2-exp.y (yylex): Update.
12587 * go-exp.y (lex_one_token): Update.
12588 * f-exp.y (yylex): Update.
12589 * d-exp.y (lex_one_token): Update.
12590 * c-exp.y (lex_one_token): Update.
12591 * ada-lex.l: Update.
12592
28aaf3fd
TT
125932019-04-04 Tom Tromey <tom@tromey.com>
12594
12595 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
12596 (rustyylex, rust_lex_test_init, rust_lex_test_one)
12597 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
12598 * parser-defs.h (paren_depth): Don't declare.
12599 * parse.c (paren_depth): Remove global.
12600 (parse_exp_in_context): Update.
12601 * p-exp.y (paren_depth): New global.
12602 (pascal_parse): Initialize it.
12603 * m2-exp.y (paren_depth): New global.
12604 (m2_parse): Initialize it.
12605 * go-exp.y (paren_depth): New global.
12606 (go_parse): Initialize it.
12607 * f-exp.y (paren_depth): New global.
12608 (f_parse): Initialize it.
12609 * d-exp.y (paren_depth): New global.
12610 (d_parse): Initialize it.
12611 * c-exp.y (paren_depth): New global.
12612 (c_parse): Initialize it.
12613 * ada-lex.l (paren_depth): New global.
12614 (lexer_init): Initialize it.
12615
1e58a4a4
TT
126162019-04-04 Tom Tromey <tom@tromey.com>
12617
12618 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
12619 (rust_parser::convert_ast_to_type)
12620 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
12621 * parser-defs.h (struct parser_state) <parser_state>: Add
12622 parameters. Initialize new members.
12623 <expression_context_block, expression_context_pc>: New members.
12624 * parse.c (expression_context_block, expression_context_pc):
12625 Remove globals.
12626 (parse_exp_in_context): Update.
12627 * p-exp.y: Update all rules.
12628 (yylex): Update.
12629 * m2-exp.y: Update all rules.
12630 (yylex): Update.
12631 * go-exp.y (yylex): Update.
12632 * f-exp.y (yylex): Update.
12633 * d-exp.y: Update all rules.
12634 (yylex): Update.
12635 * c-exp.y: Update all rules.
12636 (lex_one_token, classify_name, yylex, c_parse): Update.
12637 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
12638
37eedb39
TT
126392019-04-04 Tom Tromey <tom@tromey.com>
12640
12641 * gdbarch.h, gdbarch.c: Rebuild.
12642 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
12643 * stap-probe.h:
12644 (struct stap_parse_info): Replace "parser_state" with
12645 "expr_builder".
12646 * parser-defs.h (struct expr_builder): Rename from "parser_state".
12647 (parser_state): New class.
12648 * parse.c (expr_builder): Rename.
12649 (expr_builder::release): Rename.
12650 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
12651 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
12652 (write_exp_elt_longcst, write_exp_elt_floatcst)
12653 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
12654 (write_exp_string_vector, write_exp_bitstring)
12655 (write_exp_msymbol, mark_struct_expression)
12656 (write_dollar_variable)
12657 (insert_type_address_space, increase_expout_size): Replace
12658 "parser_state" with "expr_builder".
12659 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
12660 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
12661 "parser_state" with "expr_builder".
12662
73923d7e
TT
126632019-04-04 Tom Tromey <tom@tromey.com>
12664
12665 * rust-exp.y: Replace "parse_language" with method call.
12666 * p-exp.y:
12667 (yylex): Replace "parse_language" with method call.
12668 * m2-exp.y:
12669 (yylex): Replace "parse_language" with method call.
12670 * go-exp.y (classify_name): Replace "parse_language" with method
12671 call.
12672 * f-exp.y (yylex): Replace "parse_language" with method call.
12673 * d-exp.y (lex_one_token): Replace "parse_language" with method
12674 call.
12675 * c-exp.y:
12676 (lex_one_token, classify_name, yylex): Replace "parse_language"
12677 with method call.
12678 * ada-exp.y (find_primitive_type, type_char)
12679 (type_system_address): Replace "parse_language" with method call.
12680
fa9f5be6
TT
126812019-04-04 Tom Tromey <tom@tromey.com>
12682
12683 * rust-exp.y: Replace "parse_gdbarch" with method call.
12684 * parse.c (write_dollar_variable, insert_type_address_space):
12685 Replace "parse_gdbarch" with method call.
12686 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
12687 call.
12688 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
12689 call.
12690 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
12691 "parse_gdbarch" with method call.
12692 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
12693 with method call.
12694 * f-exp.y (parse_type, parse_f_type, yylex): Replace
12695 "parse_gdbarch" with method call.
12696 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
12697 "parse_gdbarch" with method call.
12698 * c-exp.y (parse_type, parse_number, classify_name): Replace
12699 "parse_gdbarch" with method call.
12700 * ada-lex.l: Replace "parse_gdbarch" with method call.
12701 * ada-exp.y (parse_type, find_primitive_type, type_char)
12702 (type_system_address): Replace "parse_gdbarch" with method call.
12703
1201a264
TT
127042019-04-04 Tom Tromey <tom@tromey.com>
12705
12706 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
12707 * stap-probe.c (stap_parse_argument): Update.
12708 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
12709 initial_size parameter.
12710 * rust-exp.y (rust_lex_tests): Update.
12711 * parse.c (parser_state): Update.
12712 (parse_exp_in_context): Update.
12713 * parser-defs.h (struct parser_state) <parser_state>: Remove
12714 "initial_size" parameter.
12715
e3980ce2
TT
127162019-04-04 Tom Tromey <tom@tromey.com>
12717
12718 * parser-defs.h (increase_expout_size): Don't declare.
12719 * parse.c (increase_expout_size): Now static.
12720
e9f8e3f1
TS
127212019-04-04 Thomas Schwinge <thomas@codesourcery.com>
12722
12723 * gnu-nat.c (gnu_nat_target::wait): Fix
12724 target_waitstatus_to_string call.
12725
d7df6549
AB
127262019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12727
12728 * eval.c (evaluate_subexp_standard): Handle internal functions
12729 during Fortran function call handling.
12730
8bdc1658
AB
127312019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
12732
12733 * NEWS: Mention new internal functions.
12734 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
12735 (read_base_type): Use dwarf2_init_complex_target_type.
12736 * value.c (creal_internal_fn): New function.
12737 (cimag_internal_fn): New function.
12738 (_initialize_values): Register new internal functions.
12739
c29705b7
PW
127402019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12741
12742 * infrun.c (stop_all_threads): If debug_infrun, always
12743 trace the wait status after wait_one, using
12744 target_waitstatus_to_string and target_pid_to_str.
12745 (handle_inferior_event): Replace various trace of
12746 wait status kind by a single trace.
12747 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
12748 wait status kind image by target_waitstatus_to_string.
12749 * target/waitstatus.c (target_waitstatus_to_string): Fix
12750 obsolete comment.
12751
05caa1d2
TT
127522019-04-01 Tom Tromey <tromey@adacore.com>
12753
12754 PR symtab/23331:
12755 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
12756
9d1447e0
SDJ
127572019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
12758 Pedro Alves <palves@redhat.com>
12759
12760 * top.c (quit_force): Call 'finalize_values'.
12761 * value.c (finalize_values): New function.
12762 * value.h (finalize_values): Declare.
12763
7734102d
EZ
127642019-03-30 Eli Zaretskii <eliz@gnu.org>
12765
12766 * NEWS: Announce $_gdb_major and $_gdb_minor.
12767
12768 * top.c (init_gdb_version_vars): New function.
12769 (gdb_init): Call init_gdb_version_vars.
12770
188e1fa9
TT
127712019-03-29 Tom Tromey <tromey@adacore.com>
12772
12773 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
12774 help text. Remove dead code.
12775
2880242d
KS
127762019-03-29 Keith Seitz <keiths@redhat.com>
12777
12778 From Siddhesh Poyarekar:
12779 * f-lang.h (f77_get_upperbound): Return LONGEST.
12780 (f77_get_lowerbound): Likewise.
12781 * f-typeprint.c (f_type_print_varspec_suffix): Expand
12782 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
12783 print them.
12784 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
12785 plongest to format print it.
12786 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
12787 (f77_get_upperbound): Likewise.
12788 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
12789 LOWER_BOUND to LONGEST.
12790 (f77_create_arrayprint_offset_tbl): Likewise.
12791
cc1defb1
KS
127922019-03-29 Keith Seitz <keiths@redhat.com>
12793
12794 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
12795 %s/pulongest for TYPE_LENGTH instead of %d in format
12796 strings.
12797 * ada-typerint.c (ada_print_type): Likewise.
12798 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
12799 * compile/compile-c-support.c (generate_register_struct): Likewise.
12800 * gdbtypes.c (recursive_dump_type): Likewise.
12801 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
12802 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
12803 instead of %d in format strings.
12804 * riscv-tdep.c (riscv_type_alignment): Cast second argument
12805 to std::min to ULONGEST.
12806 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
12807 instead of %d in format strings.
12808 * tracepoint.c (info_scope_command): Likewise.
12809 * typeprint.c (print_offset_data::update)
12810 (print_offset_data::finish): Likewise.
12811 * xtensa-tdep.c (xtensa_store_return_value)
12812 (xtensa_push_dummy_call): Likewise.
12813
e432ccf1
JT
128142019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
12815
12816 * windows-nat.c (display_selector): Fixed format specifications
12817 for 64-bit Cygwin.
12818
65d2b333
PW
128192019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12820
12821 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
12822
f489207e
SL
128232019-03-28 Sandra Loosemore <sandra@codesourcery.com>
12824
12825 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
12826 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
12827 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
12828 (nios2_linux_init_abi): Install it.
12829
bffa1015
AH
128302019-03-28 Alan Hayward <alan.hayward@arm.com>
12831
12832 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
12833
fc96163a
AH
128342019-03-28 Alan Hayward <alan.hayward@arm.com>
12835
12836 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
12837
20dc7e9b
PW
128382019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12839 Tom Tromey <tromey@adacore.com>
12840
12841 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
12842
7f5331a8
JB
128432019-03-26 Joel Brobecker <brobecker@adacore.com>
12844
12845 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
12846 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
12847 method to compute the bounds of range types. Also print "[evaluated]"
12848 if the bounds' values come from a dynamic evaluation.
12849
18c77628
AB
128502019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
12851
12852 * cp-valprint.c (cp_print_value_fields): Don't print trailing
12853 whitespace when pretty printing is on.
12854
53c973f2
AH
128552019-03-26 Alan Hayward <alan.hayward@arm.com>
12856
e79be6e5 12857 * ppc-linux-nat.c: Add include.
53c973f2 12858
d851aa71
AH
128592019-03-26 Alan Hayward <alan.hayward@arm.com>
12860
e79be6e5 12861 * NEWS: Mention AArch64 Pointer Authentication.
d851aa71 12862
2fe7bab7
AH
128632019-03-26 Alan Hayward <alan.hayward@arm.com>
12864
e79be6e5 12865 * arm-linux-nat.c: Add include.
2fe7bab7 12866
068ef30e
SM
128672019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
12868
12869 * source-cache.c (source_cache::get_source_lines): Re-read
12870 fullname after calling open_source_file.
12871
81a24d04
JB
128722019-03-25 John Baldwin <jhb@FreeBSD.org>
12873
12874 * NEWS: Mention TLS support for FreeBSD.
12875
79e7ae11
TT
128762019-03-25 Tom Tromey <tromey@adacore.com>
12877
12878 * minsyms.c (BUNCH_SIZE): Update comment.
12879 (~minimal_symbol_reader): Remove old comment.
12880 (compact_minimal_symbols): Update comment.
12881 (minimal_symbol_reader::install): Remove old comment. Update
12882 other comments.
12883
d45963c2
AH
128842019-03-25 Alan Hayward <alan.hayward@arm.com>
12885
12886 * s390-linux-nat.c: Add include.
12887
0f83012e
AH
128882019-03-25 Alan Hayward <alan.hayward@arm.com>
12889
12890 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
12891 Call linux_get_hwcap.
12892 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
12893 Likewise.
12894 (aarch64_linux_get_hwcap): Remove function.
12895 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
12896 declaration.
12897 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
12898 linux_get_hwcap.
12899 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
12900 * linux-tdep.c (linux_get_hwcap): Add function.
12901 (linux_get_hwcap2): Likewise.
12902 * linux-tdep.h (linux_get_hwcap): Add declaration.
12903 (linux_get_hwcap2): Likewise.
12904 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
12905 (ppc_linux_get_hwcap2): Likewise.
12906 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
12907 linux_get_hwcap.
12908 (ppc_linux_nat_target::insert_watchpoint): Likewise.
12909 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
12910 (ppc_linux_nat_target::read_description): Likewise.
12911 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
12912 * s390-linux-nat.c: Likewise.
12913 * s390-linux-tdep.c (s390_core_read_description): Likewise.
12914
6640a367
TT
129152019-03-24 Tom Tromey <tom@tromey.com>
12916
12917 * ada-lang.c (standard_lookup): Simplify initialization.
12918 (ada_lookup_symbol_nonlocal): Simplify return.
12919 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
12920 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
12921 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
12922 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
12923 initialization.
12924 * solib.c (solib_global_lookup): Simplify.
12925 * symtab.c (null_block_symbol): Remove.
12926 (symbol_cache_lookup): Simplify returns.
12927 (lookup_language_this): Simplify returns.
12928 (lookup_symbol_aux): Simplify return.
12929 (lookup_local_symbol): Simplify returns.
12930 (lookup_global_symbol_from_objfile): Simplify return.
12931 (lookup_symbol_in_objfile_symtabs)
12932 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
12933 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
12934 (lookup_static_symbol, lookup_global_symbol): Simplify return.
12935 * cp-namespace.c (cp_lookup_bare_symbol)
12936 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
12937 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
12938 (cp_lookup_nested_symbol): Don't use null_block_symbol.
12939 (cp_lookup_symbol_via_imports): Simplify initialization.
12940 (find_symbol_in_baseclass): Likewise.
12941 * symtab.h (null_block_symbol): Remove.
12942 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
12943 (d_lookup_nested_symbol, d_lookup_symbol_imports)
12944 (d_lookup_symbol_module): Likewise.
12945 (find_symbol_in_baseclass): Simplify initialization.
12946
a930ebcd
TT
129472019-03-24 Tom Tromey <tom@tromey.com>
12948
12949 * expression.h: Don't include symtab.h.
12950 (struct block): Forward declare.
12951
582942f4
TT
129522019-03-24 Tom Tromey <tom@tromey.com>
12953
12954 * c-exp.y (typebase): Remove casts.
12955 * gdbtypes.c (lookup_unsigned_typename, )
12956 (lookup_signed_typename): Remove cast.
12957 * eval.c (parse_to_comma_and_eval): Remove cast.
12958 * parse.c (write_dollar_variable): Remove cast.
12959 * block.h (struct block) <superblock>: Now const.
12960 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
12961 * psymtab.c (psym_map_matching_symbols): Make "block" const.
12962 (map_block): Make "block" const.
12963 * symfile.h (struct quick_symbol_functions)
12964 <map_matching_symbols>: Constify block argument to "callback".
12965 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
12966 const.
12967 (find_pc_sect_compunit_symtab): Make "b" const.
12968 (find_symbol_at_address): Likewise.
12969 (search_symbols): Likewise.
12970 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
12971 (dw2_debug_names_lookup_symbol): Likewise.
12972 (dw2_map_matching_symbols): Update.
12973 * p-valprint.c (pascal_val_print): Remove "block".
12974 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
12975 (aux_add_nonlocal_symbols): Make "block" const.
12976 (resolve_subexp): Remove cast.
12977 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
12978 const.
12979 (iterate_over_file_blocks): Likewise.
12980 * f-exp.y (%union) <bval>: Remove.
12981 * coffread.c (patch_opaque_types): Make "b" const.
12982 * spu-tdep.c (spu_catch_start): Make "block" const.
12983 * c-valprint.c (print_unpacked_pointer): Remove "block".
12984 * symmisc.c (dump_symtab_1): Make "b" const.
12985 (block_depth): Make "block" const.
12986 * d-exp.y (%union) <bval>: Remove.
12987 * cp-support.h (cp_lookup_rtti_type): Update.
12988 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
12989 * psymtab.c (psym_lookup_symbol): Make "block" const.
12990 (maintenance_check_psymtabs): Make "b" const.
12991 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
12992 (enumerate_locals, enumerate_args): Update.
12993 * python/py-symtab.c (stpy_global_block): Make "block" const.
12994 (stpy_static_block): Likewise.
12995 * inline-frame.c (block_starting_point_at): Make "new_block"
12996 const.
12997 * block.c (find_block_in_blockvector): Make return type const.
12998 (blockvector_for_pc_sect): Make "b" const.
12999 (find_block_in_blockvector): Make "b" const.
13000
7ad417dd
TT
130012019-03-23 Tom Tromey <tom@tromey.com>
13002
13003 * varobj.c (varobj_create): Update.
13004 * symfile.c (clear_symtab_users): Don't reset innermost_block.
13005 * printcmd.c (display_command, do_one_display): Don't reset
13006 innermost_block.
13007 * parser-defs.h (enum innermost_block_tracker_type): Move to
13008 expression.h.
13009 (innermost_block): Update comment.
13010 * parse.c (parse_exp_1): Add tracker_types parameter.
13011 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
13012 tracker_types parameter. Reset innermost_block.
13013 (parse_exp_in_context): Remove.
13014 (parse_expression_for_completion): Update.
13015 * objfiles.c (~objfile): Don't reset expression_context_block or
13016 innermost_block.
13017 * expression.h (enum innermost_block_tracker_type): Move from
13018 parser-defs.h.
13019 (parse_exp_1): Add tracker_types parameter.
13020 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
13021 reset innermost_block.
13022
b366c208
TT
130232019-03-23 Tom Tromey <tom@tromey.com>
13024
13025 * objfiles.h: Include bcache.h.
13026
9bb9b2f9
TT
130272019-03-23 Tom Tromey <tom@tromey.com>
13028
13029 * linespec.c (get_current_search_block): Use
13030 scoped_restore_current_language.
13031 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
13032
59c28372
AH
130332019-03-22 Alan Hayward <alan.hayward@arm.com>
13034 Jiong Wang <jiong.wang@arm.com>
13035
13036 * aarch64-linux-tdep.c
13037 (aarch64_linux_iterate_over_regset_sections): Check for pauth
13038 section.
13039 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
13040
17e116a7
AH
130412019-03-22 Alan Hayward <alan.hayward@arm.com>
13042 Jiong Wang <jiong.wang@arm.com>
13043
13044 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
13045 instructions.
13046 (aarch64_analyze_prologue_test): Add PACIASP test.
13047 (aarch64_prologue_prev_register): Unmask PC value.
13048
11e1b75f
AH
130492019-03-22 Alan Hayward <alan.hayward@arm.com>
13050 Jiong Wang <jiong.wang@arm.com>
13051
13052 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
13053 (aarch64_dwarf2_prev_register): Unmask PC value.
13054 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
13055 (aarch64_execute_dwarf_cfa_vendor_op): Check for
13056 DW_CFA_AARCH64_negate_ra_state.
13057 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
13058
34dcc7cf
AH
130592019-03-22 Alan Hayward <alan.hayward@arm.com>
13060 Jiong Wang <jiong.wang@arm.com>
13061
13062 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
13063 registers.
13064 (aarch64_pseudo_register_name): Likewise.
13065 (aarch64_pseudo_register_type): Likewise.
13066 (aarch64_pseudo_register_reggroup_p): Likewise.
13067 (aarch64_gdbarch_init): Add pauth registers.
13068 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
13069 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
13070 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13071 (struct gdbarch_tdep): Add regnum for ra_state.
13072
1ef53e6b
AH
130732019-03-22 Alan Hayward <alan.hayward@arm.com>
13074 Jiong Wang <jiong.wang@arm.com>
13075
13076 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
13077
76bed0fd
AH
130782019-03-22 Alan Hayward <alan.hayward@arm.com>
13079 Jiong Wang <jiong.wang@arm.com>
13080
13081 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
13082 function.
13083 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
13084 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
13085 (aarch64_gdbarch_init): Add puth registers.
13086 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
13087 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
13088 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
13089
ee4fbcfa
AH
130902019-03-22 Alan Hayward <alan.hayward@arm.com>
13091 Jiong Wang <jiong.wang@arm.com>
13092
13093 * aarch64-linux-nat.c
13094 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
13095 * aarch64-linux-tdep.c
13096 (aarch64_linux_core_read_description): Likewise.
13097 (aarch64_linux_get_hwcap): New function.
13098 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
13099 (aarch64_linux_get_hwcap): New declaration.
13100
6dc0ebde
AH
131012019-03-22 Alan Hayward <alan.hayward@arm.com>
13102 Jiong Wang <jiong.wang@arm.com>
13103
13104 * aarch64-linux-nat.c
13105 (aarch64_linux_nat_target::read_description): Add pauth param.
13106 * aarch64-linux-tdep.c
13107 (aarch64_linux_core_read_description): Likewise.
13108 * aarch64-tdep.c (struct target_desc): Add in pauth.
13109 (aarch64_read_description): Add pauth param.
13110 (aarch64_gdbarch_init): Likewise.
13111 * aarch64-tdep.h (aarch64_read_description): Likewise.
13112 * arch/aarch64.c (aarch64_create_target_description): Likewise.
13113 * arch/aarch64.h (aarch64_create_target_description): Likewise.
13114 * features/Makefile: Add new files.
13115 * features/aarch64-pauth.c: New file.
13116 * features/aarch64-pauth.xml: New file.
13117
595915c1
TT
131182019-03-20 Tom Tromey <tromey@adacore.com>
13119
13120 * infrun.c (handle_inferior_event): Rename from
13121 handle_inferior_event_1. Create a scoped_value_mark.
13122 (handle_inferior_event): Remove.
13123
4c7d57e7
TT
131242019-03-19 Tom Tromey <tromey@adacore.com>
13125
13126 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
13127 * infrun.h (print_stop_event): Add "displays" parameter.
13128 * infrun.c (print_stop_event): Add "displays" parameter.
13129
cb246234
PA
131302019-03-19 Pedro Alves <palves@redhat.com>
13131
13132 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
13133 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
13134 to -1. Fix TABs vs spaces.
13135 (tui_ui_out::tui_ui_out): Don't initialize fields here.
13136 * tui/tui-out.h (tui_ui_out) Add intro comments.
13137 <m_line, m_start_of_line>: In-class initialize, and add describing
13138 comment.
13139
3a0e45b2
AH
131402019-03-18 Alan Hayward <alan.hayward@arm.com>
13141
13142 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
13143 variable names.
13144 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
13145
5371b850
PA
131462019-03-18 Pedro Alves <palves@redhat.com>
13147 Eli Zaretskii <eliz@gnu.org>
13148
13149 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
13150 m_line and m_start_of_line.
13151
b17c4cd0
EZ
131522019-03-18 Eli Zaretskii <eliz@gnu.org>
13153
13154 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
13155 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
13156 it returns a newline. This fixes a regression in TU mode, whereby
13157 the next line is output on the same screen line as the user input.
13158
4bd56d18
TT
131592019-03-18 Tom Tromey <tromey@adacore.com>
13160
13161 * minsyms.c (minimal_symbol_reader::install): Remove call to
13162 obstack_blank.
13163
55c10aca
PA
131642019-03-18 Pedro Alves <palves@redhat.com>
13165
13166 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
13167 New globals.
13168 (apply_style): New, factored out from ...
13169 (apply_ansi_escape): ... this. Handle reverse video mode.
13170 (tui_set_reverse_mode): New function.
13171 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
13172 * tui/tui-winsource.c (tui_show_source_line): Use
13173 tui_set_reverse_mode instead of setting A_STANDOUT.
13174 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
13175 New setter methods.
13176
647bb750
HD
131772019-03-18 Hannes Domani <ssbssa@yahoo.de>
13178
13179 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
13180 Handle tabs.
13181
bff8c71f
TT
131822019-03-18 Tom Tromey <tromey@adacore.com>
13183
13184 * ada-lang.c (empty_array): Add "high" parameter.
13185 (ada_evaluate_subexp): Update.
13186
58785d98
ST
131872019-03-17 Sergei Trofimovich <siarheit@google.com>
13188
13189 * unittests/string_view-selftests.c: Define
13190 _initialize_string_view_selftests unconditionally.
13191
d4cbef22
ВМ
131922019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13193
13194 PR gdb/24350
13195 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
13196
fce4c071
ВМ
131972019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
13198
13199 PR gdb/24351
13200 * windows-nat.c (display_selector): Fix format specifiers.
13201
f7f0a123
EZ
132022019-03-17 Eli Zaretskii <eliz@gnu.org>
13203
13204 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
13205 tui_refill_source_window instead of tui_refresh_win, to update the
13206 current execution line. This fixes redisplay of the current line
13207 when stepping through the code with "next" or "step".
13208
ab42892f
EZ
132092019-03-16 Eli Zaretskii <eliz@gnu.org>
13210
13211 * source-cache.c (source_cache::get_source_lines): Call
13212 find_source_lines to initialize s->nlines. This fixes vertical
13213 scrolling of TUI source window when the DOWN arrow is pressed.
13214
8d8c087f
PW
132152019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13216
13217 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
13218 linux-thread-db.c (_initialize_thread_db): Likewise.
13219
798e1c30
EZ
132202019-03-16 Eli Zaretskii <eliz@gnu.org>
13221
13222 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
13223 wclrtoeol in tui_show_source_line". This reverts changes made in
13224 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
13225
eefba3da
TT
132262019-03-15 Tom Tromey <tom@tromey.com>
13227
13228 * symtab.h (struct minimal_symbol): Derive from
13229 general_symbol_info.
13230 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
13231 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
13232 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
13233 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
13234 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
13235 (MSYMBOL_SEARCH_NAME): Update.
13236 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
13237 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
13238 * minsyms.c (minimal_symbol_reader::record_full): Update.
13239
0de2420c
TT
132402019-03-15 Tom Tromey <tom@tromey.com>
13241
13242 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
13243
042d75e4
TT
132442019-03-15 Tom Tromey <tom@tromey.com>
13245
13246 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
13247 unique_xmalloc_ptr.
13248 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
13249 Update.
13250 * minsyms.c (lookup_minimal_symbol_by_pc_section)
13251 (build_minimal_symbol_hash_tables)
13252 (minimal_symbol_reader::install): Update.
13253
db92718b
TT
132542019-03-15 Tom Tromey <tom@tromey.com>
13255
13256 * symtab.c (create_demangled_names_hash): Update.
13257 (symbol_set_names): Update.
13258 * objfiles.h (struct objfile_per_bfd_storage)
13259 <demangled_names_hash>: Now an htab_up.
13260 * objfiles.c (objfile_per_bfd_storage): Simplify.
13261
d6797f46
TT
132622019-03-15 Tom Tromey <tom@tromey.com>
13263
13264 * objfiles.h (struct objfile_per_bfd_storage): Declare
13265 destructor.
13266 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
13267 New.
13268 (get_objfile_bfd_data): Use new. Don't initialize
13269 language_of_main.
13270 (free_objfile_per_bfd_storage): Remove.
13271 (objfile_bfd_data_free, objfile::~objfile): Use delete.
13272
741d7538
TT
132732019-03-15 Tom Tromey <tom@tromey.com>
13274
13275 * symfile.c (reread_symbols): Update.
13276 * objfiles.c (objfile::objfile): Update.
13277 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
13278 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
13279 comment.
13280 (minimal_symbol_reader::install): Update.
13281 (terminate_minimal_symbol_table): Remove.
13282 * jit.c (jit_object_close_impl): Update.
13283
788c80d1
TT
132842019-03-15 Tom Tromey <tom@tromey.com>
13285
13286 * minsyms.c (minimal_symbol_reader::record_full): Remove some
13287 initializations.
13288
1b7a07cb
TT
132892019-03-15 Tom Tromey <tom@tromey.com>
13290
13291 * objfiles.h (struct objfile_per_bfd_storage)
13292 <demangled_hash_languages>: Now a bitset.
13293 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
13294 (lookup_minimal_symbol): Update.
13295
3db066bc
TT
132962019-03-15 Tom Tromey <tom@tromey.com>
13297
13298 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
13299 Don't return the symbol.
13300 * coffread.c (record_minimal_symbol): Use record_full.
13301
3fff2c37
EZ
133022019-03-14 Eli Zaretskii <eliz@gnu.org>
13303
13304 The MS-Windows port of ncurses fails to switch to a color pair if
13305 one or both of the colors are the implicit default colors. This
13306 change records the default colors when TUI is initialized, and
13307 then specifies them explicitly when a color pair uses the default
13308 colors. This allows color styling in TUI mode on MS-Windows.
13309
13310 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
13311 ncurses_norm_attr.
13312 (tui_initialize_io) [__MINGW32__]: Record the default terminal
13313 colors in ncurses_norm_attr.
13314 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
13315 "none", replace it with the default color recorded in
13316 ncurses_norm_attr.
13317
3b336828
TT
133182019-03-14 Tom Tromey <tromey@adacore.com>
13319
13320 * source-cache.h (class source_cache) <get_source_lines>: Return
13321 std::string.
13322 * source-cache.c (source_cache::extract_lines): Handle case where
13323 first_pos==npos. Return std::string.
13324 (source_cache::get_source_lines): Update.
13325
d085f989
TT
133262019-03-14 Tom Tromey <tromey@adacore.com>
13327
13328 * NEWS: Add item for "style sources" commands.
13329 * source-cache.c (source_cache::get_source_lines): Check
13330 source_styling.
13331 * cli/cli-style.c (source_styling): New global.
13332 (_initialize_cli_style): Add "style sources" commands.
13333 (show_style_sources): New function.
13334 * cli/cli-style.h (source_styling): Declare.
13335
6f11e682
TT
133362019-03-14 Pedro Alves <palves@redhat.com>
13337 Tom Tromey <tromey@adacore.com>
13338
13339 * tui/tui-winsource.h (tui_refill_source_window): Declare.
13340 * tui/tui-winsource.c (tui_refill_source_window): New function,
13341 from...
13342 (tui_horizontal_source_scroll): ... here. Move some logic.
13343 * cli/cli-style.c (set_style_enabled): Notify new observable.
13344 * tui/tui-hooks.c (tui_redisplay_source): New function.
13345 (tui_attach_detach_observers): Attach or detach
13346 tui_redisplay_source.
13347 * observable.h (source_styling_changed): New observable.
13348 * observable.c: Define source_styling_changed observable.
13349
a068643d
TT
133502019-03-13 Tom Tromey <tromey@adacore.com>
13351
13352 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
13353 (i386_gnu_nat_target::store_registers): Update.
13354 * target-debug.h (target_debug_print_std_string): New macro.
13355 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
13356 * windows-tdep.c (display_one_tib): Update.
13357 * tui/tui-stack.c (tui_make_status_line): Update.
13358 * top.c (print_inferior_quit_action): Update.
13359 * thread.c (thr_try_catch_cmd): Update.
13360 (add_thread_with_info): Update.
13361 (thread_target_id_str): Update.
13362 (thr_try_catch_cmd): Update.
13363 (thread_command): Update.
13364 (thread_find_command): Update.
13365 * record-btrace.c (record_btrace_target::info_record)
13366 (record_btrace_resume_thread, record_btrace_target::resume)
13367 (record_btrace_cancel_resume, record_btrace_step_thread)
13368 (record_btrace_target::wait, record_btrace_target::wait)
13369 (record_btrace_target::wait, record_btrace_target::stop): Update.
13370 * progspace.c (print_program_space): Update.
13371 * process-stratum-target.c
13372 (process_stratum_target::thread_address_space): Update.
13373 * linux-fork.c (linux_fork_mourn_inferior)
13374 (detach_checkpoint_command, info_checkpoints_command)
13375 (linux_fork_context): Update.
13376 (linux_fork_detach): Update.
13377 (class scoped_switch_fork_info): Update.
13378 (delete_checkpoint_command): Update.
13379 * infrun.c (follow_fork_inferior): Update.
13380 (follow_fork_inferior): Update.
13381 (proceed_after_vfork_done): Update.
13382 (handle_vfork_child_exec_or_exit): Update.
13383 (follow_exec): Update.
13384 (displaced_step_prepare_throw): Update.
13385 (displaced_step_restore): Update.
13386 (start_step_over): Update.
13387 (resume_1): Update.
13388 (clear_proceed_status_thread): Update.
13389 (proceed): Update.
13390 (print_target_wait_results): Update.
13391 (do_target_wait): Update.
13392 (context_switch): Update.
13393 (stop_all_threads): Update.
13394 (restart_threads): Update.
13395 (finish_step_over): Update.
13396 (handle_signal_stop): Update.
13397 (switch_back_to_stepped_thread): Update.
13398 (keep_going_pass_signal): Update.
13399 (print_exited_reason): Update.
13400 (normal_stop): Update.
13401 * inferior.c (inferior_pid_to_str): Change return type.
13402 (print_selected_inferior): Update.
13403 (add_inferior): Update.
13404 (detach_inferior): Update.
13405 * dummy-frame.c (fprint_dummy_frames): Update.
13406 * dcache.c (dcache_info_1): Update.
13407 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
13408 (btrace_fetch, btrace_clear): Update.
13409 * linux-tdep.c (linux_core_pid_to_str): Change return type.
13410 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
13411 type.
13412 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
13413 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
13414 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
13415 * gdbarch.c, gdbarch.h: Rebuild.
13416 * gdbarch.sh (core_pid_to_str): Change return type.
13417 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
13418 return type.
13419 (windows_nat_target::pid_to_str): Change return type.
13420 (windows_delete_thread): Update.
13421 (windows_nat_target::attach): Update.
13422 (windows_nat_target::files_info): Update.
13423 * target-delegates.c: Rebuild.
13424 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
13425 return type.
13426 (sol_thread_target::pid_to_str): Change return type.
13427 * remote.c (class remote_target) <pid_to_str>: Change return
13428 type.
13429 (remote_target::pid_to_str): Change return type.
13430 (extended_remote_target::attach, remote_target::remote_stop_ns)
13431 (remote_target::remote_notif_remove_queued_reply)
13432 (remote_target::push_stop_reply, remote_target::disable_btrace):
13433 Update.
13434 (extended_remote_target::attach): Update.
13435 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
13436 type.
13437 (gdbsim_target::pid_to_str): Change return type.
13438 * ravenscar-thread.c (struct ravenscar_thread_target)
13439 <pid_to_str>: Change return type.
13440 (ravenscar_thread_target::pid_to_str): Change return type.
13441 * procfs.c (class procfs_target) <pid_to_str>: Change return
13442 type.
13443 (procfs_target::pid_to_str): Change return type.
13444 (procfs_target::attach): Update.
13445 (procfs_target::detach): Update.
13446 (procfs_target::fetch_registers): Update.
13447 (procfs_target::store_registers): Update.
13448 (procfs_target::wait): Update.
13449 (procfs_target::files_info): Update.
13450 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
13451 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
13452 return type.
13453 (nto_procfs_target::pid_to_str): Change return type.
13454 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
13455 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
13456 return type.
13457 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
13458 (exit_lwp): Update.
13459 (attach_proc_task_lwp_callback, get_detach_signal)
13460 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
13461 (linux_nat_target::resume, wait_lwp, stop_callback)
13462 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
13463 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
13464 (linux_nat_wait_1, resume_stopped_resumed_lwps)
13465 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
13466 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
13467 type.
13468 (inf_ptrace_target::attach): Update.
13469 (inf_ptrace_target::files_info): Update.
13470 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
13471 type.
13472 (go32_nat_target::pid_to_str): Change return type.
13473 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
13474 (gnu_nat_target::wait): Update.
13475 (gnu_nat_target::wait): Update.
13476 (gnu_nat_target::resume): Update.
13477 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
13478 (fbsd_nat_target::wait): Update.
13479 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
13480 type.
13481 (darwin_nat_target::attach): Update.
13482 * corelow.c (class core_target) <pid_to_str>: Change return type.
13483 (core_target::pid_to_str): Change return type.
13484 * target.c (normal_pid_to_str): Change return type.
13485 (default_pid_to_str): Likewise.
13486 (target_pid_to_str): Change return type.
13487 (target_translate_tls_address): Update.
13488 (target_announce_detach): Update.
13489 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
13490 return type.
13491 (bsd_uthread_target::pid_to_str): Change return type.
13492 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
13493 type.
13494 (bsd_kvm_target::pid_to_str): Change return type.
13495 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
13496 return type.
13497 (aix_thread_target::pid_to_str): Change return type.
13498 * target.h (struct target_ops) <pid_to_str>: Change return type.
13499 (target_pid_to_str, normal_pid_to_str): Likewise.
13500 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
13501 type.
13502 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
13503 type.
13504 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
13505 return type.
13506 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
13507 type.
13508 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
13509 type.
13510 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
13511 return type.
13512
b4be1b06
SM
135132019-03-13 Simon Marchi <simon.marchi@ericsson.com>
13514
13515 * NEWS: Mention that the new default MI version is 3. Mention
13516 changes to the output of commands and events that deal with
13517 multi-location breakpoints.
13518 * breakpoint.c: Include "mi/mi-out.h".
13519 (print_one_breakpoint): Change output syntax if using MI version
13520 >= 3.
13521 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
13522 New.
13523 (mi_multi_location_breakpoint_output_fixed): New.
13524 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
13525 (mi_cmd_fix_multi_location_breakpoint_output): New.
13526 (mi_multi_location_breakpoint_output_fixed): New.
13527 * mi/mi-cmds.c (mi_cmds): Register command
13528 -fix-multi-location-breakpoint-output.
13529 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
13530 interpreter "mi".
13531
8e5e5494
SM
135322019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
13533
13534 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
13535 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
13536 instantiate mi_ui_out based on interpreter name.
13537 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
13538 * mi/mi-main.c (mi_load_progress): Likewise.
13539
197df35e
JB
135402019-03-12 John Baldwin <jhb@FreeBSD.org>
13541
13542 * NEWS: Combine separate "New targets" sections for 8.3.
13543
8399425f
JB
135442019-03-12 John Baldwin <jhb@FreeBSD.org>
13545
13546 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
13547 (ppcfbsd_init_abi): Install gdbarch
13548 "fetch_tls_load_module_address" and "get_thread_local_address"
13549 methods.
13550
b0f87ed0
JB
135512019-03-12 John Baldwin <jhb@FreeBSD.org>
13552
13553 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
13554 (riscv_fbsd_init_abi): Install gdbarch
13555 "fetch_tls_load_module_address" and "get_thread_local_address"
13556 methods.
13557
ce25aa57
JB
135582019-03-12 John Baldwin <jhb@FreeBSD.org>
13559
13560 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
13561 (i386fbsd_init_abi): Install gdbarch
13562 "fetch_tls_load_module_address" and "get_thread_local_address"
13563 methods.
13564
f5424cfa
JB
135652019-03-12 John Baldwin <jhb@FreeBSD.org>
13566
13567 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
13568 (amd64fbsd_init_abi): Install gdbarch
13569 "fetch_tls_load_module_address" and "get_thread_local_address"
13570 methods.
13571
945f3901
JB
135722019-03-12 John Baldwin <jhb@FreeBSD.org>
13573
13574 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
13575 (struct fbsd_pspace_data): New type.
13576 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
13577 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
13578 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
13579 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
13580 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
13581
ef0bd204
JB
135822019-03-12 John Baldwin <jhb@FreeBSD.org>
13583
13584 * gdbtypes.c (lookup_struct_elt): New function.
13585 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
13586 * gdbtypes.h (struct struct_elt): New type.
13587 (lookup_struct_elt): New prototype.
13588
36c53a02
JB
135892019-03-12 John Baldwin <jhb@FreeBSD.org>
13590
13591 * gdbtypes.c (lookup_struct_elt_type): Update comment and
13592 remove disabled code block.
13593
6e056c81
JB
135942019-03-12 John Baldwin <jhb@FreeBSD.org>
13595
13596 * gdbarch.sh (get_thread_local_address): New method.
13597 * gdbarch.h, gdbarch.c: Regenerate.
13598 * target.c (target_translate_tls_address): Use
13599 gdbarch_get_thread_local_address if present instead of
13600 target::get_thread_local_address.
13601
cd250a18
JB
136022019-03-12 John Baldwin <jhb@FreeBSD.org>
13603
13604 * target.h (target::get_thread_local_address): Update comment.
13605
df22c1e5
JB
136062019-03-12 John Baldwin <jhb@FreeBSD.org>
13607
13608 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
13609 objfile->separate_debug_objfile_backlink if not NULL.
13610
dd6876c9
JB
136112019-03-12 John Baldwin <jhb@FreeBSD.org>
13612
13613 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
13614 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
13615 (amd64bsd_store_inferior_registers): Likewise.
13616 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13617 Enable segment base registers.
13618 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
13619 PT_GETFSBASE and PT_GETGSBASE.
13620 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
13621 PT_SETGSBASE.
13622 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
13623 segment base registers.
13624 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13625
1163a4b7
JB
136262019-03-12 John Baldwin <jhb@FreeBSD.org>
13627
13628 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
13629 Update calls to i386_target_description to add 'segments'
13630 parameter.
13631 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
13632 add segment base registers.
13633 * arch/i386.c (i386_create_target_description): Add 'segments'
13634 parameter to enable segment base registers.
13635 * arch/i386.h (i386_create_target_description): Likewise.
13636 * features/i386/32bit-segments.xml: New file.
13637 * features/i386/32bit-segments.c: Generate.
13638 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
13639 call to i386_target_description to add 'segments' parameter.
13640 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
13641 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
13642 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
13643 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
13644 if feature is present.
13645 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
13646 Add 'segments' parameter to call to i386_target_description.
13647 (i386_target_description): Add 'segments' parameter to enable
13648 segment base registers.
13649 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
13650 to call to i386_target_description.
13651 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
13652 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
13653 Define I386_NUM_REGS.
13654 (i386_target_description): Add 'segments' parameter to enable
13655 segment base registers.
13656
3a350822
EZ
136572019-03-12 Eli Zaretskii <eliz@gnu.org>
13658
13659 PR/24325
13660 * source-cache.c: #undef open and close, to avoid unresolved
13661 externals during linking.
13662
ffdd69cf
TT
136632019-03-12 Tom Tromey <tromey@adacore.com>
13664
13665 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
13666 const. Add initializers.
13667 (_initialize_remote): Don't initialize ptid globals.
13668
ec148c57
PA
136692019-03-12 Pedro Alves <palves@redhat.com>
13670
13671 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
13672
32764270
PA
136732019-03-12 Pedro Alves <palves@redhat.com>
13674
13675 * cp-name-parser.y (main): Remove unused 'len' variable.
13676
17547186
TT
136772019-03-12 Tom Tromey <tromey@adacore.com>
13678
13679 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
13680 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
13681
d3a70e03
TT
136822019-03-12 Tom Tromey <tromey@adacore.com>
13683
13684 * linux-nat.c (iterate_over_lwps): Update.
13685 (stop_callback): Remove parameter.
13686 (stop_wait_callback, detach_callback, resume_set_callback)
13687 (select_singlestep_lwp_callback, set_ignore_sigint)
13688 (status_callback, resumed_callback, resume_clear_callback)
13689 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
13690 data parameter.
13691 (linux_nat_target::detach, linux_nat_target::resume)
13692 (linux_stop_and_wait_all_lwps, select_event_lwp)
13693 (linux_nat_filter_event, linux_nat_wait_1)
13694 (linux_nat_target::kill, linux_nat_target::stop)
13695 (linux_nat_target::stop): Update.
13696 (linux_nat_resume_callback): Change type.
13697 (resume_stopped_resumed_lwps, count_events_callback)
13698 (select_event_lwp_callback): Likewise.
13699 (linux_stop_lwp, linux_nat_stop_lwp): Update.
13700 * arm-linux-nat.c (struct update_registers_data): Remove.
13701 (update_registers_callback): Change type.
13702 (arm_linux_insert_hw_breakpoint1): Update.
13703 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
13704 parameter.
13705 (x86_linux_dr_set_addr): Update.
13706 (x86_linux_dr_set_control): Update.
13707 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
13708 (iterate_over_lwps): Use gdb::function_view.
13709 * nat/aarch64-linux-hw-point.c (struct
13710 aarch64_dr_update_callback_param): Remove.
13711 (debug_reg_change_callback): Change type.
13712 (aarch64_notify_debug_reg_change): Update.
13713 * s390-linux-nat.c (s390_refresh_per_info): Update.
13714
82cb27ff
TT
137152019-03-11 Tom Tromey <tromey@adacore.com>
13716
13717 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
13718 redundant assignment to "this_cu".
13719
568c0683
SM
137202019-03-08 Simon Marchi <simon.marchi@efficios.com>
13721
13722 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
13723
f09ce22d
SM
137242019-03-08 Simon Marchi <simon.marchi@efficios.com>
13725
13726 * gdbtypes.c (rank_one_type_parm_set): New function extracted
13727 from...
13728 (rank_one_type): ... this.
13729
595f96a9
SM
137302019-03-08 Simon Marchi <simon.marchi@efficios.com>
13731
13732 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
13733 from...
13734 (rank_one_type): ... this.
13735
2598a94b
SM
137362019-03-08 Simon Marchi <simon.marchi@efficios.com>
13737
13738 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
13739 from...
13740 (rank_one_type): ... this.
13741
7f17b20d
SM
137422019-03-08 Simon Marchi <simon.marchi@efficios.com>
13743
13744 * gdbtypes.c (rank_one_type_parm_float): New function extracted
13745 from...
13746 (rank_one_type): ... this.
13747
2c509035
SM
137482019-03-08 Simon Marchi <simon.marchi@efficios.com>
13749
13750 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
13751 from...
13752 (rank_one_type): ... this.
13753
0dd322dc
SM
137542019-03-08 Simon Marchi <simon.marchi@efficios.com>
13755
13756 * gdbtypes.c (rank_one_type_parm_range): New function extracted
13757 from...
13758 (rank_one_type): ... this.
13759
41ea4728
SM
137602019-03-08 Simon Marchi <simon.marchi@efficios.com>
13761
13762 * gdbtypes.c (rank_one_type_parm_char): New function extracted
13763 from...
13764 (rank_one_type): ... this.
13765
793cd1d2
SM
137662019-03-08 Simon Marchi <simon.marchi@efficios.com>
13767
13768 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
13769 from...
13770 (rank_one_type): ... this.
13771
34910087
SM
137722019-03-08 Simon Marchi <simon.marchi@efficios.com>
13773
13774 * gdbtypes.c (rank_one_type_parm_int): New function extracted
13775 from...
13776 (rank_one_type): ... this.
13777
f1f832d6
SM
137782019-03-08 Simon Marchi <simon.marchi@efficios.com>
13779
13780 * gdbtypes.c (rank_one_type_parm_func): New function extracted
13781 from...
13782 (rank_one_type): ... this.
13783
b9f4512f
SM
137842019-03-08 Simon Marchi <simon.marchi@efficios.com>
13785
13786 * gdbtypes.c (rank_one_type_parm_array): New function extracted
13787 from...
13788 (rank_one_type): ... this.
13789
9293fc63
SM
137902019-03-08 Simon Marchi <simon.marchi@efficios.com>
13791
13792 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
13793 from...
13794 (rank_one_type): ... this.
13795
e3abbe7e
PW
137962019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13797
13798 * inferior.c (initialize_inferiors): Ensure 'help set/show print
13799 inferior-events' shows the example events.
13800
e4adb939
EZ
138012019-03-08 Eli Zaretskii <eliz@gnu.org>
13802
13803 Support styling on native MS-Windows console
13804
13805 PR/24315
13806 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
13807 on MS-Windows if $TERM is not defined.
13808
13809 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
13810
13811 * posix-hdep.c (gdb_console_fputs):
13812 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
13813 functions.
13814 * ui-file.h (gdb_console_fputs): Add prototype.
13815
13816 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
13817 back to fputs only if the former returns zero.
13818
25629dfd
TT
138192019-03-07 Tom Tromey <tom@tromey.com>
13820
13821 * symmisc.c (print_symbol_bcache_statistics): Update.
13822 (print_objfile_statistics): Update.
13823 * symfile.c (allocate_symtab): Update.
13824 * stabsread.c: Don't include bcache.h.
13825 * psymtab.h (struct psymbol_bcache): Don't declare.
13826 (class psymtab_storage) <psymbol_cache>: Now a bcache.
13827 (psymbol_bcache_init, psymbol_bcache_free)
13828 (psymbol_bcache_get_bcache): Don't declare.
13829 * psymtab.c (struct psymbol_bcache): Remove.
13830 (psymtab_storage::psymtab_storage): Update.
13831 (psymtab_storage::~psymtab_storage): Update.
13832 (psymbol_bcache_init, psymbol_bcache_free)
13833 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
13834 (add_psymbol_to_bcache): Update.
13835 (allocate_psymtab): Update.
13836 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13837 macro_cache>: No longer pointers.
13838 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
13839 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
13840 * macrotab.c (macro_bcache): Update.
13841 * macroexp.c: Don't include bcache.h.
13842 * gdbtypes.c (check_types_worklist): Update.
13843 (types_deeply_equal): Remove TRY/CATCH. Update.
13844 * elfread.c (elf_symtab_read): Update.
13845 * dwarf2read.c: Don't include bcache.h.
13846 * buildsym.c (buildsym_compunit::get_macro_table): Update.
13847 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
13848 (print_bcache_statistics, bcache_memory_used): Don't declare.
13849 (struct bcache): Move from bcache.c. Add constructor, destructor,
13850 methods. Rename all data members.
13851 * bcache.c (struct bcache): Move to bcache.h.
13852 (bcache::expand_hash_table): Rename from expand_hash_table.
13853 (bcache): Remove.
13854 (bcache::insert): Rename from bcache_full.
13855 (bcache::compare): Rename from bcache_compare.
13856 (bcache_xmalloc): Remove.
13857 (bcache::~bcache): Rename from bcache_xfree.
13858 (bcache::print_statistics): Rename from print_bcache_statistics.
13859 (bcache::memory_used): Rename from bcache_memory_used.
13860
fe726667
PA
138612019-03-07 Pedro Alves <palves@redhat.com>
13862
13863 * infrun.c (normal_stop): Also check for
13864 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
13865
7584bb30
AB
138662019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
13867
13868 * f-lang.c (value_from_host_double): Moved to...
13869 * value.c (value_from_host_double): ...here.
13870 * value.h (value_from_host_double): Declare.
13871 * guile/scm-math.c (vlscm_convert_typed_number): Use
13872 value_from_host_double.
13873 (vlscm_convert_number): Likewise.
13874 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
13875 * python/py-value.c (convert_value_from_python): Likewise.
13876
a7b1986e
TT
138772019-03-06 Tom Tromey <tom@tromey.com>
13878
13879 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
13880
0ccf4211
TT
138812019-03-06 Tom Tromey <tom@tromey.com>
13882
13883 * utils.h (free_current_contents): Don't declare.
13884 * utils.c (free_current_contents): Remove.
13885
fe7b42e5
TT
138862019-03-06 Tom Tromey <tom@tromey.com>
13887
13888 * top.c (quit_force): Update.
13889 * main.c (captured_command_loop): Update.
13890 * common/new-op.c (operator new): Update.
13891 * common/common-exceptions.c (struct catcher)
13892 <save_cleanup_chain>: Remove member.
13893 (exceptions_state_mc_init): Update.
13894 (exception_try_scope_entry): Return nullptr.
13895 (exception_try_scope_exit, exception_rethrow)
13896 (throw_exception_sjlj, throw_exception_cxx): Update.
13897 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
13898 (all_cleanups, do_cleanups, discard_cleanups)
13899 (discard_final_cleanups, save_cleanups, save_final_cleanups)
13900 (restore_cleanups, restore_final_cleanups): Don't declare.
13901 (do_final_cleanups): Remove parameter.
13902 * common/cleanups.c (cleanup_chain, make_cleanup)
13903 (make_cleanup_dtor, all_cleanups, do_cleanups)
13904 (discard_my_cleanups, discard_cleanups)
13905 (discard_final_cleanups, save_my_cleanups, save_cleanups)
13906 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
13907 (null_cleanup): Remove.
13908 (do_final_cleanups): Remove parameter.
13909
c6321f19
TT
139102019-03-06 Tom Tromey <tom@tromey.com>
13911
13912 * remote.c (remote_target::remote_parse_stop_reply): Use
13913 unique_xmalloc_ptr.
13914
61b30099
TT
139152019-03-06 Tom Tromey <tom@tromey.com>
13916
13917 * stabsread.c (struct stabs_field_info): Rename from field_info.
13918 <list, fnlist>: Add initializers.
13919 <obstack>: New member.
13920 (read_member_functions, read_struct_fields, read_baseclasses):
13921 Allocate on obstack. Don't use cleanups.
13922 (read_one_struct_field, read_member_functions, read_struct_fields)
13923 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
13924 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
13925 (read_struct_type): Update.
13926
6cceac94
TT
139272019-03-06 Tom Tromey <tom@tromey.com>
13928
13929 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
13930 * common/filestuff.h (make_cleanup_close): Don't declare.
13931 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
13932 Remove.
13933
72412762
TT
139342019-03-06 Tom Tromey <tom@tromey.com>
13935
13936 * solib-aix.c: Use make_scope_exit.
13937
2b6ff1c0
TT
139382019-03-06 Tom Tromey <tom@tromey.com>
13939
13940 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
13941 Use make_scope_exit.
13942
d01c5877
TT
139432019-03-06 Tom Tromey <tom@tromey.com>
13944
13945 * solib-svr4.c (disable_probes_interface): Remove parameter.
13946 (svr4_handle_solib_event): Use make_scope_exit.
13947
32603266
TT
139482019-03-06 Tom Tromey <tom@tromey.com>
13949
13950 * remote.c (struct stop_reply_deleter): Remove.
13951 (stop_reply_up): Update.
13952 (struct stop_reply): Derive from notif_event. Don't typedef.
13953 <regcache>: Now a std::vector.
13954 (stop_reply_xfree): Remove.
13955 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
13956 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
13957 (remote_target::discard_pending_stop_replies): Use delete.
13958 (remote_target::remote_parse_stop_reply): Update.
13959 (remote_target::process_stop_reply): Update.
13960 * remote-notif.h (struct notif_event): Add virtual destructor.
13961 Remove "dtr" member.
13962 (struct notif_client) <alloc_event>: Return a unique_ptr.
13963 (notif_event_xfree): Don't declare.
13964 (notif_event_up): New typedef.
13965 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
13966 (notif_event_xfree, do_notif_event_xfree): Remove.
13967 (remote_notif_state_xfree): Update.
13968
9799571e
TT
139692019-03-06 Tom Tromey <tom@tromey.com>
13970
13971 * infrun.c (displaced_step_clear_cleanup): Now a
13972 forward_scope_exit type.
13973 (displaced_step_prepare_throw): Update.
13974 (displaced_step_fixup): Update.
13975
09e3c4ca
TT
139762019-03-06 Tom Tromey <tom@tromey.com>
13977
13978 * inferior.h (class inferior): Update comment.
13979 * gdbthread.h (class thread_info): Update comment.
13980
e2a03548
TT
139812019-03-06 Joel Brobecker <brobecker@adacore.com>
13982 Tom Tromey <tom@tromey.com>
13983
13984 * stabsread.h (struct stab_section_list): Remove.
13985 (coffstab_build_psymtabs): Update.
13986 * dbxread.c (symbuf_sections): Now a std::vector.
13987 (sect_idx): New global.
13988 (fill_symbuf): Update.
13989 (coffstab_build_psymtabs): Change type of stabsects parameter.
13990 Update.
13991 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
13992 std::vector.
13993 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
13994 (coff_locate_sections): Update.
13995 (coff_symfile_read): Remove cleanups. Update.
13996 (init_stringtab): Add storage parameter.
13997 (free_stringtab, free_stringtab_cleanup): Remove.
13998 (init_lineno): Add storage parameter.
13999 (free_linetab, free_linetab_cleanup): Remove.
14000
b7e60d85
PA
140012019-03-06 Pedro Alves <palves@redhat.com>
14002
14003 * linux-fork.c (fork_info::clobber_regs): Delete.
14004 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
14005 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
14006 comment. Adjust.
14007 (scoped_switch_fork_info::scoped_switch_fork_info)
14008 (checkpoint_command, linux_fork_context): Adjust
14009 fork_save_infrun_state calls.
14010
e52c971f
PA
140112019-03-06 Pedro Alves <palves@redhat.com>
14012
14013 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
14014 (inf_has_multiple_threads): Return 'bool' and rewrite using
14015 inferior_info::threads().
14016
06974e6c
PA
140172019-03-06 Pedro Alves <palves@redhat.com>
14018
14019 * linux-fork.c: Include <list>.
14020 (fork_list): Now a std::list instance.
14021 (fork_info): Add ctor, dtor, and in-class initialize all fields.
14022 (forks_exist_p, find_last_fork): Adjust.
14023 (new_fork): Delete.
14024 (one_fork_p): New.
14025 (add_fork): Adjust.
14026 (free_fork): Delete, folded into fork_info::~fork_info().
14027 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
14028 Adjust.
14029 (init_fork_list): Delete.
14030 (linux_fork_killall, linux_fork_mourn_inferior)
14031 (linux_fork_detach, info_checkpoints_command): Adjust.
14032 (_initialize_linux_fork): No longer call init_fork_list.
14033
72f31aea
PA
140342019-03-06 Pedro Alves <palves@redhat.com>
14035
14036 * linux-fork.c (new_fork): New, split out of ...
14037 (add_fork): ... this. Return void. Move "first fork" special
14038 case from here, to ...
14039 (checkpoint_command): ... here.
14040 * linux-linux.h (add_fork): Return void.
14041
efbecbc1
AB
140422019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14043
14044 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
14045
0841c79a
AB
140462019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14047 Chris January <chris.january@arm.com>
14048 David Lecomber <david.lecomber@arm.com>
14049
14050 * f-exp.y: New token, UNOP_INTRINSIC.
14051 (exp): New pattern using UNOP_INTRINSIC token.
14052 (f77_keywords): Add 'abs' keyword.
14053 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
14054 (value_from_host_double): New function.
14055 (evaluate_subexp_f): Support UNOP_ABS.
14056
4a270568
AB
140572019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14058
14059 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
14060 types.
14061
067630bd
AB
140622019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14063
14064 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
14065 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
14066 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
14067
3be47f7a
AB
140682019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14069
14070 * f-exp.y (convert_to_kind_type): Handle more type kinds.
14071
4d00f5d8
AB
140722019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14073 Chris January <chris.january@arm.com>
14074
14075 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
14076 * f-exp.y: Define 'KIND' token.
14077 (exp): New pattern for KIND expressions.
14078 (ptype): Handle types with a kind extension.
14079 (direct_abs_decl): Extend to spot kind extensions.
14080 (f77_keywords): Add 'kind' to the list.
14081 (push_kind_type): New function.
14082 (convert_to_kind_type): New function.
14083 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
14084 * parse.c (operator_length_standard): Likewise.
14085 * parser-defs.h (enum type_pieces): Add tp_kind.
14086 * std-operator.def: Add UNOP_KIND.
14087
e454224f
AB
140882019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14089
14090 * f-exp.y (f_parse): Set yydebug.
14091
9dad4a58
AB
140922019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14093
14094 * f-lang.c (evaluate_subexp_f): New function.
14095 (exp_descriptor_f): New global.
14096 (f_language_defn): Use exp_descriptor_f instead of
14097 exp_descriptor_standard.
14098
c8f91604
AB
140992019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14100
14101 * f-exp.y (struct token): Add comments.
14102 (dot_ops): Remove uppercase versions and the end marker.
14103 (f77_keywords): Likewise.
14104 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
14105 entries in the dot_ops array are case insensitive, and use
14106 strncasecmp to compare strings. Also some whitespace cleanup in
14107 this area. Similar for the f77_keywords array, except entries in
14108 this list might be case sensitive.
14109
dd9f2c76
AB
141102019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
14111
14112 * f-exp.y (struct f77_boolean_val): Add comments.
14113 (boolean_values): Remove uppercase versions, and end marker.
14114 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
14115 and use strncasecmp to achieve case insensitivity. Additionally,
14116 perform whitespace cleanup around this code.
14117
67a3048c
TT
141182019-03-06 Tom Tromey <tromey@adacore.com>
14119
14120 * remote-sim.c (gdbsim_target_open): Use result of
14121 gdb_argv::release.
14122
aa3cfbda
RB
141232019-03-06 Richard Bunt <richard.bunt@arm.com>
14124 Dirk Schubert <dirk.schubert@arm.com>
14125 Chris January <chris.january@arm.com>
14126
14127 * eval.c (evaluate_subexp_standard): Call Fortran argument
14128 wrapping logic.
14129 * f-lang.c (struct value): A value which can be passed into a
14130 Fortran function call.
14131 (fortran_argument_convert): Wrap Fortran arguments in a pointer
14132 where appropriate.
14133 (struct type): Value ready for a Fortran function call.
14134 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
14135 is needed.
14136 * f-lang.h (fortran_argument_convert): Declaration.
14137 (fortran_preserve_arg_pointer): Declaration.
14138 * infcall.c (value_arg_coerce): Call Fortran argument logic.
14139
ea38e5df
TT
141402019-03-05 Tom Tromey <tromey@adacore.com>
14141
14142 * python/py-prettyprint.c (print_string_repr): Remove #if.
14143 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
14144
06b5b831
TT
141452019-03-05 Tom Tromey <tromey@adacore.com>
14146
14147 * target.c (the_dummy_target): Move later. Change type to
14148 "dummy_target".
14149 (initialize_targets): Don't initialize the_dummy_target.
14150
edbd9e45
TT
141512019-03-05 Tom Tromey <tromey@adacore.com>
14152
14153 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
14154 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
14155
c119e040
TT
141562019-03-05 Tom Tromey <tromey@adacore.com>
14157
14158 * windows-nat.c (windows_nat_target::attach)
14159 (windows_nat_target::detach): Don't call gdb_flush.
14160 * valprint.c (generic_val_print, val_print, val_print_string):
14161 Don't call gdb_flush.
14162 * utils.c (defaulted_query): Don't call gdb_flush.
14163 * typeprint.c (print_type_scalar): Don't call gdb_flush.
14164 * target.c (target_announce_detach): Don't call gdb_flush.
14165 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
14166 * remote.c (extended_remote_target::attach): Don't call
14167 gdb_flush.
14168 * procfs.c (procfs_target::detach): Don't call gdb_flush.
14169 * printcmd.c (do_examine): Don't call gdb_flush.
14170 (info_display_command): Don't call gdb_flush.
14171 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
14172 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
14173 * memattr.c (info_mem_command): Don't call gdb_flush.
14174 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
14175 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
14176 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
14177 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
14178 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
14179 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
14180 (gnu_nat_target::detach): Don't call gdb_flush.
14181 * f-valprint.c (f_val_print): Don't call gdb_flush.
14182 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
14183 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
14184 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
14185 gdb_flush.
14186 * c-valprint.c (c_val_print): Don't call gdb_flush.
14187 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
14188
895dafa6
TT
141892019-03-05 Tom Tromey <tromey@adacore.com>
14190
14191 * varobj.c (update_dynamic_varobj_children): Update.
14192 (install_default_visualizer): Use reset, not release.
14193 * value.c (set_internalvar): Update.
14194 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
14195 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
14196 ATTRIBUTE_UNUSED_RESULT.
14197
88a774b9
TT
141982019-03-05 Tom Tromey <tromey@adacore.com>
14199
14200 * remote.c (class scoped_remote_fd) <release>: Add
14201 ATTRIBUTE_UNUSED_RESULT.
14202
4e4a8b93
TT
142032019-03-05 Tom Tromey <tromey@adacore.com>
14204
14205 * macroexp.c (struct macro_buffer) <release>: Add
14206 ATTRIBUTE_UNUSED_RESULT.
14207
083eef1f
TT
142082019-03-05 Tom Tromey <tromey@adacore.com>
14209
14210 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
14211 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
14212 ATTRIBUTE_UNUSED_RESULT.
14213
3cabd438
TT
142142019-03-05 Tom Tromey <tromey@adacore.com>
14215
14216 * common/scoped_fd.h (class scoped_fd) <release>: Add
14217 ATTRIBUTE_UNUSED_RESULT.
14218
41e3300a
TT
142192019-03-05 Tom Tromey <tromey@adacore.com>
14220
14221 * parser-defs.h (struct parser_state) <release>: Add
14222 ATTRIBUTE_UNUSED_RESULT.
14223
18cb7c9f
TT
142242019-03-05 Tom Tromey <tromey@adacore.com>
14225
14226 * utils.h (class gdb_argv) <release>: Add
14227 ATTRIBUTE_UNUSED_RESULT.
14228 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
14229
41fa577f
EZ
142302019-03-02 Eli Zaretskii <eliz@gnu.org>
14231
a6a4b2c6
EZ
14232 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
14233 for-loop range, to avoid compiler warnings.
14234
14235 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
14236 avoid compiler warnings about unused variables.
14237
742a7df5
EZ
14238 * NEWS: Mention end of support for native debugging on MS-Windows
14239 before XP.
14240
41fa577f
EZ
14241 PR gdb/24292
14242 * common/netstuff.c:
14243 * gdbserver/gdbreplay.c
14244 * gdbserver/remote-utils.c:
14245 * ser-tcp.c:
14246 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
14247 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
14248 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
14249 'getaddrinfo' and 'freeaddrinfo' were not available before
14250 Windows XP, and mingw.org's MinGW headers by default define
14251 _WIN32_WINNT to 0x500.
14252
827f438f
GB
142532019-03-01 Gary Benson <gbenson@redhat.com>
14254
14255 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
14256
92137da0
RO
142572019-02-28 Brian Vandenberg <phantall@gmail.com>
14258 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14259
14260 PR gdb/8527
14261 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
14262 set_sigint_trap, clear_sigint_trap.
14263
799efbe8
PW
142642019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14265
14266 * target.c (target_detach): Clear the regcache and the
14267 frame cache.
14268
8ed25214
PA
142692019-02-27 Pedro Alves <palves@redhat.com>
14270
14271 * utils.c (set_screen_size): When we cap the height/width sizes,
14272 tweak the corresponding command variable to show "unlimited":
14273
23031e31
SJ
142742019-02-27 Saagar Jha <saagar@saagarjha.com>
14275 Pedro Alves <palves@redhat.com>
14276
14277 * utils.c (set_screen_size): Reduce "infinite" rows and columns
14278 before calling rl_set_screen_size.
14279
6c28e44a
TT
142802019-02-27 Tom Tromey <tromey@adacore.com>
14281
14282 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
14283 define.
14284 * python/py-value.c: Remove Python 2.4 workaround.
14285 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
14286 workaround.
14287 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
14288 Python 2.4 workaround.
14289 * python/python-internal.h: Remove Python 2.4 comment.
14290 (Py_ssize_t): Don't define.
14291 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
14292 (gdb_Py_DECREF): Remove Python 2.4 workaround.
14293 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
14294 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
14295 * python/python.c (do_start_initialization): Remove Python 2.4
14296 workaround.
14297 * python/py-prettyprint.c (class dummy_python_frame): Remove.
14298 (print_children): Remove Python 2.4 workaround.
14299 * python/py-inferior.c (buffer_procs): Remove Python 2.4
14300 workaround.
14301 (CHARBUFFERPROC_NAME): Remove.
14302 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
14303 Python 2.4 workaround.
14304
2c3fc25d 143052019-02-27 Kevin Buettner <kevinb@redhat.com>
799efbe8 14306
2c3fc25d
KB
14307 * NEWS: Note minimum Python version.
14308
6ca62222
KB
143092019-02-27 Kevin Buettner <kevinb@redhat.com>
14310
14311 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
14312 code from these functions. Remove corresponding ifdefs. Use
14313 Py_buffer_up instead of explicit calls to PyBuffer_Release.
14314 Remove gotos and target of gotos.
14315 (infpy_search_memory): Likewise.
14316
f4bc7d2c
AB
143172019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14318
14319 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
14320 (hppa_gdbarch_init): Don't register deleted functions with
14321 gdbarch.
14322
9734a586
AB
143232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14324
14325 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
14326 (h8300_unwind_sp): Delete.
14327 (h8300_dummy_id): Delete.
14328 (h8300_gdbarch_init): Don't register deleted functions with
14329 gdbarch.
14330
68b867f3
AB
143312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14332
14333 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
14334 (ft32_unwind_pc): Delete.
14335 (ft32_unwind_sp): Delete.
14336 (ft32_gdbarch_init): Don't register deleted functions with
14337 gdbarch.
14338
2fbe7ad0
AB
143392019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14340
14341 * gdb/frv-tdep.c (frv_dummy_id): Delete.
14342 (frv_unwind_pc): Delete.
14343 (frv_unwind_sp): Delete.
14344 (frv_gdbarch_init): Don't register deleted functions with
14345 gdbarch.
14346
76055cbe
AB
143472019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14348
14349 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
14350 (riscv_unwind_pc): Delete.
14351 (riscv_unwind_sp): Delete.
14352 (riscv_gdbarch_init): Don't register deleted functions with
14353 gdbarch.
14354
4133e5a1
AB
143552019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14356
14357 * gdb/csky-tdep.c (csky_dummy_id): Delete.
14358 (csky_unwind_pc): Delete.
14359 (csky_unwind_sp): Delete.
14360 (csky_gdbarch_init): Don't register deleted functions with
14361 gdbarch.
14362
8010f576
AB
143632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14364
14365 * gdb/cris-tdep.c (cris_dummy_id): Delete.
14366 (cris_unwind_pc): Delete.
14367 (cris_unwind_sp): Delete.
14368 (cris_gdbarch_init): Don't register deleted functions with
14369 gdbarch.
14370
b56bf084
AB
143712019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14372
14373 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
14374 (bfin_unwind_pc): Delete.
14375 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
14376
a19a650f
AB
143772019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14378
14379 * gdb/arm-tdep.c (arm_dummy_id): Delete.
14380 (arm_unwind_pc): Delete.
14381 (arm_unwind_sp): Delete.
14382 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
14383
f8278c3c
AB
143842019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14385
14386 * gdb/arc-tdep.c (arc_dummy_id): Delete.
14387 (arc_unwind_pc): Delete.
14388 (arc_unwind_sp): Delete.
14389 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
14390
480e46cf
AB
143912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14392
14393 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
14394 (alpha_unwind_pc): Delete.
14395 (alpha_gdbarch_init): Don't register deleted functions with
14396 gdbarch.
14397
7a995095
AB
143982019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14399
14400 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
14401 (aarch64_unwind_pc): Delete.
14402 (aarch64_unwind_sp): Delete.
14403 (aarch64_gdbarch_init): Don't register deleted functions with
14404 gdbarch.
14405
bf9a735e
AB
144062019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14407
14408 * gdbtypes.c (type_align): Don't consider static members when
14409 computing structure alignment.
14410
5561fc30
AB
144112019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14412
14413 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
14414 return 0 for other types.
14415 * arch-utils.c (default_type_align): Always return 0.
14416 * gdbarch.h: Regenerate.
14417 * gdbarch.sh (type_align): Extend comment.
14418 * gdbtypes.c (type_align): Add additional comments, always call
14419 gdbarch_type_align before applying the default rules.
14420 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
14421 generic code will then apply a suitable default.
14422 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
14423 types, return 0 for other types.
14424
9335e75a
JB
144252019-02-27 Joel Brobecker <brobecker@adacore.com>
14426
14427 * NEWS: Create a new section for the next release branch.
14428 Rename the section of the current branch, now that it has
14429 been cut.
14430
3d34d8de
JB
144312019-02-27 Joel Brobecker <brobecker@adacore.com>
14432
14433 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
14434 * version.in: Bump version to 8.3.50.DATE-git.
14435
143420fb
SM
144362019-02-26 Simon Marchi <simon.marchi@efficios.com>
14437
14438 * aix-thread.c (ptid_cmp): Remove unused variable.
14439 (get_signaled_thread): Likewise.
14440 (store_regs_user_thread): Likewise.
14441 (store_regs_kernel_thread): Likewise.
14442 (fetch_regs_kernel_thread): Remove shadowed variable.
14443
172fb711
AB
144442019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
14445
14446 * features/riscv/32bit-cpu.xml: Add register numbers.
14447 * features/riscv/32bit-fpu.c: Regenerate.
14448 * features/riscv/32bit-fpu.xml: Add register numbers.
14449 * features/riscv/64bit-cpu.xml: Add register numbers.
14450 * features/riscv/64bit-fpu.c: Regenerate.
14451 * features/riscv/64bit-fpu.xml: Add register numbers.
14452
26c89782
KB
144532019-02-26 Kevin Buettner <kevinb@redhat.com>
14454
af54ade9 14455 * NEWS: Mention two argument form of gdb.Value constructor.
fe07eca5
KB
14456 * python/py-value.c (convert_buffer_and_type_to_value): New
14457 function.
14458 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
14459 Add support for handling an optional second argument. Call
14460 convert_buffer_and_type_to_value as appropriate.
26c89782
KB
14461 * python/python-internal.h (Py_buffer_deleter): New struct.
14462 (Py_buffer_up): New typedef.
14463
0f58c9e8
JB
144642019-02-25 John Baldwin <jhb@FreeBSD.org>
14465
14466 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
14467 instead of releasing ownership.
14468
0a0f4c01
JR
144692019-02-25 Jordan Rupprecht <rupprecht@google.com>
14470
14471 * dwarf2read.c (open_and_init_dwp_file): Call
14472 elf_numsections instead of bfd_count_sections to initialize
14473 dwp_file->num_sections.
14474
cd5a152c
TT
144752019-02-25 Tom Tromey <tromey@adacore.com>
14476
14477 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
14478
8a6a8513
SDJ
144792019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
14480
14481 * gcore.in: Add '--readnever' option when invoking GDB.
14482
04dcda9c
SM
144832019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14484
14485 * MAINTAINERS: Update my email address.
14486
07bc701d
SM
144872019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
14488
14489 * build-id.c (build_id_to_debug_bfd_1): New function.
14490 (build_id_to_debug_bfd): Look for separate debug file in
14491 sysroot.
14492
c6f4a5d0
AB
144932019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
14494
14495 * gdbarch.sh: Update the copyright year range that is placed into
14496 generated files.
14497
9600246d
KS
144982019-02-22 Keith Seitz <keiths@redhat.com>
14499
14500 PR symtab/23853
14501 * linespec.c (create_sals_line_offset): Search for the default
14502 symtab's filename instead of its fullname.
14503
7557a514
AH
145042019-02-21 Alan Hayward <alan.hayward@arm.com>
14505
14506 * NEWS: Update style defaults.
14507
ee2bcb0c
AH
145082019-02-21 Alan Hayward <alan.hayward@arm.com>
14509
14510 * main.c (captured_main_1): Disable styling in batch mode.
14511
0c95f9ed
TT
145122019-02-20 Tom Tromey <tom@tromey.com>
14513
14514 * symtab.c (symtab_symbol_info): Fix typos.
14515
c763b894
TT
145162019-02-20 Tom Tromey <tromey@adacore.com>
14517
14518 * findcmd.c (_initialize_mem_search): Use upper case for
14519 metasyntactic variables.
14520
0ef8a082
AH
145212019-02-20 Alan Hayward <alan.hayward@arm.com>
14522
14523 * aarch64-tdep.c (aarch64_add_reggroups): New function.
14524 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
14525
6caa91b6
SM
145262019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
14527
14528 * top.h (source_file_name): Change to std::string.
14529 * top.c (source_file_name): Likewise.
14530 (command_line_input): Adjust.
14531 * cli/cli-script.c (script_from_file): Adjust.
14532
98814c6c
TT
145332019-02-19 Tom Tromey <tromey@adacore.com>
14534
14535 * ravenscar-thread.c
14536 (ravenscar_thread_target::update_thread_list): Don't call
14537 ada_build_task_list.
14538 * ada-lang.h (ada_build_task_list): Don't declare.
14539 * ada-tasks.c (struct ada_tasks_inferior_data)
14540 <task_list_valid_p>: Now bool.
14541 (read_known_tasks, ada_task_list_changed)
14542 (ada_tasks_invalidate_inferior_data): Update.
14543 (read_known_tasks_array): Return bool.
14544 (read_known_tasks_list): Likewise.
14545 (read_known_tasks): Return void.
14546 (ada_build_task_list): Now static.
14547
70cd633e
AB
145482019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
14549
14550 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
14551 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
14552
040b3e95
PW
145532019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14554
14555 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
14556 variant for ada_tasks_pspace_data_handle and
14557 ada_tasks_inferior_data_handle.
14558 (ada_tasks_pspace_data_cleanup): New function.
14559 (ada_tasks_inferior_data_cleanup): New function.
14560
9409233b
TT
145612019-02-17 Tom Tromey <tom@tromey.com>
14562
14563 * macrotab.h (macro_source_fullname): Return a std::string.
14564 * macrotab.c (macro_include, check_for_redefinition)
14565 (macro_undef, macro_lookup_definition, foreach_macro)
14566 (foreach_macro_in_scope): Update.
14567 (macro_source_fullname): Return a std::string.
14568 * macrocmd.c (show_pp_source_pos): Update.
14569
6506371f
TT
145702019-02-17 Tom Tromey <tom@tromey.com>
14571
14572 * macrocmd.c (show_pp_source_pos): Style the file names.
14573
0c820d67
TT
145742019-02-17 Tom Tromey <tom@tromey.com>
14575
14576 PR tui/24197:
14577 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
14578
a0087920
TT
145792019-02-17 Tom Tromey <tom@tromey.com>
14580
14581 * ada-lang.c (user_select_syms): Use filtered printing.
14582 * utils.c (wrap_style): New global.
14583 (desired_style): Remove.
14584 (emit_style_escape): Add stream parameter.
14585 (set_output_style, reset_terminal_style, prompt_for_continue):
14586 Update.
14587 (flush_wrap_buffer): Only flush gdb_stdout.
14588 (wrap_here): Set wrap_style.
14589 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
14590 treat escape sequences as a character. Change when wrap buffer is
14591 flushed.
14592 (fputs_styled): Do not set the output style when the default is
14593 requested.
14594 * ui-style.h (struct ui_file_style) <is_default>: New method.
14595 * source.c (print_source_lines_base): Emit escape sequences in one
14596 piece.
14597
75ba10dc
JB
145982019-02-17 Joel Brobecker <brobecker@adacore.com>
14599
14600 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
14601 integers and enumeration types.
14602
a2cd4f14
JB
146032019-02-17 Joel Brobecker <brobecker@adacore.com>
14604
14605 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
14606 instead of lookup_symbol_in_language
14607 (do_exact_match): New function.
14608 (ada_get_symbol_name_matcher): Return do_exact_match when
14609 doing a verbatim match.
14610
485b851b
TT
146112019-02-15 Tom Tromey <tromey@adacore.com>
14612
14613 * ravenscar-thread.c (ravenscar_thread_target::resume)
14614 (ravenscar_thread_target::wait): Special case wildcard requests.
14615
0b790b1e
TT
146162019-02-15 Tom Tromey <tromey@adacore.com>
14617
14618 * ravenscar-thread.c (base_ptid): Remove.
14619 (struct ravenscar_thread_target) <close>: New method.
14620 <m_base_ptid>: New member.
14621 <update_inferior_ptid, active_task, task_is_currently_active,
14622 runtime_initialized>: Declare methods.
14623 <ravenscar_thread_target>: Add constructor.
14624 (ravenscar_thread_target::task_is_currently_active)
14625 (ravenscar_thread_target::update_inferior_ptid)
14626 (ravenscar_runtime_initialized): Rename. Now methods.
14627 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
14628 (ravenscar_thread_target::update_thread_list): Update.
14629 (ravenscar_thread_target::active_task): Now method.
14630 (ravenscar_thread_target::store_registers)
14631 (ravenscar_thread_target::prepare_to_store)
14632 (ravenscar_thread_target::prepare_to_store)
14633 (ravenscar_thread_target::mourn_inferior): Update.
14634 (ravenscar_inferior_created): Use "new" to create target.
14635 (ravenscar_thread_target::get_ada_task_ptid): Update.
14636 (_initialize_ravenscar): Don't initialize base_ptid.
14637 (ravenscar_ops): Remove global.
14638
dea57a62
TT
146392019-02-15 Tom Tromey <tromey@adacore.com>
14640
14641 * target.h (push_target): Declare new overload.
14642 * target.c (push_target): New overload, taking an rvalue reference.
14643 * remote.c (remote_target::open_1): Use push_target overload.
14644 * corelow.c (core_target_open): Use push_target overload.
14645
989f3c58
TT
146462019-02-15 Tom Tromey <tromey@adacore.com>
14647
14648 * ravenscar-thread.c (is_ravenscar_task)
14649 (ravenscar_task_is_currently_active): Return bool.
14650 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
14651 (_initialize_ravenscar): Remove "(void)".
14652 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
14653 Return bool.
14654
6cbcc006
TT
146552019-02-15 Tom Tromey <tromey@adacore.com>
14656
14657 * ravenscar-thread.c (ravenscar_runtime_initializer)
14658 (has_ravenscar_runtime, get_running_thread_id)
14659 (ravenscar_thread_target::resume): Fix indentation.
14660
7657f14d
TT
146612019-02-15 Tom Tromey <tromey@adacore.com>
14662
14663 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
14664 from ravenscar_arch_ops.
14665 (sparc_ravenscar_ops::fetch_registers)
14666 (sparc_ravenscar_ops::store_registers): Now methods.
14667 (sparc_ravenscar_prepare_to_store): Remove.
14668 (sparc_ravenscar_ops): Redefine.
14669 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
14670 methods and destructor. Remove members.
14671 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
14672 (ravenscar_thread_target::store_registers)
14673 (ravenscar_thread_target::prepare_to_store): Update.
14674 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
14675 Remove.
14676 (struct ppc_ravenscar_powerpc_ops): Derive from
14677 ravenscar_arch_ops.
14678 (ppc_ravenscar_powerpc_ops::fetch_registers)
14679 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
14680 (ppc_ravenscar_powerpc_ops): Redefine.
14681 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
14682 (ppc_ravenscar_e500_ops::fetch_registers)
14683 (ppc_ravenscar_e500_ops::store_registers): Now methods.
14684 (ppc_ravenscar_e500_ops): Redefine.
14685 * aarch64-ravenscar-thread.c
14686 (aarch64_ravenscar_generic_prepare_to_store): Remove.
14687 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
14688 (aarch64_ravenscar_fetch_registers)
14689 (aarch64_ravenscar_store_registers): Now methods.
14690 (aarch64_ravenscar_ops): Redefine.
14691
5b6ea500
TT
146922019-02-15 Tom Tromey <tromey@adacore.com>
14693
14694 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
14695 (ravenscar_thread_target::stopped_by_hw_breakpoint)
14696 (ravenscar_thread_target::stopped_by_watchpoint)
14697 (ravenscar_thread_target::stopped_data_address)
14698 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
14699
e397fd39
TT
147002019-02-15 Tom Tromey <tromey@adacore.com>
14701
14702 * ravenscar-thread.c: Fix some typos.
14703
cc12f4a8
TT
147042019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14705 Tom Tromey <tromey@adacore.com>
14706
14707 * ada-lang.c (ada_exception_sal): Change addr_string to a
14708 std::string.
14709 (create_ada_exception_catchpoint): Update.
14710
5f486660
TT
147112019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14712 Tom Tromey <tromey@adacore.com>
14713
14714 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
14715 (bp_location_ops): Remove.
14716 (base_breakpoint_allocate_location): Update.
14717 (free_bp_location): Update.
14718 * ada-lang.c (class ada_catchpoint_location)
14719 <ada_catchpoint_location>: Remove ops parameter.
14720 (ada_catchpoint_location_dtor): Remove.
14721 (ada_catchpoint_location_ops): Remove.
14722 (allocate_location_exception): Update.
14723 * breakpoint.h (struct bp_location_ops): Remove.
14724 (class bp_location) <bp_location>: Remove bp_location_ops
14725 parameter.
14726 <~bp_location>: Add destructor.
14727 <ops>: Remove.
14728
b671c7fb
TS
147292019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14730 Pedro Alves <palves@redhat.com>
14731
14732 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
14733 'PATH_MAX'.
14734
8071c5ce
DM
147352019-02-14 David Michael <fedora.dm0@gmail.com>
14736 Samuel Thibault <samuel.thibault@gnu.org>
14737 Thomas Schwinge <thomas@codesourcery.com>
14738
14739 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
14740 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
14741
b1041ae0
TS
147422019-02-14 Thomas Schwinge <thomas@codesourcery.com>
14743
924514e1
TS
14744 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
14745 (check_empty): Use "const char *".
14746
c29ee8d4
TS
14747 * gnu-nat.c (gnu_nat_target::detach): Instead of
14748 'detach_inferior (pid)' call
14749 'detach_inferior (find_inferior_pid (pid))'.
14750
6c6ef69f
TS
14751 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
14752 'nat/fork-inferior.o'.
14753 * gnu-nat.c: #include "nat/fork-inferior.h".
14754
2d0a338c
TS
14755 * gnu-nat.c (gnu_nat_target::detach): Instead of
14756 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
14757 * gnu-nat.h: #include "inf-child.h".
14758 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
14759 'i386_gnu_nat_target::fetch_registers'.
14760 (gnu_store_registers): Rename/move to
14761 'i386_gnu_nat_target::store_registers'.
14762
cabb5f06
TS
14763 * config/i386/nm-i386gnu.h: Don't "#include" any files.
14764 * gnu-nat.h (mach_thread_info): New function.
14765 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
14766
b1041ae0
TS
14767 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
14768
2988d01e
KF
147692019-02-14 Frederic Konrad <konrad@adacore.com>
14770
14771 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
14772
c559d709
JB
147732019-02-14 Joel Brobecker <brobecker@adacore.com>
14774
14775 * windows-nat.c (windows_add_thread): Add new parameter
14776 "main_thread_p" with default value set to false. Update
14777 function documentation as well as all callers.
14778 (windows_delete_thread): Likewise.
14779 (fake_create_process): Update call to windows_add_thread.
14780 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
14781 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
14782 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
14783 call to windows_delete_thread.
14784
007024cc
SM
147852019-02-13 Simon Marchi <simon.marchi@ericsson.com>
14786
14787 * MAINTAINERS: Add Andrew Burgess as global maintainer.
14788
f62318e9
JB
147892019-02-12 John Baldwin <jhb@FreeBSD.org>
14790
14791 * symfile.c (find_separate_debug_file): Use canonical path of
14792 sysroot with child_path instead of gdb_sysroot if it is valid.
14793
cd4b7848
JB
147942019-02-12 John Baldwin <jhb@FreeBSD.org>
14795
14796 * symfile.c (find_separate_debug_file): Use child_path to
14797 determine if an object file is under a sysroot.
14798
efac4bfe
JB
147992019-02-12 John Baldwin <jhb@FreeBSD.org>
14800
14801 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
14802 unittests/child-path-selftests.c.
14803 * common/pathstuff.c (child_path): New function.
14804 * common/pathstuff.h (child_path): New prototype.
14805 * unittests/child-path-selftests.c: New file.
14806
402d2bfe
JB
148072019-02-12 John Baldwin <jhb@FreeBSD.org>
14808
14809 * symfile.c (find_separate_debug_file): Look for separate debug
14810 files in debug directories under the sysroot.
14811
1ed9f74e
PW
148122019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14813
14814 * symtab.h (struct minimal_symbol data_p): New const method.
14815 (struct minimal_symbol text_p): Likewise.
14816 * symtab.c (output_source_filename): Use file name style
14817 to print file name.
14818 (print_symbol_info): Likewise.
14819 (print_msymbol_info): Use address style to print addresses.
14820 Use function name style to print executable text symbols.
14821 (expand_symtab_containing_pc): Use data_p.
14822 (find_pc_sect_compunit_symtab): Likewise.
14823
2636d81d
PW
148242019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14825
14826 * breakpoint.c (describe_other_breakpoints): Use address style
14827 to print addresses.
14828 (say_where): Likewise.
14829
ac8c53cc
PW
148302019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14831
14832 * ada-typeprint.c (print_func_type): Print function name
14833 style to print function name.
14834 * c-typeprint.c (c_print_type_1): Likewise.
14835
ea638c43
AH
148362019-02-11 Alan Hayward <alan.hayward@arm.com>
14837
14838 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
14839 for execve.
14840
ab759ca8
PW
148412019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14842
14843 * c-exp.y (direct_abs_decl): Use emplace_back to record the
14844 type_stack.
14845
aff29d1c
JB
148462019-02-10 Joel Brobecker <brobecker@adacore.com>
14847
14848 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
14849 TYPE_CODE_REF types.
14850
617126bc
JW
148512019-02-08 Jim Wilson <jimw@sifive.com>
14852
14853 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
14854 (riscv_linux_fregset): New.
14855 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
14856
46e3ed7f
TT
148572019-02-07 Tom Tromey <tom@tromey.com>
14858
14859 * thread.c (thread_cancel_execution_command): Update.
14860 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
14861 methods.
14862 (struct thread_fsm_ops): Remove.
14863 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
14864 (thread_fsm_should_stop, thread_fsm_return_value)
14865 (thread_fsm_set_finished, thread_fsm_finished_p)
14866 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
14867 Don't declare.
14868 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
14869 * infrun.c (clear_proceed_status_thread)
14870 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
14871 (print_stop_event): Update.
14872 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
14873 Add constructor.
14874 (step_command_fsm_ops): Remove.
14875 (new_step_command_fsm): Remove.
14876 (step_1): Update.
14877 (step_command_fsm::should_stop): Rename from
14878 step_command_fsm_should_stop.
14879 (step_command_fsm::clean_up): Rename from
14880 step_command_fsm_clean_up.
14881 (step_command_fsm::do_async_reply_reason): Rename from
14882 step_command_fsm_async_reply_reason.
14883 (struct until_next_fsm): Inherit from thread_fsm. Add
14884 constructor.
14885 (until_next_fsm_ops): Remove.
14886 (new_until_next_fsm): Remove.
14887 (until_next_fsm::should_stop): Rename from
14888 until_next_fsm_should_stop.
14889 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
14890 (until_next_fsm::do_async_reply_reason): Rename from
14891 until_next_fsm_async_reply_reason.
14892 (struct finish_command_fsm): Inherit from thread_fsm. Add
14893 constructor. Change type of breakpoint.
14894 (finish_command_fsm_ops): Remove.
14895 (new_finish_command_fsm): Remove.
14896 (finish_command_fsm::should_stop): Rename from
14897 finish_command_fsm_should_stop.
14898 (finish_command_fsm::clean_up): Rename from
14899 finish_command_fsm_clean_up.
14900 (finish_command_fsm::return_value): Rename from
14901 finish_command_fsm_return_value.
14902 (finish_command_fsm::do_async_reply_reason): Rename from
14903 finish_command_fsm_async_reply_reason.
14904 (finish_command): Update.
14905 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
14906 Add constructor.
14907 (call_thread_fsm_ops): Remove.
14908 (call_thread_fsm::call_thread_fsm): Rename from
14909 new_call_thread_fsm.
14910 (call_thread_fsm::should_stop): Rename from
14911 call_thread_fsm_should_stop.
14912 (call_thread_fsm::should_notify_stop): Rename from
14913 call_thread_fsm_should_notify_stop.
14914 (run_inferior_call, call_function_by_hand_dummy): Update.
14915 * cli/cli-interp.c (should_print_stop_to_console): Update.
14916 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
14917 Add constructor. Change type of location_breakpoint,
14918 caller_breakpoint.
14919 (until_break_fsm_ops): Remove.
14920 (new_until_break_fsm): Remove.
14921 (until_break_fsm::should_stop): Rename from
14922 until_break_fsm_should_stop.
14923 (until_break_fsm::clean_up): Rename from
14924 until_break_fsm_clean_up.
14925 (until_break_fsm::do_async_reply_reason): Rename from
14926 until_break_fsm_async_reply_reason.
14927 (until_break_command): Update.
14928 * thread-fsm.c: Remove.
14929 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
14930
1a5c2598
TT
149312019-02-07 Tom Tromey <tom@tromey.com>
14932
14933 * yy-remap.h: Add include guard.
14934 * xtensa-tdep.h: Add include guard.
14935 * xcoffread.h: Rename include guard.
14936 * varobj-iter.h: Add include guard.
14937 * tui/tui.h: Rename include guard.
14938 * tui/tui-winsource.h: Rename include guard.
14939 * tui/tui-wingeneral.h: Rename include guard.
14940 * tui/tui-windata.h: Rename include guard.
14941 * tui/tui-win.h: Rename include guard.
14942 * tui/tui-stack.h: Rename include guard.
14943 * tui/tui-source.h: Rename include guard.
14944 * tui/tui-regs.h: Rename include guard.
14945 * tui/tui-out.h: Rename include guard.
14946 * tui/tui-layout.h: Rename include guard.
14947 * tui/tui-io.h: Rename include guard.
14948 * tui/tui-hooks.h: Rename include guard.
14949 * tui/tui-file.h: Rename include guard.
14950 * tui/tui-disasm.h: Rename include guard.
14951 * tui/tui-data.h: Rename include guard.
14952 * tui/tui-command.h: Rename include guard.
14953 * tic6x-tdep.h: Add include guard.
14954 * target/waitstatus.h: Rename include guard.
14955 * target/wait.h: Rename include guard.
14956 * target/target.h: Rename include guard.
14957 * target/resume.h: Rename include guard.
14958 * target-float.h: Rename include guard.
14959 * stabsread.h: Add include guard.
14960 * rs6000-tdep.h: Add include guard.
14961 * riscv-fbsd-tdep.h: Add include guard.
14962 * regformats/regdef.h: Rename include guard.
14963 * record.h: Rename include guard.
14964 * python/python.h: Rename include guard.
14965 * python/python-internal.h: Rename include guard.
14966 * python/py-stopevent.h: Rename include guard.
14967 * python/py-ref.h: Rename include guard.
14968 * python/py-record.h: Rename include guard.
14969 * python/py-record-full.h: Rename include guard.
14970 * python/py-record-btrace.h: Rename include guard.
14971 * python/py-instruction.h: Rename include guard.
14972 * python/py-events.h: Rename include guard.
14973 * python/py-event.h: Rename include guard.
14974 * procfs.h: Add include guard.
14975 * proc-utils.h: Add include guard.
14976 * p-lang.h: Add include guard.
14977 * or1k-tdep.h: Rename include guard.
14978 * observable.h: Rename include guard.
14979 * nto-tdep.h: Rename include guard.
14980 * nat/x86-linux.h: Rename include guard.
14981 * nat/x86-linux-dregs.h: Rename include guard.
14982 * nat/x86-gcc-cpuid.h: Add include guard.
14983 * nat/x86-dregs.h: Rename include guard.
14984 * nat/x86-cpuid.h: Rename include guard.
14985 * nat/ppc-linux.h: Rename include guard.
14986 * nat/mips-linux-watch.h: Rename include guard.
14987 * nat/linux-waitpid.h: Rename include guard.
14988 * nat/linux-ptrace.h: Rename include guard.
14989 * nat/linux-procfs.h: Rename include guard.
14990 * nat/linux-osdata.h: Rename include guard.
14991 * nat/linux-nat.h: Rename include guard.
14992 * nat/linux-namespaces.h: Rename include guard.
14993 * nat/linux-btrace.h: Rename include guard.
14994 * nat/glibc_thread_db.h: Rename include guard.
14995 * nat/gdb_thread_db.h: Rename include guard.
14996 * nat/gdb_ptrace.h: Rename include guard.
14997 * nat/fork-inferior.h: Rename include guard.
14998 * nat/amd64-linux-siginfo.h: Rename include guard.
14999 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
15000 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
15001 * nat/aarch64-linux.h: Rename include guard.
15002 * nat/aarch64-linux-hw-point.h: Rename include guard.
15003 * mn10300-tdep.h: Add include guard.
15004 * mips-linux-tdep.h: Add include guard.
15005 * mi/mi-parse.h: Rename include guard.
15006 * mi/mi-out.h: Rename include guard.
15007 * mi/mi-main.h: Rename include guard.
15008 * mi/mi-interp.h: Rename include guard.
15009 * mi/mi-getopt.h: Rename include guard.
15010 * mi/mi-console.h: Rename include guard.
15011 * mi/mi-common.h: Rename include guard.
15012 * mi/mi-cmds.h: Rename include guard.
15013 * mi/mi-cmd-break.h: Rename include guard.
15014 * m2-lang.h: Add include guard.
15015 * location.h: Rename include guard.
15016 * linux-record.h: Rename include guard.
15017 * linux-nat.h: Add include guard.
15018 * linux-fork.h: Add include guard.
15019 * i386-darwin-tdep.h: Rename include guard.
15020 * hppa-linux-offsets.h: Add include guard.
15021 * guile/guile.h: Rename include guard.
15022 * guile/guile-internal.h: Rename include guard.
15023 * gnu-nat.h: Rename include guard.
15024 * gdb-stabs.h: Rename include guard.
15025 * frv-tdep.h: Add include guard.
15026 * f-lang.h: Add include guard.
15027 * event-loop.h: Add include guard.
15028 * darwin-nat.h: Rename include guard.
15029 * cp-abi.h: Rename include guard.
15030 * config/sparc/nm-sol2.h: Rename include guard.
15031 * config/nm-nto.h: Rename include guard.
15032 * config/nm-linux.h: Add include guard.
15033 * config/i386/nm-i386gnu.h: Rename include guard.
15034 * config/djgpp/nl_types.h: Rename include guard.
15035 * config/djgpp/langinfo.h: Rename include guard.
15036 * compile/gcc-cp-plugin.h: Add include guard.
15037 * compile/gcc-c-plugin.h: Add include guard.
15038 * compile/compile.h: Rename include guard.
15039 * compile/compile-object-run.h: Rename include guard.
15040 * compile/compile-object-load.h: Rename include guard.
15041 * compile/compile-internal.h: Rename include guard.
15042 * compile/compile-cplus.h: Rename include guard.
15043 * compile/compile-c.h: Rename include guard.
15044 * common/xml-utils.h: Rename include guard.
15045 * common/x86-xstate.h: Rename include guard.
15046 * common/version.h: Rename include guard.
15047 * common/vec.h: Rename include guard.
15048 * common/tdesc.h: Rename include guard.
15049 * common/selftest.h: Rename include guard.
15050 * common/scoped_restore.h: Rename include guard.
15051 * common/scoped_mmap.h: Rename include guard.
15052 * common/scoped_fd.h: Rename include guard.
15053 * common/safe-iterator.h: Rename include guard.
15054 * common/run-time-clock.h: Rename include guard.
15055 * common/refcounted-object.h: Rename include guard.
15056 * common/queue.h: Rename include guard.
15057 * common/ptid.h: Rename include guard.
15058 * common/print-utils.h: Rename include guard.
15059 * common/preprocessor.h: Rename include guard.
15060 * common/pathstuff.h: Rename include guard.
15061 * common/observable.h: Rename include guard.
15062 * common/netstuff.h: Rename include guard.
15063 * common/job-control.h: Rename include guard.
15064 * common/host-defs.h: Rename include guard.
15065 * common/gdb_wait.h: Rename include guard.
15066 * common/gdb_vecs.h: Rename include guard.
15067 * common/gdb_unlinker.h: Rename include guard.
15068 * common/gdb_unique_ptr.h: Rename include guard.
15069 * common/gdb_tilde_expand.h: Rename include guard.
15070 * common/gdb_sys_time.h: Rename include guard.
15071 * common/gdb_string_view.h: Rename include guard.
15072 * common/gdb_splay_tree.h: Rename include guard.
15073 * common/gdb_setjmp.h: Rename include guard.
15074 * common/gdb_ref_ptr.h: Rename include guard.
15075 * common/gdb_optional.h: Rename include guard.
15076 * common/gdb_locale.h: Rename include guard.
15077 * common/gdb_assert.h: Rename include guard.
15078 * common/filtered-iterator.h: Rename include guard.
15079 * common/filestuff.h: Rename include guard.
15080 * common/fileio.h: Rename include guard.
15081 * common/environ.h: Rename include guard.
15082 * common/common-utils.h: Rename include guard.
15083 * common/common-types.h: Rename include guard.
15084 * common/common-regcache.h: Rename include guard.
15085 * common/common-inferior.h: Rename include guard.
15086 * common/common-gdbthread.h: Rename include guard.
15087 * common/common-exceptions.h: Rename include guard.
15088 * common/common-defs.h: Rename include guard.
15089 * common/common-debug.h: Rename include guard.
15090 * common/cleanups.h: Rename include guard.
15091 * common/buffer.h: Rename include guard.
15092 * common/btrace-common.h: Rename include guard.
15093 * common/break-common.h: Rename include guard.
15094 * cli/cli-utils.h: Rename include guard.
15095 * cli/cli-style.h: Rename include guard.
15096 * cli/cli-setshow.h: Rename include guard.
15097 * cli/cli-script.h: Rename include guard.
15098 * cli/cli-interp.h: Rename include guard.
15099 * cli/cli-decode.h: Rename include guard.
15100 * cli/cli-cmds.h: Rename include guard.
15101 * charset-list.h: Add include guard.
15102 * buildsym-legacy.h: Rename include guard.
15103 * bfin-tdep.h: Add include guard.
15104 * ax.h: Rename include guard.
15105 * arm-linux-tdep.h: Add include guard.
15106 * arm-fbsd-tdep.h: Add include guard.
15107 * arch/xtensa.h: Rename include guard.
15108 * arch/tic6x.h: Add include guard.
15109 * arch/i386.h: Add include guard.
15110 * arch/arm.h: Rename include guard.
15111 * arch/arm-linux.h: Rename include guard.
15112 * arch/arm-get-next-pcs.h: Rename include guard.
15113 * arch/amd64.h: Add include guard.
15114 * arch/aarch64-insn.h: Rename include guard.
15115 * arch-utils.h: Rename include guard.
15116 * annotate.h: Add include guard.
15117 * amd64-darwin-tdep.h: Rename include guard.
15118 * aarch64-linux-tdep.h: Add include guard.
15119 * aarch64-fbsd-tdep.h: Add include guard.
15120 * aarch32-linux-nat.h: Add include guard.
15121
ab9268d2
PW
151222019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15123
15124 * macrotab.c (macro_define_internal): New function that
15125 factorizes macro_define_object_internal and macro_define_function
15126 code.
15127 (macro_define_object_internal): Use macro_define_internal.
15128 (macro_define_function): Likewise.
15129
bb0da2b4
PW
151302019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15131
15132 * macrocmd.c (extract_identifier): Return
15133 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
15134 callers.
15135
424eb552
JB
151362019-02-06 John Baldwin <jhb@FreeBSD.org>
15137
15138 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
15139
1688cb29
TT
151402019-02-05 Tom Tromey <tom@tromey.com>
15141
15142 * target.c (target_stack::unpush): Move assertion earlier.
15143
b5eba2d8
TT
151442019-01-30 Tom Tromey <tom@tromey.com>
15145
15146 PR python/23615:
15147 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
15148 (gdbpy_parse_and_eval): Likewise.
15149 * python/python-internal.h (gdbpy_allow_threads): New class.
15150
7054e2ff
JB
151512019-01-28 John Baldwin <jhb@FreeBSD.org>
15152
15153 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
15154 (aarch64_fbsd_fpregmap): Move earlier.
15155 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
15156 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15157 instead of individual calls to trad_frame_set_reg_addr.
15158 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
15159 earlier.
15160 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
15161 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
15162 instead of individual calls to trad_frame_set_reg_addr.
15163
36c25ffa
AH
151642019-01-28 Alan Hayward <alan.hayward@arm.com>
15165
15166 * CONTRIBUTE: Replace contribution list with wiki link.
15167
a0707f3c
TT
151682019-01-25 Tom Tromey <tom@tromey.com>
15169
15170 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
15171
0747795c
TT
151722019-01-25 Tom Tromey <tom@tromey.com>
15173
15174 * xtensa-linux-nat.c: Fix common/ includes.
15175 * xml-support.h: Fix common/ includes.
15176 * xml-support.c: Fix common/ includes.
15177 * x86-linux-nat.c: Fix common/ includes.
15178 * windows-nat.c: Fix common/ includes.
15179 * varobj.h: Fix common/ includes.
15180 * varobj.c: Fix common/ includes.
15181 * value.c: Fix common/ includes.
15182 * valops.c: Fix common/ includes.
15183 * utils.c: Fix common/ includes.
15184 * unittests/xml-utils-selftests.c: Fix common/ includes.
15185 * unittests/utils-selftests.c: Fix common/ includes.
15186 * unittests/unpack-selftests.c: Fix common/ includes.
15187 * unittests/tracepoint-selftests.c: Fix common/ includes.
15188 * unittests/style-selftests.c: Fix common/ includes.
15189 * unittests/string_view-selftests.c: Fix common/ includes.
15190 * unittests/scoped_restore-selftests.c: Fix common/ includes.
15191 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
15192 * unittests/scoped_fd-selftests.c: Fix common/ includes.
15193 * unittests/rsp-low-selftests.c: Fix common/ includes.
15194 * unittests/parse-connection-spec-selftests.c: Fix common/
15195 includes.
15196 * unittests/optional-selftests.c: Fix common/ includes.
15197 * unittests/offset-type-selftests.c: Fix common/ includes.
15198 * unittests/observable-selftests.c: Fix common/ includes.
15199 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
15200 * unittests/memrange-selftests.c: Fix common/ includes.
15201 * unittests/memory-map-selftests.c: Fix common/ includes.
15202 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
15203 * unittests/function-view-selftests.c: Fix common/ includes.
15204 * unittests/environ-selftests.c: Fix common/ includes.
15205 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
15206 * unittests/common-utils-selftests.c: Fix common/ includes.
15207 * unittests/cli-utils-selftests.c: Fix common/ includes.
15208 * unittests/array-view-selftests.c: Fix common/ includes.
15209 * ui-file.c: Fix common/ includes.
15210 * tui/tui-io.c: Fix common/ includes.
15211 * tracepoint.h: Fix common/ includes.
15212 * tracepoint.c: Fix common/ includes.
15213 * tracefile-tfile.c: Fix common/ includes.
15214 * top.h: Fix common/ includes.
15215 * top.c: Fix common/ includes.
15216 * thread.c: Fix common/ includes.
15217 * target/waitstatus.h: Fix common/ includes.
15218 * target/waitstatus.c: Fix common/ includes.
15219 * target.h: Fix common/ includes.
15220 * target.c: Fix common/ includes.
15221 * target-memory.c: Fix common/ includes.
15222 * target-descriptions.c: Fix common/ includes.
15223 * symtab.h: Fix common/ includes.
15224 * symfile.c: Fix common/ includes.
15225 * stap-probe.c: Fix common/ includes.
15226 * spu-linux-nat.c: Fix common/ includes.
15227 * sparc-nat.c: Fix common/ includes.
15228 * source.c: Fix common/ includes.
15229 * solib.c: Fix common/ includes.
15230 * solib-target.c: Fix common/ includes.
15231 * ser-unix.c: Fix common/ includes.
15232 * ser-tcp.c: Fix common/ includes.
15233 * ser-pipe.c: Fix common/ includes.
15234 * ser-base.c: Fix common/ includes.
15235 * selftest-arch.c: Fix common/ includes.
15236 * s12z-tdep.c: Fix common/ includes.
15237 * rust-exp.y: Fix common/ includes.
15238 * rs6000-aix-tdep.c: Fix common/ includes.
15239 * riscv-tdep.c: Fix common/ includes.
15240 * remote.c: Fix common/ includes.
15241 * remote-notif.h: Fix common/ includes.
15242 * remote-fileio.h: Fix common/ includes.
15243 * remote-fileio.c: Fix common/ includes.
15244 * regcache.h: Fix common/ includes.
15245 * regcache.c: Fix common/ includes.
15246 * record-btrace.c: Fix common/ includes.
15247 * python/python.c: Fix common/ includes.
15248 * python/py-type.c: Fix common/ includes.
15249 * python/py-inferior.c: Fix common/ includes.
15250 * progspace.h: Fix common/ includes.
15251 * producer.c: Fix common/ includes.
15252 * procfs.c: Fix common/ includes.
15253 * proc-api.c: Fix common/ includes.
15254 * printcmd.c: Fix common/ includes.
15255 * ppc-linux-nat.c: Fix common/ includes.
15256 * parser-defs.h: Fix common/ includes.
15257 * osdata.c: Fix common/ includes.
15258 * obsd-nat.c: Fix common/ includes.
15259 * nat/x86-linux.c: Fix common/ includes.
15260 * nat/x86-linux-dregs.c: Fix common/ includes.
15261 * nat/x86-dregs.h: Fix common/ includes.
15262 * nat/x86-dregs.c: Fix common/ includes.
15263 * nat/ppc-linux.c: Fix common/ includes.
15264 * nat/mips-linux-watch.h: Fix common/ includes.
15265 * nat/mips-linux-watch.c: Fix common/ includes.
15266 * nat/linux-waitpid.c: Fix common/ includes.
15267 * nat/linux-ptrace.h: Fix common/ includes.
15268 * nat/linux-ptrace.c: Fix common/ includes.
15269 * nat/linux-procfs.c: Fix common/ includes.
15270 * nat/linux-personality.c: Fix common/ includes.
15271 * nat/linux-osdata.c: Fix common/ includes.
15272 * nat/linux-namespaces.c: Fix common/ includes.
15273 * nat/linux-btrace.h: Fix common/ includes.
15274 * nat/linux-btrace.c: Fix common/ includes.
15275 * nat/fork-inferior.c: Fix common/ includes.
15276 * nat/amd64-linux-siginfo.c: Fix common/ includes.
15277 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
15278 * nat/aarch64-linux.c: Fix common/ includes.
15279 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
15280 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
15281 * namespace.h: Fix common/ includes.
15282 * mips-linux-tdep.c: Fix common/ includes.
15283 * minsyms.c: Fix common/ includes.
15284 * mi/mi-parse.h: Fix common/ includes.
15285 * mi/mi-main.c: Fix common/ includes.
15286 * mi/mi-cmd-env.c: Fix common/ includes.
15287 * memrange.h: Fix common/ includes.
15288 * memattr.c: Fix common/ includes.
15289 * maint.h: Fix common/ includes.
15290 * maint.c: Fix common/ includes.
15291 * main.c: Fix common/ includes.
15292 * machoread.c: Fix common/ includes.
15293 * location.c: Fix common/ includes.
15294 * linux-thread-db.c: Fix common/ includes.
15295 * linux-nat.c: Fix common/ includes.
15296 * linux-fork.c: Fix common/ includes.
15297 * inline-frame.c: Fix common/ includes.
15298 * infrun.c: Fix common/ includes.
15299 * inflow.c: Fix common/ includes.
15300 * inferior.h: Fix common/ includes.
15301 * inferior.c: Fix common/ includes.
15302 * infcmd.c: Fix common/ includes.
15303 * inf-ptrace.c: Fix common/ includes.
15304 * inf-child.c: Fix common/ includes.
15305 * ia64-linux-nat.c: Fix common/ includes.
15306 * i387-tdep.c: Fix common/ includes.
15307 * i386-tdep.c: Fix common/ includes.
15308 * i386-linux-tdep.c: Fix common/ includes.
15309 * i386-linux-nat.c: Fix common/ includes.
15310 * i386-go32-tdep.c: Fix common/ includes.
15311 * i386-fbsd-tdep.c: Fix common/ includes.
15312 * i386-fbsd-nat.c: Fix common/ includes.
15313 * guile/scm-type.c: Fix common/ includes.
15314 * guile/guile.c: Fix common/ includes.
15315 * go32-nat.c: Fix common/ includes.
15316 * gnu-nat.c: Fix common/ includes.
15317 * gdbthread.h: Fix common/ includes.
15318 * gdbarch-selftests.c: Fix common/ includes.
15319 * gdb_usleep.c: Fix common/ includes.
15320 * gdb_select.h: Fix common/ includes.
15321 * gdb_bfd.c: Fix common/ includes.
15322 * gcore.c: Fix common/ includes.
15323 * fork-child.c: Fix common/ includes.
15324 * findvar.c: Fix common/ includes.
15325 * fbsd-nat.c: Fix common/ includes.
15326 * event-top.c: Fix common/ includes.
15327 * event-loop.c: Fix common/ includes.
15328 * dwarf2read.c: Fix common/ includes.
15329 * dwarf2loc.c: Fix common/ includes.
15330 * dwarf2-frame.c: Fix common/ includes.
15331 * dwarf-index-cache.c: Fix common/ includes.
15332 * dtrace-probe.c: Fix common/ includes.
15333 * disasm-selftests.c: Fix common/ includes.
15334 * defs.h: Fix common/ includes.
15335 * csky-tdep.c: Fix common/ includes.
15336 * cp-valprint.c: Fix common/ includes.
15337 * cp-support.h: Fix common/ includes.
15338 * cp-support.c: Fix common/ includes.
15339 * corelow.c: Fix common/ includes.
15340 * completer.h: Fix common/ includes.
15341 * completer.c: Fix common/ includes.
15342 * compile/compile.c: Fix common/ includes.
15343 * compile/compile-loc2c.c: Fix common/ includes.
15344 * compile/compile-cplus-types.c: Fix common/ includes.
15345 * compile/compile-cplus-symbols.c: Fix common/ includes.
15346 * command.h: Fix common/ includes.
15347 * cli/cli-dump.c: Fix common/ includes.
15348 * cli/cli-cmds.c: Fix common/ includes.
15349 * charset.c: Fix common/ includes.
15350 * build-id.c: Fix common/ includes.
15351 * btrace.h: Fix common/ includes.
15352 * btrace.c: Fix common/ includes.
15353 * breakpoint.h: Fix common/ includes.
15354 * breakpoint.c: Fix common/ includes.
15355 * ax.h:
15356 (enum agent_op): Fix common/ includes.
15357 * ax-general.c (struct aop_map): Fix common/ includes.
15358 * ax-gdb.c: Fix common/ includes.
15359 * auxv.c: Fix common/ includes.
15360 * auto-load.c: Fix common/ includes.
15361 * arm-tdep.c: Fix common/ includes.
15362 * arch/riscv.c: Fix common/ includes.
15363 * arch/ppc-linux-common.c: Fix common/ includes.
15364 * arch/i386.c: Fix common/ includes.
15365 * arch/arm.c: Fix common/ includes.
15366 * arch/arm-linux.c: Fix common/ includes.
15367 * arch/arm-get-next-pcs.c: Fix common/ includes.
15368 * arch/amd64.c: Fix common/ includes.
15369 * arch/aarch64.c: Fix common/ includes.
15370 * arch/aarch64-insn.c: Fix common/ includes.
15371 * arch-utils.c: Fix common/ includes.
15372 * amd64-windows-tdep.c: Fix common/ includes.
15373 * amd64-tdep.c: Fix common/ includes.
15374 * amd64-sol2-tdep.c: Fix common/ includes.
15375 * amd64-obsd-tdep.c: Fix common/ includes.
15376 * amd64-nbsd-tdep.c: Fix common/ includes.
15377 * amd64-linux-tdep.c: Fix common/ includes.
15378 * amd64-linux-nat.c: Fix common/ includes.
15379 * amd64-fbsd-tdep.c: Fix common/ includes.
15380 * amd64-fbsd-nat.c: Fix common/ includes.
15381 * amd64-dicos-tdep.c: Fix common/ includes.
15382 * amd64-darwin-tdep.c: Fix common/ includes.
15383 * agent.c: Fix common/ includes.
15384 * ada-lang.h: Fix common/ includes.
15385 * ada-lang.c: Fix common/ includes.
15386 * aarch64-tdep.c: Fix common/ includes.
15387
2f5c153e
TT
153882019-01-25 Tom Tromey <tom@tromey.com>
15389
15390 * common/create-version.sh: Use common/version.h.
15391
adc6a863
PA
153922019-01-24 Pedro Alves <palves@redhat.com>
15393
15394 * infrun.c (signal_stop, signal_print, signal_program)
15395 (signal_catch, signal_pass): Now arrays instead of pointers.
15396 (update_signals_program_target, do_target_resume)
15397 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
15398 * linux-nat.c (linux_nat_target::pass_signals)
15399 (linux_nat_target::create_inferior, linux_nat_target::attach):
15400 Adjust.
15401 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
15402 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
15403 * procfs.c (procfs_target::pass_signals): Adjust.
15404 * record-full.c (record_full_target::resume): Adjust.
15405 * remote.c (remote_target::pass_signals)
15406 (remote_target::program_signals): Adjust.
15407 * target-debug.h (target_debug_print_signals): Now takes a
15408 gdb::array_view as parameter. Adjust.
15409 * target.h (target_ops) <pass_signals, program_signals>: Replace
15410 pointer and length parameters with gdb::array_view.
15411 (target_pass_signals, target_program_signals): Likewise.
15412 * target-delegates.c: Regenerate.
15413
3046d67a
PA
154142019-01-24 Pedro Alves <palves@redhat.com>
15415
15416 * common/forward-scope-exit.h
15417 (forward_scope_exit::forward_scope_exit): Pass arguments to
15418 m_bind_function directly, instead of creating a std::bind and
15419 copying that.
15420
353229bf
AH
154212019-01-24 Alan Hayward <alan.hayward@arm.com>
15422
15423 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15424 for static members.
15425 (pass_in_v_vfp_candidate): Likewise.
15426
311dc83a
TT
154272019-01-23 Tom Tromey <tom@tromey.com>
15428 Pedro Alves <palves@redhat.com>
15429
15430 * regcache.c (class regcache_invalidator): Remove.
15431 (regcache::raw_write): Use make_scope_exit.
15432
296bd123
TT
154332019-01-23 Tom Tromey <tom@tromey.com>
15434
15435 * ui-out.h (class ui_out_emit_type): Update comment.
15436
979a0d13
TT
154372019-01-23 Tom Tromey <tom@tromey.com>
15438
15439 * infrun.c (fetch_inferior_event): Update comment.
15440
d238133d
TT
154412019-01-23 Tom Tromey <tom@tromey.com>
15442 Pedro Alves <palves@redhat.com>
15443
15444 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
15445 parameter.
15446 (fetch_inferior_event): Use SCOPE_EXIT.
15447
15448
9885e6bb
TT
154492019-01-23 Tom Tromey <tom@tromey.com>
15450 Pedro Alves <palves@redhat.com>
15451
15452 * infrun.c (disable_thread_events): Delete.
15453 (stop_all_threads): Use SCOPE_EXIT.
15454
286526c1
TT
154552019-01-23 Tom Tromey <tom@tromey.com>
15456 Pedro Alves <palves@redhat.com>
15457
15458 * symfile.c: Include forward-scope-exit.h.
15459 (clear_symtab_users_cleanup): Replace forward declaration with
15460 a FORWARD_SCOPE_EXIT.
15461 (syms_from_objfile_1): Use the forward_scope_exit and
15462 gdb::optional instead of cleanup_function.
15463 (reread_symbols): Use the forward_scope_exit instead of
15464 cleanup_function.
15465 (clear_symtab_users_cleanup): Remove function.
15466
1db93f14
TT
154672019-01-23 Tom Tromey <tom@tromey.com>
15468 Pedro Alves <palves@redhat.com>
15469
15470 * linux-nat.c: Include scope-exit.h.
15471 (cleanup_target_stop): Remove.
15472 (linux_nat_target::static_tracepoint_markers_by_strid): Use
15473 SCOPE_EXIT.
15474
2cc83d1e
TT
154752019-01-23 Tom Tromey <tom@tromey.com>
15476 Pedro Alves <palves@redhat.com>
15477
15478 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
15479 (call_function_by_hand_dummy): Use SCOPE_EXIT.
15480
694c6bf5
TT
154812019-01-23 Tom Tromey <tom@tromey.com>
15482 Andrew Burgess <andrew.burgess@embecosm.com>
15483 Pedro Alves <palves@redhat.com>
15484
15485 * infrun.c (fetch_inferior_event): Use scope_exit.
15486 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
15487 * top.c (execute_command): Use scope_exit.
15488 * breakpoint.c (bpstat_do_actions): Use scope_exit.
15489 * utils.c (do_bpstat_clear_actions_cleanup)
15490 (make_bpstat_clear_actions_cleanup): Remove.
15491
4c41382a
TT
154922019-01-23 Tom Tromey <tom@tromey.com>
15493 Pedro Alves <palves@redhat.com>
15494
15495 * infrun.c: Include "common/scope-exit.h"
15496 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
15497 (wait_for_inferior): Use SCOPE_EXIT.
15498 (fetch_inferior_event): Use scope_exit.
15499
89f8fb50
TT
155002019-01-23 Tom Tromey <tom@tromey.com>
15501 Pedro Alves <palves@redhat.com>
15502
15503 * breakpoint.c (create_breakpoint): Remove cleanup.
15504
5419bdae
TT
155052019-01-23 Tom Tromey <tom@tromey.com>
15506 Andrew Burgess <andrew.burgess@embecosm.com>
15507 Pedro Alves <palves@redhat.com>
15508
e587ef42
PA
155092019-01-23 Pedro Alves <palves@redhat.com>
15510
15511 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
15512
77f0e74c
PA
155132019-01-23 Pedro Alves <palves@redhat.com>
15514 Andrew Burgess <andrew.burgess@embecosm.com>
15515
15516 * gdbthread.h: Include "common/forward-scope-exit.h".
15517 (scoped_finish_thread_state): Redefine custom class in terms of
15518 forward_scope_exit.
15519
5b9b3e53
PA
155202019-01-23 Pedro Alves <palves@redhat.com>
15521 Andrew Burgess <andrew.burgess@embecosm.com>
15522
15523 * common/forward-scope-exit.h: New file.
15524
54b65c9b
PA
155252019-01-23 Pedro Alves <palves@redhat.com>
15526 Andrew Burgess <andrew.burgess@embecosm.com>
15527 Tom Tromey <tom@tromey.com>
15528
15529 * common/scope-exit.h: New file.
15530
cf08fb29
PA
155312019-01-23 Pedro Alves <palves@redhat.com>
15532
15533 * common/preprocessor.h (ESC): Rename to ...
15534 (ESC_PARENS): ... this.
15535 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
15536 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
15537
ae73e2e2
TT
155382019-01-23 Tom Tromey <tom@tromey.com>
15539
15540 * language.h (class scoped_switch_to_sym_language_if_auto):
15541 Initialize m_lang in both cases.
15542
6594e122
AH
155432019-01-23 Alan Hayward <alan.hayward@arm.com>
15544
15545 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
15546 with XCNEW.
15547
a7c9855d
TT
155482019-01-22 Tom Tromey <tom@tromey.com>
15549
15550 * corelow.c: Do not include sys/file.h.
15551
93cc1d53
TT
155522019-01-22 Tom Tromey <tom@tromey.com>
15553
15554 * tui/tui-wingeneral.h: Include gdb_curses.h.
15555
38561778
TT
155562019-01-22 Tom Tromey <tom@tromey.com>
15557
15558 * source-cache.h (class source_cache) <get_source_lines,
15559 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
15560
37b3ab5b
TT
155612019-01-22 Tom Tromey <tom@tromey.com>
15562
15563 * remote-fileio.h (struct remote_target): Declare.
15564
3fabc016
TT
155652019-01-22 Tom Tromey <tom@tromey.com>
15566
15567 * python/py-arch.c: Do not include py-ref.h.
15568 * python/py-bpevent.c: Do not include py-ref.h.
15569 * python/py-cmd.c: Do not include py-ref.h.
15570 * python/py-continueevent.c: Do not include py-ref.h.
15571 * python/py-event.h: Do not include py-ref.h.
15572 * python/py-evtregistry.c: Do not include py-ref.h.
15573 * python/py-finishbreakpoint.c: Do not include py-ref.h.
15574 * python/py-frame.c: Do not include py-ref.h.
15575 * python/py-framefilter.c: Do not include py-ref.h.
15576 * python/py-function.c: Do not include py-ref.h.
15577 * python/py-infevents.c: Do not include py-ref.h.
15578 * python/py-linetable.c: Do not include py-ref.h.
15579 * python/py-objfile.c: Do not include py-ref.h.
15580 * python/py-param.c: Do not include py-ref.h.
15581 * python/py-prettyprint.c: Do not include py-ref.h.
15582 * python/py-progspace.c: Do not include py-ref.h.
15583 * python/py-symbol.c: Do not include py-ref.h.
15584 * python/py-symtab.c: Do not include py-ref.h.
15585 * python/py-type.c: Do not include py-ref.h.
15586 * python/py-unwind.c: Do not include py-ref.h.
15587 * python/py-utils.c: Do not include py-ref.h.
15588 * python/py-value.c: Do not include py-ref.h.
15589 * python/py-varobj.c: Do not include py-ref.h.
15590 * python/py-xmethods.c: Do not include py-ref.h.
15591 * python/python.c: Do not include py-ref.h.
15592 * varobj.c: Do not include py-ref.h.
15593
6b4d7774
TT
155942019-01-22 Tom Tromey <tom@tromey.com>
15595
15596 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
15597 keyword for bcache.
15598
7af7e9b5
TT
155992019-01-22 Tom Tromey <tom@tromey.com>
15600
15601 * compile/compile-cplus-types.c: Remove a comment by #include.
15602
951d1049
TT
156032019-01-22 Tom Tromey <tom@tromey.com>
15604
15605 * compile/gcc-c-plugin.h: Include compile-internal.h.
15606
d65d5705
TT
156072019-01-22 Tom Tromey <tom@tromey.com>
15608
15609 * stabsread.c (EXTERN): Do not define.
15610 (symnum, next_symbol_text_func, processing_gcc_compilation)
15611 (within_function, global_sym_chain, global_stabs)
15612 (previous_stab_code, this_object_header_files)
15613 (n_this_object_header_files)
15614 (n_allocated_this_object_header_files): Define.
15615 * stabsread.h (EXTERN): Never define. Use "extern".
15616
b6fb1ee5
PW
156172019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15618
15619 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
15620 history_value.
15621
be6d4f74
TT
156222019-01-21 Tom Tromey <tom@tromey.com>
15623
15624 * ui-out.c: Fix includes.
15625 * tui/tui-source.c: Fix includes.
15626 * target.c: Fix includes.
15627 * remote.c: Fix includes.
15628 * regcache.c: Fix includes.
15629 * python/py-block.c: Fix includes.
15630 * printcmd.c: Fix includes.
15631 * or1k-tdep.c: Fix includes.
15632 * mi/mi-main.c: Fix includes.
15633 * m32r-tdep.c: Fix includes.
15634 * csky-tdep.c: Fix includes.
15635 * compile/compile-cplus-types.c: Fix includes.
15636 * cli/cli-interp.c: Fix includes.
15637
73021deb
AH
156382019-01-21 Alan Hayward <alan.hayward@arm.com>
15639
15640 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
15641 for padding.
15642
7932255d
TT
156432019-01-16 Tom Tromey <tom@tromey.com>
15644
15645 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
15646 earlier.
15647 (struct objfile) <msymbols_range>: Move from top level.
15648 <msymbols>: New method.
15649 (class objfile_msymbols): Remove.
15650 * symtab.c (default_collect_symbol_completion_matches_break_on):
15651 Update.
15652 * symmisc.c (dump_msymbols): Update.
15653 * stabsread.c (scan_file_globals): Update.
15654 * objc-lang.c (info_selectors_command, info_classes_command)
15655 (find_methods): Update.
15656 * minsyms.c (find_solib_trampoline_target): Update.
15657 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
15658 * coffread.c (coff_symfile_read): Update.
15659 * ada-lang.c (ada_lookup_simple_minsym)
15660 (ada_collect_symbol_completion_matches): Update.
15661
604b1bfb
TT
156622019-01-16 Tom Tromey <tom@tromey.com>
15663
15664 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
15665 type. Remove no-argument constructor.
15666 <iterator::operator++>: Simplify.
15667 <begin>: Update.
15668 <end>: Use minimal_symbol_count.
15669
f252c6d5
TT
156702019-01-16 Tom Tromey <tom@tromey.com>
15671
15672 * objfiles.h (struct objfile) <psymtabs>: New method.
15673 (class objfile_psymtabs): Remove.
15674 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
15675 typedef.
15676 <range>: New method.
15677 (require_partial_symbols): Change return type.
15678 * psymtab.c (require_partial_symbols)
15679 (psym_expand_symtabs_matching): Update.
15680 * mdebugread.c (parse_partial_symbols): Update.
15681 * dbxread.c (dbx_end_psymtab): Update.
15682
b669c953
TT
156832019-01-15 Tom Tromey <tom@tromey.com>
15684
15685 * symtab.c (lookup_objfile_from_block)
15686 (lookup_symbol_in_objfile_symtabs)
15687 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
15688 (find_line_symtab, info_sources_command)
15689 (default_collect_symbol_completion_matches_break_on)
15690 (make_source_files_completion_list): Update.
15691 * symmisc.c (print_objfile_statistics, dump_objfile)
15692 (maintenance_print_symbols, maintenance_info_symtabs)
15693 (maintenance_check_symtabs, maintenance_info_line_tables):
15694 Update.
15695 * source.c (select_source_symtab)
15696 (forget_cached_source_info_for_objfile): Update.
15697 * objfiles.h (class objfile_compunits): Remove.
15698 (struct objfile) <compunits_range>: New typedef.
15699 (compunits): New method.
15700 * objfiles.c (objfile_relocate1): Update.
15701 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15702 * maint.c (count_symtabs_and_blocks): Update.
15703 * linespec.c (iterate_over_all_matching_symtabs): Update.
15704 * cp-support.c (add_symbol_overload_list_qualified): Update.
15705 * coffread.c (coff_symtab_read): Update.
15706 * ada-lang.c (add_nonlocal_symbols)
15707 (ada_collect_symbol_completion_matches)
15708 (ada_add_global_exceptions): Update.
15709
7e955d83
TT
157102019-01-15 Tom Tromey <tom@tromey.com>
15711
15712 * progspace.h (program_space) <objfiles_safe_range>: New
15713 typedef.
15714 <objfiles_safe>: New method.
15715 * objfiles.h (class all_objfiles_safe): Remove.
15716 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
15717 * jit.c (jit_inferior_exit_hook): Update.
15718
2030c079
TT
157192019-01-17 Tom Tromey <tom@tromey.com>
15720
15721 * progspace.h (program_space) <objfiles_range>: New typedef.
15722 <objfiles>: New method.
15723 <objfiles_head>: Rename from objfiles.
15724 (object_files): Update.
15725 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
15726 * guile/scm-pretty-print.c
15727 (ppscm_find_pretty_printer_from_objfiles): Update.
15728 * guile/scm-objfile.c (gdbscm_objfiles): Update.
15729 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
15730 Update.
15731 * python/py-progspace.c (pspy_get_objfiles): Update.
15732 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
15733 Update.
15734 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
15735 (objfpy_lookup_objfile_by_build_id): Update.
15736 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
15737 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
15738 Update.
15739 * symtab.c (iterate_over_symtabs, matching_obj_sections)
15740 (expand_symtab_containing_pc, lookup_objfile_from_block)
15741 (lookup_static_symbol, basic_lookup_transparent_type)
15742 (find_pc_sect_compunit_symtab, find_symbol_at_address)
15743 (find_line_symtab, info_sources_command)
15744 (default_collect_symbol_completion_matches_break_on)
15745 (make_source_files_completion_list, find_main_name): Update.
15746 * symmisc.c (print_symbol_bcache_statistics)
15747 (print_objfile_statistics, maintenance_print_symbols)
15748 (maintenance_print_msymbols, maintenance_print_objfiles)
15749 (maintenance_info_symtabs, maintenance_check_symtabs)
15750 (maintenance_expand_symtabs, maintenance_info_line_tables):
15751 Update.
15752 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
15753 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
15754 (map_overlay_command, unmap_overlay_command)
15755 (simple_overlay_update, expand_symtabs_matching)
15756 (map_symbol_filenames): Update.
15757 * symfile-debug.c (set_debug_symfile): Update.
15758 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
15759 Update.
15760 * source.c (select_source_symtab, forget_cached_source_info):
15761 Update.
15762 * solib.c (solib_read_symbols): Update.
15763 * solib-spu.c (append_ocl_sos): Update.
15764 * psymtab.c (maintenance_print_psymbols)
15765 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
15766 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
15767 * printcmd.c (info_symbol_command): Update.
15768 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
15769 Update.
15770 * objfiles.h (class all_objfiles): Remove.
15771 * objfiles.c (have_partial_symbols, have_full_symbols)
15772 (have_minimal_symbols, qsort_cmp, update_section_map)
15773 (shared_objfile_contains_address_p)
15774 (default_iterate_over_objfiles_in_search_order): Update.
15775 * objc-lang.c (info_selectors_command, info_classes_command)
15776 (find_methods): Update.
15777 * minsyms.c (find_solib_trampoline_target): Update.
15778 * maint.c (maintenance_info_sections)
15779 (maintenance_translate_address, count_symtabs_and_blocks):
15780 Update.
15781 * main.c (captured_main_1): Update.
15782 * linux-thread-db.c (try_thread_db_load_from_pdir)
15783 (has_libpthread): Update.
15784 * linespec.c (iterate_over_all_matching_symtabs)
15785 (search_minsyms_for_name): Update.
15786 * jit.c (jit_find_objf_with_entry_addr): Update.
15787 * hppa-tdep.c (find_unwind_entry)
15788 (hppa_lookup_stub_minimal_symbol): Update.
15789 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
15790 Update.
15791 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
15792 (elf_gnu_ifunc_resolve_by_got): Update.
15793 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
15794 * dwarf-index-write.c (save_gdb_index_command): Update.
15795 * cp-support.c (add_symbol_overload_list_qualified): Update.
15796 * breakpoint.c (create_overlay_event_breakpoint)
15797 (create_longjmp_master_breakpoint)
15798 (create_std_terminate_master_breakpoint)
15799 (create_exception_master_breakpoint): Update.
15800 * blockframe.c (find_pc_partial_function): Update.
15801 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
15802 (ada_collect_symbol_completion_matches)
15803 (ada_add_global_exceptions): Update.
15804
776489e0
TT
158052019-01-17 Tom Tromey <tom@tromey.com>
15806
15807 * solib-target.c (lm_info_target_p): Remove typedef. Don't
15808 declare VEC.
15809 (solib_target_parse_libraries): Change return type.
15810 (library_list_start_segment, library_list_start_section)
15811 (library_list_end_library, library_list_start_library); Update.
15812 (solib_target_free_library_list): Remove.
15813 (solib_target_parse_libraries): Remove cleanup. Change return
15814 type.
15815 (solib_target_current_sos): Update.
15816
6471e7d2
TT
158172019-01-17 Tom Tromey <tromey@bapiya>
15818
15819 * valprint.c: Replace "the the" with "the".
15820 * symtab.c: Replace "the the" with "the".
15821 * solib.c: Replace "the the" with "the".
15822 * solib-dsbt.c: Replace "the the" with "the".
15823 * linespec.c: Replace "the the" with "the".
15824 * dwarf2loc.h: Replace "the the" with "the".
15825 * amd64-windows-tdep.c: Replace "the the" with "the".
15826 * aarch64-tdep.c: Replace "the the" with "the".
15827
c24bdb02
KS
158282019-01-16 Keith Seitz <keiths@redhat.com>
15829
15830 PR gdb/23773
15831 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
15832 <builder>: Rename to ..
15833 <m_builder>: ... this and make private.
15834 (dwarf2_cu::get_builder): New method. Change all users of
15835 `builder' to use this method.
15836 (dwarf2_start_symtab): Move to ...
15837 (dwarf2_cu::start_symtab): ... here. Update all callers
15838 (setup_type_unit_groups): Move to ...
15839 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
15840 callers.
15841 (dwarf2_cu::reset_builder): New method.
15842 (process_full_compunit, process_full_type_unit): Use
15843 dwarf2_cu::reset_builder.
15844 (follow_die_offset): Record the ancestor CU if it is different
15845 from the followed DIE's CU.
15846 (follow_die_sig_1): Likewise.
15847
8d64371b
TT
158482019-01-15 Tom Tromey <tom@tromey.com>
15849
15850 * remote.c (class remote_state) <buf>: Now a char_vector.
15851 <buf_size>: Remove.
15852 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
15853 parameter.
15854 (remote_target::getpkt_or_notif_sane_1)
15855 (remote_target::getpkt_sane)
15856 (remote_target::getpkt_or_notif_sane): Likewise.
15857 (class remote_target) <putpkt>: New overload.
15858 (remote_target::read_frame): Change type of "buf_p". Remove
15859 sizeof_p parameter.
15860 (packet_ok): New overload.
15861 (packet_check_result): New overload.
15862 Update all uses.
15863
bb277751
TT
158642019-01-14 Tom Tromey <tom@tromey.com>
15865
15866 * remote-notif.c (handle_notification, remote_notif_ack)
15867 (remote_notif_parse): Make "buf" const.
15868 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
15869 const.
15870 (remote_notif_parse, remote_notif_ack, handle_notification):
15871 Likewise.
15872 * remote.c (remote_notif_stop_parse): Make "buf" const.
15873 (remote_target::remote_parse_stop_reply): Make "buf" const.
15874 (remote_notif_stop_ack): Make "buf" const.
15875
05be00a8
TT
158762019-01-14 Tom Tromey <tom@tromey.com>
15877
15878 * remote.c (remote_console_output): Make parameter const.
15879
491adeca
TT
158802019-01-14 Tom Tromey <tom@tromey.com>
15881
15882 * target-debug.h (target_debug_print_signals): Constify.
15883 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
15884 * procfs.c (procfs_target::pass_signals): Update.
15885 * linux-nat.c (linux_nat_target::pass_signals): Update.
15886 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
15887 * target-delegates.c: Rebuild.
15888 * remote.c (remote_target::program_signals): Update.
15889 (remote_target::pass_signals): Update.
15890 * target.c (target_pass_signals): Constify argument.
15891 (target_program_signals): Likewise.
15892 * target.h (struct target_ops) <pass_signals, program_signals>:
15893 Constify argument.
15894 (target_pass_signals, target_program_signals): Constify argument.
15895
bbd94648
TT
158962019-01-14 Tom Tromey <tom@tromey.com>
15897
15898 PR tui/28819:
15899 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
15900
6f072a10
PFC
159012019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
15902
15903 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
15904 field.
15905 * rs6000-tdep.c: Include reggroups.h.
15906 (IS_V_ALIAS_PSEUDOREG): Define.
15907 (rs6000_register_name): Return names for the "vX" aliases.
15908 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
15909 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
15910 aliases. Call default_register_reggroup_p for all other
15911 pseudo-registers.
15912 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
15913 New functions.
15914 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
15915 Handle "vX" aliases.
15916 (v_alias_pseudo_register_collect): New function.
15917 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
15918 (rs6000_gdbarch_init): Initialize "vX" aliases as
15919 pseudo-registers. Restore registration of
15920 rs6000_pseudo_register_reggroup_p with
15921 set_tdesc_pseudo_register_reggroup_p.
15922
1a782351
MF
159232019-01-13 Max Filippov <jcmvbkbc@gmail.com>
15924
15925 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
15926 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
15927 set_gdbarch_num_pseudo_regs.
15928
d73cff18
PW
159292019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15930
15931 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
15932 Remove arg prefixname, add do_set and do_show.
15933 Add member functions set_list and show_list.
15934 * cli/cli-style.c (class cli_style_option): Update accordingly.
15935 (style_set_list): Move to file scope.
15936 (style_show_list): Likewise.
15937 (set_style): Call help_list.
15938 (show_style): Call cmd_show_list.
15939 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
15940 Update to use the new macro.
15941
60a90376
JB
159422019-10-12 Joel Brobecker <brobecker@adacore.com>
15943
15944 * ada-lang.c (_initialize_ada_language): Expand the help text
15945 for the "catch exception" command.
15946
9d7c67bf
PW
159472019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15948
15949 * symtab.c (matching_obj_sections): Initialize obj,
15950 declare it closer to its usage.
15951
7cf47dc4
TT
159522019-01-10 Tom Tromey <tom@tromey.com>
15953
15954 * thread-iter.h (inf_threads_iterator): Use next_iterator.
15955 (basic_inf_threads_range): Remove.
15956 (inf_threads_range, inf_non_exited_threads_range)
15957 (safe_inf_threads_range): Use next_adapter.
15958
d3cb6808
KS
159592019-01-10 Keith Seitz <keiths@redhat.com>
15960
15961 PR gdb/23712
15962 PR symtab/23010
15963 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
15964 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
15965
63a20375
KS
159662019-01-10 Keith Seitz <keiths@redhat.com>
15967
15968 PR gdb/23712
15969 PR symtab/23010
15970 * dictionary.c (pending_to_vector): Remove.
15971 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
15972 Remove _1 suffix, replacing functions of the same name. Update
15973 all callers.
15974 (dict_create_hashed, dict_create_hashed_expandable)
15975 (dict_create_linear, dict_create_linear_expandable, dict_free)
15976 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
15977 Make functions static.
15978
b026f593
KS
159792019-01-10 Keith Seitz <keiths@redhat.com>
15980
15981 PR gdb/23712
15982 PR symtab/23010
15983 * dictionary.h (struct dictionary): Replace declaration with
15984 multidictionary.
15985 (dict_create_hashed, dict_create_hashed_expandable)
15986 (dict_create_linear, dict_create_linear_expandable)
15987 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
15988 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
15989 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
15990 taking multidictionary argument.
15991 [ALL_DICT_SYMBOLS]: Update for multidictionary.
15992 * block.h (struct block) <dict>: Change to multidictionary
15993 and rename `multidict'.
15994 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
15995 symmisc.c: Update all dictionary references to multidictionary.
15996
c7748ee9
KS
159972019-01-10 Keith Seitz <keiths@redhat.com>
15998
15999 PR gdb/23712
16000 PR symtab/23010
16001 * dictionary.c: Include unordered_map.
16002 (pending_to_vector): New function.
16003 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
16004 Rewrite the non-"_1" functions to take vector instead
16005 of linked list.
16006 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
16007 "new" _1 versions of the same name.
16008 (multidictionary): Define.
16009 (std::hash<enum language): New definition.
16010 (collate_pending_symbols_by_language, mdict_create_hashed)
16011 (mdict_create_hashed_expandable, mdict_create_linear)
16012 (mdict_create_linear_expandable, mdict_free)
16013 (find_language_dictionary, create_new_language_dictionary)
16014 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
16015 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
16016 (mdict_size, mdict_empty): New functions.
16017 * dictionary.h (mdict_iterator): Define.
16018
67aa1f3c
PA
160192019-01-10 Pedro Alves <palves@redhat.com>
16020
16021 * breakpoint.c (read_uploaded_action)
16022 (create_tracepoint_from_upload): Adjust to use
16023 gdb::unique_xmalloc_ptr.
16024 * ctf.c (ctf_write_uploaded_tp):
16025 (SET_ARRAY_FIELD): Use emplace_back.
16026 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
16027 * tracefile-tfile.c (tfile_write_uploaded_tp):
16028 * tracepoint.c (parse_tracepoint_definition): Adjust to use
16029 gdb::unique_xmalloc_ptr.
16030 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
16031 at_string, cond_string, cmd_strings>: Replace char pointers
16032 with gdb::unique_xmalloc_ptr.
16033
2f667667
PA
160342019-01-10 Pedro Alves <palves@redhat.com>
16035
16036 * solib-target.c (library_list_start_library): Don't xstrdup name.
16037
36cb7237
PA
160382019-01-10 Pedro Alves <palves@redhat.com>
16039
16040 * mdebugread.c (parse_partial_symbols): Use
16041 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
16042
da584958
AB
160432019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16044
16045 * linux-fork.c (scoped_switch_fork_info)
16046 <~scoped_switch_fork_info>: Fix incorrect variable name.
16047
1ef8573c
AB
160482019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
16049
16050 * linux-fork.c (scoped_switch_fork_info)
16051 <scoped_switch_fork_info>: Make explicit.
16052 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
16053
8d7bcccb
TT
160542019-01-10 Tom Tromey <tom@tromey.com>
16055
16056 * objfiles.h (objfile::reset_psymtabs): Update.
16057 * objfiles.c (objfile::objfile): Update.
16058 * psymtab.h (psymtab_storage::obstack): Update.
16059 (psymtab_storage::m_obstack): Use gdb::optional.
16060 (class psymtab_storage): Update comment. Remove objfile
16061 parameter.
16062 * psymtab.c (psymtab_storage::psymtab_storage): Update.
16063
b596a3c7
TT
160642019-01-10 Tom Tromey <tom@tromey.com>
16065
16066 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
16067 <free_psymtabs>: Now private.
16068 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
16069 (allocate_psymtab): Use new method.
16070
a9342b62
TT
160712019-01-10 Tom Tromey <tom@tromey.com>
16072
16073 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
16074 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
16075 * mdebugread.c (parse_partial_symbols): Use
16076 allocate_dependencies.
16077 * dwarf2read.c (dwarf2_create_include_psymtab): Use
16078 allocate_dependencies.
16079 (process_psymtab_comp_unit_reader)
16080 (build_type_psymtab_dependencies): Likewise.
16081 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
16082
5af70966
TT
160832019-01-10 Tom Tromey <tom@tromey.com>
16084
16085 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
16086 PSYMBOL_SET_LANGUAGE.
16087 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
16088
5923a04c
TT
160892019-01-10 Tom Tromey <tom@tromey.com>
16090
16091 * psymtab.h (psymtab_storage::obstack): New method.
16092 <m_obstack>: Rename from obstack; now private.
16093 * psymtab.c (psymtab_storage): Update.
16094 * dwarf2read.c (create_addrmap_from_index)
16095 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
16096 Update.
16097
6d6a12bf
TT
160982019-01-10 Tom Tromey <tom@tromey.com>
16099
16100 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
16101 * objfiles.h (objfile::reset_psymtabs): New method.
16102
d320c2b5
TT
161032019-01-10 Tom Tromey <tom@tromey.com>
16104
16105 * symmisc.c (print_symbol_bcache_statistics): Update.
16106 (print_objfile_statistics): Update.
16107 * symfile.c (reread_symbols): Update.
16108 * psymtab.h (class psymtab_storage): New.
16109 * psymtab.c (psymtab_storage): New constructor.
16110 (~psymtab_storage): New destructor.
16111 (require_partial_symbols): Update.
16112 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
16113 (find_pc_sect_psymtab, find_pc_sect_psymbol)
16114 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
16115 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
16116 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
16117 (start_psymtab_common, end_psymtab_common)
16118 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
16119 (allocate_psymtab): Update.
16120 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
16121 Update.
16122 (dump_psymtab_addrmap, maintenance_print_psymbols)
16123 (maintenance_check_psymtabs): Update.
16124 (class objfile_psymtabs): Move to objfiles.h.
16125 * psympriv.h (discard_psymtab): Now inline.
16126 (psymtab_discarder::psymtab_discarder): Update.
16127 (psymtab_discarder::~psymtab_discarder): Update.
16128 (ALL_OBJFILE_PSYMTABS): Rewrite.
16129 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
16130 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
16131 Remove fields.
16132 <partial_symtabs>: New field.
16133 (class objfile_psymtabs): Move from psymtab.h. Update.
16134 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
16135 psymbol_cache.
16136 (objfile::~objfile): Don't destroy psymbol_cache.
16137 * mdebugread.c (parse_partial_symbols): Update.
16138 * dwarf2read.c (create_addrmap_from_index)
16139 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
16140 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
16141 (add_partial_subprogram, dwarf2_ranges_read): Update.
16142 * dwarf-index-write.c (write_address_map)
16143 (write_one_signatured_type, recursively_write_psymbols)
16144 (class debug_names, class debug_names, write_psymtabs_to_index):
16145 Update.
16146
1d94a5a3
TT
161472019-01-10 Tom Tromey <tom@tromey.com>
16148
16149 * symtab.h (SYMBOL_SET_NAMES): Update.
16150 (symbol_set_names): Update.
16151 (MSYMBOL_SET_NAMES): Update.
16152 * symtab.c (symbol_set_names): Change argument to be an
16153 objfile_per_bfd_storage.
16154 * psymtab.c (add_psymbol_to_bcache): Update.
16155 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
16156
0f14768a
TT
161572019-01-10 Tom Tromey <tom@tromey.com>
16158
16159 * symtab.c (create_demangled_names_hash): Change argument to be an
16160 objfile_per_bfd_storage.
16161 (symbol_set_names): Update.
16162
6eee24ce
TT
161632019-01-10 Tom Tromey <tom@tromey.com>
16164
16165 * xcoffread.c (xcoff_initial_scan): Unconditionally call
16166 init_psymbol_list.
16167 * psymtab.c (init_psymbol_list): Do nothing if already called.
16168 * psympriv.h (init_psymbol_list): Add comment.
16169 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
16170 init_psymbol_list.
16171 * dbxread.c (dbx_symfile_read): Unconditionally call
16172 init_psymbol_list.
16173
75aedd27
TT
161742019-01-10 Tom Tromey <tom@tromey.com>
16175
16176 * xcoffread.c (scan_xcoff_symtab): Update.
16177 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
16178 "where".
16179 * mdebugread.c (parse_partial_symbols)
16180 (handle_psymbol_enumerators): Update.
16181 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
16182 * dbxread.c (read_dbx_symtab): Update.
16183 * psympriv.h (psymbol_placement): New enum.
16184 (add_psymbol_to_list): Update.
16185
939652a5
TT
161862019-01-10 Tom Tromey <tom@tromey.com>
16187
16188 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
16189 static_psymbols parameters.
16190 (scan_xcoff_symtab): Update.
16191 * psymtab.c (start_psymtab_common): Remove global_psymbols and
16192 static_psymbols parameters.
16193 * psympriv.h (start_psymtab_common): Update.
16194 * mdebugread.c (parse_partial_symbols): Update.
16195 * dwarf2read.c (create_partial_symtab): Update.
16196 * dbxread.c (read_dbx_symtab): Update.
16197 (start_psymtab): Remove global_psymbols and static_psymbols
16198 parameters.
16199
baa62830
TT
162002019-01-10 Tom Tromey <tom@tromey.com>
16201
16202 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
16203 * psymtab.c (allocate_psymtab): Add comment.
16204 * psympriv.h (allocate_psymtab): Add comment.
16205 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
16206 initializations.
16207 * dbxread.c (dbx_end_psymtab): Remove some initializations.
16208
0e8f53ba
TT
162092019-01-10 Tom Tromey <tom@tromey.com>
16210
16211 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16212 Don't declare.
16213 * mipsread.c: Include mdebugread.h.
16214 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
16215 Declare.
16216 * elfread.c: Include mdebugread.h.
16217
b22a7c6a
TT
162182019-01-09 Tom Tromey <tom@tromey.com>
16219
16220 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
16221 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
16222 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
16223 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
16224 (psym_lookup_symbol, psym_find_last_source_symtab)
16225 (psym_forget_cached_source_info, psym_print_stats)
16226 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
16227 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
16228 (psym_map_matching_symbols, psym_expand_symtabs_matching)
16229 (psym_find_compunit_symtab_by_address)
16230 (maintenance_print_psymbols, maintenance_info_psymtabs)
16231 (maintenance_check_psymtabs): Use ranged for.
16232 * psymtab.h (class objfile_psymtabs): New.
16233 (require_partial_symbols): Return objfile_psymtabs.
16234 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
16235
3b9d3ac2
TT
162362019-01-09 Tom Tromey <tom@tromey.com>
16237
16238 * symfile.c (overlay_invalidate_all, find_pc_overlay)
16239 (find_pc_mapped_section, list_overlays_command)
16240 (map_overlay_command, unmap_overlay_command)
16241 (simple_overlay_update): Use all_objfiles.
16242 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
16243 * printcmd.c (info_symbol_command): Use all_objfiles.
16244 * objfiles.h (ALL_OBJSECTIONS): Remove.
16245 * maint.c (maintenance_translate_address): Use all_objfiles.
16246 * gcore.c (gcore_create_callback): Use all_objfiles.
16247 (objfile_find_memory_regions): Likewise.
16248
8b31193a
TT
162492019-01-09 Tom Tromey <tom@tromey.com>
16250
16251 * symtab.c (find_line_symtab, info_sources_command)
16252 (make_source_files_completion_list): Use objfile_compunits.
16253 * source.c (select_source_symtab): Use objfile_compunits.
16254 * objfiles.h (struct objfile): Update comment.
16255 (ALL_OBJFILES): Remove.
16256 (ALL_FILETABS): Remove.
16257 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
16258 objfile_compunits.
16259
d5da8b3c
TT
162602019-01-09 Tom Tromey <tom@tromey.com>
16261
16262 * symmisc.c (print_objfile_statistics, dump_objfile)
16263 (maintenance_print_symbols): Use compunit_filetabs.
16264 * source.c (forget_cached_source_info_for_objfile): Use
16265 compunit_filetabs.
16266 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
16267 (ALL_FILETABS): Use compunit_filetabs.
16268 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
16269 * coffread.c (coff_symtab_read): Use compunit_filetabs.
16270
5accd1a0
TT
162712019-01-09 Tom Tromey <tom@tromey.com>
16272
16273 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
16274 (compunit_filetabs): New.
16275 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
16276 compunit_filetabs.
16277 (info_sources_command, make_source_files_completion_list): Remove
16278 declaration.
16279 * symmisc.c (print_objfile_statistics, dump_objfile)
16280 (maintenance_print_symbols): Remove declaration.
16281 (maintenance_info_symtabs): Use compunit_filetabs.
16282 (maintenance_info_line_tables): Likewise.
16283 * source.c (select_source_symtab): Change local variable name.
16284 (forget_cached_source_info_for_objfile): Remove declaration.
16285 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
16286 * objfiles.c (objfile_relocate1): Remove declaration.
16287 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16288 declaration.
16289 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
16290 * coffread.c (coff_symtab_read): Remove declaration.
16291 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
16292 compunit_filetabs.
16293
d8aeb77f
TT
162942019-01-09 Tom Tromey <tom@tromey.com>
16295
16296 * symtab.c (lookup_objfile_from_block)
16297 (find_pc_sect_compunit_symtab, search_symbols)
16298 (default_collect_symbol_completion_matches_break_on): Use
16299 objfile_compunits.
16300 * objfiles.h (ALL_COMPUNITS): Remove.
16301 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
16302 * cp-support.c (add_symbol_overload_list_qualified): Use
16303 objfile_compunits.
16304 * ada-lang.c (ada_collect_symbol_completion_matches)
16305 (ada_add_global_exceptions): Use objfile_compunits.
16306
592553c4
TT
163072019-01-09 Tom Tromey <tom@tromey.com>
16308
16309 * source.c (select_source_symtab)
16310 (forget_cached_source_info_for_objfile): Remove declaration.
16311 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
16312 declaration.
16313 * maint.c (count_symtabs_and_blocks): Remove declaration.
16314 * cp-support.c (add_symbol_overload_list_qualified): Remove
16315 declaration.
16316 * coffread.c (coff_symtab_read): Remove declaration.
16317 * symtab.c (lookup_symbol_in_objfile_symtabs)
16318 (basic_lookup_transparent_type_1): Use objfile_compunits.
16319 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
16320 (info_sources_command, search_symbols)
16321 (default_collect_symbol_completion_matches_break_on)
16322 (make_source_files_completion_list): Remove declaration.
16323 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
16324 (ada_collect_symbol_completion_matches)
16325 (ada_add_global_exceptions): Remove declaration.
16326 * linespec.c (iterate_over_all_matching_symtabs): Use
16327 objfile_compunits.
16328 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
16329 (class objfile_compunits): New.
16330 (ALL_COMPUNITS): Use objfile_compunits.
16331 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
16332 (maintenance_check_symtabs, maintenance_info_line_tables): Use
16333 objfile_compunits.
16334 * objfiles.c (objfile_relocate1): Use objfile_compunits.
16335
5325b9bf
TT
163362019-01-09 Tom Tromey <tom@tromey.com>
16337
16338 * symtab.c (search_symbols)
16339 (default_collect_symbol_completion_matches_break_on): Use
16340 objfile_msymbols.
16341 * ada-lang.c (ada_lookup_simple_minsym)
16342 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
16343 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
16344 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
16345 objfile_msymbols.
16346 * coffread.c (coff_symfile_read): Use objfile_msymbols.
16347 * symmisc.c (dump_msymbols): Use objfile_msymbols.
16348 * objc-lang.c (find_methods): Use objfile_msymbols.
16349 (info_selectors_command, info_classes_command): Likewise.
16350 * stabsread.c (scan_file_globals): Use objfile_msymbols.
16351 * objfiles.h (class objfile_msymbols): New.
16352 (ALL_OBJFILE_MSYMBOLS): Remove.
16353 (ALL_MSYMBOLS): Remove.
16354
cac85af2
TT
163552019-01-09 Tom Tromey <tom@tromey.com>
16356
16357 * common/next-iterator.h (next_adapter): Add Iterator template
16358 parameter.
16359 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
16360 (class all_objfiles_safe): New.
16361 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
16362 * objfiles.c (put_objfile_before): Update comment.
16363 (add_separate_debug_objfile): Likewise.
16364 (free_all_objfiles): Use all_objfiles_safe.
16365 (objfile_purge_solibs): Likewise.
16366
aed57c53
TT
163672019-01-09 Tom Tromey <tom@tromey.com>
16368
16369 * symtab.c (iterate_over_symtabs, matching_obj_sections)
16370 (expand_symtab_containing_pc, lookup_static_symbol)
16371 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
16372 (find_symbol_at_address, find_line_symtab, find_main_name): Use
16373 all_objfiles.
16374 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
16375 * breakpoint.c (create_overlay_event_breakpoint)
16376 (create_longjmp_master_breakpoint)
16377 (create_std_terminate_master_breakpoint)
16378 (create_exception_master_breakpoint): Use all_objfiles.
16379 * linux-thread-db.c (try_thread_db_load_from_pdir)
16380 (has_libpthread): Use all_objfiles.
16381 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
16382 * linespec.c (iterate_over_all_matching_symtabs)
16383 (search_minsyms_for_name): Use all_objfiles.
16384 * maint.c (maintenance_info_sections): Use all_objfiles.
16385 * main.c (captured_main_1): Use all_objfiles.
16386 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
16387 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
16388 * guile/scm-pretty-print.c
16389 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
16390 * solib-spu.c (append_ocl_sos): Use all_objfiles.
16391 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
16392 (maintenance_print_msymbols): Use all_objfiles.
16393 * source.c (select_source_symtab): Use all_objfiles.
16394 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
16395 * symfile.c (remove_symbol_file_command)
16396 (expand_symtabs_matching, map_symbol_filenames): Use
16397 all_objfiles.
16398 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
16399 all_objfiles.
16400 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
16401 * objc-lang.c (find_methods): Use all_objfiles.
16402 * objfiles.c (have_partial_symbols, have_full_symbols)
16403 (have_minimal_symbols, qsort_cmp)
16404 (default_iterate_over_objfiles_in_search_order): Use
16405 all_objfiles.
16406 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
16407 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
16408 (maintenance_check_psymtabs): Use all_objfiles.
16409 (ALL_PSYMTABS): Remove.
16410 * compile/compile-object-run.c (do_module_cleanup): Use
16411 all_objfiles.
16412 * blockframe.c (find_pc_partial_function): Use all_objfiles.
16413 * cp-support.c (add_symbol_overload_list_qualified): Use
16414 all_objfiles.
16415 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
16416 Use all_objfiles.
16417 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
16418 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
16419 all_objfiles.
16420 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
16421 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
16422 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
16423 Uses all_objfiles.
16424 * solib.c (solib_read_symbols): Use all_objfiles
16425
99d89cde
TT
164262019-01-09 Tom Tromey <tom@tromey.com>
16427
16428 * probe.c (parse_probes_in_pspace): Use all_objfiles.
16429 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
16430 all_objfiles.
16431 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
16432 * symmisc.c (print_symbol_bcache_statistics)
16433 (print_objfile_statistics, maintenance_print_objfiles)
16434 (maintenance_info_symtabs, maintenance_check_symtabs)
16435 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
16436 all_objfiles.
16437 * source.c (forget_cached_source_info): Use all_objfiles.
16438 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
16439 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
16440 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
16441 * objfiles.c (update_section_map): Use all_objfiles.
16442 (shared_objfile_contains_address_p): Likewise.
16443 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
16444 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
16445
21708325
TT
164462019-01-09 Tom Tromey <tom@tromey.com>
16447
16448 * common/next-iterator.h: New file.
16449 * objfiles.h (class all_objfiles): New.
16450 (struct objfile_iterator): New.
16451
669e09f6
PW
164522019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16453
16454 * NEWS: Move the description of the changed "frame", "select-frame",
16455 and "info frame" commands to the Changed commands section.
16456
041be526
SM
164572019-01-09 Simon Marchi <simon.marchi@ericsson.com>
16458
16459 * gdbtypes.c (check_stub_method_group): Remove handling of old
16460 mangling schemes.
16461 * linespec.c (find_methods): Likewise.
16462 * stabsread.c (read_member_functions): Likewise.
16463 * valops.c (search_struct_method): Likewise.
16464 (value_struct_elt_for_reference): Likewise.
16465 * NEWS: Mention this change.
16466
0e2a2133
AB
164672019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
16468
16469 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
16470 print_source_lines.
16471 * source.c (print_source_lines_base): Update line number check.
16472 (print_source_lines): New function.
16473 (source_lines_range::source_lines_range): New function.
16474 * source.h (class source_lines_range): New class.
16475 (print_source_lines): New declaration.
16476
1055a3b4
PW
164772019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16478
16479 * linespec.c (linespec_state_destructor): Free self->canonical_names.
16480
cfeadda5
TT
164812019-01-08 Tom Tromey <tom@tromey.com>
16482 Simon Marchi <simon.marchi@ericsson.com>
16483
16484 PR gdb/24060
16485 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
16486 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
16487 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16488 * f-exp.y (DOLLAR_VARIABLE): Likewise.
16489 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
16490 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
16491
583068ca
AB
164922019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16493
16494 * source.c (select_source_symtab): Move header comment to
16495 declaration in source.h.
16496 (forget_cached_source_info_for_objfile): Likewise.
16497 (forget_cached_source_info): Likewise.
16498 (identify_source_line): Likewise.
16499 * source.h (identify_source_line): Move declaration from symtab.h
16500 and add comment from source.c
16501 (print_source_lines): Likewise.
16502 (forget_cached_source_info_for_objfile): Likewise.
16503 (forget_cached_source_info): Likewise.
16504 (select_source_symtab): Likewise.
16505 (enum print_source_lines_flag): Move definition from symtab.h.
16506 * symtab.h (identify_source_line): Move declaration to source.h.
16507 (print_source_lines): Likewise.
16508 (forget_cached_source_info_for_objfile): Likewise.
16509 (forget_cached_source_info): Likewise.
16510 (select_source_symtab): Likewise.
16511 (enum print_source_lines_flag): Move definition to source.h.
16512 * tui/tui-hooks.c: Add 'source.h' include.
16513
ec98a4ad
AB
165142019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16515
16516 * source.c (print_source_lines_base): Handle requests to print
16517 reverse line number sequences, and guard against empty lines
16518 string.
16519
62ea19c1
AB
165202019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
16521
16522 * source.c (print_source_lines_base): Fix skip of '\r' if next
16523 character is '\n'.
16524
9d30e1fd
TT
165252019-01-06 Tom Tromey <tom@tromey.com>
16526
16527 * c-exp.y (struct c_parse_state) <macro_original_text,
16528 expansion_obstack>: New member.
16529 (macro_original_text, expansion_obstack): Remove globals.
16530 (scan_macro_expansion, scanning_macro_expansion)
16531 (finished_macro_expansion): Update.
16532 (scan_macro_cleanup): Remove.
16533 (yylex, c_parse): Update.
16534
c65bac38
TT
165352019-01-06 Tom Tromey <tom@tromey.com>
16536
16537 * c-exp.y (struct c_parse_state) <strings>: New member.
16538 (operator_stoken): Update.
16539
02e12e38
TT
165402019-01-06 Tom Tromey <tom@tromey.com>
16541
16542 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
16543 (union type_stack_elt) <typelist_val>: Now a pointer to
16544 std::vector.
16545 (type_stack_cleanup): Don't declare.
16546 (push_typelist): Update.
16547 * parse.c (pop_typelist): Return a std::vector.
16548 (push_typelist): Take a std::vector.
16549 (follow_types): Update. Do not free args.
16550 (type_stack_cleanup): Remove.
16551 * c-exp.y (struct c_parse_state): New.
16552 (cpstate): New global.
16553 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
16554 (nonempty_typelist): Update.
16555 (func_mod): Create a new vector.
16556 (c_parse): Create a c_parse_state.
16557 (check_parameter_typelist): Do not delete params.
16558 (function_method): Update. Do not delete type_list.
16559
f097f5ad
TT
165602019-01-06 Tom Tromey <tom@tromey.com>
16561
16562 PR gdb/28155:
16563 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
16564 check_typedef.
16565 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
16566 (print_return_value): Likewise.
16567
d2adf9f1
TT
165682019-01-05 Tom Tromey <tom@tromey.com>
16569
16570 * contrib/cleanup_check.py: Remove.
16571 * contrib/gcc-with-excheck: Remove.
16572 * contrib/exsummary.py: Remove.
16573 * contrib/excheck.py: Remove.
16574
2eab46b1
JB
165752019-01-05 Joel Brobecker <brobecker@adacore.com>
16576
16577 * thread.c (delete_thread_1): Add gdb_assert that THR is not
16578 NULL. Initialize tpprev to NULL instead of assigning it
16579 to NULL on the next statement.
16580 * windows-nat.c (windows_delete_thread): Remove check for
16581 main_thread_id before printing thread exit notifications.
16582 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
16583 Remove thread ID check against main_thread_id.
16584 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
16585 windows_delete_thread.
16586 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
16587
48c5e7e2
TT
165882019-01-04 Tom Tromey <tom@tromey.com>
16589
16590 * compile/compile.c (_initialize_compile): Use upper case for
16591 metasyntactic variables.
16592 * symmisc.c (_initialize_symmisc): Use upper case for
16593 metasyntactic variables.
16594 * psymtab.c (_initialize_psymtab): Use upper case for
16595 metasyntactic variables.
16596 * demangle.c (demangle_command): Use upper case for metasyntactic
16597 variables.
16598 (_initialize_demangler): Likewise.
16599 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
16600 variables.
16601
986041cd
TT
166022019-01-03 Tom Tromey <tom@tromey.com>
16603
16604 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
16605
7c711119
TT
166062019-01-03 Tom Tromey <tom@tromey.com>
16607
16608 * python/py-symtab.c (salpy_str): Update.
16609 (struct salpy_sal_object) <symtab>: Now a PyObject.
16610 (salpy_dealloc): Update.
16611 (del_objfile_sal): Use gdbpy_ref.
16612
1b20edf0
TT
166132019-01-03 Tom Tromey <tom@tromey.com>
16614
16615 * python/py-type.c (convert_field): Use new_reference. Return
16616 gdbpy_ref.
16617 (make_fielditem): Return gdbpy_ref.
16618 (typy_fields): Update.
16619 (typy_getitem): Update.
16620 (field_name): Return gdbpy_ref. Use new_reference.
16621 (typy_iterator_iternext): Update.
16622
ea41325b
TT
166232019-01-03 Tom Tromey <tom@tromey.com>
16624
16625 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
16626
2a3c71d6
TT
166272019-01-03 Tom Tromey <tom@tromey.com>
16628
16629 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
16630 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
16631 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
16632 (pspy_set_frame_filters, pspy_set_frame_unwinders)
16633 (pspy_set_type_printers): Likewise.
16634 * python/py-function.c (fnpy_init): Use gdbpy_ref.
16635 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
16636 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
16637 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
16638 (objfpy_set_type_printers): Likewise.
16639
5c329e6a
TT
166402019-01-03 Tom Tromey <tom@tromey.com>
16641
16642 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
16643 (gdbpy_print_stack): Use gdbpy_err_fetch.
16644 * python/python-internal.h (class gdbpy_err_fetch): New class.
16645 (class gdbpy_enter) <m_error_type, m_error_value,
16646 m_error_traceback>: Remove.
16647 <m_error>: New member.
16648 (gdbpy_exception_to_string): Don't declare.
16649 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
16650 * python/py-value.c (convert_value_from_python): Use
16651 gdbpy_err_fetch.
16652 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
16653 gdbpy_exception_to_string.
16654 (gdbpy_handle_exception): Use gdbpy_err_fetch.
16655 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
16656 gdbpy_err_fetch.
16657
169bb27b
AB
166582019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16659
16660 * linux-nat.c (delete_lwp_cleanup): Delete.
16661 (struct lwp_deleter): New struct.
16662 (lwp_info_up): New typedef.
16663 (linux_nat_target::follow_fork): Delete cleanup, and make use of
16664 lwp_info_up.
16665
a07c8880
AB
166662019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16667
16668 * linux-fork.c (class scoped_switch_fork_info): New class.
16669 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
16670
26089c49
AB
166712019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16672
16673 * valops.c (find_overload_match): Remove use of null_cleanup, and
16674 calls to do_cleanups.
16675
06d3e5b0
AB
166762019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16677
16678 * compile/compile-cplus-types.c
16679 (compile_cplus_instance::decl_name): Handle changes to
16680 cp_func_name.
16681 * cp-support.c (cp_func_name): Update header comment, update
16682 return type.
16683 * cp-support.h (cp_func_name): Update return type in declaration.
16684 * valops.c (find_overload_match): Move temp_func local to top
16685 level of function and change its type. Use temp_func to hold and
16686 delete temporary string obtained from cp_func_name.
16687
66644cd3
AB
166882019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
16689
16690 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
16691 gdb::char_vector, remove cleanup, and update uses of `msg`.
16692
592d8c0a
JW
166932019-01-03 Jim Wilson <jimw@sifive.com>
16694
16695 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
16696
c55d06ec
TT
166972019-01-02 Tom Tromey <tom@tromey.com>
16698
16699 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
16700 (tdesc_parse_xml): Remove cleanups.
16701 * target-descriptions.h (make_cleanup_free_target_description):
16702 Don't declare.
16703 (target_desc_deleter): New struct.
16704 (target_desc_up): New typedef.
16705 * target-descriptions.c (target_desc_deleter::operator()): Rename
16706 from free_target_description.
16707 (make_cleanup_free_target_description): Remove.
16708
3a6ae42d
TT
167092019-01-02 Tom Tromey <tom@tromey.com>
16710
16711 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
16712 constructor, destructor.
16713 (linespec_parser): Remove typedef.
16714 (~linespec_parser): Rename from linespec_parser_delete.
16715 (linespec_lex_to_end, linespec_complete_label)
16716 (linespec_complete): Update.
16717 (decode_line_full): Remove cleanups.
16718 (decode_line_1): Update.
16719
61fd3e73
TT
167202019-01-02 Tom Tromey <tom@tromey.com>
16721
16722 * python/python-internal.h (inferior_to_inferior_object): Change
16723 return type.
16724 * python/py-exitedevent.c (create_exited_event_object): Update.
16725 * python/py-inferior.c (inferior_to_inferior_object): Return
16726 gdbpy_ref.
16727 (python_new_inferior, python_inferior_deleted)
16728 (thread_to_thread_object, delete_thread_object)
16729 (build_inferior_list, gdbpy_selected_inferior): Update.
16730 * python/py-infthread.c (create_thread_object): Update. Also fail
16731 if inferior_to_inferior_object fails.
16732
d20172fc
SM
167332019-01-02 Simon Marchi <simon.marchi@ericsson.com>
16734
16735 * inferior.h (class inferior) <displaced_step_state>: New field.
16736 * infrun.h (struct displaced_step_state): Move here from
16737 infrun.c. Initialize fields, add constructor.
16738 <inf>: Remove field.
16739 <reset>: New method.
16740 * infrun.c (struct displaced_step_inferior_state): Move to
16741 infrun.h.
16742 (displaced_step_inferior_states): Remove.
16743 (get_displaced_stepping_state): Adust.
16744 (displaced_step_in_progress_any_inferior): Adjust.
16745 (displaced_step_in_progress_thread): Adjust.
16746 (displaced_step_in_progress): Adjust.
16747 (add_displaced_stepping_state): Remove.
16748 (get_displaced_step_closure_by_addr): Adjust.
16749 (remove_displaced_stepping_state): Remove.
16750 (infrun_inferior_exit): Call displaced_step_state.reset.
16751 (use_displaced_stepping): Don't check for NULL.
16752 (displaced_step_prepare_throw): Call
16753 get_displaced_stepping_state.
16754 (displaced_step_fixup): Don't check for NULL.
16755 (prepare_for_detach): Don't check for NULL.
16756
e3319240
PW
167572019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16758
16759 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
16760 in case of call that did not complete.
16761
5d36dfb9
AU
167622019-01-02 Andrey Utkin <autkin@undo.io>
16763
16764 * symfile.c (find_separate_debug_file): Fix search of debug files for
16765 remote debuggee.
16766
8833fbf0
TT
167672019-01-02 Tom Tromey <tom@tromey.com>
16768
16769 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
16770 indentation.
16771 * python/py-frame.c (frapy_older): Remove cast.
16772 (frapy_newer): Likewise.
16773 * python/py-breakpoint.c (local_setattro): Remove cast.
16774 * python/py-arch.c (archpy_name): Remove local variable.
16775 * python/py-type.c (gdbpy_lookup_type): Remove cast.
16776
4ada3dfd
JB
167772019-01-02 Joel Brobecker <brobecker@adacore.com>
16778
16779 * unittests/basic_string_view/element_access/char/empty.cc:
16780 Fix year range in copyright header.
16781
113b7b81
AB
167822019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
16783
16784 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
16785 Delete.
16786 <operator==>: Update with for removed field.
16787 <hash>: Likewise.
16788 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
16789 <isa_features>: ...this.
16790 <abi_features>: New field.
16791 (riscv_isa_flen): Update comment.
16792 (riscv_abi_xlen): New declaration.
16793 (riscv_abi_flen): New declaration.
16794 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
16795 isa_features.
16796 (riscv_abi_xlen): New function.
16797 (riscv_isa_flen): Update to get answer from isa_features.
16798 (riscv_abi_flen): New function.
16799 (riscv_has_fp_abi): Update to get answer from abi_features.
16800 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
16801 xlen and flen.
16802 (riscv_call_info) <xlen, flen>: Update comment.
16803 (riscv_call_arg_struct): Remove invalid assertions
16804 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
16805 is removed.
16806 (riscv_gdbarch_init): Gather isa features and abi features
16807 separately, ensure both match on the gdbarch when reusing an old
16808 gdbarch. Relax an error check to allow 32-bit abi float to run on
16809 a target with 64-bit float hardware.
16810
b18ca514
PW
168112019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16812
16813 * source.c (search_command_helper): Stop reverse search
16814 when line 1 has been searched.
16815
ec70d8db
PW
168162019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16817
16818 * record-full.c (record_full_base_target::close): Rewrite
16819 record_full_core_buf_list free logic.
16820
5b38f9c1
PW
168212019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
16822
16823 * break-catch-syscall.c (print_one_catch_syscall): xfree
16824 the last text.
16825
66d91b39
JB
168262019-01-01 Joel Brobecker <brobecker@adacore.com>
16827
16828 * top.c (print_gdb_version): Update Copyright year in version
16829 message.
16830
42a4f53d
JB
168312019-01-01 Joel Brobecker <brobecker@adacore.com>
16832
16833 Update copyright year range in all GDB files.
16834
7e955d83 168352019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
2139e8dc 16836
5bbd631d 16837 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
2139e8dc 16838
5bbd631d 16839For older changes see ChangeLog-2018.
c906108c
SS
16840\f
16841Local Variables:
16842mode: change-log
16843left-margin: 8
16844fill-column: 74
16845version-control: never
57da7796 16846coding: utf-8
c906108c 16847End:
5bbd631d 16848
This page took 2.997422 seconds and 4 git commands to generate.